Pablo Milano wrote:
I am using L2TP on linux as a VPN server with L2TP/IPSec clients. I observed that, when the connecion is heavily used (e.g, transferring a big archive) the L2TP connection hangs at the server side.
Could you elaborate on this? Is this reproducable? Is there a certain size when this occurs? Do you have a bad or slow link?
/* * FIXME: How about adaptive timeouts? */ // tv.tv_sec = 1 tv.tv_sec = 15; tv.tv_usec = 0; schedule (tv, control_xmit, buf);
Maybe 15 is an exagerated value, but I donīt have the hanging
problem anymore. As I saw, the 1 second timeout is low
because of the high load on the link. As the link has too
much traffic, the control message does not arrive on time.
I see that rp-l2tp has adaptive timeouts. It too starts with a 1 second time-out and then doubles it until a maximum of 8 seconds is reached:
/* Double timeout, capping at 8 seconds */ if (tunnel->timeout < 8) { tunnel->timeout *= 2; }
So perhaps 15 seconds is indeed a bit exaggerated.
Jacco -- Jacco de Leeuw mailto:[EMAIL PROTECTED] Zaandam, The Netherlands http://www.jacco2.dds.nl