All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] I dont want to shape a host
@ 2006-04-10 20:21 Nataniel Klug
  2006-04-11  1:18 ` Martin A. Brown
  2006-04-11 15:58 ` Nataniel Klug
  0 siblings, 2 replies; 3+ messages in thread
From: Nataniel Klug @ 2006-04-10 20:21 UTC (permalink / raw)
  To: lartc

    Hello all,

    I am still reading about my QoS rules and I need that one of my 
servers (that is into my LAN but has an routing ip address) did not get 
into the qos rules I have. So I want that all traffic coming or going to 
that specifc host did not get shapped by any traffic control and do not 
get even into a QoS class. How can I do this?

Att,

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

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

* Re: [LARTC] I dont want to shape a host
  2006-04-10 20:21 [LARTC] I dont want to shape a host Nataniel Klug
@ 2006-04-11  1:18 ` Martin A. Brown
  2006-04-11 15:58 ` Nataniel Klug
  1 sibling, 0 replies; 3+ messages in thread
From: Martin A. Brown @ 2006-04-11  1:18 UTC (permalink / raw)
  To: lartc


Nataniel,

There are probably a handful of ways to solve this problem.  Two pop 
to mind right away.

 : I am still reading about my QoS rules and I need that one of my 
 : servers (that is into my LAN but has an routing ip address) did 
 : not get into the qos rules I have. So I want that all traffic 
 : coming or going to that specifc host did not get shapped by any 
 : traffic control and do not get even into a QoS class. How can I 
 : do this?

Option A:  specify "default 0" in your HTB qdisc declaration
==============================
If you install the HTB qdisc with a "default 0" parameter, you are 
telling HTB to dequeue unclassified packets as fast as the hardware 
will accept the packets.  Here's an example:

  tc qdisc add dev eth0 root handle 1:0 htb default 0

Now, any unclassified packets will simply be dequeued as fast as 
your hardware can do it.  If you are trying to remain the bottleneck 
between you and the Internet, it is quite likely that this 
configuration will defeat your goal.


Option B:  make a deeper HTB tree
==============================
Build the following:

  class 1:0, rate = ceil = hardware maximum bitrate
  class 2:0, rate = low, ceil = hardware maximum bitrate
  class 3:0, rate = low, ceil = maximum for everybody else



 root             +--- HTB 2:0 --- your "routing ip" (public 
  |              /                 server?) goes here 
  +-- HTB 1:0 --- 
                 \
                  +--- HTB 3:0
                          |
                          +--- HTB 3:1
                          +--- HTB 3:2
                          +--- HTB 3:3
                          |        ...
                          +--- HTB 3:N

Now, you simply attach your filters to 1:0, like you did before, and 
put all traffic for your "routing ip" into the 2:0 class.  If the 
rate on class 2:0 stays "low", but its ceiling is the same as the 
rate/ceil on 1:0, then you'll effectively get borrowing up to 
maximum available throughput for HTB 2:0.

Good luck,

-Martin

-- 
Martin A. Brown --- Wonderfrog Enterprises --- martin@wonderfrog.net
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] I dont want to shape a host
  2006-04-10 20:21 [LARTC] I dont want to shape a host Nataniel Klug
  2006-04-11  1:18 ` Martin A. Brown
@ 2006-04-11 15:58 ` Nataniel Klug
  1 sibling, 0 replies; 3+ messages in thread
From: Nataniel Klug @ 2006-04-11 15:58 UTC (permalink / raw)
  To: lartc

Martin,

Thanks for the answer. I will study your topology and try to make this 
happens.

Att,

Nataniel Klug

Martin A. Brown escreveu:
> Nataniel,
>
> There are probably a handful of ways to solve this problem.  Two pop 
> to mind right away.
>
>  : I am still reading about my QoS rules and I need that one of my 
>  : servers (that is into my LAN but has an routing ip address) did 
>  : not get into the qos rules I have. So I want that all traffic 
>  : coming or going to that specifc host did not get shapped by any 
>  : traffic control and do not get even into a QoS class. How can I 
>  : do this?
>
> Option A:  specify "default 0" in your HTB qdisc declaration
> ==============================
> If you install the HTB qdisc with a "default 0" parameter, you are 
> telling HTB to dequeue unclassified packets as fast as the hardware 
> will accept the packets.  Here's an example:
>
>   tc qdisc add dev eth0 root handle 1:0 htb default 0
>
> Now, any unclassified packets will simply be dequeued as fast as 
> your hardware can do it.  If you are trying to remain the bottleneck 
> between you and the Internet, it is quite likely that this 
> configuration will defeat your goal.
>
>
> Option B:  make a deeper HTB tree
> ==============================
> Build the following:
>
>   class 1:0, rate = ceil = hardware maximum bitrate
>   class 2:0, rate = low, ceil = hardware maximum bitrate
>   class 3:0, rate = low, ceil = maximum for everybody else
>
>
>
>  root             +--- HTB 2:0 --- your "routing ip" (public 
>   |              /                 server?) goes here 
>   +-- HTB 1:0 --- 
>                  \
>                   +--- HTB 3:0
>                           |
>                           +--- HTB 3:1
>                           +--- HTB 3:2
>                           +--- HTB 3:3
>                           |        ...
>                           +--- HTB 3:N
>
> Now, you simply attach your filters to 1:0, like you did before, and 
> put all traffic for your "routing ip" into the 2:0 class.  If the 
> rate on class 2:0 stays "low", but its ceiling is the same as the 
> rate/ceil on 1:0, then you'll effectively get borrowing up to 
> maximum available throughput for HTB 2:0.
>
> Good luck,
>
> -Martin
>
>   
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2006-04-11 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 20:21 [LARTC] I dont want to shape a host Nataniel Klug
2006-04-11  1:18 ` Martin A. Brown
2006-04-11 15:58 ` Nataniel Klug

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.