Reference Guide
Class-map (queuing): lunar
bandwidth percent 80
Service-policy rate-shaping
Rate-shaping buers trac exceeding the specied rate until the buer is exhausted. Trac transmit rates that exceed the congured
rate-shape value causes the system to buer the exceeding trac. This will use all of the buers assigned to that interface or queue
combination.
1 Enter the policy-map type as queuing and congure a policy-map name in CONFIGURATION mode.
policy-map type queuing policy-map-name
2 Enter a class name to apply to the shape rate in POLICY-MAP-QUEUEING mode—up to 32 characters.
class class-name
3 (Optional) If you need rate shaping on a specic queue, match the corresponding qos-group in the class-map. If you do not congure
the match qos-group command, rate shaping applies to all queues.
match qos-group queue-number
4 Enter a minimum and maximum shape rate value in POLICY-MAP-QUEUEING-CLASS mode.
shape {min {kbps | mbps | pps}min-value} {max {kbps | mbps | pps}max-value}
• 0 to 40000000—kilobits per second kilobits per second—kbps
• 0 to 40000 — megabits per second—mbps
• 1 to 268000000 — in packets per second (pps)
Policy-based shaping
OS10(config)# policy-map type queuing master
OS10(conf-pmap-queuing)# class first
OS10(conf-pmap-c-que)# shape min pps 10 max pps 40
View policy-map
OS10(conf-pmap-c-que)# do show policy-map
Service-policy(queuing) output: master
Class-map (queuing): first
shape min pps 10 max pps 40
Policy-based rate-policing
You can congure trac rate-limiting in packets per second (pps) for a QoS input policy, and a rate policing value in kilobits per second
(kbps) or pps. Committed rate guarantees bandwidth for trac entering or leaving the interface under normal network conditions.
When trac propagates at an average rate that is greater than or equal to the committed rate and less than peak-rate, it is green colored
or coded. The trac rate above the congured peak-rate is dropped to guarantee a bandwidth limit for an ingress trac ow.
For a system that does not have ingress buers, OS10 performs rate-limiting on the incoming trac stream. The trac rate above the
congured committed rate is tail dropped (which means if the queue is full the packets are dropped) to guarantee a xed bandwidth for an
ingress trac ow.
When the transmitted trac falls below the committed rate, the unused bandwidth aggregates to a maximum, this forms the committed
burst size. Trac is green-coded up to the point it does not exceed the committed burst size.
Peak rate is the maximum rate for trac arriving or exiting an interface under normal trac conditions. Peak burst size indicates the
maximum size of unused peak bandwidth that is aggregated. This aggregated bandwidth enables brief durations of burst trac that
exceeds the peak rate.
1 Create the policy-map type as qos and congure a name for the policy-map in CONFIGURATION mode.
policy-map type qos policy-map-name
Quality of service
559