LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2020, 06:46 AM   #1
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Rep: Reputation: 4
Internet connection stalls for no reason


Since about a week, every second day or so, my Internet connection gets stalled on my laptop for no apparent reason.

I am on a shared Internet connection and got an Ethernet cable from my landlord. I got three computers, normally all of them up and running when my laptop is on.

My laptop has a static IP address as well as the other two computers, a PC and an SBC.

When the browser on my laptop gets stalled, I check the connection and ping doesn't work. But ping works on the PC and on the SBC on the same network.

With the graphical Network Manager within xfce, I disconnect the Ethernet connection and connect it again, immediately.

And then it works again about one or two or three days until it happens again. Does someone has a clue what could be the reason for that or where to search for?
 
Old 09-06-2020, 07:38 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,749

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Have you examined your log files for evidence?
Did you ping by IP address or name for that test, and what did you ping?
Did you check your reported network settings and routing both before and during one of these events?
What is the make and model of laptop? Can you report the NIC used for network access?
What is installed on this laptop? Both distribution and version may be of some use.

You might want to review the site suggestions for submitting questions here. They may help you provide enough information to make better sense of your question and properly enable a reasonable answer or two.
 
Old 09-06-2020, 03:03 PM   #3
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by wpeckham View Post
Have you examined your log files for evidence?
Did you ping by IP address or name for that test, and what did you ping?
Did you check your reported network settings and routing both before and during one of these events?
What is the make and model of laptop? Can you report the NIC used for network access?
What is installed on this laptop? Both distribution and version may be of some use.

You might want to review the site suggestions for submitting questions here. They may help you provide enough information to make better sense of your question and properly enable a reasonable answer or two.
This problem and hence the question may have a simple reason but it's not a typical question. I can deliver a bunch of details but the first question would still be WHERE to search for.

Those log files e.g. are both older than the problem itself:

Quote:
debian:~$ sudo ls -al /var/log/apt
total 184
drwxr-xr-x 2 root root 4096 set 1 00:00 .
drwxr-xr-x 11 root root 4096 set 6 00:00 ..
-rw-r--r-- 1 root root 70292 ago 19 13:05 eipp.log.xz
-rw-r--r-- 1 root root 0 set 1 00:00 history.log
-rw-r--r-- 1 root root 2570 ago 19 13:05 history.log.1.gz
-rw-r--r-- 1 root root 768 jul 21 01:46 history.log.2.gz
-rw-r--r-- 1 root root 18732 jun 28 21:15 history.log.3.gz
-rw-r----- 1 root adm 0 set 1 00:00 term.log
-rw-r----- 1 root adm 7529 ago 19 13:05 term.log.1.gz
-rw-r----- 1 root adm 2011 jul 21 01:46 term.log.2.gz
-rw-r----- 1 root adm 62653 jun 28 21:15 term.log.3.gz
An important question is still why does this happen only in the very last week? There have been no changes of hardware or fundamental changes of software.

One reason could be that there is a config file that is permanently used and such a file gets corrupted for some reason. If I take out the connection in the Network Manager and put in the same connection again, such a config file would be newly set up again. Only one possible scenario.

When I ping, I ping "google.com". I ping always the same on the three computers. When it works on two of them, it should work for the third one, too. All of those computers have a standard setup for networking. Nothing is altered by me in regards to firewalls or routing tables or something similar.

The question remains: why does it happen suddenly and at a first look "randomly".

The next info also just for completeness.

Quote:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0.1
bus info: pci@0000:03:00.1
logical name: enp3s0f1
version: 12
serial: c4:54:44:bf:d9:e2
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp aui bnc mii fibre 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8411-2_0.0.1 07/08/13 ip=192.168.1.200 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:19 ioport:1000(size=256) memory:90404000-90404fff memory:90400000-90403fff
Quote:
debian:~$ sudo lshw
debian
description: Notebook
product: Aspire ES1-411 (Aspire ES1-411_0843_1_01)
vendor: Acer
version: V1.01
Quote:
debian:~$ uname -a
Linux debian 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
 
Old 09-06-2020, 08:13 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
How is every thing connected together and to the landlords cable?

Are your computers behind your own router?
 
Old 09-06-2020, 09:23 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,378
Blog Entries: 28

Rep: Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163
Have you tried swapping out the ethernet cable for a known good cable?

I once had a connection issue that, with the help of an excellent support tech from my ISP, was tracked down to a dodgy cable.
 
1 members found this post helpful.
Old 09-06-2020, 09:41 PM   #6
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by michaelk View Post
How is every thing connected together and to the landlords cable?

Are your computers behind your own router?
The landlord owns the router and gives me an Ethernet cable. That goes into a switch on my desk with five ports. One is for my own WiFi access point where I connect my phone to. The other three ports go directly to my laptop, PC and SBC.

But I'll follow the hint from user frankbell and try another cable.
 
Old 09-06-2020, 09:50 PM   #7
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Perhaps just switch cables and see if the problem moves to another device. If it moves, it's probably the cable. If it stays, it's the computer. It might take awhile for the problem to manifest itself, of course, since it's intermittent. If it doesn't come back at all, profit.

Last edited by sgosnell; 09-06-2020 at 09:53 PM.
 
Old 09-06-2020, 10:26 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
If you are using static IP addresses have you verified they are outside the range of the DHCP server?
Your symptoms at first glance look like duplicate IP addresses.
 
Old 09-06-2020, 11:16 PM   #9
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by michaelk View Post
If you are using static IP addresses have you verified they are outside the range of the DHCP server?
Your symptoms at first glance look like duplicate IP addresses.
Exaxtly, I don't know if my landlord is using the usual range but from time to time I do a "sudo nmap -sn ..." and I have never seen any addresses from other devices higher than 150. The majority of those floating addresses is under 70.

There is only a TP-Link router at address xxx.254, and my WiFi access point is at xxx.253. The laptop has xxx.200, the PC xxx.201, and the SBC xxx.202.
 
Old 09-07-2020, 07:23 AM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,749

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
I would like to see the output of that ping request. Doies it at least resolve google.com to an IP address for the ping.

The logs of interest would NOT be under /var/log/arp, rather files directly under /var/log. The file /var/log/messages might pertain.

I will be interested to see what results result from the jumper swap. That would be a cheap fix. Luck!
 
Old 09-07-2020, 07:31 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
Have you tried changing the address? Most DHCP servers assign random addresses within the range.
 
Old 09-07-2020, 09:38 AM   #12
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
How are you insuring that your computers get fixed IPs without access to the landlord's router?
 
Old 09-07-2020, 11:50 AM   #13
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by dilbert_uk View Post
Since about a week, every second day or so, my Internet connection gets stalled on my laptop for no apparent reason.

I am on a shared Internet connection and got an Ethernet cable from my landlord. I got three computers, normally all of them up and running when my laptop is on.

My laptop has a static IP address as well as the other two computers, a PC and an SBC.

When the browser on my laptop gets stalled, I check the connection and ping doesn't work. But ping works on the PC and on the SBC on the same network.

With the graphical Network Manager within xfce, I disconnect the Ethernet connection and connect it again, immediately.

And then it works again about one or two or three days until it happens again. Does someone has a clue what could be the reason for that or where to search for?
I was going to suggest blaming it on Comcast but I see you're not in the U.S. :^D

Q: Are the other computer affected with the stalling at the times your laptop is?

I would try, on all three computers, pinging the same external site and see what the transit times are. (I would normally use `clusterssh' -- try: `man cssh' for more and you'll need SSH keys configured on your systems -- to do a test like this w/o having to login into each system and issue the commands separately. But... it's fine if you don't have that utility installed.) If the transit times are long on all three systems, the problem is external. Having to rely on network equipment that you don't have any control over makes fixing this more complicated. It's rather like trying to fix slow network access at a coffee shop.

If, however, the transit times are long on only a subset of your systems, concentrate your log file inspections on those systems.

Q: Are you experiencing these pauses while browsing any/all web sites or only certain ones?

Q: On the laptop where you see this most frequently... how much RAM does it have? Can you tell if it's swapping madly during the times when your network connection seems slow? Some web page creators seem to believe that they are the only page you should be viewing and their page(s) will consume a lot of RAM. Run vmstat(1) for a while
Code:
$ vmstat 5 500
(5s interval, 500 times---choose whatever values you like) for a while and watch the memory and swap activity while you're working on the laptop. If you see swapping is occurring (the `si' and `so' columns will show `0' if there's none) you're low on memory---the pauses you're seeing are probably the system shuffling programs in and out of swap space. No swap space you say? You will likely need to create some.

If you're a multi-tab web browser (like me) you can easily run out of memory. One solution that has helped me cope with my multiple tab habit is a plug-in like `Tab Suspender'. Idle tabs are saved off to disk after they haven't been actively viewed for a few minutes and only a placeholder remains in memory until you re-select the tab.

Hope this helps a bit...
 
1 members found this post helpful.
Old 09-07-2020, 01:53 PM   #14
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by wpeckham View Post
I would like to see the output of that ping request. Doies it at least resolve google.com to an IP address for the ping.
Surely, but I said already that I am pinging the same command on all three computers and Internet always works with the two others.

Quote:
debian:~$ ping google.com
PING google.com (172.217.192.113) 56(84) bytes of data.
64 bytes from 172.217.192.113: icmp_seq=1 ttl=101 time=45.2 ms
64 bytes from 172.217.192.113: icmp_seq=2 ttl=101 time=46.2 ms
64 bytes from 172.217.192.113: icmp_seq=3 ttl=101 time=45.7 ms
Quote:
Originally Posted by wpeckham View Post
The logs of interest would NOT be under /var/log/arp, rather files directly under /var/log. The file /var/log/messages might pertain.

I will be interested to see what results result from the jumper swap. That would be a cheap fix. Luck!
Until now, I presume that could have been the cause. Important was the info from frankbell (post #5) because I wouldn't believe that a software action in Network Manager, i.e. disconnecting and re-connecting, fixes an hardware issue.

Last edited by dilbert_uk; 09-07-2020 at 02:06 PM.
 
Old 09-07-2020, 01:57 PM   #15
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by michaelk View Post
Have you tried changing the address? Most DHCP servers assign random addresses within the range.
As I stated in post #9, all the DHCP addresses are always below xxx.150, most of them below xxx.70. None of them ever seen in the range above xxx.149.

Last edited by dilbert_uk; 09-07-2020 at 02:07 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPSEC stalls out, "no internet conection" in browsers and forced to restart VPN through terminal guntanemo Linux - Software 2 01-22-2018 09:03 PM
FTP connection hangs or stalls... sandracarlsson Linux - Server 1 03-22-2010 07:03 PM
Spoofing a TCP Connection? - Legitimate Reason jrbush82 Linux - Networking 8 06-27-2007 10:22 PM
No internet on wired connection for no reason dzapffe19 Ubuntu 6 02-08-2007 03:07 AM
constant network stalls during internet access noob36 Linux - Networking 0 02-04-2004 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration