06-02-2022 06:29 AM
hi,
during shaping policy config, router itself calculate bc based on cir. And there is a minimum value of bc .... it is calculated based on tc of 4ms. Is it possible to use lower value of tc .... so bc could be smaller?
br
06-02-2022 08:33 AM
What kind of traffic are you shaping? Here is a really old link that talks about VoFR and VoIP traffic shaping.
https://www.cisco.com/c/en/us/support/docs/voice/voice-quality/14073-fr-traffic.html
The short version as I recall it is that the lower the value of Tc, the more precise the shaping will be. For voice traffic, you wanted Tc to be 10ms.
06-02-2022 09:30 AM - edited 06-02-2022 09:31 AM
I recall that there are minimum Tc values, although how small might vary per platform.
Although @Elliot Dierksen is correct that small Tcs, make for more precise ("precise" as in more closely being like a physical link for that "speed" in small time intervals) shaping, however, I recall (?) going "too small" can bump into the issue where the Bc is smaller than some possible packet sizes (which results in those packets always being consider out-of-contract (or overrate).
Unless you have a real need for a very small Tc (Elliot's mention of VoIP is a good example, including his mention of using 10ms [which, is often what I used when working with VoIP]), a larger Tc might (slightly?) reduce resource consumption (mostly on software based devices?) and, for longer term averages, a larger Tc will still provide the same shaped rate (just, possibly, more bursty).
I.e. don't reduce Tc just because you can, but use what you really need.
BTW, often overlooked, software based (e.g. ASR?) QoS doesn't engage until the interface TX queue overflows (which is only FIFO), so often, you need to set tx-ring-limit to a smaller value than its default. If you need a small Tc value, you'll probably also need to manage the TX buffer size too.
06-02-2022 10:23 AM
well ... other side of link (ISR 4451) is generating tcp out of order tcp packets so I have poor tcp transfer rate. It is 1G link. I noticed that if I decrease cir on sending side, I get better performance, guess that bursts generated with 0.9g CIR causes out of ordering ..... so I taught .... can I have cir of 0.9g and bc smaller then 0,4% of CIR. Sending side is ASR 1001x ... and yes ... link is fine ... tested with two laptops connected directly to link :-))
06-03-2022 07:44 AM
Shaping (at least the later/current HQF variants [because those are really FIFO or FQ while pre-HQF is WFQ]) shouldn't (bug???) cause out-of-order packets (for individual flows), regardless of its CIR and/or Tc settings.
That noted, you can create out-of-order packets with CBWFQ policies.
06-03-2022 07:52 AM
hi,
I do not think that shaping cause OOO but helps eliminate them (decreasing bc).
br
06-03-2022 08:55 AM
Again, shaping (normally) shouldn't cause or mitigate OOO.
If your OOO is flow related, that's very unusual, because network devices, geneally by default, don't reorder packets within the same flow.
07-14-2022 04:22 AM
07-14-2022 07:19 AM
Ah, very interesting! Thanks for posting the cause of your OOO. (Which, as I expected, wasn't caused by a shaper.)
07-15-2022 12:00 AM
Hello
@DraganSkundric87318 wrote:
during shaping policy config, router itself calculate bc based on cir. And there is a minimum value of bc .... it is calculated based on tc of 4ms. Is it possible to use lower value of tc .... so bc could be smaller?
I suppose you can manually lower the Bc value which then calculate at a lower TC.
Example: 1MB link
TC=0.0.4
Shape = 1024000
BC= 0.0.4*1024000/8 = 512
or
BC=256
Shape = 1024000
BC= 256/1024000*8 = 0.004
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide