All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] isolated works fine for me
@ 2003-01-24 18:57 Daniel Ditu
  2003-01-24 19:24 ` Stef Coene
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Daniel Ditu @ 2003-01-24 18:57 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] isolated works fine for me
  2003-01-24 18:57 [LARTC] isolated works fine for me Daniel Ditu
@ 2003-01-24 19:24 ` Stef Coene
  2003-01-24 20:21 ` Sebastian 'spax' Pape
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2003-01-24 19:24 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] isolated works fine for me
  2003-01-24 18:57 [LARTC] isolated works fine for me Daniel Ditu
  2003-01-24 19:24 ` Stef Coene
@ 2003-01-24 20:21 ` Sebastian 'spax' Pape
  2003-01-24 20:31 ` Stef Coene
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Sebastian 'spax' Pape @ 2003-01-24 20:21 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] isolated works fine for me
  2003-01-24 18:57 [LARTC] isolated works fine for me Daniel Ditu
  2003-01-24 19:24 ` Stef Coene
  2003-01-24 20:21 ` Sebastian 'spax' Pape
@ 2003-01-24 20:31 ` Stef Coene
  2003-01-24 20:41 ` Sebastian 'spax' Pape
  2003-01-25 10:36 ` Daniel Ditu
  4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2003-01-24 20:31 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] isolated works fine for me
  2003-01-24 18:57 [LARTC] isolated works fine for me Daniel Ditu
                   ` (2 preceding siblings ...)
  2003-01-24 20:31 ` Stef Coene
@ 2003-01-24 20:41 ` Sebastian 'spax' Pape
  2003-01-25 10:36 ` Daniel Ditu
  4 siblings, 0 replies; 6+ messages in thread
From: Sebastian 'spax' Pape @ 2003-01-24 20:41 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] isolated works fine for me
  2003-01-24 18:57 [LARTC] isolated works fine for me Daniel Ditu
                   ` (3 preceding siblings ...)
  2003-01-24 20:41 ` Sebastian 'spax' Pape
@ 2003-01-25 10:36 ` Daniel Ditu
  4 siblings, 0 replies; 6+ messages in thread
From: Daniel Ditu @ 2003-01-25 10:36 UTC (permalink / raw)
  To: lartc

> 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-01-25 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-24 18:57 [LARTC] isolated works fine for me Daniel Ditu
2003-01-24 19:24 ` Stef Coene
2003-01-24 20:21 ` Sebastian 'spax' Pape
2003-01-24 20:31 ` Stef Coene
2003-01-24 20:41 ` Sebastian 'spax' Pape
2003-01-25 10:36 ` Daniel Ditu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.