LPWAN T. Lagos, Ed.
Internet-Draft D. Dujovne
Intended status: Informational Universidad Diego Portales
Expires: January 1, 2018 June 30, 2017

LPWAN Static Context Header Compression (SCHC) for ICMPv6
draft-lagos-lpwan-icmpv6-static-context-hc-00

Abstract

This document provides the implementation of the LPWAN static context header compression (SCHC) for the Internet Control Message Protocol version 6 (ICMPv6) on networks with star topology. SCHC is a header compression technique which uses RoHC concepts and the flexibility of 6LoWPAN to avoid fields that are known by all network devices and compress the remaining header fields. The ICMPv6 messages considered in this draft are Echo Request, Echo Reply and Neighbor Discovery.

Requirements Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on January 1, 2018.

Copyright Notice

Copyright (c) 2017 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.


Table of Contents

1. Introduction

LPWANs are networks where low power consumption, high delay and extremely small packets characterize the traffic. The nodes are tipically connected in a star topology, with a central gateway that connects the network to the Internet. Most IP-based networks require ICMP services to enable network configuration and testing, such as neighbor node detection and round trip time calculation. Because ICMPv6 has redundant information in header fields, SCHC can be deployed efficiently, especially for LPWA devices that are constrained by a small available bandwidth and power limitations.

This document describes ICMPv6 message compression using SCHC compression defined on [I-D.toutain-lpwan-ipv6-static-context-hc] to reduce to the minimum the required LPWAN packet size. In order to achieve this goal, we also reuse the Rule ID field by redefining the bit usage without loss in compatibility.

2. Building SCHC rule for ICMPv6

The SCHC rule is set up with one 1 Byte where the 8 bits will be referenced by the letters A B C D E F G H.

Field bits Values
A 1 0: If the Next Header field is ICMPv6, 1: If Next Header field is UDP
B 1 0: If the source address is link-local, 1: If the source address is Global
C 1 reserved

If the A field is ICMPv6, DEFGH will be set with the following configuration:

Field bits Values
DEF:G 4 000:0: If it is Echo Request
001:0: If it is Echo Reply
010:0: If it is Router Solicitation
011:0: If it is Router Advertisement
100:B: If it is Neighbor Solicitation; B = 0 If target address is link-local, B = 1 If Target Address is Global
101:B: If it is Neighbor Advertisement; B = 0 If target address is link-local, B = 1 If Target Address is Global
110:0 If it is Redirect
H 1 0: A single packet is sent, 1: after the packet, the following packet is piggybacked to reduce transmission delay

3. SCHC compression over Echo Request - Echo Reply

Echo Request and Echo Reply are composed by the same fields:

For a SCHC compression it is necessary to identify which fields stay static to build the context.

The fields Code and checksum can be elided because Code is always zero and Checksum can be calculated after the decompression of the packet. In the case of Type, this field can be represented in the SCHC rule. The Identifier and Sequence fields will be sent after the SCHC rule.

Field FP DI Match Opera. Comp Decomp Action Sent [bits]
Type 1 Bi equal not sent
Code 1 Bi equal not sent
Checksum 1 Bi ignore compute-checksum
Identifier 1 Bi equal sent [16]
Sequence 1 Bi ignore sent [16]

4. Router Solicitation SCHC compression

The Router Solicitation packet header is composed by: RFC 4861, Router Solicitation should have a Link-Local Source Address and a Router Multicast Address which can be integrated after the packet decompression.

The most significant field is the MAC address of the network host. As mentioned on

Field FP DI Match Opera. Comp Decomp Action Sent [bits]
Type 1 Bi equal not sent
Code 1 Bi equal not sent
Checksum 1 Bi ignore compute-checksum
Reserved 1 Bi equal not sent
Option - type 1 Bi equal not sent
Option - length 1 Bi ignore compute-length
Option - link-layer 1 Bi ignore sent [36]

5. Router Advertisement SCHC compression

The Router Advertisement packet header is composed by:

The SCHC compression for Router Advertisement is designed to send the MAC address of the packet. Like the Echo message, the Type field can be represented in the SCHC rule.

The Current Hop Limit, Autoconfig Flags, Lifetime Router, Reachable Time, and Retransmission Timer fields can be deleted if the host knows these values. The MTU of this packet can be elided and the IPv6 prefix helps the SCHC compression of the global address, omitting the first 8 bytes of the address.

Field FP DI Match Opera. Comp Decomp Action Sent [bits]
Type 1 Bi equal not sent
Code 1 Bi equal not sent
Checksum 1 Bi ignore compute-checksum
Current Hop Limit 1 Bi ignore not sent
Autoconfig Flags 1 Bi ignore not sent
Router Lifetime 1 Bi ignore not sent
Reachable Time 1 Bi ignore not sent
Retransmission Timer 1 Bi ignore not sent
Option - type 1 Bi equal not sent
Option - length 1 Bi ignore compute-length
Option - link-layer 1 Bi ignore sent [36]
Option - type 1 Bi equal not sent
Option - length 1 Bi ignore not sent
Option - reserved 1 Bi equal not sent
Option - MTU 1 Bi ignore not sent
Option - type 1 Bi equal not sent
Option - length 1 Bi equal not sent
Option - Flag 1 Bi ignore not sent
Option - Valid lifetime 1 Bi ignore not sent
Option - Preferred lifetime 1 Bi ignore not sent
Option - reserved 1 Bi equal not sent
Option - prefix 1 Bi ignore not sent

6. SCHC compression over Neighbor Solicitation

The Neighbor Solicitation packet header is composed by:

For SCHC compression over Neighbor Solicitation, the MAC address and the Target Address are the minimal fields for the transmision. If the Target address has a Link-Local value, the last 8 Bytes of the address are sent, otherwise, the full 16 Bytes are sent. The type field can be represented in the SCHC rule.

Field FP DI Match Opera. Comp Decomp Action Sent [bits]
Type 1 Bi equal not sent
Code 1 Bi equal not sent
Checksum 1 Bi ignore compute-checksum
Target Address 1 Bi match- mapping sent link-local [64] global [128]
Option - type 1 Bi equal not sent
Option - length 1 Bi ignore compute-length
Option - link-layer 1 Bi ignore sent [36]

7. SCHC compression over Neighbor Advertisement

A Neighbor Advertisement is composed by:

For the compression of SCHC in Neighbor Advertisement, the MAC address is sent if it is a Multicast neighborhood request response. If the Target address has a Link-Local value, the last 8 Bytes of the address will be sent, otherwise, the full 16 Bytes will be transmitted. If the Flags field is known by the host, it can be deleted. The Type field can be represented in the SCHC rule.

Field FP DI Match Opera. Comp Decomp Action Sent [bits]
Type 1 Bi equal not sent
Code 1 Bi equal not sent
Checksum 1 Bi ignore compute-checksum
Flags 1 Bi equal not sent
Target Address 1 Bi match- mapping sent link-local [64] global [128]
Option - type 1 Bi equal not sent
Option - length 1 Bi ignore not sent
Option - link-layer 1 Bi ignore not sent

8. Acknowledgments

This work is partially supported by 16STIC-08 STIC-AmSud PEACH Research Project. We would also like to thank the Red Snapper project for their support.

9. References

9.1. Normative References

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997.

9.2. Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification

[RFC4443] Conta, A., Deering, S. and M. Gupta, "Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification", RFC 4443, DOI 10.17487/RFC4443, March 2006.

9.3. Neighbor Discovery for IP version 6 (IPv6)

[RFC4861] Narten, T., Nordmark, E., Simpson, W. and H. Soliman, "Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, DOI 10.17487/RFC4861, September 2007.

9.4. LPWAN Static Context Header Compression (SCHC) and fragmentation for IPv6 and UDP

[I-D.toutain-lpwan-ipv6-static-context-hc] Minaburo, A. and L. Toutain, "LPWAN Static Context Header Compression (SCHC) for IPv6 and UDP", Internet-Draft draft-toutain-lpwan-ipv6-static-context-hc-00, September 2016.

Authors' Addresses

Tomás Lagos (editor) Universidad Diego Portales Escuela de Informatica y Telecomunicaciones Av. Ejercito 441 Santiago, Region Metropolitana Chile Phone: +56 (97) 697-6404 EMail: tomas.lagos@mail.udp.cl
Diego Dujovne Universidad Diego Portales Escuela de Informatica y Telecomunicaciones Av. Ejercito 441 Santiago, Region Metropolitana Chile Phone: +56 (2) 676-8121 EMail: diego.dujovne@mail.udp.cl