Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] tbf : rate and effective speed (newbie)
@ 2002-12-10 15:49 Paolo Poletti
  2002-12-10 15:59 ` Andrea Rossato
  2002-12-10 16:18 ` Paolo Poletti
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Poletti @ 2002-12-10 15:49 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] tbf : rate and effective speed (newbie)
  2002-12-10 15:49 [LARTC] tbf : rate and effective speed (newbie) Paolo Poletti
@ 2002-12-10 15:59 ` Andrea Rossato
  2002-12-10 16:18 ` Paolo Poletti
  1 sibling, 0 replies; 3+ messages in thread
From: Andrea Rossato @ 2002-12-10 15:59 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] tbf : rate and effective speed (newbie)
  2002-12-10 15:49 [LARTC] tbf : rate and effective speed (newbie) Paolo Poletti
  2002-12-10 15:59 ` Andrea Rossato
@ 2002-12-10 16:18 ` Paolo Poletti
  1 sibling, 0 replies; 3+ messages in thread
From: Paolo Poletti @ 2002-12-10 16:18 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-10 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 15:49 [LARTC] tbf : rate and effective speed (newbie) Paolo Poletti
2002-12-10 15:59 ` Andrea Rossato
2002-12-10 16:18 ` Paolo Poletti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox