IP Precedence, TOS, and DSCP Classifications
Every IP packet (including both IPv4 and IPv6) includes a TOS byte. This byte is broken up into fields that the network uses to help provide the appropriate QoS commitments. In the older TOS model defined in RFC 1349, the first three bits contain the IP Precedence value, and the next four bits contain the TOS value.
We note in passing that it is easy to get confused between the different uses of “TOS”. Sometimes it refers to the entire byte, and sometimes to just the 4 bits that describe forwarding behavior. To help reduce the confusion, we will call the 4-bit field the TOS field, and the entire byte the TOS byte.
Table B-1 shows the standard IP Precedence values. It is important to note that normal application traffic is not permitted to use IP Precedence values 6 or 7. These are strictly reserved for network purposes like keepalive packets and routing protocols. The network must always give these packets higher priority than any application packets. This is because no application will work if the network loses its topology information.
Table 2-1. Standard IP Precedence values
IP Precedence | Decimal value | Bit pattern |
---|---|---|
Routine | 0 | 000 |
Priority | 1 | 001 |
Immediate | 2 | 010 |
Flash | 3 | 011 |
Flash Override | 4 | 100 |
Critical | 5 | 101 |
Internetwork Control | 6 | 110 |
Network Control | 7 | 111 |
Table B-2 shows the standard IP TOS values, as defined in RFC 1349. The idea was that an application could use these bits to request the appropriate forwarding behavior. Because the values are specified in different ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.