iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🏠

Measuring Wired LAN Speed in a Home

に公開

Small tip 🍣

When visiting a pre-owned house for viewing, I sometimes find LAN cables installed in each room.


When an information distribution panel is present


Also cases where there is none


The category is often written on the terminal part

Especially for pre-owned detached houses built around 20 to 25 years ago, the ratio of building value to sale price tends to decrease, making it easier to evaluate based on land value, and depending on conditions, they can become attractive targets.

https://biz.moneyforward.com/accounting/basic/61336/

On the other hand, in houses from this era, the in-home LAN might still be laid with Cat5 cables, and even if there is a fiber optic outlet, the in-home wiring could become a bottleneck, preventing sufficient speeds.

Category Standardization Year Popularization Era Typical Maximum Speed Guideline
Cat5 1995 (ANSI/TIA-568-A) Late 1990s 100Mbps class (100BASE-TX)
Cat5e 2001 (TIA/EIA-568-B.2) Early 2000s 1Gbps class (1000BASE-T)
Cat6 2002 (TIA/EIA-568-B.2-1) Late 2000s 1Gbps class (10Gbps short-range depending on environment)
Cat6A 2008 (TIA-568-B.2-10) 2010s 10Gbps class (10GBASE-T)

Compared to renovating water fixtures or exterior painting, the cost of replacing LAN wiring is generally small, around several tens of thousands of yen. No electrician license is required, so DIY is possible, but it's good to get a simple grasp of the situation first.

https://www.panduit.co.jp/column/naruhodo/1995/

https://eng-blog.iij.ad.jp/archives/16908

Measurement Method

iperf3 is a tool for actually sending TCP/UDP traffic between two endpoints and measuring throughput (effective speed). Therefore, it is suitable for checking "how much speed close to actual operation can be achieved on this wiring path."

https://iperf.fr/

The differences from a typical LAN cable tester are as follows:

https://www.amazon.co.jp/dp/B0CCP6ZHGB/

  • LAN cable tester: Checks mainly physical layer wiring quality, such as breaks, wiring order, and shorts.
  • iperf3: Checks end-to-end effective speed, including NICs, wiring, in-wall conduits, and intermediate equipment.

In other words, even if a LAN cable tester shows "wiring is normal," it is common for iperf3 to show a ceiling at 100Mbps.

It can be easily installed using a package manager.

# Windows
choco install iperf3 -y

# Mac
brew install iperf3

Work Procedure

This time, I will set up the following configuration:

I brought LAN cables lying around at home, as shown below. Note: If the category of the cable is lower than the communication quality you want to measure, the speed will be capped, so be careful when purchasing new ones. In this case, I wanted to determine whether Cat5 category cables are used in the house, so I judged that Cat5e or higher is fine.

https://www.amazon.co.jp/dp/B082K62S48

https://www.amazon.co.jp/dp/B07CGLT2TQ

https://www.amazon.co.jp/dp/B0FQJGY2DM

Once the PCs and cables are ready, assign IP addresses to each PC.

Execute the following command in the Mac terminal:

# Check
ifconfig en5

# Set
sudo ifconfig en5 inet 192.168.100.1 netmask 255.255.255.0

# Disconnect LAN to clear

Next, open PowerShell as Administrator on Windows and execute the following:

# Check
ipconfig

# Set
netsh interface ip set address name="Ethernet" static 192.168.100.2 255.255.255.0

#Clear
netsh interface ip set address name="Ethernet" dhcp

After setting the static IP, measure. First, check connectivity directly with Client -> Brought LAN cable -> Server, then switch to through the house's LAN port for easier isolation.

# Server side
iperf3 -s

# Client side
iperf3 -c 192.168.100.1

Once connectivity is established, connect from one end of the LAN terminals on the information distribution panel and try connecting. It is recommended to set the information distribution panel side as the client and the room side as the server for easier connection switching.


Measurement scene

Results Example

Once the connection is successful, test results are output on both the client and server.

When Bitrate is around 100Mbps (equivalent to Fast Ethernet):

Accepted connection from 192.168.100.2, port 54476
[  5] local 192.168.100.1 port 5201 connected to 192.168.100.2 port 54477
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  11.2 MBytes  94.2 Mbits/sec
[  5]   1.00-2.00   sec  11.4 MBytes  95.2 Mbits/sec
[  5]   2.00-3.00   sec  11.2 MBytes  94.4 Mbits/sec
[  5]   3.00-4.00   sec  11.2 MBytes  94.6 Mbits/sec
[  5]   4.00-5.00   sec  11.4 MBytes  95.2 Mbits/sec
[  5]   5.00-6.00   sec  11.4 MBytes  95.5 Mbits/sec
[  5]   6.00-7.00   sec  11.2 MBytes  94.3 Mbits/sec
[  5]   7.00-8.00   sec  11.2 MBytes  94.7 Mbits/sec
[  5]   8.00-9.01   sec  11.4 MBytes  95.0 Mbits/sec
[  5]   9.01-10.00  sec  11.4 MBytes  95.8 Mbits/sec
[  5]  10.00-10.06  sec   640 KBytes  86.2 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.06  sec   114 MBytes  94.8 Mbits/sec                  receiver

When Bitrate is around 1Gbps (equivalent to Gigabit Ethernet):

Accepted connection from 192.168.100.2, port 53374
[  5] local 192.168.100.1 port 5201 connected to 192.168.100.2 port 53375
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   112 MBytes   939 Mbits/sec
[  5]   1.00-2.01   sec   112 MBytes   935 Mbits/sec
[  5]   2.01-3.01   sec   110 MBytes   927 Mbits/sec
[  5]   3.01-4.00   sec   113 MBytes   949 Mbits/sec
[  5]   4.00-5.00   sec   114 MBytes   950 Mbits/sec
[  5]   5.00-6.00   sec   113 MBytes   949 Mbits/sec
[  5]   6.00-7.00   sec   113 MBytes   949 Mbits/sec
[  5]   7.00-8.00   sec   113 MBytes   950 Mbits/sec
[  5]   8.00-9.00   sec   113 MBytes   949 Mbits/sec
[  5]   9.00-10.00  sec   114 MBytes   950 Mbits/sec
[  5]  10.00-10.02  sec  2.25 MBytes   937 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.02  sec  1.10 GBytes   945 Mbits/sec                  receiver

If the speed is below 100Mbps, it is highly likely that the in-home wiring is old (equivalent to Cat5) or that other factors (NIC/hub/terminal processing) are causing a 100Mbps link. If 1Gbps is stable, it is highly likely to be at least Cat5e or higher.

In actual properties, I encountered various situations, such as only one room achieving around 100Mbps, or rooms where no connection was possible through any LAN terminal. This reaffirmed the importance of measuring rather than guessing.

That's all 😌

References

Discussion