bandwidth remaining
To specify how to allocate leftover bandwidth to various classes, use the bandwidth remaining command in policy map class configuration mode. To return to the system defaults, use the no form of this command.
bandwidth remaining [ ratio ratio-value | percent percentage ]
no bandwidth remaining [ ratio ratio-value | percent percentage ]
Syntax Description
|
ratio ratio-value |
Specifies the relative share or weight of remaining bandwidth, based on a bandwidth ratio value. Range is 1 to 63 for main interfaces, and 1 to 255 for subinterfaces. |
|
percent percentage |
Specifies the share of available remaining bandwidth as a percentage. Range is 1 to 100. |
Command Default
No bandwidth is specified.
Command Modes
Policy map class configuration
Command History
|
Release |
Modification |
|---|---|
|
Release 26.3.1 |
The command was enhanced to support the percent keyword for configuring percentage-based sharing of remaining bandwidth on supported Cisco 8000 Series routers. |
|
Release 7.0.12 |
This command was introduced. |
Usage Guidelines
Bandwidth, bandwidth remaining, and shaping commands can be configured together in the same class.
Note |
The bandwidth remaining command is supported only in the egress direction. |
The available bandwidth is equally distributed among those queueing classes that do not have the remaining bandwidth explicitly configured.
The bandwidth remaining command is used to proportionally allocate bandwidth to the particular classes, but there is no reserved bandwidth capacity.
On egress, if the bandwidth remaining command is not present, then the bandwidth is shared equally among the configured queueing classes present in the policy-map.
Within a policy map, the bandwidth remaining ratio and bandwidth remaining percent configurations are mutually exclusive. Configure only one remaining-bandwidth method in a policy map. In two-level queuing policies, the parent policy performs only traffic shaping, so mixing ratio and percent across parent and child policies is not a valid use case.
For subinterface bandwidth distribution, you can configure a parent policy map with bandwidth remaining percent to distribute remaining bandwidth across subinterfaces. You cannot modify the parent-class bandwidth remaining percent value in place when it is configured for a subinterface. To change the value, detach the service policy, update the configuration,
and then reapply the service policy. If you try to modify the value in place, the router displays this error: !!% Unsupported class-action: In Place modification of parent BRR not supported for sub-interfaces: InPlace Modify Error:
Task ID
|
Task ID |
Operations |
|---|---|
|
qos |
read, write |
Examples
This example shows how the remaining bandwidth is shared by classes class1 and class2 in a 20:80 ratio.
RP/0/RP0/CPU0:router(config)#policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)#class class1
RP/0/RP0/CPU0:router(config-pmap-c)#bandwidth remaining ratio 20
RP/0/RP0/CPU0:router(config-pmap-c)#exit
RP/0/RP0/CPU0:router(config-pmap)#class class2
RP/0/RP0/CPU0:router(config-pmap-c)#bandwidth remaining ratio 80
RP/0/RP0/CPU0:router(config-pmap-c)#exit
RP/0/RP0/CPU0:router(config-pmap)#exit
Examples
This example shows how to configure remaining bandwidth by percentage for class-based queuing:
router(config)#policy-map policymap_1_1_0
router(config-pmap)#class classmap_1_1_1_0
router(config-pmap-c)#bandwidth remaining percent 10
router(config-pmap-c)#exit
router(config-pmap)#class classmap_1_6_1_0
router(config-pmap-c)#bandwidth remaining percent 5
router(config-pmap-c)#exit
router(config-pmap)#class classmap_1_7_1_0
router(config-pmap-c)#priority level 1
router(config-pmap-c)#exit
router(config-pmap)#end-policy-map
Feedback