瀏覽代碼

Comment on scalability

Bob Mottram 8 年之前
父節點
當前提交
1888006b45
沒有帳戶連結到提交者的電子郵件
共有 2 個檔案被更改,包括 47 行新增41 行删除
  1. 2
    0
      doc/EN/mesh.org
  2. 45
    41
      website/EN/mesh.html

+ 2
- 0
doc/EN/mesh.org 查看文件

@@ -38,6 +38,8 @@ Mesh networks are useful as a quick way to make a fully decentralised communicat
38 38
  - Private communications is end-to-end secured and forward secret.
39 39
  - Publicly shared data is /content addressable/ and therefore scalable to many peers.
40 40
 
41
+This system should be quite scalable. Both qTox and IPFS are based upon distributed hash tables (DHT) so that each peer does not need to store the full index of data for the entire network. Caching or pinning of IPFS data and its content addressability means that if a file or blog becomes popular then performance should improve as the number of downloads increases, which is the opposite of the client/server paradigm.
42
+
41 43
 * Disk Images
42 44
 ** Client images
43 45
 

+ 45
- 41
website/EN/mesh.html 查看文件

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2016-09-11 Sun 20:07 -->
6
+<!-- 2016-09-12 Mon 20:01 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title></title>
@@ -272,13 +272,13 @@ for the JavaScript code in this tag.
272 272
 </colgroup>
273 273
 <tbody>
274 274
 <tr>
275
-<td class="org-left"><a href="#org43e0c78">What the system can do</a></td>
275
+<td class="org-left"><a href="#orgfbb39f8">What the system can do</a></td>
276 276
 <td class="org-left">-</td>
277
-<td class="org-left"><a href="#orgc0a9800">Disk Images</a></td>
277
+<td class="org-left"><a href="#org8e9fd5b">Disk Images</a></td>
278 278
 <td class="org-left">-</td>
279
-<td class="org-left"><a href="#org1942f83">Building Disk Images</a></td>
279
+<td class="org-left"><a href="#orga0f89b4">Building Disk Images</a></td>
280 280
 <td class="org-left">-</td>
281
-<td class="org-left"><a href="#org4ff9ff2">How to use it</a></td>
281
+<td class="org-left"><a href="#orgdda6754">How to use it</a></td>
282 282
 </tr>
283 283
 </tbody>
284 284
 </table>
@@ -287,9 +287,9 @@ for the JavaScript code in this tag.
287 287
 Mesh networks are useful as a quick way to make a fully decentralised communications system which is not connected to or reliant upon the internet. Think festivals, hacker conferences, onboard ships at sea, disaster/war zones, small business internal office communications, protests, remote areas of the world, temporary "digital blackouts", scientific expeditions and off-world space colonies. The down side is that you can't access any internet content. The upside is that you can securely communicate with anyone on the local mesh. No ISPs. No payments or subscriptions beyond the cost of obtaining the hardware. Systems need to be within wifi range of each other for the mesh to be created. It can be an ultra-convenient way to do purely local communications.
288 288
 </p>
289 289
 
290
-<div id="outline-container-org43e0c78" class="outline-2">
291
-<h2 id="org43e0c78">What the system can do</h2>
292
-<div class="outline-text-2" id="text-org43e0c78">
290
+<div id="outline-container-orgfbb39f8" class="outline-2">
291
+<h2 id="orgfbb39f8">What the system can do</h2>
292
+<div class="outline-text-2" id="text-orgfbb39f8">
293 293
 <ul class="org-ul">
294 294
 <li>Discovery of other users on the network</li>
295 295
 <li>Text based chat, one-to-one and in groups</li>
@@ -303,15 +303,19 @@ Mesh networks are useful as a quick way to make a fully decentralised communicat
303 303
 <li>Private communications is end-to-end secured and forward secret.</li>
304 304
 <li>Publicly shared data is <i>content addressable</i> and therefore scalable to many peers.</li>
305 305
 </ul>
306
+
307
+<p>
308
+This system should be quite scalable. Both qTox and IPFS are based upon distributed hash tables (DHT) so that each peer does not need to store the full index of data for the entire network. Caching or pinning of IPFS data and its content addressability means that if a file or blog becomes popular then performance should improve as the number of downloads increases, which is the opposite of the client/server paradigm.
309
+</p>
306 310
 </div>
307 311
 </div>
308 312
 
309
-<div id="outline-container-orgc0a9800" class="outline-2">
310
-<h2 id="orgc0a9800">Disk Images</h2>
311
-<div class="outline-text-2" id="text-orgc0a9800">
312
-</div><div id="outline-container-orgafaa249" class="outline-3">
313
-<h3 id="orgafaa249">Client images</h3>
314
-<div class="outline-text-3" id="text-orgafaa249">
313
+<div id="outline-container-org8e9fd5b" class="outline-2">
314
+<h2 id="org8e9fd5b">Disk Images</h2>
315
+<div class="outline-text-2" id="text-org8e9fd5b">
316
+</div><div id="outline-container-org21b25f3" class="outline-3">
317
+<h3 id="org21b25f3">Client images</h3>
318
+<div class="outline-text-3" id="text-org21b25f3">
315 319
 <div class="org-center">
316 320
 
317 321
 <div class="figure">
@@ -360,16 +364,16 @@ sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-n
360 364
 </div>
361 365
 </div>
362 366
 
363
-<div id="outline-container-orgd58d9dd" class="outline-3">
364
-<h3 id="orgd58d9dd">Router images</h3>
365
-<div class="outline-text-3" id="text-orgd58d9dd">
367
+<div id="outline-container-orgf22242f" class="outline-3">
368
+<h3 id="orgf22242f">Router images</h3>
369
+<div class="outline-text-3" id="text-orgf22242f">
366 370
 <p>
367 371
 Routers are intended to build network coverage for an area using small and low cost hardware. You can bolt them to walls or leave them on window ledges. They don't have any user interface and their only job is to haul network traffic across the mesh. Copy the image to a microSD card and insert it into the router, plug in an Atheros wifi dongle and power on. That should be all you need to do.
368 372
 </p>
369 373
 </div>
370
-<div id="outline-container-org1a63cb1" class="outline-4">
371
-<h4 id="org1a63cb1">Beaglebone Black</h4>
372
-<div class="outline-text-4" id="text-org1a63cb1">
374
+<div id="outline-container-org3a2b775" class="outline-4">
375
+<h4 id="org3a2b775">Beaglebone Black</h4>
376
+<div class="outline-text-4" id="text-org3a2b775">
373 377
 <div class="org-center">
374 378
 
375 379
 <div class="figure">
@@ -403,9 +407,9 @@ If you have a few Beaglebone Blacks to use as routers then repeat the <i>dd</i>
403 407
 </div>
404 408
 </div>
405 409
 
406
-<div id="outline-container-org1942f83" class="outline-2">
407
-<h2 id="org1942f83">Building Disk Images</h2>
408
-<div class="outline-text-2" id="text-org1942f83">
410
+<div id="outline-container-orga0f89b4" class="outline-2">
411
+<h2 id="orga0f89b4">Building Disk Images</h2>
412
+<div class="outline-text-2" id="text-orga0f89b4">
409 413
 <p>
410 414
 It's better not to trust images downloaded from random places on the interwebs. Chances are that unless you are in the web of trust of the above GPG signatures then they don't mean very much to you. If you actually want something trustworthy then build the images from scratch. It will take some time. Here's how to do it.
411 415
 </p>
@@ -500,9 +504,9 @@ The resulting image can be copied to a microSD card, inserted into a Beaglebone
500 504
 </div>
501 505
 </div>
502 506
 
503
-<div id="outline-container-org4ff9ff2" class="outline-2">
504
-<h2 id="org4ff9ff2">How to use it</h2>
505
-<div class="outline-text-2" id="text-org4ff9ff2">
507
+<div id="outline-container-orgdda6754" class="outline-2">
508
+<h2 id="orgdda6754">How to use it</h2>
509
+<div class="outline-text-2" id="text-orgdda6754">
506 510
 <p>
507 511
 When you first boot from the USB drive the system will create some encryption keys, assign a unique network address to the system and then reboot itself. When that's done you should see a prompt asking for a username. This username just makes it easy for others to initially find you on the mesh and will appear in the list of users.
508 512
 </p>
@@ -512,9 +516,9 @@ After a minute or two if you are within wifi range and there is at least one oth
512 516
 </p>
513 517
 </div>
514 518
 
515
-<div id="outline-container-org64b674d" class="outline-3">
516
-<h3 id="org64b674d">Set the Date</h3>
517
-<div class="outline-text-3" id="text-org64b674d">
519
+<div id="outline-container-orgaf58e4d" class="outline-3">
520
+<h3 id="orgaf58e4d">Set the Date</h3>
521
+<div class="outline-text-3" id="text-orgaf58e4d">
518 522
 <p>
519 523
 On the ordinary internet the date and time of your system would be set automatically via NTP or TLSdate. But this is not the internet and so you will need to manually ensure that your date and time settings are correct. You might need to periodically do this if your clock drifts. It's not essential that the time on your system be highly accurate, but if it drifts too far or goes back to epoch then things could become a little confusing in regard to the order of blog posts.
520 524
 </p>
@@ -524,9 +528,9 @@ On the ordinary internet the date and time of your system would be set automatic
524 528
 </p>
525 529
 </div>
526 530
 </div>
527
-<div id="outline-container-org67f52f9" class="outline-3">
528
-<h3 id="org67f52f9">Check network status</h3>
529
-<div class="outline-text-3" id="text-org67f52f9">
531
+<div id="outline-container-org25e741c" class="outline-3">
532
+<h3 id="org25e741c">Check network status</h3>
533
+<div class="outline-text-3" id="text-org25e741c">
530 534
 <p>
531 535
 Unlike with ordinary wifi, on the mesh you don't get a signal strength icon and so it's not simple to see if you have a good connection.
532 536
 </p>
@@ -550,9 +554,9 @@ When you are finished close the window and then select the <i>Network Restart</i
550 554
 </div>
551 555
 </div>
552 556
 
553
-<div id="outline-container-orgf84fcd0" class="outline-3">
554
-<h3 id="orgf84fcd0">Chat System</h3>
555
-<div class="outline-text-3" id="text-orgf84fcd0">
557
+<div id="outline-container-org93e85ee" class="outline-3">
558
+<h3 id="org93e85ee">Chat System</h3>
559
+<div class="outline-text-3" id="text-org93e85ee">
556 560
 <p>
557 561
 Ensure that you're within wifi range of at least one other mesh peer (could be a router or client) and then you should see that the <i>Chat</i> and <i>Other Users</i> icons appear. Select the users icon and you should see a list of users on the mesh. Select the <i>Chat</i> icon and once you are connected you should see the status light turn green. If after a few minutes you don't get the green status light then try closing and re-opening the Tox chat application. Select the plus button to add a friend and then copy and paste in a Tox ID from the users list.
558 562
 </p>
@@ -611,9 +615,9 @@ At present video doesn't work reliably, but text and voice chat do work well.
611 615
 </div>
612 616
 </div>
613 617
 
614
-<div id="outline-container-org8bdc607" class="outline-3">
615
-<h3 id="org8bdc607">Sharing Files</h3>
616
-<div class="outline-text-3" id="text-org8bdc607">
618
+<div id="outline-container-orgaf6b73f" class="outline-3">
619
+<h3 id="orgaf6b73f">Sharing Files</h3>
620
+<div class="outline-text-3" id="text-orgaf6b73f">
617 621
 <p>
618 622
 You can make files publicly available on the network simply by dragging and dropping them into the <i>Public</i> folder on the desktop. To view the files belonging to another user select the desktop icon called <i>Visit a site</i> and enter the username or Tox ID of the other user.
619 623
 </p>
@@ -628,9 +632,9 @@ You can make files publicly available on the network simply by dragging and drop
628 632
 </div>
629 633
 </div>
630 634
 
631
-<div id="outline-container-org788519c" class="outline-3">
632
-<h3 id="org788519c">Blogging</h3>
633
-<div class="outline-text-3" id="text-org788519c">
635
+<div id="outline-container-orgfdc783f" class="outline-3">
636
+<h3 id="orgfdc783f">Blogging</h3>
637
+<div class="outline-text-3" id="text-orgfdc783f">
634 638
 <p>
635 639
 To create a blog post select the <i>Blog</i> icon on the desktop and then use the up and down cursor keys, space bar and enter key to add a new entry. Edit the title of the entry and add your text. You can also include photos if you wish - just copy them to the <b>CreateBlog/content/images</b> directory and then link to them as shown.
636 640
 </p>