Networking Forums

Networking Forums > Computer Networking > Linux Networking > Unexpected behavior by 'tc'

Reply
Thread Tools Display Modes

Unexpected behavior by 'tc'

 
 
Naren
Guest
Posts: n/a

 
      08-07-2007, 11:57 PM
Hi all,
I am trying to find out what the mis-configuration is, when I
issue the commands below.

tc qdisc add dev eth0 root handle 123: htb
tc class replace dev eth0 parent 123: classid 123:100 htb rate 200kbit
ceil 200kbit
tc class replace dev eth0 parent 123:100 classid 123:1 htb rate 0kbit
ceil 200kbit prio 0
tc class replace dev eth0 parent 123:100 classid 123:2 htb rate 0kbit
ceil 200kbit prio 1
tc class replace dev eth0 parent 123:100 classid 123:3 htb rate 0kbit
ceil 200kbit prio 2
tc class replace dev eth0 parent 123:100 classid 123:4 htb rate 0kbit
ceil 200kbit prio 3
tc class replace dev eth0 parent 123:100 classid 123:5 htb rate 0kbit
ceil 200kbit prio 4

What happens is this:
I've two packet streams which are properly classified (I verified this
part) into classid's 123:2 and 123:4. I send data constantly on each
stream at the rate of 300 kbps. As expected, I see 200 kbps devoted to
123:2 and no bandwidth devoted to 123:4, which is what I want.
However, if I raise the "ceil" in all commands and the "rate" in the
second command to 300kbit instead of 200kbit; then ALL packets from
both streams go through and I get an effective output of 600 kbps. I
was expecting 300 kbps from 123:2 and none from 123:4.

Do you know what could be causing this?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow speed - unexpected cause allan Broadband 0 08-26-2007 10:23 AM
Linux TCP - unexpected retransmissions Francois Linux Networking 9 05-30-2007 05:27 PM
Unexpected behaviour of TCP... srinivasan.gct@gmail.com Linux Networking 0 10-07-2005 02:07 PM
unexpected deauthentication David Boyer Wireless Internet 0 08-05-2005 09:57 PM
Unexpected Shutdown Myrt Webb Wireless Networks 2 11-10-2004 01:02 AM



1 2 3 4 5 6 7 8 9 10 11