Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I adjust network priority?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Thu Apr 12, 2007 2:24 am    Post subject: How do I adjust network priority? Reply with quote

I usually have an awe full lot of traffic coming in and out on my PC. No I am not doing anything illegal.. Between the terminal server, and the web site, there are times when the bandwdth is saturated to the point that web browsers and email clients and so on become unresponsive.

So I want to give firefox, and thunderbird priority over network bandwidth so that in those situations when the bandwidth is saturated I can still perform my usual desktop duties comfortably.

Any ideas how I might do this? Any suggestions?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Thu Apr 12, 2007 2:32 am    Post subject: Reply with quote

Hi.

You'll want to read about QoS. For your system go to your kernel tree, run make menuconfig, choose Networking --> Networking options --> QoS and fair queueing. A good source about this is http://www.lartc.org/ .
If you want to apply QoS to your Internet connection, you'll probably need to look at your router/firewall config.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Thu Apr 12, 2007 7:30 pm    Post subject: Reply with quote

That site you linked to is way over my head. Do I just have to enable the QoS option in menuconfig, and then select the appropriate modules? Will it automatically then adjust priority?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Thu Apr 12, 2007 8:19 pm    Post subject: Reply with quote

lol cross-posting on different forum sites lol

iptables
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Fri Apr 13, 2007 12:33 am    Post subject: Reply with quote

Naib wrote:
lol cross-posting on different forum sites lol

iptables


Yeah, I like to spread myself around to get the widest audience.

I'm not very familiar with iptables, but it seems that according to the link provided the rules that iptables creates in the scripts would only apply to a router config. One of the issues that I have, is I only want this to affect my desktop computer, and nothing else.... I know I can make rules on the router to only affect this ip address, but really I would prefer a solution that runs locally on the desktop.

Can this be done with iptables? Is there a GUI for iptables that would simplify QoS?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Fri Apr 13, 2007 12:47 am    Post subject: Reply with quote

If your problem is caused by exhausting your Internet pipe, no solution on your local desktop will solve your problem - you'll need to configure the router.
That is, if I read you correctly and you have traffic generated from the outside. You can't control that traffic in your local box, you can only limit it on your router.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Fri Apr 13, 2007 3:04 am    Post subject: Reply with quote

I actually have both the web server and the terminal server installed on my desktop. Both of them exist solely for recreational use. It is not a production environment.

Because this is the only computer that is generating any real traffic, do I still need to build a linux router? I would think that a PC should be able to throttle the traffic it is generating without need from an outside source.

For me in my usage scenario that would make much more sense then to take the time and money of building a custom router.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23093

PostPosted: Sat Apr 14, 2007 5:25 am    Post subject: Reply with quote

You can have your desktop prioritize the traffic without needing an external router, assuming you have the appropriate QoS support in the kernel. The simplest way to address your problem would be to define filters for tc which direct your HTTP/SMTP/IMAP traffic into a class which has a large bandwidth allocation, and dump everything else into a class which has little guaranteed bandwidth, but a ceiling that will allow it to consume anything you are not otherwise using. Beware that if your master class allows too much traffic out too quickly, you will overload the pipe and the router will begin queuing packets, at which point you lose the ability to order traffic effectively.

LARTC is quite complex, but it is worth learning.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum