Skip to main content
Version: 7.26

Queue Burst

Introduction​

Burst is a feature that allows satisfying queue requirements for additional bandwidth even if the required rate is bigger than MIR (max-limit) for a limited period of time.

Burst can occur only if the average rate of the queue for the last burst-time seconds is smaller than burst-threshold. Burst will stop if the average rate of the queue for the last burst-time seconds is bigger than or equal to burst-threshold.

The burst mechanism is simple - if a burst is allowed, the max-limit value is replaced by the burst-limit value. When the burst is disallowed, the max-limit value remains unchanged.

  1. burst-limit (NUMBER) : Maximal upload/download data rate which can be reached while the burst is allowed.
  2. burst-time (TIME) : Period of time, in seconds, over which the average data rate is calculated. (This is NOT the time of actual burst).
  3. burst-threshold (NUMBER) : This is the value of the burst on/off switch. The examples on this page also use two values that are not properties of a queue:
  • average rate - every 1/16 part of the burst-time, the router calculates the average data rate of each class over the last burst-time seconds. The queue statistics do not show this value.
  • actual rate - the actual traffic transfer rate of the queue. The queue statistics show it as rate.

Example​

Values: limit-at=1M , max-limit=2M , burst-threshold=1500k , burst-limit=4M

The client will try to download two 4MB (32Mb) blocks of data, the first download will start at zero seconds, and the second download will start at the 17th second. Traffic was unused at the last minute.

Burst-time=16s​

Actual rate and average rate of the first download, seconds 0 to 15, with burst-time=16sActual rate and average rate of the second download, seconds 16 to 31, with burst-time=16s

As we can see as soon as the client requested bandwidth it was able to get 4Mbps burst for 6 seconds. This is the longest possible burst with given values (longest-burst-time = burst-threshold * burst-time / burst-limit). As soon as the burst runs out, the rest of the data will be downloaded with 2Mbps. This way, a block of data was downloaded in 10 seconds - without burst, it would take 16 seconds. Burst has 7 seconds to recharge before the next download will start.

Note that burst is still disallowed when the download started and it kicks in only afterward - in the middle of a download. So with this example, we proved that a burst may happen in the middle of a download. The burst was ~4 seconds long and the second block was downloaded 4 seconds faster than without burst.

The average rate is calculated every 1/16 of burst time so in this case 1s.

Timeaverage rateburstactual rate
0(0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0)/16=0Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
1(0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+4)/16=250Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
2(0+0+0+0+0+0+0+0+0+0+0+0+0+0+4+4)/16=500Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
3(0+0+0+0+0+0+0+0+0+0+0+0+0+4+4+4)/16=750Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
4(0+0+0+0+0+0+0+0+0+0+0+0+4+4+4+4)/16=1000Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
5(0+0+0+0+0+0+0+0+0+0+0+4+4+4+4+4)/16=1250Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
6(0+0+0+0+0+0+0+0+0+0+4+4+4+4+4+4)/16=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps
7(0+0+0+0+0+0+0+0+0+4+4+4+4+4+4+2)/16=1625Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps
8(0+0+0+0+0+0+0+0+4+4+4+4+4+4+2+2)/16=1750Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps
9(0+0+0+0+0+0+0+4+4+4+4+4+4+2+2+2)/16=1875Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps
10(0+0+0+0+0+0+4+4+4+4+4+4+2+2+2+2)/16=2Mbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
11(0+0+0+0+0+4+4+4+4+4+4+2+2+2+2+0)/16=2Mbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
12(0+0+0+0+4+4+4+4+4+4+2+2+2+2+0+0)/16=2Mbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
13(0+0+0+4+4+4+4+4+4+2+2+2+2+0+0+0)/16=2Mbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
14(0+0+4+4+4+4+4+4+2+2+2+2+0+0+0+0)/16=2Mbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
15(0+4+4+4+4+4+4+2+2+2+2+0+0+0+0+0)/16=2Mbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
16(4+4+4+4+4+4+2+2+2+2+0+0+0+0+0+0)/16=2Mbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
17(4+4+4+4+4+2+2+2+2+0+0+0+0+0+0+0)/16=1750Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps
18(4+4+4+4+2+2+2+2+0+0+0+0+0+0+0+2)/16=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps
19(4+4+4+2+2+2+2+0+0+0+0+0+0+0+2+2)/16=1375Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
20(4+4+2+2+2+2+0+0+0+0+0+0+0+2+2+4)/16=1375Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
21(4+2+2+2+2+0+0+0+0+0+0+0+2+2+4+4)/16=1375Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
22(2+2+2+2+0+0+0+0+0+0+0+2+2+4+4+4)/16=1375Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps
23(2+2+2+0+0+0+0+0+0+0+2+2+4+4+4+4)/16=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps
24(2+2+0+0+0+0+0+0+0+2+2+4+4+4+4+2)/16=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps
25(2+0+0+0+0+0+0+0+2+2+4+4+4+4+2+2)/16=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps
26(0+0+0+0+0+0+0+2+2+4+4+4+4+2+2+2)/16=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps
27(0+0+0+0+0+0+2+2+4+4+4+4+2+2+2+2)/16=1625Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps
28(0+0+0+0+0+2+2+4+4+4+4+2+2+2+2+2)/16=1750Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps
29(0+0+0+0+2+2+4+4+4+4+2+2+2+2+2+2)/16=1875Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
30(0+0+0+2+2+4+4+4+4+2+2+2+2+2+2+0)/16=1875Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps
31(0+0+2+2+4+4+4+4+2+2+2+2+2+2+0+0)/16=1875Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps

Burst-time=8s​

Actual rate and average rate of the first download, seconds 0 to 15, with burst-time=8sActual rate and average rate of the second download, seconds 16 to 31, with burst-time=8s

If we decrease burst-time to 8 seconds - we are able to see that in this case, bursts are only at the beginning of downloads. The average rate is calculated every 1/16th of burst time, so in this case every 0.5 seconds.

Timeaverage rateburstactual rate
0(0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0)/8=0Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
0.5(0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+2)/8=250Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
1(0+0+0+0+0+0+0+0+0+0+0+0+0+0+2+2)/8=500Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
1.5(0+0+0+0+0+0+0+0+0+0+0+0+0+2+2+2)/8=750Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
2(0+0+0+0+0+0+0+0+0+0+0+0+2+2+2+2)/8=1000Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
2.5(0+0+0+0+0+0+0+0+0+0+0+2+2+2+2+2)/8=1250Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
3(0+0+0+0+0+0+0+0+0+0+2+2+2+2+2+2)/8=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
3.5(0+0+0+0+0+0+0+0+0+2+2+2+2+2+2+1)/8=1625Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
4(0+0+0+0+0+0+0+0+2+2+2+2+2+2+1+1)/8=1750Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
4.5(0+0+0+0+0+0+0+2+2+2+2+2+2+1+1+1)/8=1875Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
5(0+0+0+0+0+0+2+2+2+2+2+2+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
5.5(0+0+0+0+0+2+2+2+2+2+2+1+1+1+1+1)/8=2125Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
6(0+0+0+0+2+2+2+2+2+2+1+1+1+1+1+1)/8=2250Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
6.5(0+0+0+2+2+2+2+2+2+1+1+1+1+1+1+1)/8=2375Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
7(0+0+2+2+2+2+2+2+1+1+1+1+1+1+1+1)/8=2500Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
7.5(0+2+2+2+2+2+2+1+1+1+1+1+1+1+1+1)/8=2625Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
8(2+2+2+2+2+2+1+1+1+1+1+1+1+1+1+1)/8=2750Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
8.5(2+2+2+2+2+1+1+1+1+1+1+1+1+1+1+1)/8=2625Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
9(2+2+2+2+1+1+1+1+1+1+1+1+1+1+1+1)/8=2500Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
9.5(2+2+2+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2375Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
10(2+2+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2250Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
10.5(2+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2125Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
11(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
11.5(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
12(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
12.5(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
13(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps (0Mb per 0.5s)
13.5(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+0)/8=1875Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps (0Mb per 0.5s)
14(1+1+1+1+1+1+1+1+1+1+1+1+1+1+0+0)/8=1750Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps (0Mb per 0.5s)
14.5(1+1+1+1+1+1+1+1+1+1+1+1+1+0+0+0)/8=1625Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps (0Mb per 0.5s)
15(1+1+1+1+1+1+1+1+1+1+1+1+0+0+0+0)/8=1500Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps (0Mb per 0.5s)
15.5(1+1+1+1+1+1+1+1+1+1+1+0+0+0+0+0)/8=1375Kbpsaverage rate < burst-threshold → Burst is allowed0Mbps (0Mb per 0.5s)
16(1+1+1+1+1+1+1+1+1+1+0+0+0+0+0+0)/8=1250Kbpsaverage rate < burst-threshold → Burst is allowed0Mbps (0Mb per 0.5s)
16.5(1+1+1+1+1+1+1+1+1+0+0+0+0+0+0+0)/8=1125Kbpsaverage rate < burst-threshold → Burst is allowed0Mbps (0Mb per 0.5s)
17(1+1+1+1+1+1+1+1+0+0+0+0+0+0+0+0)/8=1000Kbpsaverage rate < burst-threshold → Burst is allowed2Mbps (1Mb per 0.5s)
17.5(1+1+1+1+1+1+1+0+0+0+0+0+0+0+0+1)/8=1000Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
18(1+1+1+1+1+1+0+0+0+0+0+0+0+0+1+2)/8=1125Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
18.5(1+1+1+1+1+0+0+0+0+0+0+0+0+1+2+2)/8=1250Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
19(1+1+1+1+0+0+0+0+0+0+0+0+1+2+2+2)/8=1375Kbpsaverage rate < burst-threshold → Burst is allowed4Mbps (2Mb per 0.5s)
19.5(1+1+1+0+0+0+0+0+0+0+0+1+2+2+2+2)/8=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
20(1+1+0+0+0+0+0+0+0+0+1+2+2+2+2+1)/8=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
20.5(1+0+0+0+0+0+0+0+0+1+2+2+2+2+1+1)/8=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
21(0+0+0+0+0+0+0+0+1+2+2+2+2+1+1+1)/8=1500Kbpsaverage rate = burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
21.5(0+0+0+0+0+0+0+1+2+2+2+2+1+1+1+1)/8=1625Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
22(0+0+0+0+0+0+1+2+2+2+2+1+1+1+1+1)/8=1750Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
22.5(0+0+0+0+0+1+2+2+2+2+1+1+1+1+1+1)/8=1875Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
23(0+0+0+0+1+2+2+2+2+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
23.5(0+0+0+1+2+2+2+2+1+1+1+1+1+1+1+1)/8=2125Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
24(0+0+1+2+2+2+2+1+1+1+1+1+1+1+1+1)/8=2250Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
24.5(0+1+2+2+2+2+1+1+1+1+1+1+1+1+1+1)/8=2375Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
25(1+2+2+2+2+1+1+1+1+1+1+1+1+1+1+1)/8=2500Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
25.5(2+2+2+2+1+1+1+1+1+1+1+1+1+1+1+1)/8=2500Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
26(2+2+2+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2375Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
26.5(2+2+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2250Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
27(2+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2125Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
27.5(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
28(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
28.5(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
29(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
29.5(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
30(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed2Mbps (1Mb per 0.5s)
30.5(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1)/8=2000Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps (0Mb per 0.5s)
31(1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+0)/8=1875Kbpsaverage rate > burst-threshold → Burst is not allowed0Mbps (0Mb per 0.5s)