Kaynağa Gözat

mesh architecture diagrams

Bob Mottram 7 yıl önce
ebeveyn
işleme
4d6f5d221b

+ 1
- 1
doc/EN/mesh.org Dosyayı Görüntüle

23
  * [[./mesh_usage.html][How to use it]]
23
  * [[./mesh_usage.html][How to use it]]
24
 
24
 
25
 #+BEGIN_CENTER
25
 #+BEGIN_CENTER
26
-[[file:images/mesh_screenshot.jpg]]
26
+[[file:images/mesh_architecture1.jpg]]
27
 #+END_CENTER
27
 #+END_CENTER
28
 
28
 
29
 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 businesses who don't want the overhead of server maintenance, protests, remote areas of the world, temporary "digital blackouts", scientific expeditions and off-world space colonies.
29
 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 businesses who don't want the overhead of server maintenance, protests, remote areas of the world, temporary "digital blackouts", scientific expeditions and off-world space colonies.

+ 12
- 2
doc/EN/mesh_usage.org Dosyayı Görüntüle

50
 
50
 
51
 When you are finished close the window and then select the /Network Restart/ desktop icon, which will restart the B.A.T.M.A.N. network. You can also use the restart icon if you are within range of the mesh network but the /Chat/ and /Other Users/ icons do not automatically appear after a few minutes.
51
 When you are finished close the window and then select the /Network Restart/ desktop icon, which will restart the B.A.T.M.A.N. network. You can also use the restart icon if you are within range of the mesh network but the /Chat/ and /Other Users/ icons do not automatically appear after a few minutes.
52
 * Connecting to the internet
52
 * Connecting to the internet
53
-If you need to be able to access the internet from the mesh then connect one of the peers to an internet router using an ethernet cable, then reboot it. Other peers in the mesh, including any attached mobile devices, will then be able to access the internet using the ethernet attached peer as a gateway. [[https://en.wikipedia.org/wiki/Freifunk][Freifunk]] works in a similar way.
53
+
54
+#+BEGIN_CENTER
55
+[[file:images/mesh_architecture2.jpg]]
56
+#+END_CENTER
57
+
58
+If you need to be able to access the internet from the mesh then connect one of the peers to an internet router using an ethernet cable (shown as yellow above), then reboot it. Other peers in the mesh, including any attached mobile devices, will then be able to access the internet using the ethernet attached peer as a gateway. [[https://en.wikipedia.org/wiki/Freifunk][Freifunk]] works in a similar way.
54
 
59
 
55
 After connecting one peer to the internet you may need to reboot other peers in order to update their network configurations.
60
 After connecting one peer to the internet you may need to reboot other peers in order to update their network configurations.
56
 
61
 
75
 From a deep packet inspection point of view the traffic going over the internet between mesh gateways will just look like any other TLS connection to a server.
80
 From a deep packet inspection point of view the traffic going over the internet between mesh gateways will just look like any other TLS connection to a server.
76
 
81
 
77
 * Mobile devices (phones, etc)
82
 * Mobile devices (phones, etc)
78
-To allow mobile devices to connect to the mesh you will need a second wifi adapter connected to your laptop/netbook/SBC. Plug in a second wifi adapter then reboot the system. The second adaptor will then create a wifi hotspot which mobile devices can connect to. The hotspot name also contains its local IP address (eg. "/mesh-192.168.1.83/").
83
+
84
+#+BEGIN_CENTER
85
+[[file:images/mesh_architecture3.jpg]]
86
+#+END_CENTER
87
+
88
+To allow mobile devices to connect to the mesh you will need a second wifi adapter connected to your laptop/netbook/SBC. Plug in a second wifi adapter then reboot the system. The second adaptor will then create a wifi hotspot (the connection shown in green above) which mobile devices can connect to. The hotspot name also contains its local IP address (eg. "/mesh-192.168.1.83/").
79
 
89
 
80
 On a typical Android device go to *Settings* then *Security* and ensure that *Unknown sources* is enabled. Also within *Wifi* from the *Settings* screen select the mesh hotspot. The password is "/freedombone/". Open a non-Tor browser and navigate to the IP address showing in the hotspot name. You can then download and install mesh apps.
90
 On a typical Android device go to *Settings* then *Security* and ensure that *Unknown sources* is enabled. Also within *Wifi* from the *Settings* screen select the mesh hotspot. The password is "/freedombone/". Open a non-Tor browser and navigate to the IP address showing in the hotspot name. You can then download and install mesh apps.
81
 
91
 

BIN
img/mesh_architecture1.jpg Dosyayı Görüntüle


BIN
img/mesh_architecture2.jpg Dosyayı Görüntüle


BIN
img/mesh_architecture3.jpg Dosyayı Görüntüle


+ 2
- 2
website/EN/mesh.html Dosyayı Görüntüle

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2017-10-27 Fri 12:00 -->
6
+<!-- 2017-10-27 Fri 13:10 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
 <title>&lrm;</title>
9
 <title>&lrm;</title>
261
 <div class="org-center">
261
 <div class="org-center">
262
 
262
 
263
 <div class="figure">
263
 <div class="figure">
264
-<p><img src="images/mesh_screenshot.jpg" alt="mesh_screenshot.jpg" />
264
+<p><img src="images/mesh_architecture1.jpg" alt="mesh_architecture1.jpg" />
265
 </p>
265
 </p>
266
 </div>
266
 </div>
267
 </div>
267
 </div>

+ 63
- 47
website/EN/mesh_usage.html Dosyayı Görüntüle

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2017-10-27 Fri 11:56 -->
6
+<!-- 2017-10-27 Fri 13:10 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
 <title>&lrm;</title>
9
 <title>&lrm;</title>
247
 <center><h1>Mesh Network: How to use it</h1></center>
247
 <center><h1>Mesh Network: How to use it</h1></center>
248
 
248
 
249
 <ul class="org-ul">
249
 <ul class="org-ul">
250
-<li><a href="#org22cb5fa">Boot trouble</a></li>
251
-<li><a href="#orgde523e6">Set the Date</a></li>
252
-<li><a href="#org21130c0">Check network status</a></li>
253
-<li><a href="#org94c3154">Connecting to the internet</a></li>
254
-<li><a href="#orgc8757e7">Connecting two meshes over the internet via a VPN tunnel</a></li>
255
-<li><a href="#orgd23560d">Mobile devices (phones, etc)</a></li>
256
-<li><a href="#orgaefaab7">Chat System</a></li>
257
-<li><a href="#orgb60a85c">Collaborative document editing</a></li>
258
-<li><a href="#org3987366">Social Network</a></li>
259
-<li><a href="#org2d93c9b">Sharing Files</a></li>
260
-<li><a href="#org0ef8d45">Blogging</a></li>
250
+<li><a href="#org5965bc8">Boot trouble</a></li>
251
+<li><a href="#org6fc4c27">Set the Date</a></li>
252
+<li><a href="#org9452f90">Check network status</a></li>
253
+<li><a href="#org1e9178e">Connecting to the internet</a></li>
254
+<li><a href="#org7235347">Connecting two meshes over the internet via a VPN tunnel</a></li>
255
+<li><a href="#org78b4990">Mobile devices (phones, etc)</a></li>
256
+<li><a href="#org5e54363">Chat System</a></li>
257
+<li><a href="#orgf66d5cf">Collaborative document editing</a></li>
258
+<li><a href="#org9df5e68">Social Network</a></li>
259
+<li><a href="#orgf9d3758">Sharing Files</a></li>
260
+<li><a href="#org04f400a">Blogging</a></li>
261
 </ul>
261
 </ul>
262
 
262
 
263
 <p>
263
 <p>
268
 After a minute or two if you are within wifi range and there is at least one other user on the network then you should see additional icons appear on the desktop, such as <i>Other Users</i> and <i>Chat</i>.
268
 After a minute or two if you are within wifi range and there is at least one other user on the network then you should see additional icons appear on the desktop, such as <i>Other Users</i> and <i>Chat</i>.
269
 </p>
269
 </p>
270
 
270
 
271
-<div id="outline-container-org22cb5fa" class="outline-2">
272
-<h2 id="org22cb5fa">Boot trouble</h2>
273
-<div class="outline-text-2" id="text-org22cb5fa">
271
+<div id="outline-container-org5965bc8" class="outline-2">
272
+<h2 id="org5965bc8">Boot trouble</h2>
273
+<div class="outline-text-2" id="text-org5965bc8">
274
 <p>
274
 <p>
275
 If the system doesn't boot and reports an error which includes <b>/dev/mapper/loop0p1</b> then reboot with <b>Ctrl-Alt-Del</b> and when you see the grub menu press <b>e</b> and manually change <b>/dev/mapper/loop0p1</b> to <b>/dev/sdb1</b>, then press <b>Ctrl-x</b>. If that doesn't work then reboot and try <b>/dev/sdc1</b> instead.
275
 If the system doesn't boot and reports an error which includes <b>/dev/mapper/loop0p1</b> then reboot with <b>Ctrl-Alt-Del</b> and when you see the grub menu press <b>e</b> and manually change <b>/dev/mapper/loop0p1</b> to <b>/dev/sdb1</b>, then press <b>Ctrl-x</b>. If that doesn't work then reboot and try <b>/dev/sdc1</b> instead.
276
 </p>
276
 </p>
280
 </p>
280
 </p>
281
 </div>
281
 </div>
282
 </div>
282
 </div>
283
-<div id="outline-container-orgde523e6" class="outline-2">
284
-<h2 id="orgde523e6">Set the Date</h2>
285
-<div class="outline-text-2" id="text-orgde523e6">
283
+<div id="outline-container-org6fc4c27" class="outline-2">
284
+<h2 id="org6fc4c27">Set the Date</h2>
285
+<div class="outline-text-2" id="text-org6fc4c27">
286
 <p>
286
 <p>
287
 On the ordinary internet the date and time of your system would be set automatically via NTP. 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.
287
 On the ordinary internet the date and time of your system would be set automatically via NTP. 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.
288
 </p>
288
 </p>
292
 </p>
292
 </p>
293
 </div>
293
 </div>
294
 </div>
294
 </div>
295
-<div id="outline-container-org21130c0" class="outline-2">
296
-<h2 id="org21130c0">Check network status</h2>
297
-<div class="outline-text-2" id="text-org21130c0">
295
+<div id="outline-container-org9452f90" class="outline-2">
296
+<h2 id="org9452f90">Check network status</h2>
297
+<div class="outline-text-2" id="text-org9452f90">
298
 <p>
298
 <p>
299
 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.
299
 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.
300
 </p>
300
 </p>
317
 </p>
317
 </p>
318
 </div>
318
 </div>
319
 </div>
319
 </div>
320
-<div id="outline-container-org94c3154" class="outline-2">
321
-<h2 id="org94c3154">Connecting to the internet</h2>
322
-<div class="outline-text-2" id="text-org94c3154">
320
+<div id="outline-container-org1e9178e" class="outline-2">
321
+<h2 id="org1e9178e">Connecting to the internet</h2>
322
+<div class="outline-text-2" id="text-org1e9178e">
323
+<div class="org-center">
324
+
325
+<div class="figure">
326
+<p><img src="images/mesh_architecture2.jpg" alt="mesh_architecture2.jpg" />
327
+</p>
328
+</div>
329
+</div>
330
+
323
 <p>
331
 <p>
324
-If you need to be able to access the internet from the mesh then connect one of the peers to an internet router using an ethernet cable, then reboot it. Other peers in the mesh, including any attached mobile devices, will then be able to access the internet using the ethernet attached peer as a gateway. <a href="https://en.wikipedia.org/wiki/Freifunk">Freifunk</a> works in a similar way.
332
+If you need to be able to access the internet from the mesh then connect one of the peers to an internet router using an ethernet cable (shown as yellow above), then reboot it. Other peers in the mesh, including any attached mobile devices, will then be able to access the internet using the ethernet attached peer as a gateway. <a href="https://en.wikipedia.org/wiki/Freifunk">Freifunk</a> works in a similar way.
325
 </p>
333
 </p>
326
 
334
 
327
 <p>
335
 <p>
342
 </p>
350
 </p>
343
 </div>
351
 </div>
344
 </div>
352
 </div>
345
-<div id="outline-container-orgc8757e7" class="outline-2">
346
-<h2 id="orgc8757e7">Connecting two meshes over the internet via a VPN tunnel</h2>
347
-<div class="outline-text-2" id="text-orgc8757e7">
353
+<div id="outline-container-org7235347" class="outline-2">
354
+<h2 id="org7235347">Connecting two meshes over the internet via a VPN tunnel</h2>
355
+<div class="outline-text-2" id="text-org7235347">
348
 <p>
356
 <p>
349
 Maybe the internet exists, but you don't care about getting any content from it and just want to use it as a way to connect mesh networks from different geographical locations together.
357
 Maybe the internet exists, but you don't care about getting any content from it and just want to use it as a way to connect mesh networks from different geographical locations together.
350
 </p>
358
 </p>
371
 </div>
379
 </div>
372
 </div>
380
 </div>
373
 
381
 
374
-<div id="outline-container-orgd23560d" class="outline-2">
375
-<h2 id="orgd23560d">Mobile devices (phones, etc)</h2>
376
-<div class="outline-text-2" id="text-orgd23560d">
382
+<div id="outline-container-org78b4990" class="outline-2">
383
+<h2 id="org78b4990">Mobile devices (phones, etc)</h2>
384
+<div class="outline-text-2" id="text-org78b4990">
385
+<div class="org-center">
386
+
387
+<div class="figure">
388
+<p><img src="images/mesh_architecture3.jpg" alt="mesh_architecture3.jpg" />
389
+</p>
390
+</div>
391
+</div>
392
+
377
 <p>
393
 <p>
378
-To allow mobile devices to connect to the mesh you will need a second wifi adapter connected to your laptop/netbook/SBC. Plug in a second wifi adapter then reboot the system. The second adaptor will then create a wifi hotspot which mobile devices can connect to. The hotspot name also contains its local IP address (eg. "<i>mesh-192.168.1.83</i>").
394
+To allow mobile devices to connect to the mesh you will need a second wifi adapter connected to your laptop/netbook/SBC. Plug in a second wifi adapter then reboot the system. The second adaptor will then create a wifi hotspot (the connection shown in green above) which mobile devices can connect to. The hotspot name also contains its local IP address (eg. "<i>mesh-192.168.1.83</i>").
379
 </p>
395
 </p>
380
 
396
 
381
 <p>
397
 <p>
395
 </p>
411
 </p>
396
 </div>
412
 </div>
397
 </div>
413
 </div>
398
-<div id="outline-container-orgaefaab7" class="outline-2">
399
-<h2 id="orgaefaab7">Chat System</h2>
400
-<div class="outline-text-2" id="text-orgaefaab7">
414
+<div id="outline-container-org5e54363" class="outline-2">
415
+<h2 id="org5e54363">Chat System</h2>
416
+<div class="outline-text-2" id="text-org5e54363">
401
 <p>
417
 <p>
402
 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.
418
 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.
403
 </p>
419
 </p>
456
 </div>
472
 </div>
457
 </div>
473
 </div>
458
 
474
 
459
-<div id="outline-container-orgb60a85c" class="outline-2">
460
-<h2 id="orgb60a85c">Collaborative document editing</h2>
461
-<div class="outline-text-2" id="text-orgb60a85c">
475
+<div id="outline-container-orgf66d5cf" class="outline-2">
476
+<h2 id="orgf66d5cf">Collaborative document editing</h2>
477
+<div class="outline-text-2" id="text-orgf66d5cf">
462
 <p>
478
 <p>
463
 The mesh system includes the ability to collaboratively edit various sorts of documents using CryptPad. CryptPad is an almost peer-to-peer system in that it is designed for a client/server environment but that the server aspect of it is very minimal and limited to orchestrating the connected clients. With CryptPad installed on each mesh peer it effectively enables peer-to-peer collaborative editing. Documents are ephemeral and forgotten unless they're exported or copy-pasted to permanent storage.
479
 The mesh system includes the ability to collaboratively edit various sorts of documents using CryptPad. CryptPad is an almost peer-to-peer system in that it is designed for a client/server environment but that the server aspect of it is very minimal and limited to orchestrating the connected clients. With CryptPad installed on each mesh peer it effectively enables peer-to-peer collaborative editing. Documents are ephemeral and forgotten unless they're exported or copy-pasted to permanent storage.
464
 </p>
480
 </p>
489
 </div>
505
 </div>
490
 </div>
506
 </div>
491
 
507
 
492
-<div id="outline-container-org3987366" class="outline-2">
493
-<h2 id="org3987366">Social Network</h2>
494
-<div class="outline-text-2" id="text-org3987366">
508
+<div id="outline-container-org9df5e68" class="outline-2">
509
+<h2 id="org9df5e68">Social Network</h2>
510
+<div class="outline-text-2" id="text-org9df5e68">
495
 <p>
511
 <p>
496
 Patchwork is available as a social networking system for the mesh. Like all social network systems it has a stream of posts and you can follow or unfollow other users. You can also send private messages to other users with end-to-end encryption.
512
 Patchwork is available as a social networking system for the mesh. Like all social network systems it has a stream of posts and you can follow or unfollow other users. You can also send private messages to other users with end-to-end encryption.
497
 </p>
513
 </p>
526
 </div>
542
 </div>
527
 </div>
543
 </div>
528
 
544
 
529
-<div id="outline-container-org2d93c9b" class="outline-2">
530
-<h2 id="org2d93c9b">Sharing Files</h2>
531
-<div class="outline-text-2" id="text-org2d93c9b">
545
+<div id="outline-container-orgf9d3758" class="outline-2">
546
+<h2 id="orgf9d3758">Sharing Files</h2>
547
+<div class="outline-text-2" id="text-orgf9d3758">
532
 <p>
548
 <p>
533
 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.
549
 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.
534
 </p>
550
 </p>
543
 </div>
559
 </div>
544
 </div>
560
 </div>
545
 
561
 
546
-<div id="outline-container-org0ef8d45" class="outline-2">
547
-<h2 id="org0ef8d45">Blogging</h2>
548
-<div class="outline-text-2" id="text-org0ef8d45">
562
+<div id="outline-container-org04f400a" class="outline-2">
563
+<h2 id="org04f400a">Blogging</h2>
564
+<div class="outline-text-2" id="text-org04f400a">
549
 <p>
565
 <p>
550
 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.
566
 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.
551
 </p>
567
 </p>