Probably this is an old question, but i''m not able to find nothing about... So, i''ve just started to play with tc to limit the transfer speed to my hdsl connection. I''m using the tbf and the command # tc qdisc add dev eth0 root tbf rate 10kbit latency 50ms burst 1000 Then i''ve tried to transfer a big (20 Mbyte) file onto my lan, using ftp and the client (ncftp) is saying that the average transfer speed is 39.71 kB ( around 400 kbit). What i''m missing ? Thnaks in advance _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Paolo Poletti wrote:> # tc qdisc add dev eth0 root tbf rate 10kbit latency 50ms burst 1000 > > Then i''ve tried to transfer a big (20 Mbyte) file onto my lan, using ftp > and the client (ncftp) is saying that the average transfer speed is > 39.71 kB ( around 400 kbit). What i''m missing ?you are shaping outgoing traffic: so if you want to give it a try you must upload! to shape incoming traffic you need either ingress qdisc or IMQ : have a look at LARTC. you are downloading at 300kbit, by the way: 39.71*8 bye andrea _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
This was my error. Thanks again. Andrea Rossato wrote:> Paolo Poletti wrote: > >> # tc qdisc add dev eth0 root tbf rate 10kbit latency 50ms burst 1000 >> >> Then i''ve tried to transfer a big (20 Mbyte) file onto my lan, using >> ftp and the client (ncftp) is saying that the average transfer speed >> is 39.71 kB ( around 400 kbit). What i''m missing ? > > > you are shaping outgoing traffic: so if you want to give it a try you > must upload! > to shape incoming traffic you need either ingress qdisc or IMQ : have > a look at LARTC. > you are downloading at 300kbit, by the way: 39.71*8 > > bye > andrea > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/