1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

iperfを使ってPC間の通信速度を確認する

Last updated at Posted at 2020-12-31

iperfを使ってPC間の通信速度を確認した際のメモです

環境

今回は以下を使用
Ubuntu18.04
Jetson Nano

iperfとは

ネットワークの帯域幅を測定するツール

https://github.com/esnet/iperf
iperf is a tool for active measurements of the maximum achievable bandwidth on IP networks.

install

sudo apt install iperf -y

測定

Ubuntu18.04側で以下を実行する

$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  4] local 192.168.179.6 port 5001 connected with 192.168.179.8 port 47160
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0- 8.2 sec   768 KBytes   763 Kbits/sec

Jetson Nano側で以下を実行すると測定できる(例:IPアドレスが192.168.179.6の場合)

$ iperf -c 192.168.179.6
------------------------------------------------------------
Client connecting to 192.168.179.6, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.179.8 port 47160 connected with 192.168.179.6 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 7.7 sec   768 KBytes   819 Kbits/sec

無線だとBandWidthがやっぱり低い

$ iperf -c 192.168.179.6
------------------------------------------------------------
Client connecting to 192.168.179.6, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.179.8 port 47872 connected with 192.168.179.6 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  12.4 MBytes  10.4 Mbits/sec

クロスケーブルで繋ぐとこれくらいのBandWidth
以下の設定をした場合の例
PC側:sudo ifconfig eth 192.168.1.1 up
JetsonNano側: sudo ifconfig eth0 192.168.1.2 up

jetson@jetson-desktop:~/catkin_ws/src/ai_race/ai_race/learning/scripts$ iperf -c 192.168.1.1
------------------------------------------------------------
Client connecting to 192.168.1.1, TCP port 5001
TCP window size:  926 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.2 port 60778 connected with 192.168.1.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.09 GBytes   939 Mbits/sec

参考

[Network]iperfでLAN内のパソコン間のネットワーク速度を測定する
ネットワーク測定ツールiperfの使い方
https://github.com/esnet/iperf

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?