Raspberry Pi slows down internet access for the whole network

1

Whenever my Raspberry Pi is connected to the network (via ethernet) the entire network is slowed to a crawl. On my main computer, ping times for google.com go from ~10ms to ~200ms and it takes forever to load web pages. Connections are also slow on the Pi, with an apt-get update showing pathetic speeds in the order of 1KB/s. Turning off the Pi completely removes the drag from the network. Interestingly, the local network appears to be fine, with scp copying files at reasonable rates; around 4.5MB/s to the Pi.

I've tried static and dynamic IP addresses for the Pi, but both have the same problems. Switching from Raspbian to Arch also had no effect.

I've checked the connection's duplex with dmesg | grep -i duplex, which shows that the Pi's connection is running at 100Mbps, full-duplex, as expected.

My modem/router is a Billion 7404VNPX (an Australian thing); relatively high-end, albeit a bit buggy at times (it will occasionally delete all its firewall settings). It assigns IPs in the range 192.168.1.1 to 192.168.1.20 and has 192.168.1.254 as its own IP. When I assign static IPs I tend to use the 192.168.1.200 area. I recently tested the connection with the Pi plugged straight into the modem (rather than via a wall socket) and it managed to crash it entirely!

I am starting to suspect that my modem isn't as reliable as I previously thought, so I'll try and get onto someone else's wired network in the next few days.

michaelsproul

Posted 2013-06-30T07:15:16.153

Reputation: 11

It sounds like the network device on the Raspberry Pi is to blame. Are you connecting to your connection through the Wireless or Lan adapter? – Ramhound – 2013-06-30T08:20:21.103

If the Pi slows WAN traffic but not LAN traffic, then the Pi is almost certainly doing something to the WAN, not the LAN. – David Schwartz – 2013-07-05T07:08:13.883

@david My thinking exactly, it must be doing something to the WAN, although I can't work out what, and it seems to be OS independent. I'm using the ethernet port on the pi at the moment, but I have a USB wifi adapter that I'll try out... (I suspect this will fix it, although it's less than ideal) – michaelsproul – 2013-07-05T11:03:50.153

Answers

4

You talk about it slowing the entire network and then just reference a ping to Google. There is a big difference between LAN and WAN. Assuming you are just having slowness over your WAN to external sites, have you ruled out that the Pi is downloading anything? It tends to download updates/install packages on a fresh install of many applications.

Peter

Posted 2013-06-30T07:15:16.153

Reputation: 566

Interesting, I just tried a file transfer from my desktop to the Pi and it averaged around 4.5MB/s, which isn't too shabby considering the 100mbit connection and the slow SD card.

However I don't think the Pi is up to anything; netstat just shows the ssh connection and some ntp time stuff. I disabled ntp in case it was pestering the time server or something silly, but it made no difference. – michaelsproul – 2013-06-30T11:59:44.070

0

It's possible that there might be interference from the Pi.

I solved this problem by moving the Pi away from my WiFi router (using a 2 meter patch cable instead of the 0.5m I was using). Both the model A and model B+ caused the slowdown.

Maybe the culprit in my case was the wireless kbd/mouse dongle.

Olev Toom

Posted 2013-06-30T07:15:16.153

Reputation: 1

-1

I'm seeing the same problem I think. Internet (WAN) access from desktop PC slows right down to a crawl some time after I boot up my new Raspberry Pi. No sign of much network activity on the Pi or my desktop PC, but it's very slow. Kilobits per second instead of megabits. No sign of any errors in syslogs on either machine, no sign of error messages on BT homehub router event log. Broadband speed check page is so slow to load I almost cannot run the test .. but managed once, to get 0.5Mbit/s (normally 10Mbit/s). SMPT and IMAP server connections time out too. I've unplugged the Pi from the router and internet access is still slow several minutes later. In the end, I restarted my router, and things are back to normal. Not a satisfactory answer though!

Andrew

Posted 2013-06-30T07:15:16.153

Reputation: 1

1If you think that the answer is not satisfactory, what is your motivation to post it? – Dmitry Grigoryev – 2015-11-25T11:40:07.953

My motivation was to highlight that (a) the problem still exists, (b) earlier discussions seemed to be side-tracked onto LAN questions, (c) my testing suggests that the router is somehow being upset such that the WAN connection suffers. – Andrew – 2015-11-25T14:44:31.007

Enquiries elsewhere have elicited suggestions to look at problems with signal-to-noise ratio on the WAN connection caused by common mode noise induced by the Pi's PSU, or memory leaks in the router induced by some strange DHCP or dynamic DNS behaviour. – Andrew – 2015-11-25T14:47:45.397

-1

Try using a crossover cable and connect it directly to your computer using static IP - If the scp is still slow, it's either a configuration problem or the network adapter on the PI is faulty.

JohnnyVegas

Posted 2013-06-30T07:15:16.153

Reputation: 2 820

Do you reckon 4.5MB/s is too slow for writing to an SD card? I thought that seemed kind of ok – michaelsproul – 2013-06-30T12:54:04.563

What class is the SD card? I always use class 10 – JohnnyVegas – 2013-06-30T17:44:32.657

I just tried it with a crossover cable and got 4.5MB/s again. The card is class 4 though, and dd'ing zeros runs at about 7MB/s – michaelsproul – 2013-06-30T23:35:18.963

The class is more or less equal to MB per sec. 1 for 1mb/s etc. sounds about right for a C4. A C10 is about 9.5mb/s for me. – JohnnyVegas – 2013-07-01T21:50:36.060