GRE vs VXLAN
Compare generic Layer 3 tunneling with scalable network virtualization overlay.
| Dimension | GRE | VXLAN | What it means in practice |
|---|---|---|---|
| Payload | Commonly transports Layer 3 and multicast-capable passenger traffic. | Encapsulates Ethernet segments over UDP/IP. | Both depend on underlay reachability. |
| Identifier | Tunnel endpoint/config context. | 24-bit VNI identifies overlay segment. | VXLAN provides much larger segment namespace. |
| Use | Simple routed tunnels/overlays. | Data-center/campus fabric segmentation. | MTU and overlay troubleshooting apply to both. |
| Payload | Layer 3 packets (or Layer 2 with GRETAP). | Layer 2 Ethernet frames. | VXLAN extends Layer 2 segments across a routed underlay. |
| Header overhead | 24 bytes (outer IP + GRE). | About 50 bytes (outer Ethernet/IP/UDP + VXLAN). | Adjust MTU or MSS on the underlay accordingly. |
| Segment ID | Optional GRE key. | 24-bit VNI (about 16 million segments). | VNI scale is why VXLAN is used in data-centre fabrics. |