LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 08-19-2013, 06:32 AM   #1
hudac
LQ Newbie
 
Registered: Oct 2012
Posts: 12

Rep: Reputation: Disabled
tc different behavior: redhat5.6 - redhat6.2 (doesn't work well for specific port)


Hey,
I wrote once a script which runs `tc` commands in order to create `tc` on specific port.
The `tc` commands ran on `redhat5.6` perfectly.

Now, when I upgraded to `redhat6.2` I've noticed that `tc` doesn't work well on `dev lo` (loopback) and btw still works for `dev eth0`;
When I ran `tc` command on `dev lo` for specific port, let's say 8999, all of the ports on the `lo` get stuck, doesn't matter how much I limit the port. When I delete `tc` structure my process (which use another port or the same, let's say 8998) doesn't return to normal.
My process can run normally only if I don't use the `tc` command on the `lo` at all. At the moment I start `tc` on any port on the `lo`, on any limitation, my process get stuck.

Is there any change in `redhat6.2` that may affect this strange behavior?

My `tc` commands:

initialization: delete `tc` stracture on `lo`:

Code:
tc qdisc del dev lo root
for `lo` put `mtu` to 1500

Code:
ifconfig lo mtu 1500 up
create the root and 1:1

Code:
tc qdisc add dev lo root handle 1: htb default 1
limit free for all ports

Code:
tc class add dev lo parent 1: classid 1:1 htb rate 1024mbit
limit bit rate for specific port to 500kbit

Code:
tc class add dev lo parent 1: classid 1:10 htb rate 500kbit
filter which leads packets to 1:10 (limit-class)

Code:
tc filter add dev lo parent 1: prio 1 protocol ip u32 match ip sport 8999 0xffff flowid 1:10
Thanks.
 
Old 08-19-2013, 07:01 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Cross-posting is against the LQ rules. Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.

Continue in the other/original thread: https://www.linuxquestions.org/quest...rt-4175471377/

Reported for closure.
 
  


Closed Thread

Tags
linux, network, redhat, tc



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
tc different behavior: redhat5.6 - redhat6.2 (doesn't work well for specific port) hudac Red Hat 0 07-31-2013 02:44 AM
Every time I install a port it doesn't work arya6000 *BSD 3 08-29-2008 02:37 AM
Higher port forwarding doesn't work fatman Linux - Networking 3 01-01-2006 09:31 AM
Openning a port...doesn't work?! vous Linux - Networking 10 04-09-2005 11:29 PM
Parallel port doesn't work SuSe 9 mwolfske Linux - Hardware 3 02-24-2004 08:06 AM

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

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