Network Working Group O. Aboul-Magd
Request for Comments: 4115 S. Rabie
Category: Informational Nortel Networks
July 2005
A Differentiated Service Two-Rate, Three-Color Marker with Efficient Handling of in-Profile Traffic
1. Introduction
The differentiated service defines a quality-of-service (QoS) architecture for the Internet [RFC2475]. Two integral components of this architecture are traffic metering and marking. This document describes a two-rate, three-color metering/marker algorithm that is suitable for the differentiated service applications such as IP and L2 VPNs. This algorithm has been in use for data services including Frame Relay Service.
Aboul-Magd & Rabie Informational [Page 1]
RFC 4115 Efficient Handling of in-Profile Traffic July 2005
The metering/marker defined here is different from those in [RFC2697] and [RFC2698]. It is different from [RFC2697] in that it is a two- rate, three-color marker. In contrast, [RFC2697] is a single-rate marker. It is different from [RFC2698] in the way its parameters are defined, which allows a better handling of in-profile traffic for predominant service scenarios over a wider range of traffic parameters.
2. Configuration
The operation of the marker is described by two rate values. The committed information rate (CIR) and the excess information rate (EIR). CIR and EIR define the token generation rate of a token bucket with size that is equal to committed burst size (CBS) and excess burst size (EBS), respectively.
3. Metering and Marking
The behavior of the meter is defined in terms of its mode and two token buckets, C and E, with the rates, CIR and EIR, respectively, and maximum sizes CBS and EBS.
Aboul-Magd & Rabie Informational [Page 2]
RFC 4115 Efficient Handling of in-Profile Traffic July 2005
When a green packet of size B arrives at time t, then
Aboul-Magd & Rabie Informational [Page 3]
RFC 4115 Efficient Handling of in-Profile Traffic July 2005
+---------------------------------+
|periodically every T sec. |
| Tc(t+)=MIN(CBS, Tc(t-)+CIR*T) |
| Te(t+)=MIN(EBS, Te(t-)+EIR*T) |
+---------------------------------+
Packet of size
B arrives /----------------\
---------------->|color-blind mode|
| OR |YES +---------------+
| green packet |---->|packet is green|
| AND | |Tc(t+)=Tc(t-)-B|
| B <= Tc(t-) | +---------------+
\----------------/
|
| NO
v
/----------------\
|color-blind mode|
| OR |YES +----------------+
| NOT red packet |---->|packet is yellow|
| AND | |Te(t+)=Te(t-)-B |
| B <= Te(t-) | +----------------+
\----------------/
|
| NO
v
+---------------+
|packet is red |
+---------------+
Figure 1: Traffic Metering/Marking Algorithm
Aboul-Magd & Rabie Informational [Page 4]
RFC 4115 Efficient Handling of in-Profile Traffic July 2005 4. Service ScenarioThe described marker can be used to mark an IP packet stream in a service where different, decreasing levels of assurances (either absolute or relative) are given to packets that are green, yellow, or red. For example, a service may discard all red packets because they exceeded the service rates, forward yellow packets as best effort, and forward green packets with low drop probability. The marker could also be used for metering L2 VPN services such as the emerging Ethernet transport over IP networks.
5. Security Considerations
Security issues resulting from this document are similar to those mentioned in [RFC2697] and [RFC2698].
6. Informative References
[RFC2475] Blake, S., Black, D., Carlson, M., Davies, E., Wang, Z.,
Aboul-Magd & Rabie Informational [Page 5]
RFC 4115 Efficient Handling of in-Profile Traffic July 2005
Full Copyright Statement