Mikrotik Tools

MIKROTIK TOKEN BUCKET CALCULATOR

MikroTik RouterOS Token Bucket Calculator

Inputs

Results will appear here.

Formulas Used

Bucket Capacity (BC)

BC = bucket-size × Parent_Max-Limit

Calculates the maximum amount of data (in Mbps) that can be burst.

Fill Time (Time)

Time = BC / (Parent_Max-Limit - Child_Limit)

Calculates how long (in seconds) it takes for the bucket to refill completely.

Token Bucket Behavior Simulation

Current Tokens: 0.00 Mbps (Max: 0 Mbps)

Elapsed Time: 0.0s (Emptying Time: 0s)

Bandwidth Usage

0.00 Mbps

Guaranteed: 5.0 Mbps

Max Burst: 50.0 Mbps

How the Balls Represent Tokens:

  • Every **ball** is a "token" representing available bandwidth.
  • The **green balls** represent your guaranteed speed at 5 Mbps.
  • The **yellow/orange balls** are extra tokens for temporary speed boosts, up to 50 Mbps. These are "burst" tokens.
  • The bucket can hold a total of **Bucket Capacity (0 Mbps)** tokens.
  • When you send data, tokens are "used" (balls disappear from the top of the bucket).
  • The simulation shows the bucket **filling up** with tokens at your 5 Mbps speed.
  • Then, it will **empty**, representing high bandwidth usage at 50 Mbps.
  • If you need more speed than your guaranteed limit, you use yellow/orange "burst" tokens.
  • The **Bandwidth Usage** bar shows your current transfer speed.
Mikrotik Script Example