Re: [ilugd] Re: Suggestion required on CBQ !!!!!!

2004-04-01 Thread Sandeep Agarwal
I have done as you suggested. In iptraf under LAN station monitor, It is showing 
ethernet
address not the IP address. Also I want to see the real time bandwidth usages (In 
Cumulative) by the
different interfaces. So that I can show/convince the same to management.

Any other tool by which I can see the bandwidth usages in graphical mode?

Thanking you,
Sandeep Agarwal
- Original Message -
From: Ashwin Shah [EMAIL PROTECTED]
To: 'Sandeep Agarwal' [EMAIL PROTECTED]; 'The Linux-Delhi mailing list'
[EMAIL PROTECTED]; 'Ashwin Shah' [EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 8:08 PM
Subject: RE: [ilugd] Re: Suggestion required on CBQ !!


 The files seem to be ok. I am guessing that you must have already tried
 it out. Ipchains has no relation to this as far as my knowledge goes and
 I doubt that there would be any relation found.
 If you have not already done the following please do it.
 Bash# chmod 500 /etc/init.d/htb.init
 To start bandwidth management give
 Bash# /etc/init.d/htb.init start

 To stop
 Bash# /etc/init.d/htb.init stop

 To check status
 Bash# /etc/init.d/htb.init stat


 To check bandwidth usage run iptraf
 Go to LAN station monitor and select the interface
 You will get the upload and download rates in kbps


 Best regards,

 Ashwin Shah



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 On Behalf Of Sandeep Agarwal
 Sent: Wednesday, March 31, 2004 7:39 PM
 To: Ashwin Shah; 'The Linux-Delhi mailing list'
 Subject: Re: [ilugd] Re: Suggestion required on CBQ !!

 Hello Ashwin,

 Thanks again. I have checked it  found modules already there.
 So I have go to HTB config directly and done all as you suggest.
 Please go through the following  suggest whether I have done it
 correctly or
 more modification required? I have IPCHAINS on this server so
 I have to require to put -m option more in IPCHAINS right?

 Thanking you,
 Sandeep Agarwal
 
 -
 -
 Scenario: Restrict Server, Comp1  Comp2 on given speed.
 --256kbps---|eth0(203.145.134.112/255.255.255.252) [A]
  |eth1(Server room) 56kbps
 (203.145.134.120/255.255.255.248)
 [B]
  |eth2(Company2) 80kbps
 (203.145.134.116/255.255.255.252) [C]

 (192.168.100.0/255.255.255.0)
  |eth3(Company1)
 120kbps(192.168.200.0/255.255.255.0) [D]
 
 -
 -
 Now in /etc/sysconfig/htb directory, I have put following files.

 eth0
   DEFAULT=30
   R2Q=10

 eth0-2.root
   # root class containing total bandwidth
   RATE=128kbps
   BURST=15k

 eth0-2:1.comp1
   # default class for Company1 traffic
   RATE=120Kbps
   BURST=15k
   PRIO=0
   LEAF=sfq
   RULE=192.168.200.0/24

 eth0-2:2.comp2
   # default class for Company2 traffic
   RATE=80Kbps
   BURST=10k
   PRIO=1
   LEAF=sfq
   RULE=192.168.100.0/24

 eth0-2:1.server
   # default class for Server Room traffic
   RATE=56Kbps
   BURST=10k
   PRIO=3
   LEAF=sfq
   RULE=203.145.134.120/29
 --
 eth1-2:3.root
   # root class For Server Room containing total bandwidth
   RATE=56kbps
   BURST=5k

 eth1-2:3:30.all
   # class for Server Room traffic
   RATE=56Kbps
   BURST=5k
   PRIO=3
   LEAF=sfq
   RULE=203.145.134.120/29
   MARK=3
 --
 eth2-2:2.root
   # root class For Company2 containing total bandwidth
   RATE=80kbps
   BURST=8k

 eth2-2:2:20.all
   # class for outgoing Company2 traffic
   RATE=80Kbps
   BURST=8k
   PRIO=1
   LEAF=sfq
   RULE=192.168.100.0/24
   MARK=2
 --
 eth3-2:1.root
   # root class For Company1 containing total bandwidth
   RATE=120kbps
   BURST=15k

 eth3-2:1:10.all
   # class for outgoing Company1 traffic
   RATE=120Kbps
   BURST=15k
   PRIO=0
   LEAF=sfq
   RULE=192.168.200.0/24
   MARK=1
 
 -
 -
 - Original Message -
 From: Ashwin Shah [EMAIL PROTECTED]
 To: 'Sandeep Agarwal' [EMAIL PROTECTED]; 'The Linux-Delhi
 mailing
 list' [EMAIL PROTECTED]
 Sent: Wednesday, March 31, 2004 11:13 AM
 Subject: RE: [ilugd] Re: Suggestion required on CBQ !!


 First look for the following files in
 /lib/modules/2.4.20-8/kernel/net/sched


 sch_htb.o sch_sfq.o cls_fw.o cls_u32.o cls_route.o

 if these files exist then great you can go directly to HTB config below.
 Else you will have to compile these. To compile do as follows

 1) bash# cd /usr/src/linux-2.4
 2) bash# make menuconfig
 3) Go to Networking options  --- press Enter
 4) Go to QoS and/or fair queueing  --- press Enter
 5) Select * for QoS and/or fair queueing, QoS support, Rate estimator,
 Packet classifier API and Traffic Policing

Re: [ilugd] Re: Suggestion required on CBQ !!!!!!

2004-04-01 Thread Ankur Rohatgi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 04/01/2004 04:08 PM, Sandeep Agarwal wrote:
| I have done as you suggested. In iptraf under LAN station monitor,
It is showing ethernet
| address not the IP address. Also I want to see the real time bandwidth
usages (In Cumulative) by the
| different interfaces. So that I can show/convince the same to management.
|
| Any other tool by which I can see the bandwidth usages in graphical mode?
I am assuming you mean under X when you mean graphical, why you have X
installed on a gateway is another story. Well if you can do with semi
graphical then you should try iftop . Also ntop through the web is great
for detailed stats.
- - Ankur.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAa/fhbR7mO5apBYARAhE4AJ9t7btQO22qqi+v46t1a30I4xU1+ACcCGn3
J1gyIvIsa826BFk8ehHN8ls=
=LDWi
-END PGP SIGNATURE-
___
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/


Re: [ilugd] Re: Suggestion required on CBQ !!!!!!

2004-04-01 Thread Abhi


 I have done as you suggested. In iptraf under LAN station monitor, It
is showing ethernet
 address not the IP address. Also I want to see the real time bandwidth
usages (In Cumulative) by the
 different interfaces. So that I can show/convince the same to management.

 Any other tool by which I can see the bandwidth usages in graphical mode?

Zorbiptraffic is quite good in this regard.

http://www.atout.be/zorbiptrafficlive/zorbiptraffic.php

Not only can you monitor realtime bandwidth utilizaion but it also uses a
mysql backend to keep a record of daily bandwidth usage by each of the
clients.

A new version (v0.10) has just been released.

There are ofcourse other tools for this purpose. I'd recommend giving
etherape a try too.

Regards,
Abhi



___
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/


Re: [ilugd] Re: Suggestion required on CBQ !!!!!!

2004-03-31 Thread Sandeep Agarwal
Hello Ashwin,

Thanks again. I have checked it  found modules already there.
So I have go to HTB config directly and done all as you suggest.
Please go through the following  suggest whether I have done it correctly or
more modification required? I have IPCHAINS on this server so
I have to require to put -m option more in IPCHAINS right?

Thanking you,
Sandeep Agarwal
-
-
Scenario: Restrict Server, Comp1  Comp2 on given speed.
--256kbps---|eth0(203.145.134.112/255.255.255.252) [A]
 |eth1(Server room) 56kbps (203.145.134.120/255.255.255.248)
[B]
 |eth2(Company2) 80kbps (203.145.134.116/255.255.255.252) [C]
   
(192.168.100.0/255.255.255.0)
 |eth3(Company1) 120kbps(192.168.200.0/255.255.255.0) [D]
-
-
Now in /etc/sysconfig/htb directory, I have put following files.

eth0
  DEFAULT=30
  R2Q=10

eth0-2.root
  # root class containing total bandwidth
  RATE=128kbps
  BURST=15k

eth0-2:1.comp1
  # default class for Company1 traffic
  RATE=120Kbps
  BURST=15k
  PRIO=0
  LEAF=sfq
  RULE=192.168.200.0/24

eth0-2:2.comp2
  # default class for Company2 traffic
  RATE=80Kbps
  BURST=10k
  PRIO=1
  LEAF=sfq
  RULE=192.168.100.0/24

eth0-2:1.server
  # default class for Server Room traffic
  RATE=56Kbps
  BURST=10k
  PRIO=3
  LEAF=sfq
  RULE=203.145.134.120/29
--
eth1-2:3.root
  # root class For Server Room containing total bandwidth
  RATE=56kbps
  BURST=5k

eth1-2:3:30.all
  # class for Server Room traffic
  RATE=56Kbps
  BURST=5k
  PRIO=3
  LEAF=sfq
  RULE=203.145.134.120/29
  MARK=3
--
eth2-2:2.root
  # root class For Company2 containing total bandwidth
  RATE=80kbps
  BURST=8k

eth2-2:2:20.all
  # class for outgoing Company2 traffic
  RATE=80Kbps
  BURST=8k
  PRIO=1
  LEAF=sfq
  RULE=192.168.100.0/24
  MARK=2
--
eth3-2:1.root
  # root class For Company1 containing total bandwidth
  RATE=120kbps
  BURST=15k

eth3-2:1:10.all
  # class for outgoing Company1 traffic
  RATE=120Kbps
  BURST=15k
  PRIO=0
  LEAF=sfq
  RULE=192.168.200.0/24
  MARK=1
-
-
- Original Message -
From: Ashwin Shah [EMAIL PROTECTED]
To: 'Sandeep Agarwal' [EMAIL PROTECTED]; 'The Linux-Delhi mailing
list' [EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 11:13 AM
Subject: RE: [ilugd] Re: Suggestion required on CBQ !!


First look for the following files in /lib/modules/2.4.20-8/kernel/net/sched


sch_htb.o sch_sfq.o cls_fw.o cls_u32.o cls_route.o

if these files exist then great you can go directly to HTB config below.
Else you will have to compile these. To compile do as follows

1) bash# cd /usr/src/linux-2.4
2) bash# make menuconfig
3) Go to Networking options  --- press Enter
4) Go to QoS and/or fair queueing  --- press Enter
5) Select * for QoS and/or fair queueing, QoS support, Rate estimator,
Packet classifier API and Traffic Policing
6) Select M for HTB packet scheduler, SFQ packet scheduler and all the
classifier entries.
7) Compile the kernel  bash# make dep clean bzImage modules modules_install
   (that was one long command)
8) Install the new kernel in boot. Run lilo/grub
9) reboot

HTB config

Download htb.init and the sample config files from sourceforge
Copy htb.init to /etc/init.d
Copy sample files to /etc/sysconfig/htb

Read the htb.init file to learn how to configure the sample files. It's
pretty simple.

And Viola! You are done.

Best of luck



Best regards,

Ashwin Shah


-Original Message-
From: Sandeep Agarwal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 10:26 AM
To: [EMAIL PROTECTED]; 'The Linux-Delhi mailing list'
Subject: Re: [ilugd] Re: Suggestion required on CBQ !!

Hello Ashwin,

Thank you for your response. I have a RHL9.0 with kernel 2.4.20-8 on i686.
Should I require to patch my kernel? If yes, Please suggest which version it
OK for
this.

I have checked the following command
# grep htb_qdisc_ops /proc/ksyms
But it returns nothing.

Thanking you.
Sandeep Agarwal
- Original Message -
From: Ashwin Shah [EMAIL PROTECTED]
To: 'Sandeep Agarwal' [EMAIL PROTECTED]; 'The Linux-Delhi
mailing
list' [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 6:00 PM
Subject: RE: [ilugd] Re: Suggestion required on CBQ !!


 You have to create the htb directory in /etc/sysconfig. Also the format
 of the files is different. Htb should also be enabled in the kernel
 either as a module or built into the kernel itself. Though in some ways
 it is similar to cbq it requires to be compiled into the kernel first.
 It will take a bit more effort than

RE: [ilugd] Re: Suggestion required on CBQ !!!!!!

2004-03-31 Thread Ashwin Shah
The files seem to be ok. I am guessing that you must have already tried
it out. Ipchains has no relation to this as far as my knowledge goes and
I doubt that there would be any relation found.
If you have not already done the following please do it.
Bash# chmod 500 /etc/init.d/htb.init
To start bandwidth management give
Bash# /etc/init.d/htb.init start

To stop
Bash# /etc/init.d/htb.init stop

To check status
Bash# /etc/init.d/htb.init stat


To check bandwidth usage run iptraf
Go to LAN station monitor and select the interface
You will get the upload and download rates in kbps


Best regards,
 
Ashwin Shah
 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Sandeep Agarwal
Sent: Wednesday, March 31, 2004 7:39 PM
To: Ashwin Shah; 'The Linux-Delhi mailing list'
Subject: Re: [ilugd] Re: Suggestion required on CBQ !!

Hello Ashwin,

Thanks again. I have checked it  found modules already there.
So I have go to HTB config directly and done all as you suggest.
Please go through the following  suggest whether I have done it
correctly or
more modification required? I have IPCHAINS on this server so
I have to require to put -m option more in IPCHAINS right?

Thanking you,
Sandeep Agarwal

-
-
Scenario: Restrict Server, Comp1  Comp2 on given speed.
--256kbps---|eth0(203.145.134.112/255.255.255.252) [A]
 |eth1(Server room) 56kbps
(203.145.134.120/255.255.255.248)
[B]
 |eth2(Company2) 80kbps
(203.145.134.116/255.255.255.252) [C]
   
(192.168.100.0/255.255.255.0)
 |eth3(Company1)
120kbps(192.168.200.0/255.255.255.0) [D]

-
-
Now in /etc/sysconfig/htb directory, I have put following files.

eth0
  DEFAULT=30
  R2Q=10

eth0-2.root
  # root class containing total bandwidth
  RATE=128kbps
  BURST=15k

eth0-2:1.comp1
  # default class for Company1 traffic
  RATE=120Kbps
  BURST=15k
  PRIO=0
  LEAF=sfq
  RULE=192.168.200.0/24

eth0-2:2.comp2
  # default class for Company2 traffic
  RATE=80Kbps
  BURST=10k
  PRIO=1
  LEAF=sfq
  RULE=192.168.100.0/24

eth0-2:1.server
  # default class for Server Room traffic
  RATE=56Kbps
  BURST=10k
  PRIO=3
  LEAF=sfq
  RULE=203.145.134.120/29
--
eth1-2:3.root
  # root class For Server Room containing total bandwidth
  RATE=56kbps
  BURST=5k

eth1-2:3:30.all
  # class for Server Room traffic
  RATE=56Kbps
  BURST=5k
  PRIO=3
  LEAF=sfq
  RULE=203.145.134.120/29
  MARK=3
--
eth2-2:2.root
  # root class For Company2 containing total bandwidth
  RATE=80kbps
  BURST=8k

eth2-2:2:20.all
  # class for outgoing Company2 traffic
  RATE=80Kbps
  BURST=8k
  PRIO=1
  LEAF=sfq
  RULE=192.168.100.0/24
  MARK=2
--
eth3-2:1.root
  # root class For Company1 containing total bandwidth
  RATE=120kbps
  BURST=15k

eth3-2:1:10.all
  # class for outgoing Company1 traffic
  RATE=120Kbps
  BURST=15k
  PRIO=0
  LEAF=sfq
  RULE=192.168.200.0/24
  MARK=1

-
-
- Original Message -
From: Ashwin Shah [EMAIL PROTECTED]
To: 'Sandeep Agarwal' [EMAIL PROTECTED]; 'The Linux-Delhi
mailing
list' [EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 11:13 AM
Subject: RE: [ilugd] Re: Suggestion required on CBQ !!


First look for the following files in
/lib/modules/2.4.20-8/kernel/net/sched


sch_htb.o sch_sfq.o cls_fw.o cls_u32.o cls_route.o

if these files exist then great you can go directly to HTB config below.
Else you will have to compile these. To compile do as follows

1) bash# cd /usr/src/linux-2.4
2) bash# make menuconfig
3) Go to Networking options  --- press Enter
4) Go to QoS and/or fair queueing  --- press Enter
5) Select * for QoS and/or fair queueing, QoS support, Rate estimator,
Packet classifier API and Traffic Policing
6) Select M for HTB packet scheduler, SFQ packet scheduler and all the
classifier entries.
7) Compile the kernel  bash# make dep clean bzImage modules
modules_install
   (that was one long command)
8) Install the new kernel in boot. Run lilo/grub
9) reboot

HTB config

Download htb.init and the sample config files from sourceforge
Copy htb.init to /etc/init.d
Copy sample files to /etc/sysconfig/htb

Read the htb.init file to learn how to configure the sample files. It's
pretty simple.

And Viola! You are done.

Best of luck



Best regards,

Ashwin Shah


-Original Message-
From: Sandeep Agarwal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 10:26 AM
To: [EMAIL PROTECTED]; 'The Linux-Delhi mailing list'
Subject: Re: [ilugd] Re: Suggestion required on CBQ !!

Hello

RE: [ilugd] Re: Suggestion required on CBQ !!!!!!

2004-03-30 Thread Ashwin Shah
You have to create the htb directory in /etc/sysconfig. Also the format
of the files is different. Htb should also be enabled in the kernel
either as a module or built into the kernel itself. Though in some ways
it is similar to cbq it requires to be compiled into the kernel first.
It will take a bit more effort than using CBQ but works much better. If
you still want to use CBQ let me know and I will send instructions for
the same.

Best regards

Ashwin Shah


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Sandeep Agarwal
Sent: Monday, March 29, 2004 5:30 PM
To: Abhijit Menon-Sen
Cc: [EMAIL PROTECTED]
Subject: [ilugd] Re: Suggestion required on CBQ !!

.It's derived from cbq.init
Should I leave the files under /etc/sysconfig/cbq  as it is And load 
configure the
HTB? Or remove All CBQ entry first from the system.

Sandeep
- Original Message -
From: Abhijit Menon-Sen [EMAIL PROTECTED]
To: Sandeep Agarwal [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 5:04 PM
Subject: Re: Suggestion required on CBQ !!


 At 2004-03-29 16:58:26 +0530, [EMAIL PROTECTED] wrote:
 
  CBQ is ok for this or any other tool is/are suggested?

 (I'd recommend HTB instead.
 See http://www.lartc.org)

 -- ams


___
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[EMAIL PROTECTED]/


___
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/


Re: [ilugd] Re: Suggestion required on CBQ !!!!!!

2004-03-30 Thread Sandeep Agarwal
Hello Ashwin,

Thank you for your response. I have a RHL9.0 with kernel 2.4.20-8 on i686.
Should I require to patch my kernel? If yes, Please suggest which version it OK for
this.

I have checked the following command
# grep htb_qdisc_ops /proc/ksyms
But it returns nothing.

Thanking you.
Sandeep Agarwal
- Original Message -
From: Ashwin Shah [EMAIL PROTECTED]
To: 'Sandeep Agarwal' [EMAIL PROTECTED]; 'The Linux-Delhi mailing
list' [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 6:00 PM
Subject: RE: [ilugd] Re: Suggestion required on CBQ !!


 You have to create the htb directory in /etc/sysconfig. Also the format
 of the files is different. Htb should also be enabled in the kernel
 either as a module or built into the kernel itself. Though in some ways
 it is similar to cbq it requires to be compiled into the kernel first.
 It will take a bit more effort than using CBQ but works much better. If
 you still want to use CBQ let me know and I will send instructions for
 the same.

 Best regards

 Ashwin Shah


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 On Behalf Of Sandeep Agarwal
 Sent: Monday, March 29, 2004 5:30 PM
 To: Abhijit Menon-Sen
 Cc: [EMAIL PROTECTED]
 Subject: [ilugd] Re: Suggestion required on CBQ !!

 .It's derived from cbq.init
 Should I leave the files under /etc/sysconfig/cbq  as it is And load 
 configure the
 HTB? Or remove All CBQ entry first from the system.

 Sandeep
 - Original Message -
 From: Abhijit Menon-Sen [EMAIL PROTECTED]
 To: Sandeep Agarwal [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 5:04 PM
 Subject: Re: Suggestion required on CBQ !!


  At 2004-03-29 16:58:26 +0530, [EMAIL PROTECTED] wrote:
  
   CBQ is ok for this or any other tool is/are suggested?
 
  (I'd recommend HTB instead.
  See http://www.lartc.org)
 
  -- ams
 

 ___
 ilugd mailinglist -- [EMAIL PROTECTED]
 http://frodo.hserus.net/mailman/listinfo/ilugd
 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
 http://www.mail-archive.com/[EMAIL PROTECTED]/



___
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/


[ilugd] Re: Suggestion required on CBQ !!!!!!

2004-03-29 Thread Sandeep Agarwal
.It's derived from cbq.init
Should I leave the files under /etc/sysconfig/cbq  as it is And load  configure the
HTB? Or remove All CBQ entry first from the system.

Sandeep
- Original Message -
From: Abhijit Menon-Sen [EMAIL PROTECTED]
To: Sandeep Agarwal [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 5:04 PM
Subject: Re: Suggestion required on CBQ !!


 At 2004-03-29 16:58:26 +0530, [EMAIL PROTECTED] wrote:
 
  CBQ is ok for this or any other tool is/are suggested?

 (I'd recommend HTB instead.
 See http://www.lartc.org)

 -- ams


___
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/