I've played around with the ipfw command on a Mac and tried to limit the bandwidth to 1MBit/s.
sudo ipfw add pipe 1 ip from any to me
sudo ipfw pipe 1 config bw 1MBit/s
These are the statements I'm using. ipfw indeed limits the bandwidth drastically but according to speedtest.net only to ~7.7 Mbps on a 100 Mbps line. With a restriction to 3MBit/s the effective download is ~23.13 Mbps. Apparently the ipfw always uses a factor ~7.7 of the given limit. With a limit of 4 Mbps the effective speed is ~30,84 Mbps, with 8 Mbps it's ~61.6 Mbps and so on...
Anyone knows why this is the reason? Is it a bug or do I use the statement wrong?
Thank you
sudo ipfw showhere? – Kondybas Apr 2 '12 at 22:58radi:~ Phil$ sudo ipfw show00100 2046813 1042400871 pipe 1 ip from any to me00200 2223777 296348885 pipe 2 ip from me to any65535 7182907 2143167607 allow ip from any to anyaargh.. didn't manage to properly use the code tags – TheLostOne Apr 4 '12 at 11:08