All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Measuring Bw alloted in classes
Date: Fri, 22 Feb 2002 17:26:31 +0000	[thread overview]
Message-ID: <marc-lartc-101439885601355@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101439601222640@msgid-missing>

On Friday 22 February 2002 17:38, Rajesh Revuru wrote:
> HI all..
>
> Iam using tc for testing diffserv fucntionalites.
>
> My basic interest is to allocate two classes for TCP and UDP and allot diff
> bw shares and test applying traffic generators.
>
> Iam using CBQ as my queueing discipline...
>
> tc qdisc add eth1 handle 10:root cbq allot 100Mb avpkt 100 bandwidth
> 100Mbit
>
> Class 1:tc class add dev eth1 parent 10:1 root cbq weight 2 allot 40mb prio
> 2 avpkt 1000 rate 60mbit bandwidth 60mbit bounded isolated
>
> Class 2:tc class add dev eth1 parent 10:2 root cbq weight 7 allot 30mb prio
> 7 avpkt 1000 rate 60mbit bandwidth 60mbit bounded isolated
>
> filter 1:tc filter add dev eth1 prio 2 protocop ip root handle 1 fw classid
> 10:1
>
> filter 2:tc filter add dev eth1 prio 7 protocop ip root handle 2 fw classid
> 10:2
>
> ipchains -I output1 -p tcp -m 1
>
> ipchains -I output2 -p udp -m 2
FIrst of all, the bandwith of the classes attacjed to a qdisc must be the 
same.  So in your cas 100mbit.
Second, you need to create a bounded class and attach it to the root qdisc 
with rate = bandwith.  Attach both other class to this class in stead of the 
root qdisc.
And don't use the isolated parameter.  It's not working.
And take weight = rate /10.

>  Question 1:
>
> My intention is to apply a class.1 to TCP traffic class no.2 to UDP
> traffic. Is that acheived? Iam using Iptraf to check the statistics at the
> interfaces.. but i see a little difference
The filters and ipchains commands are OK.

> Question 2:
>
> Is there any way where i can check the bw alloted to diff classes
> graphically or by numbers?
I have some scripts on www.docum.org.  First script is monitor.pl and it 
gives a real time bandwith usage of the classes (it uses the byte counters of 
iptables/ipchains and not the output of the tc command).  I have a 
web-interface example here : http://qos.dyndns.org:8080/cgi-bin/monitor.pl
I have also a version that can be used in a terminal.

I also wrote a new script.  It uses the 
output of tc and rrd to create 
some graphs (http://home.docum.org/stef.coene/qos/gui/rrd.html).

Hope this helps

Stef

-- 

stef.coene@docum.org
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

      reply	other threads:[~2002-02-22 17:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-22 16:38 [LARTC] Measuring Bw alloted in classes Rajesh Revuru
2002-02-22 17:26 ` Stef Coene [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-101439885601355@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.