Hello Marios
The whole reason shapers work in this way is because an interface is capable of either transmitting at 100% of its capacity or 0% of its capacity. There is no in-between. In order to employ shaping, over time, interfaces are made to transmit for only a certain percentage of the time, thus resulting in a perceived limitation of throughput over long periods. If an interface only transmits for 50% of the time, then it will on average, transmit at 50% of its rated throughput.
In this case, we want a 1 Gbps interface to transmit at 200 Mbps. Thatās 20% of the rated speed, so we make the interface transmit 20% of the time.
However, in our case, we want the interval of transmission to be 10ms, in order to accommodate VoIP services. So yes, you do use the Bc = Tc * CIR formula. In this case CIR = 200 Mbps or 200 million bits per second. Now the shaper knows that it must send a maximum of 200 million bits every second. So every time interval of 10ms, the shaper must send how many bits?
Well, the IOS calculates this. Since transmission time is 10ms, and weāre sending traffic for only 20% of the time, that means weāre not sending traffic for 80% of the time. If 10 ms is 20% of the time, then another 40ms is the other 80% of the time.
Now over a time period of 1 second, you will have 20 such time periods of 10ms sending 40ms not sending. So thatās 20 * (10+40) = 1000 ms or 1 second. How many bits will you be sending in those 10 ms? Well, itās the speed of the interface multiplied by the time period, so that is 1 Gbps * 0.01s = 10 million bits or 10 Mb.
Since the IOS has the time interval, the interface speed, and the CIR, it calculates the rest.
I hope this has been helpful!
Laz
Remember, an interface can either send at 100% of its capacity or zero.
Now because of VoIP we want the Tc to be 10 ms.
*
Since the CIR is 200 Mbps, or 200 million bits per second,