190 likes | 270 Views
Prof. Kristofer S.J. Pister’s team Berkeley Sensor and Actuator Center University of California, Berkeley. Part VI Integration into the Internet Dr. Thomas Watteyne. Prof. Kristofer S.J. Pister’s team Berkeley Sensor and Actuator Center University of California, Berkeley. Goal.
E N D
Prof. Kristofer S.J. Pister’s teamBerkeley Sensor and Actuator Center University of California, Berkeley
Part VI Integration into the InternetDr. Thomas Watteyne Prof. Kristofer S.J. Pister’s teamBerkeley Sensor and Actuator Center University of California, Berkeley
Goal • Integrate your sensor network with the Internet, so that: • Every mote is “just another host” on the Internet; • You can interact with your sensor network from any computer on the Internet. wsn.eecs.berkeley.edu
Outline • How do I build a bridge between my sensor network and the Internet? • How can my laptop interact with an IPv6-ready WSN? wsn.eecs.berkeley.edu
Outline • How do I build a bridge between my sensor network and the Internet? • How can my laptop interact with an IPv6-ready WSN? wsn.eecs.berkeley.edu
Bridging Internet and motes • Low-power Border Router is connected to: • the Internet (e.g. Ethernet) • a mote • Mote appears like a layer 2 interface: • Configure mote’s IPv6 address • Activate IP forwarding • Bridging happens at layer 3
Distributing IPv6 Prefix to motes interface tun0 { AdvSendAdvert on; MinRtrAdvInterval 10; MaxRtrAdvInterval 20; prefix 2001:470:1f05:dff::/64 { AdvOnLink off; AdvAutonomous on; AdvRouterAddr on; }; }; • Neighbor Discovery • RFC2461 (6LoWPAN-ND-11 draft, to some extent) • Router Solicitation (ICMPv6 type 133) • Router Advertisement (ICMPv6 type 134) • Neighbor Solicitation (ICMPv6 type 135) • Neighbor Advertisement (ICMPv6 type 136) • Redirect Message (ICMPv6 type 137) • Router Advertisement Options • Can contain 6LoPWAN IPHC-07 contexts • Can contain Prefix information • Which can be used for Stateless Address Auto-configuration is bit “A” is set • RADVD is the Linux tool to send Router Advertisements • apt-get install radvd • create /etc/radvd.conf • /etc/init.d/radvd start
Outline • How do I build a bridge between my sensor network and the Internet? • How can my laptop interact with an IPv6-ready WSN? wsn.eecs.berkeley.edu
Interacting with your IPv6-ready WSN • Point-to-point connectivity • IPv6-in-IPv4 tunneling • Native IPv6 • IPv6-to-IPv4 proxying
Interacting with your IPv6-ready WSN 2. IPv6-in-IPv4 tunneling 3. Native IPv6 1. point-to-point connectivity 4. IPv6-to-IPv4 proxying
1. Point-to-Point Connectivity serial 10’s meters indoors • no infrastructure required • you need extra hardware • you need to be really close
2. IPv6-in-IPv4 tunneling IPv6 tunnel server (Hurricane Electric) you establish a tunnel IPv4 • transparent for your application • you need to set up the tunnel wsn.eecs.berkeley.edu
3. Native IPv6 your router establishes the tunnel IPv6 tunnel server (Hurricane Electric) IPv4 IPv6 • the easiest solution for you • the hardest solution for your network admin (workshop configuration)
4. IPv6-to-IPv4 proxying IPv6 Proxy server IPv4 • you do not need an IPv46address • no firewall issues • not transparent for the software • if you want to add traffic type, you need to update the proxy
Prof. Kristofer S.J. Pister’s teamBerkeley Sensor and Actuator Center University of California, Berkeley