I'm new to using tc/htb and I've just copy/pasted the script at ...
... to run on the office gateway. The reason is to prevent large downloads, uploads, p2p and videos from making SSH connections and web browsing too slow. The network looks like:
LAN -> (eth0) linux gateway (eth1) -> DSL modem
The gateway also does NAT for LAN clients.
At the top of the script you set your uplink and downlink speeds (in kilobits) and the device. Our ADSL is 1.5m DL / 256k UL. So I've set the values as follows:
DOWNLINK=1000 UPLINK=220 DEV=eth1
All I know for sure is these values are supposed to be 'somewhat' less than the full DSL bandwidth but I don't know how to calculate an optimal value. I assume if the value is too low I'm going to overly restrict the total throughput and if it's too high I'm going to prevent proper queuing.
My question is: What tools, rules of thumb or calculations do I use find the optimal values for the rate parameter?