Internet-Draft | SCONE Blob | November 2024 |
Boucadair, et al. | Expires 25 May 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 mechanims 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 25 May 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 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 a 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.¶
Sample uses of the advice by applications are listed in Section 7.¶
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 mechanims, allow for future extensions, and ensure consistent use of the advice, a new IANA registry is created in Section 9.¶
This document does not make any assumption about:¶
The type of the 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 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 fo the following term:¶
Some deployment use cases for throughput advice discovery are provided below:¶
Discovery of intentional policy applied on network attachements 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.¶
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. Controling 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, Three-Color Marker [RFC2697] uses CIR, CBS, and EBS.¶
A Dual-Rate, Three-Color Marker [RFC2698] uses CIR, CBS, PIR, and PBS. Note that when implemented with [RFC4115], it 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].¶
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 indicate the presence of some optional parameters. The following flags are defined:¶
When set to "1", this flag indicates the presence of Excess Information Rate (EIR).¶
When set to "0", this flag indicates that EIR is not present.¶
When set to "1", this flag indicates the presence of Peak Information Rate (PIR).¶
When set to "0", this flag indicates that PIR is not present.¶
Unassigned bits. See Section 9.2.¶
These flags are used to express some generic properties of the flow. The following flags are defined:¶
Indicates the granularity of enforcing policies.¶
This parameter specifies whether the policy is a per-host, per-subscriber, 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.¶
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 9.3.¶
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 9.4.¶
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.¶
MUST be present if the E flag is set to '1'.¶
An avertage rate that specifies the maximum number of bits that a network can send (or receive) during one second over a network attachment for a traffic that is out of profile.¶
The EIR value MUST be greater than or equal to 0, if present.¶
This parameter is optional.¶
MUST be present if EIR is also present.¶
Indicates the maximum excess burst size that is allowed while not complying with the CIR.¶
MUST be greater than zero, if present.¶
This parameter is optional.¶
MUST be present if P flag is set to '1'.¶
Indicates the allowed throughput when there is a peak in traffic. That is, traffic that exceeds the CIR and the CBS is metered to the PIR.¶
The PIR MUST be equal to or greater than the CIR, if present.¶
This parameter is optional.¶
MUST be present if PIR is also present.¶
Specifies the maximum burst size that can be transmitted at PIR.¶
MUST be greater than zero, if present.¶
This parameter is optional.¶
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 trimmed 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¶
It is out of scope of this document to make recommendations about how the advice is consumed by applications/OS/Hosts. A non-exhaustive list is provided hereafter for illustration purposes:¶
Applications can send/receive data at a rate beyond the CIR up to the PIR when the network is not congested. If network feedback (e.g., packet loss or delay) indicates congestion, the application can scale back to the CIR. Otherwise, it can use the PIR for temporary throughput boosts.¶
Applications can send/receive short-term bursts of data that exceed the committed burst size CBS up to the PBS if there is no congestion. This is useful for scenarios where short, high-throughput bursts are needed.¶
Applications can ensure that their sending rate never exceeds the PIR and that their short-term bursts of traffic never exceeds PBS.¶
Applications can send/receive data at different rates for reliable and unreliable traffic (reliable could map to Queue-Building (QB) and unreliable could map to Non-Queue-Building (NQB)) by mapping reliability flag. 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].¶
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.¶
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 "Optional Parameter Flags" under the "SCONE Rate-Limit Policy Objects" registry group (Section 9.1).¶
The initial values of this registry is provided in Table 1.¶
Bit Position | Label | Description | Reference |
---|---|---|---|
1 | E | Indicates presence of excess rate/burst | This-Document |
2 | P | Indicates presence of peak rate/burst | This-Document |
3 | Unassigned | ||
4 | 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 "Flow flags" under the "SCONE Rate-Limit Policy Objects" registry group (Section 9.1).¶
The initial values of this registry is provided in Table 2.¶
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 9.1).¶
The initial values of this registry is provided in Table 3.¶
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 9.1).¶
The initial values of this registry is provided in Table 4.¶
Parameter | Description | Mandatory (Y/N) | Reference |
---|---|---|---|
cir | Committed Information Rate (CIR) | Y | This-Document |
cbs | Committed Burst Size (CBS) | Y | This-Document |
eir | Excess Information Rate (EIR) | N | This-Document |
ebs | Excess Burst Size (EBS) | N | This-Document |
pir | Peak Information Rate (PIR) | N | This-Document |
pbs | Peak Burst Size (PBS) | N | 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 intreface 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).¶
TBC.¶