Skip to contentSkip to conversation

isolated works fine for me

LARTC Daniel Ditu 3 participants 6 messages Jan 24, 2003 – Jan 25, 2003

lore
Share & tools
lore
#0 lore raw

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 ..

#1 lore raw
Quoted 3 lines · Daniel Ditu

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

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/
#2 lore raw
In reply to Daniel Ditu

hi there,

Quoted 4 lines
Quoted 3 lines

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

Signature · 7 lines
Sebastian 'spax' Pape          | Just because you're paranoid doesn't mean THEY
mailto: [email protected]   | 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Daniel Ditu
Quoted 10 lines · Sebastian 'spax' Pape

hi there,

Quoted 5 lines
Quoted 3 lines

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

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/
#4 lore raw
In reply to Daniel Ditu

hi stef,

Quoted 2 lines

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 :

[...]

Quoted 3 lines

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

Signature · 7 lines
Sebastian 'spax' Pape          | Just because you're paranoid doesn't mean THEY
mailto: [email protected]   | 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to Daniel Ditu
Quoted 4 lines

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%K..
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/