| Linux Forum Index » Linux Networking » mldonkey & traffic shaping -> WWW still slow |
|
Page 1 of 1 |
|
| Author |
Message |
| Andy Furniss |
Posted: Sat Feb 12, 2005 8:51 pm |
|
|
|
Guest
|
Benjamin Fraenkel wrote:
Quote: Hello,
Im having an ADSL connection (512/128kbps). When I start mldonkey
webbrowsing is practically impossible, though no dl/ul occurs in
mldonkey just usual seeking for sources, connecting to servers. But if I
start a download (ftp/http) I still get maximumum download bw. So I
thought it must be an upload problem and configured a router with
traffic shaping.
TCng script: http://www.fraenkel.at/bandwidth.tcng
I never got into tcng - can you get it to dump the tc output.
With tc bps means bytes per second - I think it's bits for tcng, you can
double check with tc -s -d class ls dev eth0.
As Prg says sfq is best for bulk really (though your point about it being
classified allready by htb is valid). Also again as Prg suggests you ought
to use some extra htb parameters - prio, quantum, burst and cburst to tweak
things up for small packets.
It does look like your setup should work at first glance, so it should be
fixable.
Andy. |
|
|
| Back to top |
|
|
|
| Andy Furniss |
Posted: Wed Feb 16, 2005 8:09 am |
|
|
|
Guest
|
prg wrote:
Quote: Every couple of years I give the bored students in the computer (Linux)
lab classes the challenge of bandwidth limiting/blocking p2p software.
It provides very interesting (and disappointing) results as the "users"
battle the "admins" -- users always find a way ;-0. It's also a good
way to test software solutions for effectiveness and usability.
I suppose now hfsc is in the kernel things could be easier (not blocking),
but in theory you can now do things properly per user, which was hard with
htb. Though they could still spoof MAC addresses I suppose.
Andy. |
|
|
| Back to top |
|
|
|
| Andy Furniss |
Posted: Wed Feb 16, 2005 8:14 am |
|
|
|
Guest
|
prg wrote:
Quote: Regarding the upstream queues. I limited the max. bw to 80kbps (even
tried with 60) though I got 128kbps upstream, so my modem shouldn't
queue anything.
I'm still not sure why you are doing this. The whole point of HTB is
to make "most effecient" use of _all_ available bandwidth. Your setup
deprives you of 48 kbps.
With DSL you do need to back off - and it's worse if you have alot of small
packets.
An empty ack for example will be accounted as 40 bytes but will actually
use 106 on the wire.
You can tweak things up by patching, but you need to be able to work out
what your ppp overheads are - easy if your modem gives you a cell count,
but it seems many don't.
Andy. |
|
|
| Back to top |
|
|
|
| Benjamin Fraenkel |
Posted: Thu Feb 17, 2005 4:10 pm |
|
|
|
Guest
|
Hello,
I'm sorry I didn't answer, but had/have some problems.
After messing up netfilter with broken pom-patches I finally got ipp2p
installed but as I assumed it didn't solve anything.
I also tweaked htb options prio, burst, cburst - no effect, followed the
instructions from
http://gentoo-wiki.com/HOWTO_Packet_Shaping
Now I set up a priority queue to prioritize every but ipp2p traffic, but
still after starting the p2p client WWW-Traffic freezes, here's my script:
http://fraenkel.at/ng.sh.txt
I hope there's something totally wrong with the script. I also tried
ready-made scripts including wondershaper but nothing worked.
TIA, Benjamin |
|
|
| Back to top |
|
|
|
| Andy Furniss |
Posted: Mon Feb 21, 2005 6:52 pm |
|
|
|
Guest
|
Benjamin Fraenkel wrote:
Quote: Hello,
I'm sorry I didn't answer, but had/have some problems.
After messing up netfilter with broken pom-patches I finally got ipp2p
installed but as I assumed it didn't solve anything.
I also tweaked htb options prio, burst, cburst - no effect, followed the
instructions from
http://gentoo-wiki.com/HOWTO_Packet_Shaping
Now I set up a priority queue to prioritize every but ipp2p traffic, but
still after starting the p2p client WWW-Traffic freezes, here's my
script:
http://fraenkel.at/ng.sh.txt
I hope there's something totally wrong with the script. I also tried
ready-made scripts including wondershaper but nothing worked.
TIA, Benjamin
I have never used ipp2p or used prio so without testing can't really
comment on that setup.
I did install mldonkey over the weekend though and it didn't hurt my htb
setup any more than I expected. I wasn't sharing much though and I have
256kbit up.
I also noticed that you can limit with the the config - number of
connections as well as rate. I wonder whether what you are seeing is
something to do with your router and NAT. I use linux as a router and even
with only a few shared files had 5-600 connections on the go - sometimes
many more - matbe that is what's hurting rather than flooding buffers.
Andy. |
|
|
| Back to top |
|
|
|
|