Test Computer: One with the network card to be tested, the other as a server; optional gigabit switch; recommended Cat5e or Cat6 cables; stable power supply.
iperf3 Installation: Debian/Ubuntu use sudo apt install iperf3; CentOS/RHEL use sudo yum install iperf3; macOS use brew install iperf3. Ensure the network card drivers are up to date.
| Item | Goal | Tool |
|---|---|---|
| Basic Connectivity | Ensure the network card is properly connected | ping |
| Bandwidth Performance | Test maximum TCP/UDP throughput | iperf3 |
ping -c 10
Server side: iperf3 -s; Client side: iperf3 -c
| Item | Normal Range | Abnormal Situation |
|---|---|---|
| Basic Connectivity | ping packet loss rate < 1% | High packet loss rate |
| TCP Bandwidth | Close to gigabit speed | Low speed, large fluctuations |
| Possible Causes | Solutions |
|---|---|
| Poor cable quality | Use Cat6 or higher quality cables |
| Port not negotiated correctly | Manually set to gigabit mode (check with ethtool) |
| Driver incompatibility | Update the network card driver |
| Network congestion | Test in an idle network environment |