-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 4 high packet loss over ethernet #3292
Comments
From reading that thread, it's completely down to a problem router, since putting a switch between the Pi and the router fixes the problem. What is the specific model of router you are using? Does google show up problems in the field with that type of router? |
My router is Compal CH7465LG (UPC Connect Box). I have searched google and I found this forum topic with similar problem to mine https://www.raspberrypi.org/forums/viewtopic.php?t=249112 and also on reddit https://www.reddit.com/r/linuxquestions/comments/cwigt7/raspberry_pi_4_packet_loss_in_home_network/ |
So clearly something about that particular router, since we have no other reports on most the other ones out there. Don't appear to be available in the UK, so difficult for us to test. What sort of settings are available on the router that you can play with to see if any make a difference? |
Cannot reproduce on several RPi4 models connected to an R7800 routers and gigaswitch. Anything of note in systemctl or dmesg? |
I have a similar problem and my Raspberry Pi 4 is connected to an UPC Connect Box too. (Interesting to here that the Connect Box seems to be the culprit. Again. The quality of this device is so poor. My Connect Box even routes local IPv6 traffic to the uplink port which is clogging my Internet connection. I have to provision static routing rules to override this behaviour.) It somehow seems that the Raspberry is not able to handle all incoming packets. I haven't checked but maybe the Raspberry is sending flow control commands on the ethernet link and the Connect Box is ignoring these? My current workaround is simply to set the ethernet interface to 100Mbit/s ( |
There's a known "bug" in cable-modems using Intel's Puma-6-platform, which causes latency- and ping-issues at least on out- and inbound connections, even when the device is set to bridge-(modem-only)-mode. |
I don't think we will be able to spend any time on this. The router is end of line, and clearly not very good. Closing as a Won't Fix. This means that although the issue is acknowledged, it is felt that no further action is likely. This may be down to a bad benefit vs cost analysis, or it may actually not be possible to fix. |
I had the same problem (I saw high packet loss) . IMHO you should re-open this issue and check again the 5.5-y branch. |
There was a problem with the PHY declaration, but it should be good now. |
@pelwell I built 4.19-y & 5.5-y branches today :) . |
I forgot the mention that I'm using the dtbs from 4.19 branch as the ones from 5.5. branch are not working (the device doesn't boot). |
that may be an issue, but even though I have an Ziggo Connect Box (don't know what make this one is) I even have connect issues within my local network targeting the direct IP address of the RPI4. Connections are dropping. connectbox in bridge, Nighthawk behind it as router and gateway. RPI3 with same setup, no issues whatsoever.. |
Chiming in to note that I experience the same issue with a MikroTik CSS326 switch. So it not only happens with poor cable routers, but also with enterprise switches. |
After several months of searching a workaround for using the raspberry Pi4 at full speedwith my box (SFR Labox - France), i finally found it. I disable power saving on ethernet controller : |
@smalltox. interesting, is there a config file where to set this also as thisis a command.. this needs done after each reboot, right? |
@pieter-groeneweg |
I tried this and it worked until reboot, then after reboot I manually ran it again and it no longer worked. Is there a hardware fault with the pi? If I replace it will it still happen on the next one? |
@manfromdownunder - You have to execute that on each boot. What init system is your distro running? |
even if I execute this manually the problem still remains @graysky2 I'm just using the latest pi image |
OK. I missed that.
|
@graysky2 I have googled all of the above and tried them all. I have 3 x rpi 3B+ that work flawlessly. I spent a day tryiong all sorts of port configs to force duplex types, tried different power supplies, disabled bluetooth and wireless in the boot config. Even uninstalled some daemons that are also supposed to cause this issue however none of these things worked. I did see success temporarily with this fix however it didn't last. I run ubiquiti gear and have no other issues. I have seen suggestions about putting a switch in between the pi and the switch but to me this is just a stupid fix which I won't entertain given the 28 other devices on the network have zero issues. Really frustrating. I am trying to understand if this is a hardware fault, or a factory fault with the device. So do I RMA it or refund it as it is just a POS? |
If you ruled out cable, port, etc. Do you see the issue on a fresh install of RPiOS? Do you see the issue on a fresh install of another distro (Arch ARM is easy to install for testing purposes)? If so, I would think the body of evidence points to your specimen. |
I have a RPI 4B 4GB (revision I was able to avoid the packet loss by limiting the connection to 100Mbit/s, but it seems that @smalltox's suggested workaround also worked for me - thanks! I would recommend invoking ethtool via interfaces.d so that you can be sure that the workaround applies each time there's a network state change. Example
Uncomment one of the last two lines, depending on which workaround you need to use. |
I observe the same problem with a rpi 4 B 1.1 and a CH7465LG router. Interesting is that I also have packet loss at 100mbit, that workaround has worked in the past, but today it also showed significant packet loss.
I must assume this is a problem with the rpi4, none of my other devices have this problem and the millions of customers using the router would notice. It is a poor device, but that amount of packet loss would make watching iptv etc. impossible. |
I also have the same problem with Raspberry Pi 4 Model B Rev 1.2. The pi is directly connected to an entry-level enterprise H3C ER3200G2. This packet loss is ranging from 6% to 15% over a 1000Base-T link. Disabling the power saving on RPI4's ethernet controller using Since this problem occurred against a wide range of routers/switchers, I guess this is RPI4's issue rather than the routers. |
Have the same issue. I had to replaced my old modem, which had a 100mb interface, with a new one that has a 1gb link. Since then I am facing constantly 10%-20% packet loss. Disabling eee solved it for me as well. It seems very much like an issue with rpi4. Any solution? eee is quite an old and robust tech, can't be that we have to disable this nowadays. |
Describe the bug
Ethernet connection on RPi4 have high packet loss (about 15%). I have the same issue as in this thread https://www.raspberrypi.org/forums/viewtopic.php?t=253337, because I have the same router. But I doubt that this is the router fault, because my laptop, Playstation 4 and Synology NAS server are connected over ethernet and they are working perfectly fine.
Actual behaviour
Ping RPi4 from laptop:
https://pastebin.com/YeKuNdUA
Ping 1.1.1.1 on RPi4:
https://pastebin.com/265rcDPf
Ping 1.1.1.1 on laptop (I have used the same cable in every test):
https://pastebin.com/n4icACmL
Expected behaviour
I think that there should be about 0% packet loss.
System
Results of the raspinfo command:
https://pastebin.com/5KHh996q
Additional context
I have tested different cables, updating kernel with rpi-update and the problem is still present.
The text was updated successfully, but these errors were encountered: