6lowpan ipv6 for wireless sensor network

21
6LoWPAN IPv6 for Wireless Sensor Network This work is licensed under the Creative Commons Attribution-Noncommercial- Share Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA Gustavo Mercado UTN-FRMendoza Mendoza - Argentina [email protected] LACNOG 2011 Buenos Aires, Argentina, los días 4 al 7 de Octubre Carlos Taffernaberry Universidad de Mendoza Mendoza - Argentina [email protected]

Upload: others

Post on 12-Sep-2021

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 6LoWPAN IPv6 for Wireless Sensor Network

6LoWPAN

IPv6 for Wireless Sensor Network

This work is licensed under the Creative Commons Attribution-Noncommercial-

Share Alike 3.0 Unported License. To view a copy of this license, visit

http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative

Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA

Gustavo Mercado UTN-FRMendoza Mendoza - Argentina

[email protected]

LACNOG 2011 Buenos Aires, Argentina, los días 4 al 7 de Octubre

Carlos Taffernaberry Universidad de Mendoza

Mendoza - Argentina

[email protected]

Page 2: 6LoWPAN IPv6 for Wireless Sensor Network

Internet of Things • A global network infrastructure, linking physical and virtual

objects through the exploitation of data capture and

communications capabilities.

• This infrastructure includes existing and evolving Internet and

network developments.

• It will offer specific object-identification, sensor and

connection capability as the basis for the development of

independent federated services and applications.

• These will be characterised by a high degree of autonomous

data capture, event transfer, network connectivity and

interoperability.

Source CASAGRAS 2

Page 3: 6LoWPAN IPv6 for Wireless Sensor Network

Internet of Things

3

Page 4: 6LoWPAN IPv6 for Wireless Sensor Network

Internet of Things

4

Source: Internet of Things Strategic Research Roadmap

Page 5: 6LoWPAN IPv6 for Wireless Sensor Network

Internet of Things

Page 6: 6LoWPAN IPv6 for Wireless Sensor Network

Internet of Things

Source IPSO

Page 7: 6LoWPAN IPv6 for Wireless Sensor Network

Internet of Things en la Universidad Tecnológica Nacional – Mendoza Argentina

“Inserción de generación fotovoltaica en el sistema de distribución de

energía eléctrica, dentro del ámbito urbano de Mendoza”

• Lugar de trabajo: UTN-FRM. Dptos de Ing. Electromecánica, Electrónica, Grupos

CLIOPE y GridTics

•Dir: Alejandro Pablo Arena

•Integrantes: Mario Martínez, Cristian Pérez, Gustavo Mercado, Eduardo Font,

Santiago Heredia, Pablo Giménez

“Diseño de técnicas de aprendizaje de máquinas aplicado a la

caracterización ambiental de la cuenca andina” • Lugar de trabajo: IANIGLA Conicet Mendoza - GridTICS – UTN FRM

• Doctorando: Ing. Ana Diedrichs

• Director de Beca: Dr. Facundo Bromberg -FRM UTN

• Co-Director: Dr. Ana Marina Srur -IANIGLA CONICET

“Optimización de sistemas de riego mediante redes de sensores

inalámbricos”, • Lugar de trabajo: INTA Mendoza – gridTICS UTN FRM

• Directores: Dr. Jorge Pérez Peña – INTA, Ing. Pablo Farreras UTN FRM

•Integrantes: Wireless Network Sensor Group – UTN FRM

Page 8: 6LoWPAN IPv6 for Wireless Sensor Network

SIPIA Net Wireless Sensor Network for

Agronomical Research

SIPIA Net Propietary STACK (gridTiCS)

SIPIA6 Net 6loWPAN STACK

Page 9: 6LoWPAN IPv6 for Wireless Sensor Network

Challenge to LoWPAN's

Hard to implement in embedded devices: -Security: IP includes support for IP Security.

-WebServices: Internet services today rely on webservices, mainly using the transmission control protocol (TCP). -Management: Management with SNMP or web services. -Frame size: Current Internet protocols require links with sufficient frame length. -Power and duty-cycle: Battery-powered wireless devices need to keep low duty cycles. -Multicast: Wireless embedded radio technologies, do not typically support multicast. -Reliability: Standard Internet protocols are not optimized for low-power wireless and lossy networks.

Page 10: 6LoWPAN IPv6 for Wireless Sensor Network

What is 6LoWPAN?

IPv6 over Low-Power wireless Personal Area Networks Defined by IETF standards RFC 4919, 4944 draft-ietf-6lowpan-hc and -nd draft-ietf-roll-rpl draft-ietf-6lowpan-uc (use cases) draft-6lowpan-tcphc

Don't reinvent the wheel

IPv6

Page 11: 6LoWPAN IPv6 for Wireless Sensor Network

Benefits of 6LoWPAN Technology IPv6 over Low-Power Wireless Personal Area Networks

Low-power RF + IPv6 = The Internet of Things

6LoWPAN makes this possible The benefits of 6LoWPAN include: ● Open, long-lived, reliable standards ● Easy learning-curve ● Transparent Internet integration ● Network maintainability ● Global scalability ● End-to-end data flows ● use of existing Internet infrastructure

Minimal use of code and memory

Multiple topology options

Multiple independent implementations 10+

Increasing number of deployments

Page 12: 6LoWPAN IPv6 for Wireless Sensor Network

Architecture

Page 13: 6LoWPAN IPv6 for Wireless Sensor Network

Architecture

IPv6-LoWPAN Edge Router Stack

• LoWPANs are stub networks

• Simple LoWPAN

– Single Edge Router

• Extended LoWPAN

– Multiple Edge Routers with common backbone link

• Ad-hoc LoWPAN

– No route outside the LoWPAN

• Internet Integration issues

– Maximum transmission unit

– Application protocols

– IPv4 interconnectivity

– Firewalls and NATs

– Security

Page 14: 6LoWPAN IPv6 for Wireless Sensor Network

The 6LoWPAN Format

• 6LoWPAN is an adaptation header format

– Enables the use of IPv6 over low-power wireless links

– IPv6 header compression

– UDP header compression

• Format initially defined in RFC4944

• Updated by draft-ietf-6lowpan-hc (work in progress)

Page 15: 6LoWPAN IPv6 for Wireless Sensor Network

The 6LoWPAN Format

• 6LoWPAN makes use of IPv6 address compression

• RFC4944 Features:

– Basic LoWPAN header format

– HC1 (IPv6 header) and HC2 (UDP header) compression formats

– Fragmentation & reassembly

– Mesh header feature (depreciation planned)

• draft-ietf-6lowpan-hc Features:

– New HC (IPv6 header) and NHC (Next-header) compression

– Support for global address compression (with contexts)

– Support for IPv6 option header compression

– Support for compact multicast address compression

Page 16: 6LoWPAN IPv6 for Wireless Sensor Network

6LoWPAN Headers

• Orthogonal header format for efficiency

• Stateless header compression

Page 17: 6LoWPAN IPv6 for Wireless Sensor Network

Prefix Dissemination

• In normal IPv6 networks RAs are sent to a link based on the

information (prefix etc.) configured for that router interface

• In ND for 6LoWPAN RAs are also used to automatically

disseminate router information across multiple hops

Page 18: 6LoWPAN IPv6 for Wireless Sensor Network

6LoWPAN Routing

• Here we consider IP routing (at layer 3)

• Routing in a LoWPAN

– Single-interface routing

– Flat address space (exact-match)

– Stub network (no transit routing)

Routing Over Low power and Lossy networks (ROLL)

Page 19: 6LoWPAN IPv6 for Wireless Sensor Network

Chips Solutions

• Single-Chip (App + 6LowPAN + Transceiver) • Minimizing cost and size is critical.

• Complexity of the embedded application is low.

• All soft on the same micro increases complexity and development time.

• Examples TI CC2530, TI CC1110, ATMEGA 128RF and the Jennic JN5139.

• Two-Chip (App + 6LowPAN <UART> Transceiver)

• Great application complexity and performance requirements.

• Leaves the developer freedom in the choice of application microcontroller.

• 6LoWPAN and application need to be integrated in the same microcontroller and may require extensive engineering and testing.

• Examples of radio transceivers are TI CC2520, Atmel AT86RF231.

• Network Processor (App <UART> 6LowPAN + Transceiver)

• Projects in which a design or application software already exists.

• Programming is often realized as an extended socket-like protocol.

• Not be possible for devices with extreme cost limitations.

• Example of network processor is TI CC1180.

Page 20: 6LoWPAN IPv6 for Wireless Sensor Network

Protocols Stacks

• Contiki and uIPv6

– Low-Power IPv6/RPL Network – TCP and UDP proto

– Network simulator (Cooja)

• Tiny OS

– BLIP, the Berkeley Low-power IP stack

– IPv6 Ready – TCP and UDP proto

• Nano Stack (Sensinode)

– Nano Stack, Nano Router, Nano Service

– Nano Sensor – UDP proto only

• Jennic 6LoWPAN (Jennic)

– JN5139 Wireless Microcontroller

– Jenie API, SNAP, JenNet – UDP proto only

Page 21: 6LoWPAN IPv6 for Wireless Sensor Network

References • Internet of Things – International Dimensions – CASAGRAS2 EU F7 Project –

www.iot-casagras.org/.

• Patrick Guillemin, Peter Friess, “Internet of Things: Strategic Research Roadmap”, SRA 2009

• N. Kushalnagar, G. Montenegro, C. Schumacher “IPv6 over Low-Power Wireless Personal Area

Networks (6LoWPANs):Overview, Assumptions, Problem Statement, and Goals”, RFC 4919,

August 2007, IETF

• G. Montenegro,N. Kushalnagar,J. Hui, D. Culler “Transmission of IPv6 Packets over IEEE

802.15.4 Networks”, RFC 4944, September 2007, IETF

• Shelby & Bormann, “The Wireless Embedded Internet” ISBN: 978-0-470-74799-5, (c)

2009 John Wiley & Sons Ltd

• David E. Culler & Jonathan Hui ”6LoWPAN Tutorial: IP on IEEE 802.15.4 Low-Power Wireless

Networks”, Arch Rock Corporation

• “Compression Format for IPv6 Datagrams in 6LoWPAN Networks”, draft-ietf-6lowpan-hc-13.

• “Neighbor Discovery Optimization for Low-power and Lossy Networks”, draft-ietf-6lowpan-nd-15

• “Design and Application Spaces for 6LoWPANs”, draft-ietf-6lowpan-usecases-09.

This work is licensed under the Creative Commons Attribution-Noncommercial-

Share Alike 3.0 Unported License. To view a copy of this license, visit

http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative

Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA