| Linode Forum https://forum.linode.com/ |
|
| Traffic Shaping https://forum.linode.com/viewtopic.php?f=19&t=1731 |
Page 2 of 2 |
| Author: | erik.elmore [ Tue Jun 21, 2005 12:01 am ] |
| Post subject: | |
I'm not sure how the bridge will impact this but maybe what you need are some HTB rules on your bridge interface. Maybe something like this: Code: 1: Children of 10: would be guaranteed 85% of the bandwidth, 11: would be guaranteed the rest. Both classes being able to borrow from the other when it is not in use. Put all high priority traffic from the IP of your laptop into 10:1, all other traffic from that IP into 10:2. High prioirity traffic from all other IP's into 11:1, all other traffic into 11:2. Set the dequeueing priorities of 1:10, 1:11, and 1:21 to 1, set 1:20, 1:22, and 1:12 to 2. This translates into TC commands like so (i think): Code: tc qdisc add dev root handle 1: htb \ This is not a complete TC script because it doesn't have filters to classify traffic, nor does it have SFQ enabled on any leaf. Bascially you'd want to match high priority from the laptop and put it in 1:11, match everything else from the laptop and put it in 1:12, high priority traffic from elsewhere go to 1:21, and the rest go to 1:22. Think you can come up with the right filter lines and add SFQ (if desired)? I'm too tired to think about those right now. |
|
| Author: | TiTaN_pi8 [ Tue Jun 21, 2005 4:26 am ] |
| Post subject: | |
Thanks a lot! I will try this out as soon as I can, but that might take a while because I'm in the middle of my exams right now... |
|
| Author: | gmt [ Tue Jun 21, 2005 5:33 am ] |
| Post subject: | |
Does this work for incoming traffic too? (yes I know there are issues) eg limit incoming ftp to X kb/sec. |
|
| Author: | erik.elmore [ Tue Jun 21, 2005 10:10 am ] |
| Post subject: | |
Quote: Does this work for incoming traffic too? (yes I know there are issues)
Assuming that the filters match against source and destination IP of the laptop and considering this is a bridge interface, it may... but I've never tried to shape a bridge interface so I dunno for sure. The best sources of information on TC is on LARTC and The HTB manual. It really isn't as complicated as it seems. |
|
| Page 2 of 2 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|