Network Working Group J. Heinanen
Request for Comments: 2698 Telia Finland
Category: Informational R. Guerin
University of Pennsylvania
September 1999
A Two Rate Three Color Marker
1. Introduction
The Two Rate Three Color Marker (trTCM) meters an IP packet stream and marks its packets either green, yellow, or red. A packet is marked red if it exceeds the Peak Information Rate (PIR). Otherwise it is marked either yellow or green depending on whether it exceeds or doesn't exceed the Committed Information Rate (CIR). The trTCM is useful, for example, for ingress policing of a service, where a peak rate needs to be enforced separately from a committed rate. The Meter meters each packet and passes the packet and the metering result to the Marker:
Heinanen & Guerin Informational [Page 1]
RFC 2698 A Two Rate Three Color Marker September 1999
+------------+
| Result |
| V
+-------+ +--------+
| | | |
Packet Stream ===>| Meter |===>| Marker |===> Marked Packet Stream
| | | |
+-------+ +--------+
The Meter operates in one of two modes. In the Color-Blind mode, the
Meter assumes that the packet stream is uncolored. In the Color- Aware mode the Meter assumes that some preceding entity has pre- colored the incoming packet stream so that each packet is either green, yellow, or red. The details of the pre-coloring process, including handling of error scenarios, and how the Meter determines the color of a pre-colored packet are DS domain specific and outside the scope of this document.
2. Configuration
The trTCM is configured by setting its mode and by assigning values to four traffic parameters: a Peak Information Rate (PIR) and its associated Peak Burst Size (PBS) and a Committed Information Rate (CIR) and its associated Committed Burst Size (CBS).
Heinanen & Guerin Informational [Page 2]
RFC 2698 A Two Rate Three Color Marker September 1999 3. MeteringThe behavior of the Meter is specified in terms of its mode and two token buckets, P and C, with rates PIR and CIR, respectively. The maximum size of the token bucket P is PBS and the maximum size of the token bucket C is CBS.
4. Marking
The Marker reflects the metering result by setting the DS field of the packet to a particular codepoint. In case of the AF PHB [RFC2597], the color can be coded as the drop precedence of the packet.
Heinanen & Guerin Informational [Page 3]
RFC 2698 A Two Rate Three Color Marker September 1999 5. Service ExampleThe trTCM can be used to mark a IP packet stream in a service, where different, decreasing levels of assurances (either absolute or relative) are given to packets which are green, yellow, or red. For example, a service may discard all red packets, because they exceeded the peak rate, forward yellow packets as best effort, and forward green packets with a low drop probability.
6. Security Considerations
The trTCM has no known security concerns.
7. References
[RFC2697] Heinanen, J. and R. Guerin, "A Single Rate Three Color
8. Authors' Addresses
Juha Heinanen Telia Finland, Inc. Myyrmaentie 2 01600 Vantaa, Finland
Heinanen & Guerin Informational [Page 4]
RFC 2698 A Two Rate Three Color Marker September 1999 9. Full Copyright StatementCopyright (C) The Internet Society (1999). All Rights Reserved.