Configuration commands

Use these M4500 CLI commands to map 802.1p priorities to traffic classes, set trust mode, and configure queue bandwidth, strict priority, shaping, and WRED.

queue cos-map

This command maps an 802.1p priority to an internal traffic class on a "per-port" basis.

Default None
Format

queue cos-map <0-7> <0-7>

no queue cos-map

Mode Interface Config
Parameter Description
<0-7> The range of queue priority is 0 to 7.
<0-7> The range of mapped traffic class is 0 to 7.
no Reset to the default mapping of the queue priority and the mapped traffic class.

This command maps an 802.1p priority to an internal traffic class for a device.

Default None
Format

queue cos-map all <0-7> <0-7>

no queue cos-map all

Mode Global Config
Parameter Description
<0-7> The range of queue priority is 0 to 7.
<0-7> The range of mapped traffic class is 0 to 7.
no Reset to the default mapping of the queue priority and the mapped traffic class.

queue trust

This command sets the class of service trust mode of an interface. You can set the mode to trust one of the Dot1p (802.1p) or IP DSCP packet markings. You can also set the interface mode to untrusted. If you configure an interface to use Dot1p, the mode does not appear in the output of the show running config command because Dot1p is the default.

Default dot1p
Format

queue trust {dot1p | ip-dscp | untrusted} all

no queue trust all

Mode Global Config
Parameter Description
no Sets the class of service trust mode to untrusted for all interfaces.
Default dot1p
Format

queue trust {dot1p | ip-dscp | untrusted}

no queue trust

Mode Interface Config
Parameter Description
no Sets the class of service trust mode to untrusted for an interfaces.

queue cos-queue min-bandwidth

This command specifies the minimum transmission bandwidth guarantee for each interface queue.

Format queue cos-queue min-bandwidth <bw-0> <bw-1> … <bw-7>

no queue cos-queue min-bandwidth

Parameter Description
<bw-0> <bw-1> <bw-7> Each Valid range is (0 to 100) in increments of 5 and the total sum is less than or equal to 100.
no Restores the default for each queue's minimum bandwidth value.
Default None
Mode Interface Config

This command specifies the minimum transmission bandwidth guarantee for each interface queue in the device.

Format queue cos-queue min-bandwidth all <bw-0> <bw-1> … <bw-7>

no queue cos-queue min-bandwidth all

Parameter Description
<bw-0> <bw-1> <bw-7> Each Valid range is (0 to 100) in increments of 5 and the total sum is less than or equal to 100.
no Restores the default for each queue's minimum bandwidth value in the device.
Default None
Mode Global Config

queue cos-queue strict

This command activates the strict priority scheduler mode for each specified queue on a "per-port" basis.

Default None
Format

queue cos-queue strict <queue-id-0> [<queue-id-1> … <queue-id-7>]

no queue cos-queue strict <queue-id-0> [<queue-id-1> … <queue-id-7>]

Mode Interface Config
Parameter Description
<queue-id> Queue ID from 0 to 7.
no Restores the default weighted scheduler mode for each specified queue on a "per-port" basis.

This command activates the strict priority scheduler mode for each specified queue on a device.

Default None
Format

queue cos-queue strict all <queue-id-0> [<queue-id-1> … <queue-id-7>]

no queue cos-queue strict all <queue-id-0> [<queue-id-1> … <queue-id-7>]

Mode Global Config
Parameter Description
<queue-id> Queue ID from 0 to 7.
no Restores the default weighted scheduler mode for each specified queue on a device.

queue cos-queue traffic-shape

This command specifies the maximum transmission bandwidth limit for the interface as a whole. Also known as rate shaping, this has the effect of smoothing temporary traffic bursts over time so that the transmitted traffic rate is bounded.

Default None
Format

queue cos-queue traffic-shape <bw>

no queue cos-queue traffic-shape

Mode Interface Config
Parameter Description
<bw> Valid range is (0 to 100) in increments 1.
no Restores the default shaping rate value.

This command specifies the maximum transmission bandwidth limit for all interfaces. Also known as rate shaping, this has the effect of smoothing temporary traffic bursts over time so that the transmitted traffic rate is bounded.

Default None
Format

queue cos-queue traffic-shape all <bw>

no queue cos-queue traffic-shape all

Mode Global Config
Parameter Description
< bw > Valid range is (0 to 100) in increments 1.
no Restores the default shaping rate value for all interfaces.

queue cos-queue random-detect

This command activates weighted random early discard (WRED) for each specified queue on the interfaces. Specific WRED parameters are configured using the random-detect queue-parms and the random-detect exponential-weighting-constant commands.

Default None
Format

queue cos-queue random-detect <queue-id-0> [<queue-id-1> … <queue-id-7>]

no queue cos-queue random-detect <queue-id-0> [<queue-id-1> … <queue-id-7>]

Mode

Global Config

Interface Config

Parameter Description
<queue-id> Queue ID from 0 to 7.
no Restores the default value.

random-detect exponential-weighting-constant

This command is used to configure the WRED decay exponent for a CoS queue interface.

Format

random-detect exponential-weighting-constant <exponent>

no random-detect exponential-weighting-constant

Mode

Global Config

Interface Config

random-detect queue-parms

This command is used to configure WRED parameters for each drop precedence level supported by a queue. It is used only when per-COS queue configuration is enabled (using the cos-queue random-detect command).

Format random-detect queue-parms <queue-id> [<queue-id>…] ... [units {KB|percentage}] min-thresh <minthresh-green> <minthresh-yellow> <minthresh-red> <minthresh-nontcp>max-thresh <maxthresh-green> <maxthresh-yellow> <maxthresh-red> <maxthresh-nontcp> drop-prob <drop-prob-green> <drop-prob-yellow> <drop-prob-red> <drop-prob-nontcp> [ecn]

no random-detect queue-parms <queue-id> [<queue-id> …]

Mode

Global Config

Interface Config

Parameter Description
queue-id The internal class of service queue. Range 0 to 6. This is the internal CoS queue number, which is not the same as the CoS or DSCP value received in the packet. Use the show class of service dot1p-mapping command to display the Cos value to CoS queue mapping.
units Minimum and maximum threshold values can be configured in KB or percentage.
min-thresh The minimum congestion threshold (in terms of percentage of queue depth) at which to begin dropping or ECN marking packets at 1/8th of the configured drop probability. At or below the minimum threshold, no packets are dropped. The range between the minimum and maximum thresholds is divided equally into 8 increasing levels of drop probability.
max-thresh The maximum congestion threshold to end dropping at the configured maximum drop probability and to begin dropping at 100%.
drop-probability The maximum drop probability. Range 0-100. This is the drop probability for a packet when the maximum threshold is reached. Above the maximum threshold, 100% of matching packets are dropped.
ecn Enable ECN marking on the selected S queues. When ECN is enabled, packets not marked as ECN capable are dropped when selected for discard by WRED.