configure cos-index

configure cos-index cos_index [{ qosprofile qosprofile } {ingress-meter ing_meter } {replace-tos tos_value {mask tos_mask}}]

Description

This command is used to configure the CoS index, which is used to assign QoS rate-shaping, rate-limiting, flood control, and 802.1p.

Syntax Description

cos_index Class of Service (CoS) index value, range 0 - 255.
qosprofile QoS profile.
qosprofile QoS profile name.
ingress-meter Ingress rate-limiter meter.
ing_meter Ingress rate-limiter meter name.
replace-tos Replace TS value.
tos_value TOS replacement value.
mask TOS replacement mask.
tos_mask TOS replacement mask value.

Default

N/A.

Usage Guidelines

The CoS index (0-255) is used to assign QoS rate-shaping, rate-limiting, flood control, and 802.1p. The TOS value can be a value from 0-255. The TOS mask option allows for only certain bits of the field, those masked, to be change. If the mask is not specified in the ToS input, all bits are overwritten. The replace-dot1p value cannot be set for CoS indexes 0-7.

For indexes 0-7, the replace-tos option for the cos-index command will map to the configure diffserv commands, which are associated with the qosprofile, assigned through the configure dot1p command. Note that diffserv only replaces bits 0-5 of the TOS byte. Therefore, the replace-tos mask is fixed to 0xfc for cos-index 0-7 and the equivalent diffserv replace value is shifted left 2 bits. On some platforms, the hardware only allows replacement of bits 0-5. In which case, the mask is fixed to 0xfc and will result in an error if the user tries to change the mask.

Example

configure cos-index 51 qosprofile qp2 ingress-meter ingmeter2 replace-tos 64

History

This command was first available in ExtremeXOS 16.1.

Platform Availability

This command is available on all platforms.