What belongs to a tenant network

A network supplies Layer 2 connectivity. A subnet defines an IP range and related settings such as its gateway and address allocation. A port is a logical attachment that can carry a MAC address, fixed IP and security rules. A Nova instance’s virtual network interface attaches through that port. Multiple subnets can belong to one network. OpenStack Networking guide

The lecture shows two tenants using 10.0.0.0/24. Since their logical networks are separate, the same addresses do not conflict. DHCP can deliver the address settings to the guest. A virtual router can connect tenant subnets and can have a gateway toward the external network.

Trace the packet

Assume two VMs on the same tenant network run on different hosts. In the lecture’s overlay example the guest packet goes from 10.0.0.1 to 10.0.0.3. The source host switch encapsulates the tenant frame using VXLAN. The physical network sees an outer host-to-host packet, for example 20.1.1.1 → 20.1.1.2. The destination removes the outer headers and delivers the original frame in the matching tenant network. The overlay identifies which logical network owns the frame.

ML2, the Modular Layer 2 plugin, separates network segment types from the mechanisms that implement connectivity. VLAN tagging and VXLAN encapsulation are distinct ways to separate traffic. The underlay still needs working links, bandwidth and reachability.

From a private VM to outside

With outbound source NAT, a VM opens a connection and replies can follow the translation state. An unsolicited inbound connection lacks that existing mapping. A floating IP provides a reusable mapping from an external address to an internal port address. External routing, security group rules and a listening service still determine whether the connection succeeds. OpenStack floating IP resource

Retrieval

Two isolated projects both have a VM at 10.0.0.3. Why does VXLAN delivery still work? The receiving switch uses the overlay network identity as well as the inner addresses. Identical inner addresses can belong to different networks.

Source: Lecture 09 - OpenStack, printed slides 41–54. See Linux VM Networking - NAT Routed Bridged and Isolated.