ROLL | P. Thubert, Ed. |
Internet-Draft | Cisco Systems |
Intended status: Standards Track | May 17, 2011 |
Expires: November 18, 2011 |
RPL Objective Function 0
draft-ietf-roll-of0-12
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 a specific Objective Function. 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 November 18, 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 Low Power and Lossy Networks [I-D.ietf-roll-rpl] was designed as a generic core that is agnostic to metrics and that is adapted to a given problem using Objective Functions (OF). This separation of Objective Functions from the core protocol specification allows RPL to adapt to meet the different optimization criteria required by the wide range of use cases.
RPL forms Destination Oriented Directed Acyclic Graphs (DODAGs) within instances of the protocol. Each instance is associated with a specialized Objective Function. A DODAG is periodically reconstructed in a new Version to enable a global reoptimization of the graph.
An Objective Function selects the DODAG Version that a device joins within an instance, and a number of neighbor routers within that DODAG Version as parents or feasible successors. The OF generates the Rank of the device, that represents an abstract distance to the root within the DODAG. In turn, the Rank is used by the generic RPL core to avoid loops and verify forward progression towards a destination, as specified in [I-D.ietf-roll-rpl].
The Objective Function 0 (OF0) operates on parameters that are obtained from provisionning, 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, 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. As a result, OF0 with default settings allows to encode a minimum of 28 (worst acceptable) hops and a maximum of 255 (excellent) hops.
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 upgoing 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. For the purpose of OF0, Grounded thus means that the 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 represents closely 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, LLN inner connectivity 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.
OF0 assigns a rank_increase to each link to another node that it monitors. 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 step_of_rank associated with a given parent from relevant link properties and metrics.
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 analoguous to hop-count. In most LLNs, this favors paths with less 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) [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.
An implementation MAY allow to stretch the step_of_rank with a stretch_of_rank up to no more than MAXIMUM_RANK_STRETCH in order to enable the selection of at least one feasible successor and thus maintain path diversity. The use of a stretch_of_rank is not recommended as 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 behaviours whereby depending nodes augment their Ranks to use each other as parents in a loop. An implementation MUST maintain the stretched step_of_rank between MINIMUM_STEP_OF_RANK and MAXIMUM_STEP_OF_RANK, which 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 a configurable factor called rank_factor and to apply the factor on all links and peers.
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 SHOULD be set between MINIMUM_RANK_FACTOR and MAXIMUM_RANK_FACTOR.
The rank_increase is expressed in units of MinHopRankIncrease, which defaults to DEFAULT_MIN_HOP_RANK_INCREASE; with that setting, the least significant octet in the RPL Rank 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 a 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):
When selecting a backup feasible successor, the OF performs in order the following checks:
Objective Function 0 interacts with the RPL core in the following ways:
OF0 uses the following variables:
OF0 can use the following optional parameters:
OF0 fixes the following constants:
This specification requires the assignment of a RPL Objective Code Point (OCP) for OF0. The value of 0 is suggested.
Security Considerations for OCP/OF are to be developed in accordance with recommendations laid out in, for example, [I-D.tsao-roll-security-framework].
Most specific thanks to Philip Levis and Phoebus Chen for their help in finalizing this document.
Many thanks also to Tim Winter, JP Vasseur, Julien Abeille, Mathilde Durvy, Teco Boot, Navneet Agarwal and Henning Rogge for in-depth review and first hand implementer's 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.tsao-roll-security-framework] | Tsao, T, Alexander, R, Daza, V and A Lozano, "A Security Framework for Routing over Low Power and Lossy Networks", Internet-Draft draft-tsao-roll-security-framework-02, March 2010. |
[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. |