Skip to contentSkip to conversation

tbf : rate and effective speed (newbie)

LARTC Paolo Poletti 2 participants 3 messages Dec 10, 2002

lore
Share & tools
lore
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 5 lines · Paolo Poletti
# 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Paolo Poletti

This was my error. Thanks again.

Quoted 15 lines · Andrea Rossato
Quoted 5 lines · Paolo Poletti
# 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

Quoted 7 lines

bye
andrea

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/