PDA

Bekijk de volledige versie : Possible solution to p2p problem? (Prob nº1 in FAQ)



jseabra
14-07-2005, 15:03
Hi all.
The no 1 problem in the FAQ is :
1. P2P networks causing lost of connectivity due to limited number of connections which firewall is keeps tracking (1024 by default)
The problem has been fixed but its still possible to improve emule downloads by changing 2 parameters.

The first solutiuon is to increase ip_conntrack_max in proc.

Also to improve speed change the tcp_fin_timeout parameter:

echo 2048 > /proc/sys/net/ipv4/ip_conntrack_max
echo 120 > /proc/sys/net/ipv4/tcp_fin_timeout

Add this to post-boot

Try it and drop a line here!

Kind Regards,

João Seabra

Oleg
14-07-2005, 15:30
1. P2P networks causing lost of connectivity due to limited number of connections which firewall is keeps tracking (1024 by default)

4096 in my firmwares, could be adjusted via web interface.

maxshifrin
16-07-2005, 11:20
Oleg,
Won't the router choke with 4K connections? Also if I'll update it to say 8 or 16K then will it be able to handle it?
Right now it is at its' default of 1024 and during hot days the router reboots like there is no tommorow... (semi hot days it manages to stay more or less alive...)

Max.

Oleg
16-07-2005, 18:15
4K is set by default in my firmwares. 16K should also work.

"Hot days" - you mean high temperature around?

tomilius
17-07-2005, 05:56
Also to improve speed change the tcp_fin_timeout parameter:

echo 2048 > /proc/sys/net/ipv4/ip_conntrack_max
echo 120 > /proc/sys/net/ipv4/tcp_fin_timeout


Just a second. I could be way off here, but shouldn't those two lines make things worse?

As Oleg stated, firmwares default now with 4096, so 2048 is half as many connections being tracked...

More to my point, the tcp_fin_timeout value you've used is 4 times the default value for the router, isn't it? I read the default value was 60, but when I checked on my router before I changed it I thought it said 30. Anyway, doesn't that mean such things have to be tracked longer, or something? One would assume so, since they'd take longer to timeout... Please tell me how INCREASING tcp_fin_timeout will speed up p2p, because I'm interested in knowing. :D

Oleg
17-07-2005, 06:08
hm... right. it's set to 60, so 120 could make things worse.

maxshifrin
23-07-2005, 14:12
Yeah hot days as in high temperature - around 40c celcius with say 75-95% moisture.. (makes a human feel like it is about 55c :))