LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-19-2014, 10:51 AM   #1
johncrack
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Question tc(linux traffic control) no matches on other classid


Hi all,

Here is my simple tc settings to shape and prioritized outgoing aix2(voip), http and dns due to my small ADSL upload bandwidth ( 600kbit).


tc qdisc add dev ppp0 root handle 1: htb default 90
tc class add dev ppp0 parent 1:0 classid 1:1 htb rate 600kbit burst 15k
tc filter add dev ppp0 protocol ip parent 1:0 prio 1 u32 match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:1
tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 150kbit ceil 600kbit burst 15k prio 0
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 350kbit ceil 600kbit burst 15k prio 1
tc class add dev ppp0 parent 1:1 classid 1:30 htb rate 100kbit ceil 600kbit burst 15k prio 4
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 4569 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:10
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 80 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:20
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 443 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:20
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 53 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:20
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:30


I think there is a problem with it or it might be something that I misunderstood... If run the "watch -n 1 tc -s -d class show dev ppp0" command, I only see matches on classid 1:30.
If I comment out the last filter (1:30). I do see matches on the other classid.


Help me please.


John
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic Shaping VoiP using TC (Traffic Control) is this working? Nemus Linux - Networking 0 05-16-2011 01:45 PM
Should traffic control root qdsic & child class limit traffic? Washington Ratso Linux - Networking 0 02-23-2011 07:16 PM
tc traffic control tc traffic control Linux QoS control tool(noob help) inv|s|ble Linux - General 1 07-26-2007 11:12 AM
linux traffic control (tc) djsubari Linux - Networking 0 09-14-2006 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:06 AM.

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