Newbie questions
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 7 lines · Carlos del Castillo
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.
Quoted 2 lines
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 ?
Quoted 4 lines
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
Signature · 7 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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
--
[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 11 lines · Carlos del Castillo
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 1 line · Patrick McHardy
devik.cdi.cz/~patrick/~imq
Sorry, the address is luxik.cdi.cz/~patrick/imq :)
bye,
patrick
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 12 lines · Carlos del Castillo
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.
Quoted 1 line
Any suggestions?
You cannot control what comes to you, but doing some work in the internal interface may help, as Patrick has noted.
Regards.
Signature · 10 lines
... ___________________________________________________________ ... | /| |\ | | /-| Pedro Larroy Tovar. PiotR | http://omega.resa.es/piotr |-\ | | /--| No MS-Office attachments please. |--\ | o-|--| e-mail: [email protected] |--|-o | \-| finger [email protected] for public key and info |-/ | |...\|_________________________________________________________|/...| _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Carlos del Castillo
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.
Quoted 7 lines
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
Signature · 7 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] newbie questions
In reply to Carlos del CastilloHi,
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
Signature · 4 lines
Using M2, Opera's new e-mail client. _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] newbie questions
In reply to Carlos del CastilloQuoted 9 lines · Graste
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
Quoted 4 lines
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.
Quoted 4 lines
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] newbie questions
In reply to Carlos del CastilloHi 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
Re: [LARTC] newbie questions
In reply to Carlos del CastilloQuoted 10 lines · Paul Albert
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.
Quoted 7 lines
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.
Quoted 5 lines
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
Signature · 7 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/