반응형
[Linux] iperf 설치
네트워크 성능 측정을 위한 tool이다.
1. 설치 방법
- centos/rhel 계열
■ epel 설치
[root@test-1 ~]# yum install epel-release -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.cdnetworks.com
* extras: mirror.kakao.com
* updates: mirror.kakao.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================================
Installing:
epel-release noarch 7-11 extras 15 k
Transaction Summary
==========================================================================================================================================================================
Install 1 Package
Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
■ iperf pkg 설치
[root@test-1 ~]# yum install iperf -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 5.3 kB 00:00:00
* base: centos.mirror.cdnetworks.com
* epel: ftp.riken.jp
* extras: mirror.kakao.com
* updates: mirror.kakao.com
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/3): epel/x86_64/updateinfo | 990 kB 00:00:11
(2/3): epel/x86_64/group_gz | 88 kB 00:00:15
(3/3): epel/x86_64/primary_db | 6.7 MB 00:00:28
Resolving Dependencies
--> Running transaction check
---> Package iperf.x86_64 0:2.0.13-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================================
Installing:
iperf x86_64 2.0.13-1.el7 epel 86 k
Transaction Summary
==========================================================================================================================================================================
Install 1 Package
Total download size: 86 k
Installed size: 185 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/epel/packages/iperf-2.0.13-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA
Public key for iperf-2.0.13-1.el7.x86_64.rpm is not installed
iperf-2.0.13-1.el7.x86_64.rpm | 86 kB 00:00:15
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-11.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : iperf-2.0.13-1.el7.x86_64 1/1
Verifying : iperf-2.0.13-1.el7.x86_64 1/1
Installed:
iperf.x86_64 0:2.0.13-1.el7
Complete!
- ubuntu 계열
# apt install iperf
2. 사용 방법
옵션 -i : interval 간격 -s : server mode -c [server ip] : client mode -u : UDP -b : bandwith -t : time (client에서 전송
|
- server mode
"-u" 옵션을 사용할 경우 UDP성능측정이고 없을 경우 TCP측정이다.
[root@test-2 ~]# iperf -s -i1
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
- client mode
서버와 동일한 설정으로 하되 -c와 서버 IP를 입력한다.
[root@test-1 ~]# iperf -c 172.10.4.67 -b10000M -i1 -t 30
------------------------------------------------------------
Client connecting to 172.10.4.67, TCP port 5001
TCP window size: 255 KByte (default)
------------------------------------------------------------
[ 3] local 172.10.4.38 port 47688 connected with 172.10.4.67 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 2.0 sec 226 MBytes 950 Mbits/sec
[ 3] 2.0- 4.0 sec 226 MBytes 947 Mbits/sec
[ 3] 4.0- 6.0 sec 224 MBytes 938 Mbits/sec
[ 3] 6.0- 8.0 sec 225 MBytes 945 Mbits/sec
[ 3] 8.0-10.0 sec 224 MBytes 938 Mbits/sec
[ 3] 10.0-12.0 sec 224 MBytes 940 Mbits/sec
[ 3] 12.0-14.0 sec 224 MBytes 941 Mbits/sec
[ 3] 14.0-16.0 sec 224 MBytes 942 Mbits/sec
[ 3] 16.0-18.0 sec 225 MBytes 943 Mbits/sec
[ 3] 18.0-20.0 sec 224 MBytes 941 Mbits/sec
[ 3] 20.0-22.0 sec 225 MBytes 942 Mbits/sec
[ 3] 22.0-24.0 sec 224 MBytes 940 Mbits/sec
[ 3] 24.0-26.0 sec 224 MBytes 942 Mbits/sec
[ 3] 26.0-28.0 sec 225 MBytes 943 Mbits/sec
[ 3] 28.0-30.0 sec 224 MBytes 941 Mbits/sec
[ 3] 0.0-30.0 sec 3.29 GBytes 942 Mbits/sec
반응형
'운영체제 > Linux' 카테고리의 다른 글
[Linux] DNS Server install (0) | 2019.07.02 |
---|---|
[Linux] nginx 설치 (0) | 2019.06.25 |
[Linux] SWAP memory 추가 설정 (0) | 2019.04.25 |
[Linux] zip/unzip 압축파일 패스워드 설정하기 (0) | 2018.10.11 |
[Linux] vi/vim 관련 | 마우스 드래그 시 비주얼 모드로 진입 해제방법 (0) | 2018.09.17 |