Skip to contentSkip to conversation

Some help please !

LARTC Justin Owens 3 participants 12 messages May 24, 2002

lore
Share & tools
lore
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

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:[email protected]]
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 ?

Quoted 4 lines · Justin Owens

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

Quoted 10 lines

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

Quoted 8 lines

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

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 5 lines

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

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Justin Owens

it is hard to help without knowing your testbed and tc -s class show dev eth1 output

Quoted 28 lines · Justin Owens

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

Quoted 9 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Justin Owens

Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?

Quoted 28 lines · Justin Owens

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

Quoted 9 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to Justin Owens
Quoted 9 lines · Justin Owens

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

[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#5 lore raw
In reply to Justin Owens

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:[email protected]]
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

Quoted 13 lines · Justin Owens

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:[email protected]]
Sent: 24 May 2002 18:47
To: Justin Owens
Cc: lartc
Subject: Re: [LARTC] Some help please !

Quoted 7 lines

Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?

Quoted 3 lines · Justin Owens

Hello,

I am testing HTB using Iperf to generate traffic on a couple of ports

and

Quoted 5 lines
Quoted 1 line

trying to shape the traffic. I am using the script following but my

results

Quoted 3 lines

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

!

Quoted 7 lines
Quoted 7 lines

Any help would be appreciated.

Rgds.
Justin

Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil

900kbps

Quoted 6 lines
Quoted 2 lines

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

100

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 8 lines
Quoted 5 lines

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

Quoted 3 lines

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

Quoted 4 lines

sender specifically states

Quoted 3 lines

This mail was virus scanned by SurfControl.

Quoted 8 lines
Quoted 5 lines

_______________________________________________
LARTC mailing list / [email protected]
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

Quoted 5 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#6 lore raw
In reply to Justin Owens

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:[email protected]]
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]

Quoted 2 lines · Justin Owens

And when I do the following:
I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 11 lines

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

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 4 lines

0xffff flowid 1:2

I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 38 lines

dropped, I though they would default into 1:12 and be allowed through

-----Original Message-----
From: Martin Devera [mailto:[email protected]]
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

Quoted 13 lines · Justin Owens

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:[email protected]]
Sent: 24 May 2002 18:47
To: Justin Owens
Cc: lartc
Subject: Re: [LARTC] Some help please !

Quoted 13 lines
Quoted 7 lines

Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?

Quoted 3 lines · Justin Owens

Hello,

I am testing HTB using Iperf to generate traffic on a couple of ports

and

Quoted 5 lines
Quoted 1 line

trying to shape the traffic. I am using the script following but my

results

Quoted 3 lines

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

Quoted 8 lines

!

Quoted 7 lines
Quoted 7 lines

Any help would be appreciated.

Rgds.
Justin

Quoted 10 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil

900kbps

Quoted 2 lines
Quoted 2 lines

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 3 lines
Quoted 3 lines

100

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 6 lines
Quoted 6 lines

150

Quoted 5 lines

0xffff flowid 1:2

The information contained in this email is privileged and

confidential,

Quoted 2 lines
Quoted 2 lines

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

Quoted 17 lines
Quoted 1 line

are hereby notified that any dissemination, distribution or copying of

this

Quoted 3 lines

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

Quoted 11 lines

sender specifically states

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 4 lines
Quoted 1 line

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

Quoted 3 lines

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

Quoted 9 lines

sender specifically states

Quoted 5 lines

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

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#7 lore raw
In reply to Justin Owens

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

Quoted 66 lines · Justin Owens

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:[email protected]]
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 ?

Quoted 4 lines · Justin Owens

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

Quoted 10 lines

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

Quoted 8 lines

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

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 5 lines

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

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 6 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#8 lore raw
In reply to Justin Owens

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:[email protected]]
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]

Quoted 2 lines · Justin Owens

And when I do the following:
I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 11 lines

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

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 4 lines

0xffff flowid 1:2

I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 38 lines

dropped, I though they would default into 1:12 and be allowed through

-----Original Message-----
From: Martin Devera [mailto:[email protected]]
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

Quoted 13 lines · Justin Owens

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:[email protected]]
Sent: 24 May 2002 18:47
To: Justin Owens
Cc: lartc
Subject: Re: [LARTC] Some help please !

Quoted 13 lines
Quoted 7 lines

Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?

Quoted 3 lines · Justin Owens

Hello,

I am testing HTB using Iperf to generate traffic on a couple of ports

and

Quoted 5 lines
Quoted 1 line

trying to shape the traffic. I am using the script following but my

results

Quoted 3 lines

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

Quoted 8 lines

!

Quoted 7 lines
Quoted 7 lines

Any help would be appreciated.

Rgds.
Justin

Quoted 10 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil

900kbps

Quoted 2 lines
Quoted 2 lines

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 3 lines
Quoted 3 lines

100

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 6 lines
Quoted 6 lines

150

Quoted 5 lines

0xffff flowid 1:2

The information contained in this email is privileged and

confidential,

Quoted 2 lines
Quoted 2 lines

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

Quoted 17 lines
Quoted 1 line

are hereby notified that any dissemination, distribution or copying of

this

Quoted 3 lines

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

Quoted 11 lines

sender specifically states

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 4 lines
Quoted 1 line

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

Quoted 3 lines

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

Quoted 9 lines

sender specifically states

Quoted 5 lines

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

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#9 lore raw
In reply to Justin Owens

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

Quoted 131 lines · Justin Owens

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:[email protected]]
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

Quoted 13 lines · Justin Owens

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:[email protected]]
Sent: 24 May 2002 18:47
To: Justin Owens
Cc: lartc
Subject: Re: [LARTC] Some help please !

Quoted 7 lines

Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?

Quoted 3 lines · Justin Owens

Hello,

I am testing HTB using Iperf to generate traffic on a couple of ports

and

Quoted 5 lines
Quoted 1 line

trying to shape the traffic. I am using the script following but my

results

Quoted 3 lines

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

!

Quoted 7 lines
Quoted 7 lines

Any help would be appreciated.

Rgds.
Justin

Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil

900kbps

Quoted 6 lines
Quoted 2 lines

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

100

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 8 lines
Quoted 5 lines

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

Quoted 3 lines

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

Quoted 4 lines

sender specifically states

Quoted 3 lines

This mail was virus scanned by SurfControl.

Quoted 8 lines
Quoted 5 lines

_______________________________________________
LARTC mailing list / [email protected]
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

Quoted 5 lines

This mail was virus scanned by SurfControl.

Quoted 9 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#10 lore raw
In reply to Justin Owens

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

Quoted 195 lines · Justin Owens

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:[email protected]]
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]

Quoted 2 lines · Justin Owens

And when I do the following:
I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 11 lines

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

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 4 lines

0xffff flowid 1:2

I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 38 lines

dropped, I though they would default into 1:12 and be allowed through

-----Original Message-----
From: Martin Devera [mailto:[email protected]]
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

Quoted 13 lines · Justin Owens

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:[email protected]]
Sent: 24 May 2002 18:47
To: Justin Owens
Cc: lartc
Subject: Re: [LARTC] Some help please !

Quoted 13 lines
Quoted 7 lines

Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?

Quoted 3 lines · Justin Owens

Hello,

I am testing HTB using Iperf to generate traffic on a couple of ports

and

Quoted 5 lines
Quoted 1 line

trying to shape the traffic. I am using the script following but my

results

Quoted 3 lines

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

Quoted 8 lines

!

Quoted 7 lines
Quoted 7 lines

Any help would be appreciated.

Rgds.
Justin

Quoted 10 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil

900kbps

Quoted 2 lines
Quoted 2 lines

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 3 lines
Quoted 3 lines

100

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 6 lines
Quoted 6 lines

150

Quoted 5 lines

0xffff flowid 1:2

The information contained in this email is privileged and

confidential,

Quoted 2 lines
Quoted 2 lines

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

Quoted 17 lines
Quoted 1 line

are hereby notified that any dissemination, distribution or copying of

this

Quoted 3 lines

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

Quoted 11 lines

sender specifically states

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 4 lines
Quoted 1 line

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

Quoted 3 lines

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

Quoted 9 lines

sender specifically states

Quoted 5 lines

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

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 9 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#11 lore raw
In reply to Justin Owens

Ok .. XP ehh yes really nice system for every spy.

Quoted 181 lines · Justin Owens

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:[email protected]]
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]

Quoted 2 lines · Justin Owens

And when I do the following:
I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 11 lines

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

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dport

150

Quoted 4 lines

0xffff flowid 1:2

I try and send traffic on an un-specified port eg 25 and all the packets

get

Quoted 38 lines

dropped, I though they would default into 1:12 and be allowed through

-----Original Message-----
From: Martin Devera [mailto:[email protected]]
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

Quoted 13 lines · Justin Owens

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:[email protected]]
Sent: 24 May 2002 18:47
To: Justin Owens
Cc: lartc
Subject: Re: [LARTC] Some help please !

Quoted 13 lines
Quoted 7 lines

Ehh and another hint, what is kbps in your mind ? BYTES or BITS ?

Quoted 3 lines · Justin Owens

Hello,

I am testing HTB using Iperf to generate traffic on a couple of ports

and

Quoted 5 lines
Quoted 1 line

trying to shape the traffic. I am using the script following but my

results

Quoted 3 lines

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

Quoted 8 lines

!

Quoted 7 lines
Quoted 7 lines

Any help would be appreciated.

Rgds.
Justin

Quoted 10 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

tc class add dev eth1 parent 1: classid 1:2 htb rate 900kbps ceil

900kbps

Quoted 2 lines
Quoted 2 lines

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 3 lines
Quoted 3 lines

100

Quoted 2 lines

0xffff flowid 1:1
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip

dport

Quoted 6 lines
Quoted 6 lines

150

Quoted 5 lines

0xffff flowid 1:2

The information contained in this email is privileged and

confidential,

Quoted 2 lines
Quoted 2 lines

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

Quoted 17 lines
Quoted 1 line

are hereby notified that any dissemination, distribution or copying of

this

Quoted 3 lines

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

Quoted 11 lines

sender specifically states

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 4 lines
Quoted 1 line

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

Quoted 3 lines

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

Quoted 9 lines

sender specifically states

Quoted 5 lines

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

Quoted 8 lines

This mail was virus scanned by SurfControl.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 9 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/