Why is my network so SLOW?
Author
Discussion

2Btoo

Original Poster:

3,821 posts

233 months

Friday 25th February 2022
quotequote all
Quickie, and I may be barking up entirely the wrong tree here but ....

... why is my network so slow?

I have a network mounted drive on my computer. I run Linux Mint. It's hooked through Cat5 cable (OK, not up to the usual PH standard but come with me here) to a TP Link 10/100 Mbps switch (one of these ).

My wife's computer is also running Mint and hooked directly to the same switch.

I've just tried to copy the contents of my HDD from my machine to hers and it's showing 5.5MB/sec, meaning 15 minutes or so for 11.2GB of data. You can see the file transfer count ticking up - OK, it's ticking quite quickly but it's going in single digits, not tens of files at a time. These are word files, not huge videos.

Am I wrong to expect it to go quicker than this?

(Note: I have no need for it to go quicker, I'm just curious.)

outnumbered

4,878 posts

264 months

Friday 25th February 2022
quotequote all
The maximum data transfer rate you'd ever get through a 100Mb/s switch is probably about 11-12 MB/s (bits vs bytes). I'm surprised it's not a bit faster than 5.5 though.

robbieduncan

1,993 posts

266 months

Friday 25th February 2022
quotequote all
100Mb Ethernet has a theoretical max (ignoring protocol overhead) or 12.5MB/s. So you are only achieving about 50% of that (real world maximum allowing for protocol overhead is about 10MB/s)

Is your cabling good? Are both end points configured correctly? Perhaps the transfer protocol is less than ideal. You could try iperf to get a raw speed reading and rule out hardware/cabling issues which would just leave the protocol or implementation

Dave.

7,897 posts

283 months

Friday 25th February 2022
quotequote all
I tend to find that lots of small files take longer than one big file.

Try copying a large file and see how long it takes.

Also, what drives are you reading from/writing to and how are they connected?

Captain_Morgan

1,453 posts

89 months

Saturday 26th February 2022
quotequote all
Depending on what nas you have you could run iperf3 to check the network performance, some nas can run this in docker.

If not and you have access to a laptop connect it to the nas network drop and run iperf3 between your machine and it to test the connection.

Road2Ruin

6,500 posts

246 months

Saturday 26th February 2022
quotequote all
It could be great network switch causing the bottleneck, or the nas drive, they are often slow.

Mr Pointy

13,409 posts

189 months

Saturday 26th February 2022
quotequote all
Buy a router with gigabit ports & your network is instantly 10x faster, assuming your NICs are gigabit. 10/100 is very slow these days.

rxe

6,700 posts

133 months

Saturday 26th February 2022
quotequote all
Small files are slower than big files (more overhead). Getting 5.5MB/sec of word documents on a 100 Mbit network is about right.

Swap the switch for a Gb one, they’re cheap:

https://www.amazon.co.uk/NETGEAR-Ethernet-Unmanage...

SteveKTMer

1,199 posts

61 months

Saturday 26th February 2022
quotequote all
As above, I'd swap it for a gig switch for the sake of £20.

Check the driver in Mint is the correct one for your network interface.

Some years ago when 100meg switches were common, some devices would drop to half duplex when running at 10 or sometimes 100 meg, so check the negotiated settings the NIC has chosen, fix it manually to 100meg full duplex if it's chosen half duplex. This won't halve the speed but it will reduce it significantly.

But first, check the speed using a single large file, like a few videos zipped together to give you a single large file.

somouk

1,425 posts

228 months

Saturday 26th February 2022
quotequote all
As has been mentioned, swap the switch and make sure drivers are up to date and auto negotiation is enabled on everything.

Check you are on full duplex too and not some half duplex madness.

2Btoo

Original Poster:

3,821 posts

233 months

Saturday 26th February 2022
quotequote all
Guys,

Thanks for the answers. I'm not fussed by the situation; I rarely do large file moves between the two machines and this is the first time I've even noticed it, a year after the network was set up. However I am curious.

For reference, this is between two machines, not a NAS. Both of them have SATA2 drives, mounted by fstab and shared across the network by SAMBA. I don't know what the transfer protocol or implementation are - as in, I don't know what these terms refer to; I have simply stuck network cables in the back of the machines and hooked them up to the switch.

The cables are commercially bought ones but not expensive - the sort of thing that comes with a router. I'm not sure whether it's relevant but one computer is connected to the switch via two RJ45 sockets mounted on two sides of a wall, with a small bit of network cable in the wall between them. The terminations in the RJ45 sockets were done by me and I think they are good but have no way of knowing.

iperf3 sounded interesting - thanks for the suggestion robbieduncan and CaptainMorgan. I've installed it and this is the result.

iperf3 on the server said:
me@mycomputer:~$ iperf3 -c 192.168.10.11 -f K
Connecting to host 192.168.10.11, port 5201
[ 5] local 192.168.10.10 port 44468 connected to 192.168.10.11 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 11.8 MBytes 12055 KBytes/sec 0 90.5 KBytes
[ 5] 1.00-2.00 sec 11.3 MBytes 11526 KBytes/sec 0 126 KBytes
[ 5] 2.00-3.00 sec 11.4 MBytes 11645 KBytes/sec 0 130 KBytes
[ 5] 3.00-4.00 sec 11.2 MBytes 11454 KBytes/sec 0 151 KBytes
[ 5] 4.00-5.00 sec 11.2 MBytes 11454 KBytes/sec 0 151 KBytes
[ 5] 5.00-6.00 sec 11.2 MBytes 11454 KBytes/sec 0 151 KBytes
[ 5] 6.00-7.00 sec 11.2 MBytes 11454 KBytes/sec 0 151 KBytes
[ 5] 7.00-8.00 sec 11.2 MBytes 11454 KBytes/sec 0 151 KBytes
[ 5] 8.00-9.00 sec 11.2 MBytes 11454 KBytes/sec 0 151 KBytes
[ 5] 9.00-10.00 sec 11.2 MBytes 11454 KBytes/sec 0 151 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 113 MBytes 11540 KBytes/sec 0 sender
[ 5] 0.00-10.00 sec 112 MBytes 11480 KBytes/sec receiver

iperf Done.
To my eyes that looks like 11.5Meg transfer, which is about par for the course. Unless I'm reading it wrong, that is.

As I said, I'm curious rather than bothered. And certainly not curious to the tune of the £20 it would cost to buy a Gigabit switch (not being a powerfully built company director, using Linux Mint because it's free and noting the Cost of Living Crisis .... smile ) .

xeny

5,498 posts

108 months

Saturday 26th February 2022
quotequote all
Pretty much any modern ISP router will have gigabit ports if you can rearrange things to use that. Alternatively, if you have a spare one, turn DHCP and wireless off on it and it will act as a switch.

I had a quick hunt on Amazon. FWIW TP-Link do a 5 port plastic cased gigabit model for £8 if that is any more appealing. Does make it easier and hence more likely you will copy files to the other PC or NAS so you have a backup.

SteveKTMer

1,199 posts

61 months

Sunday 27th February 2022
quotequote all
The speed you’re getting is good for your switch.

thebraketester

15,809 posts

168 months

Sunday 27th February 2022
quotequote all
Tempted by £8 ?

TP-Link LS1005G 5-Port Desktop/Wallmount Gigabit Ethernet Switch/Hub, Network Splitter, Plug and play, Plastic Case https://www.amazon.co.uk/dp/B07VWB347G/ref=cm_sw_r...

2Btoo

Original Poster:

3,821 posts

233 months

Sunday 27th February 2022
quotequote all
thebraketester said:
Tempted by £8 ?

TP-Link LS1005G 5-Port Desktop/Wallmount Gigabit Ethernet Switch/Hub, Network Splitter, Plug and play, Plastic Case https://www.amazon.co.uk/dp/B07VWB347G/ref=cm_sw_r...
Nope, not even at £8. It's money I don't need to spend, but thanks for the link!

Out of curiosity (and this may be a daft Q) but what is the relationship between 10/100 vs. Gigabit switches and Cat5/Cat6 cabling? I am aware that I only have Cat5 cables.

deckster

9,631 posts

285 months

Sunday 27th February 2022
quotequote all
2Btoo said:
Nope, not even at £8. It's money I don't need to spend, but thanks for the link!

Out of curiosity (and this may be a daft Q) but what is the relationship between 10/100 vs. Gigabit switches and Cat5/Cat6 cabling? I am aware that I only have Cat5 cables.
Are you 100% sure it's Cat5? That's moderately hard to get hold of these days. Cat 5e is much more common (and happily gigabit-capable).

2Btoo

Original Poster:

3,821 posts

233 months

Sunday 27th February 2022
quotequote all
Haven't a clue, actually. The cables are whatever came with the routers I have had over the last few years and the installed bits (i.e in the walls) are from a bundle of old scruffy stuff that came off a drum about 4 years ago. It could be Cat5e, or Cat5, or Cat4 for all I know. (Was there a Cat4? Shows how much I know about this sort of thing!)

xeny

5,498 posts

108 months

Sunday 27th February 2022
quotequote all
Look at the plugs. As long as there are 8 conductors, you can expect it to run at gigabit.

They should be wired to one of these specs: https://en.wikipedia.org/wiki/ANSI/TIA-568#T568A_a... , but if there are 8 conductors, the odds of that not being the case are minute.

2Btoo

Original Poster:

3,821 posts

233 months

Sunday 27th February 2022
quotequote all
xeny said:
Look at the plugs. As long as there are 8 conductors, you can expect it to run at gigabit.

They should be wired to one of these specs: https://en.wikipedia.org/wiki/ANSI/TIA-568#T568A_a... , but if there are 8 conductors, the odds of that not being the case are minute.
Helpful, thanks.

Yes, 8 conductors in all cases. (Although I did see a cable the other day that seemed to have only 4 conductors going into each RJ45 plug. Wasn't mine, but was noteworthy as I don't think I've seen such a thing before.)

xeny

5,498 posts

108 months

Sunday 27th February 2022
quotequote all
2Btoo said:
Helpful, thanks.

Yes, 8 conductors in all cases. (Although I did see a cable the other day that seemed to have only 4 conductors going into each RJ45 plug. Wasn't mine, but was noteworthy as I don't think I've seen such a thing before.)
They will typically run at 100 mbit, but definitely not gigabit. At one point in my career I was responsible for a building that had been flood wired with the stuff :-(.