![Cisco 10000 Series Configuration Manual Download Page 497](http://html.mh-extra.com/html/cisco/10000-series/10000-series_configuration-manual_66373497.webp)
15-37
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 15 Oversubscribing Physical and Virtual Links
Configuring VC Weighting
Configuration Example for VC Weighting on a Class Queue Using Bandwidth Remaining Ratio
In the following sample configuration, the vlan10_policy is applied on the subinterface Gigabit
Ethernet 1/0/0.10 and the vlan20_policy is applied on the subinterface Gigabit Ethernet 1/0/0.20. During
congestion on the interface, subinterface GE 1/0/0.20 has 10 times more available bandwidth than
subinterface GE1/0/0.10 because the bandwidth-remaining ratio for subinterface GE 1/0/0.20 is 10 times
more than the bandwidth-remaining ratio for subinterface 1/0/0.10: 100 on subinterface 1/0/0.20 and 10
on subinterface 1/0/0.10.
When congestion occurs within a subinterface level, the class queues receive bandwidth according to the
class-level bandwidth-remaining ratios. In the example, the bandwidth for classes precedence_0,
precedence_1, and precedence_2 is allocated based on the bandwidth-remaining ratios of the classes: 20,
40, and 60, respectively.
policy-map child-policy
class precedence_0
shape average 500000
bandwidth remaining ratio 20 <---- Class-level ratio
class precedence_1
shape average 500000
bandwidth remaining ratio 40 <---- Class-level ratio
class precedence_2
shape average 500000
bandwidth remaining ratio 60 <---- Class-level ratio
!
policy-map vlan10_policy
class class-default
shape average 1000000
bandwidth remaining ratio 10 <---- Subinterface-level ratio
service-policy child-policy
!
policy-map vlan20_policy
class class-default
shape average 1000000
bandwidth remaining ratio 100 <---- Subinterface-level ratio
service-policy child_policy
!
!
interface GigabitEthernet 1/0/0.10
encapsulation dot1q 10
service-policy output vlan10_policy
!
interface GigabitEthernet 1/0/0.20
encapsulation dot1q 20
service-policy output vlan20_policy