0Pricing
Linux Networking & TCP/IP for Developers · レッスン

ネットワークスループットのベンチマーク

さまざまな状況でネットワークパフォーマンスを正確に測定・分析するためのツールと手法を学びます。

「ネットワークスループットのベンチマーク」はCoddyKit上の無料Linux Networking & TCP/IP for Developersレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはLinux Networking & TCP/IP for Developers学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Linux Networking & TCP/IP for Developersコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Why Benchmark Network Speed?

Ever wonder if your internet connection is truly delivering what it promises? Or if your local network is a bottleneck?

Network benchmarking helps you measure and understand your network's actual performance. It's crucial for diagnosing slowdowns, verifying upgrades, or planning system deployments.

Key Throughput Metrics

When we talk about network performance, we often focus on these key metrics:

  • Throughput (Bandwidth): The amount of data transferred successfully per unit of time, usually measured in bits per second (bps) or bytes per second (Bps).
  • Latency: The time it takes for a data packet to travel from one point to another.
  • Jitter: The variation in latency over time.
  • Packet Loss: The percentage of data packets that fail to reach their destination.

For benchmarking, throughput is often the primary focus.

Introducing iperf3 for Throughput

iperf3 is a powerful command-line tool specifically designed for measuring maximum network throughput between two hosts.

It's widely used because it can test both TCP and UDP connections, show detailed statistics, and is available on almost all platforms, including Linux.

Setting Up iperf3 Server

To test network throughput with iperf3, you need two machines: one acting as a server and one as a client.

First, on one of your Linux machines (the 'server'), start iperf3 in server mode. It will listen for incoming connections.

iperf3 -s

Running a Basic iperf3 Client Test

Now, on your second Linux machine (the 'client'), run iperf3 in client mode, pointing it to the server's IP address.

This command will perform a default 10-second TCP test, sending data from the client to the server.

iperf3 -c <server_ip_address>

Interpreting iperf3 Output

After the test, both the client and server will display results. Look for the 'Bandwidth' column, which shows the throughput.

Key metrics in the output:

  • Interval: Time segments of the test.
  • Transfer: Total data sent/received in that interval.
  • Bandwidth: The average data rate for that interval.
  • Retr: Number of retransmitted packets (for TCP), indicating network issues.

Testing UDP Throughput and Loss

iperf3 can also test UDP performance, which is useful for applications like video streaming or VoIP where packet loss is more critical than retransmissions.

Use the -u flag on the client to switch to UDP mode. You can also specify a target bandwidth with -b.

iperf3 -c <server_ip_address> -u -b 100M

Maximizing Throughput with Parallel Streams

Sometimes, a single TCP stream might not fully utilize your network's capacity due to TCP windowing or latency.

You can use the -P flag to run multiple parallel streams simultaneously, which can reveal the true maximum throughput of your link.

iperf3 -c <server_ip_address> -P 4

Other iperf3 Options

iperf3 offers many other options for fine-tuning your tests:

  • -R: Reverse mode (server sends, client receives).
  • -t : Set test duration.
  • -i : Set interval for reporting.
  • -J: Output results in JSON format for scripting.

Always check iperf3 --help for a full list of options!

Quick Check on iperf3

You've run an iperf3 TCP test from a client to a server. The client output shows a 'Retr' count of 150. What does this indicate?

Recap: Benchmarking Throughput

In this lesson, we explored network throughput benchmarking. We learned:

  • Why benchmarking is essential for understanding network performance.
  • Key metrics like throughput, latency, jitter, and packet loss.
  • How to use iperf3 in both server and client modes.
  • Interpreting iperf3 results, including bandwidth and retransmissions.
  • Testing UDP performance and using parallel streams for maximum throughput.

Mastering iperf3 is a vital skill for any network professional or developer!

よくある質問

「ネットワークスループットのベンチマーク」レッスンは無料ですか?

はい。「ネットワークスループットのベンチマーク」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Linux Networking & TCP/IP for Developersコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Linux Networking & TCP/IP for Developersコースには全4レッスンが含まれています。

「ネットワークスループットのベンチマーク」で何を学びますか?

さまざまな状況でネットワークパフォーマンスを正確に測定・分析するためのツールと手法を学びます。 ブラウザで直接実行するハンズオンコードでLinux Networking & TCP/IP for Developersを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Linux Networking & TCP/IP for Developersを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのLinux Networking & TCP/IP for Developersは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。

「ネットワークスループットのベンチマーク」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このLinux Networking & TCP/IP for Developersレッスンでコードを書いて実行できますか?

はい。すべてのLinux Networking & TCP/IP for Developersレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. カーネルのネットワークパラメーター
  2. NICのチューニングと最適化
  3. ネットワークスループットのベンチマーク
  4. TCP輻輳制御のチューニング
← Linux Networking & TCP/IP for Developersに戻る