SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Downloaden Sie, um offline zu lesen
Run Your Own 6LoWPAN
Based IoT Network
2016-10-11, Berlin
Stefan Schmidt
stefan@osg.samsung.com
Samsung Open Source Group
Agenda
● Motivation
● Linux-wpan Project
● Wpan-tools
● Hardware and Basic Setup
● Communication with RIOT and Contiki
● Link Layer Security
● Routing: Route-over and Mesh-under
Demo Show Case
● Demonstration at the ELC-E Show Cases
● Linux-wpan on a Raspberry Pi
● RIOT on Particle Photon node
● JerryScript (JS engine) on both,
communicating over 6LoWPAN
● Tetris network game
Motivation
IEEE 802.15.4
● IEEE specifications for Low-Rate Wireless
Personal Area Networks
● Not only low-rate, but also low-power
● Designed for small sensors to run years
on battery with the right duty cycle
● 127 bytes MTU and 250 kbit/s
● PHY and MAC layers used in ZigBee
6LoWPAN
● Physical and MAC layer defined by IEEE 802.15.4
from 2003 onwards
● Series of IETF specifications from 2007 onwards
(RFCs 4944, 6282, etc)
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
The Header Size Problem
● Worst-case scenario calculations
● Maximum frame size in IEEE 802.15.4: 127 bytes
● Reduced by the max. frame header (25 bytes): 102 bytes
● Reduced by highest link-layer security (21 bytes): 81 bytes
● Reduced by standard IPv6 header (40 bytes): 41 bytes
● Reduced by standard UDP header (8 bytes): 33 bytes
● This leaves only 33 bytes for actual payload
● The rest of the space is used by headers (~ 3:1 ratio)
Frame Header (25) LLSEC (21) IPv6 Header (40) UDP Payload (33)
The Header Size Solution
● IPv6 with link-local and UDP on top
● IPHC with NHC for UDP
● The 48 bytes IPv6 + UDP header could in
the best cases be reduced to 6 bytes
● That allows for a payload of 75 bytes (~ 2:3
ratio)
Frame Header (25) LLSEC (21) 6 Payload (75)
Dispatch (1) LOWPAN_IPHC (1) LOWPAN_NHC (1) UDP Ports (1) UDP Checksum (2)
Linux-wpan
● Platforms already running Linux would benefit from
native 802.15.4 and 6LoWPAN subsystems
● 802.15.4 transceivers can easily be added to
existing hardware designs
● Battery powered sensors on the other hand are
more likely to run an OS like RIOT or Contiki
● Example 1: Google OnHub AP which already comes
with, de-activated, 802.15.4 hardware
● Example 2: Ci40 Creator board as home IoT hub
Linux-wpan Project
Linux-wpan Project
● IEEE 802.15.4 and 6LoWPAN support in mainline Linux
● Started in 2008 as linux-zigbee project on
SourceForge
● First steps of mainlining in 2012
● New project name to avoid confusion: linux-wpan
● New maintainer: Alexander Aring, Pengutronix
● Normal kernel development model
● Patches are posted and reviewed on the mailing list
Linux-wpan Community
● Small community: 2 core devs and ~4
additional people for specific drivers
● Linux-wpan mailing list (~94 people)
● #linux-wpan on Freenode (~25 people)
● https://github.com/linux-wpan (no PR model)
● http://wpan.cakelab.org used for wpan-tools
releases
Current Status
● ieee802154 layer with softMAC driver for various
transceivers
●
6LoWPAN with fragmentation and reassembly
(RFC 4944)
● Header compression with IPHC and NHC for UDP
(RFC 6282), shared with BT subsystem
●
Link Layer Security
●
Testing between Linux, RIOT and Contiki
●
Mainline 4.1 onwards recommended
Development Boards
● Ci40 Creator (CA-8210)
● Raspberry Pi with Openlabs shield (AT86RF233)
● ARTIK 5/10 (802.15.4 network soc)
● Various transceivers can be hooked up via SPI
(all drivers have devicetree bindings)
● ATUSB USB dongle
6LoWPAN Fragmentation
● IPv6 requires the link to allow for a MTU of at least 1280
bytes
● This is impossible to handle in the 127 bytes MTU of IEEE
802.15.4
● 6LoWPAN 11 bit fragmentation header allows for 2048
bytes packet size with fragmentation
● But fragmentation can still lead to bad performance in
lossy networks, best to avoid it in the first place
IPv6 Header Compression (IPHC)
●
Defining some default values in IPv6 header
– Version == 6, traffic class & flow-label == 0, hop-limit only well-known values (1, 64, 255)
– Remove the payload length (available in 6LoWPAN fragment header or data-link header)
●
IPv6 stateless address auto configuration based on L2 address
– Omit the IPv6 prefix (global known by network, link-local defined by compression
(FE80::/64)
– Extended: EUI-64 L2 address use as is
– Short: pseudo 48 bit address based short address: 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)
Source Address
Dispatch
6LoWPAN Header IPHC multi-hop (7 bytes)
Hop LimitLoWPAN_IPHC
Destination Address
Dispatch
6LoWPAN Header IPHC link-local (2 bytes)
LoWPAN_IPHC
Next Header Compression
● NHC IPv6 Extension Header compression (RFC6282)
– Hop-by-Hop, Routing Header, Fragment Header, Destination
Options Header, Mobility Header
● NHC UDP Header compression (RFC6282)
– Compressing ports range to 4 bits
– Allows to omit the UDP checksum for cases where upper layers
handle message integrity checks
● GHC: LZ-77 style compression with byte codes (RFC7400)
– Appending zeroes, back referencing to a static dictionary and copy
– Useful for DTLS or RPL (addresses elided from dictionary)
Wpan-tools
Iwpan
● Netlink interface ideas as well as code borrowed from the
iw utility
● Used to configure PHY and MAC layer parameters
● Including channel, PAN ID, power setting, short address,
frame retries, etc
● Version 0.7 with network namespace support released two
weeks ago
● Packaged by some distributions (Fedora and Debian up to
date, Ubuntu on 0.5, OpenSUSE, Gentoo, Arch, etc missing)
Wpan-ping
● Ping utility on the 802.15.4 layer
● Not a full ICMP ping replacement, but good
enough for some basic testing and measurements
# run on server side
$ wpan-ping –-daemon
# run on client side
$ wpan-ping –-count 100 –extended –-address
00:11:22:33:44:55:66:77
Hardware and Basic Setup
Hardware Support
● Mainline drivers for at86rf2xx, mrf24j40, cc2520,
atusb and adf7242
● Pending driver for ca-8210
● Old out of tree driver for Xbee
● Most transceiver easy to hook up to SPI and some GPIOs
● ATUSB available as USB dongle to be used on your
normal workstation (sold out but a new batch is
being produced)
Devicetree Bindings
● Boards need
devicetree support
● All our drivers have
bindings
● Example for the
at86rf233:
&spi {
status = "okay";
at86rf233@0 {
compatible = "atmel,at86rf233";
spi-max-frequency = <6000000>;
reg = <0>;
interrupts = <23 4>;
interrupt-parent = <&gpio>;
reset-gpio = <&gpio 24 1>;
sleep-tpio = <&gpio 25 1>;
xtal-trim = /bits/ 8 <0x0F>;
};
};
Virtual Driver
● Fake loopback driver (similar to hwsim of wireless)
● Great for testing
● Support for RIOT and OpenThread to use this when
running as native Linux process
● Will help interop testing between the different
network stacks in an virtual environment
$ modprobe fakelb numlbs=4
$ Configure for Linux, RIOT, OpenThread and monitor
Interface Bringup
● The wpan0 interface shows up automatically
● Setting up the basic parameters:
$ ip link set lowpan0 down
$ ip link set wpan0 down
$ iwpan dev wpan0 set pan_id 0xabcd
$ iwpan phy phy0 set channel 0 26
$ ip link add link wpan0 name lowpan0 type lowpan
$ ip link set wpan0 up
$ ip link set lowpan0 up
Monitoring
Monitoring
● Setting up the interface in promiscuous mode:
$ iwpan dev wpan0 del
$ iwpan phy phy0 interface add monitor%d type monitor
$ iwpan phy phy0 set channel 0 26
$ ip link set monitor0 up
$ wireshark -i monitor0
● No automatic channel hopping (you can change the
channel manually in the background)
Communication with RIOT &
Contiki
RIOT
● “The friendly Operating System for the
Internet of Things” (LGPL)
● Testing against Linux-wpan part of the
release testing process for RIOT
● Active developer discussions and bug
fixing between projects
Contiki
● “The Open Source OS for the Internet of Things”
(BSD)
● Very fragmented project
● Sadly many forks for academic or commercial
purpose which have a hard time to get merged
● Still an important role as IoT OS for tiny devices
Comparison
Feature Linux RIOT Contiki
IEEE 802.15.4: data and ACK frames ✔ ✔ ✔
IEEE 802.15.4: beacon and MAC command frames ✘ ✘ ✘
IEEE 802.15.4: scanning, joining, PAN coordinator ✘ ✘ ✘
IEEE 802.15.4: link layer security ✔ ✘ ✔
6LoWPAN: frame encapsulation, fragmentation, addressing (RFC 4944) ✔ ✔ ✔
6LoWPAN: IP header compression (RFC 6282) ✔ ✔ ✔
6LoWPAN: next header compression, UDP only (RFC 6282) ✔ ✔ ✔
6LoWPAN: generic header compression (RFC 7400) ✘ ✘ ✘
6LoWPAN: neighbour discovery optimizations (RFC 6775) Partial ✔ ✘
RPL: IPv6 Routing Protocol for Low-Power and Lossy Networks ✔ ✔ ✔
Mesh link establishment draft ✘ ✘ ✘
Others
● Mbed OS from ARM: network stack is
closed source so nothing to test against
● Zephyr: network stack from Contiki used
right now but a new one is planned
● OpenThread: Open Source
implementation of the Thread protocol
Link Layer Security
Link Layer Security
● Specified by IEEE 802.15.4
● It defines confidentiality (AES-CTR), integrity (AES
CBC-MAC) and encryption and authentication (AES
CCM) security suites
● Key handling, key exchange, roll over, etc is not defined
● Tested Linux against Linux and Contiki 3.0
● No way to test against RIOT as they have no LLSEC
support right now
LLSEC Linux-wpan
● Needs the llsec branch in wpan-tools for
configuration
● CONFIG_IEEE802154_NL802154_EXPERIMENTAL
$ iwpan dev wpan0 set security 1
$ iwpan dev wpan0 key add 2 $KEY 0 $PANID 3 $EXTADDR
$ iwpan dev wpan0 seclevel add 0xff 2 0
$ iwpan dev wpan0 device add 0 $PANID $SHORTADDR $EXTADDR 0
0
LLSEC Contiki 3.0
● You need the following Contiki build options
configured in your project-conf.h to make use of
LLSEC with network wide key:
#define NETSTACK_CONF_LLSEC noncoresec_driver
#define LLSEC802154_CONF_SECURITY_LEVEL FRAME802154_SECURITY_LEVEL_ENC_MIC_32
#define NONCORESEC_CONF_KEY { 
0x00, 0x01, 0x02, 0x03, 
0x04, 0x05, 0x06, 0x07, 
0x08, 0x09, 0x0A, 0x0B, 
0x0C, 0x0D, 0x0E, 0x0F, 
}
Routing: Mesh-under and
Route-over
Mesh-under
● Allows fast forwarding of packets in a mesh without travelling
the IP stack
● IEEE 802.15.4 does not include mesh routing in the MAC specification
● Thus the mesh implementations sit above the MAC but below the
network layer
● Various (proprietary) implementations
● 6LoWPAN specification has a field for mesh headers
● No support in Linux-wpan for mesh header as of now
● Lost fragments of bigger packets will cause troubles
● Mesh Link Establishment draft at IETF
RPL
● IPv6 Routing Protocol for Low-Power and
Lossy Networks (RFC6550)
● Route over protocol
● Implementations in RIOT and Contiki
● Unstrung as Linux userspace reference
● Bit rotted in-kernel RPL demo patches out
there
Future
Linux-wpan Future
●
Implement missing parts of the 802.15.4 specification
● Beacon and MAC command frame support
● Coordinator support in MAC layer and wpan-tools
● Scanning
● Improve existing drivers and add support for new hardware
● Neighbour Discovery Optimizations (RFC 6775), started
●
Evaluate running OpenThread on top of linux-wpan
●
Configuration interface for various header compression
modules
●
Expose information for route-over and mesh-under protocols
Summary
Take away
● Running an IEEE 802.15.4 wireless
network under Linux is not hard
● Tooling and kernel support is already
there
● Border router scenario most likely use
case but nodes or routers also possible
Thank you!
http://www.slideshare.net/SamsungOSG
References
● Pictures
● http://downloads.qi-
hardware.com/people/werner/wpan/web/a
tusb-pcba-small.jpg
● https://creativecommons.org/licenses/by-
sa/3.0/

Weitere ähnliche Inhalte

Was ist angesagt?

Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under LinuxPractical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under LinuxSamsung Open Source Group
 
P4 to OpenDataPlane Compiler - BUD17-304
P4 to OpenDataPlane Compiler - BUD17-304P4 to OpenDataPlane Compiler - BUD17-304
P4 to OpenDataPlane Compiler - BUD17-304Linaro
 
CentOS NFV SIG Introduction and Update
CentOS NFV SIG Introduction and UpdateCentOS NFV SIG Introduction and Update
CentOS NFV SIG Introduction and UpdateTom Herbert
 
LinuxCon 2015 Stateful NAT with OVS
LinuxCon 2015 Stateful NAT with OVSLinuxCon 2015 Stateful NAT with OVS
LinuxCon 2015 Stateful NAT with OVSThomas Graf
 
Rapid SPi Device Driver Development over USB
Rapid SPi Device Driver Development over USBRapid SPi Device Driver Development over USB
Rapid SPi Device Driver Development over USBSamsung Open Source Group
 
IoT: From Arduino Microcontrollers to Tizen Products using IoTivity
IoT: From Arduino Microcontrollers to Tizen Products using IoTivityIoT: From Arduino Microcontrollers to Tizen Products using IoTivity
IoT: From Arduino Microcontrollers to Tizen Products using IoTivitySamsung Open Source Group
 
Vigor 3910 docker firmware quick start
Vigor 3910 docker firmware quick startVigor 3910 docker firmware quick start
Vigor 3910 docker firmware quick startJimmy Tu
 
Ryu SDN Framework
Ryu SDN FrameworkRyu SDN Framework
Ryu SDN FrameworkAPNIC
 
Cilium - BPF & XDP for containers
 Cilium - BPF & XDP for containers Cilium - BPF & XDP for containers
Cilium - BPF & XDP for containersDocker, Inc.
 
Open Source Backends for OpenStack Neutron
Open Source Backends for OpenStack NeutronOpen Source Backends for OpenStack Neutron
Open Source Backends for OpenStack Neutronmestery
 
RYU Introduction
RYU IntroductionRYU Introduction
RYU IntroductionNCTU
 
Developing SDN apps in Ryu
Developing SDN apps in RyuDeveloping SDN apps in Ryu
Developing SDN apps in RyuChe Wei Lin
 
LAS16-405:OpenDataPlane: Software Defined Dataplane leader
LAS16-405:OpenDataPlane: Software Defined Dataplane leaderLAS16-405:OpenDataPlane: Software Defined Dataplane leader
LAS16-405:OpenDataPlane: Software Defined Dataplane leaderLinaro
 
BUD17-300: Journey of a packet
BUD17-300: Journey of a packetBUD17-300: Journey of a packet
BUD17-300: Journey of a packetLinaro
 

Was ist angesagt? (20)

SOSCON 2016 JerryScript
SOSCON 2016 JerryScriptSOSCON 2016 JerryScript
SOSCON 2016 JerryScript
 
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under LinuxPractical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux
Practical Guide to Run an IEEE 802.15.4 Network with 6LoWPAN Under Linux
 
Clang: More than just a C/C++ Compiler
Clang: More than just a C/C++ CompilerClang: More than just a C/C++ Compiler
Clang: More than just a C/C++ Compiler
 
Ryu sdn framework
Ryu sdn framework Ryu sdn framework
Ryu sdn framework
 
P4 to OpenDataPlane Compiler - BUD17-304
P4 to OpenDataPlane Compiler - BUD17-304P4 to OpenDataPlane Compiler - BUD17-304
P4 to OpenDataPlane Compiler - BUD17-304
 
Introduction to IoT.JS
Introduction to IoT.JSIntroduction to IoT.JS
Introduction to IoT.JS
 
CentOS NFV SIG Introduction and Update
CentOS NFV SIG Introduction and UpdateCentOS NFV SIG Introduction and Update
CentOS NFV SIG Introduction and Update
 
Framework for IoT Interoperability
Framework for IoT InteroperabilityFramework for IoT Interoperability
Framework for IoT Interoperability
 
LinuxCon 2015 Stateful NAT with OVS
LinuxCon 2015 Stateful NAT with OVSLinuxCon 2015 Stateful NAT with OVS
LinuxCon 2015 Stateful NAT with OVS
 
Rapid SPi Device Driver Development over USB
Rapid SPi Device Driver Development over USBRapid SPi Device Driver Development over USB
Rapid SPi Device Driver Development over USB
 
IoT: From Arduino Microcontrollers to Tizen Products using IoTivity
IoT: From Arduino Microcontrollers to Tizen Products using IoTivityIoT: From Arduino Microcontrollers to Tizen Products using IoTivity
IoT: From Arduino Microcontrollers to Tizen Products using IoTivity
 
Vigor 3910 docker firmware quick start
Vigor 3910 docker firmware quick startVigor 3910 docker firmware quick start
Vigor 3910 docker firmware quick start
 
Ryu SDN Framework
Ryu SDN FrameworkRyu SDN Framework
Ryu SDN Framework
 
Cilium - BPF & XDP for containers
 Cilium - BPF & XDP for containers Cilium - BPF & XDP for containers
Cilium - BPF & XDP for containers
 
Open Source Backends for OpenStack Neutron
Open Source Backends for OpenStack NeutronOpen Source Backends for OpenStack Neutron
Open Source Backends for OpenStack Neutron
 
RYU Introduction
RYU IntroductionRYU Introduction
RYU Introduction
 
Developing SDN apps in Ryu
Developing SDN apps in RyuDeveloping SDN apps in Ryu
Developing SDN apps in Ryu
 
LAS16-405:OpenDataPlane: Software Defined Dataplane leader
LAS16-405:OpenDataPlane: Software Defined Dataplane leaderLAS16-405:OpenDataPlane: Software Defined Dataplane leader
LAS16-405:OpenDataPlane: Software Defined Dataplane leader
 
Development Boards for Tizen IoT
Development Boards for Tizen IoTDevelopment Boards for Tizen IoT
Development Boards for Tizen IoT
 
BUD17-300: Journey of a packet
BUD17-300: Journey of a packetBUD17-300: Journey of a packet
BUD17-300: Journey of a packet
 

Ähnlich wie Run Your Own 6LoWPAN Based IoT Network

[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...OpenStack Korea Community
 
6lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp016lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp01mrmr2010i
 
DPDK summit 2015: It's kind of fun to do the impossible with DPDK
DPDK summit 2015: It's kind of fun  to do the impossible with DPDKDPDK summit 2015: It's kind of fun  to do the impossible with DPDK
DPDK summit 2015: It's kind of fun to do the impossible with DPDKLagopus SDN/OpenFlow switch
 
DPDK Summit 2015 - NTT - Yoshihiro Nakajima
DPDK Summit 2015 - NTT - Yoshihiro NakajimaDPDK Summit 2015 - NTT - Yoshihiro Nakajima
DPDK Summit 2015 - NTT - Yoshihiro NakajimaJim St. Leger
 
FD.io Vector Packet Processing (VPP)
FD.io Vector Packet Processing (VPP)FD.io Vector Packet Processing (VPP)
FD.io Vector Packet Processing (VPP)Kirill Tsym
 
FD.IO Vector Packet Processing
FD.IO Vector Packet ProcessingFD.IO Vector Packet Processing
FD.IO Vector Packet ProcessingKernel TLV
 
Linux Kernel Status Report for IEEE 802.15.4 & 6LoWPAN
Linux Kernel Status Report for IEEE 802.15.4 & 6LoWPANLinux Kernel Status Report for IEEE 802.15.4 & 6LoWPAN
Linux Kernel Status Report for IEEE 802.15.4 & 6LoWPANSamsung Open Source Group
 
Summit 16: How to Compose a New OPNFV Solution Stack?
Summit 16: How to Compose a New OPNFV Solution Stack?Summit 16: How to Compose a New OPNFV Solution Stack?
Summit 16: How to Compose a New OPNFV Solution Stack?OPNFV
 
CodiLime Tech Talk - Adam Kułagowski: IPv6 - introduction
CodiLime Tech Talk - Adam Kułagowski: IPv6 - introductionCodiLime Tech Talk - Adam Kułagowski: IPv6 - introduction
CodiLime Tech Talk - Adam Kułagowski: IPv6 - introductionCodiLime
 
Cilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDPCilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDPThomas Graf
 
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała...
PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała...PROIDEA
 
Let's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoT
Let's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoTLet's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoT
Let's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoTJian-Hong Pan
 
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...Jim St. Leger
 
Successes and Challenges of IPv6 Transition at APNIC
Successes and Challenges of IPv6 Transition at APNICSuccesses and Challenges of IPv6 Transition at APNIC
Successes and Challenges of IPv6 Transition at APNICAPNIC
 
Stacks and Layers: Integrating P4, C, OVS and OpenStack
Stacks and Layers: Integrating P4, C, OVS and OpenStackStacks and Layers: Integrating P4, C, OVS and OpenStack
Stacks and Layers: Integrating P4, C, OVS and OpenStackOpen-NFP
 
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitchDPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitchJim St. Leger
 

Ähnlich wie Run Your Own 6LoWPAN Based IoT Network (20)

6LoWPAN: An open IoT Networking Protocol
6LoWPAN: An open IoT Networking Protocol6LoWPAN: An open IoT Networking Protocol
6LoWPAN: An open IoT Networking Protocol
 
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
 
SFScon 21 - Stefan Schmidt - The Rise of IPv6 in IoT Protocols
SFScon 21 - Stefan Schmidt - The Rise of IPv6 in IoT ProtocolsSFScon 21 - Stefan Schmidt - The Rise of IPv6 in IoT Protocols
SFScon 21 - Stefan Schmidt - The Rise of IPv6 in IoT Protocols
 
6lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp016lowpan 110828234426-phpapp01
6lowpan 110828234426-phpapp01
 
DPDK summit 2015: It's kind of fun to do the impossible with DPDK
DPDK summit 2015: It's kind of fun  to do the impossible with DPDKDPDK summit 2015: It's kind of fun  to do the impossible with DPDK
DPDK summit 2015: It's kind of fun to do the impossible with DPDK
 
DPDK Summit 2015 - NTT - Yoshihiro Nakajima
DPDK Summit 2015 - NTT - Yoshihiro NakajimaDPDK Summit 2015 - NTT - Yoshihiro Nakajima
DPDK Summit 2015 - NTT - Yoshihiro Nakajima
 
FD.io Vector Packet Processing (VPP)
FD.io Vector Packet Processing (VPP)FD.io Vector Packet Processing (VPP)
FD.io Vector Packet Processing (VPP)
 
FD.IO Vector Packet Processing
FD.IO Vector Packet ProcessingFD.IO Vector Packet Processing
FD.IO Vector Packet Processing
 
L6 6 lowpan
L6 6 lowpanL6 6 lowpan
L6 6 lowpan
 
Linux Kernel Status Report for IEEE 802.15.4 & 6LoWPAN
Linux Kernel Status Report for IEEE 802.15.4 & 6LoWPANLinux Kernel Status Report for IEEE 802.15.4 & 6LoWPAN
Linux Kernel Status Report for IEEE 802.15.4 & 6LoWPAN
 
Summit 16: How to Compose a New OPNFV Solution Stack?
Summit 16: How to Compose a New OPNFV Solution Stack?Summit 16: How to Compose a New OPNFV Solution Stack?
Summit 16: How to Compose a New OPNFV Solution Stack?
 
CodiLime Tech Talk - Adam Kułagowski: IPv6 - introduction
CodiLime Tech Talk - Adam Kułagowski: IPv6 - introductionCodiLime Tech Talk - Adam Kułagowski: IPv6 - introduction
CodiLime Tech Talk - Adam Kułagowski: IPv6 - introduction
 
Cilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDPCilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDP
 
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała...
PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...PLNOG16: Obsługa 100M pps na platformie PC, Przemysław Frasunek, Paweł Mała...
PLNOG16: Obsługa 100M pps na platformie PC , Przemysław Frasunek, Paweł Mała...
 
Let's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoT
Let's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoTLet's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoT
Let's Have an IEEE 802.15.4 over LoRa Linux Device Driver for IoT
 
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...
 
Successes and Challenges of IPv6 Transition at APNIC
Successes and Challenges of IPv6 Transition at APNICSuccesses and Challenges of IPv6 Transition at APNIC
Successes and Challenges of IPv6 Transition at APNIC
 
Stacks and Layers: Integrating P4, C, OVS and OpenStack
Stacks and Layers: Integrating P4, C, OVS and OpenStackStacks and Layers: Integrating P4, C, OVS and OpenStack
Stacks and Layers: Integrating P4, C, OVS and OpenStack
 
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitchDPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
 
Deploying IPv6 on OpenStack
Deploying IPv6 on OpenStackDeploying IPv6 on OpenStack
Deploying IPv6 on OpenStack
 

Mehr von Samsung Open Source Group

The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)Samsung Open Source Group
 
IoTivity: Smart Home to Automotive and Beyond
IoTivity: Smart Home to Automotive and BeyondIoTivity: Smart Home to Automotive and Beyond
IoTivity: Smart Home to Automotive and BeyondSamsung Open Source Group
 
IoTivity for Automotive: meta-ocf-automotive tutorial
IoTivity for Automotive: meta-ocf-automotive tutorialIoTivity for Automotive: meta-ocf-automotive tutorial
IoTivity for Automotive: meta-ocf-automotive tutorialSamsung Open Source Group
 
Open Source Metrics to Inform Corporate Strategy
Open Source Metrics to Inform Corporate StrategyOpen Source Metrics to Inform Corporate Strategy
Open Source Metrics to Inform Corporate StrategySamsung Open Source Group
 
IoTivity for Automotive IoT Interoperability
IoTivity for Automotive IoT InteroperabilityIoTivity for Automotive IoT Interoperability
IoTivity for Automotive IoT InteroperabilitySamsung Open Source Group
 
IoTivity Tutorial: Prototyping IoT Devices on GNU/Linux
IoTivity Tutorial: Prototyping IoT Devices on GNU/LinuxIoTivity Tutorial: Prototyping IoT Devices on GNU/Linux
IoTivity Tutorial: Prototyping IoT Devices on GNU/LinuxSamsung Open Source Group
 
IoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devices
IoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devicesIoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devices
IoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devicesSamsung Open Source Group
 

Mehr von Samsung Open Source Group (15)

The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)
 
Easy IoT with JavaScript
Easy IoT with JavaScriptEasy IoT with JavaScript
Easy IoT with JavaScript
 
Spawny: A New Approach to Logins
Spawny: A New Approach to LoginsSpawny: A New Approach to Logins
Spawny: A New Approach to Logins
 
IoTivity: Smart Home to Automotive and Beyond
IoTivity: Smart Home to Automotive and BeyondIoTivity: Smart Home to Automotive and Beyond
IoTivity: Smart Home to Automotive and Beyond
 
IoTivity for Automotive: meta-ocf-automotive tutorial
IoTivity for Automotive: meta-ocf-automotive tutorialIoTivity for Automotive: meta-ocf-automotive tutorial
IoTivity for Automotive: meta-ocf-automotive tutorial
 
GENIVI + OCF Cooperation
GENIVI + OCF CooperationGENIVI + OCF Cooperation
GENIVI + OCF Cooperation
 
Open Source Metrics to Inform Corporate Strategy
Open Source Metrics to Inform Corporate StrategyOpen Source Metrics to Inform Corporate Strategy
Open Source Metrics to Inform Corporate Strategy
 
IoTivity for Automotive IoT Interoperability
IoTivity for Automotive IoT InteroperabilityIoTivity for Automotive IoT Interoperability
IoTivity for Automotive IoT Interoperability
 
IoTivity: From Devices to the Cloud
IoTivity: From Devices to the CloudIoTivity: From Devices to the Cloud
IoTivity: From Devices to the Cloud
 
IoTivity Tutorial: Prototyping IoT Devices on GNU/Linux
IoTivity Tutorial: Prototyping IoT Devices on GNU/LinuxIoTivity Tutorial: Prototyping IoT Devices on GNU/Linux
IoTivity Tutorial: Prototyping IoT Devices on GNU/Linux
 
Toward "OCF Automotive" profile
Toward "OCF Automotive" profileToward "OCF Automotive" profile
Toward "OCF Automotive" profile
 
OIC AGL Collaboration
OIC AGL CollaborationOIC AGL Collaboration
OIC AGL Collaboration
 
Tizen Connected with IoTivity
Tizen Connected with IoTivityTizen Connected with IoTivity
Tizen Connected with IoTivity
 
IoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devices
IoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devicesIoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devices
IoTivity Connects RVI from GENIVI's Develoment Platform to Tizen devices
 
IoTivity on Tizen: How to
IoTivity on Tizen: How toIoTivity on Tizen: How to
IoTivity on Tizen: How to
 

Kürzlich hochgeladen

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfVishalKumarJha10
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...masabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationShrmpro
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsBert Jan Schrijver
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 

Kürzlich hochgeladen (20)

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 

Run Your Own 6LoWPAN Based IoT Network

  • 1. Run Your Own 6LoWPAN Based IoT Network 2016-10-11, Berlin Stefan Schmidt stefan@osg.samsung.com Samsung Open Source Group
  • 2. Agenda ● Motivation ● Linux-wpan Project ● Wpan-tools ● Hardware and Basic Setup ● Communication with RIOT and Contiki ● Link Layer Security ● Routing: Route-over and Mesh-under
  • 3. Demo Show Case ● Demonstration at the ELC-E Show Cases ● Linux-wpan on a Raspberry Pi ● RIOT on Particle Photon node ● JerryScript (JS engine) on both, communicating over 6LoWPAN ● Tetris network game
  • 5. IEEE 802.15.4 ● IEEE specifications for Low-Rate Wireless Personal Area Networks ● Not only low-rate, but also low-power ● Designed for small sensors to run years on battery with the right duty cycle ● 127 bytes MTU and 250 kbit/s ● PHY and MAC layers used in ZigBee
  • 6. 6LoWPAN ● Physical and MAC layer defined by IEEE 802.15.4 from 2003 onwards ● Series of IETF specifications from 2007 onwards (RFCs 4944, 6282, etc) 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
  • 7. The Header Size Problem ● Worst-case scenario calculations ● Maximum frame size in IEEE 802.15.4: 127 bytes ● Reduced by the max. frame header (25 bytes): 102 bytes ● Reduced by highest link-layer security (21 bytes): 81 bytes ● Reduced by standard IPv6 header (40 bytes): 41 bytes ● Reduced by standard UDP header (8 bytes): 33 bytes ● This leaves only 33 bytes for actual payload ● The rest of the space is used by headers (~ 3:1 ratio) Frame Header (25) LLSEC (21) IPv6 Header (40) UDP Payload (33)
  • 8. The Header Size Solution ● IPv6 with link-local and UDP on top ● IPHC with NHC for UDP ● The 48 bytes IPv6 + UDP header could in the best cases be reduced to 6 bytes ● That allows for a payload of 75 bytes (~ 2:3 ratio) Frame Header (25) LLSEC (21) 6 Payload (75) Dispatch (1) LOWPAN_IPHC (1) LOWPAN_NHC (1) UDP Ports (1) UDP Checksum (2)
  • 9. Linux-wpan ● Platforms already running Linux would benefit from native 802.15.4 and 6LoWPAN subsystems ● 802.15.4 transceivers can easily be added to existing hardware designs ● Battery powered sensors on the other hand are more likely to run an OS like RIOT or Contiki ● Example 1: Google OnHub AP which already comes with, de-activated, 802.15.4 hardware ● Example 2: Ci40 Creator board as home IoT hub
  • 11. Linux-wpan Project ● IEEE 802.15.4 and 6LoWPAN support in mainline Linux ● Started in 2008 as linux-zigbee project on SourceForge ● First steps of mainlining in 2012 ● New project name to avoid confusion: linux-wpan ● New maintainer: Alexander Aring, Pengutronix ● Normal kernel development model ● Patches are posted and reviewed on the mailing list
  • 12. Linux-wpan Community ● Small community: 2 core devs and ~4 additional people for specific drivers ● Linux-wpan mailing list (~94 people) ● #linux-wpan on Freenode (~25 people) ● https://github.com/linux-wpan (no PR model) ● http://wpan.cakelab.org used for wpan-tools releases
  • 13. Current Status ● ieee802154 layer with softMAC driver for various transceivers ● 6LoWPAN with fragmentation and reassembly (RFC 4944) ● Header compression with IPHC and NHC for UDP (RFC 6282), shared with BT subsystem ● Link Layer Security ● Testing between Linux, RIOT and Contiki ● Mainline 4.1 onwards recommended
  • 14. Development Boards ● Ci40 Creator (CA-8210) ● Raspberry Pi with Openlabs shield (AT86RF233) ● ARTIK 5/10 (802.15.4 network soc) ● Various transceivers can be hooked up via SPI (all drivers have devicetree bindings) ● ATUSB USB dongle
  • 15. 6LoWPAN Fragmentation ● IPv6 requires the link to allow for a MTU of at least 1280 bytes ● This is impossible to handle in the 127 bytes MTU of IEEE 802.15.4 ● 6LoWPAN 11 bit fragmentation header allows for 2048 bytes packet size with fragmentation ● But fragmentation can still lead to bad performance in lossy networks, best to avoid it in the first place
  • 16. IPv6 Header Compression (IPHC) ● Defining some default values in IPv6 header – Version == 6, traffic class & flow-label == 0, hop-limit only well-known values (1, 64, 255) – Remove the payload length (available in 6LoWPAN fragment header or data-link header) ● IPv6 stateless address auto configuration based on L2 address – Omit the IPv6 prefix (global known by network, link-local defined by compression (FE80::/64) – Extended: EUI-64 L2 address use as is – Short: pseudo 48 bit address based short address: 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) Source Address Dispatch 6LoWPAN Header IPHC multi-hop (7 bytes) Hop LimitLoWPAN_IPHC Destination Address Dispatch 6LoWPAN Header IPHC link-local (2 bytes) LoWPAN_IPHC
  • 17. Next Header Compression ● NHC IPv6 Extension Header compression (RFC6282) – Hop-by-Hop, Routing Header, Fragment Header, Destination Options Header, Mobility Header ● NHC UDP Header compression (RFC6282) – Compressing ports range to 4 bits – Allows to omit the UDP checksum for cases where upper layers handle message integrity checks ● GHC: LZ-77 style compression with byte codes (RFC7400) – Appending zeroes, back referencing to a static dictionary and copy – Useful for DTLS or RPL (addresses elided from dictionary)
  • 19. Iwpan ● Netlink interface ideas as well as code borrowed from the iw utility ● Used to configure PHY and MAC layer parameters ● Including channel, PAN ID, power setting, short address, frame retries, etc ● Version 0.7 with network namespace support released two weeks ago ● Packaged by some distributions (Fedora and Debian up to date, Ubuntu on 0.5, OpenSUSE, Gentoo, Arch, etc missing)
  • 20. Wpan-ping ● Ping utility on the 802.15.4 layer ● Not a full ICMP ping replacement, but good enough for some basic testing and measurements # run on server side $ wpan-ping –-daemon # run on client side $ wpan-ping –-count 100 –extended –-address 00:11:22:33:44:55:66:77
  • 22. Hardware Support ● Mainline drivers for at86rf2xx, mrf24j40, cc2520, atusb and adf7242 ● Pending driver for ca-8210 ● Old out of tree driver for Xbee ● Most transceiver easy to hook up to SPI and some GPIOs ● ATUSB available as USB dongle to be used on your normal workstation (sold out but a new batch is being produced)
  • 23. Devicetree Bindings ● Boards need devicetree support ● All our drivers have bindings ● Example for the at86rf233: &spi { status = "okay"; at86rf233@0 { compatible = "atmel,at86rf233"; spi-max-frequency = <6000000>; reg = <0>; interrupts = <23 4>; interrupt-parent = <&gpio>; reset-gpio = <&gpio 24 1>; sleep-tpio = <&gpio 25 1>; xtal-trim = /bits/ 8 <0x0F>; }; };
  • 24. Virtual Driver ● Fake loopback driver (similar to hwsim of wireless) ● Great for testing ● Support for RIOT and OpenThread to use this when running as native Linux process ● Will help interop testing between the different network stacks in an virtual environment $ modprobe fakelb numlbs=4 $ Configure for Linux, RIOT, OpenThread and monitor
  • 25. Interface Bringup ● The wpan0 interface shows up automatically ● Setting up the basic parameters: $ ip link set lowpan0 down $ ip link set wpan0 down $ iwpan dev wpan0 set pan_id 0xabcd $ iwpan phy phy0 set channel 0 26 $ ip link add link wpan0 name lowpan0 type lowpan $ ip link set wpan0 up $ ip link set lowpan0 up
  • 27. Monitoring ● Setting up the interface in promiscuous mode: $ iwpan dev wpan0 del $ iwpan phy phy0 interface add monitor%d type monitor $ iwpan phy phy0 set channel 0 26 $ ip link set monitor0 up $ wireshark -i monitor0 ● No automatic channel hopping (you can change the channel manually in the background)
  • 29. RIOT ● “The friendly Operating System for the Internet of Things” (LGPL) ● Testing against Linux-wpan part of the release testing process for RIOT ● Active developer discussions and bug fixing between projects
  • 30. Contiki ● “The Open Source OS for the Internet of Things” (BSD) ● Very fragmented project ● Sadly many forks for academic or commercial purpose which have a hard time to get merged ● Still an important role as IoT OS for tiny devices
  • 31. Comparison Feature Linux RIOT Contiki IEEE 802.15.4: data and ACK frames ✔ ✔ ✔ IEEE 802.15.4: beacon and MAC command frames ✘ ✘ ✘ IEEE 802.15.4: scanning, joining, PAN coordinator ✘ ✘ ✘ IEEE 802.15.4: link layer security ✔ ✘ ✔ 6LoWPAN: frame encapsulation, fragmentation, addressing (RFC 4944) ✔ ✔ ✔ 6LoWPAN: IP header compression (RFC 6282) ✔ ✔ ✔ 6LoWPAN: next header compression, UDP only (RFC 6282) ✔ ✔ ✔ 6LoWPAN: generic header compression (RFC 7400) ✘ ✘ ✘ 6LoWPAN: neighbour discovery optimizations (RFC 6775) Partial ✔ ✘ RPL: IPv6 Routing Protocol for Low-Power and Lossy Networks ✔ ✔ ✔ Mesh link establishment draft ✘ ✘ ✘
  • 32. Others ● Mbed OS from ARM: network stack is closed source so nothing to test against ● Zephyr: network stack from Contiki used right now but a new one is planned ● OpenThread: Open Source implementation of the Thread protocol
  • 34. Link Layer Security ● Specified by IEEE 802.15.4 ● It defines confidentiality (AES-CTR), integrity (AES CBC-MAC) and encryption and authentication (AES CCM) security suites ● Key handling, key exchange, roll over, etc is not defined ● Tested Linux against Linux and Contiki 3.0 ● No way to test against RIOT as they have no LLSEC support right now
  • 35. LLSEC Linux-wpan ● Needs the llsec branch in wpan-tools for configuration ● CONFIG_IEEE802154_NL802154_EXPERIMENTAL $ iwpan dev wpan0 set security 1 $ iwpan dev wpan0 key add 2 $KEY 0 $PANID 3 $EXTADDR $ iwpan dev wpan0 seclevel add 0xff 2 0 $ iwpan dev wpan0 device add 0 $PANID $SHORTADDR $EXTADDR 0 0
  • 36. LLSEC Contiki 3.0 ● You need the following Contiki build options configured in your project-conf.h to make use of LLSEC with network wide key: #define NETSTACK_CONF_LLSEC noncoresec_driver #define LLSEC802154_CONF_SECURITY_LEVEL FRAME802154_SECURITY_LEVEL_ENC_MIC_32 #define NONCORESEC_CONF_KEY { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, }
  • 38. Mesh-under ● Allows fast forwarding of packets in a mesh without travelling the IP stack ● IEEE 802.15.4 does not include mesh routing in the MAC specification ● Thus the mesh implementations sit above the MAC but below the network layer ● Various (proprietary) implementations ● 6LoWPAN specification has a field for mesh headers ● No support in Linux-wpan for mesh header as of now ● Lost fragments of bigger packets will cause troubles ● Mesh Link Establishment draft at IETF
  • 39. RPL ● IPv6 Routing Protocol for Low-Power and Lossy Networks (RFC6550) ● Route over protocol ● Implementations in RIOT and Contiki ● Unstrung as Linux userspace reference ● Bit rotted in-kernel RPL demo patches out there
  • 41. Linux-wpan Future ● Implement missing parts of the 802.15.4 specification ● Beacon and MAC command frame support ● Coordinator support in MAC layer and wpan-tools ● Scanning ● Improve existing drivers and add support for new hardware ● Neighbour Discovery Optimizations (RFC 6775), started ● Evaluate running OpenThread on top of linux-wpan ● Configuration interface for various header compression modules ● Expose information for route-over and mesh-under protocols
  • 43. Take away ● Running an IEEE 802.15.4 wireless network under Linux is not hard ● Tooling and kernel support is already there ● Border router scenario most likely use case but nodes or routers also possible