The following formulas are used in the calculation:
Calculates the maximum amount of data (in Mbps) that can be burst.
Calculates how long (in seconds) it takes for the bucket to refill completely.
This simulation visualizes the bucket filling up to its capacity and then resetting, demonstrating the calculated fill time.
# Example Mikrotik Simple Queue Script for Token Bucket # Replace 'Global-Connection', '192.168.88.0/24', 'Client-1', and '192.168.88.10' as needed. /queue simple add name="Global-Connection" target="192.168.88.0/24" max-limit=50M/50M bucket-size=0.1/0.1 /queue simple add name="Client-1" target="192.168.88.10" parent="Global-Connection" max-limit=5M/5M bucket-size=5/5