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
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
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/
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
Patrick McHardy wrote:> devik.cdi.cz/~patrick/~imqSorry, the address is luxik.cdi.cz/~patrick/imq :) bye, patrick
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 |-/ | |...\|_________________________________________________________|/...|
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