LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-29-2013, 05:46 PM   #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.
 
  


Reply

Tags
kernel, linux, netwoking, redhat, traffic



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
SSH Over Port 443 | Doesn't Work ! Benygh Linux - Newbie 5 03-16-2013 01:41 PM
[SOLVED] UDP port forwarding doesn't work danielhilst Linux - Networking 4 04-19-2012 03:48 PM
[SOLVED] ssh doesn't work after modify port AKB48 Linux - Newbie 3 03-03-2012 04:20 AM
Every time I install a port it doesn't work arya6000 *BSD 3 08-29-2008 02:37 AM
Openning a port...doesn't work?! vous Linux - Networking 10 04-09-2005 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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