set [cos <0-7>|ip dscp <0-63>|phb <0-7>]
set [cos <0-7>|ip dscp <0-63>|phb <0-7>]
set | Sets the match criteria used to identify and classify traffic into different classes. The match criteria options are: CoS, IP DSCP, and PHB values. |
cos <0-7> | Configures the CoS value for a matching packet (as
specified by the match command) in the packet‘s VLAN tag
|
ip dscp <0-63> | Modifies the IP DSCP value in a matching packet (as
specified by the match command)
|
phb <0-7> | Configures a PHB value for a matching packets
The PHB label is composed of five bits, three bits for per-hop behavior, and
two bits for the color scheme used to control queue congestion. A packet is marked
green, yellow, or red as per the following:
|
The following example uses the set > phb command to classify the service that incoming packets will receive, and then uses the police > trtcm-color-blind command to limit the average bandwidth to 100,000 Kbps, the committed burst rate to 4000 bytes, the peak information rate to 1,000,000 Kbps, the peak burst size to 6000 bytes, to remark any packets exceeding the committed burst size, and to drop any packets exceeding the peak information rate.
nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-test2)#set phb 3
nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-test2)# police
trtcm-color-blind 100000 4000 1000000 6000 conform-action transmit exceed-action 0 violate-action drop
nx9500-6C8809nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-test2)#show context class test2 set phb 3 police trtcm-color-blind 100000 4000 100000 6000 conform-action transmit exceed-action 0 violate-action drop nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-test2)#
The following example uses the set > ip dscp command to classify the service that incoming packets will receive, and then uses the police > flow command to limit the average bandwidth to 100,000 Kbps, the burst rate to 4000 bytes, and configure the response to drop any violating packets:
nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-dscp)#set ip dscp 3
nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-dscp)# police flow 100000 4000 conform-action transmit violate-action drop
nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-dscp)#show context class dscp set ip dscp 3 police flow 100000 4000 conform-action transmit violate-action drop nx9500-6C8809(config-ex3500-qos-policy-map-testPolicyMap-pmap-class-dscp)#
no (ex3500-traffic-class-config-commands) | Removes CoS value, PHB value, or IP DSCP value from this traffic class |