Shaping to drop out-of-profile traffic is done on the Enhanced Queuing DPC at all levels but the queue level. However, weighed random early discard (WRED is done at the queue level with much the same result. With WRED, the decision to drop or send the packet is made before the packet is placed in the queue.
WRED shaping on the Enhanced Queuing DPC is similar to the IQ2 PIC, but involves only two levels, not 64. The probabilistic drop region establishes a minimum and a maximum queue depth. Below the minimum queue depth, the drop probability is 0 (send). Above the maximum level, the drop probability is 100 (certainty).
There are four drop profiles associated with each queue. These correspond to each of four loss priorities (low, medium-low, medium-high, and high). Sixty-four sets of four drop profiles are available (32 for ingress and 32 for egress). In addition, there are eight WRED scaling profiles in each direction.
An Enhanced Queuing DPC drop profile for expedited forwarding traffic might look like this:
- [edit class-of-service drop-profiles]
- drop-ef {
- fill-level 20 drop-probability 0; # Minimum Q depth
- fill-level 100 drop-probability 100; # Maximum Q depth
- }
Note that only two fill levels can be specified for the Enhanced Queuing DPC. You can configure the interpolate statement, but only two fill levels are used. The delay-buffer-rate statement in the traffic control profile determines the maximum queue size. This delay buffer rate is converted to a packet delay buffers, where one buffer is equal to 512 bytes. For example, at 10 Mbps, the Enhanced Queuing DPC will allocate 610 delay buffers when the delay buffer rate is set to 250 milliseconds. The WRED threshold values are specified in terms of absolute buffer values.
The WRED scaling factor multiples all WRED thresholds (both minimum and maximum) by the value specified. There are eight values in all: 1, 2, 4, 8, 16, 32, 64, and 128. The WRED scaling factor is chosen to best match the user configured drop profiles. This is done because the hardware supports only certain values of thresholds (all values must be a multiple of 16). So if the configured value of a threshold is 500 (for example), the multiple of 16 is 256 and the scaling factor applied is 2, making the value 512, which allows the value of 500 to be used. If the configured value of a threshold is 1500, the multiple of 16 is 752 and the scaling factor applied is 2, making the value 1504, which allows the value of 1500 to be used
Hierarchical RED is used to support the oversubscription of the delay buffers (WRED is only configured at the queue, physical interface, and PIC level). Hierarchical RED works with WRED as follows:
However, these rules might lead to the accepting of packets under loaded conditions which might otherwise have been dropped. In other words, the logical interface will accept packets if the physical interface is not congested.
Due to the limits placed on shaping thresholds used in the hierarchy, there is a granularity associated with the Enhanced Queuing DPCs. The shaper accuracies differ at various levels of the hierarchy, with shapers at the logical interface level (Level 3) being more accurate than shapers at the interface set level (Level 2) or the port level (Level 1). Table 54 shows the accuracy of the logical interface shaper at various speeds for Ethernet ports operating at 1 Gbps.
Table 54: Shaper Accuracy of 1-Gbps Ethernet at the Logical Interface Level
Table 55 shows the accuracy of the logical interface shaper at various speeds for Ethernet ports operating at 10 Gbps.
Table 55: Shaper Accuracy of 10-Gbps Ethernet at the Logical Interface Level
Table 56 shows the accuracy of the interface set shaper at various speeds for Ethernet ports operating at 1 Gbps.
Table 56: Shaper Accuracy of 1-Gbps Ethernet at the Interface Set Level
|
Range of Interface Set Shaper |
Step Granularity |
|---|---|
|
Up to 20.48 Mbps |
80 Kbps |
|
20.48 Mbps to 81.92 Mbps |
320 Kbps |
|
81.92 Mbps to 327.68 Mbps |
1.28 Mbps |
|
327.68 Mbps to 1 Gbps |
20.48 Mbps |
Table 57 shows the accuracy of the interface set shaper at various speeds for Ethernet ports operating at 10 Gbps.
Table 57: Shaper Accuracy of 10-Gbps Ethernet at the Interface Set Level
|
Range of Interface Set Shaper |
Step Granularity |
|---|---|
|
Up to 128 Mbps |
500 Kbps |
|
128 Mbps to 512 Mbps |
2 Mbps |
|
512 Mbps to 2.048 Gbps |
8 Mbps |
|
2.048 Gbps to 10 Gbps |
128 Mbps |
Table 58 shows the accuracy of the physical port shaper at various speeds for Ethernet ports operating at 1 Gbps.
Table 58: Shaper Accuracy of 1-Gbps Ethernet at the Physical Port Level
|
Range of Physical Port Shaper |
Step Granularity |
|---|---|
|
Up to 64 Mbps |
250 Kbps |
|
64 Mbps to 256 Mbps |
1 Mbps |
|
256 Mbps to 1 Gbps |
4 Mbps |
Table 59 shows the accuracy of the physical port shaper at various speeds for Ethernet ports operating at 10 Gbps.
Table 59: Shaper Accuracy of 10-Gbps Ethernet at the Physical Port Level
|
Range of Physical Port Shaper |
Step Granularity |
|---|---|
|
Up to 640 Mbps |
2.5 Mbps |
|
640 Mbps to 2.56 Gbps |
10 Mbps |
|
2.56 Gbps to 10 Gbps |
40 Mbps |
For more information about configuring RED drop profiles, see Configuring RED Drop Profiles.