evaluation of 6lowpan implementations
TRANSCRIPT
Evaluation of 6LoWPAN Implementations
Kevin Dominik Korte
Jacobs University Bremen
October 20, 2009
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 1
It works, but ...
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 2
Outline
1 Motivation
2 IEEE 802.15.4 and 6LoWPAN
3 6LoWPAN Implementations, Motes, Settings
4 Interoperability Evaluation
5 Conclusions
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 3
Motivation
Goal: Qualitative comparison of 6LoWPANImplementations
Some demonstrations for interoperability testing havebeen shown at Arch Rocks San Francisco headquartersand at the 70th IETF meeting
This work is the 1st published results considering fullinteroperability testing
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 4
Outline
1 Motivation
2 IEEE 802.15.4 and 6LoWPAN
3 6LoWPAN Implementations, Motes, Settings
4 Interoperability Evaluation
5 Conclusions
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 5
IEEE 802.15.4
Low power, low cost radio interface
Ranges of about 25-50 meters
Requires mesh routing from the upper layer protocol
Frame size 127 octets (excluding the frame headers)
1
Frame
control
Sequence
number
Destination
identifierPAN
Destination
address
SourcePAN
identifier
Source
address
Frame Frame
checksequence
octets: 2 0/2 0/2/8
payload
0/2 0/2/8 variable 2
Figure: IEEE 802.15.4 Header
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 6
General
IPv6 over Low Power Wireless Personal Area Networks
Adapts IPv6 to IEEE 802.15.4 devices
IPv6 compatible
Without using too much resources
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 7
Dispatch Header and Type
The dispatch selector is always the first header in asequence of headers
The dispatch header defines which header is the next inthe sequence of headers
PayloadHeader IPv6
Payload
octets: 1 40 variable
Header
(HC1 Dispatch)
octets: 1
HC1
encoding
1 variable variable
IPv6
header
fieldsheader typetype
(IPv6 Dispatch)
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 8
Compression
HC1 compression for the IPv6 header
Reduces the size in the best case by 39 octets
Only compresses link-local addresses
HC2 compression for the UDP header
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 9
Compression
max. 127 octets
preamble 802.15.4 MAC header FC
S
2max. 23 / 44
DS
P
1
UDP
8 up to 54 / 33
payloaduncompressed IPv6 header
40
max. 127 octets
802.15.4 MAC headerpreamble FC
S
2max. 23 / 44
DS
PH
C1
IPv6
1 1 1
UDP payload
8 up to 92 / 71
max. 127 octets
preamble 802.15.4 MAC header
max. 23 / 44
DS
PH
C1
1 1 1
HC
2
UD
PIP
v6
1 3 2
FC
S
payload
up to 97 / 76
Figure: Uncompressed and compressed 6LoWPAN header
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 10
Fragmentation
IPv6 minimum MTU 1280 octets
IEEE 802.15.4 frame size 127 octets
6LoWPAN defines fragmentation and reassembly process
1 minute timeout for reassembly
Often only 1 buffer available
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 11
Mesh Routing
Maximum radio range 25m indoors / 50m outdoors
Widespread networks impossible without mesh routing
Intermediate motes act as routers
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 12
Multicasting
Used for discovering the IP to MAC mapping
802.15.4 does not support multicasting, only broadcastingis available
All the tested 6LoWPAN implementations relied on802.15.4 broadcasting
There is a discussion in the IETF to replace broadcastingby a state full system
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 13
Outline
1 Motivation
2 IEEE 802.15.4 and 6LoWPAN
3 6LoWPAN Implementations, Motes, Settings
4 Interoperability Evaluation
5 Conclusions
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 14
Implementations
Table: List of 6LoWPAN Implementations
Name OS / License Hardware MaintainedJacobs TinyOS / 3BSD Telos B, . . . no
Berkeley IP TinyOS / 3BSD Telos B, . . . activeArch Rock TinyOS / EULA Raven, . . . active
SICSlowpan Contiki / 3BSD Raven, . . . activeSensinode Own / EULA Sensinode active
Hitachi Own / EULA Renesas unknown
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 15
TelosB
Figure: TelosB motes
Texas InstrumentsMSP430
10k Ram
48k Flash Memory
USB to Serial Port
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 16
Amtel Raven
Figure: Raven Motes, USB stickand Programming kit
ATmega3290P forUser IO operations
ATmega1284P forthe RF Stacks
Serial LCD Display
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 17
Mote Setup
Motes are placed next to each other
Minimizes interference
Maximum signal strength
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 18
Mote Setup Mesh Routing and Interoperability
Figure: Mote positions for mesh routing and interoperability
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 19
Outline
1 Motivation
2 IEEE 802.15.4 and 6LoWPAN
3 6LoWPAN Implementations, Motes, Settings
4 Interoperability Evaluation
5 Conclusions
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 20
Framing
All the 6LoWPAN implementations utilize IEEE 802.15.4frame format
The Jacobs implementation uses the TinyOS ActiveMessage format
First 6LoWPAN implementation for TinyOS
Active Message was the only available option forcommunication at that time
Active Message inserts an additional field between theIEEE802.15.4 header and the 6LoWPAN header
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 21
Dispatch Header
Well supported by all 6LoWPAN implementations
All Dispatch codes are supported
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 22
Compression Header
HC1 is supported by all 6LoWPAN implementations
HC2 for UDP is supported by Arch Rock only at theinteroperability evaluation time
Contiki and Arch Rock support not only the local linkcompression but also a global and state full compression
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 23
Fragmentation Header
Tested by sending ICMP echo requests of different sizes
Fragmentation is supported by all the 6LoWPANimplementations
Drop rate of a big IPv6 packet is higher than the droprate of the smaller packet with the same accumulative size
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 24
Mesh Routing
Tested by moving two motes out of the radio range andplacing a third in between
Supported by Berkeley IP, Contiki, and Arch Rock
Drop rate higher than the accumulated drop rate of thetwo hops
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 25
Multicasting
All the tested 6LoWPAN implementations relied onbroadcasting for neighborhood discovery
Broadcasting is also used for mesh neighborhooddiscovery
Works reliable in the mote local range
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 26
Summary
Table: Implemented features: + means supported and tested, omeans supported but not tested, - means not supported
Feature Jacobs Berkeley Contiki Arch Rock
Dispatch Header + + + +
Dispatch Type + + + +
Mesh Routing & Header - + + +
Multicasting Header - + + +
Multicasting + + + +
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 27
Summary
Table: Implemented features: + means supported and tested, omeans supported but not tested, - means not supported
Feature Jacobs Berkeley Contiki Arch Rock
Fragmentation + + + +
HC1 + + + +
HC2 for UDP - - - +
HC1g - - o o
ICMPv6 Echo + + + +
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 28
Outline
1 Motivation
2 IEEE 802.15.4 and 6LoWPAN
3 6LoWPAN Implementations, Motes, Settings
4 Interoperability Evaluation
5 Conclusions
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 29
Conclusions
It works!
For ArchRock, SICSlowpan, and Berkeley IP
Not for all channels
Arch Rock seems to dislike Berkeley IP motes withsmaller mote numbers
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 30
Conclusions
The 6LoWPAN implementations are following the6LoWPAN standard pretty well
The documentation provided for the 6LoWPANimplementations is inadequate
Further investigation needed for fragmentation, meshrouting, mote and channel number selection
Quantitative performance analysis is a potential futurework
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 31
THANK YOU
Questions?
Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 32