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

비밀번호

댓글 작성자
 




... 91  92  93  94  95  96  97  98  [99]  100  101  102  103  104  105  ...
NoWriterDateCnt.TitleFile(s)
11458정성태2/21/201819431오류 유형: 452. This share requires the obsolete SMB1 protocol, which is unsafe and could expose your system to attack. [1]
11457정성태2/17/201824129.NET Framework: 732. C# - Task.ContinueWith 설명 [1]파일 다운로드1
11456정성태2/17/201829836.NET Framework: 731. C# - await을 Task 타입이 아닌 사용자 정의 타입에 적용하는 방법 [7]파일 다운로드1
11455정성태2/17/201818767오류 유형: 451. ASP.NET Core - An error occurred during the compilation of a resource required to process this request.
11454정성태2/12/201827662기타: 71. 만료된 Office 제품 키를 변경하는 방법
11453정성태1/31/201819606오류 유형: 450. Azure Cloud Services(classic) 배포 시 "Certificate with thumbprint ... doesn't exist." 오류 발생
11452정성태1/31/201825133기타: 70. 재현 가능한 최소한의 예제 프로젝트란? [3]파일 다운로드1
11451정성태1/24/201819350디버깅 기술: 111. windbg - x86 메모리 덤프 분석 시 닷넷 메서드의 호출 인자 값 확인
11450정성태1/24/201834722Windows: 146. PowerShell로 원격 프로세스(EXE, BAT) 실행하는 방법 [1]
11449정성태1/23/201821980오류 유형: 449. 단위 테스트 - Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.VideoRecorderEngine' or one of its dependencies. [1]
11448정성태1/20/201819559오류 유형: 448. Fakes를 포함한 단위 테스트 프로젝트를 빌드 시 CS0619 관련 오류 발생
11447정성태1/20/201820899.NET Framework: 730. dotnet user-secrets 명령어 [2]파일 다운로드1
11446정성태1/20/201821863.NET Framework: 729. windbg로 살펴보는 GC heap의 Segment 구조 [2]파일 다운로드1
11445정성태1/20/201819754.NET Framework: 728. windbg - 눈으로 확인하는 Workstation GC / Server GC
11444정성태1/19/201819808VS.NET IDE: 125. Visual Studio에서 Selenium WebDriver를 이용한 웹 브라우저 단위 테스트 구성파일 다운로드1
11443정성태1/18/201820494VC++: 124. libuv 모듈 살펴 보기
11442정성태1/18/201818218개발 환경 구성: 353. ASP.NET Core 프로젝트의 "Enable unmanaged code debugging" 옵션 켜는 방법
11441정성태1/18/201816733오류 유형: 447. ASP.NET Core 배포 오류 - Ensure that restore has run and that you have included '...' in the TargetFrameworks for your project.
11440정성태1/17/201819995.NET Framework: 727. ASP.NET의 HttpContext.Current 구현에 대응하는 ASP.NET Core의 IHttpContextAccessor/HttpContextAccessor 사용법파일 다운로드1
11439정성태1/17/201824964기타: 69. C# - CPU 100% 부하 주는 프로그램파일 다운로드1
11438정성태1/17/201819613오류 유형: 446. Error CS0234 The type or namespace name 'ITuple' does not exist in the namespace
11437정성태1/17/201818919VS.NET IDE: 124. Platform Toolset 설정에 따른 Visual C++의 헤더 파일 기본 디렉터리
11436정성태1/16/201821201개발 환경 구성: 352. ASP.NET Core (EXE) 프로세스가 IIS에서 호스팅되는 방법 - ASP.NET Core Module(AspNetCoreModule) [4]
11435정성태1/16/201822292개발 환경 구성: 351. OWIN 웹 서버(EXE)를 IIS에서 호스팅하는 방법 - HttpPlatformHandler (Reverse Proxy)파일 다운로드2
11434정성태1/15/201822758개발 환경 구성: 350. 사용자 정의 웹 서버(EXE)를 IIS에서 호스팅하는 방법 - HttpPlatformHandler (Reverse Proxy)파일 다운로드2
11433정성태1/15/201820796개발 환경 구성: 349. dotnet ef 명령어 사용을 위한 준비
... 91  92  93  94  95  96  97  98  [99]  100  101  102  103  104  105  ...