IP Type of Service

本文介绍了IP头部服务类型字段从最初的定义到演变为差异化服务字段的过程。该字段最初包含IP优先级等内容,用于指定数据包优先级及特定处理需求。后经RFC2474修订为差异化服务字段,并引入了DSCP与显式拥塞通知等概念。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

IP Precedence, TOS & DSCP[转]

The IP Type of Service Header Field

 

The Type of Service field in the IP header was originally defined in RFC 791. It defined a mechanism for assigning a priority to each IP packet as well as a mechanism to request specific treatment such as high throughput, high reliability or low latency.

In practice, only the IP Precedence part of the field was ever used. At its simplest, the higher the value of the IP Precedence field, the higher the priority of the IP packet. Simple...

In RFC 2474 the definition of this entire field was changed. It is now called the "DS" (Differentiated Services) field and the upper 6 bits contain a value called the "DSCP" (Differentiated Services Code Point). Since RFC 3168, the remaining two bits (the two least siginficant bits) are used for Explicit Congestion Notification.

The diagram below illustrates the relationship between the bits in the Type of Services/Differeniated Services field in the IP header:-

 

 

Type of Service (TOS)XXXXXXX0
 76543210
Differentiated Services (DS)XXXXXXXX

Interpretation of the TOS/DS Field

RFC791/RFC1349 Interpretation

BitsMeaning
7-5IP Precedence:
111Network Control
110Internetwork Control
101Critic/ECP
100Flash Override
011Flash
010Immediate
001Priority
000Routine
41 = Low Delay; 0 = Normal Delay
31 = High Throughput; 0 = Normal Throughput
21 = High Reliability; 0 = Normal Reliability
11 = Minimise monetary cost (RFC 1349)
0Must be 0

RFC 2474 (Differentiated Services) Interpretation

BitsMeaning
7-2DSCP
1-0ECN (Explicit Congestion Notification)

 

The DSCP

The most signficant three bits of the DSCP (corresponding directly to the IP Precedence) are referred to as the Class Selector.

 

DSCP <=> IP Precedence Conversion Table

DSCP NameDS Field Value IP Precedence
BinaryDecimal
CS0000 00000
CS1001 00081
AF11001 010101
AF12001 100121
AF13001 110141
CS2010 000162
AF21010 010182
AF22010 100202
AF23010 110222
CS3011 000243
AF31011 010263
AF32011 100283
AF33011 110303
CS4100 000324
AF41100 010344
AF42100 100364
AF43100 110384
CS5101 000405
EF101 110465
CS6110 000486
CS7111 000567
CSClass Selector (RFC 2474)
AFxyAssured Forwarding (x=class, y=drop precedence) (RFC2597)
EFExpedited Forwarding (RFC 3246)

 

 

转自 : http://bogpeople.com/networking/dscp.shtml

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值