Configuring Low-Latency Queuing (LLQ) with Class-Based Weighted Random Early Detection (CBWRED)
Figure 4-6 is a flowchart showing the architecture of Low-Latency Queuing with Class-Based Weighted Random Early Detection. The configuration that follows the diagram shows a specific example of configuring LLQ with CBWRED.
Figure 4-6. Low-Latency Queuing with Class-Based Weighted Random Early Detection
The tasks to configure CBWRED with LLQ are
STEP 1. | |
STEP 2. | |
STEP 3. | |
STEP 4. | |
STEP 5. |
Step 1: Define One or More Class Maps to Specify Traffic
Router(config-cmap)# class-map match-any VoIP | Creates class VoIP. |
Router(config-cmap)# match precedence 5 | Selects traffic with IP precedence 5. |
Router(config-cmap)# class-map match-any CRITICAL | Creates class CRITICAL. |
Router(config-cmap)# match precedence 3 4 | Selects traffic with IP precedence 3 and 4. |
Router(config-cmap)# class-map match-any NOTCRITICAL | Creates class NOTCRITICAL. |
Router(config-cmap)# match precedence 1 2 | Selects traffic with IP precedence 1 and 2. |
Router(config-cmap)# exit | Returns to global configuration mode. |
Step 2: Create a Policy
Router(config)# policy-map POLICY-1 | Creates policy POLICY-1. |
Step 3: Add Class Maps to the Policy and Specify One (or More) Class(es) with Priority Bandwidth
Step 4: Apply Policy to an Interface
Router(config)# interface fastethernet 0/0 | Chooses an interface to apply queuing policy. |
Router(config-if)# service-policy output POLICY-1 | Applies the queuing policy to outbound traffic. |
Step 5: Verify Policy Configuration
Router# show policy-map interface fastethernet 0/0 | Displays the configurations and statistics of policy maps applied at fastethernet 0/0. |
Note
WRED is IP precedence-based by default, but it can be configured to be DSCP-based, if desired.
WRED has three configuration parameters: minimum threshold, maximum threshold, and mark probability denominator (MPD). If the size of the queue is smaller than the minimum threshold, packets are not dropped. As the size of the queue grows beyond the minimum threshold, the rate of packet drops also increases. If the size of the queue becomes larger than the maximum threshold, all arriving packets are dropped. The minimum and maximum threshold ranges are 1 to 4096.
MPD is an integer that dictates to drop 1 of the MPD when the size of the queue is between the minimum and maximum thresholds. For example, if the MPD is set to 10, and the queue size is between minimum and maximum values, there is a drop of 1 out of every 10 packets. The value of the mark probability can range from 1 to 65,535.
With WRED you can set up a different profile (with a minimum threshold, maximum threshold, and MPD) for each traffic priority.