TOC |
|
Various uses proposed for the IPv6 flow label are incompatible with its existing specification. This document describes changes to the specification that permit additional use cases as well as allowing continued use of the previous specification.
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 October 16, 2010.
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.
1.
Introduction
2.
Normative Notation
3.
Changes to specification
4.
Discussion
5.
Security Considerations
6.
IANA Considerations
7.
Acknowledgements
8.
Change log
9.
References
9.1.
Normative References
9.2.
Informative References
Appendix A.
Alternative Approaches
§
Authors' Addresses
TOC |
The flow label field in the IPv6 header is reserved but left experimental by [RFC2460] (Deering, S. and R. Hinden, “Internet Protocol, Version 6 (IPv6) Specification,” December 1998.) and is specified by [RFC3697] (Rajahalme, J., Conta, A., Carpenter, B., and S. Deering, “IPv6 Flow Label Specification,” March 2004.). We quote three rules from that RFC:
- a.
- "The Flow Label value set by the source MUST be delivered unchanged to the destination node(s)."
- b.
- "IPv6 nodes MUST NOT assume any mathematical or other properties of the Flow Label values assigned by source nodes."
- c.
- "Router performance SHOULD NOT be dependent on the distribution of the Flow Label values. Especially, the Flow Label bits alone make poor material for a hash key."
The second two rules appear to forbid a usage in which the bits of the flow label are encoded with a specific semantic meaning, or are assumed to have any particular property such as randomness. However, both before and after these rules were laid down, a considerable number of proposals for use of the flow label have been published that seem incompatible with them. Examples are [I‑D.conta‑ipv6‑flow‑label] (Conta, A. and B. Carpenter, “A proposal for the IPv6 Flow Label Specification,” July 2001.), [I‑D.conta‑diffserv‑ipv6‑fl‑classifier] (Conta, A. and J. Rajahalme, “Amodel for Diffserv use of the IPv6 Flow Label Specification,” November 2001.), [I‑D.chakravorty‑6lsa] (Chakravorty, S., Bush, J., and J. Bound, “IPv6 Label Switching Architecture,” July 2008.), [I‑D.banerjee‑flowlabel‑ipv6‑qos] (Banerjee, R., “A Modified Specification for use of the IPv6 Flow Label for providing An efficient Quality of Service using hybrid approach,” April 2002.), [I‑D.metzler‑ipv6‑flowlabel] (Metzler, J. and S. Hauth, “An end-to-end usage of the IPv6 flow label,” November 2000.), [LeeKim] (Lee, I. and S. Kim, “A QoS Improvement Scheme for Real-Time Traffic Using IPv6 Flow Labels,” 2004.), [LinTseng] (Lin, C., Tseng, P., and W. Hwang, “End-to-End QoS Provisioning by Flow Label in IPv6,” 2006.), and [Prakash] (Prakash, B., “Using the 20 bit flow label field in the IPv6 header to indicate desirable quality of service on the internet,” 2004.). These authors propose use cases in which some combination of the following options apply:
These proposals all require either some form of encoding of semantics in the bits of the flow label, or the ability for routers to modify the flow label, or both. Thus they appear to infringe the rules from RFC 3697 quoted above.
Although [I‑D.roberts‑inband‑qos‑ipv6] (Roberts, L. and J. Harford, “In-Band QoS Signaling for IPv6,” July 2005.) does not explicitly consider the flow label, it requests hop-by-hop functionality in IPv6 packets very similar to what is needed by the above proposals.
We can conclude that a considerable number of researchers and designers are stymied by RFC 3697. On the other hand, proposals such as [I‑D.martinbeckman‑ietf‑ipv6‑fls‑ipv6flowswitching] (Beckman, M., “IPv6 Dynamic Flow Label Switching (FLS),” March 2007.), [I‑D.martinbeckman‑ietf‑ipv6‑amp‑ipv6hcamp] (Beckman, M., “IPv6 Header Compression via Addressing Mitigation Protocol (IPv6 AMP),” March 2007.), [I‑D.blake‑ipv6‑flow‑label‑nonce] (Blake, S., “Use of the IPv6 Flow Label as a Transport-Layer Nonce to Defend Against Off-Path Spoofing Attacks,” October 2009.), and [I‑D.carpenter‑flow‑ecmp] (Carpenter, B. and S. Amante, “Using the IPv6 flow label for equal cost multipath routing and link aggregation in tunnels,” April 2010.) appear to be compatible with RFC 3697. The latter two are based on the originator of a packet choosing a pseudo-random flow label for each flow. Thus, we can also conclude that there is a useful role for this approach too. The proposal below is intended to resolve this dilemma by allowing both approaches to co-exist.
TOC |
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 [RFC2119] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.).
TOC |
We note that although RFC 3697 requires the flow label to be delivered unchanged, it is not included in any transport layer pseudo-header checksums nor in IPsec authentication [RFC4302] (Kent, S., “IP Authentication Header,” December 2005.). We also note that both RFC 2460 and RFC 3697 define the default flow label to be zero. At the time of writing, this is the observed value in an overwhelming proportion of IPv6 packets; neither operating systems nor applications currently set it, and routers do not rely on it. Thus there is no reason to expect operational difficulties if a careful change is made to the rules of RFC 3697.
The purpose of the proposed change is that the flow label should be available for domain-specific use, with locally defined semantics, without preventing uses that are compatible with RFC 3697. There should be no impact on specifications other than RFC 3697 and no impact on currently operational software and hardware.
The rules of RFC 3697 are modified as follows:
The following are the consequences of the above rules combined with those in RFC 3697:
TOC |
Hosts that set a default (zero) flow label and ignore the flow label on receipt will be unaffected by implementations of this specification. In general, it is assumed that hosts will ignore the flow label on receipt; it cannot be safely used as an end-to-end transport or application layer signal of any kind.
Routers that ignore the flow label will be unaffected by implementations of this specification.
Hosts that set a default (zero) flow label and are in a flow label domain where routers adopt rules 1, 2, and 3 or 4 in Section 3 (Changes to specification) will benefit from whatever flow label handling is used in the local domain. Clearly, the rules b and c quoted from RFC 3697 in Section 1 (Introduction) have no effect within the local domain, where the locally defined rules (whatever they are) replace them.
Hosts and routers that adopt rule 4 by setting a pseudo-random flow label will enhance the performance of any load balancing devices that include the flow label in the hash used to select a particular path or server, even when packets leave the local domain. Again, rules b and c have no effect.
If a locally defined flow label scheme is used, so that rule 4 is not implemented, then packets leaving the local domain may contain flow label values that are not pseudo-random. However, because of rule 2, the flow label will still be part of the signature of a single packet flow, so it may still be used as part of a load balancing hash. Rules b and c remain true but do not prevent such usage. To allow for these rules, the load balancing hash function needs to be be designed to allow for a possibly non-random flow label, and traffic containing a non-random flow label might not gain full benefit from load balancing.
The rules defined in this document are intended to allow both RFC 3697 usage of the flow label in the general case, and a wide variety of locally defined schemes. Such schemes do not need any global assignments of bits in the flow label, and should not have noticeable impact on backwards compatibility or on domains not using them.
TOC |
The flow label is not protected in any way and can be forged by an on-path attacker. On the other hand, a pseudo-random flow label cannot be readily guessed by an off-path attacker. See RFC 3697 for further discussion.
TOC |
This document requests no action by IANA.
TOC |
The authors are grateful to Qinwen Hu for general discussion about the flow label and for his work in searching the literature. Valuable comments and contributions were made by Remi Despres, Mark Smith and participants in the 6man working group.
This document was produced using the xml2rfc tool [RFC2629] (Rose, M., “Writing I-Ds and RFCs using XML,” June 1999.).
TOC |
draft-carpenter-6man-flow-update-02: revised and simplified according to WG discussion, 2010-04-13
draft-carpenter-6man-flow-update-01: revised according to mail list discussion, 2010-03-05
draft-carpenter-6man-flow-update-00: original version, 2010-02-18
TOC |
TOC |
[RFC2119] | Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” BCP 14, RFC 2119, March 1997 (TXT, HTML, XML). |
[RFC2460] | Deering, S. and R. Hinden, “Internet Protocol, Version 6 (IPv6) Specification,” RFC 2460, December 1998 (TXT, HTML, XML). |
[RFC3697] | Rajahalme, J., Conta, A., Carpenter, B., and S. Deering, “IPv6 Flow Label Specification,” RFC 3697, March 2004 (TXT). |
TOC |
[I-D.banerjee-flowlabel-ipv6-qos] | Banerjee, R., “A Modified Specification for use of the IPv6 Flow Label for providing An efficient Quality of Service using hybrid approach,” draft-banerjee-flowlabel-ipv6-qos-03 (work in progress), April 2002 (TXT, PS, PDF). |
[I-D.blake-ipv6-flow-label-nonce] | Blake, S., “Use of the IPv6 Flow Label as a Transport-Layer Nonce to Defend Against Off-Path Spoofing Attacks,” draft-blake-ipv6-flow-label-nonce-02 (work in progress), October 2009 (TXT). |
[I-D.carpenter-flow-ecmp] | Carpenter, B. and S. Amante, “Using the IPv6 flow label for equal cost multipath routing and link aggregation in tunnels,” draft-carpenter-flow-ecmp-02 (work in progress), April 2010 (TXT). |
[I-D.chakravorty-6lsa] | Chakravorty, S., Bush, J., and J. Bound, “IPv6 Label Switching Architecture,” draft-chakravorty-6lsa-03 (work in progress), July 2008 (TXT). |
[I-D.conta-diffserv-ipv6-fl-classifier] | Conta, A. and J. Rajahalme, “Amodel for Diffserv use of the IPv6 Flow Label Specification,” draft-conta-diffserv-ipv6-fl-classifier-01 (work in progress), November 2001. |
[I-D.conta-ipv6-flow-label] | Conta, A. and B. Carpenter, “A proposal for the IPv6 Flow Label Specification,” draft-conta-ipv6-flow-label-02 (work in progress), July 2001. |
[I-D.martinbeckman-ietf-ipv6-amp-ipv6hcamp] | Beckman, M., “IPv6 Header Compression via Addressing Mitigation Protocol (IPv6 AMP),” draft-martinbeckman-ietf-ipv6-amp-ipv6hcamp-01 (work in progress), March 2007 (TXT). |
[I-D.martinbeckman-ietf-ipv6-fls-ipv6flowswitching] | Beckman, M., “IPv6 Dynamic Flow Label Switching (FLS),” draft-martinbeckman-ietf-ipv6-fls-ipv6flowswitching-03 (work in progress), March 2007 (TXT). |
[I-D.metzler-ipv6-flowlabel] | Metzler, J. and S. Hauth, “An end-to-end usage of the IPv6 flow label,” draft-metzler-ipv6-flowlabel-00 (work in progress), November 2000. |
[I-D.roberts-inband-qos-ipv6] | Roberts, L. and J. Harford, “In-Band QoS Signaling for IPv6,” draft-roberts-inband-qos-ipv6-00 (work in progress), July 2005 (TXT). |
[LeeKim] | Lee, I. and S. Kim, “A QoS Improvement Scheme for Real-Time Traffic Using IPv6 Flow Labels,” Lecture Notes in Computer Science Vol. 3043, 2004. |
[LinTseng] | Lin, C., Tseng, P., and W. Hwang, “End-to-End QoS Provisioning by Flow Label in IPv6,” JCIS , 2006. |
[Prakash] | Prakash, B., “Using the 20 bit flow label field in the IPv6 header to indicate desirable quality of service on the internet,” University of Colorado (M.Sc. Thesis), 2004. |
[RFC2474] | Nichols, K., Blake, S., Baker, F., and D. Black, “Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers,” RFC 2474, December 1998 (TXT, HTML, XML). |
[RFC2629] | Rose, M., “Writing I-Ds and RFCs using XML,” RFC 2629, June 1999 (TXT, HTML, XML). |
[RFC4302] | Kent, S., “IP Authentication Header,” RFC 4302, December 2005 (TXT). |
TOC |
Two more complex alternative approaches were considered and rejected.
The first was to distinguish locally significant flow labels from those conforming to RFC 3697 by setting or clearing the most significant bit (MSB) of the flow label. This led to quite complicated rules and was not considered practical.
The second was to use a specific differentiated services code point (DSCP)[RFC2474] (Nichols, K., Blake, S., Baker, F., and D. Black, “Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers,” December 1998.) in the Traffic Class octet instead of the MSB of the flow label itself, to flag a locally defined behaviour. A more elaborate version of this was proposed in [I‑D.martinbeckman‑ietf‑ipv6‑fls‑ipv6flowswitching] (Beckman, M., “IPv6 Dynamic Flow Label Switching (FLS),” March 2007.). There are two issues with this approach. One is that DSCP values are themselves only locally significant, inconsistent with the end-to-end nature of the original flow label definition. Secondly, it seems unwise to meld the semantics of differentiated services, which are currently deployed, with the unknown future semantics of flow label usage. However, this approach, while not recommended, does not appear to violate any basic principles if applied strictly within a single differentiated services domain.
TOC |
Brian Carpenter | |
Department of Computer Science | |
University of Auckland | |
PB 92019 | |
Auckland, 1142 | |
New Zealand | |
Email: | brian.e.carpenter@gmail.com |
Sheng Jiang | |
Huawei Technologies Co., Ltd | |
KuiKe Building, No.9 Xinxi Rd., | |
Shang-Di Information Industry Base, Hai-Dian District, Beijing | |
P.R. China | |
Email: | shengjiang@huawei.com |