LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2010, 10:57 PM   #1
sunnyhay
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Unhappy Traffic control problem with DRR scheduler


The problem is that any subclass with DRR (deficit round robin) qdisc will lose any packets sending out. I'll show you all my tc scripts, sending activities and results below.
First I set up my traffic control context like this:

tc qdisc add dev eth0 root handle 1: htb default 15

tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbps ceil 1000kbps

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 300kbps ceil 300kbps
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 100kbps ceil 100kbps
tc class add dev eth0 parent 1:1 classid 1:15 htb rate 600kbps ceil 600kbps

tc filter add dev eth0 parent 1: protocol ip prio 10 u32 match ip tos 0x10 0xff flowid 1:10
tc filter add dev eth0 parent 1: protocol ip prio 20 u32 match ip tos 0x20 0xff flowid 1:11

tc qdisc add dev eth0 parent 1:10 handle 20: drr
tc qdisc add dev eth0 parent 1:11 handle 30: drr


Then get the detailed tc statistical tc class report like this:

class htb 1:11 parent 1:1 leaf 30: prio 0 quantum 10000 rate 800000bit ceil 800000bit burst 1599b/8 mpu 0b overhead 0b cburst 1599b/8 mpu 0b overhead 0b level 0
Sent 0 bytes 0 pkt (dropped 100, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 249984 ctokens: 249984

class htb 1:1 root rate 8000Kbit ceil 8000Kbit burst 1600b/8 mpu 0b overhead 0b cburst 1600b/8 mpu 0b overhead 0b level 7
Sent 556525 bytes 3969 pkt (dropped 0, overlimits 0 requeues 0)
rate 1496bit 2pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 23250 ctokens: 23250

class htb 1:10 parent 1:1 leaf 20: prio 0 quantum 30000 rate 2400Kbit ceil 2400Kbit burst 1599b/8 mpu 0b overhead 0b cburst 1599b/8 mpu 0b overhead 0b level 0
Sent 0 bytes 0 pkt (dropped 241, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 83328 ctokens: 83328

class htb 1:15 parent 1:1 prio 0 quantum 60000 rate 4800Kbit ceil 4800Kbit burst 1599b/8 mpu 0b overhead 0b cburst 1599b/8 mpu 0b overhead 0b level 0
Sent 542725 bytes 3669 pkt (dropped 7, overlimits 0 requeues 0)
rate 1496bit 2pps backlog 0b 0p requeues 0
lended: 3669 borrowed: 0 giants: 0
tokens: 38750 ctokens: 38750


Do you notice any abnormal dropping points by subclass 1:10 and 1:11? Any packets in any rate sending out are dropped!
I just use hping3 to send packets.
In iptables I set
iptables –t mangle –A POSTROUTING –p icmp –d 69.166.51.182 –j DSCP –set-dscp 16
iptables –t mangle –A POSTROUTING –p udp –d 69.166.51.182 –j DSCP –set-dscp 32


Use iptables –t mangle -L we get
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
DSCP icmp -- anywhere sln303-harry.eecs.wsu.edu DSCP set 0x10
DSCP udp -- anywhere sln303-harry.eecs.wsu.edu DSCP set 0x20


But when I set another subclass 1:12 with the similar configuration but only without DRR qdisc attached, all the packets (following the pre-configured filter) can be sent out without any problem.
So could you please tell me what's wrong with the DRR usage? Is there successfuly example or script using DRR without any weird problems? It's new and so nobody gives constructive opinion online. Look forward to your advice or help!
Thank you!

Harry

Last edited by sunnyhay; 12-06-2010 at 10:59 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with traffic control, squid and iptables ={D|D}= Linux - Networking 2 05-14-2010 10:25 AM
How to control kernel scheduler? rdo Linux - Kernel 2 03-24-2009 02:35 PM
About Control-M Scheduler Uday123 Solaris / OpenSolaris 3 11-27-2007 10:56 AM
tc traffic control tc traffic control Linux QoS control tool(noob help) inv|s|ble Linux - General 1 07-26-2007 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration