View previous topic :: View next topic |
Author |
Message |
stelardactek n00b

Joined: 28 Aug 2005 Posts: 45
|
Posted: Thu Sep 13, 2007 2:58 am Post subject: Packet shaping. Should I get an ADSL PCI card? |
|
|
I've been considering setting up packet shaping/QoS on my Gentoo box. It does a lot of network stuff already: DNS, DHCP, web/ftp serving, so having to have it on to access the internet would be no big deal. The issue is that, according to the information I've found, getting it to work relies on getting the ethernet port connected to the ADSL router to limit uploads to just slightly less than the line will handle. This doesn't sound ideal to me, especially when I'm not sure exactly how fast my line is. I have an 8Mbps plan ADSL1, but live a fair distance from the exchange.
I'd think an ADSL PCI card would solve this issue. Only problem is I've only seen ADSL1 cards available, and I'm hoping my area will have ADSL2+ before too long. That and I don't know if it would be worth it in the long run. Does anyone know? |
|
Back to top |
|
 |
alex.blackbit Advocate

Joined: 26 Jul 2005 Posts: 2397
|
Posted: Fri Sep 14, 2007 6:08 am Post subject: |
|
|
i do not understand what difference having a pci card instead of a ethernet connected blackbox makes.
if you want to test the speed of your connection you have many options. a good one for the download speed is just using wget to download anything, like emerge does it. or enter "dsl speed test" on a internet search engine. you will get shiny websites. |
|
Back to top |
|
 |
stelardactek n00b

Joined: 28 Aug 2005 Posts: 45
|
Posted: Fri Sep 14, 2007 6:30 am Post subject: |
|
|
I may be wrong, but I'd think the difference would be that the PCI card wouldn't have its own packet queue. That would mean I wouldn't have to throttle an interface and would thus always be getting the most out of my connection, yet would still be able to handle the packet queue. |
|
Back to top |
|
 |
alex.blackbit Advocate

Joined: 26 Jul 2005 Posts: 2397
|
Posted: Fri Sep 14, 2007 4:50 pm Post subject: |
|
|
to my understanding that makes no difference. |
|
Back to top |
|
 |
stelardactek n00b

Joined: 28 Aug 2005 Posts: 45
|
Posted: Sat Sep 15, 2007 2:58 pm Post subject: |
|
|
Maybe I misunderstand, but the idea of packet shaping is to control the packet queue. If the packet queue is on my ADSL device, I can't control it. So a PCI card would be advantageous if it has no packet queue, as then the packet queue would be handled by GNU/Linux and thus under my control. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23380
|
Posted: Sat Sep 15, 2007 5:10 pm Post subject: |
|
|
The instructions assume you are dealing with a blackbox which has its own queue, which is why they want you to set the limit to be slightly less than line speed. If the line can send 100kb/sec, and Linux never sends more than 96kb/sec, then no traffic will back up in the modem and Linux has complete control over it. If Linux sent at or above 100kb/sec, then the blackbox might start queuing traffic and Linux would be less effective in scheduling the traffic. |
|
Back to top |
|
 |
stelardactek n00b

Joined: 28 Aug 2005 Posts: 45
|
Posted: Sun Sep 16, 2007 6:54 am Post subject: |
|
|
Hu wrote: | The instructions assume you are dealing with a blackbox which has its own queue, which is why they want you to set the limit to be slightly less than line speed. If the line can send 100kb/sec, and Linux never sends more than 96kb/sec, then no traffic will back up in the modem and Linux has complete control over it. If Linux sent at or above 100kb/sec, then the blackbox might start queuing traffic and Linux would be less effective in scheduling the traffic. |
This is my point. Wouldn't an ADSL PCI card eliminate the need to limit the rate at which Linux sends? |
|
Back to top |
|
 |
nobspangle Veteran


Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Sun Sep 16, 2007 9:17 am Post subject: |
|
|
I don't think it makes any difference. The thing about ADSL is that the line speed is not the same as the maximum speed.
Your ADSL connection is 8MBps, let's say your sync speed is 7MBps your maximum ADSL speed is probably around 6MBps. Even with a PCI card the line speed of your connection will still be 7MBps.
The other thing to bare in mind is that you can only really shape upstream traffic.
I used to use a PCI ADSL card and it worked great until my connection was upgraded to 8MBps at which point the card became unstable so I switched to an external ADSL router. |
|
Back to top |
|
 |
stelardactek n00b

Joined: 28 Aug 2005 Posts: 45
|
Posted: Sun Sep 16, 2007 11:51 pm Post subject: |
|
|
nobspangle wrote: | I don't think it makes any difference. The thing about ADSL is that the line speed is not the same as the maximum speed.
Your ADSL connection is 8MBps, let's say your sync speed is 7MBps your maximum ADSL speed is probably around 6MBps. Even with a PCI card the line speed of your connection will still be 7MBps.
The other thing to bare in mind is that you can only really shape upstream traffic.
I used to use a PCI ADSL card and it worked great until my connection was upgraded to 8MBps at which point the card became unstable so I switched to an external ADSL router. |
Well, my maximum ADSL speed is something like 6Mbps down, maybe 5.5. Again though, this isn't about getting more speed, it's about having the packet queue where I can control it. But if you say PCI cards aren't stable at that speed, then I guess I'll just throttle the upload speed of the interface connecting to the ADSL router, in order to keep the queue on my machine. Now I just need to find out how to do that... |
|
Back to top |
|
 |
|