i''ve isolated a band of 5k for one of my friends in the network so he can play counter-strike .. if i don''t use the isolated parameter he will have a bad ping since his class will borrow to another classes ..
On Friday 24 January 2003 19:57, Daniel Ditu wrote:> i''ve isolated a band of 5k for one of my friends in the network so he can > play counter-strike .. if i don''t use the isolated parameter he will have a > bad ping since his class will borrow to another classes ..I tried it a few times (you can find the test results somewhere on www.docum.org). Using the isolated parameter gave me strange testing results. Can you post your script so I can take a look at it ? 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 there,> > i''ve isolated a band of 5k for one of my friends in the network so he can > > play counter-strike .. if i don''t use the isolated parameter he will have a > > bad ping since his class will borrow to another classes .. > Can you post your script so I can take a look at it ?I tried to reserve bandwidth for cs, too, but it didn''t really work. So if you work something out I would apreciate it if you post it here ;) thanks and best regards Sebastian -- Sebastian ''spax'' Pape | Just because you''re paranoid doesn''t mean THEY mailto: sebastian@p-a-p-e.de | are not out to get you. gpg: http://p-a-p-e.de/gpg.asc | --- Do you want to know more? http://www.p-a-p-e.de/ --- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Friday 24 January 2003 21:21, Sebastian ''spax'' Pape wrote:> hi there, > > > > i''ve isolated a band of 5k for one of my friends in the network so he > > > can play counter-strike .. if i don''t use the isolated parameter he > > > will have a bad ping since his class will borrow to another classes .. > > > > Can you post your script so I can take a look at it ? > > I tried to reserve bandwidth for cs, too, but it didn''t really work. So if > you work something out I would apreciate it if you post it here ;)Reserving bandwidth for something is not so difficult. If you have a 100kbps link and you want a minimum of 10kbps for cs, you have to create 2 class : 100 / \ 10 90 100 : rate = ceil = 100kbps 10 : rate = 10kbps, celi = 100kbps 90 : rate = 90kbps, ceil = 100kbps The 10kbps class will always get at least 10kbps. If it''s a low rate class, you can even limit the 90kbps to 90kbps. So the remaining 10kbps is always there for the 10kbps class. 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 stef,> Reserving bandwidth for something is not so difficult. If you have a 100kbps > link and you want a minimum of 10kbps for cs, you have to create 2 class :[...]> The 10kbps class will always get at least 10kbps. If it''s a low rate class, > you can even limit the 90kbps to 90kbps. So the remaining 10kbps is always > there for the 10kbps class.I already shape my traffic with htb and it works pretty well. But I think I ran into the same problem as Daniel. If there is lots of other traffic the class where all packtes of counter-strike are in has still bandwidth available, but I''m getting ping times around 400ms (40ms if there is no other traffic). I''m not sure if I''m missing to mark some packets of counter-strike here or if "htb is to slow" or something else :o Therefore I asked to get the solution if you work something out - perhaps I can fix my scripts then ;) best regards Sebastian -- Sebastian ''spax'' Pape | Just because you''re paranoid doesn''t mean THEY mailto: sebastian@p-a-p-e.de | are not out to get you. gpg: http://p-a-p-e.de/gpg.asc | --- Do you want to know more? http://www.p-a-p-e.de/ --- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> Can you post your script so I can take a look at it ? > > Stef >//mark the packets in iptables .. the ip 192.168.1.111 will have an isolated band of 5k enough to play cs iptables -t mangle -F iptables -t mangle -A FORWARD -s 0/0 -d 0/0 -j MARK --set-mark 100 iptables -t mangle -A FORWARD -s ! 192.168.1.0/24 -d 192.168.1.111 -j MARK --set-mark 111 iptables -t mangle -A FORWARD -d ! 192.168.1.0/24 -s 192.168.1.111 -j MARK --set-mark 111 tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 allot 1514 #total traffic.. 200/8=25K.. tc class add dev eth0 parent 10:0 classid 10:1 cbq rate 200kbit avpkt 1000 prio 5 tc class add dev eth0 parent 10:1 classid 10:10 cbq rate 40kbit allot 1514 prio 5 isolated tc class add dev eth0 parent 10:1 classid 10:20 cbq rate 160kbit allot 1514 prio 4 bounded # filtre care clasifica traficu handle 1 e traficul de download tc filter add dev eth0 parent 10:0 protocol ip prio 5 handle 111 fw flowid 10:10 tc filter add dev eth0 parent 10:0 protocol ip prio 4 handle 100 fw flowid 10:20 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/