openl2tp.org
http://forums.openl2tp.org/

persistent tunnel not brought up according to timeouts
http://forums.openl2tp.org/viewtopic.php?f=3&t=106
Page 1 of 1

Author:  gearbox23 [ Fri Jun 01, 2012 3:08 am ]
Post subject:  persistent tunnel not brought up according to timeouts

Hello,

I'm running openl2tp on a mips proc.
Here is my openl2tp.conf:
ppp profile modify profile_name=default \
auth_none=yes \
idle_timeout=30 \
lcp_echo_interval=10 \
lcp_retransmit_interval=1

tunnel create tunnel_name=TEMP dest_ipaddr=192.168.200.1 \
host_name=CLI001 \
persist=yes \
hello_timeout=5 \
max_retries=2 \
retry_timeout=5 \
idle_timeout=5

session create tunnel_name=TEMP \
session_name=TEMP \
user_name=qacafe \
user_password=qacafe123

As you can see, in ppp profile, I'd like to disconnect PPP if 30 seconds have passed without
any activity. I see this happen successfully, but after the tunnel is brought down,
it takes 8-10 minutes to restore instead of 5 seconds.
Also, when the PPP session is disconnected, there is no PPP/LCP Terminate Ack from
the LNS, instead the LNS sends StopCCN, which causes LAC to retransmit PPP/LCP Terminate

I've attached a wireshark capture,

Would appreciate any assistance,

gearhead23

Author:  jchapman [ Mon Jul 16, 2012 8:47 am ]
Post subject:  Re: persistent tunnel not brought up according to timeouts

gearbox23 wrote:
As you can see, in ppp profile, I'd like to disconnect PPP if 30 seconds have passed without
any activity. I see this happen successfully, but after the tunnel is brought down,
it takes 8-10 minutes to restore instead of 5 seconds.
Also, when the PPP session is disconnected, there is no PPP/LCP Terminate Ack from
the LNS, instead the LNS sends StopCCN, which causes LAC to retransmit PPP/LCP Terminate

In the tunnel, set persist_pend_timeout. It must be at least 120 seconds. This is the minimum persist retry period. You'll need to patch the source to reduce this time. (It is set this high to ensure that any state held by the peer for the previous tunnel has timed out.)
idle_timeout is the time that a tunnel will stay up when it has no sessions. It isn't what you want here.
Set persist=yes and persist_pend_timeout=5 in your session parameters.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/