MT-Rate-Limit - Datarate limitation for clients. Format is: rx-rate[/tx-rate] [rx-burst-rate[/tx-burst-rate] [rx-burst-threshold[/tx-burst-threshold] [rx-burst-time[/tx-burst-time] [priority] [rx-rate-min[/tx-rate-min]]]] from the point of view of the router (so "rx" is client upload, and "tx" is client download). All rates should be numbers with optional 'k' (1,000s) or 'M' (1,000,000s). If tx-rate is not specified, rx-rate is as tx-rate too. Same goes for tx-burst-rate and tx-burst-threshold and tx-burst-time. If both rx-burst-threshold and tx-burst-threshold are not specified (but burst-rate is specified), rx-rate and tx-rate is used as burst thresholds. If both rx-burst-time and tx-burst-time are not specified, 1s is used as default. Priority takes values 1..8, where 1 implies the highest priority, but 8 - the lowest. If rx-rate-min and tx-rate-min are not specified rx-rate and tx-rate values are used. The rx-rate-min and tx-rate-min values can not exceed rx-rate and tx-rate values.
Rate-Limit takes precedence over all other ways to specify data rate for the client. Ascend data rate attributes are considered second; and WISPr attributes takes the last precedence.
------------------------------------------------ ------------------------------------------------
Here are some Rate-Limit examples(部分限速模板):
128k - rx-rate=128000, tx-rate=128000 (無突發限速)
64k/128M - rx-rate=64000, tx-rate=128000000(無突發限速)
64k 256k - rx/tx-rate=64000, rx/tx-burst-rate=256000, rx/tx-burst-threshold=64000, rx/tx-burst-time=1s (突發事件1S)
64k/64k 256k/256k 128k/128k 10/10 - rx/tx-rate=64000, rx/tx-burst-rate=256000, rx/tx-burst-threshold=128000, rx/tx-burst-time=10s
Radius Rate-Limit / Mikrotik Simple Queue
------------------------------------------------ ------------------------------------------------
tx/rx speed = Max Limit
tx/rx speed = Limit At
Burst Limit tx/rx = Burst Limit
Burst Threshold tx/rx = Burst Threshold (觸發突發限速的臨界值)
Burst Time = Burst Time 突發限速
max-limit------我們最常用的地方,最大速度
burst-limit--------突破速度的最大值
burst-thershold--------突破速度的閥值
burst-time-------突破速度的時間值
解釋限制意義
當客戶機在30秒(burst-time)內的平均值小于突破速度閥值(burst-thershold)180K時,客戶機的最大下載速率可以超過最大限速值(max-limit)200K,達到突破最大值(burst-limit)400K,如果30秒內平均值大于180K,那客戶機的最大速度只能達到200K。
------------------------------------------------ ------------------------------------------------
The value for my test user is the follow: 512k/2048k 512k/2048k 192k/960k 8/8 1 128k/128k
The mikrotik documentation say:
"Mikrotik-Rate-Limit - Datarate limitation for clients. Format is: rx-rate[/tx-rate] [rx-burst-rate[/tx-burst-rate] [rx-burst-threshold[/tx-burst-threshold] [rx-burst-time[/tx-burst-time] [priority] [rx-rate-min[/tx-rate-min]]]] from the point of view of the router (so "rx" is client upload, and "tx" is client download). All rates should be numbers with optional 'k' (1,000s) or 'M' (1,000,000s). If tx-rate is not specified, rx-rate is as tx-rate too. Same goes for tx-burst-rate and tx-burst-threshold and tx-burst-time. If both rx-burst-threshold and tx-burst-threshold are not specified (but burst-rate is specified), rx-rate and tx-rate is used as burst thresholds. If both rx-burst-time and tx-burst-time are not specified, 1s is used as default. Priority takes values 1..8, where 1 implies the highest priority, but 8 - the lowest. If rx-rate-min and tx-rate-min are not specified rx-rate and tx-rate values are used. The rx-rate-min and tx-rate-min values can not exceed rx-rate and tx-rate values."
------------------------------------------------ ------------------------------------------------ ------------------------------------------------ ------------------------------------------------
浙公網安備 33010602011771號