1 Samsung Open Source Group
Stefan Schmidt Samsung Open Source Group stefan@osg.samsung.com
6LoWPAN: An Open IoT Networking Protocol OpenIoT Summit 2016 San - - PowerPoint PPT Presentation
6LoWPAN: An Open IoT Networking Protocol OpenIoT Summit 2016 San Diego Stefan Schmidt Samsung Open Source Group stefan@osg.samsung.com Samsung Open Source Group 1 6LoWPAN: An Open IoT Networking Protocol Open: Specified by the IETF
1 Samsung Open Source Group
Stefan Schmidt Samsung Open Source Group stefan@osg.samsung.com
2 Samsung Open Source Group
– Specifications available without any membership or license fees – Designed and developed in public
– Usage of IPv6 to make use of internet protocols – Leverage on the success of open protocols in contrast to
proprietary solutions
– Application layer protocols are flexible and can vary – Often used together with CoAP, MQTT, etc
3 Samsung Open Source Group
4 Samsung Open Source Group
5 Samsung Open Source Group
Internet IEEE 802.15.4
6 Samsung Open Source Group
existing and proven protocols driving the internet
limitations (which are useful for power savings)
data, compared to the usage scenarios of a Smartphone, PC ..
Internet IEEE 802.15.4
7 Samsung Open Source Group
from native 6LoWPAN support
routers which already run Linux
802.15.4 subsystem ready in the Linux kernel
Internet IEEE 802.15.4
8 Samsung Open Source Group
after the success of the Internet
– Direct addressing of nodes – Re-usage of proven protocols
– Adaptations needed for MTU size – Reduce of header overhead – UDP (DTLS) instead of TCP to avoid latencies
9 Samsung Open Source Group
10 Samsung Open Source Group
11 Samsung Open Source Group
12 Samsung Open Source Group
13 Samsung Open Source Group
14 Samsung Open Source Group
(RFC4944)
RFC7400)
15 Samsung Open Source Group
L3 Network Layer L4 Transport Layer L1 Physical Layer L5 Application Layer L2 Data Link Layer IP TCP | UDP | ICMP Ethernet PHY Application Ethernet MAC IPv6 UDP | ICMPv6 6LoWPAN IEEE 802.15.4 PHY Application IEEE 802.15.4 MAC
16 Samsung Open Source Group
(other PHY's will vary here)
packets
with fragmentation
networks
17 Samsung Open Source Group
Frame Header (25) LLSEC (21) IPv6 Header (40) UDP Payload (33)
18 Samsung Open Source Group
– Version == 6, traffic class & flow-label == 0, hop-limit only well-known values (1, 64 or 255) – Remove the payload length (available in 6LoWPAN fragment header or data-link header) – Addresses (link-local, global, multicast)
– Eliding the IPv6 prefix (global known by network, link-local defined by compression) – Using the EUI-64 L2 address – Using the short address in following format PAN_ID:16 bit zero:SHORT_ADDRESS
Version Source Address (128 bit) Destination Address (128 bit) Traffic Class Flow Label (20 bit) Payload Length (16 bit) Next Header Hop Limit (8 bit)
IPv6 Header (40 bytes)
Source Address Dispatch
6LoWPAN Header IPHC multi-hop (7 bytes)
Hop Limit LoWPAN_IPHC Destination Address Dispatch
6LoWPAN Header IPHC link-local (2 bytes)
LoWPAN_IPHC
19 Samsung Open Source Group
20 Samsung Open Source Group
– Better compression for global and multicast addresses not only link-local – Compress header fields with common values: version, traffic class, flow label,
hop-limit
– Hop-by-Hop, Routing Header, Fragment Header, Destination Options Header,
Mobility Header
– Compressing ports range to 4 bits – Allows to elide the UDP checksum for cases where upper layers handle message integrity
21 Samsung Open Source Group
Frame Header (25) LLSEC (21) 6 Payload (75) Dispatch (1) LOWPAN_IPHC (1)LOWPAN_NHC (1) UDP Ports (1) UDP Checksum (2)
22 Samsung Open Source Group
should be compressed
– Appending zeroes – Backreferencing to a static dictionary – Copy data as is
23 Samsung Open Source Group
– EUI-64 hardware address use as is – Pseudo 48bit address based on short address:
24 Samsung Open Source Group
25 Samsung Open Source Group
26 Samsung Open Source Group
27 Samsung Open Source Group
Bluetooth-next tree
28 Samsung Open Source Group
drivers (wpan0 interface)
and acts as adaptation layer to be used by the normal IPv6 kernel stack (lowpan0 interface)
fragmentation and reassembly between the different MTU's (127 vs 1280) as well as compressions
Source: Alexander Aring
29 Samsung Open Source Group
(at86rf2xx, mrf24j40, cc2520, atusb, adf7242)
Source: openlabs.ca Source: qi-hardware.com
30 Samsung Open Source Group
31 Samsung Open Source Group
32 Samsung Open Source Group
– Beacon and MAC command frame support – Coordinator support in MAC layer and wpan-tools – Scan for available PANs – Short address handling in 6LoWPAN
33 Samsung Open Source Group
– IEEE 802.15.4 connections – 6LoWPAN with LOWPAN_IPHC and NHC UDP
– Lead to fixes on both sides
– There was some testing during the ETSI plugtest at IETF94 between Linux
and RIOT
– Maybe another Plugtest in Berlin in July
34 Samsung Open Source Group
– unstrung, linux-rpl as current implementations
– Potential for cooperation and interop testing
35 Samsung Open Source Group
36 Samsung Open Source Group
http://www.slideshare.net/SamsungOSG
37 Samsung Open Source Group