Re: [LARTC] Wanted Good Documentation on HFSC

2005-05-27 Thread Konrad

KartheeK wrote:

Hello All,
I am trying to prioratize VOIP traffic from data. 
The follwing link says that HFSC is better than HTB for shaping VOIP 
traffic.

http://www.voip-info.org/wiki-QoS+Linux+with+HFSC
I am in search of good documentation to start with HFSC,
I am unable to understand the parameters used.
I "googled" a lot to find on how to use HFSC, but no luck.
Can anyone of you get me a link To good HFSC stuff
Regards
KartheeK


I have the same problem.

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] FW: HFSC + ESFQ - class statistics

2005-05-27 Thread Andreas Unterkircher

Forte Systems - Iosif Peterfi wrote:


But here is my script:

 

If this is really all of your script, you are missing the filter rules 
which match your

traffic and put it in your classes...

Cheers,
Andreas
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] FW: HFSC + ESFQ - class statistics

2005-05-27 Thread Forte Systems - Iosif Peterfi








Hello, 

 

   
First I want to point out that I’m not so familiar with HFSC, since there
not so much info online.

   
But here is my script:

 

    ${TC} class add
dev ${LAN_IFACE} parent 1:0 classid 1:1 hfsc ls rate 100mbit ul rate 100mbit

 

    ${TC} class add
dev ${LAN_IFACE} parent 1:1 classid 1:2 hfsc ls rate 90mbit ul rate 90mbit

    ${TC} class add
dev ${LAN_IFACE} parent 1:1 classid 1:3 hfsc ls rate 690kbit ul rate 690kbit

 

    ${TC} class add
dev ${LAN_IFACE} parent 1:3 classid 1:10 hfsc rt dmax 1ms rate 32kbit ls rate
690kbit #dns

    ${TC} class add
dev ${LAN_IFACE} parent 1:3 classid 1:20 hfsc rt dmax 2ms rate 256kbit ls dmax
3ms rate 690kbit #http int

    ${TC} class add
dev ${LAN_IFACE} parent 1:2 classid 1:25 hfsc rt dmax 100ms rate 10mbit ls dmax
100ms rate 80mbit #squid

    ${TC} class add
dev ${LAN_IFACE} parent 1:2 classid 1:30 hfsc rt dmax 200ms rate 80kbit ls dmax
500ms rate 80kbit #wan

    ${TC} class add
dev ${LAN_IFACE} parent 1:3 classid 1:40 hfsc rt dmax 20ms rate 32kbit ls dmax
500ms rate 690kbit #msn

    ${TC} class add
dev ${LAN_IFACE} parent 1:3 classid 1:50 hfsc rt dmax 200ms rate 32kbit ls dmax
500ms rate 690kbit # http bulk

    ${TC} class add
dev ${LAN_IFACE} parent 1:3 classid 1:60 hfsc rt dmax 500ms rate 32kbit ls dmax
3000ms rate 690kbit # the rest

 

    ${TC} qdisc add
dev ${LAN_IFACE} parent 1:10 handle 10: esfq hash dst perturb 10

    ${TC} qdisc add
dev ${LAN_IFACE} parent 1:20 handle 20: esfq hash dst  perturb 10

    ${TC} qdisc add
dev ${LAN_IFACE} parent 1:25 handle 25: esfq hash dst  perturb 10

    ${TC} qdisc add
dev ${LAN_IFACE} parent 1:30 handle 30: esfq hash dst  perturb 10

    ${TC} qdisc add
dev ${LAN_IFACE} parent 1:40 handle 40: esfq hash dst  perturb 10

    ${TC} qdisc add
dev ${LAN_IFACE} parent 1:50 handle 50: esfq hash dst  perturb 10

    ${TC} qdisc add
dev ${LAN_IFACE} parent 1:60 handle 60: esfq hash dst  perturb 10

 

# tc -s -d class show dev eth1

class hfsc 1: root

 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues
0)

 rate 0bit 0pps backlog 0b 0p requeues 0

 period 0 level 3

 

class hfsc 1:1 parent 1: ls m1 0bit d 0us m2 10Kbit ul
m1 0bit d 0us m2 10Kbit

 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues
0)

 rate 0bit 0pps backlog 0b 0p requeues 0

 period 25105 work 9541169 bytes level 2

…..

class hfsc 1:60 parent 1:3 leaf 60: rt m1 0bit d 500.0ms m2
32008bit ls m1 0bit d 3.0s m2 69bit

 Sent 7651774 bytes 16422 pkt (dropped 0, overlimits 0
requeues 0)

 rate 0bit 0pps backlog 0b 0p requeues 0

 period 16413 work 7651774 bytes rtwork 1120698 bytes
level 0

 

    The tc show
command doesn’t create any sent/rate statistics for  1: / 1:1 / 1:2
/ 1:3 – Everything is 0 except the period indicators. Sent bytes are
shown in the period, but the rate is not shown. For the rest of the classes
Sent bytes and packets are shown, but rate is not show here either. 

    This bug is
related to the kernel or iproute2 package?

    

 

Thanks

Iosif Peterfi 







-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/

-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] [SOLVED] compile error while patching iproute2 with esfq

2005-05-27 Thread Janis Bistevins
On 5/27/05, gypsy <[EMAIL PROTECTED]> wrote:

Yeah, I know what it means.Where did you get your esfq patch from?
I downloded it from http://www.ssi.bg/~alex/esfq/ 
What kernel version?  If your kernel is 2.6 then get this patch:


http://kem.p.lodz.pl/~peter/qnet/For a 2.4 kernel, go here:ftp://andthatsjazz.org/pub/lartc/esfq-0.3.tar.gz

yes 2.4 
--gypsy

Yeah! It worked!! Thanks to everyone!

I downloded the esfq patch that gypsy pointed me for a 2.4 kernel and everything worked great!!.



Thanks a lot!!-- -  (o-Janis  // \Daniel   V_/_  Bistevins  --

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] compile error while patching iproute2 with esfq

2005-05-27 Thread Stephen Hemminger

> > Does anybody know what this mean?

> Yeah, I know what it means.

You need to make the rtnetlink.h file that is included from the build (usually 
include/linux/rnetlink.h)
include the esfq stuff.
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] Re: equal-cost multipath in 2.6.7

2005-05-27 Thread Darshan Purohit
Sending out this question again. 

On 5/24/05, Darshan Purohit <[EMAIL PROTECTED]> wrote:
> I have question about multipath routing. I am running a 2.6.7 kernel (gentoo).
> I have  a route with three nexthops on the same interface. I see a
> different nexthop being picked for different destination addresses.
> All is fine.
> 
> Now if one of the nexthop goes down (arp entry times out and arp
> request doesnt get a response), does it remove the nexthop from
> contention and only use the remaining two from this point on ?  What
> about the flows for which this nexthop was chosen in the recent past.
> Would they move to a different nexthop ?
> 
> Can anyone please point me to  implementation details about how a
> nexthop is chosen and what is the algorithm used in case of multipath
> routes and how to fine-tune the behaviour.
> 
> Thanks.
> Darshan.
>
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] Wanted Good Documentation on HFSC

2005-05-27 Thread KartheeK
Hello All,
I am trying to prioratize VOIP traffic from data. 
The follwing link says that HFSC is better than HTB for shaping VOIP traffic.
http://www.voip-info.org/wiki-QoS+Linux+with+HFSC
I am in search of good documentation to start with HFSC,
I am unable to understand the parameters used.
I "googled" a lot to find on how to use HFSC, but no luck.
Can anyone of you get me a link To good HFSC stuff
Regards
KartheeK
 

Yahoo! India Matrimony: Find your life partner
online.___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Leaky bucket in TC

2005-05-27 Thread Fatih Düzova
Thank you for your response,
My aim is to define a bandwidth (i guess it can be done by defining
equal rate and ceil values), and not to allow to pass this value "at
any moment" during the connection.  Is htb able to do this job, for
instance in the simple example below?


tc qdisc add dev ath0 root handle 1:0 htb default 15
tc class add dev ath0 parent 1:0 classid 1:1 htb rate 240kbit

tc class add dev ath0 parent 1:1 classid 1:5 htb rate 72kbit ceil 72kbit
tc class add dev ath0 parent 1:1 classid 1:10 htb rate 120kbit ceil 120kbit
tc class add dev ath0 parent 1:1 classid 1:15 htb rate 48kbit ceil 48kbit

tc qdisc add dev ath0 parent 1:5 handle 5:0 sfq perturb 10
tc qdisc add dev ath0 parent 1:10 handle 10:0 sfq perturb 10
tc qdisc add dev ath0 parent 1:15 handle 15:0 sfq perturb 10

tc filter add dev ath0 protocol ip parent 1:0 prio 1 u32 match ip
dport 22 0x flowid 1:5
tc filter add dev ath0 protocol ip parent 1:0 prio 1 u32 match ip
sport 22 0x flowid 1:5
tc filter add dev ath0 protocol ip parent 1:0 prio 1 u32 match ip
dport 80 0x flowid 1:10
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] pppoe gateway under linux

2005-05-27 Thread Nachko Halachev
On Friday 27 May 2005 13:21, Anton Glinkov wrote:
> You can use rp-pppoe's pppoe-server combined with the kernel pppoe module.
> You need to compile rp-pppoe and pppd with pppoe kernel support (not the
> pppoe binary).
> Works fine with over 500 clients on P4  2.4 GHz

How much traffic is passing trough this box via pppoe interfaces and how high 
is CPU load ?


>
> > Hello to everyone,
> >
> > Can someone help me with hints on how to configure a pppoe gateway on
> > a linux box with 200+ clients behind it ?
> >
> > I've read that user-space daemons give A LOT of CPU overhead.
> >
> > I'm opened to ANY solution !
>
> -
> Anton Glinkov
> network administrator
>
> ___
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

-- 
Regards,
Nachko Halachev
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] pppoe gateway under linux

2005-05-27 Thread Anton Glinkov
You can use rp-pppoe's pppoe-server combined with the kernel pppoe module.
You need to compile rp-pppoe and pppd with pppoe kernel support (not the
pppoe binary).
Works fine with over 500 clients on P4  2.4 GHz

> Hello to everyone,
>
> Can someone help me with hints on how to configure a pppoe gateway on
> a linux box with 200+ clients behind it ?
>
> I've read that user-space daemons give A LOT of CPU overhead.
>
> I'm opened to ANY solution !

-
Anton Glinkov
network administrator

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] pppoe gateway under linux

2005-05-27 Thread Radu CUGUT
Hello to everyone,

Can someone help me with hints on how to configure a pppoe gateway on
a linux box with 200+ clients behind it ?

I've read that user-space daemons give A LOT of CPU overhead.

I'm opened to ANY solution !




-- 


Radu Cugut

mobile: +40 742 045686
web:http://rcugut.has.it
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] htb: HowTo identify squid cache hits

2005-05-27 Thread Konrad
tc filter add dev  protocol ip parent 1:0 pref 1 u32 match ip dst 
192.168.0.12 match ip sport 8080 0x match ip tos 8 0xff flowid 1:12

#If squid miss, traffic will go to user queue.


tc filter add dev imq1 protocol ip parent 1:0 pref 2 u32 match ip src 
192.168.0.22 match ip sport 8080 0x flowid 1:30
#this catch all traffic from source port Squid... but with priority 2 
and throw in LAN class.


I'm using this patch:

--- CUT ---

diff -cr squid-2.5.STABLE3/src/client_side.c 
squid-2.5.STABLE3.patched/src/client_side.c

*** squid-2.5.STABLE3/src/client_side.c 2003-05-24 13:08:41.0 +0200
--- squid-2.5.STABLE3.patched/src/client_side.c	2003-08-05 
22:08:15.0 +0200

***
*** 2005,2010 
--- 2005,2013 
/* Avoid copying to MemBuf for non-range requests */
/* Note, if we're here, then 'rep' is known to be NULL */
http->out.offset += body_size;
+   {   int tos=isTcpHit(http->log_type) ? 0 : 8;
+   setsockopt(fd,SOL_IP,IP_TOS,&tos,4);
+   }
comm_write(fd, buf, size, clientWriteBodyComplete, http, NULL);
/* NULL because clientWriteBodyComplete frees it */
return;
***
*** 2062,2067 
--- 2065,2073 
  if (!http->request->range && http->request->method == METHOD_GET)
assert(check_size == size);
  /* write */
+ { int tos=isTcpHit(http->log_type) ? 0 : 8;
+   setsockopt(fd,SOL_IP,IP_TOS,&tos,4);
+ }
  comm_write_mbuf(fd, mb, clientWriteComplete, http);
  /* if we don't do it, who will? */
  memFree(buf, MEM_CLIENT_SOCK_BUF);

--- CUT ---

If squid HIT then TOS is 0, if miss then 1.

Here is the place where you can download this: 
http://sed.pl/~mrk/qos/squid_hit_miss_mark.patch


Throw in to queue of LAN only traffic coming from Squid.
Upload traffic from Squid always queue in users classes.
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc