スポンサーリンク
スポンサーリンク

[Cisco] CML iperf (Apine)

【概要】

  • CML Alpine 3.12を利用時
  • Alpineではデフォルトで[iper]がinstallされている
  • TCP/UDP通信を送信したい場合に利用する
  • iperの機能を一部制限されている模様

構成

iperf1-1

iperf Server (PC1)

TCP通信(listen)受信のために、PC1に[iperf -s] を利用
※UDPの場合は不要

PC1:~$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------

iperf Client (PC2)

TCP / UDPパケットを送信するために色々なオプションがある。

-i :interval interval
-p :port
-u :UPD Transfer
-b bandwidth(UDP) bps
-t time per minite
等々

TCP通信

[ケース1] Client側からのTCP送信

PC2:~$ iperf -c 10.1.1.100  //10.1.1.100にTCPでパケットを送信
------------------------------------------------------------
Client connecting to 10.1.1.100, TCP port 5001
TCP window size: 162 KByte (default)
------------------------------------------------------------
[ 3] local 10.2.2.100 port 34614 connected with 10.1.1.100 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.9 sec 2.88 MBytes 2.22 Mbits/sec

[ケース2] Client側からのTCP送信

inserthostname_here:~$ iperf -c 10.1.1.100 -i 1 -t 15 //10.1.1.100にTCPで1秒置き15秒間送信
------------------------------------------------------------
Client connecting to 10.1.1.100, TCP port 5001
TCP window size: 45.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.2.2.100 port 34654 connected with 10.1.1.100 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 700 KBytes 5.73 Mbits/sec
[ 3] 1.0- 2.0 sec 322 KBytes 2.64 Mbits/sec
[ 3] 2.0- 3.0 sec 197 KBytes 1.61 Mbits/sec
[ 3] 3.0- 4.0 sec 193 KBytes 1.58 Mbits/sec
[ 3] 4.0- 5.0 sec 256 KBytes 2.10 Mbits/sec
[ 3] 5.0- 6.0 sec 255 KBytes 2.09 Mbits/sec
[ 3] 6.0- 7.0 sec 192 KBytes 1.58 Mbits/sec
[ 3] 7.0- 8.0 sec 195 KBytes 1.60 Mbits/sec
[ 3] 8.0- 9.0 sec 192 KBytes 1.57 Mbits/sec
[ 3] 9.0-10.0 sec 191 KBytes 1.56 Mbits/sec
[ 3] 10.0-11.0 sec 256 KBytes 2.10 Mbits/sec
[ 3] 11.0-12.0 sec 191 KBytes 1.56 Mbits/sec
[ 3] 12.0-13.0 sec 259 KBytes 2.12 Mbits/sec
[ 3] 13.0-14.0 sec 127 KBytes 1.04 Mbits/sec
[ 3] 14.0-15.0 sec 195 KBytes 1.60 Mbits/sec
[ 3] 0.0-15.0 sec 3.63 MBytes 2.03 Mbits/sec

UDP通信

[ケース3] Client側からのUDP送信

inserthostname_here:~$ iperf -c 10.1.1.100 -u //10.1.1.100にUDPで送信
------------------------------------------------------------
Client connecting to 10.1.1.100, UDP port 5001
Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust)
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 3] local 10.2.2.100 port 32825 connected with 10.1.1.100 port 5001
read failed: Connection refused
[ 3] WARNING: did not receive ack of last datagram after 1 tries.
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec
[ 3] Sent 892 datagrams

[ケース4] Client側からのUDP送信

inserthostname_here:~$ iperf -c 10.1.1.100 -u -l 1000 //10.1.1.100にUDP 1000byteで送信
------------------------------------------------------------
Client connecting to 10.1.1.100, UDP port 5001
Sending 1000 byte datagrams, IPG target: 7629.39 us (kalman adjust)
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 3] local 10.2.2.100 port 44853 connected with 10.1.1.100 port 5001
read failed: Connection refused
[ 3] WARNING: did not receive ack of last datagram after 1 tries.
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec
[ 3] Sent 1311 datagrams
ALL
スポンサーリンク
スポンサーリンク