RFC 1349 redefined bits 3 and 6 (expanding for ToS bits) to reflect a desired type of service optimization. Table 1-5 shows the ToS field values that indicate service parameters to use for IP packets.

Table 1-5 ToS Field Values

ToS Bits 3 to 6Description
0000Normal service
1000Minimize delay
0100Maximize throughput
0010Maximize reliability
0001Minimize monetary cost

In 1998, RFC 2474 redefined the ToS octet as the Differentiated Services (DS) field and further specified bits 0 through 5 as the Differentiated Services Code Point (DSCP) bits to support differentiated services. RFC 3168 (2001) updates RFC 2474, with the specification of an Explicit Congestion Notification (ECN) field.

The DS field takes the form shown in Figure 1-2. The DS field provides more granular levels of packet classification by using 6 bits for packet marking. DS has 26 = 64 levels of classification, which is significantly higher than the eight levels of the IP precedence bits. These 64 levels are called codepoints, and they have been defined to be backward compatible with IP precedence values. RFCs 2474, 3246, and 3260 define three sets of PHBs: Class Selector (CS), Assured Forwarding (AF), and Expedited Forwarding (EF). The CS PHB set is for DSCP values that are compatible with IP precedence bits. The AF PHB set is used for queuing and congestion avoidance. The EF PHB set is used for premium service. The CS per-hop behaviors (PHB), in the form of xxx000, make it backward compatible with IP precedence.

A network designer uses DSCP to give priority to IP packets using Cisco routers. Routers should be configured to map these codepoints to PHBs with queuing or other bandwidth-management techniques. Table 1-6 compares DSCP and IP precedence values used to assign priority and apply policies to IP packets.

Table 1-6 DSCP and IP Precedence Values

IP PrecedenceLimitationDSCP
Service TypeDecimalBinaryClassDecimalCodepoint
Routine0000Best effort0000000
Priority1001Assured Forwarding (AF) Class 18 to 14001xxx
Immediate2010AF Class 216 to 22010xxx
Flash3011AF Class 324 to 30011xxx
Flash override4100AF Class 432 to 38100xxx
Critical5101Expedited Forwarding (EF)40 to 46101xxx
Internetwork control6110Control48110xxx
Network control7111Control56111xxx

RFC 2597 defines recommended values for AF codepoints with low, medium, and high packet-drop precedence. Table 1-7 shows the recommended AF codepoint values.

Table 1-7 DSCP AF Packet-Drop Precedence Values

PrecedenceAF Class 1AF Class 2AF Class 3AF Class 4
Low drop precedence001010010010011010100010
Medium drop precedence001100010100011100100100
High drop precedence001110010110011110100110

RFC 2598 defines the EF PHB for low loss, loss latency, and assured bandwidth types of traffic. This is considered a premium service. Traffic such as VoIP is classified as EF. The codepoint for EF is 101110, which corresponds to a DSCP value of 46.

When you are configuring Cisco routers, some options are preconfigured and summarize the defined values for DSCP (see Table 1-8).

Table 1-8 IP DSCP Values

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *