CALCULADORA TOKEN BUCKET / SIMULADOR DE TRÁFICO TOKEN

Calcula y simula Token Bucket para optimizar ráfagas y control de ancho de banda en MikroTik RouterOS.

OPTIMIZACIÓN DE CÁLCULO

Bucket Capacity (BC): 250.00 Mbps

Fill Time (Time): 5.56 seconds

Formulas Used

1. Bucket Capacity (BC)

BC = bucket-size x max-limit (Parent)

Calculates the maximum amount of burst tokens the bucket can hold.

2. Fill Time (Time)

Time = BC / (Parent Max-limit - Token Rate)

Calculates the time needed to refill the bucket at the available refill rate.

3. Token Rate

Token Rate = Child queue Max-Limit

Uses the child queue guaranteed bandwidth as the base token rate in the simulator.

Token Bucket Behavior Simulation

This simulation visualizes the bucket bursting, draining and refilling according to the formulas above.

Token Bucket

Current Tokens: 0.00 Mbps (Max: 250.00 Mbps)

Elapsed Time: 0.00 seconds (Fill Time: 5.56 seconds)

Remaining Hold Time: 0.00 seconds

Phase: Holding

Bucket is full and briefly pausing before the next burst cycle.

Bandwidth Usage

0.00 Mbps

Current: 0.00 Mbps

Guaranteed: 5.00 Mbps

Max Burst: 50.00 Mbps

Bucket Fill: 0.0%

How the Balls Represent Tokens

  • Every ball is a token representing available burst capacity.
  • The cyan balls represent your guaranteed speed at 5.0 Mbps.
  • The yellow/orange balls are extra burst tokens up to 50.0 Mbps.
  • The bucket can hold Bucket Capacity (250.00 Mbps) tokens.
  • During Bursting, the simulator drains tokens while bandwidth stays at the parent limit.
  • During Filling, bandwidth returns to the child limit and the bucket is refilled using the available refill gap.
  • When the bucket is full, the simulator goes to Holding until the next burst starts.

Mikrotik Simple Queue With Token Bucket Script Example

# 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

¿No sabes qué opción elegir?

Aprende cómo funciona Calculadora de Token Bucket MikroTik antes de generar tu configuración.

Ver guía