RE: [LARTC] Some help please !

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using htb3.3-020512

Here's the tc-s...

[root@xxx /root]# tc -s class show dev eth1
class htb 1:1 root prio 0 rate 4800Kbit ceil 4800Kbit burst 7743b cburst
7743b
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 10325 ctokens: 10325

class htb 1:2 root prio 0 rate 7200Kbit ceil 7200Kbit burst 10814b cburst
10814b
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 9614 ctokens: 9614

class htb 1:12 root prio 0 rate 100000Kbit ceil 100000Kbit burst 129587b
cburst 129587b
 Sent 568 bytes 11 pkts (dropped 0, overlimits 0)
 lended: 11 borrowed: 0 giants: 0
 tokens: 8289 ctokens: 8289
-----Original Message-----
From: Martin Devera [mailto:devik@xxxxxx]
Sent: 24 May 2002 19:23
To: Justin Owens
Cc: lartc
Subject: RE: [LARTC] Some help please !


hmm they should - what version of htb you have ?
send tc -s ..... [see prev mail]

On Fri, 24 May 2002, Justin Owens wrote:

> And when I do the following:
> I try and send traffic on an un-specified port eg 25 and all the packets
get
> dropped; I though they would default into 1:12 and be allowed through ??
>
> tc qdisc del dev eth1 root
>
> tc qdisc add dev eth1 root handle 1: htb default 12
>
> tc class add dev eth1 parent 1: classid 1:1 htb rate 600kbps ceil 600kbps
> tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil 900kbps
> tc class add dev eth1 parent 1: classid 1:12 htb rate 12500kbps
>
> tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport
100
> 0xffff flowid 1:1
> tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport
150
> 0xffff flowid 1:2
>
>
> I try and send traffic on an un-specified port eg 25 and all the packets
get
> dropped, I though they would default into 1:12 and be allowed through
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Martin Devera [mailto:devik@xxxxxx]
> Sent: 24 May 2002 19:05
> To: Justin Owens
> Cc: lartc
> Subject: RE: [LARTC] Some help please !
>
>
> As timer is acurate. And also remember I measure whole frames
> with ethernet header. Depends what measures your meter.
> For long lived traffic (several seconds) you can expect
> about 1packet variation - it is 1% from rate for 100 packets.
> devik
>
> On Fri, 24 May 2002, Justin Owens wrote:
>
> > Right...yeah...578 and 868 and I'm looking for 600 and 900 :-)
> > How accurate would you normally expect HTB to be ??
> >
> >
> >
> > -----Original Message-----
> > From: Martin Devera [mailto:devik@xxxxxx]
> > Sent: 24 May 2002 18:47
> > To: Justin Owens
> > Cc: lartc
> > Subject: Re: [LARTC] Some help please !
> >
> >
> > Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?
> >
> > On Fri, 24 May 2002, Justin Owens wrote:
> >
> > > Hello,
> > >
> > > I am testing HTB using Iperf to generate traffic on a couple of ports
> and
> > > trying to shape the traffic. I am using the script following but my
> > results
> > > don't seem to make sense.
> > > I am seeing 4627Kbps on port 100 and 6944 on port 150.
> > > I'm sure there's a reasonable explaination for this but I can't find
it
> !
> > >
> > > Any help would be appreciated.
> > >
> > > Rgds.
> > > Justin
> > >
> > >
> > > tc qdisc del dev eth1 root
> > >
> > > tc qdisc add dev eth1 root handle 1: htb default 12
> > >
> > > tc class add dev eth1 parent 1: classid 1:1 htb rate 600kbps ceil
> 600kbps
> > > tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil
> 900kbps
> > >
> > > tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip
dport
> > 100
> > > 0xffff flowid 1:1
> > > tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip
dport
> > 150
> > > 0xffff flowid 1:2
> > >
> > >
> > >
> > > The information contained in this email is privileged and
confidential,
> > intended only for the use of the individual or entity to whom it is
> > addressed. If the reader of this email is not the intended recipient,
you
> > are hereby notified that any dissemination, distribution or copying of
> this
> > email is strictly prohibited. If you have received this email in error,
> > please notify the sender immediately by email and delete this email. Any
> > views expressed in this email are those of the individual sender unless
> the
> > sender specifically states
> > > This mail was virus scanned by SurfControl.
> > >
> > >
> > > _______________________________________________
> > > LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> > >
> > >
> >
> >
> > The information contained in this email is privileged and confidential,
> intended only for the use of the individual or entity to whom it is
> addressed. If the reader of this email is not the intended recipient, you
> are hereby notified that any dissemination, distribution or copying of
this
> email is strictly prohibited. If you have received this email in error,
> please notify the sender immediately by email and delete this email. Any
> views expressed in this email are those of the individual sender unless
the
> sender specifically states
> > This mail was virus scanned by SurfControl.
> >
> >
> >
> >
>
>
> The information contained in this email is privileged and confidential,
intended only for the use of the individual or entity to whom it is
addressed. If the reader of this email is not the intended recipient, you
are hereby notified that any dissemination, distribution or copying of this
email is strictly prohibited. If you have received this email in error,
please notify the sender immediately by email and delete this email. Any
views expressed in this email are those of the individual sender unless the
sender specifically states
> This mail was virus scanned by SurfControl.
>
>
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>


The information contained in this email is privileged and confidential, intended only for the use of the individual or entity to whom it is addressed. If the reader of this email is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify the sender immediately by email and delete this email. Any views expressed in this email are those of the individual sender unless the sender specifically states 
This mail was virus scanned by SurfControl.




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux