Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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".
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.
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.
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.
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.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818
Rep:
Quote:
Originally Posted by dilbert_uk
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.