How to determine a network cable's maximum speed?

I have some machines connected in my workplace network using Ethernet cables. I know some types of Ethernet cable can handle speeds up to 5 Gbps but I'm not sure which ones. So I want to determine the max speed of each Ethernet cable run in my environment. I have access to each end of the cables I need to test.

How I can do this? Is there a way to do it with terminal?


Solution 1:

Use iPerf to determine real-world bandwidth

According to the iPerf website:

iPerf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks.

You can download it from the official site here. Documentation is available here.

iPerf determines the real world bandwidth of the connection. It's a better testing method than assuming a cable marked "Cat5e" can deliver 1 Gbps because the cable's installation method and environment can negatively impact its performance. These factors may not be obvious to simple inspection but will show up immediately in a test done with iPerf.

To test the maximum bandwidth of a network cable, do the following:

  1. Install iPerf on two computers, then connect both to opposing ends of the cable.

  2. On one of the computers, start iPerf in Server mode:

     iperf -s
    
  3. On the other computer, run iPerf in client mode to test the connection:

     iperf -c <IP of server>
    

At the end of the test output you will see a summary section like this:

Test Complete. Summary Results:
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-15.00  sec  53.0 MBytes  29.6 Mbits/sec                  sender
[  5]   0.00-15.00  sec  53.0 MBytes  29.6 Mbits/sec                  receiver

Under the Bandwidth heading you'll see the achieved bandwidth over the connection. (This example result is from a test performed over a 802.11g wireless connection; results on a cabled connection should be much higher.)

What if the results shown for "sender" and "receiver" are different?

It's possible the receiver will show a slightly smaller result due to buffering. The iPerf test is time-bound, so some data already sent (i.e. delivered to the sending network adapter's buffer) may not be received before the test completes. The best way to minimize this effect is to not run tests of an overly short duration. The default of 15 seconds is usually sufficient.

Or use a cable tester

A potential drawback of iPerf is that its results can be influenced by the specific hardware configuration of the computers used to do the testing. If you want to eliminate this small variable, then you must use a cable tester that can test for bandwidth. An example is the Fluke Networks CableIQ Qualification Tester. The Fluke website describes this feature of the unit:

[The] CableIQ qualification tester....gives even the most novice tech the vision to see what speeds existing cabling can support, quickly isolate cabling from network problems, and discover what is at the far end of any cable....CableIQ quickly reveals whether a link, including patch cords, is qualified for voice, 10/100BASE-T, VoIP, or Gig.

Cable testers are usually easy to use. Here's what a sample test result screen looks like:

enter image description here

But such testers are usually expensive for quality models, making a method like iPerf an attractive alternative.

Solution 2:

To actually know what speed the cable is can cost lost of money using a Ethernet cable certifier - this equipment will check if the cable is good for certain speed at a certain length. So therefore I would suggest checking the label first -- if the label says its CAT6a, its rated up to 10Gbps which would cover 5Gbps per second. Doing a speed test from PC to PC, etc may not be accurate because your computing power might need to be very powerful in order to push that kind of data. CAT6A would guarantee up to 90 meters whereas CAT 7 would be guaranteed for 100 meters for 10Gbps speed.

-- At las, the cables may not matter because you may just have 1Gigabit network links. If you have a 10Gbps server nic card on a server or NAS or whatever, just make sure that the switchport on the other end is also 10Bgps capable and buy a new CAT 7 cable.

-- If that's not the case, your modern workstation is probably rated up to 1Gbps (most common) and most stores these days sell at least CAT5E rated for 1Gbps.