# QoS Traffic Shaping Explained

**URL:** <https://forum.networklessons.com/t/qos-traffic-shaping-explained/994>\
**Category:** Lessons Discussion\
**Created:** [December 26, 2016, 5:46pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994 "2016-12-26T17:46:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [December 26, 2016, 5:46pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/1 "2016-12-26T17:46:56Z")

</div>

This topic is to discuss the following lesson:

> **[QoS Traffic Shaping Explained](https://networklessons.com/quality-of-service/qos-traffic-shaping-explained)**
>
> This lesson explains Traffic Shaping and what the TC (time interval), BC (burst conform), BE (burst exceed) means.

---

<div class="post-metadata">

**Author:** ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)\
**Post date:** [April 3, 2013, 2:31pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/2 "2013-04-03T14:31:01Z")

</div>

Excellent post, good explanation. Both terms, shaping and policing are complex to understand.

---

<div class="post-metadata">

**Author:** ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)\
**Post date:** [June 5, 2013, 12:34pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/3 "2013-06-05T12:34:21Z")

</div>

Hi Rene, Great explanation of shaping, its quite hard to find this sort of detail in an easy to understand format. One question regarding rate-limiting vs shaping. Although rate-limiting does not buffer/queue packets, is it capable of slowing the rate to the contracted bandwidth? For example, if I have a 1GB fibre to a provider switch but only have say 50mb contracted, can I use rate-limiting to prevent the router transmitting at a 1GB clock rate or is shaping the only method of achieving this?

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [June 6, 2013, 1:01pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/4 "2013-06-06T13:01:27Z")

</div>

Hi Brendan, glad to hear you like it. Do you refer to rate-limiting on a router or switch?

On routers you have the “rate-limit” command but it’s the “legacy QoS” method of configuring policing, it can be applied inbound or outbound.

On the Catalyst Switches (eg 3560) you can use the "srr-queue bandwidth limit " to limit outgoing traffic but I believe this is a shaper.

---

<div class="post-metadata">

**Author:** ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)\
**Post date:** [June 13, 2013, 12:28pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/5 "2013-06-13T12:28:10Z")

</div>

This is one awesome posts about QoS policing and shaping .U don’t find like this many out there.And I should thank U for this.  
BTW, I have few questions reg this,

1.In this example that you have demonstrated on what basis the Tc (Time Interval) value was chosen. i,e 62.5 in this case ? (62.5 + 62.5 =125).Is there any logic behind it?

Expecting the earliest reply..

Thanks in Advance,  
SVP

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [June 19, 2013, 3:52pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/6 "2013-06-19T15:52:01Z")

</div>

Hi Sai,

I’m glad to hear that you like it. Cisco routers have a default Tc of 125 ms so that there are 8 intervals, not sure why they decided to go with this value. You can change it if you like it to a lower value (10 ms on most Cisco routers) which is a good idea for VoIP traffic…

Rene

---

<div class="post-metadata">

**Author:** ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)\
**Post date:** [October 22, 2013, 12:30pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/7 "2013-10-22T12:30:33Z")

</div>

Hi Rene,

Excellent Article. As far as I know, no one has explained QoS this simply and nicely. Great Job!

My only question is, if the Tc is reduced to 10 ms as you mentioned, will the data packets be fragmented? I always thought fragmentation happens only when the MTU is lesser than the packet size. Could you please throw more light on that.

Thank you again for the great post.

Mohan

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [October 23, 2013, 8:26am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/8 "2013-10-23T08:26:56Z")

</div>

Hi Mohan,

Thank you! I’m glad to hear you enjoy it. When you configure your shaper like this, it won’t automatically do fragmentation for you. On fast links (like Ethernet) setting the Tc to a low value will be enough because they are able to send packets at a very fast rate. If your Tc is too high (like 125ms default) then it will cause delay because your packets have to wait too long until the Tc expires.

On slower links you might need fragmentation (and interleaving) but it’s still something you have to configure yourself. You can use Multilink PPP for this or Frame-relay FRF.12 fragmentation for this. I’ll see if i can create some tutorials for these in the future. Here’s an example of LFI that I wrote:

> **[PPP Multilink Link Fragmentation and Interleaving](https://networklessons.com/quality-of-service/ppp-multilink-lfi)**
>
> PPP Multilink can be used to bundle physical interfaces into a single logical link and enable fragmentation plus interleaving for voice traffic.

I’ll see if I can write something about FRF.12 in the future.

Rene

---

<div class="post-metadata">

**Author:** ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)\
**Post date:** [November 16, 2013, 9:05am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/9 "2013-11-16T09:05:51Z")

</div>

Hi !  
I have a question for you. suppose shaping occur. a packet with 1000 byte (8000 bit) come into router but router have only 2000 bit for Bc and 2000 bit for Be. what happen with router ? Please help to understand about it. Thank you

---

<div class="post-metadata">

**Author:** ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)\
**Post date:** [July 26, 2014, 3:59pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/10 "2014-07-26T15:59:19Z")

</div>

Hi Rene!

Thank you for your article it realy helps! But I have the same question as DuyLinh. Does router fragment IP packet if the packet’s size is more then Bc+Be value?

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [August 6, 2014, 11:00am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/11 "2014-08-06T11:00:21Z")

</div>

Hi Dmitriy,

No it won’t, if the packet is larger than whatever you have in your token bucket than it will be dropped.

Rene

---

<div class="post-metadata">

**Author:** ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)\
**Post date:** [September 9, 2014, 5:55am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/12 "2014-09-09T05:55:02Z")

</div>

May i know, at which cases Policer will be usefull ? At which situation we can use both Policer & shaping ?

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [September 10, 2014, 9:00am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/13 "2014-09-10T09:00:31Z")

</div>

Good question. A shaper will “buffer” your exceeding traffic while the policer will “drop” all exceeding traffic.

Anything that is time-sensitive like VoIP or realtime video should not be shaped because it adds delay. You could shape FTP traffic for example since it’s not delay-sensitive and could consume most of your bandwidth.

An ISP might use policing to enforce your contract, anything that exceeds what you pay for will be dropped by them.

Rene

---

<div class="post-metadata">

**Author:** ![kamilrasulov](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/k/b3f665/32.png) [@kamilrasulov](https://forum.networklessons.com/u/kamilrasulov)\
**Post date:** [February 11, 2015, 10:10am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/14 "2015-02-11T10:10:26Z")

</div>

Hi Rene.Thanks for your Perfect article. Lets say traffic is passing from R1 to R2 and I configured shaping (avarage shaping 1mbps).

```
show policy-map interface 
 GigabitEthernet1.45 

  Service-policy output: TEST

    Class-map: class-default (match-any)  
      13774 packets, 1089848 bytes
      30 second offered rate 0000 bps, drop rate 0000 bps
      Match: any 
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 358/43444
      shape (average) cir 1000000, bc 4000, be 4000
      target shape rate 1000000

```

This is a CSR1000V and default Tc value is 4 ms

it means we have 250 section. From each section during the 4 ms , 4000 token(bit) can pass. On condition that more bits pass through the R1 druring the 4 ms , (not 4000 bit lets say 6000 bit) they wil drop. Can you explain me please, when the fragmentation will occur in this case?

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [February 11, 2015, 10:54pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/15 "2015-02-11T22:54:58Z")

</div>

Hi Kamil,

Glad to hear you like it! Fragmentation is typically only done when the IP Packet doesn’t fit in the MTU of the data link layer, it doesn’t have anything to do with shaping. When you shape and it doesn’t fit…the packet will be dropped, no fragmentation will occur.

Rene

---

<div class="post-metadata">

**Author:** ![taslim1232002](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/t/7feea3/32.png) [@taslim1232002](https://forum.networklessons.com/u/taslim1232002)\
**Post date:** [March 27, 2015, 6:44am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/16 "2015-03-27T06:44:47Z")

</div>

Hi Rene,

Your explanation is really easy to understand. Do you have configuration example for policing and shaping happening at the same time ?

Thank you

BR  
Taslim

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [March 27, 2015, 12:28pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/17 "2015-03-27T12:28:13Z")

</div>

Hi Taslim,

Anything in particular you are looking for? You could use policing for one traffic class and shaping for another. With policy-maps you can get pretty creative 🙂

Rene

---

<div class="post-metadata">

**Author:** ![taslimmajid](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/t/a9a28c/32.png) [@taslimmajid](https://forum.networklessons.com/u/taslimmajid)\
**Post date:** [September 7, 2015, 5:31am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/18 "2015-09-07T05:31:20Z")

</div>

Hi Rene,

Would you be able to provide some topics to configure the shaping in Cisco router

Thank you

BR  
Taslim

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [September 7, 2015, 11:58am UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/19 "2015-09-07T11:58:02Z")

</div>

Hi Taslim,

I will, just added it to my list.

Rene

---

<div class="post-metadata">

**Author:** ![aldinosmanagic](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/e9a140/32.png) [@aldinosmanagic](https://forum.networklessons.com/u/aldinosmanagic)\
**Post date:** [December 16, 2015, 2:56pm UTC](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994/20 "2015-12-16T14:56:55Z")

</div>

You are the greatest perfectionist I have ever seen 🙂 This site is a jewel, thx.!

[Next page](https://forum.networklessons.com/t/qos-traffic-shaping-explained/994.md?page=2)
