A codepoint must have an 802.1p priority assignment (0 - 7) before you can configure a policy for prioritizing packets. If a codepoint you want to use shows No-override
in the Priority
column of the DSCP map (show qos dscp-map
), then you must assign a 0 - 7 priority before proceeding (qos dscp-map priority
command).
The DSCP Policy Table associates an 802.1p priority with a specific ToS byte codepoint in an IPv4 packet. This enables you to set a LAN policy that operates independently of 802.1Q VLAN-tagging.
In the default state, most of the 64 codepoints do not assign an 802.1p priority, as indicated by No-override
in The default DSCP Policy Table.
You can use the following command to list the current DSCP Policy table.
Syntax:
The default DSCP Policy Table
DSCP policy | 802.1p priority | DSCP policy | 802.1p priority | DSCP policy | 802.1p priority |
---|---|---|---|---|---|
000000 | No-override | 010110 | 3* | 101011 | No-override |
000001 | No-override | 010111 | No-override | 101100 | No-override |
000010 | No-override | 011000 | No-override | 101101 | No-override |
000011 | No-override | 011001 | No-override | 101110 | 7** |
000100 | No-override | 011010 | 4* | 101111 | No-override |
000101 | No-override | 011011 | No-override | 110000 | No-override |
000110 | No-override | 011100 | 4* | 110001 | No-override |
000111 | No-override | 011101 | No-override | 110010 | No-override |
001000 | No-override | 011110 | 5* | 110011 | No-override |
001001 | No-override | 011111 | No-override | 110100 | No-override |
001010 | 1* | 100000 | No-override | 110101 | No-override |
001011 | No-override | 100001 | No-override | 110110 | No-override |
001100 | 1* | 100010 | 6* | 110111 | No-override |
001101 | No-override | 100011 | No-override | 111000 | No-override |
001110 | 2* | 100100 | 6* | 111001 | No-override |
001111 | No-override | 100101 | No-override | 111010 | No-override |
010000 | No-override | 100110 | 7* | 111011 | No-override |
010001 | No-override | 100111 | No-override | 111100 | No-override |
010010 | 0* | 101000 | No-override | 111101 | No-override |
010011 | No-override | 101001 | No-override | 111110 | No-override |
010100 | 0* | 101010 | No-override | 111111 | No-override |
010101 | No-override | ||||
*Assured Forwarding codepoints; configured by default on the switches covered in this guide. **Expedited Forwarding codepoint configured by default. |
Use the following commands to configure or reconfigure DSCP policies for codepoints.
Syntax:
(Optional) This command is required only if an 802.1p priority is not already assigned to the specified
in the DSCP Policy table (see The default DSCP Policy Table).
<codepoint>
Valid values for a DSCP codepoint are as follows:
A binary value for the six-bit codepoint from
000000
to111111
.A decimal value from
0
(low priority) to63
(high priority) that corresponds to a binary DSCP bit setAn ASCII standard (hexadecimal) name for a binary DSCP bit set. The following are assigned by default:
af11
(001010)af43
(100110)af12
(001100)ef
(101110)af13
(001110)cs0
(000000)af21
(010010)cs1
(001000)af22
(010100)cs2
(010000)af23
(010110)cs3
(011000)af31
(011010)cs4
(100000)af32
(011100)cs5
(101000)af33
(011110)cs6
(110000)af41
(100010)cs7
(111000)af42
(100100)Enter ? to display the list of valid codepoint entries.
When the switch applies the specified DSCP policy to a packet, the priority determines the packet's queue in the outbound port to which it is sent. If the packet leaves the switch on a tagged port, it carries the 802.1p priority with it to the next downstream device. For IP packets, the DSCP will be replaced by the codepoint specified in this command.
Default:
No-override
for most codepoints.
Reconfigures the 802.1p priority for
to
<codepoint>
No-override
. Also deletes the codepoint policy name, if configured.
Steps for configuring codepoints:
In a few cases, such as 001010 (af21) and 001100 (af43), a default policy (implied by the DSCP standards for Assured-Forwarding and Expedited-Forwarding) is used.
You can change the priorities for the default policies by using qos dscp-map
. (These policies are not in effect unless you have either applied the policies to a QoS classifier or configured QoS Type-of-Service to be in <codepoint>
priority <0-7>diff-services
mode.)
The default DSCP Policy Table lists the switch’s default codepoint/priority settings. If you change the priority of any codepoint setting to a non-default value and then execute write memory
, the switch will list the non-default setting in the show config
display. For example, in the default configuration, the following codepoint settings are true:
If you change all three settings to a priority of 3, and then execute write memory
, the switch will reflect these changes in the show config
listing:
Effect of No-override
: In the QoS Type-of-Service differentiated services mode, a No-override
assignment for the codepoint of an outbound packet means that QoS is effectively disabled for such packets. That is, QoS does not affect the packet queuing priority or VLAN tagging.
In this case, the packets are handled as follows (as long as no other QoS feature creates priority assignments for them):
If a QoS classifier is using a policy (codepoint and associated priority) in the DSCP Policy table, you must delete or change this usage before you can change the priority setting on the codepoint. Otherwise the switch blocks the change and displays this message:
In this case, use show qos
to identify the specific classifiers using the policy you want to change; that is:<classifier>
For example, suppose that the 000001 (dscp 1) codepoint has a priority of 6, and several classifiers use the 000001 codepoint to assign a priority to their respective types of traffic. If you wanted to change the priority of codepoint 000001 you would do the following:
-
Identify which QoS classifiers use the codepoint.
-
Change the classifier configurations by assigning them to a different DSCP policy, or to an 802.1p priority, or to
No-override
. -
Reconfigure the desired priority for the 000001 (dscp 1) codepoint.
-
Either reassign the classifiers to the 000001 (dscp 1) codepoint policy or leave them as they were after step 2, above.
Suppose that codepoint 1 is in use by one or more classifiers. If you try to change its priority, you see a result similar to the following:
Trying to change the priority on a policy in use by a classifier
HP Switch(config)# qos dscp-map 1 priority 2 Cannot modify DSCP Policy 1 - in use by other qos rules.
In this case, you would use steps similar to the following to change the priority.
-
Identify which classifiers use the codepoint you want to change.
A search to identify classifiers using a codepoint you want to change
HP Switch(config)# show qos device-priority Device priorities Device Address Apply Rule | DSCP Priority -------------- ---------- - ---- ----------- 10.26.50.104 DSCP | 1 6 HP Switch(config)# show qos port-priority Port priorities Port Apply rule | DSCP Priority Radius Override ---- ---------- ----- ---------- --------------- 1 No-override | No-override No-override 2 No-override | No-override No-override 3 DSCP | 1 6 No-override 4 No-override | No-override No-override . . . HP Switch(config)# show qos tcp-udp-port-priority TCP/UDP port based priorities | IP Packet Application Protocol | Type Port Apply rule | DSCP Priority -------- + ---------- ---------- ---------- + ------ -------- UDP | IPv4 1260 DSCP | 1 6
-
Change the classifier configurations by assigning them to a different DSCP policy, or to an 802.1p priority, or to
No-override
. For example:-
Delete the policy assignment for the
device-priority
classifier. (That is, assign it toNo-override
.) -
Create a new DSCP policy to use for re-assigning the remaining classifiers.
-
Assign the
port-priority
classifier to the new DSCP policy. -
Assign the
udp-port 1260
classifier to an 802.1p priority.a) HP Switch(config)# no qos device-priority 10.26.50.104 b) HP Switch(config)# qos dscp-map 5 priority 6 c) HP Switch(config)# int 3 qos dscp 5 d) HP Switch(config)# qos udp-port 1260 priority 2
-
-
Reconfigure the desired priority for the 000001 (dscp 1) codepoint.
HP Switch(config)# qos dscp-map 1 priority 4
-
You could now re-assign the classifiers to the original policy codepoint or leave them as currently configured.