Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Encapsulation

Direct answer

VXLAN encapsulation wraps the original Ethernet frame in a VXLAN header (with the VNI), UDP (destination port 4789), outer IP and outer Ethernet, adding about 50 bytes.

When to use this

Use it when large packets fail across a VXLAN fabric or you need to read the encapsulation in a capture.

First 30 seconds

1. VXLAN adds about 50 bytes: outer Ethernet, IP, UDP 4789, VXLAN (VNI).

2. Underlay MTU ≥ 1550 (9216 common).

3. UDP source port hash gives ECMP.

4. No fragmentation.

5. Check MTU end to end.

Operational verification

inner frame → VXLAN header → UDP/IP → underlay

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Underlay MTU at 1500, causing drops of full-size frames.
  • Firewalls blocking UDP 4789.
  • Different VNIs mapped to the same VLAN on different VTEPs.
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandping 10.255.0.2 source loopback1 df-bit packet-size 1550
Scope / prerequisiteUse it when large packets fail across a VXLAN fabric or you need to read the encapsulation in a capture.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
ping 10.255.0.2 source loopback1 df-bit packet-size 1550
show nve peers
show interface nve1 counters

The underlay ping with DF set must succeed at the encapsulated size; otherwise large frames are dropped.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Encapsulation wraps the original packet in new headers for transport across the underlay.
  • VXLAN adds about 50 bytes (outer Ethernet, IP, UDP, VXLAN).
  • Raise underlay MTU or lower overlay MTU to avoid fragmentation.
Key checks
  • Capture: outer IP/UDP 4789/VXLAN header/inner frame — encapsulation
  • ping <remote-vtep> size 1550 df-bit — MTU
ReferenceWhy it matters1 section · depth on demand

Worked example

VXLAN wraps every original Ethernet frame in new UDP, IP and Ethernet headers. Those 50 extra bytes are why VXLAN fabrics require a larger MTU on the underlay than on the hosts. The worked example adds up the headers and shows what happens when the MTU is too small.

VXLAN encapsulation: original Ethernet frame + 8-byte VXLAN header (flags, 24-bit VNI) + UDP (destination 4789) + outer IP + outer Ethernet.

Worked example: 1500-byte inner IP packet + 14 inner Ethernet + 8 VXLAN + 8 UDP + 20 outer IPv4 = 1550 bytes on the underlay (70 with IPv6 outer header). If the underlay MTU is 1500, large packets are dropped silently because VTEPs normally set DF or cannot fragment — the classic "ping works, file transfers hang" fault.

ReferenceImportant terms & boundaries3 sections · depth on demand

UDP source port entropy

The VTEP derives the outer UDP source port from a hash of the inner frame's headers. Different inner flows get different source ports, so underlay ECMP spreads VXLAN traffic across links even though the destination port (4789) is always the same.

In depth

VXLAN header fields (RFC 7348)

FieldSizeValue
Flags8 bitsI bit set (0x08) = VNI is valid
Reserved24 bits0
VNI24 bitsSegment ID — about 16 million segments
Reserved8 bits0

Outer UDP destination port is 4789 (IANA). The inner frame is carried without its FCS.

MTU arithmetic for both underlay families

UnderlayOuter EthOuter IPUDPVXLANTotal overhead
IPv4, no outer 802.1Q14208850 bytes
IPv4 with outer 802.1Q18208854 bytes
IPv614408870 bytes

For 1500-byte host frames the underlay IP MTU must be at least 1550 (IPv4) or 1570 (IPv6); most fabrics use 9216 on underlay links to leave room. RFC 7348 says VTEPs should not fragment VXLAN packets, so an undersized underlay drops them instead.

Identify VXLAN in a capture

tcpdump -ni eth0 udp port 4789

Wireshark decodes UDP 4789 as VXLAN automatically and shows the VNI, then the inner Ethernet frame. Check that the outer source/destination are the expected VTEP loopbacks and that the VNI matches the VLAN mapping on both sides.

Outer source port and ECMP

The outer UDP source port is derived from a hash of the inner headers, so different inner flows take different underlay ECMP paths. A capture where all VXLAN packets use the same source port means the inner traffic is one flow — or the VTEP does not add entropy, and one underlay link carries everything.

Security note

VXLAN has no authentication or encryption. Anyone who can send UDP 4789 to a VTEP can inject frames into a VNI; filter UDP 4789 at the fabric edge and use MACsec or IPsec on links that leave a trusted area.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

VXLAN header and overhead

HeaderBytes
Outer Ethernet14 (+4 with 802.1Q)
Outer IP20 (IPv4) / 40 (IPv6)
Outer UDP (dst port 4789)8
VXLAN (flags + 24-bit VNI)8

About 50 bytes extra on IPv4. Set underlay MTU to at least 1550, typically 9000–9216. The UDP source port is a hash of the inner flow, so ECMP spreads traffic.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 7348

Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → VXLAN → Encapsulation. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7348.html · confidence 94%
Confirmation

Confirm action

Continue?