TOC 
6MANP. Thubert, Ed.
Internet-DraftCisco Systems
Intended status: Standards TrackJune 10, 2010
Expires: December 12, 2010 


Reverse Routing Header
draft-thubert-6man-reverse-routing-header-00

Abstract

For new classes of devices such as highly constrained nodes, forward and return Record Route capabilities are required to enable basic forwarding operations. This memo defines a such a technique for IPv6.

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 December 12, 2010.

Copyright Notice

Copyright (c) 2010 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
    1.1.  Motivations
2.  Terminology
3.  Examples
    3.1.  Flooding downwards
    3.2.  Following an implicit upwards path
    3.3.  Recording a forward path
4.  New Routing Headers
    4.1.  FRRH and RRH formats
    4.2.  Optimum number of slots
5.  Source Routing Node Operation
    5.1.  Processing of ICMP "RRH too small"
    5.2.  Processing of ICMP error
    5.3.  Processing of RRH Packets
    5.4.  Processing of FRRH Packets
6.  Security Considerations
7.  IANA considerations
8.  Protocol Constants
9.  Acknowledgements
10.  References
    10.1.  informative reference
    10.2.  normative reference
§  Author's Address




 TOC 

1.  Introduction

This document assumes that the reader is familiar with the IPv6 RH0 operation as specified in [RFC2460] (Deering, S. and R. Hinden, “Internet Protocol, Version 6 (IPv6) Specification,” December 1998.) and the RH2 as previously defined in [RFC3775] (Johnson, D., Perkins, C., and J. Arkko, “Mobility Support in IPv6,” June 2004.) and the RH4 defined for RPL (Winter, T., Thubert, P., and R. Team, “RPL: IPv6 Routing Protocol for Low power and Lossy Networks,” May 2010.) [I‑D.ietf‑roll‑rpl] in [I‑D.hui‑6man‑rpl‑routing‑header] (Hui, J., Vasseur, J., and D. Culler, “An IPv6 Routing Header for Source Routes with RPL,” June 2010.).

This specification defines a Forward Record Routing Header (FRRH), that is a controlled variant of the Loose Source and Record Route (LSRR) defined for IPv4 in [RFC0791] (Postel, J., “Internet Protocol,” September 1981.) and hereby adapted for IPv6. FRRH records the path of a packet within a closed Source Routing Domain (SRD) such as a RPL network. The FRRH can be trivially converted into a RH4 to force further packets to follow an identical path within the same RPL network.

This specification also introduces a new Routing Header, called the Reverse Routing Header (RRH), to perform source routing within the RPL network along the way back. As opposed to the FRRH that records a forward path, RRH stacks the route bottom up and can be trivially converted into a RH4 to force packets to follow an identical reverse path within the same RPL network.



 TOC 

1.1.  Motivations

A Low Power Lossy Network (LLN) forms a dynamic NBMA Subnetwork of devices that might be so constrained in memory that they cannot hold all the states that would be required to route within their own Subnetwork. In some instances, default routes to some border routers can be maintained, but the way back to specific destination cannot. In other instances, even the route to the border router will be lost rapidly. RPL (Winter, T., Thubert, P., and R. Team, “RPL: IPv6 Routing Protocol for Low power and Lossy Networks,” May 2010.) [I‑D.ietf‑roll‑rpl] is a Subnetwork Gateway Protocol (SGP), that is a routing protocol that is especially designed to build and maintain a routing topology within the LLN.

The path information must be somehow aggregated to provide the source with consistent snapshots of the full path across the Source Route Domain. This is achieved by IPv6 forms of LSRR, introduced in [I‑D.hui‑6man‑rpl‑routing‑header] (Hui, J., Vasseur, J., and D. Culler, “An IPv6 Routing Header for Source Routes with RPL,” June 2010.) that defines the RH type 4 for the routing part and augmented hereby for the record part.

The protocol in the packet determines the propagation of the record RHs and thus the path that is being recorded. To enforce the hop-by-hop recording operation, The source and the destination of packet with a record RH MUST have the scope of a link. The source address MUST be link local address, whereas the destination MUST be either a link local address (typically for a RPL DAO message) or a link-scoped multicast address when performing some form of flooding (typically for a RPL DIS or DIO message).



 TOC 

2.  Terminology

This document assumes that the reader is familiar with ROLL terminology defined in [I‑D.ietf‑roll‑terminology] (Vasseur, J., “Terminology in Low power And Lossy Networks,” March 2010.).

Additional terms are defined hereafter:

DAG
Directed Acyclic Graph.
SRN
Source Routing Node. A host or a router with the capability to support this specification and make use of RRH within its NBMA Subnetwork .
SRD
Source Routing Domain. A domain in which the Source Route operation is accepted. All intermediate addresses within the same RH must belong to the same SRD. A domain can be:
  • A node or a contiguous set of nodes such as a dominating set
  • A Subnetwork such as a RPL Network
  • A network serving the same Unique Local Aggregation.
SRA:
Source Routable Address. An address that can be inserted in a RH/RRH. An SRA is an Ipv6 address that belongs to the SR domain with a scope that is valid across the SR domain.
TA:
Target Address. The last Address in the Routing Header identifying the target. There is no constraint on that address.
CRH:
Constrained Routing Header. A constrained routing header is a routing header that can be forwarded only within an SRD. It is formed of a list of SRA, followed by at most one TA.
FRRH:
Forward Record Routing Header, defined in this specification; a variable size record route header used to learn a path hop-by-hop. It is preferably formed of addresses that are located on the ingress interface of the packets.
RRH:
Reverse Routing Header, defined in this specification; a variable size reverse route header used to learn a path back hop-by-hop. It is formed of addresses that are located on the egress interface of the packets.
NULL RH:
An FRRH or an RRH with a zero "Segments Used".



 TOC 

3.  Examples

For the sake of the example, the RPL Network in the following figure assumes the logical shape of a tree towards a border router. This abstraction is chosen because it is simpler to represent than the actual Directed Acyclic Graph shape that most RPL Networks will form.



                    +---------------------+
                    |     Internet        |---CN
                    +---------------|-----+
                            Border Router
                              |
                           ======?======
                                SRN1
                                 |
                   ====?=============?==============?===
                      SRN5          SRN2           SRN6
                       |             |              |
                 ===========   ===?=========   =============
                                 SRN3
                                  |
                         ===========?==
    RPL Network                    SRN4
                                    |
                                =========


  A tree shaped RPL network 

This example focuses on a SRD node at depth 3 identified as Source Routing Node 3 (SRN3). The path to the border router and then the Internet is

     SRN3 -> SRN2 -> SRN1 -> Border Router ->Internet

In one example, the Border Routers first initiates a multicast flooding to build a Reverse Routing Header that records the source route path from each node towards itself. In another example, a node that wishes to be reachable starts a record route towards the border router.

A node that wishes to be reachable inserts a reverse routing header with a number of N pre-allocated slots that derive from its estimation of its depth.



 TOC 

3.1.  Flooding downwards

In this example, no preexisting routing structure exists and the routing header is being assembled by a flooding mechanism from the Border Router (BR) downwards.

The packet has source the Border Router link local Address, BR_LLA, and destination a multicast link scope address that is used for the flooding:

+-------+-------++ -- ++----+-------++-------+--------+--------+ +---
| SRC   | DST   |:    :|    | slotN || slot2 | slot1  | source | |
| BR    |all XXX|: EXT:|RRH |       ||       | BR     | BR     | | NH
| LLA   |L scope|:    :|    |       ||       | SRA    | TA     | |
+-------+-------++ -- ++----+-------++-------+--------+--------+ +---

The BR-SRA acts as locator and it is possible that this address has a limited reach such as ULA. The BR-TA is a global identifier for the BR. It might be omitted when the source of the RRH is only used as an intermediate router and not as a destination.

It must be noted that BR-SRA is preferably an address on the BR interface towards SRN1, that is directly visible from SRN1, in case there is no routing between BR and SRN1.

BR-SRA is also preferably an address that has a scope as large as the Source Route Domain, enabling the hop-by-hop recording process to possibly omit tracing some intermediate hops and thus form a loose source route header.

The routers one hop away figure the best message they receive and propagate it, including the augmented RRH.

For SRN1, this gives:

+-------+-------++ -- ++----+-------++-------+--------+--------+ +---
| SRC   | DST   |:    :|    | slotN || slot2 | slot1  | source | |
| SRN1  |all XXX|: EXT:| RRH|       || SRN1  | BR     | BR     | | NH
| LLA   |L scope|:    :|    |       || SRA   | SRA    | TA     | |
+-------+-------++ -- ++----+-------++-------+--------+--------+ +---

When SRN3 gets the packet, it receives:

+-------+-------++ -- ++----++-------+-------+--------+--------+ +---
| SRC   | DST   |:    :|    || slot3 | slot2 | slot1  | source | |
|SRN2   |all XXX|: EXT:| RRH|| SRN2  | SRN1  | BR     | BR     | | NH
|LLA    |L scope|:    :|    || SRA   | SRA   | SRA    | TA     | |
+-------+-------++ -- ++----++-------+-------+--------+--------+ +---

The RH4 is trivially built by picking the tail of the incoming RRH, to be inserted when sending a packet to the border router. Additionally, the node might create a tunnel interface towards the border and install a default route there.

So an arbitrary destination in the Internet can replace the BR TA and will cause a packet flow like this:



transport mode (1 slot consumed if SRN3 TA is included)):
+-------+-------+----+-------+-------+-------+---------++ -- + +---
| SRC   | DST   | RH | slot3 | slot2 | slot1 | destin. |:    : |
|SRN3   |SRN2   |type| SRN3  | SRN1  | BR    | arbitr. |: EXT: | NH
|SRA    |SRA    | 4  | TA    | SRA   | SRA   | destin. |:    : |
+-------+-------+----+-------+-------+-------+---------++ -- + +---

tunnel mode (nothing consumed):
+-------+-------+----+-------+-------+ +-------+-------++ -- + +---
|oSRC   |oDST   | RH | slot1 | slot0 | |iSRC   |iDST   |:    : |
|SRN3   |SRN2   |type| SRN1  | BR    | |SRN3   |arbitr.|: EXT: | NH
|SRA    |SRA    | 4  | SRA   | SRA   | |TA     |destin.|:    : |
+-------+-------++--++-------+-------+ +-------+-------++ -- + +---
 Message going out of SRN3 to the BR 

That reaches the Border Router as this:



transport mode (consumed up to slot 1):
+-------+-------+----+-------+-------+-------+---------++ -- + +---
| SRC   | DST   | RH | slot3 | slot2 | slot1 | destin. |:    : |
|SRN3   |BR     |type| SRN3  | SRN2  | SRN1  | arbitr. |: EXT: | NH
|TA     |SRA    | 4  | SRA   | SRA   | SRA   | destin. |:    : |
+-------+-------+----+-------+-------+-------+---------++ -- + +---

tunnel mode (all consumed):
+-------+-------+----+-------+-------+ +-------+-------++ -- + +---
|oSRC   |oDST   | RH | slot1 | slot0 | |iSRC   |iDST   |:    : |
|SRN3   |BR     |type| SRN2  | SRN1  | |SRN3   |arbitr.|: EXT: | NH
|SRA    |SRA    | 4  | SRA   | SRA   | |TA     |destin.|:    : |
+-------+-------++--++------+-------+ +-------+-------++ -- + +---

Message going out of BR:
+-------+-------++ -- + +---
| SRC   | DST   |:    : |
|SRN3   |arbitr.|: EXT: | NH
|TA     |destin.|:    : |
+-------+-------++ -- + +---
 Message coming in the border router from SRN3 

Upon decapsulation, it is up to the border router to decide by policy whether it should route the packet or not. In particular in Transport mode, security reasons might dictate to drop the packet.



 TOC 

3.2.  Following an implicit upwards path

In this example, a preexisting routing structure exists that leads to a well-known border router. The RRH is assembled along that path.

The last (bottom) slot contains a global identifier for the SRN, SRN3 TA. there is no constraint with regard to the type of IPv6 address used there. It might be omitted if SRN3 uses its SRA to terminate its connections. Then SRN3 inserts its SRA in the slot directly above.

The IPv6 header in the packet has source SRN3's link local Address, SRN3_LLA, and destination SRN3's next hop LLA, SRN2_LLA, on the link between SRN2 and SRN3:

+-------+-------++ -- ++----+-------++-------+-------+---------+ +---
| SRC   | DST   |:    :|    | slotN || slot2 | slot1 | source  | |
|SRN3   |SRN2   |: EXT:| RRH|       ||       | SRN3  | SRN3    | | NH
|LLA    |LLA    |:    :|    |       ||       | SRA   | TA      | |
+-------+-------++ -- ++----+-------++-------+-------+---------+ +---

The second router on the path, SRN2, receives that the packet. If it is not the border router, then it might wish to propagate the protocol payload towards the border router that is the implicit termination of the propagation as dictated by the protocol operation.

The outer packet now has source SRN2 LLA and destination SRN1 LLA; the RRH from top to bottom is: empty_slots | SRN2_SRA | SRN3_SRA | SRN3_TA:

+-------+-------++ -- ++----+-------++-------+-------+---------+ +---
| SRC   | DST   |:    :|    | slotN || slot2 | slot1 | source  | |
|SRN2   |SRN1   |: EXT:| RRH|       || SRN2  | SRN3  | SRN3    | | NH
|LLA    |LLA    |:    :|    |       || SRA   | SRA   | TA      | |
+-------+-------++ -- ++----+-------++-------+-------+---------+ +---

In general the process followed by the second router is repeated by all the routers on the path, till the border router that receives and absorbs:

+-------+-------++ -- ++----++-------+-------+-------+---------+ +---
| SRC   | DST   |:    :|    || slot3 | slot2 | slot1 | source  | |
|SRN1   |BR     |: EXT:| RRH|| SRN1  | SRN2  | SRN3  | SRN3    | | NH
|LLA    |LLA    |:    :|    || SRA   | SRA   | SRA   | TA      | |
+-------+-------++ -- ++----++-------+-------+-------+---------+ +---

When the border router, receives the packet, it MAY store the information in RRH to build an RH4 back to SRN3 TA (or SRN3 SRA if the TA is omitted)

Again, the RH is trivially built by picking the trail of the previous RRH, to be inserted by the border router into any packet flowing down to SRN3:


Message coming in the border router from the infrastructure behind:

+-------+-------++ -- + +---
| SRC   | DST   |:    : |
|arbitr.|SRN3   |: EXT: | NH
|source |TA     |:    : |
+-------+-------++ -- + +---

Message going out the border router:

transport mode:
+-------+-------+----+-------+-------+---------++ -- + +---
| SRC   | DST   | RH | slot2 | slot1 | destin  |:    : |
|arbitr.|SRN1   |type| SRN2  | SRN3  | SRN3    |: EXT: | NH
|source |SRA    | 4  | SRA   | SRA   | TA      |:    : |
+-------+-------+----+-------+-------+---------++ -- + +---

Tunnel mode:
+-------+-------++----+-------+--------+ +-------+-------++ -- + +---
|oSRC   |oDST   || RH | slot2 | slot1  | |iSRC   |iDST   |:    : |
|SRN3   |SRN1   ||type| SRN2  | SRN3   | |arbitr.|SRN3   |: EXT: | NH
|SRA    |SRA    || 4  | SRA   | SRA    | |source |TA     |:    : |
+-------+-------++----+-------+--------+ +-------+-------++ -- + +---

The RH type 4 is consumed along the source route path to SRN3 as a deprecated [RFC2460] (Deering, S. and R. Hinden, “Internet Protocol, Version 6 (IPv6) Specification,” December 1998.) RH type 0 would, and the last hop (SRN3 SRA to SRN3 TA) is consumed internally in SRN3, if it was present in the first place, like a RH type 2 would be in the case of Mobile IPv6 (Johnson, D., Perkins, C., and J. Arkko, “Mobility Support in IPv6,” June 2004.) [RFC3775].



 TOC 

3.3.  Recording a forward path

In this example, a Forward Record RH is filled as the protocol information is propagated along the same upwards path.

The FRRH is initially empty. The source SRN3 might virtually start from SRN3-TA in which case that address is added to the FRRH. Then, as any node along the path, SRN3 adds it SRA and passes the packet long.

The IPv6 header in the packet has source SRN3's link local Address, SRN3_LLA, and destination SRN3's next hop LLA, SRN2_LLA, on the link between SRN2 and SRN3:

+-------+-------++ -- ++----+-------++-------+-------+-------+ +---
| SRC   | DST   |:    :|    | slot0 ||slotn-2|slotN-1| slotN | |
|SRN3   |SRN2   |: EXT:|FRRH| SRN3  ||       |       |       | | NH
|LLA    |LLA    |:    :|    | SRA   ||       |       |       | |
+-------+-------++ -- ++----+-------++-------+-------+-------+ +---

The second router on the path, SRN2, receives that the packet. Again, it might wish to propagate protocol payload towards the border router that is the implicit termination of the propagation.

The outer packet now has source SRN2 LLA and destination SRN1 LLA; the FRRH from top to bottom is SRN3_SRA | SRN2_SRA | empty_slots :

+-------+-------++ -- ++----+-------+-------++-------+-------+ +---
| SRC   | DST   |:    :|    | slot0 | slot1 ||slotN-1| slotN | |
|SRN2   |SRN1   |: EXT:|FRRH| SRN3  | SRN2  ||       |       | | NH
|LLA    |LLA    |:    :|    | SRA   | SRA   ||       |       | |
+-------+-------++ -- ++----+-------+-------++-------+-------+ +---

It must be noted that SRN2-SRA is preferably an address on the SRN2 ingress interface from SRN3, that is directly visible from SRN3, in case there is no routing between SRN3 and SRN.

In general the process followed by the second router is repeated by all the routers on the path, till the border router that receives:

+-------+-------++ -- ++----+-------+-------+-------++-------+ +---
| SRC   | DST   |:    :|    | slot0 | slot1 | slot2 || slotN | |
|SRN1   |BR     |: EXT:|FRRH| SRN3  | SRN2  | SRN1  ||       | | NH
|LLA    |LLA    |:    :|    | SRA   | SRA   | SRA   ||       | |
+-------+-------++ -- ++----+-------+-------+-------++-------+ +---

The BR also adds its own information for the internal hop to BR_TA:

+-------+-------++ -- ++----+-------+-------+-------+-------++ +---
| SRC   | DST   |:    :|    | slot0 | slot1 | slot2 | slot3 || |
|SRN1   |BR     |: EXT:|FRRH| SRN3  | SRN2  | SRN1  | BR    || | NH
|LLA    |LLA    |:    :|    | SRA   | SRA   | SRA   | SRA   || |
+-------+-------++ -- ++----+-------+-------+-------+-------++ +---

At this point, the BR possesses a source route path that is usable from any address along that path back to the BR. It may trivially transform the FRRH into a completed RRH and pass it back to SRN3. SRN3 may then transform the RRH into a RH type 4 and send further packets along the same path.



 TOC 

4.  New Routing Headers

This draft introduces new loose source and record Constrained Route Headers for IPv6. The headers have the same format decribed below and only differ from the Routing type.



 TOC 

4.1.  FRRH and RRH formats

The FRRH and the RRH share the following format:

  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Next Header  |  Hdr Ext Len  | Routing Type  | Segments Left |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                            Reserved                           |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 +                                                               +
 |                                                               |
 +                           Address slot                        +
 |                                                               |
 +                                                               +
 |                                                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 +                                                               +
 |                                                               |
 +                           Address slot                        +
 |                                                               |
 +                                                               +
 |                                                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 .                               .                               .
 .                               .                               .
 .                               .                               .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 +                                                               +
 |                                                               |
 +                           Address slot                        +
 |                                                               |
 +                                                               +
 |                                                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Next Header

8-bit selector. Identifies the type of header immediately following the Routing header. Uses the same values as the IPv4 Protocol field [RFC3232] (Reynolds, J., “Assigned Numbers: RFC 1700 is Replaced by an On-line Database,” January 2002.).
Hdr Ext Len

8-bit unsigned integer. Length of the Routing header in 8-octet units, not including the first 8 octets. For the Type 2 Routing header, Hdr Ext Len is equal to two times the number of addresses in the header.
Routing Type

8-bit unsigned integer. Set (tentatively) to 3 for FRRH and 5 for RRH.
Segments Left

8-bit unsigned integer. Number of route segments remaining.
Reserved

32-bit reserved field. Initialized to zero for transmission; ignored on reception.
Address slot []

Vector of 128-bit addresses, numbered 0 to N in LRRH and N to 0 in RRH.


 TOC 

4.2.  Optimum number of slots

A SRN always initializes the number of slots in the F/RRH to the maximum of DEF_RRH_SLOTS and its estimation of its depth, if the latter is known from a reliable hint such as a routing protocol. The message may have a number of unused (NULL) slots, when it is received by the Border Router. The receiver end point crops out the extra entries in order to generates a RH.

From a RRH, the receiver generates a RH type 4 that it can use for a response back.

From a FRRH, the receiver generates a RRH that is fully consumed, and send that back to the sender which in turn will generate a RH type 4. None of those operations need to change the order of the slots in the header and are mostly plain copies.

The RH type 4 contains the number of required slots that the SRN now uses until it gets a hint that the topology changes or until the next route recording.

The number of slots in the RRH MUST NOT be larger than MAX_RRH_SLOTS. If a SRN is deeper than MAX_RRH_SLOTS, it is expected that the rest of the way is already known ot the endpoint.

In runtime, it may happen that the RRH has fewer slots than required for the number of SRNs in the path because either the NBMA Subnetwork topology is changing too quickly, or the SRN that inserted the RRH had a wrong representation of the topology.

To solve this problem a new ICMP message is introduced, "RRH Warning", type 64. A SRN on the upwards path that gets a packet without a free slot in the F/RRH MAY send that ICMP "RRH warning" back to the SRN that inserted the RRH in the first place.

This message allows a SRN on the path to propose a larger number of slots to the SRN that creates the RRH. The Proposed Size MUST NOT be larger than MAX_RRH_SLOTS. The originating SRN must rate-limit the ICMP messages to avoid excessive ICMP traffic in the case of the source failing to operate as requested.

The originating SRN must insert an RH type 4 based on the F/RRH in the associated IP header, in order to route the ICMP message back to the source of the reverse tunnel. A SRN that receives this ICMP message is the actual destination and it MUST NOT forward it to the source of the packet if the tunnel mode is being used.

The type 64 ICMP has the following format:

  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Type = 64   |    Code = 0   |           Checksum            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Current Size  | Proposed Size |          Reserved             |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                    As much of invoking packet headers         |
 +               as will fit without the ICMPv6 packet           +
 |               exceeding the minimum IPv6 MTU                  |
 .                                                               .
 .                                                               .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Type

64 [To Be Assigned]
Code
0: RRH too small; 1: FRRH too small.
The originating SRN requires the source to set the RRH size to a larger value. The packet that triggered the ICMP will still be forwarded by the SRN, but the path cannot be totally optimized (see Section 5.3 (Processing of RRH Packets)).
Checksum

The ICMP checksum [RFC2463] (Conta, A. and S. Deering, “Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification,” December 1998.).
Current Size

RRH size of the invoking packet, as a reference.
Proposed Size

The new value, expressed as a number of IPv6 addresses that can fit in the RRH.
Reserved

16-bit reserved field. Initialized to zero for transmission; ignored on reception.



 TOC 

5.  Source Routing Node Operation



 TOC 

5.1.  Processing of ICMP "RRH too small"

The New ICMP message "RRH too Small" is presented in Section 4.2 (Optimum number of slots). This message is addressed to the SRN which performs the tunnel encapsulation and generates the RRH.

Hence, a SRN that receives the ICMP "RRH too small" MUST NOT propagate it to the originating SRN or inner tunnel source, but MUST process it for itself.

If the Current Size in the ICMP messages matches the actual current number of slots in RRH, and if the ICMP passes some safety checks as described in Section 4.2 (Optimum number of slots), then the SRN MAY adapt the number of slots to the Proposed Size.



 TOC 

5.2.  Processing of ICMP error

When the SRN receives an ICMP error message, it checks whether it is the final destination of the packet by looking at the included packet. If the included packet has an RRH, then the SRN should transform it in a RH type 4 to forward the ICMP to the original source of the packet. If the included packet has an FRRH, then the SRN may reverse it into a RH type 4 to forward the ICMP to the original source of the packet.



 TOC 

5.3.  Processing of RRH Packets

A router that receives a RRH is a link scoped protocol packet may save that RRH and associate it with the propagation of the protocol information. the router performs ULP checksum validation and security header checks including the RRH as received

When the router sends the propagated protocol information over an interface, the router adds one of its addresses from that interface at the head of the RRH, and then computes upper layer checksums and IPSec/AH signatures as required.

It is preferred that the address as a scope that is as large as the Source Route Domain, in order to enable a loose operation. In particular, if the router has consistent states to route to the seconds most recent entry via the source link local of the packet, then it can overwrite the most recent entry with its own.

The node at the end of the propagation and any node on the way may decide to keep a source route state towards the address located in slot 0 using a source route path that is directly inferred from the RRH.



 TOC 

5.4.  Processing of FRRH Packets

A router that receives a FRRH is a link scoped protocol packet may save that RRH and associate it with the propagation of the protocol information. the router performs ULP checksum validation and security header checks including the FRRH as received.

Then the router adds an address from the ingress interface at the end of the FRRH, which is now ready to be associated to the propagation of the protocol. When the router sends the propagated protocol information over an interface, it adds the FRRH as and computes upper layer checksums and IPSec/AH signatures as required.

The node at the end of the propagation and any node on the way may decide to reverse the FRRH into a RRH and send it back to the source located in slot 0 for the FRRH, which in turn can reverse it again, this time into a RH type 4.



 TOC 

6.  Security Considerations

The FRRH and the RRH are propagated as part of a higher hop-by-hop protocol operation, so it is not mutable. Each hop adds its info, then computes the checksum and IPSec headers and then it transmits with a link scope to the next node(s) on the way of the upper layer protocol operation.

This section is not complete; further work is needed to analyze and solve the security problems of record and source route.



 TOC 

7.  IANA considerations

This document requires IANA to define 2 new IPv6 Routing Header types for Forward Record Routing Header and Reverse Routing Header. The allocation is governed by [I‑D.ietf‑6man‑iana‑routing‑header] (Arkko, J. and S. Bradner, “IANA Allocation Guidelines for the IPv6 Routing Header,” October 2009.)



 TOC 

8.  Protocol Constants

DEF_RRH_SLOTS: 7
MAX_RRH_SLOTS: 10



 TOC 

9.  Acknowledgements



 TOC 

10.  References



 TOC 

10.1. informative reference

[I-D.hui-6man-rpl-routing-header] Hui, J., Vasseur, J., and D. Culler, “An IPv6 Routing Header for Source Routes with RPL,” draft-hui-6man-rpl-routing-header-01 (work in progress), June 2010 (TXT).
[I-D.ietf-6man-iana-routing-header] Arkko, J. and S. Bradner, “IANA Allocation Guidelines for the IPv6 Routing Header,” draft-ietf-6man-iana-routing-header-00 (work in progress), October 2009 (TXT).
[I-D.ietf-roll-rpl] Winter, T., Thubert, P., and R. Team, “RPL: IPv6 Routing Protocol for Low power and Lossy Networks,” draft-ietf-roll-rpl-08 (work in progress), May 2010 (TXT).
[I-D.ietf-roll-terminology] Vasseur, J., “Terminology in Low power And Lossy Networks,” draft-ietf-roll-terminology-03 (work in progress), March 2010 (TXT).


 TOC 

10.2. normative reference

[RFC0791] Postel, J., “Internet Protocol,” STD 5, RFC 791, September 1981 (TXT).
[RFC2119] Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” BCP 14, RFC 2119, March 1997 (TXT, HTML, XML).
[RFC2401] Kent, S. and R. Atkinson, “Security Architecture for the Internet Protocol,” RFC 2401, November 1998 (TXT, HTML, XML).
[RFC2402] Kent, S. and R. Atkinson, “IP Authentication Header,” RFC 2402, November 1998 (TXT, HTML, XML).
[RFC2406] Kent, S. and R. Atkinson, “IP Encapsulating Security Payload (ESP),” RFC 2406, November 1998 (TXT, HTML, XML).
[RFC2460] Deering, S. and R. Hinden, “Internet Protocol, Version 6 (IPv6) Specification,” RFC 2460, December 1998 (TXT, HTML, XML).
[RFC2463] Conta, A. and S. Deering, “Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification,” RFC 2463, December 1998 (TXT, HTML, XML).
[RFC3232] Reynolds, J., “Assigned Numbers: RFC 1700 is Replaced by an On-line Database,” RFC 3232, January 2002 (TXT).
[RFC3775] Johnson, D., Perkins, C., and J. Arkko, “Mobility Support in IPv6,” RFC 3775, June 2004 (TXT).
[RFC3971] Arkko, J., Kempf, J., Zill, B., and P. Nikander, “SEcure Neighbor Discovery (SEND),” RFC 3971, March 2005 (TXT).


 TOC 

Author's Address

  Pascal Thubert (editor)
  Cisco Systems
  Village d'Entreprises Green Side
  400, Avenue de Roumanille
  Batiment T3
  Biot - Sophia Antipolis 06410
  FRANCE
Phone:  +33 497 23 26 34
Email:  pthubert@cisco.com