evaluation of 6lowpan implementations

32
Evaluation of 6LoWPAN Implementations Kevin Dominik Korte Jacobs University Bremen October 20, 2009 Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 1

Upload: others

Post on 12-Sep-2021

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Evaluation of 6LoWPAN Implementations

Evaluation of 6LoWPAN Implementations

Kevin Dominik Korte

Jacobs University Bremen

October 20, 2009

Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 1

Page 2: Evaluation of 6LoWPAN Implementations

It works, but ...

Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 2

Page 3: Evaluation of 6LoWPAN Implementations

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

Page 4: Evaluation of 6LoWPAN Implementations

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

Page 5: Evaluation of 6LoWPAN Implementations

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

Page 6: Evaluation of 6LoWPAN Implementations

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

Page 7: Evaluation of 6LoWPAN Implementations

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

Page 8: Evaluation of 6LoWPAN Implementations

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

Page 9: Evaluation of 6LoWPAN Implementations

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

Page 10: Evaluation of 6LoWPAN Implementations

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

Page 11: Evaluation of 6LoWPAN Implementations

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

Page 12: Evaluation of 6LoWPAN Implementations

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

Page 13: Evaluation of 6LoWPAN Implementations

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

Page 14: Evaluation of 6LoWPAN Implementations

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

Page 15: Evaluation of 6LoWPAN Implementations

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

Page 16: Evaluation of 6LoWPAN Implementations

TelosB

Figure: TelosB motes

Texas InstrumentsMSP430

10k Ram

48k Flash Memory

USB to Serial Port

Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 16

Page 17: Evaluation of 6LoWPAN Implementations

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

Page 18: Evaluation of 6LoWPAN Implementations

Mote Setup

Motes are placed next to each other

Minimizes interference

Maximum signal strength

Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 18

Page 19: Evaluation of 6LoWPAN Implementations

Mote Setup Mesh Routing and Interoperability

Figure: Mote positions for mesh routing and interoperability

Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 19

Page 20: Evaluation of 6LoWPAN Implementations

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

Page 21: Evaluation of 6LoWPAN Implementations

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

Page 22: Evaluation of 6LoWPAN Implementations

Dispatch Header

Well supported by all 6LoWPAN implementations

All Dispatch codes are supported

Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 22

Page 23: Evaluation of 6LoWPAN Implementations

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

Page 24: Evaluation of 6LoWPAN Implementations

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

Page 25: Evaluation of 6LoWPAN Implementations

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

Page 26: Evaluation of 6LoWPAN Implementations

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

Page 27: Evaluation of 6LoWPAN Implementations

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

Page 28: Evaluation of 6LoWPAN Implementations

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

Page 29: Evaluation of 6LoWPAN Implementations

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

Page 30: Evaluation of 6LoWPAN Implementations

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

Page 31: Evaluation of 6LoWPAN Implementations

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

Page 32: Evaluation of 6LoWPAN Implementations

THANK YOU

Questions?

Kevin Dominik Korte Evaluation of 6LoWPAN Implementations 32