LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-09-2011, 10:23 AM   #1
_dx
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Rep: Reputation: Disabled
Show me full tc command syntax


Where can I found detailed and not outdated description of linux tc command? I interested in all related filters and actions.
For example there is no info about hashkey...
Also I see action drop, but seems to be there is no official documentation or how-to available...
Am I wrong?
 
Old 08-09-2011, 12:42 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Have you read the manual page (and the See Also recommendations)? Also the user documentation found at http://lartc.org (it contains a how-to in a number of languages and formats)?

Hope this helps some.
 
Old 08-09-2011, 02:38 PM   #3
_dx
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Of course I did.
I even read some developer notes(it was VERY important for me) found in iproute2 source tarball (doc directory ) )
http://devresources.linuxfoundation....2.6.38.tar.bz2
Also very good article(some details are missed in lartc):
http://b42.cz/notes/u32_classifier/
 
Old 08-10-2011, 07:27 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Well, I searched for "linux + tc + drop" and found section 4.6 of the documentation at http://tldp.org/HOWTO/Traffic-Contro...omponents.html, then searching for "linux + tc + drop + example" turned up (among a lot of others) http://pupa.da.ru/tc/. Either of those point the direction?

Similarly, a search for "linux + tc + hashkey" turned up what looks like a good example at http://vcalinus.gemenii.ro/?p=9 (plus a large number of other examples).

It seems that either drop or hashing requires a good understanding of filters and classifiers and policers as noted in the first reference (section 4.6; footnote [2]) above:
Quote:
In this case, you'll have a filter which uses a classifier to select the packets you wish to drop. Then you'll use a policer with a with a drop action like this police rate 1bps burst 1 action drop/drop.
Anyway, hope this helps some.
 
Old 08-10-2011, 09:25 AM   #5
_dx
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks a lot to all.
Information is really strongly "fragmented" and I made a lot of work to put it all together.
My way:
1. man tc
2. http://lartc.org/lartc.html
3. Read more detailed about u32
http://b42.cz/notes/u32_classifier/
4. This notes also very useful
specially flow keys llist descriprion(src (source ip), dst (destination ip), proto (ip protocol), proto-src (transport protocol source address), proto-dst (transport protocol destination address).... )
http://www.wlug.org.nz/TrafficControl
5. Read all in doc/actions/ from iproute source
http://devresources.linuxfoundation....2.6.38.tar.bz2
also available online:
http://dev.laptop.org/~mstone/source...3/doc/actions/

Hope this will help somebody.

Last edited by _dx; 08-10-2011 at 03:26 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
no files on the disk but 'df -h' show it's full junust Linux - General 7 04-22-2010 05:16 AM
ps doesn't show the full command line OlRoy *BSD 2 01-29-2007 09:34 PM
command to show full directory path cuco76 Linux - Newbie 2 10-12-2006 08:36 PM
How can I show the full names on my desktop? mehmetunlu Linux - Newbie 3 02-14-2006 06:55 AM
XSLT/xml enforcing full tag syntax bigearsbilly Programming 2 11-23-2005 02:38 AM

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

All times are GMT -5. The time now is 01:20 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