728x90
SMALL
[설치]
- 대역폭 측정을 위한 패키지 설치
- Client 와 Server 모두 설치 필요
yum install -y epel-release
yum install -y iperf
# 상태 확인 패키지
yum install -y iftop
[Test 1] 다중 TCP 연결 테스트
목적: 여러 클라이언트가 TCP 연결을 통해 네트워크 대역폭에 미치는 영향 분석.
- master
[실행]
iperf -s -p 5201
# -s: iperf 서버 모드 실행
# -p 5201: 포트 5201 사용
[client 에서 명령어 실행 시]
------------------------------------------------------------
Server listening on TCP port 5201
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.98.159 port 5201 connected with 192.168.98.162 port 55780
[ 5] local 192.168.98.159 port 5201 connected with 192.168.98.162 port 55782
[ 6] local 192.168.98.159 port 5201 connected with 192.168.98.162 port 55784
[ 8] local 192.168.98.159 port 5201 connected with 192.168.98.162 port 55786
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-30.0 sec 3.35 GBytes 959 Mbits/sec
[ 5] 0.0-30.0 sec 3.42 GBytes 979 Mbits/sec
[ 8] 0.0-30.0 sec 3.68 GBytes 1.05 Gbits/sec
[ 6] 0.0-30.1 sec 3.33 GBytes 953 Mbits/sec
[SUM] 0.0-30.1 sec 13.8 GBytes 3.94 Gbits/sec
- worker1
iperf -c 192.168.98.159 -p 5201 -t 30 -P 4
# -c 192.168.98.159: Master 서버의 IP로 연결
# -t 30: 30초 동안 테스트
# -P 4: 병렬 연결 4개 생성
------------------------------------------------------------
Client connecting to 192.168.98.159, TCP port 5201
TCP window size: 978 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.98.162 port 55780 connected with 192.168.98.159 port 5201
[ 5] local 192.168.98.162 port 55784 connected with 192.168.98.159 port 5201
[ 4] local 192.168.98.162 port 55782 connected with 192.168.98.159 port 5201
[ 6] local 192.168.98.162 port 55786 connected with 192.168.98.159 port 5201
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-30.0 sec 3.35 GBytes 960 Mbits/sec
[ 5] 0.0-30.0 sec 3.33 GBytes 954 Mbits/sec
[ 4] 0.0-30.0 sec 3.42 GBytes 980 Mbits/sec
[ 6] 0.0-30.0 sec 3.68 GBytes 1.05 Gbits/sec
[SUM] 0.0-30.0 sec 13.8 GBytes 3.95 Gbits/sec
- worker2
iperf -c 192.168.98.159 -p 5201 -t 30 -P 4
[결과 확인]
- iperf 출력 결과
- 네트워크 인터페이스 트래픽 확인
iftop
- CPU 및 메모리 부하 확인
- 네트워크 연결 상태 확인
LIST
'🔌Network' 카테고리의 다른 글
CentOS 7에서 IPS와 IDS 비교 및 설정 방법 (0) | 2025.02.11 |
---|---|
DNS 작동 원리 (0) | 2025.02.06 |
리눅스에서 네트워크 Bonding 설정하는 방법 (0) | 2025.02.05 |
[Network] Overlay와 Underlay의 개념 (0) | 2024.12.23 |
WireShark 사용법 (0) | 2024.05.14 |