[LARTC] Performance difference with HTB patch in 2.4.14 and without patch in 2.4.20

2004-07-12 Thread Aravind babu

Hi,
 
   I am using linux 2.4.14 box for my bandwidth management.I patched the kernel for HTB support.I think HTB comes by default with 2.4.20.My doubt is 
 
"Is there any performance difference between patched kernel i.e. 2.4.14  and unpatched kernel 2.4.20 with respect to bandwidth management ?"
 
Thanks in advance,
Aravind.

Yahoo! India Careers: Over 50,000 jobs
online.

[LARTC] Performance difference with HTB patch in 2.4.14 and without patch in 2.4.20

2004-07-12 Thread Aravind babu
Hi,
 
   I am using linux 2.4.14 box for my bandwidth management.I patched the kernel for HTB support.I think HTB comes by default with 2.4.20.My doubt is 
 
"Is there any performance difference between patched kernel i.e. 2.4.14  and unpatched kernel 2.4.20 with respect to bandwidth management ?"
 
Thanks in advance,
Aravind.

Yahoo! India Careers: Over 50,000 jobs
online.

[LARTC] Problem with HTB queuing discipline

2004-07-09 Thread Aravind babu
Hi ,
 
 
    I have the problem with HTB queuing discipline.I am giving my setup below.
 
 
  172.30.179.206   172.30.180.55
 
  LAN |  |   WAN
-| LINUX WITH    |--
172.30.179.140   | HTB   |  172.30.180.72
FTP SERVER   FTP CLIENT
 
On the LAN side i put FTP server(172.30.179.140) and on WAN side i put FTP client(172.30.180.72).
 
FTP client and FTP server will communicate through the middle linux box.
 
Middle linux box has two interfaces.eth0 is 172.30.179.206 and 
eth1 is 172.30.180.55
 
In the middle linux box i configured HTB using following commands.
 
./tc qdisc add dev eth0 root handle 1:0 htb
 
./tc class add dev eth0 parent 1:0 classid 1:1  htb rate 30kbps  ceil 30kbps 
 
./tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps  ceil 30kbps
 
./tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst 172.30.180.72 match ip sport 21 0x flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst 172.30.180.72 match ip sport 20 0x flowid 1:10
 
 
When i downloaded one file of size 10.7MB from FTP server(i.e from 
172.30.179.140) to client(i.e. 172.30.180.72) , download speed is coming as 362.19kbytes/sec instead of 30kbps which i ceil.What may be the problem? Any configuration issue?Any idea?
 
 
Thanks in advance,
Aravind.
 

Yahoo! India Careers: Over 50,000 jobs
online.

[LARTC] Doubt on dsmark flow

2004-03-16 Thread Aravind babu
Dear stef,
  Thanks for your previous reply.I gone through the link that u mentioned in reply.I need some help from you.I am curious to know the exact flow of the packet i.e. where exactly "ds" will be set,where queuing will happen etc ? Let me describe my thing.I added some printk statements in some files of netfilter code and sch_dsmark.c file.I gave the following sequence of commands in my machine.
$  ./tc qdisc add dev eth0 handle 1:0 root dsmark indices 4$  ./tc class change dev eth0 classid 1:1 dsmark mask 0x0 value 0x80$  ./tc class change dev eth0 classid 1:2 dsmark mask 0x0 value 0x40$  ./tc class change dev eth0 classid 1:3 dsmark mask 0x0 value 0x20
$  ./tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 172.30.180.43 flowid 1:1$  ./tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst 172.30.180.100 flowid 1:2
After that i gave ping to machine 172.30.180.44 .On 172.30.180.44 i am capturing packets using tcpdump.In IP header,ds is set to 0x80 which is fine.
From the printk statements on the console i understand the following things:
-> First packet is going to iptables-> After that packet is coming to dsmark_enqueue-> Packet is coming to dsmark_dequeue -> Packet is coming to iptables again.
I have seen the code of dsmark_enqueue and dsmark_dequeue functions.In dsmark_enqueue ds value is reading and in dsmark_dequeue ds value is setting with what we gave in command line.Let me clarify if anything wrong in this flow?Also tell me why packet is again going to iptables after queueing? If u know exact flow pls explain in brief.Anyhelp is appreciated.
Thanks in advance,Aravind.

Yahoo! India Promos:  Win a trip for 2 to Britain. 
Click here.

Re: [LARTC] Doubt on dsmark

2004-03-14 Thread Aravind babu
Hi,
 
  Thanks for the reply.
Aravind.
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.

[LARTC] Doubt on dsmark

2004-03-11 Thread Aravind babu

Hi all,
 
    Atlast i successfully marked IP packets with dsmark.I want to know exactly in which place the dsmark will work? Suppose i have firewall on my traffic control machine.I am curious to know whether marking is done before getting firewall the packet or after firewall?Diagramatically it is like below:
 
 
    -
  tc utility

  |
  |
  |
    ---
    Firewall
   
 |
 |
 |
    --
   Interface
   ---
 
I want to know where exactly packets are marked and queued?
 
Thanks in advance,
Aravind.
 
 
 
 
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.

[LARTC] Newbie question

2004-03-02 Thread Aravind babu
Hi all,
   
   I am new to this mailing list.My doubt is  Is it possible to mark QOS bits in IP header using tc? I marked using iptables.
 
Thanks in advance,Aravind.
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.