米葫芦网

RFC2697 - A Single Rate Three Color Marker

热度:1℃ 发布时间:2023-11-16 19:53:21

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
Status of this Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (1999). All Rights Reserved.
Abstract
This document defines a Single Rate Three Color Marker (srTCM), which
can be used as component in a Diffserv traffic conditioner [RFC2475,
RFC2474]. The srTCM meters a traffic stream and marks its packets
according to three traffic parameters, Committed Information Rate
(CIR), Committed Burst Size (CBS), and Excess Burst Size (EBS), to be
either green, yellow, or red. 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.
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:
+------------+
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.
The Marker (re)colors an IP packet according to the results of the
Meter. The color is coded in the DS field [RFC2474] of the packet in
a PHB specific manner (see section 4 for an example).
A companion document [RFC2698] describes another three color marker,
called a Two Rate Three Color Maker (trTCM), where packets are marked
based on two rates and two burst sizes.
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).
The CIR is measured in bytes of IP packets per second, i.e., it
includes the IP header, but not link specific headers.
The CBS and the EBS and are measured in bytes. The CBS and EBS must
be configured so that at least one of them is larger than 0. It is
recommended that when the value of the CBS or the EBS is larger than
0, it is larger than or equal to the size of the largest possible IP
packet in the stream.
3. Metering
The 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.
The token buckets C and E are initially (at time 0) full, i.e., the
token count Tc(0) = CBS and the token count Te(0) = EBS. Thereafter,
the token counts Tc and Te are updated CIR times per second as
follows:
o If Tc is less than CBS, Tc is incremented by one, else
o if Te is less then EBS, Te is incremented by one, else
o neither Tc nor Te is incremented.
When a packet of size B bytes arrives at time t, the following
happens if the srTCM is configured to operate in the Color-Blind
mode:
o If Tc(t)-B >= 0, the packet is green and Tc is decremented by B
down to the minimum value of 0, else
o if Te(t)-B >= 0, the packets is yellow and Te is decremented by B
down to the minimum value of 0, else
o the packet is red and neither Tc nor Te is decremented.
When a packet of size B bytes arrives at time t, the following
happens if the srTCM is configured to operate in the Color-Aware
mode:
o If the packet has been precolored as green and Tc(t)-B >= 0, the
packet is green and Tc is decremented by B down to the minimum
value of 0, else
o If the packet has been precolored as green or yellow and if
Te(t)-B >= 0, the packets is yellow and Te is decremented by B
down to the minimum value of 0, else
o the packet is red and neither Tc nor Te is decremented.
Note that according to the above rules, marking of a packet with a
given color requires that there be enough tokens of that color to
accommodate the entire packet. Other marking policies are clearly
possible. The above policy was chosen in order guarantee a
deterministic behavior where the volume of green packets is never
smaller than what has been determined by the CIR and CBS, i.e.,
tokens of a given color are always spent on packets of that color.
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
Marker", RFC2698, September 1999.
[RFC2597] Heinanen, J., Baker, F., Weiss, W. and J. Wroclawski,
"Assured Forwarding PHB Group", RFC2597, June 1999.
[RFC2474] Nichols, K., Blake, S., Baker, F. and D. Black,
"Definition of the Differentiated Services Field (DS
Field) in the IPv4 and IPv6 Headers", RFC2474, December
1998.
[RFC2475] Blake, S., Black, D., Carlson, M., Davies, E., Wang, Z.
and W. Weiss, "An Architecture for Differentiated
Services", RFC2475, December 1998.
8. Authors" Addresses
Juha Heinanen
Telia Finland, Inc.
Myyrmaentie 2
01600 Vantaa, Finland
EMail: jh@telia.fi
Roch Guerin
University of Pennsylvania
Department of Electrical Engineering, Rm 376 GRW
200 South 33rd Street
PhilaDelphia, PA 19104
EMail: guerin@ee.upenn.edu
9. Full Copyright Statement
Copyright (C) The Internet Society (1999). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise eXPlain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFCEditor function is currently provided by the
Internet Society.

网友评论
评论
发 布

更多软件教程
  • 软件教程推荐
更多+
Greenfoot设置中文的方法

Greenfoot设置中文的方法

Greenfoot是一款简单易用的Java开发环境,该软件界面清爽简约,既可以作为一个开发框使用,也能够作为集成开发环境使用,操作起来十分简单。这款软件支持多种语言,但是默认的语言是英文,因此将该软件下载到电脑上的时候,会发现软件的界面语言是英文版本的,这对于英语基础较差的朋友来说,使用这款软件就会...

07-05

Egret UI Editor修改快捷键的方法

Egret UI Editor修改快捷键的方法

Egret UI Editor是一款开源的2D游戏开发代码编辑软件,其主要功能是针对Egret项目中的Exml皮肤文件进行可视化编辑,功能十分强大。我们在使用这款软件的过程中,可以将一些常用操作设置快捷键,这样就可以简化编程,从而提高代码编辑的工作效率。但是这款软件在日常生活中使用得不多,并且专业性...

07-05

KittenCode新建项目的方法

KittenCode新建项目的方法

KittenCode是一款十分专业的编程软件,该软件给用户提供了可视化的操作界面,支持Python语言的编程开发以及第三方库管理,并且提供了很多实用的工具,功能十分强大。我们在使用这款软件进行编程开发的过程中,最基本、最常做的操作就是新建项目,因此我们很有必要掌握新建项目的方法。但是这款软件的专业性...

07-05

Thonny设置中文的方法

Thonny设置中文的方法

Thonny是一款十分专业的Python编辑软件,该软件界面清爽简单,给用户提供了丰富的编程工具,具备代码补全、语法错误显示等功能,非常的适合新手使用。该软件还支持多种语言,所以在下载这款软件的时候,有时候下载到电脑中的软件是英文版本的,这对于英语基础较差的小伙伴来说,使用这款软件就会变得十分困难,...

07-05

最新软件下载