Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Diego Cabrero <diego.cabrero@e-attico.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Simple shaping question
Date: Tue, 10 Jan 2006 17:36:08 +0000	[thread overview]
Message-ID: <43C3F088.5020001@e-attico.net> (raw)
In-Reply-To: <ba84d58c0601100922r3112351fg2d787cb51c6eead0@mail.gmail.com>

Try chosing a lower limit for the 80th port at least 900-10, then add a 
sfq qdisc down the 1:10, 1:20 and 1:30 classes like this:

tc qdisc add dev eth0 parent 1:x0 handle 1: sfq perturb 10

It will work, i had that kind of problem before.

Regards.

-Diego




Jonas Jasas escribió:

>I have linux box (does nat and firewall for small network) connected
>to dsl. I want to set priorities for protocols (that nothing could
>disturb web browsing). This is my rules (eth0 connected to internet):
>
>/sbin/tc qdisc del dev eth0 root
>/sbin/tc qdisc add dev eth0 root handle 1 htb default 30 r2q 100
>
>/sbin/tc class add dev eth0 parent 1: classid 1:2 htb rate 900Kbit burst 15k
>
>/sbin/tc class add dev eth0 parent 1:2 classid 1:10 htb rate 900Kbit
>ceil 900Kbit
>/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
>ip sport 80 0xffff classid 1:10
>/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
>ip dport 80 0xffff classid 1:10
>
>/sbin/tc class add dev eth0 parent 1:2 classid 1:20 htb rate 10Kbit ceil 900Kbit
>
>I start to download from ftp it uses all bandwidth (as it should be),
>when I start to download on web, web and ftp rated become more or less
>equal :/ . I want that ftp traffic would be limited to 10kbit and all
>other bandwidth would be left for web trafic.
>
>What is wrong with my rules?
>Thank you for advice!
>_______________________________________________
>LARTC mailing list
>LARTC@mailman.ds9a.nl
>http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>  
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  reply	other threads:[~2006-01-10 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-10 17:22 [LARTC] Simple shaping question Jonas Jasas
2006-01-10 17:36 ` Diego Cabrero [this message]
2006-01-10 17:43 ` Diego Cabrero

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=43C3F088.5020001@e-attico.net \
    --to=diego.cabrero@e-attico.net \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox