set
Sets CoS value, PHB value, and IP DSCP
value in matching packets
Supported in the following platforms:
- Service Platforms — NX 7510, NX 95XX, NX 96XX
Syntax
set [cos <0-7>|ip dscp <0-63>|phb <0-7>]
Parameters
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
- <0-7> – Specify a value from 0 - 7. The CoS is modified to the value
specified here.
|
ip dscp <0-63> |
Modifies the IP DSCP value in a matching packet (as
specified by the match command)
- <0-63> – Specify a value from 0 - 63. The DSCP value is modified to the
value specified here.
|
phb <0-7> |
Configures a PHB value for a matching packets
- <0-7> – Specify a value from 0 -7.
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:
- green if it does not exceed the CIR and BC limits
- yellow if it exceeds the CIR and BC limits, but not the BE limit, and
- red otherwise.
|
|
Examples
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 command to classify the service that incoming packets will receive, and then
uses the 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)#