tc speed measurement discrepancies
this has been a tiny issue i've noticed since applying htb rate limits to my router. i'm limiting to slightly under what Comcast is giving me - measured at speedtest.net or using wget downloads, they give me ~105.6-105.8mbit down and 21-21.4mbit up. so i have this subsection ("external" is iface to cable modem, "internal" to LAN) which slows traffic down minutely below these measurements - my intention is to yield 105.4mbit down and 20.5 up:
Code:
tc qdisc add dev external root handle 1: htb default 1 so is this normal? and what's the reason for the differing of the numbers here? |
the token bucket is calculated based on a time constant Tc = Bc/Cir
15k/105M = .000143 - down in the nano second range. Cisco, on their traffic shapers recommend a Tc of around .125S so normaly suggest a Bc of 1/8th of Cir. If you leave the burst and therefore Tc too low the effect you get is a lower throughput than you asked for. So try increasing burst to about 1/8th of rate and see if that helps. |
1/8th of 105,000,000 is 13,125,000..... so seriously, a burst of 13m??
EDIT: tried that, no change. setting 105mbit with burst 0f 13.125m still gives me measured results of ~102. just to rule out comcast maybe not giving me the full 105, i tried lowering the values - 40mbit with burst of 5m - that yielded 38.59mbit measured. which seems like about the same percentage of difference as my 105mbit/13.125m burst testing |
Yep, that would be what you would use on a Cisco router, low Burst is such a common problem that it turns up in the exams.
Interesting it made no difference though. Does wget and speedtest take tcp overhead ont account when ,measuring? Maybe thats enough to account for it. |
Quote:
No idea if they do, and very little information came up when I searched for whether either one does. But could tcp overhead really eat up 3-4% of the bandwidth? I don't necessarily MIND if i have to raise the numbers in my tc script to achieve a certain speed, i just would like to make sure that it's not because i've misconfigured something. |
All times are GMT -5. The time now is 02:25 AM. |