View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-13-2007, 02:00 PM   #1
Registered: Dec 2003
Location: USA
Distribution: Debian
Posts: 40

Rep: Reputation: 15
Download speed / bandwidth prioritized by application


Is there a program which will prioritize the available bandwidth by application?

I mean let's say I am downloading something via a Newsgroup reader, a torrent and I am using firefox at the same time.
I would like to give first priority to Firefox second priority to Bit Torrent and 3rd to let's say Pan Newsgroup reader. So that the Pan Newsgroup reader only uses the unused bandwidth.

Is there something that will do that?


Old 07-15-2007, 10:10 AM   #2
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,487

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
If all applications are running on the same machine you could distinguish them by the different port numbers they use. If applications run on the same machine AND use the same port numbers it is next to impossible.

If the port numbers are different, use the program 'tc' in combination with iptables.

TC is a difficult beast to handle. Search for "Linux traffic shaping howto" and you'll get plenty documentation and examples. Try to understand the examples and adapt them for your needs. You'll want to use a HTB que discipline.

If you have a firewall through which you access internet, you'd have to implement your traffic shaping on the outgoing interface of the firewall. Outgoing here is FROM your firewall TO your machine.

If you access the internet directly from your machine (thru a modem or campus network) you'd have to shape the traffic inside your own box. However traffic shaping only works on outgoing interfaces as you can only control what you are sending not what you receive. In that case, you'd need to install a dummy interface which receives all traffic, and then distributes it to processes inside your machine. SUch an interface is called an IMQ (Intermediate Que Device)

You'll find that in google as well if you search for "Linux traffic shaping howto IMQ" . IMQ may or may not be part of the kernel now, I didn't follow the development the past few years.

Traffic shaping works, but the learning curve is a bit steep.

Old 07-15-2007, 11:06 AM   #3
Registered: Dec 2003
Location: USA
Distribution: Debian
Posts: 40

Original Poster
Rep: Reputation: 15
This sounds like something which is possible but you scared me of with the steep learning curve.
However I like to thank you for your reply jlinkels.


application, bandwidth

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
How can i limit the bandwidth of application? (like CURL) sharon179 Linux - Networking 1 01-17-2007 05:38 AM
LXer: Linux/UNIX: Double your download speed with download accelerator LXer Syndicated Linux News 1 09-28-2006 07:44 AM
Bandwidth speed tests lumba General 5 12-06-2005 03:37 PM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 01:52 PM
Bandwidth limiting application sokar Linux - Software 3 03-26-2004 09:46 AM

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration