All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Oberritter andreas@oberritter.de
To: lartc@vger.kernel.org
Subject: [LARTC] question about "rate"
Date: Fri, 27 Oct 2000 17:58:48 +0000	[thread overview]
Message-ID: <marc-lartc-98373938216857@msgid-missing> (raw)

<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>

             reply	other threads:[~2000-10-27 17:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-27 17:58 Andreas [this message]
2000-10-27 20:54 ` [LARTC] question about "rate" Ing.Rodrigo
2000-10-28 12:55 ` bert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98373938216857@msgid-missing \
    --to=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.