IP Precedence and DSCP Compared
The IP header is defined in RFC 791, including a 1-byte field called the Type of Service (ToS) byte. The ToS byte was intended to be used as a field to mark a packet for treatment with QoS tools. The ToS byte itself was further subdivided, with the high-order 3 bits defined as the IP Precedence {IPP) field. The complete list of values from the ToS byte's original IPP 3-bit field, and the corresponding names, is provided in Table 14-2.
Table 14-2 IP Precedence Values and Names
KEY POINT
Table 14-2 IP Precedence Values and Names
KEY POINT
|
Name |
Decimal Value |
Binary Value |
|
Routine |
Precedence 0 |
000 |
|
Priority |
Precedence 1 |
001 |
|
Immediate |
Precedence 2 |
010 |
|
Flash |
Precedence 3 |
011 |
|
Flash Override |
Precedence 4 |
100 |
|
Critic/Critical |
Precedence 5 |
101 |
|
Internetwork Control |
Precedence 6 |
110 |
|
Network Control |
Precedence 7 |
111 |
Bits 3 through 6 of the ToS byte included flag fields that were toggled on or off to imply a particular QoS service. The final bit (bit 7) was not defined in RFC 791. The flags were not used very often, so in effect, the ToS byte's main purpose was to hold the 3-bit IPP field.
A series of RFCs collectively called Differentiated Services (DiffServ) came along later. DiffServ needed more than 3 bits to mark packets, so DiffServ standardized a redefinition of the ToS byte. The ToS byte itself was renamed the Differentiated Services (DS) field, and IPP was replaced with a 6-bit field (high-order bits 0-5) called the Differentiated Services Code Point (DSCP) field. Later, RFC 3168 defined the low-order 2 bits of the DS field for use with the QoS Explicit Congestion Notification (ECN) feature. Figure 14-1 shows the ToS byte's format with the pre-DiffServ and post-DiffServ definition of the field.
Figure 14-1 IP ToS Byte and DS Field Compared
8 bits
Figure 14-1 IP ToS Byte and DS Field Compared
8 bits

- 8 bits
C&M tools often mark DSCP or IPP because the IP packet remains intact as it is forwarded throughout an IP network. The other possible marking fields reside inside Layer 2 headers, which means the headers are discarded when forwarded by a Layer 3 process. Thus, the latter cannot be used to carry QoS markings beyond the current hop.
Continue reading here: DSCP Settings and Terminology
Was this article helpful?