Politecnico di Milano Advanced Network Technologies Laboratory. 6LowPAN

Similar documents
Politecnico di Milano Advanced Network Technologies Laboratory. 6LowPAN

Outline. Introduction. The Internet Architecture and Protocols Link Layer Technologies Introduction to 6LoWPAN The 6LoWPAN Format Bootstrapping

Networked Embedded Systems: 6LoWPAN

Networked Embedded Systems: 6LoWPAN

IPv6 Stack. 6LoWPAN makes this possible. IPv6 over Low-Power wireless Area Networks (IEEE )

Mobile Communications

Lesson 4 RPL and 6LoWPAN Protocols. Chapter-4 L04: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Routing over Low Power and Lossy Networks

6LoWPAN (IPv6 based Low Power WPAN)

ETSI Plugtests Guide V1.0.0 ( ) 6LoWPAN Plugtests; Berlin, Germany; July 2013

IoT Roadmap in the IETF. Ines Robles

Module 1: Wireless Sensor Networks

Wireless Sensor Networks Module 2: Routing

An Industry view of IPv6 Advantages

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

Asst. Prof. Chaiporn Jaikaeo, Ph.D.

Outlook on IEEE ZigBee Implications IP Requirements IPv6 over Low Power WPAN (IEEE ) Conclusions. KRnet /21

IPv6 Next generation IP

draft-ietf-6lowpan-nd-07 Authors: Zach Shelby (ed.) Jonathan Hui Pascal Thubert Samita Chakrabarti Erik Nordmark Carsten Bormann

Module 1: Wireless Sensor Networks

IPv6 : Internet Protocol Version 6

History. IPv6 : Internet Protocol Version 6. IPv4 Year-Wise Allocation (/8s)

ZigBee IP update IETF 87 Berlin. Robert Cragie

Interoperability. Luca Mottola slides partly by Simon Duquennoy. Politecnico di Milano, Italy and Swedish Institute of Computer Science

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

Transitioning to IPv6

Internet Protocol, Version 6

IPv6 is Internet protocol version 6. Following are its distinctive features as compared to IPv4. Header format simplification Expanded routing and

L o g o. IPv6 in IoT. Network Information Center Institute of Network Technology BUPT. Website: niclab.bupt.edu.cn

Principles of Wireless Sensor Networks

Planning for Information Network

Communication and Networking in the IoT

Configuring IPv6 basics

Introduction to IPv6 - II

Lecture Computer Networks

Configuring IPv6. Information About IPv6. Send document comments to CHAPTER

IPv6. (Internet Protocol version 6)

IPv6 Technical Challenges

RPL: Routing for IoT. Bardh Prenkaj Dept. of Computer Science. Internet of Things A.A

RPL- Routing over Low Power and Lossy Networks

IPv6 Neighbor Discovery

IPv6 Protocol Architecture

IPv6 Protocol & Structure. npnog Dec, 2017 Chitwan, NEPAL

Integration of Wireless Sensor Network Services into other Home and Industrial networks

Quantitative Analysis and Evaluation of RPL with Various Objective Functions for 6LoWPAN

Proposed Node and Network Models for M2M Internet

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

TCP/IP Protocol Suite

Foreword xxiii Preface xxvii IPv6 Rationale and Features

Workshop on Scientific Applications for the Internet of Things (IoT) March

IPv6 Concepts. Improve router performance Simplify IP header Align to 64 bits Address hierarchy with more levels Simplify routing tables

White Paper. 6LoWPAN Fundamentals. Introduction into the Internet of Things. Author Enrico Lehmann dresden elektronik ingenieurtechnik gmbh

Internet Protocol version 6

TD#RNG#2# B.Stévant#

CHAPTER 3. 6LoWPAN 3.1 INTRODUCTION

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

ns-3 RPL module: IPv6 Routing Protocol for Low power and Lossy Networks

RF and network basics. Antonio Liñán Colina

Routing Protocols in Internet of Things. Charlie Perkins December 15, 2015 with a few slides originated by Pascal

Integrated Security 22

Getting Started with IPv6 in Low-Power Wireless Personal Area Networks (6LoWPAN)

Resource Aware Routing Protocol in Heterogeneous Wireless Machine-to-Machine Networks

Implementation of SNMP Protocol with ContikiOS [Kur10] for WSN430 targets

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

A study on Need of Adaptation Layer in 6LoWPAN Protocol Stack

G3-PLC L3/L4 Interoperability Test Procedure Manual ANNEX

Introduction to IPv6

INTERNATIONAL JOURNAL OF COMMUNICATIONS Volume 12, Performance comparative analysis of LOADing-CTP and RPL routing protocols for LLNs

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August

IPv6: An Introduction

Chapter 2 Advanced TCP/IP

Internet of Things: Latest Technology Development and Applications

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

IPv4/v6 Considerations Ralph Droms Cisco Systems

Request for Comments: 1972 Category: Standards Track August A Method for the Transmission of IPv6 Packets over Ethernet Networks

Introduction to IPv6. IPv6 addresses

Mobile Communications. Ad-hoc and Mesh Networks

OSI Data Link & Network Layer

How to develop and validate a scalable mesh routing solution for IEEE sensor networks Altran Benelux

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat no true in practice. administrative autonomy

OSPF Protocol Overview on page 187. OSPF Standards on page 188. OSPF Area Terminology on page 188. OSPF Routing Algorithm on page 190

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

Extending IP to Low-Power, Wireless Personal Area Networks

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

LSCHC: Layered Static Context Header Compression for LPWANs

The Research of Long-Chain Wireless Sensor Network Based on 6LoWPAN

Secure routing in IoT networks with SISLOF

IPv6 Neighbor Discovery

The Netwok Layer IPv4 and IPv6 Part 2

CS 356: Computer Network Architectures. Lecture 15: DHCP, NAT, and IPv6. [PD] chapter 3.2.7, 3.2.9, 4.1.3, 4.3.3

Internet based IoT connectivity Technologies

Routing in the Internet of Things (IoT) Rolland Vida Convergent Networks and Services

CS118 Discussion 1A, Week 6. Zengwen Yuan Dodd Hall 78, Friday 10:00 10:50 a.m.

IPv6 Stateless Autoconfiguration

Implementation and Evaluation of the Enhanced Header Compression (IPHC) for 6LoWPAN

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Avaya Networking IPv6 Using Fabric Connect to ease IPv6 Deployment. Ed Koehler Director DSE Ron Senna SE Avaya Networking Solutions Architecture

Internet Engineering Task Force (IETF) Request for Comments: ISSN: February 2015

New IP Header. Why change IP. Address Notation. Changes. Information Sources. IP Version 6 ITL

Information Sources Hans Kruse & Shawn Ostermann, Ohio University

Transcription:

Politecnico di Milano Advanced Network Technologies Laboratory 6LowPAN

ACKs o Slide/Figures Sources n IPSO Alliance Webinar 6LowPAN for IP Smart Objects n 6LoWPAN: The Wireless Embedded Internet, Shelby & Bormann, ISBN: 978-0-470-74799-5, (c) 2009 John Wiley & Sons Ltd

What is 6LoWPAN? o An Adaptation Layer to fit IPv6 over Low-Power wireless Area Networks o Defined by IETF standards n RFC 4919, 4944 n n draft-ietf-6lowpan-hc and -nd draft-ietf-roll-rpl IPv6

Architecture

Architecture o LoWPANs are stub networks o Simple LoWPAN n Single Edge Router o Extended LoWPAN n Multiple Edge Routers with common backbone link o Ad-hoc LoWPAN n No route outside the LoWPAN o Internet Integration issues n Maximum transmission unit n Application protocols n IPv4 interconnectivity n Firewalls and NATs n Security IPv6-LoWPAN Router Stack

Adaptation Features o Efficient header compression n IPv6 base and extension headers, UDP header o Fragmentation n 1280 byte IPv6 MTU -> 127 byte 802.15.4 frames

Additional Features o Support for e.g. 64-bit and 16-bit 802.15.4 addressing o Useful with low-power link layers such as IEEE 802.15.4, narrowband ISM and power-line communications o Network auto-configuration using neighbor discovery o Unicast, multicast and broadcast support n Multicast is compressed and mapped to broadcast o Support for IP routing (e.g. IETF RPL) o Support for use of link-layer mesh (e.g. 802.15.5)

Internet Protocol v6 o IPv6 (RFC 2460) = the next generation Internet Protocol n n n n Complete redesign of IP addressing Hierarchical 128-bit address with decoupled host identifier Stateless auto-configuration Simple routing and address management o Majority of traffic not yet IPv6 but... n n n n Most PC operating systems already have IPv6 Governments are starting to require IPv6 Most routers already have IPv6 support So the IPv6 transition is coming o 1400% annual growth in IPv6 traffic (2009)

IPv4 vs. IPv6 Addressing Image source: Indeterminant (Wikipeida) GFDL IPv4: 7x10-6 [addresses/m 2 ] IPv6: 666x10 21 [addresses/m 2 ]

IPv4 vs. IPv6 Header Image source: Bino1000, Mkim (Wikipeida) GFDL

The 6LoWPAN Format o 6LoWPAN is an adaptation header format n Enables the use of IPv6 over low-power wireless links n IPv6 header compression n UDP header compression o Format initially defined in RFC4944 o Updated by draft-ietf-6lowpan-hc (work in progress)

6LowPAN Header Compression at a Glance o o o Stateless compression Flow-independent compression Simple tricks on IPv6/UDP header n Common values for header fields => compact forms n Version is always 6 n Traffic Class and Flow Label are zero n Payload Length always derived from L2 header n Source and Destination Addresses can be elided (linklocal) and/or compressed depending on the context of the transmission

IPv6 Addressing o o o o 128-bit IPv6 address = 64-bit prefix + 64-bit Interface ID (IID) The 64-bit prefix is hierarchical n Identifies the network you are on and where it is globally The 64-bit IID identifies the network interface n Must be unique for that network n Typically is formed statelessly from the interface MAC address o Called Stateless Address Autoconfiguration (RFC2462) There are different kinds of IPv6 addresses n Loopback (0::1) and Unspecified (0::0) n Unicast with global (e.g. 2001::) or link-local (FE80::) scope n Multicast addresses (starts with FF::) n Anycast addresses (special-purpose unicast address)

6LoWPAN Addressing o o o IPv6 addresses are compressed in 6LoWPAN Prefix n Addresses within 6LoWPAN typically contain common prefix n Nodes typically communicate with one or few central devices n Establish state (contexts) for such prefixes only state maintenance n Support for up to 16 contexts 6LoWPAN compresses IPv6 addresses by Interface ID n Typically derived from L2 addr during autoconfiguration n Elide when Interface Identifier can be derived from L2 header

Addressing Example

The Header Compression header o TF (Traffic Class and Flow Label) n 0: Carried Inline (ECN+DSCP+Flow), 1: ECN+Flow, 2: ECN+DSCP, 3: All zero o NH (Next Header compression) n 0: Carried Inline, 1: Next Header is compressed o HLIM (Hop Limit = Inline, 1, 64, 255) n 0: Carried Inline, 1: 1, 2: 64, 3: 255 o CID (Context Identifier Extension) n 0: No 1-byte CID identifier, 1: 1-byte identifier follows o SAC/DAC (Source/Destination Address Compression) n 0: Stateless, 1: Context-based o SAM/DAM (Source/Destination Address Mode) n 0: 16 bytes inline, 1: 8 bytes inline, 2: 2 bytes inline, 3: elided o M (Multicast Destination) n 0: Destination is not multicast, 1: Destination is multicast

Traffic Class and Flow Label Compression

Next Header and Hop limit compression o Next Header Field o Hop Limit Field

Addresses Compression o Source/Destination Address Compression modes o Stateless Mode (SAC/DAC=0) n Prefix is link-local (fe80::/10) o Context-Based (SAC/DAC=1) n Prefix taken from stored contexts (up to 16 contexts) n CID = 0, use ContextID = 0 n CID = 1, include 4-bit ContextID for source & destination

Multicast Addresses Compression

UDP Header Compression

UDP Header Compression o Assume common values for header fields and define compact forms n Ports within 61616 to 61632 (4 bits) n Length derived from IPv6 Length n Checksum may be elided if other integrity checks are in use (e.g. Ipsec) n n C (Checksum): 0: Inline, 1: Elide P (Ports): o o o o 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 Local

Global Unicast

Fragmentation o IPv6 requires a minimum 2-PDU of 1280 bytes o 802.15.4 has a maximum payload of 127 bytes o IPv6 packets should be fragmented by 6LowPAN adaptation layer

Fragmentation Header o dgram_size: size of the fragment in bytes o dgram_tag: fragmentation ID (common to all fragments) o dgram_offset: fragmentation offset (word of 8 bytes). Elided in the 1 fragment

Fragmentation in Practice o The performance of large IPv6 packets fragmented over low-power wireless mesh networks is poor! n Lost fragments cause whole packet to be retransmitted n Low-bandwidth and delay of the wireless channel n 6LoWPAN application protocols should avoid fragmentation n Fragmentation handled at the application layer (COAP) n Compression should be used on existing IP application protocols when used over 6LoWPAN if possible

What should be the Optimum Ideal Routing Protocol for WSNs o Shortest-path routes o Avoids overlap o Minimum energy consumption o Needs global topology information A B C D E F G

Types of Routing Protocols o Algorithm classes n n Distance-vector Links are associated with cost, used to find the shortest route. Each router along the path store local next-hop information about its route table. Link-state Each node acquires complete information about the network, typically by flooding. Each node calculated a shortest-path tree calculated to each destination. o Types of Signaling n n Proactive Routing information acquired before it is needed. Reactive Routing information discovered dynamically when needed. o Route metrics are an important factor

6LoWPAN Routing o Here we consider IP routing (at layer 3) o Routing in a LoWPAN n Single-interface routing n Flat address space (exact-match) n Stub network (no transit routing)

IETF ROLL o Routing Over Low power and Lossy networks (ROLL) n Working group at the IETF o Standardizing a routing algorithm for embedded apps o Application specific requirements n Home automation n Commercial building automation n Industrial automation n Urban environments o Analyzed all existing protocols o Solution must work over IPv6 and 6LoWPAN o Protocol in-progress called RPL Ripple n Proactive distance-vector approach

Background o Constrained devices! (few Kbytes of RAM, dozens of Kbytes of Flash, 8/16-bit microcontroller) o Low-speed highly unstable lossy links (oscillation avoidance is a key) o Potentially very large scale (10-100sK nodes) o Unattended devices in harsh environments

RPL Phylosophy o General Principle: Do Not Overact

ROLL RPL Ripple

Requirements/Objectives o Unicast/Anycast/Multicast o Adaptive Routing n Different metrics o Constraint-Based Routing n Parallel Paths o Scalability o Goal: RPL builds up a Destination-Oriented Directed Acyclic Graph (DODAG) o What DODAG depends on the specific Objective Function (OF)

Metrics & Constraints o Metric: scalar to capture the link/path performance (reliability, interference, throughput, etc.) o Constraint: criteria to eliminate links from a DODAG o Routing OF combines metric and constraints n Es: find the path with the maximum reliability that does not traverse any non-encrypted link

The Most Common Routing Metric o Node n Residual Energy (node) n CPU, Storage, WorkLoad, Battery/Mains o Link n Throughput (local/global metric) n Latency (local/global metric) n Reliability (local/global metric) o Expected Transmission Count (ETX) o Link Quality Level (LQL) o Hop Count

o The average number of packet transmissions to successfully transmit a packet o Ex: The ETX A n Being the packet error probability from A to B and from B to A p and q, respectively, the ETX is: 1/[(1-p)(1-q)] n p and q can be estimated through periodic beaconing B

RPL Messages o DODAG Information Object (DIO) n Link Local Messages to Advertise/Build Up DODAG n Contains all the information to exchange metrics/set constraints o Destination Advertisement Object (DAO) n Used to propagate information on destination (prefixes) n Support to ptp and ptmp traffic o DODAG Information Solicitation (DIS) n Used to solicit DIOs

DODAG Construction

Step 1 and 2

Step 3

Final DODAG

Multiple Routing OF calls for Multiple DODAGs o The very same network may support different applications n Es: network with battery- and main-operated devices, high and low bandwidth links, and two applications (telemetry and alarming) n One time sensitive path for alarms (low latency, high reliability, no constraints on energy) n One non-time-sensitive path for telemetry energy optimized (do not traverse batteryoperated nodes)

o OF1: use the LQL as a global metric, minimize the number of low and fair quality links, avoid nonencrypted links o OF2: find the best path in terms of latency while avoiding poor quality links and battery-operated nodes