Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network hangs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
TarasFF
n00b
n00b


Joined: 06 Feb 2023
Posts: 8

PostPosted: Mon Feb 06, 2023 5:23 pm    Post subject: Network hangs Reply with quote

Yesterday I faced the issue with internet on my PC, it randomly stops working: pages are not being loaded, messengers are disconnecting, downloads are stopping. But after few minutes everything again starts working.

I thought it's the ISP issue, sometimes it happens. But there are no such issues on my laptop, here internet works fine even when I could not open pages on my PC. I thought something happened with router or with the cable, I tried to connect the PC to the ISP cable directly without router but nothing changed. Then I rebooted my PC into another OS (Win10) and there is no problems. So it means that ISP, my router, cables and PC hardware works fine.

I thought that the issue is caused by some update, I really updated the system (emerge -avuDN world) the day before. So I restored the root partition from the backup image. It was created 17th January and the system worked fine until 4th February. But it also did not help.

I checked dmesg and everything in /var/log - there is nothing. I found that when the network hangs, in the netstat -i output the TX-OK value increases, but RX-OK is not changing. RX-ERR and TX_ERR are 0:

Code:
gentoo ~ # netstat -i
Kernel Interface table
Iface             MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0             1500  1426285      0     18 0       1053290      0      0      0 BMRU
lo              65536       93      0      0 0            93      0      0      0 LRU


This is the lspci -v output

Code:

04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
   Subsystem: ASUSTeK Computer Inc. PRIME B450M-A Motherboard
   Flags: bus master, fast devsel, latency 0, IRQ 19
   I/O ports at 3000 [size=256]
   Memory at 9f904000 (64-bit, non-prefetchable) [size=4K]
   Memory at 9f900000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Endpoint, MSI 01
   Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [140] Virtual Channel
   Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
   Capabilities: [170] Latency Tolerance Reporting
   Capabilities: [178] L1 PM Substates
   Kernel driver in use: r8169
   Kernel modules: r8169


and the /etc/conf.d/net content

Code:

config_eth0="192.168.88.10 netmask 255.255.255.0 brd 192.168.88.255"
routes_eth0="default via 192.168.88.1"


With these settings everything worked fine for 2.5 years.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1581

PostPosted: Mon Feb 06, 2023 5:58 pm    Post subject: Reply with quote

Please show the output of rc-update -a
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3999
Location: Bavaria

PostPosted: Mon Feb 06, 2023 5:59 pm    Post subject: Reply with quote

TarasFF wrote:
Which one?

Use one which DOES NOT tell me it has a trojan virus detcted ...

Old links splitted and binned -- fedeliallalinea
Back to top
View user's profile Send private message
TarasFF
n00b
n00b


Joined: 06 Feb 2023
Posts: 8

PostPosted: Mon Feb 06, 2023 6:00 pm    Post subject: Reply with quote

grknight wrote:
Please show the output of rc-update -a


Code:
            alsasound |      default                           
               binfmt | boot                                   
            bluetooth |      default                           
             bootmisc | boot                                   
              cgroups |                                 sysinit
                cupsd |      default                           
                 dbus |      default                           
                devfs |                                 sysinit
                dmesg |                                 sysinit
              elogind |      default                           
                 fsck | boot                                   
             hostname | boot                                   
              hwclock | boot                                   
              keymaps | boot                                   
            killprocs |                        shutdown       
    kmod-static-nodes |                                 sysinit
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
              modules | boot                                   
             mount-ro |                        shutdown       
                 mtab | boot                                   
                mysql |      default                           
             net.eth0 |      default                           
             netmount |      default                           
           ntp-client |      default                           
     openrc-settingsd |      default                           
        postgresql-14 |      default                           
               procfs | boot                                   
                redis |      default                           
                 root | boot                                   
         save-keymaps | boot                                   
    save-termencoding | boot                                   
            savecache |                        shutdown       
              seedrng | boot                                   
                 swap | boot                                   
               sysctl | boot                                   
                sysfs |                                 sysinit
             sysklogd |      default                           
 systemd-tmpfiles-setup | boot                                   
 systemd-tmpfiles-setup-dev |                                 sysinit
         termencoding | boot                                   
                 udev |                                 sysinit
         udev-trigger |                                 sysinit
                  xdm |      default
Back to top
View user's profile Send private message
TarasFF
n00b
n00b


Joined: 06 Feb 2023
Posts: 8

PostPosted: Mon Feb 06, 2023 6:03 pm    Post subject: Reply with quote

pietinger wrote:
TarasFF wrote:
Which one?

Use one which DOES NOT tell me it has a trojan virus detcted ...


Is this ok?

https://ibb.co/m5Fyqjx
https://ibb.co/bdVdjd1
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3999
Location: Bavaria

PostPosted: Mon Feb 06, 2023 6:54 pm    Post subject: Reply with quote

TarasFF,

first of all: Welcome to Gentoo Forums !

a) IF you have no error messages in your system log (dmesg) AND you are using the same kernel module as ever THEN it can not be a problem with kernel module r8169 or with cable (you would see errors in system log when cable causes offline). It COULD be MTU size IF there was a change (but I dont think so; you would have mentioned it).

b) IF you are doing multi-boot with windows on the SAME machine then it can not be a hardware error with your ethernet controller.

c) IF there was no change in your router/adsl-modem it is unlikely this is causing your problems.

d) So i would like to ask if you have tested with the same websites (at the same time) ? If there are no receives then it must be at internet side ... or ISP ... Yes, it is possible that ISP can filter traffic with some http-headers coming from a different browser (but I cant believe a serious provider would do this). Do you have a second Linux machine with the same webbrowser ?

At the moment I can only recommend to wait some days and watch when your problem occures again and do immediately a check with another machine.
Back to top
View user's profile Send private message
TarasFF
n00b
n00b


Joined: 06 Feb 2023
Posts: 8

PostPosted: Mon Feb 06, 2023 7:10 pm    Post subject: Reply with quote

pietinger wrote:
TarasFF,

first of all: Welcome to Gentoo Forums !

a) IF you have no error messages in your system log (dmesg) AND you are using the same kernel module as ever THEN it can not be a problem with kernel module r8169 or with cable (you would see errors in system log when cable causes offline). It COULD be MTU size IF there was a change (but I dont think so; you would have mentioned it).

b) IF you are doing multi-boot with windows on the SAME machine then it can not be a hardware error with your ethernet controller.

c) IF there was no change in your router/adsl-modem it is unlikely this is causing your problems.

d) So i would like to ask if you have tested with the same websites (at the same time) ? If there are no receives then it must be at internet side ... or ISP ... Yes, it is possible that ISP can filter traffic with some http-headers coming from a different browser (but I cant believe a serious provider would do this). Do you have a second Linux machine with the same webbrowser ?

At the moment I can only recommend to wait some days and watch when your problem occures again and do immediately a check with another machine.


a) Yes, I have no error messages. It seems it just waits for a response.

b) I also tried to boot Ubuntu from the flash drive and network there works fine

c) Actually when I thought that it's a router issue I updated its firmware. But it was after I faced issues with the network. Also it did not affect Windows and Ubuntu

d) I tried different browsers in Gentoo and another systems. In Gentoo I have this issue in all browsers (also in all applications, not browsers only). In other systems everything is ok.


The issue is permanent, it happens each few minutes. And when internet does not work in Gentoo, I have no problems on my laptop connected to the same router (Wifi).
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3999
Location: Bavaria

PostPosted: Mon Feb 06, 2023 7:16 pm    Post subject: Reply with quote

If you boot Ubuntu, do you use the same (static) IP address 192.168.88.10 ; or do you use DHCP here ? Do you have another machine in your network using the same IP address ?
Back to top
View user's profile Send private message
TarasFF
n00b
n00b


Joined: 06 Feb 2023
Posts: 8

PostPosted: Mon Feb 06, 2023 7:20 pm    Post subject: Reply with quote

pietinger wrote:
If you boot Ubuntu, do you use the same (static) IP address 192.168.88.10 ; or do you use DHCP here ? Do you have another machine in your network using the same IP address ?


Yes, Ubuntu uses DHCP. It's default settings in official live image. I will try the same IP in Ubuntu

There should not be the same IP, I have DHCP server in router configured from 192.168.88.100 start address and my PC is the only static IP in my home network.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3999
Location: Bavaria

PostPosted: Mon Feb 06, 2023 7:33 pm    Post subject: Reply with quote

Do you have a firewall between your machine and ISP (can be also in your router) ?
Have you done a cold boot of your router ?
What happens if you cahnge MTU for example to: "ip link set eth0 mtu 1420" ?
Back to top
View user's profile Send private message
TarasFF
n00b
n00b


Joined: 06 Feb 2023
Posts: 8

PostPosted: Mon Feb 06, 2023 7:48 pm    Post subject: Reply with quote

pietinger wrote:
Do you have another machine in your network using the same IP address ?


Yes, this is the issue. I'm really surprised, I was sure I use 192.168.88.100 as a start address in DHCP. But yes, there was 10. And one device captured this address.

Thank you for help.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 3999
Location: Bavaria

PostPosted: Mon Feb 06, 2023 7:59 pm    Post subject: Reply with quote

TarasFF wrote:
Yes, this is the issue.

Great you have found it so fast ! :D

TarasFF wrote:
Thank you for help.

You are very welcome !

Have fun with Gentoo ! 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum