1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WAG160N: LCP-request timeout

Discussion in 'Other Linksys Equipment' started by elezar, Dec 5, 2008.

  1. elezar

    elezar Guest


    I have problem with my WAG160N (AnnexA). I use PPPoE to connect ISP.
    Every 8-10 minutes fails PPP-connection. ADSL-line connection is stable - SNR Margin >20dB. After some time (about 30 sec) it reconnects successfully, but it fails after another 8-10 min... etc.

    Sat, 2008-10-04 23:52:00 - lcp echos pending >= lcp_echo_fails!
    Sat, 2008-10-04 23:52:00 - No response to 3 echo-requests
    Sat, 2008-10-04 23:52:00 - Serial link appears to be disconnected.
    Sat, 2008-10-04 23:52:00 - Couldn't increase MTU to 1500.
    Sat, 2008-10-04 23:52:00 - Couldn't increase MRU to 1500
    Sat, 2008-10-04 23:52:00 - LCP down.
    Sat, 2008-10-04 23:52:06 - Connection terminated.
    Sat, 2008-10-04 23:52:06 - Connect time 10.2 minutes.

    I have latest 1.00.09 firmware.
    I tried to calculate real MTU and set it manually. But it has no effect.

    I think that problem is in lcp-check mechanism. WAG160N send lcp-requests to PPP server and after 3 failure attemtps drop PPP-connection.

    PPP on Linux have some important settings such as lcp-echo-interval, lcp-echo-failure, lcp-timeout-retry. And it is possible to disable LCP-checks from client.

    Can I modify this parameters on WAG160n? Or they are deep in flash rom?

    Another non-Linksys devices (such as D-Link or Zyxel) works fine!

    P.S. The Linksys tech support with their standart-routine approach to any problem can not issue this. They just promised that they sent the request to f/w developers. But i am not sure about their help.

    Thanks a lot for response.
  2. Mothersh1p

    Mothersh1p Addicted to LI Member

    Try this:

    diff --git a/router/pppd/pppd/lcp.c b/router/pppd/pppd/lcp.c
    index d4bb016..a053255 100644
    --- pppd/pppd/lcp.c
    +++ ppp-2.4.1.pppoe4.orig/pppd/lcp.c
    @@ -2110,24 +2110,6 @@ void LcpLinkFailure (f)
    - *  Check if we have been received "echo reply" packet
    - */
    -static void LcpCheckReply(arg)
    -       void *arg;
    -       //fsm *f1 = &lcp_fsm[ifunit];
    -       //junzhao 2004.7.9
    -       fsm *f1 = (fsm *)arg;
    -       if(lcp_echos_pending >= 1)
    -               TIMEOUT(LcpEchoTimeout, f1, 1);
    -       else
    -               TIMEOUT(LcpEchoTimeout, f1, lcp_echo_interval-1);
      * Timer expired for the LCP echo requests from this process.
    @@ -2135,9 +2117,7 @@ static void
     LcpEchoCheck (f)
         fsm *f;
    -    //junzhao 2004.7.9
    -    if(check_adsl_status())
    -         LcpSendEchoRequest (f);
    +    LcpSendEchoRequest (f);
         if (f->state != OPENED)
    @@ -2146,9 +2126,7 @@ LcpEchoCheck (f)
         if (lcp_echo_timer_running)
            warn("assertion lcp_echo_timer_running==0 failed");
    -    //TIMEOUT (LcpEchoTimeout, f, lcp_echo_interval);
    -    //junzhao 2004.3.18
    -    TIMEOUT (LcpCheckReply, f, 1);
    +    TIMEOUT (LcpEchoTimeout, f, lcp_echo_interval);
         lcp_echo_timer_running = 1;
  3. Wolfie_TH

    Wolfie_TH Addicted to LI Member

    I get the exact same problem, the ADSL connection drops every 14-15mins. it reconnects again after a few seconds (10-20s or so) but obviously this is very frustrating as trying to do anythign that requires a constant connection is impossible!

    I have narrowed the problem down to this LCP settings, and i was wondering how to apply the script above or if someone could assist me in finding a way to override the setting manually.

    Thanks in advance!

Share This Page