Interview Prep/AWS/VPC and Connectivity

SSH and small HTTP requests work across a VPN / Transit Gateway, but large file transfers and TLS handshakes hang.

AdvancedTroubleshootingVPC and Connectivity
Answer

Likely causes → An MTU mismatch. Instances use jumbo frames (9001 MTU) inside the VPC, but Site-to-Site VPN supports at most 1446 bytes and Transit Gateway 8500. Small packets fit; big ones need fragmentation. Path MTU Discovery fails because ICMP "fragmentation needed" (type 3 code 4) is blocked by a security group, NACL or on-prem firewall.

Diagnose →

ip link show eth0 | grep mtu                 # 9001 on most Nitro instances
ping -M do -s 1418 10.20.0.15                # 1418 + 28 = 1446, should pass
ping -M do -s 1472 10.20.0.15                # fails => MTU is the problem
tracepath 10.20.0.15                         # shows the pmtu hop by hop
aws ec2 describe-security-groups --group-ids sg-0abc --query 'SecurityGroups[].IpPermissions[?IpProtocol==`icmp`]'

Fix →

  1. Allow inbound ICMP type 3 code 4 (Destination Unreachable / Fragmentation Needed) in the SGs and NACLs on both sides
  2. Enable TCP MSS clamping on the customer gateway (for example MSS 1379 for IPsec)
  3. As a short-term workaround, lower the instance MTU: sudo ip link set dev eth0 mtu 1400

Prevent → Treat ICMP unreachable as required traffic in baseline SGs, and document per-path MTU (VPN 1446, TGW 8500, internet 1500).

aws All AWS questions Roadmap: AWS core services

More on VPC and Connectivity