All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Newbie questions
@ 2002-04-20 20:54 Carlos del Castillo
  2002-04-20 21:12 ` Stef Coene
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Carlos del Castillo @ 2002-04-20 20:54 UTC (permalink / raw)
  To: lartc

Hello there, I have been reading a lot of things regarding tc and
diffserv but I'm little confused.

I want to control traffic over my DSL connection. I would like to have
different kind of services. First of all I would want that any machine
behind my linux box can use all the downstream bandwidth onless there
are no traffic for other machines.

Also I would like to make that the traffic from some nets have a high
priority, and everything else low priority.

Alse I would like to set some machine behind my linux box to have high
priority.

Any ideas? or point on how tos or examples?

Thank you very much
Carlos del Castillo
capc75 at mac dot com






_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
@ 2002-04-20 21:12 ` Stef Coene
  2002-04-21 21:42 ` Carlos del Castillo
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2002-04-20 21:12 UTC (permalink / raw)
  To: lartc

On Saturday 20 April 2002 22:54, Carlos del Castillo wrote:
> Hello there, I have been reading a lot of things regarding tc and
> diffserv but I'm little confused.
>
> I want to control traffic over my DSL connection. I would like to have
> different kind of services. First of all I would want that any machine
> behind my linux box can use all the downstream bandwidth onless there
> are no traffic for other machines.
No problem.

> Also I would like to make that the traffic from some nets have a high
> priority, and everything else low priority.
What do you mean with high prioriy?  Higher bandwidth ?

> Alse I would like to set some machine behind my linux box to have high
> priority.
>
> Any ideas? or point on how tos or examples?
Just try to understand how you can make a htb/cbq hierarchy and try to build 
your own setup.  Not so difficult :)
I wrote some docs/scripts, you can find them on http://www.docum.org/

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
  2002-04-20 21:12 ` Stef Coene
@ 2002-04-21 21:42 ` Carlos del Castillo
  2002-04-21 22:03 ` Patrick McHardy
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Carlos del Castillo @ 2002-04-21 21:42 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 2046 bytes --]

Thanks, I have read your docs and found the link to wonder shaper. As I
understood I can give preference to some outgoing traffic. And with the
ingress qdisc I can avoid the remote queue on my ISP. 

But how can I make that some incoming traffic have some preference than
other. For example, if I'm downloading something from my company server
I want that this traffic comes first than an anonymous ftp. After I have
finished downloading something from my company server I want that the
ftp uses the available bandwidth. Or by internals IP's I want  that the
traffic downloading  to my laptop computer to have preference than the
one going to my desktop PC. 

Any suggestions?


Thanks!


    On Saturday 20 April 2002 22:54, Carlos del Castillo wrote:
    > Hello there, I have been reading a lot of things regarding tc and
    > diffserv but I'm little confused.
    >
    > I want to control traffic over my DSL connection. I would like to have
    > different kind of services. First of all I would want that any machine
    > behind my linux box can use all the downstream bandwidth onless there
    > are no traffic for other machines.
    No problem.
    
    > Also I would like to make that the traffic from some nets have a high
    > priority, and everything else low priority.
    What do you mean with high prioriy?  Higher bandwidth ?
    
    > Alse I would like to set some machine behind my linux box to have high
    > priority.
    >
    > Any ideas? or point on how tos or examples?
    Just try to understand how you can make a htb/cbq hierarchy and try to build 
    your own setup.  Not so difficult :)
    I wrote some docs/scripts, you can find them on http://www.docum.org/
    
    Stef
    
    -- 
    
    stef.coene@docum.org
     "Using Linux as bandwidth manager"
         http://www.docum.org/
         #lartc @ irc.openprojects.net
    _______________________________________________
    LARTC mailing list / LARTC@mailman.ds9a.nl
    http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
    

[-- Attachment #2: Type: text/html, Size: 4257 bytes --]

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

* Re: [LARTC] Newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
  2002-04-20 21:12 ` Stef Coene
  2002-04-21 21:42 ` Carlos del Castillo
@ 2002-04-21 22:03 ` Patrick McHardy
  2002-04-21 22:05 ` Patrick McHardy
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Patrick McHardy @ 2002-04-21 22:03 UTC (permalink / raw)
  To: lartc

Carlos del Castillo wrote:
> Thanks, I have read your docs and found the link to wonder shaper. As I 
> understood I can give preference to some outgoing traffic. And with the 
> ingress qdisc I can avoid the remote queue on my ISP.
> 
> But how can I make that some incoming traffic have some preference than 
> other. For example, if I'm downloading something from my company server 
> I want that this traffic comes first than an anonymous ftp. After I have 
> finished downloading something from my company server I want that the 
> ftp uses the available bandwidth. Or by internals IP's I want  that the 
> traffic downloading  to my laptop computer to have preference than the 
> one going to my desktop PC.

It depends .. if no downloads are made from the traffic shaping router
itself you can just shape traffic going out your internal interface 
which is in principle the same as shaping traffic coming in on your 
external interface (as long as no traffic from outside is going to your 
router). Otherwise you could try imq (please wait until its stable) at 
devik.cdi.cz/~patrick/~imq

bye,
patrick

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
                   ` (2 preceding siblings ...)
  2002-04-21 22:03 ` Patrick McHardy
@ 2002-04-21 22:05 ` Patrick McHardy
  2002-04-21 23:03 ` PiotR
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Patrick McHardy @ 2002-04-21 22:05 UTC (permalink / raw)
  To: lartc

Patrick McHardy wrote:

> devik.cdi.cz/~patrick/~imq

Sorry, the address is luxik.cdi.cz/~patrick/imq :)

bye,
patrick

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
                   ` (3 preceding siblings ...)
  2002-04-21 22:05 ` Patrick McHardy
@ 2002-04-21 23:03 ` PiotR
  2002-04-22  7:24 ` Stef Coene
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: PiotR @ 2002-04-21 23:03 UTC (permalink / raw)
  To: lartc

On Sun, Apr 21, 2002 at 04:42:37PM -0500, Carlos del Castillo wrote:
> Thanks, I have read your docs and found the link to wonder shaper. As I
> understood I can give preference to some outgoing traffic. And with the
> ingress qdisc I can avoid the remote queue on my ISP. 
> 
> But how can I make that some incoming traffic have some preference than
> other. For example, if I'm downloading something from my company server
> I want that this traffic comes first than an anonymous ftp. After I have
> finished downloading something from my company server I want that the
> ftp uses the available bandwidth. Or by internals IP's I want  that the
> traffic downloading  to my laptop computer to have preference than the
> one going to my desktop PC. 
> 
> Any suggestions?

You cannot control what comes to you, but doing some work in the
internal interface may help, as Patrick has noted.

Regards.


-- 
 ... ___________________________________________________________ ...
|   /|                                                         |\   | 
|  /-| Pedro Larroy Tovar. PiotR | http://omega.resa.es/piotr  |-\  |
| /--|            No MS-Office attachments please.             |--\ |
o-|--|              e-mail: piotr@omega.resa.es                |--|-o 
|  \-|    finger piotr@omega.resa.es for public key and info   |-/  | 
|...\|_________________________________________________________|/...| 
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
                   ` (4 preceding siblings ...)
  2002-04-21 23:03 ` PiotR
@ 2002-04-22  7:24 ` Stef Coene
  2003-05-05 17:45 ` [LARTC] newbie questions Graste
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2002-04-22  7:24 UTC (permalink / raw)
  To: lartc

On Sunday 21 April 2002 23:42, Carlos del Castillo wrote:
> Thanks, I have read your docs and found the link to wonder shaper. As I
> understood I can give preference to some outgoing traffic. And with the
> ingress qdisc I can avoid the remote queue on my ISP.
The ingress qdisc can not so shape as powerfull as you can do with the 
outgoing bandwidth.  But if you have a box between the internet and your LAN 
and there is only internet traffic (typical a linux firewall :), you can 
shape on both NIC's.  So the incoming traffic of the internet NIC can be 
shaped as outgoing bandwidth on the LAN- NIC.

> But how can I make that some incoming traffic have some preference than
> other. For example, if I'm downloading something from my company server
> I want that this traffic comes first than an anonymous ftp. After I have
> finished downloading something from my company server I want that the
> ftp uses the available bandwidth. Or by internals IP's I want  that the
> traffic downloading  to my laptop computer to have preference than the
> one going to my desktop PC.
You can give the laptop 80% of the bandwidth and the remaining 20% to the 
other computers in the network.  When you are not downloading, the rest gets 
100% (and vice versa).  But as soon you start a download, you will get 80% of 
the bandwidth.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* [LARTC] newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
                   ` (5 preceding siblings ...)
  2002-04-22  7:24 ` Stef Coene
@ 2003-05-05 17:45 ` Graste
  2003-05-05 18:10 ` Stef Coene
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Graste @ 2003-05-05 17:45 UTC (permalink / raw)
  To: lartc

Hi,

since this is my first post to this mailing list, I want to start with some 
smaller questions: Are there any pages with information about the tc filter 
command and its uses? I found no really helpful ressources when it comes to 
u32 matches etc. Or are there man-pages available anywhere? I want to 
filter clients by their hardware address (mac address) not ip:

tc filter add dev eth1 protocol ip parent 1:0 u32 match ???

Is it only possible to check ip, icmp, tcp or udp protocol with the match 
statement? Or could I determine the hardware address too? That would be 
nice to know - because otherwise I think I have to use iptables to mark 
packets, don't I?
Next (short) thing: Do the digits of the integer values that I use as 
identifiers for classes using htb need to have some sort of "order"? Or is 
the hierarchical order only given by the "parent x:y" statement (as I 
expect)?

Thanks in advance.

Graste


-- 
Using M2, Opera's new e-mail client.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
                   ` (6 preceding siblings ...)
  2003-05-05 17:45 ` [LARTC] newbie questions Graste
@ 2003-05-05 18:10 ` Stef Coene
  2004-03-25 21:00 ` Paul Albert
  2004-03-28 15:46 ` Stef Coene
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2003-05-05 18:10 UTC (permalink / raw)
  To: lartc

On Monday 05 May 2003 19:45, Graste wrote:
> Hi,
>
> since this is my first post to this mailing list, I want to start with some
> smaller questions: Are there any pages with information about the tc filter
> command and its uses? I found no really helpful ressources when it comes to
> u32 matches etc. Or are there man-pages available anywhere? I want to
> filter clients by their hardware address (mac address) not ip:
>
> tc filter add dev eth1 protocol ip parent 1:0 u32 match ???
The only doc I have is 
http://www.docum.org/stef.coene/qos/docs/u32-filter.html

> Is it only possible to check ip, icmp, tcp or udp protocol with the match
> statement? Or could I determine the hardware address too? That would be
> nice to know - because otherwise I think I have to use iptables to mark
> packets, don't I?
I'm not an u32 specialist my self.  But you can use any bit in the packet to 
match.

> Next (short) thing: Do the digits of the integer values that I use as
> identifiers for classes using htb need to have some sort of "order"? Or is
> the hierarchical order only given by the "parent x:y" statement (as I
> expect)?
The htb numbering has no special meaning.  Only the parent option is 
important.

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/

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

* [LARTC] newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
                   ` (7 preceding siblings ...)
  2003-05-05 18:10 ` Stef Coene
@ 2004-03-25 21:00 ` Paul Albert
  2004-03-28 15:46 ` Stef Coene
  9 siblings, 0 replies; 11+ messages in thread
From: Paul Albert @ 2004-03-25 21:00 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

Hi all - 

 

I've been reading for the past day or so about the traffic control that
is built into linux.  I have a situation that I have not seen
documented, and I'm wondering how to handle this.

 

I would like to have a group of users get a certain amount of bandwidth
in both inbound and outbound directions on our firewalling bridge.  I
know that I can group users together to the same qdisc by marking their
packets through iptables to enforce egress qos.  However, I'm not sure
how to go about doing this in an inbound direction.  Initially, I was
thinking that I could use HTB, but this doesn't allow me to shape in
both directions (correct?).

 

The other part that is a bit confusing to me is that I would like to
aggregate both inbound and outbound traffic to a single number, say
1Mbps.  Could I use IMQ to tie the interfaces eth0 and eth1 together to
achieve this?  Is there another solution that would satisfy this
requirement?

 

Any help is appreciated ...

 

Paul

 


[-- Attachment #2: Type: text/html, Size: 3557 bytes --]

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

* Re: [LARTC] newbie questions
  2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
                   ` (8 preceding siblings ...)
  2004-03-25 21:00 ` Paul Albert
@ 2004-03-28 15:46 ` Stef Coene
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2004-03-28 15:46 UTC (permalink / raw)
  To: lartc

On Thursday 25 March 2004 22:00, Paul Albert wrote:
> Hi all -
>
>
>
> I've been reading for the past day or so about the traffic control that
> is built into linux.  I have a situation that I have not seen
> documented, and I'm wondering how to handle this.
>
>
>
> I would like to have a group of users get a certain amount of bandwidth
> in both inbound and outbound directions on our firewalling bridge.  I
> know that I can group users together to the same qdisc by marking their
> packets through iptables to enforce egress qos.  However, I'm not sure
> how to go about doing this in an inbound direction.  Initially, I was
> thinking that I could use HTB, but this doesn't allow me to shape in
> both directions (correct?).
Indeed.  You can only shape outgoing traffic.  But you can use a router or a 
bridge and shape on both nterfaces.

> The other part that is a bit confusing to me is that I would like to
> aggregate both inbound and outbound traffic to a single number, say
> 1Mbps.  Could I use IMQ to tie the interfaces eth0 and eth1 together to
> achieve this?  Is there another solution that would satisfy this
> requirement?
You can indeed use IMQ, but it can crash rour system (I don't exactly know 
what can go wrong, but I think you can not drop locally generated packets in 
the IMQ device)

Stef

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-03-28 15:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-20 20:54 [LARTC] Newbie questions Carlos del Castillo
2002-04-20 21:12 ` Stef Coene
2002-04-21 21:42 ` Carlos del Castillo
2002-04-21 22:03 ` Patrick McHardy
2002-04-21 22:05 ` Patrick McHardy
2002-04-21 23:03 ` PiotR
2002-04-22  7:24 ` Stef Coene
2003-05-05 17:45 ` [LARTC] newbie questions Graste
2003-05-05 18:10 ` Stef Coene
2004-03-25 21:00 ` Paul Albert
2004-03-28 15:46 ` Stef Coene

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.