Re: [LARTC] Question on prio qdisc

2003-07-02 Thread Cheng Kwok Wing, William
Hi,   You can refer to http://lxr.linux.no/source/net/sched/sch_prio.c for the source code of prio qdisc.   If you look at the drop function of prio (prio_drop), it really drops packet with precedence of low to high priority. But when a incoming packet finds that there is no room in the queue, it's

Re: [LARTC] A new classful qdisc (CBFQ) is available now.

2003-06-26 Thread Cheng Kwok Wing, William
Hi,   Thanks for your comments. I'll give some examples ASAP.   Best, William ChengTomasz Wrona <[EMAIL PROTECTED]> wrote: Hello William,poniedzia貫k, 23 czerwca 2003, you wrote:CKWW> I've implemented CBFQ, which is a packetCKWW> scheduling algorithm similar to PGPS, under Linux.CKWW> Please refer

[LARTC] A new classful qdisc (CBFQ) is available now.

2003-06-23 Thread Cheng Kwok Wing, William
Hi,   I've implemented CBFQ, which is a packet scheduling algorithm similar to PGPS, under Linux. Please refer to http://cbfq.sourceforge.net for more information.   I welcome any criticisms.   Best, William Cheng Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!

[LARTC] Question on degraded performance of NIC

2003-03-27 Thread Cheng Kwok Wing, William
Hi, I've got a 100Mbit NIC and used iperf and netperf to test them. The measured throughput is around 92Mbit. My question is what causes the degrade in performance?? Overhead in packets?? CPU clock speed(My desktop uses P3-500MHz)?? Best, William

[LARTC] Question on implementing PGPS

2003-03-05 Thread Cheng Kwok Wing, William
Hi, I'm now implementing something similar to PGPS and I need some help. How to determine if a queue is backlog??? I've carried out some test using PRIO queue. It seems that the prio_dequeue is called right after prio_enqueue and therefore the q.qlen (queue length) is always zero! That's mea

[LARTC] Question on allowing other users to use tc

2003-02-04 Thread Cheng Kwok Wing, William
Hi, I would like to allow other user (such as apache) to use tc since I'll now working on a web interface for tc. How can I do that?? I'm using shell_exec() in php. I've added apache to the root group and can run tc without problems. However,, when I ran tc class, it said "RTNETLINK answers: Oper

[LARTC] Questoin on ingress

2003-01-18 Thread Cheng Kwok Wing, William
Hi, I've some questions regarding ingress qdisc. 1) Are there any rules to set burst size? 2) It seems that it's not very accurate. I want to control the incoming rate to be 1Mbit but the incoming rate measured by iptraf is around 1.6Mbit. Is there any way to improve that?? 3) When I ran "tc -s -

[LARTC] Question on using struct Qdisc

2003-01-18 Thread Cheng Kwok Wing, William
Hi, If I want to use the struct Qdisc in our newly created module. What headers file should I include in our code??? In additon, what should be the CFlags in order to compile the code with struct Qdisc successfully??? Thanks in advance, William __

Re: [LARTC] Question on TC filter

2003-01-11 Thread Cheng Kwok Wing, William
anuary 2003 19:24, Cheng Kwok Wing, > William wrote: > > Hi, > > > > I want work out a GUI interface for htb and now > here > > comes to the part about adding and removing > classes > > and filters. > Like I do :?> http://home.docum.org/qos/ > > >

Re: [LARTC] Question on TC filter

2003-01-11 Thread Cheng Kwok Wing, William
3 19:24, Cheng Kwok Wing, > William wrote: > > Hi, > > > > I want work out a GUI interface for htb and now > here > > comes to the part about adding and removing > classes > > and filters. > Like I do :?> http://home.docum.org/qos/ > > > > Sup

[LARTC] Question on TC filter

2003-01-10 Thread Cheng Kwok Wing, William
Hi, I want work out a GUI interface for htb and now here comes to the part about adding and removing classes and filters. Here is an example script. TC="tc" DEV="dev eth1" echo "Add root qdisc, default traffic go to 1:30" $TC qdisc add $DEV root handle 1: htb default 30 echo "Divide the traffic

[LARTC] Question on HTB and police

2003-01-09 Thread Cheng Kwok Wing, William
Hi, I've read the following post that the htb doesn't support police. I would like to know if htb supports police filter now. Does anyone know anything about this??? William __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. h

Re: [LARTC] Question on hashkey

2002-08-12 Thread Cheng Kwok Wing, William
Hi, Thanks for your reply. Does it mean that "fw" has implemented hashing implicitly?? Suppose I've the following fitler rules: tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw tc filter add dev eth0 parent 1: protoc

[LARTC] Question on hashkey

2002-08-12 Thread Cheng Kwok Wing, William
Hi, I've been working on hashing in tc for a month. Since there are only a limited number of avaialbe example on hashing, I'll be appreciate if someone can my questions as follows: 1. tc filter add dev eth1 protocol ip perent 1:0 \ prio 5 u32 ht 800:: \ match ip src 1.2.0.0/16 \ hashkey mask 0x0

[LARTC] Best relation (value) of rate and burst in TBF and HTB

2002-08-01 Thread Cheng Kwok Wing, William
Hi, I'm going to setup a linux traffic control box and has decided to adapt HTB. What should be the best relation(value) of rate and burst? I mean the formula used to calculate burst give rate or vice verse. I think the bandwidth of NIC and CPU processing speed are also important in the calcula