MTU 및 호스트 방화벽이 전송성능에 미치는 영향


실험환경


사양비고
CPUIntel(R) Core(TM) i3-8100 CPU @ 3.60GHz4코어 4쓰레드
메모리삼성 DDR4 2666MHz (PC4-21300) 16GB x 2 = 32GB
디스크삼성 SSD 70 EVO Plus M.2 2280 (250GB)DDR4 512MB 캐시
읽기 최대 3,400MB/s 
쓰기 최대 1,500MB/s
네트워크Intel X520-SR210G SFP+
OSCentOS Linux release 7.7.1908 (Core)리눅스 기본 네트워크 파라미터 이용

(Node A) – (Node B) 직렬 연결

테스트 결과

커널 파라미터

방화벽
(firewalld)

MTU메모리 → 메모리 전송
(iperf3)
파일전송
(gridftp)

CentOS7 기본ON1500 (기본)8.73Gbps

CentOS7 기본OFF1500 (기본)9.41Gbps

CentOS7 기본OFF9216 (9K)9.90Gbps


iperf3 / CentOS7 기본 / 방화벽 ON / MTU 1500 / 8.73 Gbps
# iperf3 -c 10.0.0.1 -t 10 -O 5
Connecting to host 10.0.0.1, port 5201
[  5] local 10.0.0.2 port 58690 connected to 10.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.02 GBytes  8.75 Gbits/sec    0   1.52 MBytes       (omitted)
[  5]   1.00-2.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes       (omitted)
[  5]   2.00-3.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes       (omitted)
[  5]   3.00-4.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes       (omitted)
[  5]   4.00-5.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes       (omitted)
[  5]   0.00-1.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
[  5]   1.00-2.00   sec  1.02 GBytes  8.73 Gbits/sec    0   1.52 MBytes
[  5]   2.00-3.00   sec  1.02 GBytes  8.73 Gbits/sec    0   1.52 MBytes
[  5]   3.00-4.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
[  5]   4.00-5.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
[  5]   5.00-6.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
[  5]   6.00-7.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
[  5]   7.00-8.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
[  5]   8.00-9.00   sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
[  5]   9.00-10.00  sec  1.02 GBytes  8.72 Gbits/sec    0   1.52 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  10.2 GBytes  8.73 Gbits/sec    0             sender
[  5]   0.00-10.04  sec  10.2 GBytes  8.73 Gbits/sec                  receiver
iperf3 / CentOS7 기본 / 방화벽 OFF / MTU 1500 / 9.41 Gbps
# iperf3 -c 10.0.0.1 -t 10 -O 5
Connecting to host 10.0.0.1, port 5201
[  5] local 10.0.0.2 port 58696 connected to 10.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.10 GBytes  9.48 Gbits/sec    0   2.50 MBytes       (omitted)
[  5]   1.00-2.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes       (omitted)
[  5]   2.00-3.00   sec  1.09 GBytes  9.41 Gbits/sec    0   2.50 MBytes       (omitted)
[  5]   3.00-4.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes       (omitted)
[  5]   4.00-5.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes       (omitted)
[  5]   0.00-1.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes
[  5]   1.00-2.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes
[  5]   2.00-3.00   sec  1.10 GBytes  9.41 Gbits/sec    0   2.50 MBytes
[  5]   3.00-4.00   sec  1.09 GBytes  9.41 Gbits/sec    0   2.50 MBytes
[  5]   4.00-5.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes
[  5]   5.00-6.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes
[  5]   6.00-7.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes
[  5]   7.00-8.00   sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes
[  5]   8.00-9.00   sec  1.09 GBytes  9.41 Gbits/sec    0   2.50 MBytes
[  5]   9.00-10.00  sec  1.10 GBytes  9.42 Gbits/sec    0   2.50 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  11.0 GBytes  9.41 Gbits/sec    0             sender
[  5]   0.00-10.04  sec  11.0 GBytes  9.41 Gbits/sec                  receiver
iperf3 / CentOS7 기본 / 방화벽 OFF / MTU 9216 (9K) / 9.90 Gbps
# iperf3 -c 10.0.0.1 -t 10 -O 5
Connecting to host 10.0.0.1, port 5201
[  5] local 10.0.0.2 port 58700 connected to 10.0.0.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.16 GBytes  9.96 Gbits/sec    4   3.36 MBytes       (omitted)
[  5]   1.00-2.00   sec  1.15 GBytes  9.91 Gbits/sec    2   3.36 MBytes       (omitted)
[  5]   2.00-3.00   sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes       (omitted)
[  5]   3.00-4.00   sec  1.15 GBytes  9.90 Gbits/sec    1   3.36 MBytes       (omitted)
[  5]   4.00-5.00   sec  1.15 GBytes  9.91 Gbits/sec    1   3.36 MBytes       (omitted)
[  5]   0.00-1.00   sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes
[  5]   1.00-2.00   sec  1.15 GBytes  9.91 Gbits/sec    0   3.36 MBytes
[  5]   2.00-3.00   sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes
[  5]   3.00-4.00   sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes
[  5]   4.00-5.00   sec  1.15 GBytes  9.91 Gbits/sec    0   3.36 MBytes
[  5]   5.00-6.00   sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes
[  5]   6.00-7.00   sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes
[  5]   7.00-8.00   sec  1.15 GBytes  9.91 Gbits/sec    0   3.36 MBytes
[  5]   8.00-9.00   sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes
[  5]   9.00-10.00  sec  1.15 GBytes  9.90 Gbits/sec    0   3.36 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  11.5 GBytes  9.90 Gbits/sec    0             sender
[  5]   0.00-10.04  sec  11.6 GBytes  9.90 Gbits/sec                  receiver


참고

방화벽 ON / OFF

sudo systemctl stop firewalld   # 방화벽 OFF
sudo systemctl start firewalld  # 방화벽 ON