LinuxQuestions.org
Help answer threads with 0 replies.
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 06-10-2004, 11:29 AM   #1
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Traffic Shaping


Using iproute2 and netfilter, can anyone explain to me a way to mark packets and throttle them based on port? Ideally I'd like HTTP(80) to have highest priority, VoIP(assume 1400) to have a 2nd priority, MySQL(3389) 3rd priority, FTP(21) fourth, and every thing else lower, such that if someone is playing a game, and then a VoIP app is launched, the game is throttled back to allow the VoIP to suck up as much bandwidth as it needs.

Stats of my system:

-bash-2.05b# uname -a
Linux router 2.4.21-xfs #13 SMP Tue Aug 26 01:46:14 CEST 2003 i586 GNU/Linux
-bash-2.05b# iptables -v
iptables v1.2.9: no command specified
-bash-2.05b# ip -V
ip utility, iproute2-ss010824
-bash-2.05b# tc -V
tc utility, iproute2-ss010824

This is a debian unstable box and I believe it does NOT have HTB so the previous posts I've read don't apply.
 
Old 06-10-2004, 05:21 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
SFAIK there's a CBQ implementation for Linux, so I would start there.
 
Old 06-10-2004, 06:52 PM   #3
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
the debian pkg shaper fit's good here but it's not that configureable. uses CBQ and is easy to set up. shaped a 2Mbit 1 year ago - works fine. also have a look at the bandwidth-limiting-howto.

sl mritch.
 
Old 10-23-2008, 12:43 PM   #4
mndar
Member
 
Registered: Feb 2005
Posts: 34

Rep: Reputation: 16
I had posted a method to get perfect load balancing on another forum a while back. You might find it useful
http://forums.fedoraforum.org/showthread.php?p=835704

To use some specific iptables features, you may have to re-compile it. This link will help
http://mndar.phpnet.us/tutorials/Lin...s_goodies.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Traffic Shaping SchwipSchwap Linux - Newbie 2 10-23-2008 12:42 PM
Traffic shaping shy Linux - Networking 2 11-30-2004 09:51 AM
Traffic Shaping nemesisza Linux - Networking 1 03-21-2004 05:52 PM
Traffic Shaping ?? DocKane Linux - Networking 2 08-24-2001 09:32 AM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration