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


Reply
  Search this Thread
Old 01-11-2007, 08:15 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Throttling network usage of generic programs?


I'm wondering if anyone knows a good way of throttling generic programs that send data over the network. For example, I want to transfer a large amount of data and and it may even run for days, but I can't have it chew up the whole network pipe as this will cause problems for other servers and things that must have enough bandwidth. If I upload a huge amount of data, I don't suddently want all services that use that same pipe to time out.

Ideally I am looking for something like
Code:
throttle program-name --options
that I can use from the command line to enforce usage restrictions on things that may not have them built into them.

There are programs like netlimiter for windows that can throttle any arbitrary program's network usage both upload and download separately but I don't know of anything similar for linux.


Any recommendations?
 
Old 01-11-2007, 08:52 AM   #2
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
I'm using a combination of iptables, l7-filter, and tc to limit file sharing bandwidth.

You should be able to do it with just iptables and tc if you know which port the application is using. l7-filter is nice because it can identify traffic from specific apps. So if you're using port 80 or something you could write a l7-filter protocol for your app.

You can find some good tutorials at:

http://l7-filter.sourceforge.net/

That's my idea anyway.
 
  


Reply



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
Using nmap to monitor programs usage AGazzaz Linux - Networking 1 05-17-2006 11:21 AM
generic multihomed network card question Danathar Linux - Networking 0 12-06-2004 08:25 AM
Usage Syntax in Programs sovietpower Programming 1 09-07-2004 12:34 AM
Two generic network cards won't work with Debian computergeek84 Debian 1 01-08-2004 10:10 PM
network usage monitoring via console & generic apps bkeating Linux - Newbie 1 11-12-2003 06:43 PM

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

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

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