Problems with routers and P2P?
Feb. 15th, 2006 08:52 amAfter considerable problems getting Azureus to work nicely with
kissycat1000's WRT54GSV4, I think I've found the answer.
The problem is simply that the number of connections Azureus and other P2P clients make overwhelms the router's connection tracking tables and it ends up dropping packets all over the place, slowing web connections to a crawl and making them unreliable.
One of the recent changes is decentralised tracking. This allows Azureus to circumvent problems if the tracker is no longer online. However it does this by initiating a lot of connections to other peers, and it is this which floods the poor little router.
On other clients such as µTorrent, decentralised tracking is called DHT.
The answer is to disable this, and also reduce the number of connections the P2P client makes - I've set
kissycat1000's to 30 max connections globally.
On the router you should disable any QoS because this may also cause the router to choke on the number of packets/destinations.
Currently
kissycat1000's router is set to reboot overnight, but I think I can probably take this out now.
I did initially try a different firmware which is reported to sort the problem out. The firmware I tried (DD-WRT) is in beta, and certainly we had problems with the GUI refusing to accept commands - but that could have been Azureus causing it to lock up at that point - I have not tried it now I've sorted out the Azureus problem.
A side note - the Linksys routers actually use linux under the hood, all except the latest WRT54GSV5, which has reduced flash memory and RAM and uses VxWorks, a proprietary embedded OS. If you're in to upgrading the firmware on your router, avoid these latest ones. Or, of course, use a linux box for your router anyway, and you can do all sorts of cool things like host your own webserver, email, proxy, calendar etc :)
The problem is simply that the number of connections Azureus and other P2P clients make overwhelms the router's connection tracking tables and it ends up dropping packets all over the place, slowing web connections to a crawl and making them unreliable.
One of the recent changes is decentralised tracking. This allows Azureus to circumvent problems if the tracker is no longer online. However it does this by initiating a lot of connections to other peers, and it is this which floods the poor little router.
On other clients such as µTorrent, decentralised tracking is called DHT.
The answer is to disable this, and also reduce the number of connections the P2P client makes - I've set
On the router you should disable any QoS because this may also cause the router to choke on the number of packets/destinations.
Currently
I did initially try a different firmware which is reported to sort the problem out. The firmware I tried (DD-WRT) is in beta, and certainly we had problems with the GUI refusing to accept commands - but that could have been Azureus causing it to lock up at that point - I have not tried it now I've sorted out the Azureus problem.
A side note - the Linksys routers actually use linux under the hood, all except the latest WRT54GSV5, which has reduced flash memory and RAM and uses VxWorks, a proprietary embedded OS. If you're in to upgrading the firmware on your router, avoid these latest ones. Or, of course, use a linux box for your router anyway, and you can do all sorts of cool things like host your own webserver, email, proxy, calendar etc :)
no subject
Date: 2006-02-15 09:31 am (UTC)I like μtorrent a lot, actually. It doesn't have that many frills, granted, but it's amazing for a 150k executable!
no subject
Date: 2006-02-15 09:34 am (UTC)information
Date: 2006-02-21 04:14 pm (UTC)I have used Azureus for quite a while so I know it fairly well. I've found that Azureus can go a bit mental with CPU and memory usage if you have quite a few concurrent torrents. There are a lot of options and screens in Azureus but I've found tha utorrent has kept all the useful ones and it has an overall speed graph. This is a very limited view of utorrent so far though.
I was wondering what you so useful in Azureus that you couldn't find in utorrent? I'm almost converted to utorrent but am still testing both.
P.S. you can limit numbers of connections in the Transfers section in the Options page.
Re: information
Date: 2006-02-21 06:38 pm (UTC)µTorrent does all the basics that Azureus does, except plugins. I'm becoming increasingly paranoid about getting slapped on the wrists, so plugins like the safepeer thing in Azureus are a must, and I'm also looking in to using one (or more) of the anonymous networks (Tor, I2P) for tracker transfer at least.
Yes, you can limit the number of connections in Azureus, but because of its plugin nature you have to also check in there, and other places. Even when it should be turned off, the distributed tracking thing still seems to carry on. If you want to see what I mean, try doing a
netstat -nat the command line to see how many connections you have. With µTorrent when I tell it to limit to 30, I get 30 connections. With Azureus I still get several hundred, and the router tells me it's dropping packets because its connection table is full. Plus of course I get the typical crap connection problems.Not sure if I've made it clear, but I'm now using µTorrent as it keeps the connection stable.
no subject
Date: 2006-02-15 11:31 am (UTC)no subject
Date: 2006-02-15 02:21 pm (UTC)no subject
Date: 2006-02-15 02:23 pm (UTC)no subject
Date: 2006-02-15 02:28 pm (UTC)I never quite believed in it myself because if something compromises your firewall you've got bigger problems than them reading your mail off the spool...
no subject
Date: 2006-02-15 02:32 pm (UTC)I don't believe it is much less secure with a well-configured system. Make sure all communications are secure, that there are no security concerns with the versions of applications you are using, use secure passwords (and possibly obscure usernames) and you shouldn't have too much trouble. I am not even running a firewall, as I just turn off services I don't want running. NAT protects my internal machines anyway.
no subject
Date: 2006-02-15 06:26 pm (UTC)