ROLL | P. Thubert, Ed. |
Internet-Draft | Cisco Systems |
Intended status: Standards Track | June 20, 2011 |
Expires: December 22, 2011 |
RPL Objective Function 0
draft-ietf-roll-of0-14
The Routing Protocol for Low Power and Lossy Networks (RPL) specification defines a generic Distance Vector protocol that is adapted to a variety of networks types by the application of specific Objective Functions. An Objective Function defines how a RPL node selects and optimizes routes within a RPL Instance based on the information objects available. This document specifies a basic Objective Function that relies only on the objects that are defined in RPL and does not use any extension.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119].
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 22, 2011.
Copyright (c) 2011 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.
The Routing Protocol for LLN (RPL) [I-D.ietf-roll-rpl] specification defines a generic Distance Vector protocol that is adapted to a variety of Low Power and Lossy Networks (LLN) types by the application of specific Objective Functions. An Objective Function defines how a RPL node selects and optimizes routes within a RPL Instance based on the information objects available. This separation of Objective Functions from the core protocol specification allows RPL to be adapted to meet the different optimization criteria required by the wide range of deployments, applications and network designs.
RPL forms Directed Acyclic Graphs (DAGs) as collections of Destination Oriented DAGs (DODAGs) within instances of the protocol. Each instance is associated with a specialized Objective Function. A DODAG is periodically reconstructed as a new DODAG Version to enable a global reoptimization of the graph.
An instance of RPL running on a device uses an Objective Function to help it determine which DODAG Version it should join. The OF is also used by the RPL instance to select a number of routers within the DODAG Version to serve as parents or as feasible successors.
The RPL instance uses the OF to compute a Rank for the device. This value represents an abstract distance to the root of the DODAG within the DODAG Version. The Rank is exchanged between nodes using RPL and allows other RPL nodes to avoid loops and verify forward progression toward the destination, as specified in [I-D.ietf-roll-rpl].
The Objective Function Zero (OF0) operates on parameters that are obtained from provisioning, the RPL DODAG Configuration option and the RPL DIO base container [I-D.ietf-roll-rpl].
The Rank of a node is obtained by adding a normalized scalar, rank_increase (Section 6.1), to the Rank of a selected preferred parent. The rank_increase can vary with a ratio from 1 (excellent) to 9 (worst acceptable) to represent the link properties. By default, OF0 encodes the 2-octet Rank in units of 256, and the default settings allow to encode a minimum of 28 (worst acceptable) hops and a maximum of 255 (excellent) hops.
It is important that devices deployed in a particular network or environment use the same OF to build and operate DODAGs. If they do not, it is likely that sub-optimal paths will be selected). In practice, without a common definition of an OF, RPL implementations cannot guarantee to interoperate correctly. The RPL specification [I-D.ietf-roll-rpl] does not include any OF definitions. This is left for other documents specific to different deployments and application environments. Since there is no default OF or metric container in the RPL main specification, it might happen that, unless two given implementations follow the same guidance for a specific problem or environment, those implementations will not support a common OF with which they could interoperate.
OF0 is designed as a default OF that will allow interoperation between implementations in a wide spectrum of use cases. This is why it is not specific as to how the link properties are transformed into a rank_increase and leaves that responsibility to the implementation; rather, OF0 enforces normalized values for the rank_increase of a normal link and its acceptable range, as opposed to formulating the details of its computation. This is also why OF0 ignores metric containers.
The Terminology used in this document is consistent with and incorporates that described in `Terminology in Low power And Lossy Networks' [I-D.ietf-roll-terminology] and [I-D.ietf-roll-rpl].
The term 'feasible successor' is used to refer to a neighbor that can possibly be used as a next-hop for upwards traffic following the loop avoidance and forwarding rules that the nodes implements and that are defined in the RPL specification [I-D.ietf-roll-rpl].
The RPL specification describes constraints on how nodes select potential parents, called a parent set, from their neighbors. All parents are feasible successors for upward traffic (towards the root). Additionally, RPL allows the use of parents in a subsequent Version of a same DODAG as feasible successors, in which case this node acts as a leaf in the subsequent DODAG Version.
The Goal of the OF0 is for a node to join a DODAG Version that offers good enough connectivity to a specific set of nodes or to a larger routing infrastructure though there is no guarantee that the path will be optimized according to a specific metric. Thus, for the purpose of OF0, the term Grounded [I-D.ietf-roll-rpl] means that the DODAG root provides such connectivity. How that connectivity is asserted and maintained is out of scope.
Objective Function 0 is designed to find the nearest Grounded root. This can be achieved if the Rank of a node is very close to an abstract function of its distance to the root. This need is balanced with the other need of maintaining some path diversity, which may be achieved by increasing the Rank. In the absence of a Grounded root, inner connectivity within the Low Power and Lossy Network is still desirable and floating DAGs will form, rooted at the nodes with the highest administrative preference.
OF0 selects a preferred parent and a backup feasible successor if one is available. All the upward traffic is normally routed via the preferred parent with no attempt to perform any load balancing. When the link conditions do not let an upward packet through the preferred parent, the packet is passed to the backup feasible successor.
A RPL node monitors links to a number of neighbor nodes, and can use OF0 to assign a rank_increase to each link. Though the exact method for computing the rank_increase is implementation-dependent, the computation must follow the rules that are specified in Section 4.1.
An OF0 implementation first computes a variable step_of_rank (Section 6.1) associated with a given parent from relevant link properties and metrics. The step_of_rank is used to compute the amount by which to increase the rank along a particular link, as explained later in this section.
Computing a step_of_rank based on a static metric such as an administrative cost implies that the OF0 implementation only considers parents with good enough connectivity, and results in a Rank that is analogous to hop-count. In most LLNs, this favors paths with fewer but longer hops of poorer connectivity; it is thus RECOMMENDED to base the computation of the step_of_rank on dynamic link properties such as the expected transmission count metric (ETX) [I-D.ietf-roll-routing-metrics],[DeCouto03]. The Minimum Rank Objective Function with Hysteresis [I-D.ietf-roll-minrank-hysteresis-of] provides guidance on how link cost can be computed and on how hysteresis can improve Rank stability.
OF0 allows an implementation to stretch the step_of_rank in order to enable the selection of at least one feasible successor and thus maintain path diversity. Stretching the step_of_rank is NOT RECOMMENDED, because it augments the apparent distance from the node to the root, distorts the DODAG from the optimal shape and may cause instabilities due to greedy behaviors whereby depending nodes augment their Ranks to use each other as parents in a loop. Still, an implementation MAY stretch the step_of_rank with at most a configurable stretch_of_rank (Section 6.2) of any value between 0 (no stretch) and the fixed constant MAXIMUM_RANK_STRETCH (Section 6.3).
An implementation MUST maintain the stretched step_of_rank between the fixed constants MINIMUM_STEP_OF_RANK and MAXIMUM_STEP_OF_RANK (Section 6.3). This range allows to reflect a large variation of link quality.
The gap between MINIMUM_STEP_OF_RANK and MAXIMUM_RANK_STRETCH may not be sufficient in every case to strongly distinguish links of different types or categories in order to favor, say, powered over battery-operated or wired over wireless, within a same DAG. An implementation SHOULD allow to configure a factor called rank_factor (Section 6.2) and to apply the factor on all links and peers to multiply the effect of the stretched step_of_rank in the rank_increase computation as further detailed below.
Additionally, an implementation MAY recognize categories of peers and links, such as different MAC types, in which case it SHOULD be able to configure a more specific rank_factor to those categories. The rank_factor MUST be set between the fixed constants MINIMUM_RANK_FACTOR and MAXIMUM_RANK_FACTOR (Section 6.3) .
The variable rank_increase is represented in units expressed by the variable MinHopRankIncrease which defaults to the fixed constant DEFAULT_MIN_HOP_RANK_INCREASE ([I-D.ietf-roll-rpl]); with that setting, the least significant octet in the RPL Rank field in the DIO Base Object is not used.
The step_of_rank Sp that is computed for that link is multiplied by the rank_factor Rf and then possibly stretched by a stretch_of_rank Sr. The resulting rank_increase is added to the Rank of preferred parent R(P) to obtain that of this node R(N):
R(N) = R(P) + rank_increase where:
rank_increase = (Rf*Sp + Sr) * MinHopRankIncrease
Optionally, the administrative preference of a root MAY be configured to supersede the goal to join a Grounded DODAG. In that case, nodes will associate to the root with the highest preference available, regardless of whether that root is Grounded or not. Compared to a deployment with a multitude of Grounded roots that would result in the same multitude of DODAGs, such a configuration may result in possibly less but larger DODAGs, as many as roots configured with the highest priority in the reachable vicinity.
As it scans all the candidate neighbors, OF0 keeps the parent that is the best for the following criteria (in order):
These rules and their order MAY be varied by an implementation according to configured policy.
When selecting a backup feasible successor, the OF performs in order the following checks:
These rules and their order MAY be varied by an implementation according to configured policy.
Objective Function 0 interacts for its management and operations in the following ways:
On top of variables and constants defined in [I-D.ietf-roll-rpl], this specification introduces the following variables and constants:
OF0 uses the following variables:
OF0 can use the following optional configurable values that are used as parameters to the rank_increase computation:
Section 17 of [I-D.ietf-roll-rpl] defines RPL constants. OF0 fixes the values of the following constants:
Section 18 of [I-D.ietf-roll-rpl] depicts the management of the protocol. This specification inherits from that section and its subsections, with the exception that metrics as specified in [I-D.ietf-roll-routing-metrics] are not used and do not require management.
An implementation SHOULD allow to configure at least a global rank_factor that applies to all links. Additionally, the implementation may allow to group interfaces, links and/or neighbors and configure a more specific rank_factor to such groups.
An implementation MAY allow to configure a maximum stretch_of_rank as discussed in Section 4.1. If none is configured, a value of 0 is assumed and the step_of_rank is not stretched.
An OF0 implementation SHOULD support the DODAG Configuration option as specified in section 6.7.6 of [I-D.ietf-roll-rpl] and apply the parameters contained therein. When the option is used, the parameters are configured to the nodes that may become DODAG roots, and the nodes are configured to redistribute the information using the DODAG Configuration option. In particular, the value of MinHopRankIncrease can be distributed with that option and override the fixed constant of DEFAULT_MIN_HOP_RANK_INCREASE that is defined section 17 of [I-D.ietf-roll-rpl] with a fixed value of 256.
At build-time, the default constant values should be used, that is:
The values can be overridden at anytime and apply at the next Version of the DODAG.
As discussed in Section 5, the OF support must be able to provide information about its operations, and trigger events when tthat information changes. At a minimum, the information should include:
This specification requires the assignment of an Objective Code Point (OCP) for OF0 in the Objective Code Point Registry that is requested in section 20.5. of [I-D.ietf-roll-rpl].
This specification makes simple extensions to RPL and so is vulnerable to and benefits from the security issues and mechanisms described in [I-D.ietf-roll-rpl] and [I-D.ietf-roll-rpl]. This document does not introduce new flows or new messages, thus requires no specific mitigation for new threats.
OF0 depends on information exchanged in the Rank and OCP protocol elements. If those elements were compromised, then an implementation of OF0 might generate the wrong path for a packet resulting in it being misrouted. Therefore, deployments are RECOMMENDED to use RPL security mechanisms if there is a risk that routing information might be modified or spoofed.
Most specific thanks to Philip Levis and Phoebus Chen for their help in finalizing this document.
Many thanks also to Adrian Farrel, Tim Winter, JP Vasseur, Julien Abeille, Mathilde Durvy, Teco Boot, Navneet Agarwal, Meral Shirazipour and Henning Rogge for in-depth review and first hand implementers' feedback.
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. |
[I-D.ietf-roll-rpl] | Winter, T, Thubert, P, Brandt, A, Clausen, T, Hui, J, Kelsey, R, Levis, P, Pister, K, Struik, R and J Vasseur, "RPL: IPv6 Routing Protocol for Low power and Lossy Networks", Internet-Draft draft-ietf-roll-rpl-19, March 2011. |
[I-D.ietf-roll-terminology] | Vasseur, J, "Terminology in Low power And Lossy Networks", Internet-Draft draft-ietf-roll-terminology-06, September 2011. |
[I-D.ietf-roll-security-framework] | Tsao, T, Alexander, R, Dohler, M, Daza, V and A Lozano, "A Security Framework for Routing over Low Power and Lossy Networks", Internet-Draft draft-ietf-roll-security-framework-06, June 2011. |
[I-D.ietf-roll-routing-metrics] | Vasseur, J, Kim, M, Pister, K, Dejean, N and D Barthel, "Routing Metrics used for Path Calculation in Low Power and Lossy Networks", Internet-Draft draft-ietf-roll-routing-metrics-19, March 2011. |
[I-D.ietf-roll-minrank-hysteresis-of] | Gnawali, O and P Levis, "The Minimum Rank Objective Function with Hysteresis", Internet-Draft draft-ietf-roll-minrank-hysteresis-of-04, May 2011. |
[DeCouto03] | De Couto, , Aguayo, , Bicket, and Morris, "A High-Throughput Path Metric for Multi-Hop Wireless Routing ", MobiCom '03 The 9th ACM International Conference on Mobile Computing and Networking, San Diego, California,, 2003. |