Off-Grid Communications with Android
summary
Project SPAN builds an Android mesh: a transparent proxy + reliable transmission layer that redirects app TCP/UDP through a routing service, requires root and Wi‑Fi wireless extensions, and runs on Broadcom chipsets (Galaxy Nexus kernel recompile). Tests show two Galaxy Nexus phones at 150–200 ft and early field runs with ~40 nodes; German fry_funk reaches 500+ nodes. Bridges use an Alpha wireless USB dongle for dual adapters and internet backhaul. Security experiments include NFC bumps and serval-style public‑key-as-IP addressing; a three‑node demo works.
AI-written summary · about
chapters (16)
- 0:00Intro
- 2:43Why do I care about Mesh networks? . Physical infrastructure is prone to failure, networks shouldn't be Bypass the Cellular networks Bypass Wi-Fi networks • Share information when infrastructure is broken or untrustworthy • Extend and bounce other networks via bridging / tethering
- 4:51Your pocket contains more than a consumption device for Grumpy Fowl Wi-Fi chip with a fairly fat pipe . Cell modem and baseband processor • A ton of sensors (Somewhat) quality NAND and RAM A very under clocked and underutilized processor Power - A boring screen that blinks!
- 5:33The SPAN framework • We did the boring stuff so you don't have to! . General Overview of the framework, what why/ how - Harnessing SPAN for your own project? - Repurpose root to muck with your Wi-Fi
- 13:34Android 4.0 (ICS) devices filter out UDP broadcasts when the screen is off Wifi Manager. WifiLock doesn't help First approach: Force screen to always stay dimmed eve when user presses power button Create wakelock
- 15:40Plug and Play / Dynamic routing algorithms and you! Adjusting packet routing at runtime, a 5 minute primer on untrustworthy routing tables The tradeoffs of Bandwidth vs. Network Scale and Multi-Hop headaches • File share, Chat, Disconnected Twitter and VOIP over a Mesh. Oh, the fun we can have.
- 18:04Optimized Link State Routing Protocol 20 Link-state protocol - Nodes know who they can talk to - Each node calcs entire route to every other ne • Proactive - Routes periodically planned in advance - Kernel-level routing table modified on-the-fly Dijkstra Open Shortest Path First algorithm Layer 3 in OSI stack
- 26:55Stale routing table = What routing table? . Now we can play with motion and location in a useful way Don't forget that if you pack node location into the headers it can been seen by others • Downsides come with throughput issues
- 30:17Jumping over the cell network or Wi-Fi . Your phone has at least 2 network ports (Wi-Fi & Cell): - We can connect them - We can bridge them Tablet with no cell chip? - Plug in an ALFA wireless USB dongle
- 32:48Static IP assignment Generate a unique IP based on phone MA address, IMEI, etc. DHCP requires a server or global knowledge of IPs in use
- 35:36Share symmetric key in config file distributed in-person via NFC Symmetric encryption using P2P Diffie- Helman key exchanges Asymmetric encryption using public / private key pair . A third party certificate authority isn't practical
- 37:29(P2P) connections over Wi-Fi Direct Initial ICS drop is a very lame partial implementation of the spec - Kind of works like Bluetooth pairing - Wi-Fi doesn't support connecting to an AP anu P2P at the same time • Possible upgrade in JB?
- 38:52Root required • Need root to modify iptables/routing tables • Need root to mess with Wi-Fi driver and put phone in ad-hoc mode Grab Zerg, wrap in APK and pop the phone on install . Over the Air install?
- 41:12Apple gave us a built in Wi-Fi proxy configurable with the iPhone Configuration Utility Ooohhh, is that an APN setting as well? Cool, now all we need is a simple server to proxy and route our data
- 42:23What else can we use the Mesh for? Mobile data redundancy using the Torrent protocol to raid data across all devices? • Distribute threads and tasks across a cloud of unused processors? Spoofing?
- 45:27German for "Free radio" Non-commercial open grassroots initiative to support free open radio networks in Germany Offers specialized OpenWrt-firmware - Routing based on OLSR or BATMAN Freifunk Berlin has 500+ nodes
