Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Shaping

Direct answer

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).

When to use this

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.

First 30 seconds

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.

Operational verification

traffic → shaper → buffered at rate → provider

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse Shaping when traffic must be sent at a lower rate than the physical link, typically a sub-rate WAN contract, with a…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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
SymptomCommandLook forNext check
Provider still dropsshow policy-map interface Gi0/0/0 outputShaped rate and parent dropsContract vs shaped rate, including Layer 2 overhead
High latencysameShaping queue depthRate too low, or the child policy does not prioritise delay-sensitive traffic
No shaping effectsameShaper countersPolicy attached outbound on the right interface
Step 3 Observation → implication → next check Narrow the fault

Shaping — If throughput is capped near the shaping rate, compare offered load, shaper backlog and transmitted rate. If drops occur inside the shaper, inspect burst/queue limits; if no backlog exists, look downstream or at the sender.

Step 4 Common mistakes Narrow the fault
  • Shaping without matching the provider's committed rate.
  • Shaper with child policy missing for voice.
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • 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

SituationWithout shapingWith shaping
1 Gb/s port, 200 Mb/s provider serviceThe provider drops excess without regard to your classesThe 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

ShapingPolicing
ExcessDelayed (buffered)Dropped or re-marked
DirectionOutputInput and output
Added latencyYes, while the buffer is in useNo
Re-markingNoYes

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2475

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%
Confirmation

Confirm action

Continue?