77
Mesh Networks Willem A. Schreüder ACØKQ Denver Radio League May 27, 2015 With many slides stolen from the BBHN website

Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Mesh Networks

Willem A. Schreüder ACØKQ

Denver Radio LeagueMay 27, 2015

With many slides stolen from the BBHN website

Page 2: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

What is It?● High speed

– 10 megabit or faster

● Self-configuring– Automatic routing of packets

– Multi-hop

● Fault-tolerant– Routes around failed nodes

● Data network– Standard Internet Protocol

Page 3: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

What do you do with it?

● Transport packets from one location to another● Applications

– Anything that works on a LAN

● Use cases– Ham fest

– Field day

– Public service events

– Emergencies

– Private network

Page 4: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

What is new here?

● Operating at higher power in the ham bands– 2.4 GHz, 5GHz

● Mesh– Nodes are peers

– Multi-hop (packet forwarded by neighbors)

– Self-configuring (automatic neighbor discovery)

– Redundant (automatically discover new paths)

– No configuration (new nodes added automatically)

Page 5: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Example Network

Page 6: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

How did this happen?

● Hams that put this together– Started as ARES-MESH in Travis County, TX

– Became High Speed Multi-Media (HSMM)

– Evolved into Broadband Hamnet (BBHN)

– Fork to Amateur Radio Emergency Data Network (AREDN) – not sure where that is headed

● FCC declared it legal– Encryption is legal for protecting data networks

– Traffic should be Part 97 appropriate

Page 7: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Hardware - Linksys

– WRT54G v. 1.0 – 4.0

– WRT54GS v. 1.0 – 4.0

– WRT54GL v. 1.0 – 1.1

– A few others● Check the web site

– Other versions do not work because of inadequate memory or changes to the chipsets

`

Page 8: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Hardware - Ubiquity

● Airgrid● Bullet● Rocket● Nanostation

Page 9: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

How do you get started● Web site with software and instructions

– http://www.broadband-hamnet.com/

● Find suitable hardware● Install the firmware● Configure the node with your callsign● Join the revolution...

Page 10: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Download Firmware - 1

Page 11: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Download Firmware - 2

`

Page 12: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Download Firmware - 3

Page 13: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Connect via Ethernet to the LAN

Page 14: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

If necessary, reset the device to factory defaults by holding the reset

button for about 10 seconds

Page 15: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Point browser to http://192.168.1.1/User name admin Password admin

Page 16: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Select Administration

Page 17: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Select Firmware Upgrade

Page 18: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Browse to select firmwareSelect Upgrade

Page 19: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

www.HSMM-MESH.org

DO NOT remove power while it is updating

Page 20: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

www.HSMM-MESH.org

Router will reboot and become a MESH node when you click Continue

Page 21: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Your computer now needs to get a an new IP address from the router

● Unplug the ethernet cable● Close your browser

– It may cache information

● Wait for the router lights to stop flashing● Plug the cable back in● Start your browser again

Page 22: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

www.HSMM-MESH.org

Type IPCONFIG /release <enter> and then IPCONFIG /renew <enter>. It should then show

like the text in the yellow box below.

Page 23: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Start Setup http://localnode:8080/

Page 24: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

User name root Password hsmm

Page 25: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Initial Setup Screen

`

Page 26: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Selecting a node name

● Your call sign should be in the node name in order to properly identify ham operations

● The node name must be unique– Callsign followed by -XXX is customary

– Maximum node name length is 64 characters

Page 27: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Enter Node Name and Password

`

Page 28: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Node will reboot

Page 29: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Get a new IP address for the PC

● Unplug the ethernet cable● Wait for the router lights to stop flashing● Plug the ethernet cable back in● On windows additional fooling around may be

required to allow connection to the new network

Page 30: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Connect to http://localnode:8080/

Page 31: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

If there is a gateway mesh node, OLSR will discover it and put you online

Page 32: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

When online, NTP sets the time

Page 33: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

View the Mesh

Page 34: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Mesh Status

Page 35: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Neighboring Mesh Node

Page 36: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Clicking on the neighbor takes you to its status screen

Page 37: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Attached Clickable Link

Page 38: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Attached Web Service (BPQ)

Page 39: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Select Setup on Neighbor Node

Page 40: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Select Services on Neighbor Node

Page 41: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Reserving a DHCP address makes it visible to the rest of the mesh

Page 42: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

A service your browser understands can be made into a clickable link

Page 43: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Plug in a new device, refresh and when it gets its address click Add

Page 44: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Initially it shows up as nonameX

Page 45: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Pick a hostname and Save ChangesHostname must be unique on mesh

Page 46: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

The new host shows up mesh wide

Page 47: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

You can also access an device on the mesh by name

Page 48: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

You can also log directly into each node from the command line

User root Port 2222

Page 49: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Each mesh node is aregular Linux Box

Page 50: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

The Kernel and CPU

Page 51: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Installing Packages - 1

Page 52: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Installing Packages - 2

Page 53: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Installing Packages -3

Page 54: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Installing Packages - 4

Page 55: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Download oslr-topology view(needs a Linux machine)

● Install prerequisites if necessary– apt-get install graphviz imagemagick

Page 56: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Download oslr-topology view(needs a Linux machine)

● Install prerequisites if necessary– apt-get install graphviz imagemagick

Page 57: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Show the OLSR network witholsr-topology-view

Page 58: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

More Setup

Page 59: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Node Type

● Mesh Node (default)– WiFi used for mesh, wired ports for LAN and WAN

– WiFi can only be used to talk to MESH nodes

● Mesh Access Point– Wired connection to Mesh Node via LAN port, WiFi and

LAN ports used for LAN access

● Non-mesh modes– Standard Access Point (acts like a non-mesh router)

– Wireless Client (WiFi to wired access)

– Wired Router (WiFi disabled)

Page 60: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

LAN mode

● Direct mode (default) is best for a flat network– 5 hosts (default) good for 4 port device

– 15 hosts for larger LAN (e.g. with switch)

– 1 host when attached to a smart devicesuch a another router

● NAT mode translates LAN addresses– This is what your regular internet router does

– Requires port forwarding to go MESH to LAN

Page 61: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

WiFi IP is selected automatically

Page 62: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

DO NOT change the SSID

Page 63: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Default max power and diversity

Page 64: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

For long range, experiment with thisNote that values are in meters

Page 65: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Enable Mesh Gateway if this node can provide external access

Page 66: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

DNS by Google

Page 67: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

WAN IP by DHCP

Page 68: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Static WAN IP

Page 69: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

WAN access to the meshmust be explicitly enabled

Page 70: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

WAN 22 maps to localnode sshWAN 80 maps to localnode http

Page 71: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Versions and Updates

● Versions with same major numbers interoperate– 3.X.Y will talk to each other

– 1.X.Y will only talk to other 1.X.Y

● When you update the software, you will need to re-configure the node

● If you patch the software, the configuration is retained

Page 72: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Upgrades can be done from the GUI

Page 73: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Hints and Kinks

● Only unobstructed line of sight works● Take good care of Linksys devices

– They run at max power, so make sure it is well ventilated

– Keep them dry, they don't like getting wet

● Nodes can only talk when they can hear each other,so an amplifier is a bad idea

● High gain antennas are a very good idea● For longer range use Ubiquity radios

– Higher power

– Can be mounted outdoors

– Powered over Ethernet

Page 74: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Refused Installs

● Check that you have the right type of router● Upgrade the firmware to the latest from Linksys

and then try to upgrade to MESH● Upgrade the firmware using tftp

● tftp 192.168.1.1 << ENDbinput bbhn-3.1.0-wrt54gs-2.4-squashfs.binEND

● Google WRT tftp install for more details

● If you are desperate, try the JTAG method

Page 75: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Internal Architecture of the WRT54G

Page 76: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

A better mount: W5MAE Rootenna

Page 77: Denver Radio League May 27, 2015 · 2015. 5. 25. · Denver Radio League May 27, 2015 With many slides stolen from the BBHN website. ... – Multi-hop (packet forwarded by neighbors)

Conclusions

● The MESH approach is great for moving IP● Setup is easy

– Defaults works for most situations

– Mesh configuration is automatic

● Hardware is readily available– Linksys hardware great for short distances

– Ubiquity hardware great for long distances

● Open source software is powerful and flexible– Nodes run a Linux kernel