分享
 
 
 

RFC2698 - A Two Rate Three Color Marker

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

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

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 Two Rate Three Color Marker (trTCM), which

can be used as a component in a Diffserv traffic conditioner

[RFC2475, RFC2474]. The trTCM meters an IP packet stream and marks

its packets based on two rates, Peak Information Rate (PIR) and

Committed Information Rate (CIR), and their associated burst sizes to

be either green, yellow, or red. A packet is marked red if it

exceeds the PIR. Otherwise it is marked either yellow or green

depending on whether it exceeds or doesn't exceed the CIR.

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:

+------------+

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 [RFC2697] describes another three color marker,

called a Single Rate Three Color Maker (srTCM), where packets are

marked based on a single rate and two burst sizes.

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).

The PIR and CIR are measured in bytes of IP packets per second, i.e.,

it includes the IP header, but not link specific headers. The PIR

must be equal to or greater than the CIR.

The PBS and the CBS and are measured in bytes and both of them must

be configured to be greater than 0. It is recommended that they be

configured to be equal to or greater than 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, 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.

The token buckets P and C are initially (at time 0) full, i.e., the

token count Tp(0) = PBS and the token count Tc(0) = CBS. Thereafter,

the token count Tp is incremented by one PIR times per second up to

PBS and the token count Tc is incremented by one CIR times per second

up to CBS.

When a packet of size B bytes arrives at time t, the following

happens if the trTCM is configured to operate in the Color-Blind

mode:

o If Tp(t)-B < 0, the packet is red, else

o if Tc(t)-B < 0, the packet is yellow and Tp is decremented by B,

else

o the packet is green and both Tp and Tc are decremented by B.

When a packet of size B bytes arrives at time t, the following

happens if the trTCM is configured to operate in the Color-Aware

mode:

o If the packet has been precolored as red or if Tp(t)-B < 0, the

packet is red, else

o if the packet has been precolored as yellow or if Tc(t)-B < 0,

the packet is yellow and Tp is decremented by B, else

o the packet is green and both Tp and Tc are decremented by B.

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 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

Marker", RFC2697, 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 367 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.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有