Use Shaping when traffic must be sent at a lower rate than the physical link, typically a sub-rate WAN contract, with a child queuing policy inside.
Shaping
Shaping buffers traffic that exceeds a configured rate and sends it later, smoothing bursts to match a slower provider rate (for example a 100 Mbps circuit on a 1 Gbps port).
1. Shaping buffers traffic to a rate, smoothing bursts.
2. Used toward providers with lower CIR than port speed.
3. Combine with child queuing policy.
4. Adds delay instead of drops.
5. Match provider rate.
traffic → shaper → buffered at rate → provider
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Layered verification and original-test closure Verify boundary
Shaping — Run a controlled throughput test while recording shaper offered/transmit/drop counters and interface utilization, then confirm the measured rate matches the intended policy without unexpected loss.
Step 2 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| Provider still drops | show policy-map interface Gi0/0/0 output | Shaped rate and parent drops | Contract vs shaped rate, including Layer 2 overhead |
| High latency | same | Shaping queue depth | Rate too low, or the child policy does not prioritise delay-sensitive traffic |
| No shaping effect | same | Shaper counters | Policy attached outbound on the right interface |
Step 3 Observation → implication → next check Narrow the fault
Step 4 Common mistakes Narrow the fault
- Shaping without matching the provider's committed rate.
- Shaper with child policy missing for voice.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Shaping buffers excess traffic to send it at a set rate.
- It smooths bursts but adds delay.
- Commonly used outbound to match a provider's contracted rate.
show policy-map interface <interface>— shape rate, queue- shape average <bps> under class-default with child policy — config
ReferenceWhat it is1 section · depth on demand
What it is
A shaper delays traffic that exceeds a target rate by buffering it and releasing it at the configured average (shape average <bps>). Bursts are smoothed instead of dropped; the cost is added delay, and drops when the shaping queue overflows. Shaping is applied outbound only.
The classic use is a sub-rate circuit: a 1 Gbps handoff with a 100 Mbps contract. Shape to the contract so the provider's policer does not drop traffic, and nest a child queuing policy under the shaper so voice is still prioritised within the shaped rate.
ReferenceWhy it matters1 section · depth on demand
When to use it
Shape when a downstream device or provider polices to a rate lower than the physical link, or when traffic must be paced (for example toward a slower remote site). Use policing instead when excess must be dropped or re-marked immediately.
ReferenceHow it works1 section · depth on demand
Operational mechanics and ownership
Shaping — Traffic shaping delays packets to enforce an average rate, typically using a token bucket plus a queue. Unlike policing, conforming/excess traffic may be buffered rather than immediately dropped. The shaper owns transmit timing and backlog; parent interface speed and child queue policies determine downstream behavior. A configured shaping rate is not evidence the scheduler is actually the bottleneck.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Shaping buffers traffic to a rate instead of dropping it
A shaper queues traffic that exceeds the configured rate and sends it later, so the output never exceeds the rate. The Catalyst 9300 QoS guide supports shape average in output policies, as a rate or a percentage. Shaping is output-only and doesn't re-mark.
C9300(config)# policy-map PM-CHILD
C9300(config-pmap)# class CM-VOICE
C9300(config-pmap-c)# priority level 1
C9300(config-pmap-c)# police rate percent 20
C9300(config-pmap)# class class-default
C9300(config-pmap-c)# bandwidth remaining percent 100
C9300(config)# policy-map PM-WAN-OUT
C9300(config-pmap)# class class-default
C9300(config-pmap-c)# shape average 200000000
C9300(config-pmap-c)# service-policy PM-CHILD
C9300(config)# interface GigabitEthernet1/0/48
C9300(config-if)# service-policy output PM-WAN-OUT
C9300# show policy-map interface GigabitEthernet1/0/48 output
The typical case: a slower service behind a fast port
| Situation | Without shaping | With shaping |
|---|---|---|
| 1 Gb/s port, 200 Mb/s provider service | The provider drops excess without regard to your classes | The switch keeps traffic at 200 Mb/s and queues by your classes |
The parent policy shapes to the service rate, and the child policy queues inside that rate (hierarchical QoS). That way, priority and bandwidth shares work against the real bottleneck.
Shaping versus policing
| Shaping | Policing | |
|---|---|---|
| Excess | Delayed (buffered) | Dropped or re-marked |
| Direction | Output | Input and output |
| Added latency | Yes, while the buffer is in use | No |
| Re-marking | No | Yes |
Choosing the rate
Shape slightly below the contracted rate, for example 95 %, so the provider's policer never acts. Check whether the provider's rate counts Layer 2 overhead. If it does and your shaper doesn't, you'll still exceed the contract.
Verification
show policy-map interface … output shows the shaper and the child classes. Rising queue depth or drops in the child classes show the shaper is active and the link is full.
Documented example, not captured output.
Quick reference
Shaping delays packets that exceed a configured rate by holding them in a buffer and releasing them at the shaped rate. It smooths bursts to match a slower downstream link or provider contract.
policy-map SHAPE-50M
class class-default
shape average 50000000
service-policy WAN-QUEUING
interface Gi0/0
service-policy output SHAPE-50M
Documented example, not captured output.
Shaping adds latency when the buffer fills, so pair it with a child queuing policy that prioritises voice.
ReferenceConfiguration & state1 section · depth on demand
Configuration example (Cisco IOS XE)
policy-map SHAPE-100M
class class-default
shape average 100000000
service-policy WAN-QUEUING
!
interface GigabitEthernet0/0/0
service-policy output SHAPE-100M
WAN-QUEUING is the child LLQ/CBWFQ policy. Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → QoS → Shaping. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%