Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

「iperf」を使用して使用可能なネットワーク帯域幅をテストする方法

Summary: この記事では、使用可能なネットワーク帯域幅をテストする方法について説明します。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms

使用可能なネットワーク帯域幅をテストする方法

1.iperfユーティリティーをダウンロードします。  コピーはiperf.frから入手できます。
2.データを受信するサーバーで、管理者特権のコマンド ウィンドウを開き、次のコマンドを実行します。「iperf.exe –s –w 2m」.
    3.データを送信するサーバーで、管理者特権のコマンド ウィンドウを開き、次のコマンドを実行します。「iperf –c x.x.x.x –w 2m –t 30s –i 1s」.  「x.x.x.x」を手順2のサーバーのIPアドレスに置き換えます。
    4.手順3でサーバーに返されたデータを確認します。  出力は次のようなテキストになります。

 
C:\Users\some_user\Downloads>iperf -c xx.xx.xx.xx -w 2m -t 30s -i 1s
------------------------------------------------------------
Client connecting to xx.xx.xx.xx, TCP port 5001
TCP window size: 2.00 MByte
------------------------------------------------------------
[156] local xx.xx.xx.xx port 53724 connected with xx.xx.xx.xx port 5001
[ ID] Interval       Transfer     Bandwidth
[156]  0.0- 1.0 sec  113 MBytes  945 Mbits/sec
[156]  1.0- 2.0 sec  112 MBytes  944 Mbits/sec
[156]  2.0- 3.0 sec  113 MBytes  945 Mbits/sec
.
.
.
[156] 28.0-29.0 sec  113 MBytes  945 Mbits/sec
[156] 29.0-30.0 sec  112 MBytes  944 Mbits/sec
[156]  0.0-30.3 sec   3.30 GBytes  945 Mbits/sec

 
追加情報:

Iperfは、TCPおよびUDPデータ ストリームを作成し、それらを運んでいるネットワークのスループットを測定できる、一般的に使用されるネットワーク テスト ツールです。

Iperfを使用すると、ネットワークのテスト、ネットワークの最適化やチューニングに使用できるさまざまなパラメーターを設定できます。Iperfにはクライアントとサーバーの機能があり、2点間のスループットを一方向または双方向に測定できます。これは、オープンソースのソフトウェアで、Linux、UNIX、およびWindowsなどのさまざまなプラットフォームで実行されます。

上記のコマンド例では、バッファー サイズが2メガバイトの単方向テストを実行します。  テストは30秒間実行され、1秒ごとに結果が表示されます。  より高度なテストについては、以下の完全な構文を参照してください。
 

一般的なオプション:  


-f, --format
レポートする[kmKM]形式:Kbits, Mbits, KBytes, MBytes-h, --help
ヘルプを表示する synopsis-i

, --interval n
pause n seconds between periodic bandwidth reports-l

, --len n[KM]
set length read/write buffer to n (default 8 KB)

-m, --print_mss
print TCP 最大セグメントサイズ (MTU - TCP/IP ヘッダ)

-o, --output <filename>
この指定されたファイルに

レポートまたはエラーメッセージを出力する-p,

--port n
n をリッスン/接続するサーバーポートを n に設定する (デフォルトは 5001)

-u, --udp
TCPw

ではなく UDP を使用する, --window n[KM]
TCP ウィンドウサイズ (ソケットバッファサイズ)

-B, --bind host
>bind to <host>, インターフェイスまたはマルチキャストアドレス

-C, --
compatibility <for use with older versionsは余分なメッセージを送信しない msgs-M

, --mss n
TCP 最大セグメントサイズを設定する (MTU - 40 バイト)

-N, --nodelay
set TCP no delay, disable Nagle s Algorithm-v

, --version
print version information and quit-V

, --IPv6Version
ドメインをIPv6-x

に設定、 --reportexclude
[CDMSV] exclude C(接続) D(data) M(multicast) S(settings)
V(server) reports-y

, --reportstyle C|c
に設定した場合、結果を CSV (カンマ区切り値) として報告するサーバー

固有のオプション:  

-s, --server
サーバー モードで実行する

-U, --single_udp
シングル スレッドUDPモードで実行する

-D, --daemon
サーバーをデーモンとして実行する

クライアント固有のオプション:

-b, --bandwidth n[KM]
ターゲット帯域幅をnビット/秒に設定する(デフォルトは1 Mbit/sec)。この
設定にはUDP(-u)が必要です。

-c, --client <host run in client mode
>, connecting <to host-d

>, --dualtest
双方向テストを同時に

行う-n, --num n[KM]
送信するバイト数 (-t の代わりに)

-r, --tradeoff
双方向テストを個別に

行う-t, --time n
回(秒単位)(デフォルトは10秒)

-F, --fileinput <name
>ファイルから

送信するデータを入力する-I, --stdin stdin-Lから送信するデータを入力する, --listenport n
ポートで双方向テストを受信してPに戻す

, --parallel n
個の並列クライアントスレッドをrun-T

, --ttl n
マルチキャストの場合の有効時間(デフォルトは1)

-Z, --linux-congestion <algo>
set TCP輻輳制御アルゴリズム(Linuxのみ)


ソース:


WikipediaおよびManpagez

 

Cause

-

Resolution

-

Article Properties


Affected Product

Desktops & All-in-Ones, Laptops, Servers, PowerEdge

Last Published Date

10 Jun 2024

Version

5

Article Type

Solution