Prof. Kristofer S.J. Pister’s teamBerkeley Sensor and Actuator Center
University of California, Berkeley
Prof. Kristofer S.J. Pister’s teamBerkeley Sensor and Actuator Center
University of California, Berkeley
Part VIIntegration into the Internet
Dr. Thomas Watteyne
3
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
4
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
5
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
6
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
HTTP, XML, OpenADR
TCP, UDP
IPv6
Ethernet IEEE802.15.4e
CAT5 twisted pair IEEE802.15.4-2006
9
Distributing IPv6 Prefix to motes
• 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
interface tun0 { AdvSendAdvert on; MinRtrAdvInterval 10; MaxRtrAdvInterval 20; prefix 2001:470:1f05:dff::/64 { AdvOnLink off; AdvAutonomous on; AdvRouterAddr on; };};
10
11
12 The OpenWSN topology
13
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
15
Dual Stack
16
Interacting with your IPv6-ready WSN
1. Point-to-point connectivity2. IPv6-in-IPv4 tunneling3. Native IPv64. IPv6-to-IPv4 proxying
17
Interacting with your IPv6-ready WSN
1. point-to-point connectivity
2. IPv6-in-IPv4 tunneling 3. Native IPv6
4. IPv6-to-IPv4 proxying
18
1. Point-to-Point Connectivity
serial
10’s meters indoors
• no infrastructure required• you need extra hardware• you need to be really close
19
2. IPv6-in-IPv4 tunneling
IPv6
IPv4
you establish a tunnel
tunnel server(Hurricane
Electric)
• transparent for your application• you need to set up the tunnel
wsn.eecs.berkeley.edu
22
IPv4
3. Native IPv6
IPv6
IPv6
tunnel server(Hurricane
Electric)
your router establishes the tunnel
(workshop configuration)
• the easiest solution for you• the hardest solution for your network admin
23
IPv4
4. IPv6-to-IPv4 proxying
IPv6Proxy server
• 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