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.
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@cdi.cz] 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 myresults> 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 dport100> 0xffff flowid 1:1 > tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport150> 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@mailman.ds9a.nl > 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.
it is hard to help without knowing your testbed and tc -s class show dev eth1 output 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@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
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@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
On Friday 24 May 2002 19:15, 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.You are probably mixing bytes and bits. In tc commands, kbps = kilobit. So 600kbps = 4800kilobyte per second. And you are measuring 4627Kbps. So that''s 4627 kilobyte /s and very close to the 4800 you wanted with tc. Stef stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net
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@cdi.cz] 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@cdi.cz] > 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 portsand> > 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 ceil600kbps> > tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil900kbps> > > > 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 ofthis> 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 unlessthe> sender specifically states > > This mail was virus scanned by SurfControl. > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > 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.
I''m using htb3.3-020512 Here''s the tc-s... [root@htb /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@cdi.cz] 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 packetsget> 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 dport100> 0xffff flowid 1:1 > tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport150> 0xffff flowid 1:2 > > > I try and send traffic on an un-specified port eg 25 and all the packetsget> dropped, I though they would default into 1:12 and be allowed through > > > > > > > > > -----Original Message----- > From: Martin Devera [mailto:devik@cdi.cz] > 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@cdi.cz] > > 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 findit> ! > > > > > > 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 ipdport> > 100 > > > 0xffff flowid 1:1 > > > tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ipdport> > 150 > > > 0xffff flowid 1:2 > > > > > > > > > > > > The information contained in this email is privileged andconfidential,> > 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@mailman.ds9a.nl > > > 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 ofthis> 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 unlessthe> 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@mailman.ds9a.nl > 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.
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@cdi.cz] > 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@mailman.ds9a.nl > > 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. > > > >
Martin, I have kind of sussed out what it is...any other port than 25 works fine so there must be something going on with the client I have. Its a new XP box with loads of junk loaded on it by Dell :-) Justin -----Original Message----- From: Martin Devera [mailto:devik@cdi.cz] 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 packetsget> 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 dport100> 0xffff flowid 1:1 > tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport150> 0xffff flowid 1:2 > > > I try and send traffic on an un-specified port eg 25 and all the packetsget> dropped, I though they would default into 1:12 and be allowed through > > > > > > > > > -----Original Message----- > From: Martin Devera [mailto:devik@cdi.cz] > 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@cdi.cz] > > 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 findit> ! > > > > > > 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 ipdport> > 100 > > > 0xffff flowid 1:1 > > > tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ipdport> > 150 > > > 0xffff flowid 1:2 > > > > > > > > > > > > The information contained in this email is privileged andconfidential,> > 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@mailman.ds9a.nl > > > 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 ofthis> 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 unlessthe> 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@mailman.ds9a.nl > 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.
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@cdi.cz] > 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@cdi.cz] > > 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@mailman.ds9a.nl > > > 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@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
Hmm interesting. It seems that 11 packets was really enqueued into class 12. How many packets do you sent to the 25 ? Please send me also tc -s -d qdisc output. devik On Fri, 24 May 2002, Justin Owens wrote:> I''m using htb3.3-020512 > > Here''s the tc-s... > > [root@htb /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@cdi.cz] > 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@cdi.cz] > > 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@cdi.cz] > > > 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@mailman.ds9a.nl > > > > 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@mailman.ds9a.nl > > 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. > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
Ok .. XP ehh yes really nice system for every spy. On Fri, 24 May 2002, Justin Owens wrote:> Martin, > I have kind of sussed out what it is...any other port than 25 works fine so > there must be something going on with the client I have. Its a new XP box > with loads of junk loaded on it by Dell :-) > Justin > > > > -----Original Message----- > From: Martin Devera [mailto:devik@cdi.cz] > 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@cdi.cz] > > 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@cdi.cz] > > > 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@mailman.ds9a.nl > > > > 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@mailman.ds9a.nl > > 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. > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
Hello, I am working on a backport of HTB3 to kernel 2.2.20. I am looking for volunteers to test it. Rgds. Eric
Hello Eric! Eric Dillmann wrote:> I am working on a backport of HTB3 to kernel 2.2.20. > > I am looking for volunteers to test it.I might... but only with 2.2.19 :) Greetings Nils