Professional Documents
Culture Documents
David E. Culler
University of California, Berkeley
Jonathan Hui
Cisco Systems, Inc.
Zach Shelby
Sensinode
All of these can interoperate in real applications Interoperate with traditional computing infrastructure Utilize modern security techniques Application Requirements and Capacity Planning dictate how the network is organized,
not artifacts of the underlying technology
IP Network
(powered)
Wireless links
802.15.4 Class Lifetime (days) Net Size BW (kbps) Range (m) WPAN 100-1000+ 65535 20-250 1-75+ Low Power, Large Scale, Low Cost
Goals
Throughput
Throughput
Application (Telnet, FTP, SMTP, SNMP, HTTP) Transport (UDP/IP, TCP/IP) Network (IPv6) Link
802.3 802.5 802.3a Ethernet Token Ring 802.3i Ethernet 802.3y Ethernet 10b2 802.3ab Ethernet 10bT 802.3an Ethernet 100bT Ethernet 1000bT 1G bT 6LoWPAN 802.11 802.11a WiFi 802.11b WiFi 802.11g WiFi 802.11n WiFi WiFi 802.15.4 LoWPAN
8-20+ bytes
IPv6
Network Payload
Minimum MTU >> 802.15.4 MTU Fragmentation 48+ byte UDP IPv6 Header Header Compression Defines a Chained Header format via Dispatch
Analogous to IPv6 Header stack
6LoWPAN Fragmentation
802.15.4-2006 has a link MTU of 127 bytes IPv6 requires a min link MTU of 1280 bytes 6LoWPAN must provide fragmentation
802.15.4 IPv6 Datagram
802.15.4
802.15.4 802.15.4
6LoWPAN Fragmentation
802.15.4 Frag IPv6 Datagram (Frag 1)
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
1 1 0 0 0
dgram_size
dgram_tag
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
1 1 1 0 0
dgram_size
dgram_tag
dgram_offset
Tag: identifies all fragments of a datagram Offset: location of fragment in 8-byte units
Elided in first fragment
IPv6 Header
0 4 8 12 16 24 28 32 36 40
Ver
Destination Address
Use little state and do no depend on flows Common values for header fields => compact forms
Version is always 6 Traffic Class and Flow Label are zero Payload Length always derived from L2 header Source and Destination Addrs are link-local and derived from L2 addrs
TF
NH
HLIM
CID SAC
SAM
DAC
DAM
M (Multicast Destination)
0: Destination is not multicast, 1: Destination is multicast
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
TF = 00
IPHC
ECN
DSCP
rsv
Flow Label
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
TF = 01
IPHC
ECN rsv
0 1 2 3 4 5 6 7
Flow Label
[DSCP = 0]
TF = 10 TF = 11
IPHC
ECN
DSCP
[Flow Label = 0]
IPHC
11
IPHC
NHC
Hop Limit
HLIM = 00 HLIM = 01 HLIM = 10 HLIM = 11
IPHC Inline IPv6 Bits Hop Limit Inline IPv6 Bits
IPHC
IPHC
IPHC
12
128 bits
Prefix
Addrs within 6LoWPAN typically contain common prefix Nodes typically communicate with one or few central devices Establish state (contexts) for such prefixes only state maintenance Support for up to 16 contexts
Interface Identifier
Typically derived from L2 addr during autoconfiguration Elide when Interface Identifier can be derived from L2 header
128 bits
Bits [112,127]
14
128 bits
15
DAM = 00
0xFF
Flags Scope
DAM = 01
Flags Scope
DAM = 10
Flags Scope
DAM = 11
802.15.4
v 6 s ed I P es d r s e mp es o pr i s c om C P v6 I w o H
ow
is
co
e pr
Assume common values for header fields and define compact forms
Ports within 61616 to 61632 (4 bits) Length derived from IPv6 Length Checksum may be elided if other integrity checks are in use (e.g. Ipsec)
C (Checksum): 0: Inline, 1: Elide P (Ports): 0: Inline 1: Elide first 8 bits of Dest Port 2: Elide first 8 bits of Source Port 3: Elide first 12 bits of Source and Dest Ports
Link Hdr
IPv6 Hdr
Ver = 6
Flow Label = 0 Next Header = UDP Source Prefix = fe80::/64 Hop Limit = 1 Derived from link hdr Compact forms
UDP Hdr
802.15.4
Link Hdr
IPv6 Hdr
Ver = 6
Flow Label = 0 Next Header = UDP Source IID = ::1234 Hop Limit = 23 Derived from link hdr Compact forms Derived from context Destination Port Checksum
UDP Hdr
802.15.4
Link Hdr
IPv6 Hdr
Ver = 6
Flow Label = 0 Next Header = UDP Source Prefix = fe80::/64 Hop Limit = 255 Derived from link hdr Compact forms Dest Prefix = ff02::1
UDP Hdr
802.15.4
6LoWPAN ND at a Glance
LoWPAN in an IP Stack
LoWPAN 802.15.4 1% of 802.11 power, easier to embed, as easy to use. 8-16 bit MCUs with KBs, not MBs. Off 99% of the time
Web Services
XML / RPC / REST / SOAP / OSGI HTTP / FTP / SNMP TCP / UDP IP Ethernet Sonet 802.11
ya w t a G yx o P e / r
802.15.4,
IETF 6lowpan
24
Conclusion
6LoWPAN turns IEEE 802.15.4 into the next IP-enabled link Provides open-systems based interoperability among lowpower devices over IEEE 802.15.4 Provides interoperability between low-power devices and existing IP devices, using standard routing techniques Paves the way for further standardization of communication functions among low-power IEEE 802.15.4 devices Offers watershed leverage of a huge body of IP-based operations, management and communication services and tools Great ability to work within the resource constraints of lowpower, low-memory, low-bandwidth devices like WSN
25