<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic QOS question Shape peak and Shape average in Routing and SD-WAN</title>
    <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855642#M182754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;shape peak&lt;/STRONG&gt; replenishes both Bc and Be tokens every Tc seconds, and allows for sending at higher sustained rate that depends both on the size of Bc and Be. If only the Bc tokens were replenished, the sustained rate would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CIR = Bc/Tc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With both Bc and Be tokens being replenished in &lt;STRONG&gt;shape peak&lt;/STRONG&gt;, the sustained rate is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CIR' = (Bc+Be)/Tc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressing Tc from the first equation yields Tc=Bc/CIR, and using it in the second equation yields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CIR' = (Bc+Be) / (Bc / CIR)=(Bc+Be) * CIR / Bc = CIR * (1 + Be/Bc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the speed as indicated in the Command Reference for the &lt;STRONG&gt;shape peak&lt;/STRONG&gt; command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/docs/ios/qos/command/reference/qos_s1.html#wp1074988"&gt;http://www.cisco.com/en/US/docs/ios/qos/command/reference/qos_s1.html#wp1074988&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;shape average&lt;/STRONG&gt; replenishes only the Bc tokens every Tc seconds, and hence the sustained rate is simply CIR=Bc/Tc. After periods of longer inactivity, the burst may grow up to Bc+Be bytes but it is not sustainable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To compare:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The sustained rate in &lt;STRONG&gt;shape average&lt;/STRONG&gt; is equal to CIR=Bc/Tc (the CIR is a part of the configuration command)&lt;/LI&gt;&lt;LI&gt;The sustained rate in &lt;STRONG&gt;shape peak&lt;/STRONG&gt; is equal to CIR'=CIR * (1 + Be/Bc) (the CIR is a part of the configuration command)&lt;/LI&gt;&lt;LI&gt;Both models allow for bursting up to Bc+Be&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In default configuration, Be=Bc, therefore with &lt;STRONG&gt;shape peak&lt;/STRONG&gt;, the CIR'=CIR*(1+Bc/Bc)=CIR*(1+1)=2*CIR, i.e. the &lt;STRONG&gt;shape peak&lt;/STRONG&gt; would result into shaping on a doubled sustained rate than the &lt;STRONG&gt;shape average&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2011 06:39:04 GMT</pubDate>
    <dc:creator>Peter Paluch</dc:creator>
    <dc:date>2011-12-12T06:39:04Z</dc:date>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855641#M182753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please explain what is the difference between shape average and shape peak in QOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my understanding shape average is CIR and shape peak is max BW of link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so is it possible if link bandwith is 64K then we can allocate shape average 256k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 22:35:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855641#M182753</guid>
      <dc:creator>svaishya20</dc:creator>
      <dc:date>2019-03-04T22:35:56Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855642#M182754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;shape peak&lt;/STRONG&gt; replenishes both Bc and Be tokens every Tc seconds, and allows for sending at higher sustained rate that depends both on the size of Bc and Be. If only the Bc tokens were replenished, the sustained rate would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CIR = Bc/Tc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With both Bc and Be tokens being replenished in &lt;STRONG&gt;shape peak&lt;/STRONG&gt;, the sustained rate is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CIR' = (Bc+Be)/Tc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressing Tc from the first equation yields Tc=Bc/CIR, and using it in the second equation yields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CIR' = (Bc+Be) / (Bc / CIR)=(Bc+Be) * CIR / Bc = CIR * (1 + Be/Bc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the speed as indicated in the Command Reference for the &lt;STRONG&gt;shape peak&lt;/STRONG&gt; command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/docs/ios/qos/command/reference/qos_s1.html#wp1074988"&gt;http://www.cisco.com/en/US/docs/ios/qos/command/reference/qos_s1.html#wp1074988&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;shape average&lt;/STRONG&gt; replenishes only the Bc tokens every Tc seconds, and hence the sustained rate is simply CIR=Bc/Tc. After periods of longer inactivity, the burst may grow up to Bc+Be bytes but it is not sustainable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To compare:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The sustained rate in &lt;STRONG&gt;shape average&lt;/STRONG&gt; is equal to CIR=Bc/Tc (the CIR is a part of the configuration command)&lt;/LI&gt;&lt;LI&gt;The sustained rate in &lt;STRONG&gt;shape peak&lt;/STRONG&gt; is equal to CIR'=CIR * (1 + Be/Bc) (the CIR is a part of the configuration command)&lt;/LI&gt;&lt;LI&gt;Both models allow for bursting up to Bc+Be&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In default configuration, Be=Bc, therefore with &lt;STRONG&gt;shape peak&lt;/STRONG&gt;, the CIR'=CIR*(1+Bc/Bc)=CIR*(1+1)=2*CIR, i.e. the &lt;STRONG&gt;shape peak&lt;/STRONG&gt; would result into shaping on a doubled sustained rate than the &lt;STRONG&gt;shape average&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 06:39:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855642#M182754</guid>
      <dc:creator>Peter Paluch</dc:creator>
      <dc:date>2011-12-12T06:39:04Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855643#M182755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;i saw the link so peak rate is having higer capabilty to send data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if i have link of 64k then can i configure 256k of shape average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from cisoc link-&lt;/P&gt;&lt;P&gt; Average rate shaping limits the transmission rate&amp;nbsp; to the CIR. Using the CIR ensures that the average amount of traffic&amp;nbsp; being sent conforms to the rate expected by the network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the link is having bw of 64K then how can it provide bw of 256k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i have a link of 256 K then how can i calculate bc and be value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 10:30:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855643#M182755</guid>
      <dc:creator>svaishya20</dc:creator>
      <dc:date>2011-12-12T10:30:36Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855644#M182756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;peak rate is having higer capabilty to send data.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, &lt;STRONG&gt;shape peak&lt;/STRONG&gt; allows you to continuously send data &lt;SPAN style="text-decoration: underline;"&gt;in excess&lt;/SPAN&gt; of configured CIR by utilizing both Bc and Be burst sizes when scheduling the transmission. Whether that is acceptable by your provider is another issue - he may police you on the level of the CIR and the excess traffic you send will be dropped. You always have to think about the fact that not only you are pacing your packets, also your provider is, and if you exceed the contract with your provider, the packets may get remarked or dropped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;So if i have link of 64k then can i configure 256k of shape average.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the link is 64k then you'll never get more than 64k out of it. Configuring the shaping to 256k would exceed that link's capacity by four times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of the &lt;STRONG&gt;shape average&lt;/STRONG&gt; or &lt;STRONG&gt;shape peak&lt;/STRONG&gt;, the link must provide an equal or higher transmission capacity than the resulting rate of these commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;If the link is having bw of 64K then how can it provide bw of 256k.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can not &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.cisco.com/4.5.4/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; It is just the changed algorithm of &lt;STRONG&gt;shape peak&lt;/STRONG&gt; that allows to send data at a rate higher than the configured CIR but whether the link can carry that much data is up to you to verify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;and if i have a link of 256 K then how can i calculate bc and be value&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These values are usually determined by a contract with your provider and are configured, not computed. In fact, you configure the CIR and you may configure the Bc and Be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 10:45:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855644#M182756</guid>
      <dc:creator>Peter Paluch</dc:creator>
      <dc:date>2011-12-12T10:45:05Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855645#M182757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter for explaining so nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to configure qos on link of 256K link. and its carrying multicast data snd PDf file also.&lt;/P&gt;&lt;P&gt;So I have to configure in the way when PDf file are also flowing it wont consume whole BW because its like brusty traffic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am thinking to configure it throught CBFQ and want to assign more bandwidth to multicast traffic.&lt;/P&gt;&lt;P&gt;and&amp;nbsp; shape average of 128k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i&amp;nbsp; also need to&amp;nbsp; use DSCP value like AF1... value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 12:36:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855645#M182757</guid>
      <dc:creator>svaishya20</dc:creator>
      <dc:date>2011-12-12T12:36:52Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855646#M182758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a device that support CBWFQ, instead of shaping you might find "guaranteeing" a certain amount of bandwidth to certain classes of traffic a better solution.&amp;nbsp; This because shaping limits bandwidth utilization even if excess bandwidth is available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 19:53:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855646#M182758</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-12T19:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855647#M182759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The&amp;nbsp; Author of this posting offers the information contained within this&amp;nbsp; posting without consideration and with the reader's understanding that&amp;nbsp; there's no implied or expressed suitability or fitness for any purpose.&amp;nbsp; Information provided is for informational purposes only and should not&amp;nbsp; be construed as rendering professional advice of any kind. Usage of this&amp;nbsp; posting's information is solely at reader's own risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp; no event shall Author be liable for any damages whatsoever (including,&amp;nbsp; without limitation, damages for loss of use, data or profit) arising out&amp;nbsp; of the use or inability to use the posting's information even if Authorhas been advised of the possibility of such damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought Cisco peak shaper and policers only replenished at the CIR rate, i.e. either could allow a burst, if excess credits were available, but peak rate would not be sustained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;When the excess burst (Be) is configured to a value different than 0, the shaper allows tokens to be stored in the bucket, up to Bc + Be. The largest value that the token bucket can ever reach is Bc + Be, and overflow tokens are dropped. The only way to have more than Bc tokens in the bucket is to not use all Bc tokens during one or more Tc. Since the token bucket is replenished every Tc with Bc tokens, you can accumulate unused tokens for later use up to Bc + Be.&lt;/EM&gt;&lt;SPAN&gt;" (from: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/tech/tk543/tk545/technologies_tech_note09186a00800a3a25.shtml"&gt;http://www.cisco.com/en/US/tech/tk543/tk545/technologies_tech_note09186a00800a3a25.shtml&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 20:51:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855647#M182759</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-12T20:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855648#M182760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad you joined this discussion. I believe this thread is more cut out for you than for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;I thought Cisco peak shaper and policers only replenished at the CIR&amp;nbsp; rate, i.e. either could allow a burst, if excess credits were available,&amp;nbsp; but peak rate would not be sustained.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regard to shapers in particular, I am quite certain that things work as I've described earlier. The document at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/docs/ios/12_2/qos/configuration/guide/qcfpolsh.html#wp1004234"&gt;http://www.cisco.com/en/US/docs/ios/12_2/qos/configuration/guide/qcfpolsh.html#wp1004234&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;states:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Be size allows more than the Bc size to be&amp;nbsp; sent during a time interval under certain conditions. Therefore, DTS&amp;nbsp; provides two types of shape commands: &lt;STRONG&gt;average &lt;/STRONG&gt;and &lt;STRONG&gt;peak&lt;/STRONG&gt;. When &lt;STRONG&gt;shape average &lt;/STRONG&gt;is configured, the interface sends no more than the Bc size for each&amp;nbsp; interval, achieving an average rate no higher than the CIR. When the &lt;STRONG style="font-weight: bold;"&gt;shape peak&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;command is configured, the interface sends Bc plus Be bits in each interval.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly, the newer QoS Configuration Guides seem to silently omit this description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This behavior is also described in Odom's and Cavanaugh's book Cisco QoS Exam Certification Guide, page 379:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;When you use the &lt;STRONG&gt;peak&lt;/STRONG&gt; option, CB Shaping changes how it decides if a packet conforms to or exceeds the traffic contract. As a reminder, using the Shaping logic covered so far in this chapter, Bc bits are sent each Tc. If there’s been a period of low or no activity, and the Shaper has been configured with a Be value, then for a short time, more than Bc can be sent—specifically, Be more. With &lt;STRONG&gt;shape peak&lt;/STRONG&gt;, the shaper allows Bc and Be bits to be sent in each interval, even if there has not been a period of little or no activity. In effect, &lt;STRONG&gt;shape peak&lt;/STRONG&gt; means that the shaper actually shapes assuming you can send the configured burst during every time period.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 22:33:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855648#M182760</guid>
      <dc:creator>Peter Paluch</dc:creator>
      <dc:date>2011-12-12T22:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855649#M182761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The&amp;nbsp;&amp;nbsp; Author of this posting offers the information contained within this&amp;nbsp;&amp;nbsp; posting without consideration and with the reader's understanding that&amp;nbsp;&amp;nbsp; there's no implied or expressed suitability or fitness for any purpose.&amp;nbsp;&amp;nbsp; Information provided is for informational purposes only and should not&amp;nbsp;&amp;nbsp; be construed as rendering professional advice of any kind. Usage of&amp;nbsp; this&amp;nbsp; posting's information is solely at reader's own risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp;&amp;nbsp; no event shall Author be liable for any damages whatsoever (including,&amp;nbsp;&amp;nbsp; without limitation, damages for loss of use, data or profit) arising&amp;nbsp; out&amp;nbsp; of the use or inability to use the posting's information even if&amp;nbsp; Author has been advised of the possibility of such damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Peter what you've posted doesn't make clear credit/token replenishment (unless I've missed it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree peak can send more than CIR during a Tc, the combination of Bc and Be, but if Be has no credits/tokens, effectively your long term rate become just average CIR rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, peak makes sense if only Bc is replenished each Tc.&amp;nbsp; Then Be allows you to gain credit for unused bandwidth yet your long term usage won't really be much more than an average CIR.&amp;nbsp; (This can be really important on policiers, less so on shapers.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That stated, I do have some hazy recollection of doing some test years ago where I recall 2x average delivered the same overall bandwidth as 1x peak, as you believe it does.&amp;nbsp; Yet, this is one of those features which sometimes seems to be especially sensitive to IOS version and/or platform. For example, your reference link is to DTS, and the old 7500's VIP QoS had many features unavailable on most other router platforms (although HQF QoS greatly minimized the feature differences).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have the time and equipment, you might want to try both average and peak shaping and policing, and see if there's any substantial difference if you send at CIR plus a little more, maybe say 10%.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 01:36:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855649#M182761</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-13T01:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855650#M182762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;Peter what you've posted doesn't make clear credit/token replenishment (unless I've missed it).&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmmm, I see your point. You are not asking about the possibility of sending Bc+Be bits/bytes every Tc seconds, you are asking about replenishing the Bc/Be tokens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to test this in a lab. In the meantime, would you care to explain your personal take on the difference between &lt;STRONG&gt;shape average&lt;/STRONG&gt; and &lt;STRONG&gt;shape peak&lt;/STRONG&gt;, considering the fact that I can set a non-zero Bc+Be for both modes? I.e., how do you see the following two commands differ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;shape average 256000 8000 8000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;shape peak 256000 8000 8000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 11:10:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855650#M182762</guid>
      <dc:creator>Peter Paluch</dc:creator>
      <dc:date>2011-12-13T11:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855651#M182763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The&amp;nbsp;&amp;nbsp;&amp;nbsp; Author of this posting offers the information contained within this&amp;nbsp;&amp;nbsp;&amp;nbsp; posting without consideration and with the reader's understanding that&amp;nbsp;&amp;nbsp;&amp;nbsp; there's no implied or expressed suitability or fitness for any&amp;nbsp; purpose.&amp;nbsp;&amp;nbsp; Information provided is for informational purposes only and&amp;nbsp; should not&amp;nbsp;&amp;nbsp; be construed as rendering professional advice of any kind.&amp;nbsp; Usage of&amp;nbsp; this&amp;nbsp; posting's information is solely at reader's own risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp;&amp;nbsp;&amp;nbsp; no event shall Author be liable for any damages whatsoever&amp;nbsp; (including,&amp;nbsp;&amp;nbsp; without limitation, damages for loss of use, data or&amp;nbsp; profit) arising&amp;nbsp; out&amp;nbsp; of the use or inability to use the posting's&amp;nbsp; information even if&amp;nbsp; Author has been advised of the possibility of such&amp;nbsp; damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape average should restrict transmitted data to the defined bandwidth per Tc.&amp;nbsp; With a shaper, excess will be queued and the excess will be dequeued if the offered rate is less than the CIR.&amp;nbsp; The combination of less than CIR offered rate plus dequeued data will still not exceed CIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape peak should allow up to Bc+Be per Tc.&amp;nbsp; Be, can store unused Bc credit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, assume we start with a "clean slate" and offer 300 Mbps 1st Tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape average will xmit 250 Mbps and queue 50 Mbps (NB: actually shaping is impacted by packet sizes, but let's ignore that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape peak will xmit 300 Mbps and decrement 50 Mbps from Be (leaving 200 Mbps credit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Tc, 350 Mbps is offered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape average will xmit 250 Mbps, 1st the queued 50 Mbps, then the 200 Mbps of the offered and queue 150 Mbps of the offered (150 Mbps in queue [50-50+150])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape peak will xmit 350 Mbps and decrement 100 Mbps from Be (leaving 100 Mbps credit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd Tc, 500 Mbps is offered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape average will xmit 250 Mbps, 1st the queued 150 Mbps, then 100 Mbps of the offered and queue 400 Mbps of the offered. (400 Mbps in queue [150-150+400])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape peak will xmit 350 Mbps, decrement 100 Mbps from Be (leaving 0 Mbps credit) and queue 150 Mbps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4th Tc, 200 Mbps is offered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape average will xmit 250 Mbps, 250 Mbps from queue, queue 200 Mbps of the offered, leaving 350 Mbps queued. ([400-250+200])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape peak will xmit 250 Mbps, 150 Mbps from queue, 100 Mbps from offered, and add 100 Mbps to queue (leaving 100 Mbps in queue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5th Tc, 0 Mbps is offered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape average will xmit 250 Mbps, 250 Mbps from queue, leaving 100 Mbps queued. (350-250+0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape peak will xmit 100 Mbps, 100 Mbps from queue and increment Be by 150 Mbps (leaving 150 Mbps credit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PS:&lt;/P&gt;&lt;P&gt;Hope I got my math right &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.cisco.com/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 17:58:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855651#M182763</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-13T17:58:40Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855652#M182764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for expalining it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did&amp;nbsp; not understand from here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shape peak will xmit 300 Mbps and decrement 50 Mbps from Be (leaving 200 Mbps credit).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and second thing I want to ask you guys - If you see from configuration below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map match-all Netman&lt;/P&gt;&lt;P&gt;&amp;nbsp; match access-group name QoS-Netman&lt;/P&gt;&lt;P&gt;class-map match-all Trading&lt;/P&gt;&lt;P&gt;&amp;nbsp; match access-group name QoS-Trading&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;policy-map VPN-CHILD-POLICY&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Trading&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Netman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af42&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 16&lt;/P&gt;&lt;P&gt;&amp;nbsp; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; random-detect dscp-based&lt;/P&gt;&lt;P&gt;policy-map VPN-POLICY&lt;/P&gt;&lt;P&gt;&amp;nbsp; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; shape average &lt;STRONG&gt;256000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; service-policy VPN-CHILD-POLICY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface Serial0/0&lt;/P&gt;&lt;P&gt; description -&amp;nbsp; 64Kb MPLS,&lt;/P&gt;&lt;P&gt; bandwidth 64&lt;/P&gt;&lt;P&gt; ip address XXXX....&lt;/P&gt;&lt;P&gt; ip nat inside&lt;/P&gt;&lt;P&gt; encapsulation frame-relay IETF&lt;/P&gt;&lt;P&gt; frame-relay interface-dlci 130&lt;/P&gt;&lt;P&gt; service-policy output VPN-POLICY&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two things i can not understand &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.why ip dscp value is used can not we priortise traffic on bandwith. whats the advantage of using ip dscp.&lt;/P&gt;&lt;P&gt; and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if the link BW is 64 k then how we can shape average to 256 k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 04:40:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855652#M182764</guid>
      <dc:creator>svaishya20</dc:creator>
      <dc:date>2011-12-14T04:40:06Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855653#M182765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've performed the experiments in our network lab using 1841 routers running 15.1(4)M2 Advanced IP Services, interconnected via Fa0/1 interfaces. The topology:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generator ---&amp;gt; (Fa0/0) 1841 (Fa0/1) ---&amp;gt; (Fa0/1) 1841 (Fa0/0) ---&amp;gt; Receiver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The shaping was configured on the leftmost 1841 as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map fa0/1-out&lt;/P&gt;&lt;P&gt; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp; no fair-queue&lt;/P&gt;&lt;P&gt;&amp;nbsp; shape average 100000 8000 8000&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;interface FastEthernet0/1&lt;/P&gt;&lt;P&gt; service-policy output fa0/1-out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The generator created a flow of IP/UDP packets of total size of 1000 bytes, 150 packets per second, totalling a rate of 1.2 Mbps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used Wireshark to capture the flow and graph it out. Following is the screenshot of the graph flow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://supportforums.cisco.com/sites/default/files/legacy/8/8/8/68888-Shaping1.png" class="jive-image" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Up to the roughly 180th second, the configuration of the shaping was as indicated, i.e. &lt;STRONG&gt;shape average 100k 8000 8000&lt;/STRONG&gt;. The graph shows the throughput to oscillate around the configured CIR of 100 Kbps. At around the 180th second, I have modified the command to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;shape peak 100000 8000 8000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it can be seen, the total throughput jumped twofold and now oscillates around the value of 200 Kbps which appears to align with my original explanation and derivation of CIR' = configured CIR * (1+Be/Bc) = configured CIR * 2, as in my case, the Be=Bc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, around the 230th second, I modified the configuration again to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;shape peak 100000 8000 4000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rate dropped to 150 Kbps which also aligns to the CIR' = configured CIR * (1+4000/8000) = configured CIR * 1.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This experiment used the generator to create a substantially higher load than the configured CIR. Another experiment was performed under the same sequence of settings on the router, however, the stream consisted of 100 byte packets, 300 packets per second, totalling the rate of 240 Kbps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, the results were absolutely identical, see the following graph:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://supportforums.cisco.com/sites/default/files/legacy/9/8/8/68889-Shaping2.png" class="jive-image" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till the 95th second, the &lt;STRONG&gt;shape average 100k 8000 8000&lt;/STRONG&gt; command was used. Between the 95th and 130th second, the &lt;STRONG&gt;shape peak 100k 8000 8000&lt;/STRONG&gt; was used. After the 130th second, the &lt;STRONG&gt;shape peak 100k 8000 4000&lt;/STRONG&gt; was used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these experiments do not align with what you requested, Joseph, please feel welcome to give me your description of the experiment so that I can replicate it in our lab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My personal feeling is that the &lt;STRONG&gt;shape peak&lt;/STRONG&gt; is good for those customers who have negotiated both the CIR and EIR with their service provider (Bc, Be and Tc), and want to always shape up to CIR+EIR, i.e. they want to always go to the PIR, accepting the risk that the packets over the CIR may get dropped or marked for future dropping. Naturally, they specify the CIR in their &lt;STRONG&gt;shape peak&lt;/STRONG&gt; command but the shaping in this case is backed up by the idea that they can always send Bc+Be bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would love to hear your opinion on all of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 07:44:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855653#M182765</guid>
      <dc:creator>Peter Paluch</dc:creator>
      <dc:date>2011-12-14T07:44:55Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855654#M182766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Author of this posting offers the information contained within this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; posting without consideration and with the reader's understanding&amp;nbsp; that&amp;nbsp;&amp;nbsp;&amp;nbsp; there's no implied or expressed suitability or fitness for any&amp;nbsp;&amp;nbsp; purpose.&amp;nbsp;&amp;nbsp; Information provided is for informational purposes only and&amp;nbsp;&amp;nbsp; should not&amp;nbsp;&amp;nbsp; be construed as rendering professional advice of any kind.&amp;nbsp;&amp;nbsp; Usage of&amp;nbsp; this&amp;nbsp; posting's information is solely at reader's own risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no event shall Author be liable for any damages whatsoever&amp;nbsp;&amp;nbsp; (including,&amp;nbsp;&amp;nbsp; without limitation, damages for loss of use, data or&amp;nbsp;&amp;nbsp; profit) arising&amp;nbsp; out&amp;nbsp; of the use or inability to use the posting's&amp;nbsp;&amp;nbsp; information even if&amp;nbsp; Author has been advised of the possibility of such&amp;nbsp;&amp;nbsp; damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;If these experiments do not align with what you requested, Joseph,&amp;nbsp; please feel welcome to give me your description of the experiment so&amp;nbsp; that I can replicate it in our lab.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter, your experiments do align with what I requested, and thank you very, very much for taking the time and effort to conduct them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;I would love to hear your opinion on all of this.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, your experiment not only confirms your explanation of what you expected but also confirms an experiment I had a hazy recollection of trying myself years ago, as I've already noted.&amp;nbsp; Yet, if you re-read my original post's Cisco text, these results are, I believe, contrary to what one would expect if only Bc tokens are replenished per Tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I'm not sure I see the benefit of such an implementation because as you've already noted, you can achieve the same results by using average 2x vs. peak 1x (or other settings of average, i.e. your &lt;STRONG&gt;shape peak 100000 8000 4000&lt;/STRONG&gt; test could be 1.5x average, i.e. shape average 150000 8000 8000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If peak actually worked as I believe it should (also more like ATM's PCR/SCR), it would maintain a long term (average) CIR yet support transient bursts better.&amp;nbsp; Consider my prior posting (assuming average and peak functioned as described) where the transient bursts would have less latency (if shaped) or less drops (if policed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reiterate, if shape average 200000 8000 # equals shape peak 100000 8000 8000 or shape average 150000 8000 # equals shape peak 100000 8000 4000, I'm not seeing a real advantage of having both &lt;EM&gt;average&lt;/EM&gt; and &lt;EM&gt;peak&lt;/EM&gt;; do you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, Peter, thank you so much for your effort in investigating this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 10:57:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855654#M182766</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-14T10:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855655#M182767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Author of this posting offers the information contained within this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; posting without consideration and with the reader's understanding&amp;nbsp;&amp;nbsp; that&amp;nbsp;&amp;nbsp;&amp;nbsp; there's no implied or expressed suitability or fitness for any&amp;nbsp;&amp;nbsp;&amp;nbsp; purpose.&amp;nbsp;&amp;nbsp; Information provided is for informational purposes only&amp;nbsp; and&amp;nbsp;&amp;nbsp; should not&amp;nbsp;&amp;nbsp; be construed as rendering professional advice of any&amp;nbsp; kind.&amp;nbsp;&amp;nbsp; Usage of&amp;nbsp; this&amp;nbsp; posting's information is solely at reader's own&amp;nbsp; risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no event shall Author be liable for any damages whatsoever&amp;nbsp;&amp;nbsp;&amp;nbsp; (including,&amp;nbsp;&amp;nbsp; without limitation, damages for loss of use, data or&amp;nbsp;&amp;nbsp;&amp;nbsp; profit) arising&amp;nbsp; out&amp;nbsp; of the use or inability to use the posting's&amp;nbsp;&amp;nbsp;&amp;nbsp; information even if&amp;nbsp; Author has been advised of the possibility of&amp;nbsp; such&amp;nbsp;&amp;nbsp; damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt; &lt;P&gt;I did&amp;nbsp; not understand from here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shape peak will xmit 300 Mbps and decrement 50 Mbps from Be (leaving 200 Mbps credit).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;From Peter's experiment, peak shaping does not appear to function as I expected, so unsure you would benefit from my explaining, but if you still want me to, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;1.why ip dscp value is used can not we priortise traffic on bandwith. whats the advantage of using ip dscp.&lt;/P&gt;&lt;P&gt; and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if the link BW is 64 k then how we can shape average to 256 k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;#1 you don't need to use DSCP tags.&amp;nbsp; What they are really for is to allow later/downstream devices to classify the traffic faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, later devices, instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map match-all Trading&lt;/P&gt;&lt;P&gt;&amp;nbsp; match access-group name QoS-Trading&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map match-all Trading&lt;/P&gt;&lt;P&gt;&amp;nbsp; match ip dscp af42&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(NB: if you have an MPLS connection, your MPLS provider might also examine and utilize DSCP markings.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#2 you can not.&amp;nbsp; Shaping is often used for the reverse, where you have more physical bandwidth then you have logically.&amp;nbsp; For example, today some WAN connection might be provided by Ethernet but you haven't contracted for all the bandwidth.&amp;nbsp; Say you had a 10 Mbps Ethernet connection but you've only contracted for 5 Mbps, a shaper could be used to restrict your usage to the 5 Mbps.&amp;nbsp; This becomes important since QoS queuing only engages where there's congestion.&amp;nbsp; If you sent 6 Mbps across a 10 Mbps Ethernet without a shaper, a policy like your child policy would not engage (additionally what will the your service provider do with your excess 1 Mbps?).&amp;nbsp; If you shape in your parent for 5 Mbps, then the traffic would be prioritized and/or dropped as you desire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;If you only have 64 Kbps, no need to shape, just use your "child" policy as you main policy on the interface.&lt;/P&gt;&lt;P&gt;BTW, I normally recommend against using WRED unless you really, really understand the technology.&lt;/P&gt;&lt;P&gt;NB: if your interface only has 64 Kbps it shouldn't accept your policy with hard coded bandwidth that exceed interface bandwidth, you'll need to adjust to fit, or if the IOS is new enough, you can use percentage based bandwidths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PPS:&lt;/P&gt;&lt;P&gt;BTW, when working with cloud WAN techologies, besides ingress into the cloud you often need to consider cloud egress.&amp;nbsp; If you're using MPLS, most vendors can provide some QoS policy support.&amp;nbsp; You'll need to work with them for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 11:16:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855655#M182767</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-14T11:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855656#M182768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;To reiterate, if shape average 200000 8000 # equals shape peak 100000&amp;nbsp; 8000 8000 or shape average 150000 8000 # equals shape peak 100000 8000&amp;nbsp; 4000, I'm not seeing a real advantage of having both &lt;EM&gt;average&lt;/EM&gt; and &lt;EM&gt;peak&lt;/EM&gt;; do you?&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not, either. Sustained rate of the one can be recalculated into the sustained rate of another. The size of the bursts may apparently differ, though: with constant load, the &lt;STRONG&gt;shape average&lt;/STRONG&gt; can burst up to Bc bytes, whereas &lt;STRONG&gt;shape peak&lt;/STRONG&gt; always bursts up to Bc+Be, but you could recalculate both values so that the bursting is identical again... phew. This seems to be a rather useless feature in the IOS, only contributing to users' confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr Lapukhov tried to explan it in his own words here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://blog.ine.com/2008/08/26/understanding-the-shape-peak-command/"&gt;http://blog.ine.com/2008/08/26/understanding-the-shape-peak-command/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even he admits that with proper argument manipulation, one command can be forced to behave exactly as the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 09:57:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855656#M182768</guid>
      <dc:creator>Peter Paluch</dc:creator>
      <dc:date>2011-12-16T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855657#M182769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Author of this posting offers the information contained within this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; posting without consideration and with the reader's understanding&amp;nbsp;&amp;nbsp; that&amp;nbsp;&amp;nbsp;&amp;nbsp; there's no implied or expressed suitability or fitness for any&amp;nbsp;&amp;nbsp;&amp;nbsp; purpose.&amp;nbsp;&amp;nbsp; Information provided is for informational purposes only&amp;nbsp; and&amp;nbsp;&amp;nbsp; should not&amp;nbsp;&amp;nbsp; be construed as rendering professional advice of any&amp;nbsp; kind.&amp;nbsp;&amp;nbsp; Usage of&amp;nbsp; this&amp;nbsp; posting's information is solely at reader's own&amp;nbsp; risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no event shall Author be liable for any damages whatsoever&amp;nbsp;&amp;nbsp;&amp;nbsp; (including,&amp;nbsp;&amp;nbsp; without limitation, damages for loss of use, data or&amp;nbsp;&amp;nbsp;&amp;nbsp; profit) arising&amp;nbsp; out&amp;nbsp; of the use or inability to use the posting's&amp;nbsp;&amp;nbsp;&amp;nbsp; information even if&amp;nbsp; Author has been advised of the possibility of&amp;nbsp; such&amp;nbsp;&amp;nbsp; damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmm, personally I don't think its especially accurate to consider either shape average or shape peak to "burst" when both allow you to sustain their rate.&amp;nbsp; This is like saying Ethernet allows you to burst to 10 Mbps (it does, but also allows that as a sustained rate) although I've seem such references too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's interesting your referenced blog mentions frame-relay and minCIR, since I had thought to mention them where I mentioned ATM's PCR/SCR, but I thought the latter a better representation of burst allowance over a committed rate as it's enforced by the interface without any dependence on some kind of actual congestion indication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't read the blog throughly, but don't believe I noticed any reference to token replenishment.&amp;nbsp; This is what could make all the difference.&amp;nbsp; Your tests seem to demonstrate that replenishment doesn't operate as documented in the Cisco reference I provided, for if it did, don't believe you would have obtained the results you did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well put "This seems to be a rather useless feature in the IOS, only contributing to users' confusion." but I think it would be useful if it operated as I think it should, i.e. peak allowing carrying forward some credit for prior bandwidth utilization below CIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter thanks again for your effort and analysis.&amp;nbsp; I hope the original poster didn't mind this side bar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 11:56:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855657#M182769</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-16T11:56:32Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855658#M182770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph and Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry , i was away from the discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i did not mine for the sidebar &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.cisco.com/4.5.4/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; its making my funda more clear. thanks peter for doing lab test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to ask few question&amp;nbsp;&amp;nbsp; from my previous config.&lt;/P&gt;&lt;P&gt;policy-map VPN-CHILD-POLICY&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Trading&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Netman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af42&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 16&lt;/P&gt;&lt;P&gt;&amp;nbsp; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; random-detect dscp-based&lt;/P&gt;&lt;P&gt;policy-map VPN-POLICY&lt;/P&gt;&lt;P&gt;&amp;nbsp; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; shape average &lt;STRONG&gt;256000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; service-policy VPN-CHILD-POLICY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1.Total bandwith assign to different classes should not be max then 64k which interface bandwidth.&lt;/P&gt;&lt;P&gt;or can we assign more BW to differnet classes - i do not think so because interface BW is 64k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like here class trading &lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Netman&lt;/P&gt;&lt;P&gt;16 &lt;/P&gt;&lt;P&gt;and default &lt;/P&gt;&lt;P&gt;40 &lt;/P&gt;&lt;P&gt;so total is 256.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; so this total bandwith should be equal to 64K or less than 64k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you only have 64 Kbps, no need to shape, just use your "child" policy as you main policy on the interface.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what will be the result if i use shape average ? and second thing if i am using shape average then what value of CIR i should assign for 64k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we assign shape average to the interface bandwidth.&lt;/P&gt;&lt;P&gt;ex-&lt;/P&gt;&lt;P&gt;it will be shape average 64000 ? or should be less than 64000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and below config is right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map VPN-CHILD-POLICY&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Trading&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 200 -&amp;gt; should be less than 64k&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Netman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af42&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 16&lt;/P&gt;&lt;P&gt;&amp;nbsp; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; shape average 64000 Bc ? Be ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do we calculate CIR on interface bandwidth or we can assign any value less than actual BW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 11:51:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855658#M182770</guid>
      <dc:creator>svaishya20</dc:creator>
      <dc:date>2011-12-20T11:51:48Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855659#M182771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Author of this posting offers the information contained within this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; posting without consideration and with the reader's understanding&amp;nbsp; that&amp;nbsp;&amp;nbsp;&amp;nbsp; there's no implied or expressed suitability or fitness for any&amp;nbsp;&amp;nbsp; purpose.&amp;nbsp;&amp;nbsp; Information provided is for informational purposes only and&amp;nbsp;&amp;nbsp; should not&amp;nbsp;&amp;nbsp; be construed as rendering professional advice of any kind.&amp;nbsp;&amp;nbsp; Usage of&amp;nbsp; this&amp;nbsp; posting's information is solely at reader's own risk.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Liability Disclaimer&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no event shall Author be liable for any damages whatsoever&amp;nbsp;&amp;nbsp; (including,&amp;nbsp;&amp;nbsp; without limitation, damages for loss of use, data or&amp;nbsp;&amp;nbsp; profit) arising&amp;nbsp; out&amp;nbsp; of the use or inability to use the posting's&amp;nbsp;&amp;nbsp; information even if&amp;nbsp; Author&amp;nbsp; has been advised of the possibility of such&amp;nbsp;&amp;nbsp; damage.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a little confused.&amp;nbsp; What's the interface's actual bandwidth?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp; normally only need to shape if you there's a need to hold traffic below&amp;nbsp; available physical bandwidth.&amp;nbsp; Shaping (or policing) can be used to&amp;nbsp; "reserve" bandwidth for other traffic, but prioritization (if supported)&amp;nbsp; is often better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, say your link had both VoIP flows and&amp;nbsp; bulk high bandwidth consuming flows.&amp;nbsp; You could shape or police the bulk&amp;nbsp; traffic to leave what you believe would be sufficient bandwidth for the&amp;nbsp; VoIP traffic, but then bandwidth not being used by VoIP would go unused.&amp;nbsp; Instead if you prioritize the VoIP&amp;nbsp; traffic, it gets the bandwidth it needs when it needs it, but your bulk&amp;nbsp; traffic could fully utilize the link otherwise unused bandwidth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what you've have seen to have described, you have no need to shape bandwidth for 256 Kbps if your physical bandwidth is 64 Kbps (because the shaper would never engage).&amp;nbsp; If you had 256 Kbps there can be reasons why you might need to shape for 64 Kbps, but they don't appear to apply in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 16:03:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855659#M182771</guid>
      <dc:creator>Joseph W. Doherty</dc:creator>
      <dc:date>2011-12-20T16:03:14Z</dc:date>
    </item>
    <item>
      <title>QOS question Shape peak and Shape average</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855660#M182772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bandwidth for interface is 64k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but if you will have a look on policy they configured the 200 for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map VPN-CHILD-POLICY&lt;/P&gt;&lt;P&gt;&amp;nbsp; class Trading&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set ip dscp af31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; bandwidth 200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means you are allowing 200k that is not possible if your bandwidth is hardcoded to 64k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i need to adjust bW less than 64k what bandwidth i want to shape it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and second thing shape average we need to configure always under class default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if we configure shape avergae 64000 - to the actual bandwith of interface the it will engage qos or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we put command shape average 64000 do we need to also put value for Bc and Be or we can just leave shape average 64000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we need to put Bc and be value then how do we calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, i am asking you to many question but i think&amp;nbsp; you expalnation will make my funda more clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 06:29:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/qos-question-shape-peak-and-shape-average/m-p/1855660#M182772</guid>
      <dc:creator>svaishya20</dc:creator>
      <dc:date>2011-12-21T06:29:22Z</dc:date>
    </item>
  </channel>
</rss>

