Part 1
요약·해설
iPerf 2.0.5 호환성과 Zephyr client/server 각각의 UDP·TCP 명령 조합을 설명합니다.
Shell traffic generator
iPerf 2.0.5
UDP · TCP
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
E6063FAAD45D81AB076DDB05D326A7E72C47CD8B5E044F28692A665DC358E9D8
.. _zperf:
zperf: Network Traffic Generator
################################
.. contents::
:local:
:depth: 2
Overview
********
zperf is a shell utility which allows to generate network traffic in Zephyr. The
tool may be used to evaluate network bandwidth.
zperf is compatible with iPerf_2.0.5. Note that in newer iPerf versions,
an error message like this is printed and the server reported statistics
are missing.
.. code-block:: console
LAST PACKET NOT RECEIVED!!!
zperf can be enabled in any application, a dedicated sample is also present
in Zephyr. See :zephyr:code-sample:`zperf sample application <zperf>` for details.
Sample Usage
************
If Zephyr acts as a client, iPerf must be executed in server mode.
For example, the following command line must be used for UDP testing:
.. code-block:: console
$ iperf -s -l 1K -u -V -B 2001:db8::2
For TCP testing, the command line would look like this:
.. code-block:: console
$ iperf -s -l 1K -V -B 2001:db8::2
In the Zephyr console, zperf can be executed as follows:
.. code-block:: console
zperf udp upload 2001:db8::2 5001 10 1K 1M
For TCP the zperf command would look like this:
.. code-block:: console
zperf tcp upload 2001:db8::2 5001 10 1K 1M
If the IP addresses of Zephyr and the host machine are specified in the
config file, zperf can be started as follows:
.. code-block:: console
zperf udp upload2 v6 10 1K 1M
or like this if you want to test TCP:
.. code-block:: console
zperf tcp upload2 v6 10 1K 1M
If Zephyr is acting as a server, set the download mode as follows for UDP:
.. code-block:: console
zperf udp download 5001
or like this for TCP:
.. code-block:: console
zperf tcp download 5001
and in the host side, iPerf must be executed with the following
command line if you are testing UDP:
.. code-block:: console
$ iperf -l 1K -u -V -c 2001:db8::1 -p 5001
and this if you are testing TCP:
.. code-block:: console
$ iperf -l 1K -V -c 2001:db8::1 -p 5001
iPerf output can be limited by using the -b option if Zephyr is not
able to receive all the packets in orderly manner.
Part 3
한국어 전문 번역
개요
zperf는 Zephyr에서 network traffic을 생성하는 shell utility이며 network bandwidth를 평가하는 데 사용할 수 있습니다.
zperf는 iPerf 2.0.5와 호환됩니다. 최신 iPerf version에서는 다음 error message가 출력되고 server가 보고하는 statistics가 누락될 수 있습니다.
LAST PACKET NOT RECEIVED!!!zperf는 모든 application에서 활성화할 수 있고 Zephyr에는 전용 zperf sample도 있습니다.
사용 예
Zephyr가 client로 동작하면 iPerf를 server mode로 실행해야 합니다. UDP test에는 다음 command line을 사용합니다.
$ iperf -s -l 1K -u -V -B 2001:db8::2TCP test에는 다음 command line을 사용합니다.
$ iperf -s -l 1K -V -B 2001:db8::2Zephyr console에서는 UDP zperf를 다음처럼 실행합니다.
zperf udp upload 2001:db8::2 5001 10 1K 1MTCP zperf command는 다음과 같습니다.
zperf tcp upload 2001:db8::2 5001 10 1K 1MConfig file에 Zephyr와 host machine의 IP address가 지정돼 있으면 UDP zperf를 다음처럼 시작할 수 있습니다.
zperf udp upload2 v6 10 1K 1MTCP test에는 다음 command를 사용합니다.
zperf tcp upload2 v6 10 1K 1MZephyr가 server로 동작하면 UDP download mode를 다음처럼 설정합니다.
zperf udp download 5001TCP download mode는 다음과 같습니다.
zperf tcp download 5001Host에서 UDP를 test할 때는 iPerf를 다음 command line으로 실행합니다.
$ iperf -l 1K -u -V -c 2001:db8::1 -p 5001TCP test에는 다음 command line을 사용합니다.
$ iperf -l 1K -V -c 2001:db8::1 -p 5001Zephyr가 모든 packet을 순서대로 받을 수 없으면 -b option으로 iPerf output을 제한할 수 있습니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.