Modify

Opened 3 years ago

Last modified 3 years ago

#17859 new defect

LCP terminated by peer

Reported by: ducktide@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

My connection keeps restarting when I try to connect a new device to the internet. It's completely random, sometimes it works fine. But most of the time when I connect a device that has been disconnected for some time, the connection keeps reconnecting. Sometimes it helps to restart all devices at once, sometimes it stops only after a while without any connections. It works just fine if there is only one connection active (I have measured over 20h stable connection on my notebook downloading stuff, then I connect another notebook, the connection falls and it keeps reconnecting until I restart/disconnect both notebooks, not only the one that caused it but both, and it works the other way around as well).

I have axesstel mv110nh modem connected to TP-Link TL-WR842N/ND v2 with OpenWrt Barrier Breaker r39425 / LuCI Trunk (svn-r9951) (I found it here: http://www.ufon.cz/cs/osobni/pro-zakazniky/technicka-podpora/32) and a couple of notebooks with win7/win8.

My first guess was that it disconnects because there is to much brandwidth and the isp limits connection by cutting it, so I tried to install qos from http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/, but my kernel version did not match. I am well aware that it is outdated. The only possibility for me is CDMA connection, because there is no other signal here and I could not find any other already made firmware and I am sure I would not be able to install it by myself, because all I could find are tutorials for 3g and others, but no CDMA/EV-DO. I installed the qos script same way I did with ddns by using opkg with -force--depends, but it did not work and I get some errors in system log now, but please note that the problem is still the same as before and it is not caused by this.

Can you tell me what exactly "LCP terminated by peer" means?

I am also confused about my firewall settings, it has to be this way, it doesn't work when I try to change any of these settings and I'm not sure why:
root@OpenWrt:/etc/config# cat firewall

config defaults

option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
option syn_flood '1'

config zone

option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'

config zone

option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option mtu_fix '1'
option network 'wan wan6 3gwan o2'
option masq '1'

config forwarding

option src 'lan'
option dest 'wan'

(there are some more rules after, but I don't think they are necessary)

Here is my system log:

Sun Sep 14 10:55:29 2014 daemon.info pppd[1157]: CHAP authentication succeeded
Sun Sep 14 10:55:29 2014 daemon.notice pppd[1157]: CHAP authentication succeeded
Sun Sep 14 10:55:29 2014 daemon.notice pppd[1157]: local IP address 85.160.62.195
Sun Sep 14 10:55:29 2014 daemon.notice pppd[1157]: remote IP address 10.164.3.42
Sun Sep 14 10:55:29 2014 daemon.notice pppd[1157]: primary DNS address 160.218.167.5
Sun Sep 14 10:55:29 2014 daemon.notice pppd[1157]: secondary DNS address 194.228.211.33
Sun Sep 14 10:55:29 2014 daemon.warn dnsmasq[2013]: no servers found in /tmp/resolv.conf.auto, will retry
Sun Sep 14 10:55:29 2014 daemon.notice netifd: Interface 'o2' is now up
Sun Sep 14 10:55:30 2014 user.notice firewall: Reloading firewall due to ifup of o2 (3g-o2)
Sun Sep 14 10:55:32 2014 daemon.info dnsmasq[2013]: reading /tmp/resolv.conf.auto
Sun Sep 14 10:55:32 2014 daemon.info dnsmasq[2013]: using nameserver 8.8.4.4#53
Sun Sep 14 10:55:32 2014 daemon.info dnsmasq[2013]: using nameserver 8.8.8.8#53
Sun Sep 14 10:55:32 2014 daemon.info dnsmasq[2013]: using local addresses only for domain lan
Sun Sep 14 10:55:36 2014 daemon.info dnsmasq-dhcp[2013]: DHCPREQUEST(br-lan) 192.168.100.163 c8:60:00:11:ae:9e
Sun Sep 14 10:55:36 2014 daemon.info dnsmasq-dhcp[2013]: DHCPACK(br-lan) 192.168.100.163 c8:60:00:11:ae:9e Ducktide-PC
Sun Sep 14 10:55:51 2014 daemon.info pppd[1157]: LCP terminated by peer
Sun Sep 14 10:55:51 2014 daemon.info pppd[1157]: Connect time 0.4 minutes.
Sun Sep 14 10:55:51 2014 daemon.info pppd[1157]: Sent 44103 bytes, received 100222 bytes.
Sun Sep 14 10:55:51 2014 daemon.notice netifd: Interface 'o2' has lost the connection
Sun Sep 14 10:55:53 2014 daemon.warn dnsmasq[2013]: no servers found in /tmp/resolv.conf.auto, will retry
Sun Sep 14 10:55:54 2014 daemon.notice pppd[1157]: Connection terminated.
Sun Sep 14 10:55:55 2014 daemon.notice pppd[1157]: Modem hangup
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: abort on (BUSY)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: abort on (NO CARRIER)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: abort on (ERROR)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: abort on (NO DIAL TONE)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: abort on (NO ANSWER)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: abort on (DELAYED)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: report (CONNECT)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: timeout set to 10 seconds
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: send (ATM)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: expect (OK)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: AT
MM
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: OK
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: -- got it
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: send (ATZ
M)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: timeout set to 30 seconds
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: expect (OK)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: M
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: ATZ
MM
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: OK
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: -- got it
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: send (ATDT#777
M)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: expect (CONNECT)
Sun Sep 14 10:55:58 2014 local2.info chat[5583]: M
Sun Sep 14 10:55:59 2014 local2.info chat[5583]: ATDT#777
MM
Sun Sep 14 10:55:59 2014 local2.info chat[5583]: CONNECT
Sun Sep 14 10:55:59 2014 local2.info chat[5583]: -- got it
Sun Sep 14 10:55:59 2014 local2.info chat[5583]: send (
M)
Sun Sep 14 10:55:59 2014 daemon.info pppd[1157]: Serial connection established.
Sun Sep 14 10:55:59 2014 daemon.info pppd[1157]: Using interface 3g-o2
Sun Sep 14 10:55:59 2014 daemon.notice pppd[1157]: Connect: 3g-o2 <--> /dev/ttyUSB0
Sun Sep 14 10:56:02 2014 daemon.info pppd[1157]: CHAP authentication succeeded
Sun Sep 14 10:56:02 2014 daemon.notice pppd[1157]: CHAP authentication succeeded
Sun Sep 14 10:56:02 2014 daemon.notice pppd[1157]: local IP address 85.160.38.106
Sun Sep 14 10:56:02 2014 daemon.notice pppd[1157]: remote IP address 10.164.3.42
Sun Sep 14 10:56:02 2014 daemon.notice pppd[1157]: primary DNS address 160.218.167.5
Sun Sep 14 10:56:02 2014 daemon.notice pppd[1157]: secondary DNS address 194.228.211.33
Sun Sep 14 10:56:02 2014 daemon.notice netifd: Interface 'o2' is now up
Sun Sep 14 10:56:03 2014 user.notice firewall: Reloading firewall due to ifup of o2 (3g-o2)
Sun Sep 14 10:56:08 2014 daemon.info dnsmasq[2013]: reading /tmp/resolv.conf.auto
Sun Sep 14 10:56:08 2014 daemon.info dnsmasq[2013]: using nameserver 8.8.4.4#53
Sun Sep 14 10:56:08 2014 daemon.info dnsmasq[2013]: using nameserver 8.8.8.8#53
Sun Sep 14 10:56:08 2014 daemon.info dnsmasq[2013]: using local addresses only for domain lan
Sun Sep 14 10:56:16 2014 daemon.info pppd[1157]: Connect time 0.3 minutes.
Sun Sep 14 10:56:16 2014 daemon.info pppd[1157]: Sent 50967 bytes, received 95674 bytes.
Sun Sep 14 10:56:16 2014 daemon.notice netifd: Interface 'o2' has lost the connection
Sun Sep 14 10:56:16 2014 daemon.info pppd[1157]: CHAP authentication succeeded
Sun Sep 14 10:56:16 2014 daemon.notice pppd[1157]: CHAP authentication succeeded
Sun Sep 14 10:56:16 2014 daemon.notice pppd[1157]: local IP address 85.160.38.106
Sun Sep 14 10:56:16 2014 daemon.notice pppd[1157]: remote IP address 10.164.3.42
Sun Sep 14 10:56:16 2014 daemon.notice pppd[1157]: primary DNS address 160.218.167.5
Sun Sep 14 10:56:16 2014 daemon.notice pppd[1157]: secondary DNS address 194.228.211.33
Sun Sep 14 10:56:16 2014 daemon.warn dnsmasq[2013]: no servers found in /tmp/resolv.conf.auto, will retry
Sun Sep 14 10:56:16 2014 daemon.notice netifd: Interface 'o2' is now up
Sun Sep 14 10:56:17 2014 user.notice firewall: Reloading firewall due to ifup of o2 (3g-o2)
Sun Sep 14 10:56:18 2014 daemon.info dnsmasq[2013]: reading /tmp/resolv.conf.auto
Sun Sep 14 10:56:18 2014 daemon.info dnsmasq[2013]: using nameserver 8.8.4.4#53
Sun Sep 14 10:56:18 2014 daemon.info dnsmasq[2013]: using nameserver 8.8.8.8#53
Sun Sep 14 10:56:18 2014 daemon.info dnsmasq[2013]: using local addresses only for domain lan
Sun Sep 14 10:56:29 2014 user.notice ddns-scripts-myddns: Running IP check ...
Sun Sep 14 10:56:31 2014 user.notice ddns-scripts-myddns: Update successful
Sun Sep 14 10:56:35 2014 daemon.info pppd[1157]: LCP terminated by peer
Sun Sep 14 10:56:35 2014 daemon.info pppd[1157]: Connect time 0.4 minutes.
Sun Sep 14 10:56:35 2014 daemon.info pppd[1157]: Sent 135614 bytes, received 172143 bytes.
Sun Sep 14 10:56:35 2014 daemon.notice netifd: Interface 'o2' has lost the connection

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by ducktide@…

Forget about bandwidth and qos, that's not it. I just connected one of my notebooks to the router via lan cable, made a wifi hotspot and shared connection through it. Then I limited the speed of my lan cable with netlimiter 4. As soon as I connected with another notebook the connection fell and started reconnecting, it worked, sort of, after a while with many reconnects but I did have a very unstable connection on both notebooks. This cannot be solved with qos, any other ideas what could cause this?

comment:2 Changed 3 years ago by Mrakomor

Maybe there is problem with LCP echo. Check /etc/ppp/options parameters:

lcp-echo-interval 60
lcp-echo-failure 5

or set debugging on in this file with correct logfile path.

comment:3 Changed 3 years ago by ducktide@…

yes, lcp-echo-interval was set to 1. I changed it and it works now, thx. Before the ticket is closed, is it possible to install any qos or kmod-sched on my current kernel version? It would be nice to have, but I would rather leave it as it is then upgrade firmware, as it works fine now.

comment:4 Changed 3 years ago by Mrakomor

You should upgrade to the newest version, but in the standard image are missing modules and packages for usb dongle support. These could be installed from the repository- look here:
http://wiki.openwrt.org/doc/recipes/3gdongle

Or wait for new firmware on the Ufon`s pages.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.