6-ipv6x - University of California, Berkeley

Download Report

Transcript 6-ipv6x - University of California, Berkeley

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
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 IPv6ready 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 IPv6ready 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
interface tun0 {
AdvSendAdvert on;
MinRtrAdvInterval 10;
MaxRtrAdvInterval 20;
RFC2461 (6LoWPAN-ND-11 draft, to some extent)
prefix 2001:470:1f05:dff::/64 {
• Router Solicitation (ICMPv6 type 133)
AdvOnLink off;
• Router Advertisement (ICMPv6 type 134)
AdvAutonomous on;
AdvRouterAddr on;
• Neighbor Solicitation (ICMPv6 type 135)
};
• Neighbor Advertisement (ICMPv6 type 136)
};
• Neighbor Discovery
–
• 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
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 IPv6ready WSN?
wsn.eecs.berkeley.edu
15
Dual Stack
16
Interacting with your IPv6-ready WSN
1.
2.
3.
4.
Point-to-point connectivity
IPv6-in-IPv4 tunneling
Native IPv6
IPv6-to-IPv4 proxying
17
Interacting with your IPv6-ready WSN
2. IPv6-in-IPv4
tunneling
3. Native IPv6
1. point-to-point
connectivity
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
you establish
a tunnel
IPv6
IPv4
• transparent for your application
• you need to set up the tunnel
wsn.eecs.berkeley.edu
tunnel server
(Hurricane
Electric)
22
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)
23
4. IPv6-to-IPv4 proxying
Proxy server
IPv6
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 team
Berkeley Sensor and Actuator Center
University of California, Berkeley