LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-03-2021, 04:30 PM   #1
Mantra
Member
 
Registered: Jun 2018
Posts: 57

Rep: Reputation: Disabled
Slow network - new Ubuntu


New Ubuntu install, and the network is really slow.

Sometimes websites load fine, and not too slowly... but usually they don't, especially on first load. Thought it might be something related to dns errors but not sure. I've turned off IP6 but it doesn't seem to have changed anything.

But I have found this, running the following:
Code:
ping -M do -s xxx 8.8.8.8
gives some strange results (replacing x with numbers).

Using 8.8.8.8, xxx can only go up to 50 (ping times about 45ms), any higher and it times out with no reply. But isn't that number the MTU, which ought to be about 1470, not about 50?

Changing the server to 1.1.1.1 gives normal results, ie it works up to 1472 with no errors.

Not sure if that's related to the slow and intermittent network problems.

Network access is through a 4G dongle, but that works fine on a separate debian system, so I'm pretty sure it's a software config thing on the new box.

Any suggestions?
 
Old 06-03-2021, 08:20 PM   #2
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,384
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
I've not encountered anything like this myself, but a web search for "diagnose slow internet ubuntu" turns up a number of articles that might help. The information you've provided is rather sketchy, but I think that's more because it's such an odd problem. Some questions occur to me, though.

When you try the pings, are their significant differences in the reported response times? Also, what is the wireless chipset in that dongle?

If you test with a wired connection, is that connection reliable?

If I encountered this, I might start with hitting speedtest.net from the different machines and comparing the results. I would also move that dongle from one machine to the other and repeat the speedtest.net test.
 
Old 06-07-2021, 01:52 PM   #3
Mantra
Member
 
Registered: Jun 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
The chipset is a huawei E3372.

I've narrowed down the problem, but not solved it - and I can reproduce it on the Debian machine too: it only happens if I use an alternative DNS server. Pretty sure it isn't a problem with the server, since I've tested it with big public servers such as Cloudflare etc.

So I can work round it by just using the DNS provided by the ISP, but I'd rather use alternatives if possible, for various reasons.

I suspect the problem is caused because it has a double-NAT setup, that I don't think I can avoid: the device uses NAT, and so does the ISP. So my PC has a 192.168.x.x address, and the "external" IP is a 10.x.x.x one. Hopefully the fix is as simple as specifying different DNS servers for different zones. Weird it's intermittent though.

I've found this https://unix.stackexchange.com/quest...ctions-problem which might be an alternative way around, but seems pretty complicated to work through (TLDR - switch the dongle mode to access the modem component directly, rather than the network device)
 
Old 06-09-2021, 08:08 AM   #4
Mantra
Member
 
Registered: Jun 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
Ok, scrap that last post, the result on the Debian box was just a one-off slow issue, and the Ubuntu box runs slowly even using the ISP's DNS.

Speedtest.net average results show a much slower result on the Ubuntu box even on a wired network - these are typical results:

Debian box - 12 ms ping, 36 Mbps down, 9 Mbps up
Ubuntu box - 12 ms ping, 5 Mbps down, 2 Mbps up

This is definitely more stable than on the 4G dongle, but there's still an occasional hiccup with page loads on the Ubuntu box, ie sometimes they just don't load at all for a few mins, then load kind of ok (although still slower than the debian machine - on much newer and faster hardware).
 
  


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
Suse 9.2 & SATA - Slow, Slow, Slow jess1975 SUSE / openSUSE 6 01-28-2007 12:17 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM
RH 6.2 Slow, Slow, Slow.... kbajwa Linux - General 2 07-28-2004 09:16 AM
RH8 vs. W2k - Slow, slow, slow zerojosh Linux - Software 2 06-30-2003 07:19 PM
p4 1.8 ghz SLOW SLOW SLOW Acmeshells Slackware 7 03-12-2003 07:11 PM

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

All times are GMT -5. The time now is 04:46 PM.

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