VCF Packet Flow Visualizer

Short answer: the VCF packet flow visualizer follows one packet through VMware Cloud Foundation 9 networking, hop by hop. Pick a flow, press Play, and watch the packet leave a VM, pass the distributed firewall, cross the host switch, travel in Geneve between two tunnel endpoints and go through the distributed and service routers of the gateways. Every hop says where it happens, which lookup decides the next step, what changes in the headers and where to look when it breaks. Nine flows cover classic NSX segments with Tier-0 and Tier-1 gateways and the VPC model of VCF 9 with centralized and distributed transit gateways.

Prefer a full window? Open the visualizer full screen →

The nine VCF packet flows

  • Same segment, same host. Two VMs on one segment and one host: the frame is switched in the kernel and never reaches a tunnel endpoint (TEP) or the physical network. The distributed firewall still checks it at both vNICs.
  • Same segment, two hosts. The host finds the destination MAC behind another TEP and wraps the frame in Geneve (UDP 6081) with the segment’s VNI. The physical network only sees the outer header, which is why the TEP network needs at least 1600 bytes of MTU, 1700 recommended.
  • Routed by the distributed router. The Tier-1 distributed router on the source host does the routing, so the packet crosses the underlay already on the destination segment’s VNI. The reply is routed on the other host.
  • North-south out through the Tier-0. Tier-1 and Tier-0 distributed routers on the host, Geneve to an edge node, the Tier-0 service router and BGP to the top-of-rack switches.
  • Inbound through DNAT on a Tier-1. A public address that exists only as a NAT rule: the Tier-1 service router on the edge translates it, the gateway firewall checks it, and Geneve carries it to the VM.
  • VLAN workload to an overlay VM. A physical server on a VLAN reaches an overlay segment through its ToR gateway, BGP and an edge node.
  • VPC to VPC in one project. Private transit gateway subnets of two VPCs talk without NAT; both VPC gateways and the transit gateway route on the source host.
  • VPC out through a centralized transit gateway. A private VPC subnet with default outbound NAT: the VPC gateway’s service router translates the source on the edge, the transit gateway and Tier-0 service routers take it out.
  • VPC out through a distributed transit gateway. No edges at all: an external IP is a 1:1 NAT done on the host, and the packet leaves on the external VLAN without Geneve.

How to read a VCF packet flow in the visualizer

  • The drawing is the physical view: two ESX hosts, two NSX Edge nodes, the ToR switches and the underlay. Blue lines run inside a host or an edge, purple dashed lines are Geneve on the underlay, orange dotted lines are plain VLAN frames. The strip under it is the logical path you would see in the NSX UI.
  • Packet at this hop shows the inner and outer headers: VLAN tag, outer TEP addresses, UDP port and VNI, inner MAC and IP, TTL and ports. A field that changed at this hop is highlighted.
  • Firewall and NAT points are marked on the drawing and in the hop list: DFW at the vNICs, the gateway firewall on service routers, NAT where the address changes.
  • Where to look gives the troubleshooting step for the hop: Traceflow, pktcap-uw capture points, nsxcli tables on the host, the edge CLI, the ToR. Related vDan tools open the ports, firewall rules, architecture figure or limits the hop depends on.
  • Links and keys. Copy link gives a URL such as ?flow=routed-dr&step=5 that opens one hop of one flow. Markdown exports the whole flow as a table. Keys: Space plays and pauses, the arrows step, Home restarts, the square brackets switch the flow. On a phone the drawing follows the packet.

Every name and address belongs to an invented lab, lab.vdan.cz, with the same naming pattern as the VCF JSON Builder: hosts vdan-w01-esx01.lab.vdan.cz and esx02, edges vdan-w01-en01 and en02, host TEPs on VLAN 60 and the external VLAN 70 for the distributed transit gateway. The full list is in the tool under “The lab used in every flow”.

Frequently asked questions about VCF packet flow

Where is routing done for east-west traffic in NSX?

On the host where the packet starts. Every host runs a distributed router (DR) instance of each gateway in its kernel, so the source host routes the packet and sends it over Geneve already on the destination segment. The edge nodes are not involved unless the gateway has stateful services on a service router.

Does a VPC need NSX Edge nodes in VCF 9?

Only with a centralized transit gateway, which runs a service router on the edge cluster next to the Tier-0. A distributed transit gateway needs no edges: each host forwards its VPC traffic straight onto an external VLAN, and external IPs are a stateless 1:1 NAT on the host. VCF 9.1 adds Virtual Network Appliance clusters for stateful services on a distributed transit gateway.

What MTU does the Geneve overlay need?

Geneve adds about 50 bytes of outer headers. NSX needs at least 1600 bytes on the TEP network, 1700 is recommended, and 9000 where the fabric supports it. Keep the VM side about 200 bytes below the TEP MTU.

Where is the distributed firewall applied?

At the vNIC of every VM, in the ESX host kernel. A packet between two VMs is checked when it leaves the source vNIC and again when it enters the destination vNIC, even on the same host. The gateway firewall is different: it runs on the service router of a Tier-0, Tier-1, VPC or transit gateway on the edge.

Is this an official Broadcom tool?

No. It is a free vDan teaching model of the VCF datapath, written in my own words from the public VMware Cloud Foundation documentation and the VCF Virtual Networking Technical Reference. To check a real flow in your environment, use Traceflow in NSX Manager.

Related vDan tools for VCF network planning

The architecture around each flow, the ports and firewall rules it needs, the CLI to troubleshoot it and the limits of the gateways it passes.

Sources