Jump to content

How to test speed of ethernet cable?

DeadlyPilot

So i found an ethernet cable and have no idea what category it is, is there a way i can test what speed its being run at? Linus said in one of his videos that your NIC will only go in full steps, from 1gbit down to 10mbit and never in between. So lets say i wanted to test if a cat5e cable was truly capable of 1gbps, how would i test that?

 

Hope this made sense. Thanks

 

Edit: **I meant 100mbps not 10

Link to comment
Share on other sites

Link to post
Share on other sites

As this deals with networking, I have moved to the thread to Networking.

 

Please post in the proper sub-forum when forming topics.

"It pays to keep an open mind, but not so open your brain falls out." - Carl Sagan.

"I can explain it to you, but I can't understand it for you" - Edward I. Koch

Link to comment
Share on other sites

Link to post
Share on other sites

it should say on it but if it does not connect 2 PC together and see how fast it transfers. 10 100 1gb

Good luck, Have fun, Build PC, and have a last gen console for use once a year. I should answer most of the time between 9 to 3 PST

NightHawk 3.0: R7 5700x @, B550A vision D, H105, 2x32gb Oloy 3600, Sapphire RX 6700XT  Nitro+, Corsair RM750X, 500 gb 850 evo, 2tb rocket and 5tb Toshiba x300, 2x 6TB WD Black W10 all in a 750D airflow.
GF PC: (nighthawk 2.0): R7 2700x, B450m vision D, 4x8gb Geli 2933, Strix GTX970, CX650M RGB, Obsidian 350D

Skunkworks: R5 3500U, 16gb, 500gb Adata XPG 6000 lite, Vega 8. HP probook G455R G6 Ubuntu 20. LTS

Condor (MC server): 6600K, z170m plus, 16gb corsair vengeance LPX, samsung 750 evo, EVGA BR 450.

Spirt  (NAS) ASUS Z9PR-D12, 2x E5 2620V2, 8x4gb, 24 3tb HDD. F80 800gb cache, trueNAS, 2x12disk raid Z3 stripped

PSU Tier List      Motherboard Tier List     SSD Tier List     How to get PC parts cheap    HP probook 445R G6 review

 

"Stupidity is like trying to find a limit of a constant. You are never truly smart in something, just less stupid."

Camera Gear: X-S10, 16-80 F4, 60D, 24-105 F4, 50mm F1.4, Helios44-m, 2 Cos-11D lavs

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, DeadlyPilot said:

So i found an ethernet cable and have no idea what category it is, is there a way i can test what speed its being run at? Linus said in one of his videos that your NIC will only go in full steps, from 1gbit down to 10mbit and never in between. So lets say i wanted to test if a cat5e cable was truly capable of 1gbps, how would i test that?

 

Hope this made sense. Thanks

so basically as long as it can transfer above 100mbps the cable should be capable of 1gbps?

Link to comment
Share on other sites

Link to post
Share on other sites

If you have no idea what category it is, chances are it's Cat5e which means it can do up to 1 gbps.

Cat5 or older cables would be maybe more than 10 years old nowadays, so I doubt you'd use a cable with the exterior insulation all messed up (which would happen in 10 years)

 

Look at the wires going into the connector. If the color order is the same in both connectors, you have a straight (normal) cable, if the color order is different in one jack you have a crossover cable (a cable designed specially to be used between two computers / two network cards)

Network cards capable of 1 gbps speeds are smart enough (and it's actually required by the 1gbps standard) to determine if the cable is crossover or normal and automatically reconfigure themselves to work right in any situation. So, if you use a crossover or normal cable, it doesn't matter, you'd still get up to 1 gbps speeds if both network cards (or your network card and your switch port) are 1gbps capable.

But the point is, few people buy crossover cables anymore because of this autodetection mechanism, so if your cable is crossover there's a high chance it's an old one, so it's probably only Cat5e or older.

 

For 1gbps speeds all four pairs of wires must be properly installed. For 100 mbps, just two pairs of wires are used and the other four wires  (2 pairs) are not used. The network cards would auto configure themselves to 1gbps and if there's some issues like for example one loose contact in the jack (and if you're lucky it's one of the four wires that are not in use when running at 100 mbps), then the network card would detect errors transmitting at 1 gbps and will fall back to running at 100 mbps.

 

Otherwise, it's really very hard to know the quality of a cable the way you think. There are benchmarks that can tell you the speed ... i haven't used any of these below... but LAN Speed Test and Netstress sound good (though they're not very scientific/ not very repeatable results) : http://www.smallnetbuilder.com/basics/lanwan-basics/31220-how-fast-is-your-network-five-ways-to-measure-network-speed

 

NTttcp seems more professional (but it's harder to use since it's command line only):    https://gallery.technet.microsoft.com/NTttcp-Version-528-Now-f8b12769

Techreport.com used this to test the Killer E2400 network card : http://techreport.com/review/29144/revisiting-the-killer-nic-eight-years-on/2

TomsHardware used Passmark PerformanceTest 8 to test powerline adapters : http://www.tomshardware.com/reviews/how-we-test-powerline-networking-adapters,4217.html#p5

 

There are more complex (and ridiculously expensive) hardware testing and benchmarking tools which can even simulate lost or corrupted packets of data just to see how well a network card would auto correct the data or how much time it takes to have data retransmitted and so on ... but i can't remember them off the top of my head.

 

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, mariushm said:

If you have no idea what category it is, chances are it's Cat5e which means it can do up to 1 gbps.

Cat5 or older cables would be maybe more than 10 years old nowadays, so I doubt you'd use a cable with the exterior insulation all messed up (which would happen in 10 years)

 

Look at the wires going into the connector. If the color order is the same in both connectors, you have a straight (normal) cable, if the color order is different in one jack you have a crossover cable (a cable designed specially to be used between two computers / two network cards)

Network cards capable of 1 gbps speeds are smart enough (and it's actually required by the 1gbps standard) to determine if the cable is crossover or normal and automatically reconfigure themselves to work right in any situation. So, if you use a crossover or normal cable, it doesn't matter, you'd still get up to 1 gbps speeds if both network cards (or your network card and your switch port) are 1gbps capable.

But the point is, few people buy crossover cables anymore because of this autodetection mechanism, so if your cable is crossover there's a high chance it's an old one, so it's probably only Cat5e or older.

 

For 1gbps speeds all four pairs of wires must be properly installed. For 100 mbps, just two pairs of wires are used and the other four wires  (2 pairs) are not used. The network cards would auto configure themselves to 1gbps and if there's some issues like for example one loose contact in the jack (and if you're lucky it's one of the four wires that are not in use when running at 100 mbps), then the network card would detect errors transmitting at 1 gbps and will fall back to running at 100 mbps.

 

Otherwise, it's really very hard to know the quality of a cable the way you think. There are benchmarks that can tell you the speed ... i haven't used any of these below... but LAN Speed Test and Netstress sound good (though they're not very scientific/ not very repeatable results) : http://www.smallnetbuilder.com/basics/lanwan-basics/31220-how-fast-is-your-network-five-ways-to-measure-network-speed

 

NTttcp seems more professional (but it's harder to use since it's command line only):    https://gallery.technet.microsoft.com/NTttcp-Version-528-Now-f8b12769

Techreport.com used this to test the Killer E2400 network card : http://techreport.com/review/29144/revisiting-the-killer-nic-eight-years-on/2

TomsHardware used Passmark PerformanceTest 8 to test powerline adapters : http://www.tomshardware.com/reviews/how-we-test-powerline-networking-adapters,4217.html#p5

 

There are more complex (and ridiculously expensive) hardware testing and benchmarking tools which can even simulate lost or corrupted packets of data just to see how well a network card would auto correct the data or how much time it takes to have data retransmitted and so on ... but i can't remember them off the top of my head.

 

So a cable will ONLY run above 100mbps if its capable of running at a full 1gbps correct? 

 

also, 

It says its just a cat5 patch cable. Would it be possible to run into a cable that physically appeared to be a cat5e cable but for some reason wouldnt be able to reach 1gbps (assuming your within the 100m limit)? For example a cable that is just cheaply made or is a smaller gauge than needed, but claimed to be cat5e?

Link to comment
Share on other sites

Link to post
Share on other sites

It's possible, but unlikely.

 

Here's an example.

Some network cards and switches have "Green mode" or "eco power" or "power saving" or some other kind of power saving modes (usually under some kind of name, and which can be disabled from network card's driver settings in Device Manager).  My realtek network card has two such settings "Energy Efficient Ethernet" and "Green Ethernet" - i leave both enabled because the longest distance is a 3 meter patch cord between the network card and the router from my ISP so the settings make no difference in my case.

 

By default, these modes are often enabled and in the case of the smartest cards, this means that initially the network cards send data at full power and if they see that everything's fine, they gradually lower the power of their transmitters to save a few milliwatts of power. If they start to detect errors in transmission or reception, they go back a notch and raise the power.  Less smart network cards just use a lower power transmitter without so much analysis of the signal and just assume the cables are good enough.

 

There are network cables out there which are meant to be used as small patch cables, just a few meters long. These cheap network cables are made with CCA (copper clad aluminum), basically each wire in the network cable is made from several strands of aluminum, each covered in a very thin layer of copper. Unlike pure copper cables, these cables are cheaper to produce but the resistance of the wire is often higher.

 

For short distances the cable is advertised for (a few meters) this higher resistance of the wires is irrelevant, but if you were to buy and create a 40+ meters cable out of such type of cable, it could happen that in combination with the lower transmitter power of network cards with power savings mode enabled, there would be so many uncorrectable errors that the cards would think the cable is bad and would fall back to 100 mbps.

This actually happened, and it happens more often with even shorter cables if on the other end are cheap 5 or 8 port switches that have this "green" or power saving feature always on.

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, DeadlyPilot said:

So i found an ethernet cable and have no idea what category it is, is there a way i can test what speed its being run at? Linus said in one of his videos that your NIC will only go in full steps, from 1gbit down to 10mbit and never in between. So lets say i wanted to test if a cat5e cable was truly capable of 1gbps, how would i test that?

 

Hope this made sense. Thanks

 

Edit: **I meant 100mbps not 10

if you have a linux server or can boot one from a flash drive run iperf on the server side then run the client on another machine with the cable in the middle in question and ta da you got your speed

main rig

Spoiler

 corsair 750d | evga 1000w g2 | Gigabyte x99 soc champ | 5820k 4.0GHz | 1tb wd blue | 250gb samsung 840 evo  | Crucial Ballistix Sport XT 16GB 8x2 DDR4-2400 | MSI GTX 970 x2 | monitor Acer B286HK 28" 4K | razor chroma blackwidow  | razor death adder chroma

CENTOS 7 SERVER (PLEX&docker stuff)

Spoiler

NZXT s220 | evga 500w 80+ | AMD FX 8320e | ASUS M5A78L-M/USB3 | 2x8gb non ecc ddr3 WD red 2TBx2 | seagate 160gb microcenter 8gb flashdrive OS

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×