All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Re: Simple shaping question
@ 2006-01-11 15:05 Jonas Jasas
  2006-01-11 15:36 ` Diego Cabrero
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jonas Jasas @ 2006-01-11 15:05 UTC (permalink / raw)
  To: lartc

Thank you for your help!
This is my modified rules, but that work exactly as before :~/

/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1 htb default 20 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 890Kbit
ceil 900Kbit
/sbin/tc class add dev eth0 parent 1:2 classid 1:20 htb rate 10Kbit ceil 900Kbit
/sbin/tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
/sbin/tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
ip sport 80 0xffff flowid 1:10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
ip dport 80 0xffff flowid 1:10

Are these rules OK or I am missing something again? Can anyone show me
working example of similar rules.

Thanks again for help!
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] Re: Simple shaping question
  2006-01-11 15:05 [LARTC] Re: Simple shaping question Jonas Jasas
@ 2006-01-11 15:36 ` Diego Cabrero
  2006-01-12  7:09 ` Dmytro O. Redchuk
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Diego Cabrero @ 2006-01-11 15:36 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/html, Size: 4026 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] Re: Simple shaping question
  2006-01-11 15:05 [LARTC] Re: Simple shaping question Jonas Jasas
  2006-01-11 15:36 ` Diego Cabrero
@ 2006-01-12  7:09 ` Dmytro O. Redchuk
  2006-01-12  8:48 ` Jonas Jasas
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Dmytro O. Redchuk @ 2006-01-12  7:09 UTC (permalink / raw)
  To: lartc

On Wed, Jan 11, 2006 at 05:05:10PM +0200, Jonas Jasas wrote:
> Thank you for your help!
> This is my modified rules, but that work exactly as before :~/
> 
> /sbin/tc qdisc del dev eth0 root
The problem is that eth0 is connected to Internet?

Do you really want to shape outgoing (ACK?) packets?

> 
> Thanks again for help!
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

-- 
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* [LARTC] Re: Simple shaping question
  2006-01-11 15:05 [LARTC] Re: Simple shaping question Jonas Jasas
  2006-01-11 15:36 ` Diego Cabrero
  2006-01-12  7:09 ` Dmytro O. Redchuk
@ 2006-01-12  8:48 ` Jonas Jasas
  2006-01-12  9:16 ` Diego Cabrero
  2006-01-12  9:30 ` Dmytro O. Redchuk
  4 siblings, 0 replies; 6+ messages in thread
From: Jonas Jasas @ 2006-01-12  8:48 UTC (permalink / raw)
  To: lartc

On 1/12/06, Dmytro O. Redchuk <dor@ldc.net> wrote:
> The problem is that eth0 is connected to Internet?
Yes it is connected to internet, but what is the difference if it is
connected to internet or LAN?

> Do you really want to shape outgoing (ACK?) packets?
Yes, I have router and web server in one box. So I want that
outgoing/incoming  office traffic and web servers traffic would be
with the high priority.

In what place of iptables this htb traffic control is handled?
My rules are ok when I set the same rate and ceil.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] Re: Simple shaping question
  2006-01-11 15:05 [LARTC] Re: Simple shaping question Jonas Jasas
                   ` (2 preceding siblings ...)
  2006-01-12  8:48 ` Jonas Jasas
@ 2006-01-12  9:16 ` Diego Cabrero
  2006-01-12  9:30 ` Dmytro O. Redchuk
  4 siblings, 0 replies; 6+ messages in thread
From: Diego Cabrero @ 2006-01-12  9:16 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/html, Size: 4115 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] Re: Simple shaping question
  2006-01-11 15:05 [LARTC] Re: Simple shaping question Jonas Jasas
                   ` (3 preceding siblings ...)
  2006-01-12  9:16 ` Diego Cabrero
@ 2006-01-12  9:30 ` Dmytro O. Redchuk
  4 siblings, 0 replies; 6+ messages in thread
From: Dmytro O. Redchuk @ 2006-01-12  9:30 UTC (permalink / raw)
  To: lartc

On Thu, Jan 12, 2006 at 10:48:13AM +0200, Jonas Jasas wrote:
> On 1/12/06, Dmytro O. Redchuk <dor@ldc.net> wrote:
> > The problem is that eth0 is connected to Internet?
> Yes it is connected to internet, but what is the difference if it is
> connected to internet or LAN?
> 
> > Do you really want to shape outgoing (ACK?) packets?
> Yes, I have router and web server in one box. So I want that
> outgoing/incoming  office traffic and web servers traffic would be
> with the high priority.
> 
> In what place of iptables this htb traffic control is handled?
> My rules are ok when I set the same rate and ceil.

Then, sorry, I didn't understand which traffic you would like to control
and in which way. And still can not understand.

Can you draw a picture? Let's say, a client (who wants to download), a
server (who offers web or ftp services), a box (who should perform a
traffic control), thier interfaces...

-- 
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2006-01-12  9:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11 15:05 [LARTC] Re: Simple shaping question Jonas Jasas
2006-01-11 15:36 ` Diego Cabrero
2006-01-12  7:09 ` Dmytro O. Redchuk
2006-01-12  8:48 ` Jonas Jasas
2006-01-12  9:16 ` Diego Cabrero
2006-01-12  9:30 ` Dmytro O. Redchuk

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.