View previous topic :: View next topic |
Author |
Message |
duby2291 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/150044193048b2bbfa1109a.jpg)
Joined: 17 Oct 2004 Posts: 583
|
Posted: Thu Apr 12, 2007 2:24 am Post subject: How do I adjust network priority? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jmbsvicetto Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/131796264c80fa19b97a2.png)
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Thu Apr 12, 2007 2:32 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
duby2291 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/150044193048b2bbfa1109a.jpg)
Joined: 17 Oct 2004 Posts: 583
|
Posted: Thu Apr 12, 2007 7:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Naib Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/10548223558c42f2887453.jpg)
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Thu Apr 12, 2007 8:19 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
duby2291 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/150044193048b2bbfa1109a.jpg)
Joined: 17 Oct 2004 Posts: 583
|
Posted: Fri Apr 13, 2007 12:33 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jmbsvicetto Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/131796264c80fa19b97a2.png)
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Fri Apr 13, 2007 12:47 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
duby2291 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/150044193048b2bbfa1109a.jpg)
Joined: 17 Oct 2004 Posts: 583
|
Posted: Fri Apr 13, 2007 3:04 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23093
|
Posted: Sat Apr 14, 2007 5:25 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|