All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] question about "rate"
@ 2000-10-27 17:58 Andreas
  2000-10-27 20:54 ` Ing.Rodrigo
  2000-10-28 12:55 ` bert
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas @ 2000-10-27 17:58 UTC (permalink / raw)
  To: lartc

<PRE>Hi!

I am using DSL with 786Kbit downstream and 128Kbit upstream. When
someone fetches a file from my ftp server, my upstream is completely
blocked and download speeds from the internet of internal clients behind
the router slow down from ~90KB/s to 20-30KB/s. So I decided to limit
upstream bandwidth for access to the ftp-data port. Now I have two
questions:

1.) As you can see below, I allowed 56Kbit for ftp-data transfers. This
results in about 12KB/s. When I enter 64Kbit, full speed is consumed. Am
I doing something wrong here? I thought 96Kbit should result in 12K/s
and 128Kbit were full speed.

2.) How can I allow ftp-data transfers to get files at 128KBit speed,
when there is no other traffic on the line? I want to have ftp transfers
at a sufficient low priority, so that upstream and downstream from and
to internal hosts are not affected by my ftp-servers traffic.


This is the script I wrote:
---------------------------------------&gt;
ALLOT=&quot;1492&quot;
AVPKT=&quot;1000&quot;
DEV=&quot;ppp0&quot;
MAXBURST=&quot;20&quot;
MAXRATE=&quot;128Kbit&quot;
PERTURB=&quot;15&quot;

tc qdisc del dev ${DEV} root handle 10:
tc qdisc add dev ${DEV} root handle 10: cbq bandwidth ${MAXRATE} avpkt
${AVPKT}

tc class add dev ${DEV} parent 10:0 classid 10:1 cbq bandwidth
${MAXRATE} \
        rate ${MAXRATE} allot ${ALLOT} prio 8 maxburst ${MAXBURST} avpkt
${AVPKT}

tc class add dev ${DEV} parent 10:1 classid 10:200 cbq bandwidth
${MAXRATE} \
        rate 56Kbit allot ${ALLOT} prio 5 maxburst ${MAXBURST} avpkt
${AVPKT} \
        bounded

tc qdisc add dev ${DEV} parent 10:200 sfq quantum ${ALLOT}b perturb
${PERTURB}

tc filter add dev ${DEV} parent 10:0 protocol ip prio 25 \
        u32 match ip sport 20 0xFFFF flowid 10:200
&lt;---------------------------------------

Thanks in advance,
Andreas


</PRE>

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

end of thread, other threads:[~2000-10-28 12:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-27 17:58 [LARTC] question about "rate" Andreas
2000-10-27 20:54 ` Ing.Rodrigo
2000-10-28 12:55 ` bert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.