Internet-Draft | SCONE Blob | December 2024 |
Boucadair, et al. | Expires 16 June 2025 | [Page] |
Traffic exchanged over a network may be subject to rate-limit policies for various operational reasons. This document specifies a generic object (called, Throughput Advice) that can be used by mechanisms for hosts to dynamically discover these network rate-limit policies. This information is then passed to applications that might adjust their behaviors accordingly.¶
The design of the throughput advice object is independent of the discovery channel (protocol, API, etc.).¶
This note is to be removed before publishing as an RFC.¶
Source for this draft and an issue tracker can be found at https://github.com/boucadair/draft-xxx-ac-rate-policy-discovery.¶
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 https://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 16 June 2025.¶
Copyright (c) 2024 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 (https://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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Connectivity services are provided by networks to customers via dedicated terminating points, such as customer edges (CEs) or User Equipment (UE). To facilitate data transfer via the provider network, it is assumed that appropriate setup is provisioned over the links that connect customer terminating points and a provider network (usually via a Provider Edge (PE)), successfully allowing data exchange over these links. The required setup is referred to in this document as network attachments, while the underlying link is referred to as "bearers".¶
The bearer can be a physical or logical link that connects a customer device to a provider network. A bearer can be a wireless or wired link. The same or multiple bearer technologies can be used to establish the bearer (e.g., WLAN or cellular) to graft customer terminating points to a network.¶
Figure 1 shows an example of a network that connects CEs and hosts (UE, for example). These CEs are servicing other (internal) hosts. The identification of these hosts is hidden from the network. The policies enforced at the network for a network attachment are per-subscriber, not per-host. Typically, if a CE is provided with a /56 IPv6 prefix, policies are enforced in the network on that /56 not the individual /64s that will be used by internal hosts. A customer terminating point may be serviced with one (e.g., UE#1, CE#1, and CE#3) or multiple network attachments (e.g., CE#2). For the sake of simplicity, Figure 1 does not show the interconnection with other networks or multi-homed CEs.¶
Customer terminating points are provided with a set of information (e.g., IP address/prefix) to successfully be able to send and receive traffic over a network attachment. The required set of parameters to provision a network attachment is a function of the connectivity service offering. For example, a very limited set of parameters is required for mass-market service offering while a more elaborated set is required for Enterprise services. A comprehensive list of provisioning parameters that are available on the PE-side of a network attachment is specified in [I-D.ietf-opsawg-ntw-attachment-circuit].¶
As discussed, e.g., in Section 4.2 of [RFC7567], packet dropping by network devices occurs mainly to protect the network (e.g., congestion-unresponsive flows) and also to ensure fairness over a shared link. These policies may be intentional policies (e.g., enforced as part of the activation of the network attachment and typically agreed upon service subscription) or be reactive policies (e.g., enforced temporarily to manage an overload or during a DDoS attack mitigation). Rate-limits are usually configured in (ingress) nodes. These rate-limits can be shared with customers when subscribing to a connectivity service (e.g., "A YANG Data Model for Layer 2 Virtual Private Network (L2VPN) Service Delivery" [RFC8466]).¶
Section 5 defines a set of parameters that can be used by networks to share the rate-limit policies applied on a network attachment: Throughput Advice. The set of parameters are independent of the address family.¶
This document does not assume nor preclude any specific signaling protocol to share the throughput advices. These parameters are independent of the channel that is used by hosts to discover such policies.¶
Whether host-to-network, network-to-host, or both policies are included in throughput advice is deployment specific. All these combinations are supported in this document.¶
Also, one or more throughput advice instances may be returned for a given traffic direction. Examples of such instances are discussed in Section 6.¶
As one can infer from the name, a throughput advice is advisory in nature. The advice is provided solely as a hint.¶
In order to ease mapping with specific signaling mechanisms, allow for future extensions, and ensure consistent use of the advice, a new IANA registry is created in Section 8.¶
This document does not make any assumption about:¶
The type of network (fixed, cellular, etc.) that terminates a network attachment.¶
The services or applications that are delivered over a network attachment. Whether one or multiple services are bound to the same network attachment is deployment specific.¶
How the throughput advice is computed/set.¶
The protocol machinery for validating, refreshing, detecting stale, and flushing out received advices.¶
How applications running over a host can learn the bitrates associated with a network attachment. Typically, this can be achieved by invoking a dedicated API. However, the exact details of the API(s) is OS-specific and, thus, out of scope of this document.¶
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 BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This document makes use of the following term:¶
Some deployment use cases for throughput advice discovery are provided below:¶
Discovery of intentional policy applied on network attachments when such information is not made available during the service activation or when network upgrades are performed. Adaptive applications will use the information to adjust their behavior.¶
Concretely, applications are supposed to have access to all throughput advice instances and would, thus, adjust their behavior as a function of the parameters indicated in a throughput policy.¶
Likewise, a host with multiple network attachments may use the discovered throughput advice instances over each network attachment to decide how to distribute its flows over these network attachments (prefer a network attachment to place an application session, migrate connection, etc.). That's said, this document does not make any recommendation about how a receiving host uses the discovered policy.¶
The throughput advice can feed mechanisms such as Section 4.4.2 of [RFC7661] or Section 7.8 of [RFC9002] to control the maximum burst size.¶
A network may advertize a throughput advice when it is overloaded, including when it is under attack. The rate-limit policy is basically a reactive policy that is meant to adjust the behavior of connected hosts to better control the load during these exceptional events (issue with RAN resources, for example).¶
The mechanism can also be used to enrich the tools that are already available to better handle attack traffic close to the source [RFC9066].¶
A user may configure policies on the CE such as securing some resources to a specific internal host used, e.g., for gaming or video streaming. The CE can use the throughput advice to share these rate-limit policies to connected hosts to adjust their forwarding behavior. Controlling the load at the source will allow to partition the resources between connected hosts.¶
The throughput advice parameters leverage existing technologies for configuring policies in provider networks. Appendix A provides a brief overview of how inbound policies are enforced in ingress network nodes. The reader may refer to [RFC2697], [RFC2698], and [RFC4115] for examples of how various combinations of Committed Information Rate (CIR), Committed Burst Size (CBS), Excess Information Rate (EIR), Excess Burst Size (EBS), Peak Information Rate (PIR), and Peak Burst Size (PBS) are used for policing. Typically:¶
A Single-Rate, Two-Color Marker (1r2c) uses CIR and CBS.¶
A Single-Rate, Three-Color Marker (1r3c) [RFC2697] uses CIR, CBS, and EBS.¶
A Dual-Rate, Three-Color Marker (2r3c) [RFC2698] uses CIR, CBS, PIR, and PBS.¶
2r3c when implemented with [RFC4115] uses CIR, CBS, EIR, and EBS. This mode allows for a better handling of in-profile traffic (refer to Section 1 of [RFC4115] for more details).¶
An implementation example of these variants (and others) can be found at [VPP].¶
This version of the document uses the common denominator of all these policies: CIR/CBS.¶
A throughput advice object may include multiple throughput advices (referred to as "throughput advice instances"), each covering a specific match criteria. Each of these instances adheres to the structure defined in Section 5.3.¶
Throughput advice objects are bound to the network interface over which the advice was received.¶
The throughput advice object is described in CDDL [RFC8610] format shown in Figure 2. This format is meant to ease mapping with encoding specifics of a given discovery channel that supplies the throughput advice.¶
This section defines the set of attributes that are included in a throughput advice instance:¶
These flags are used to express some generic properties of the applicability of the instance. The following flags are defined:¶
Indicates the granularity of enforcing policies.¶
This parameter specifies whether the policy is a per-subscriber, per-host, or per-flow policy.¶
Indicates the direction on which to apply the enclosed policy.¶
When set to "00b", this flag indicates that this policy is for network-to-host direction.¶
When set to "01b", this flag indicates that this policy is for host-to-network direction.¶
When set to "10b", this flag indicates that this policy is for both network-to-host and host-to-network directions.¶
Indicates the reliability type of traffic on which to apply the enclosed policy.¶
For example, reliable could map to Queue-Building (QB) and unreliable could map to Non-Queue-Building (NQB). One of the ways for application to make reliability markings visible is by following, e.g., the considerations in Section 4 of [I-D.ietf-tsvwg-nqb].¶
When set to "00b", this flag indicates that this policy is for both reliable and unreliable traffic.¶
When set to "01b", this flag indicates that this policy is for unreliable traffic.¶
When set to "10b", this flag indicates that this policy is for reliable traffic.¶
No meaning is associated with setting the field to "11b". Such value MUST be silently ignored by the receiver.¶
Unassigned flags. See Section 8.2.¶
Specifies a traffic category to which this policy applies.¶
The following values are supported:¶
"0": All traffic. This is the default value.¶
1-63: Unassigned values. See Section 8.3.¶
An average rate that specifies the maximum number of bits that a network can send (or receive) during one second over a network attachment.¶
The CIR value MUST be greater than or equal to 0.¶
If set to 0 (or a very low value), this indicates to the host that alternate paths (if any) should be preferred over this one.¶
This parameter is mandatory.¶
Specifies the maximum burst size that can be transmitted at CIR.¶
MUST be greater than zero.¶
This parameter is mandatory.¶
For the sake of illustration, Figure 3 exemplifies the content of a throughput advice using JSON notations. The advice includes one rate-limit instance that covers network-to-host traffic direction and is applicable to all traffic destined to any host of a subscriber.¶
The advice conveyed in Figure 4 is similar to the advice in Figure 3. The only difference is that default values are not explicitly signaled in Figure 4.¶
Figure 5 shows the example of an advice that encloses two instances, each for one traffic direction.¶
If both directions are covered by the same rate-limit policy, then the advice can be supplied as shown in Figure 6¶
As discussed in Section 4, sharing a throughput advice helps networks mitigate overloads, particularly during periods of high traffic volume.¶
An attacker who has the ability to change the throughput advice objects exchanged over a network attachment may:¶
This may lower the perceived QoS if the host aggressively lowers its transmission rate.¶
The network attachment will be overloaded, but still the rate-limit at the network will discard excess traffic.¶
This is equivalent to deployments where the advice is not shared.¶
This document requests IANA to create a new registry group entitled "SCONE Rate-Limit Policy Objects".¶
This document requests IANA to create a new registry entitled "Instance flags" under the "SCONE Rate-Limit Policy Objects" registry group (Section 8.1).¶
The initial values of this registry is provided in Table 1.¶
Bit Position | Label | Description | Reference |
---|---|---|---|
1 | S | Scope | This-Document |
2-3 | D | Direction | This-Document |
4-5 | R | Reliability | This-Document |
6-8 | Unassigned |
The allocation policy of this new registry is "IETF Review" (Section 4.8 of [RFC8126]).¶
This document requests IANA to create a new registry entitled "Traffic Category Types" under the "SCONE Rate-Limit Policy Objects" registry group (Section 8.1).¶
The initial values of this registry is provided in Table 2.¶
Value | Description | Reference |
---|---|---|
0 | All traffic | This-Document |
1-63 | Unassigned |
The allocation policy of this new registry is "IETF Review" (Section 4.8 of [RFC8126]).¶
This document requests IANA to create a new registry entitled "Rate Parameters" under the "SCONE Rate-Limit Policy Objects" registry group (Section 8.1).¶
The initial values of this registry is provided in Table 3.¶
Parameter | Description | Mandatory (Y/N) | Reference |
---|---|---|---|
cir | Committed Information Rate (CIR) | Y | This-Document |
cbs | Committed Burst Size (CBS) | Y | This-Document |
The allocation policy of this new registry is "IETF Review" (Section 4.8 of [RFC8126]).¶
As discussed, for example in [I-D.ietf-teas-5g-ns-ip-mpls], a provider network's inbound policy can be implemented using one of following options:¶
1r2c (single-rate two-color) rate limiter¶
This is the most basic rate limiter, described in Section 2.3 of [RFC2475]. It meters at an ingress interface a traffic stream and marks its packets as in-profile (below CIR being enforced) or out-of-profile (above CIR being enforced). In-profile packets are accepted and forwarded. Out-of profile packets are either dropped right at the ingress node (hard rate limiting), or remarked (with different MPLS TC or DSCP TN markings) to signify 'this packet should be dropped in the first place, if there is a congestion' (soft rate limiting), depending on the business policy of the provider network. In the second case, while packets above CIR are forwarded at an ingress node, they are subject to being dropped during any congestion event at any place in the provider network.¶
2r3c (two-rate three-color) rate limiter¶
This was initially defined in [RFC2698], and its improved version in [RFC4115]. The traffic is assigned to one of the these three categories:¶
An inbound 2r3c meter implemented with [RFC4115], compared to [RFC2698], is more 'customer friendly' as it doesn't impose outbound peak-rate shaping requirements on customer edge (CE) devices or hosts. 2r3c meters in general give greater flexibility for provider network edge enforcement regarding accepting the traffic (green), de-prioritizing and potentially dropping the traffic on transit during congestion (yellow), or hard dropping the traffic (red).¶
Thanks to Eduard Vasilenko for the comments.¶