From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] overlimit in tc statistics
Date: Mon, 07 Jul 2003 15:38:46 +0000 [thread overview]
Message-ID: <marc-lartc-105759238813257@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105731795218938@msgid-missing>
> O'k. I have Debian stable Linux router to Internet.
kernel version?
> I want manage Internet traffic on it:
> Increase priority and speed of some protocols and decrease for others.
> I know that I can change this only for outgoing packets.
> First question:
> If I decrease priority and speed for local network interface
> does this mean that priority and speed for Internet interface
> for the same protocol also decreases?
> For example:
> eth0 local network
> eth1 Internet
>
> tc qdisc del dev eth0 root
> tc qdisc add dev eth0 root handle 1 htb default 99
You don't have a 1:99 class. It's best if you have a 1:99 class so all
packets not matched by any filters are placed in a class.
> tc class add dev eth0 parent 1: classid 1:2 htb rate 256Mbit burst 15k
Do you have a 256Mbit link? And 15k is way too low. Remove all burst
parameters so htb can calculate the minimum burst for you.
> tc class add dev eth0 parent 1:2 classid 1:10 htb rate 64Kbit ceil
> 128Kbit burst 15k prio 4
> tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10
> tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip
> sport 80 0xffff match ip dst 192.168.1.0/24 classid 1:10
>
> Does this means that incoming traffic on eth1 to port 80 will be in
> 64Kbit-128Kbit with prio 4?
Yes.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-07-07 15:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-04 11:18 [LARTC] overlimit in tc statistics Sergey Smirnov
2003-07-07 10:31 ` Stef Coene
2003-07-07 13:31 ` Sergey Smirnov
2003-07-07 15:38 ` Stef Coene [this message]
2003-07-07 16:15 ` Sergey Smirnov
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-105759238813257@msgid-missing \
--to=stef.coene@docum.org \
--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 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.