Network Working Group J. Heinanen
Request for Comments: 2697 Telia Finland
Category: Informational R. Guerin
University of Pennsylvania
September 1999
A Single Rate Three Color Marker
1. Introduction
The Single Rate Three Color Marker (srTCM) meters an IP packet stream and marks its packets either green, yellow, or red. Marking is based on a Committed Information Rate (CIR) and two associated burst sizes, a Committed Burst Size (CBS) and an Excess Burst Size (EBS). A packet is marked green if it doesn't exceed the CBS, yellow if it does exceed the CBS, but not the EBS, and red otherwise. The srTCM is useful, for example, for ingress policing of a service, where only the length, not the peak rate, of the burst determines service eligibility. The Meter meters each packet and passes the packet and the metering result to the Marker:
Heinanen & Guerin Informational [Page 1]
RFC 2697 A Single 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 srTCM is configured by setting its mode and by assigning values to three traffic parameters: a Committed Information Rate (CIR), a Committed Burst Size (CBS), and an Excess Burst Size (EBS).
Heinanen & Guerin Informational [Page 2]
RFC 2697 A Single Rate Three Color Marker September 1999 3. MeteringThe behavior of the Meter is specified in terms of its mode and two token buckets, C and E, which both share the common rate CIR. The maximum size of the token bucket C is CBS and the maximum size of the token bucket E is EBS.
Heinanen & Guerin Informational [Page 3]
RFC 2697 A Single Rate Three Color Marker September 1999
The actual implementation of a Meter doesn't need to be modeled according to the above formal specification.
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.
5. Service Example
The srTCM can be used to mark a 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 both the committed and excess burst sizes, forward yellow packets as best effort, and forward green packets with a low drop probability.
6. Security Considerations
The srTCM has no known security concerns.
7. References
[RFC2698] Heinanen, J. and R. Guerin, "A Two Rate Three Color
Heinanen & Guerin Informational [Page 4]
RFC 2697 A Single Rate Three Color Marker September 1999 8. Authors' AddressesJuha Heinanen Telia Finland, Inc. Myyrmaentie 2 01600 Vantaa, Finland
Heinanen & Guerin Informational [Page 5]
RFC 2697 A Single Rate Three Color Marker September 1999 9. Full Copyright StatementCopyright (C) The Internet Society (1999). All Rights Reserved.