ISP operator tools

MikroTik rate-limit calculator

Turn a subscriber plan into a Mikrotik-Rate-Limit attribute and equivalent simple queue settings. Values stay in this browser; no account or submission is needed.

Router view: rx = subscriber upload; tx = subscriber download. Every output pair is upload/download, even though plans are usually advertised download first.

Plan rates

Required maximum speeds in kilobits per second (kbps). 1 Mbps = 1,000 kbps. Enter 1500 for 1.5 Mbps.

Burst rates

Optional temporary ceilings. Set both directions to at least the plan rate, and add a burst time.

Burst thresholds

Burst is allowed while average traffic is below this level. Leave blank to use the plan rate; a threshold cannot exceed that rate.

Time and priority

Burst time is the averaging window in seconds, shared by both directions, not a guaranteed burst duration. Priority is 1 (highest) to 8 (lowest); blank uses 8.

Minimum rates (limit-at)

Optional minimum rates, no higher than the plan rate. A blank direction defaults to its plan rate, matching the RADIUS attribute. Deliverable bandwidth still depends on parent capacity.

Calculated output

Mikrotik-Rate-Limit

5M/20M

Equivalent simple queue settings

/queue simple add name="subscriber-plan" target=192.0.2.1/32 disabled=yes max-limit=5M/20M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s priority=8/8 limit-at=5M/20M

This example uses the documentation address 192.0.2.1/32 and creates a disabled queue. Replace the target and name, review parent capacity and queue order, then enable it in your lab. These are equivalent shaping settings, not a complete RADIUS deployment.

How to read the attribute

The fields are positional. Brackets below indicate optional groups; do not include the brackets in a RADIUS reply.

rx/tx [burst-rx/burst-tx [threshold-rx/threshold-tx [time-rx/time-tx [priority [min-rx/min-tx]]]]]

For a 20 Mbps download / 5 Mbps upload plan, the base value is 5M/20M. Adding 30/10 Mbps burst, 15/3 Mbps thresholds and a 10-second averaging window gives 5M/20M 10M/30M 3M/15M 10/10.

Priority or minimum rates without bursting need the positional placeholders 0/0 0/0 0/0. Leave optional inputs blank to omit them. Explicit zero, decimals, negative numbers and unit suffixes are rejected; enter whole kbps instead.

The queue line sets limit-at explicitly because the RADIUS minimum defaults to the plan rate, while a new simple queue has a different default. Priority affects competition between eligible child queues; it does not create capacity.

References: MikroTik RADIUS attribute documentation and simple queue documentation.

Plan a guided pilot

Explore MikroTik and RADIUS workflows with ISPAgents through a guided pilot, with onboarding and validation for your access path.

Discuss a guided pilot