
114 Chapter 5: Per-Hop Behavior: Resource Allocation II
You can enable Quality of Service (QoS)-based forwarding in an 8540 router by using the
global command qos switching. The default weight allocation for ToS classes 0–3 is 1, 2,
4, and 8, respectively. Hence, ToS classes 0–3 get an effective bandwidth of 1/15, 2/15,
4/15, and 8/15 of the interface bandwidth.
In this case, the bandwidth allocation for classes 0–3 is 15:15:30:40 or 3:3:6:8 because the
WRR scheduling weight can only be between 1–15.
Listing 5-1 shows a sample configuration to enable ToS-based MWRR globally on an 8500
router.
The configuration to QoS-switch according to the abov