Hi All, I''m new on this list. I''m the admin of the server in our house. We have a 768k/128k DSL line. There are 11 flats using this bandwith without any control. Some of them are "high donwloader" and the browsing speed is decreasing a lot when the downloaders are waken up. :( I have an idea how the downloaders and the browsers can use this bandwith without any conflict. My question is: Is it possible with iproute2 ? My idea: I define a bandwith to downloaders (maybe 512k). If any of the downloading thread exceed a limit (maybe 4Mbyte) it passed into the 512k bandwith. How can I do this trick? Thank you for your help in advice, Gabor. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wednesday 06 November 2002 11:09, Gabor Csuri wrote:> Hi All, > > I''m new on this list. I''m the admin of the server in our house. > We have a 768k/128k DSL line. > There are 11 flats using this bandwith without any control. > Some of them are "high donwloader" and the browsing speed is decreasing a > lot when the downloaders are waken up. :( > I have an idea how the downloaders and the browsers can use this bandwith > without any conflict. > My question is: Is it possible with iproute2 ? > My idea: I define a bandwith to downloaders (maybe 512k). > If any of the downloading thread exceed a limit (maybe 4Mbyte) it passed > into the 512k bandwith. > How can I do this trick?There is a length match in iptables. But I don''t know if it will work. You can also use squid and uses the delay pools in squid. But why don''t you put all the bandwidth eating traffic in 1 class and give it a lower bandwith? If there is no other traffic, they can use the full link, but if there is other traffic, other traffis is served first. 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/
> > Hi All, > > > > I''m new on this list. I''m the admin of the server in our house. > > We have a 768k/128k DSL line. > > There are 11 flats using this bandwith without any control. > > Some of them are "high donwloader" and the browsing speed is > decreasing a > > lot when the downloaders are waken up. :( > > I have an idea how the downloaders and the browsers can use > this bandwith > > without any conflict. > > My question is: Is it possible with iproute2 ? > > My idea: I define a bandwith to downloaders (maybe 512k). > > If any of the downloading thread exceed a limit (maybe 4Mbyte) it passed > > into the 512k bandwith. > > How can I do this trick? > > Go to the LARTC website and look at the WonderShaper script. It > does pretty > much what you want. Just set the port list to what you consider > "downloading" (probably ftp and ftpdata). I use this to keep my downloads > from interfering with my roommate''s gaming.Hi Kenneth, I''ve taken a look to wondershaper and I think this is a half-solution for me. I can set up priority by port-number and other properties but I think I can''t separate packet which is a part of a 70KB gif image (part of a web page) or it''s a part of a 800MB CD image coming from a website also. This is my problem. Thanks, Gabor. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wednesday 06 November 2002 20:49, Gabor Csuri wrote:> > > Hi All, > > > > > > I''m new on this list. I''m the admin of the server in our house. > > > We have a 768k/128k DSL line. > > > There are 11 flats using this bandwith without any control. > > > Some of them are "high donwloader" and the browsing speed is > > > > decreasing a > > > > > lot when the downloaders are waken up. :( > > > I have an idea how the downloaders and the browsers can use > > > > this bandwith > > > > > without any conflict. > > > My question is: Is it possible with iproute2 ? > > > My idea: I define a bandwith to downloaders (maybe 512k). > > > If any of the downloading thread exceed a limit (maybe 4Mbyte) it > > > passed into the 512k bandwith. > > > How can I do this trick? > > > > Go to the LARTC website and look at the WonderShaper script. It > > does pretty > > much what you want. Just set the port list to what you consider > > "downloading" (probably ftp and ftpdata). I use this to keep my downloads > > from interfering with my roommate''s gaming. > > Hi Kenneth, > I''ve taken a look to wondershaper and I think this is a half-solution for > me. > I can set up priority by port-number and other properties but I think I > can''t separate packet which is a part of a 70KB gif image (part of a web > page) or it''s a part of a 800MB CD image coming from a website also. This > is my problem.You have to use some tricks if you want to do this. See my previous post. I think the delay pools of squid are the best solution. The problem is that tc nor iptables has an idea about what''s transferred. Squids does. 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/