Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the example (video 1), the speed limit is 3 data units, the buffer size is 12 data units. The buffer is constantly replenished in accordance with the threshold, however, it cannot be filled over its own volume.

Center

Multimedia
nameTokenBucket_1.mp4

Video 1 - Resource allocation to speed limit buffer

Data received by the device inbound interface will be processed only if the buffer contains resources for their processing (video 2). Thus, the passing data empties the buffer resource. If the buffer is empty at the time of data arrival, the data will be discarded.

Center

Multimedia
nameTokenBucket_2.mp4

Video 2 - Dedicated resources usage for data processing

...

Despite the described advantage of the Token Bucket algorithm, the average throughput will fit to the set threshold, as in the long time period, the resources amount will be determined not by the size of the buffer, but by the intensity of its filling, which is equal to the throughput threshold.

Center

Multimedia
nameTokenBucket_3.mp4

Video 3 - Data processing by the speed limit buffer

...

In this example, two speed limit rules are implemented: for vlan 161 traffic - 3 data units per time block, for vlan 162 traffic - 2 data units. The buffer size for each traffic flow contains 4 time intervals, i.e. 12 data units for vlan 161 traffic and 8 data units for vlan 162 traffic. Totally 5 data units are allocated to the buffers in each time interval, then the allocated resources are distributed between the buffers. Since the buffers size is limited, resources which exceeds their size cannot be used.

Center

Multimedia
nameTokenBucket_4.mp4

Video 4 - Resources allocation for two speed limit buffers

The each buffer resources can only be used for traffic of the corresponding service (video 5). Thus, to handle vlan 161 traffic, a resources of buffer for vlan 161 traffic are used. Similarly, buffer resources are used for vlan 162 traffic.

Center

Multimedia
nameTokenBucket_5.mp4

Video 5 - Dedicated resources for data processing using 

...

In the example, the buffer for vlan 162 traffic is full, it allows to fill in the vlan 161 traffic buffer with 5 selected data units, instead of 3. In this case, the vlan 161 service throughput will increase. But when vlan 162 traffic resource buffer will have free space, resource allocation will return to normal mode: for vlan 161 traffic - 3 data units, for vlan 162 traffic - 2 data units.

Center

Multimedia
nameTokenBucket_6.mp4

Video 6 - Allocated resources redistribution between various services traffic limitation buffers

...