Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 2개 있습니다.)

오라클 클라우드의 리눅스 VM - 9000 MTU Jumbo Frame 테스트

지난 글에서, IP MTU의 값이 대개 1500이라고 했는데요,

이더넷(Ethernet) 환경의 TCP 통신에서 MSS(Maximum Segment Size) 확인
; https://www.sysnet.pe.kr/2/0/12521

오라클에 있는 리눅스 VM에서 mtu를 확인해 보니 9000 값이 나옵니다.

$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 02:00:17:00:b0:a2 brd ff:ff:ff:ff:ff:ff

정말 이렇게 해도 통신이 잘 되는지 직접 ping을 통해 확인해 볼까요? ^^ 이를 위해 우선, 오라클의 Ubuntu VM 버전은,

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

ping 등의 네트워크 도구가 없으므로 별도로 설치해야 합니다.

Ping command not found on Ubuntu 20.04 Focal Fossa Linux
; https://linuxconfig.org/ping-command-not-found-on-ubuntu-20-04-focal-fossa-linux

$ sudo apt install iputils-ping

이후 지난번처럼 ping을 이용해 테스트하면,

$ ping www.microsoft.com -s 8972 -c 1 -v -M do
PING e13678.dscb.akamaiedge.net (23.201.37.168) 8972(9000) bytes of data.
From 140.91.214.3 (140.91.214.3) icmp_seq=1 Frag needed and DF set (mtu = 1500)

--- e13678.dscb.akamaiedge.net ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

오류가 발생합니다. 즉, 저 MTU 값으로는 통신이 안 되는 것입니다. 왜냐하면, MTU 9000은 Jumbo Frame이 활성화되어 있는 것으로,

How to test if 9000 MTU/Jumbo Frames are working
; https://blah.cloud/hardware/test-jumbo-frames-working/

대상 서버(위의 경우 www.microsoft.com)까지의 라우터 장비를 비롯한 모든 네트워크가 이를 지원해야 하기 때문에 실패한 것입니다. (사실, TCP Connection의 3-way handshake에 MSS 크기 협상도 포함되어 때문에 상대편이 제시한 MSS 크기가 작다면 그것으로 낮춰서 통신하므로 MTU 9000으로 설정되었다고 해서 통신이 안 되는 것은 아닙니다.)

만약 MTU 9000을 꼭 테스트하고 싶다면, 가장 좋은 방법이 같은 오라클 클라우드 내의 장비끼리 통신하는 것입니다. 가령, 제 경우에 또 다른 VM이 하나 더 있었는데 그곳으로 ping을 해보면 8972(= 9000 - 20바이트 IP header - 8바이트 ICMP header)까지 잘 되는 것을 확인할 수 있습니다.

$ ping -M do -c 1 -s 8972 [...oracle_vm_ip...]
PING [...oracle_vm_ip...] ([...oracle_vm_ip...]) 8972(9000) bytes of data.
8980 bytes from [...oracle_vm_ip...]: icmp_seq=1 ttl=63 time=0.437 ms

--- [...oracle_vm_ip...] ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.437/0.437/0.437/0.000 ms

$ ping -M do -c 1 -s 8973 [...oracle_vm_ip...]
PING [...oracle_vm_ip...] ([...oracle_vm_ip...]) 8973(9001) bytes of data.
ping: local error: message too long, mtu=9000

--- [...oracle_vm_ip...] ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

그러니까, 현실적으로 봤을 때 Jumbo Frame이 활성화된 통신은 intranet 환경 정도에서나 쓸만한 것입니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 1/22/2023]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




1  2  3  4  [5]  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13854정성태12/27/20245875C/C++: 186. Golang - 콘솔 응용 프로그램을 NT 서비스를 지원하도록 변경파일 다운로드1
13853정성태12/26/20244819디버깅 기술: 213. Windbg - swapgs 명령어와 (Ring 0 커널 모드의) FS, GS Segment 레지스터
13852정성태12/25/20245913디버깅 기술: 212. Windbg - (Ring 3 사용자 모드의) FS, GS Segment 레지스터파일 다운로드1
13851정성태12/23/20245105디버깅 기술: 211. Windbg - 커널 모드 디버깅 상태에서 사용자 프로그램을 디버깅하는 방법
13850정성태12/23/20246224오류 유형: 940. "Application Information" 서비스를 중지한 경우, "This file does not have an app associated with it for performing this action."
13849정성태12/20/20246201디버깅 기술: 210. Windbg - 논리(가상) 주소를 Segmentation을 거쳐 선형 주소로 변경
13848정성태12/18/20245691디버깅 기술: 209. Windbg로 알아보는 Prototype PTE파일 다운로드2
13847정성태12/18/20245763오류 유형: 939. golang - 빌드 시 "unknown directive: toolchain" 오류 빌드 시 이런 오류가 발생한다면?
13846정성태12/17/20246322디버깅 기술: 208. Windbg로 알아보는 Trans/Soft PTE와 2가지 Page Fault 유형파일 다운로드1
13845정성태12/16/20245178디버깅 기술: 207. Windbg로 알아보는 PTE (_MMPTE)
13844정성태12/14/20246687디버깅 기술: 206. Windbg로 알아보는 PFN (_MMPFN)파일 다운로드1
13843정성태12/13/20245205오류 유형: 938. Docker container 내에서 빌드 시 error MSB3021: Unable to copy file "..." to "...". Access to the path '...' is denied.
13842정성태12/12/20245392디버깅 기술: 205. Windbg - KPCR, KPRCB
13841정성태12/11/20246030오류 유형: 937. error MSB4044: The "ValidateValidArchitecture" task was not given a value for the required parameter "RemoteTarget"
13840정성태12/11/20245276오류 유형: 936. msbuild - Your project file doesn't list 'win' as a "RuntimeIdentifier"
13839정성태12/11/20246242오류 유형: 936. msbuild - error CS1617: Invalid option '12.0' for /langversion. Use '/langversion:?' to list supported values.
13838정성태12/4/20245978오류 유형: 935. Windbg - Breakpoint 0's offset expression evaluation failed.
13837정성태12/3/20246755디버깅 기술: 204. Windbg - 윈도우 핸들 테이블 (3) - Windows 10 이상인 경우
13836정성태12/3/20245312디버깅 기술: 203. Windbg - x64 가상 주소를 물리 주소로 변환 (페이지 크기가 2MB인 경우)
13835정성태12/2/20246733오류 유형: 934. Azure - rm: cannot remove '...': Directory not empty
13834정성태11/29/20246722Windows: 275. C# - CUI 애플리케이션과 Console 윈도우 (Windows 10 미만의 Classic Console 모드인 경우) [1]파일 다운로드1
13833정성태11/29/20246098개발 환경 구성: 737. Azure Web App에서 Scale-out으로 늘어난 리눅스 인스턴스에 SSH 접속하는 방법
13832정성태11/27/20245728Windows: 274. Windows 7부터 도입한 conhost.exe
13831정성태11/27/20245083Linux: 111. eBPF - BPF_MAP_TYPE_PERF_EVENT_ARRAY, BPF_MAP_TYPE_RINGBUF에 대한 다양한 용어들
13830정성태11/25/20246575개발 환경 구성: 736. 파이썬 웹 앱을 Azure App Service에 배포하기
13829정성태11/25/20246705스크립트: 67. 파이썬 - Windows 버전에서 함께 설치되는 py.exe
1  2  3  4  [5]  6  7  8  9  10  11  12  13  14  15  ...