NSX

What is VMware NSX VXLAN

What is VMware NSX VXLAN? We look at the encapsulation technology used by VMware NSX to create logical switches to overlay physical networks

In today’s world, resources are virtualized and abstracted from the underlying physical hardware. ย We see this in the world of hypervisors including compute, storage, and networks. ย VMware’s NSX allows for the network to be abstracted from the underlying physical network hardware and it does this by using VXLAN. ย In the context of VMware vSphere – What is VMware NSX VXLAN?

What is VMware NSX VXLAN?

First, for a little background. ย VXLAN stands for Virtual Extensible LAN that allows running an overlay logical network on top of existing physical infrastructure using a layer 3 network.ย  In the context of VMware NSX, VXLAN is the technology that creates the NSX overlay network.ย  In traditional networks, layer 2 VLANs are used in conjunction with layer 3 subnets to create boundaries between different networks.ย  This adds quite a bit of complexity to configurations made to physical network infrastructure.ย  Switch ports have to be tagged and trunk ports configured to carry traffic from multiple VLANS.

In todayโ€™s networks, organizations more times than not need to move at a rapid pace which may require a good deal of network reconfiguration.ย  The time and complexity required to change configurations on physical infrastructure just isnโ€™t feasible to keep up with and maintain agility for most organizations.ย  This problem is solved with network overlay technology implemented by productโ€™s such as VMwareโ€™s NSX that utilizes the capabilities of VXLAN to create new network topologies with existing physical infrastructure.

Traditional VLAN technology is limited to 4000 different VLANs.ย  While that may sound like a limit that would never be reached, many large organizations will hit this limit.ย  VXLAN essentially removes the limits of 4000 VLANs and moves this limit to 16 million networks.ย  This is accomplished through the use of VXLAN VNI (VXLAN Network Identifier).ย  This is a 24 bit number that designates the logical segment that the encapsulated frame belongs in. ย The encapsulation adds length to the MTU size of the ethernet frame. ย VMware recommends a jumbo frame size of 1600 bytes to ensure proper sizing to include the encapsulation.

VMware NSX Segment IDs and Logical Switches

VMware’s implementation of VXLAN in NSX comes in the form of logical switches. ย The logical switches use VXLAN to create a “virtual wire” network between ESXi hosts. ย The Logical switch uses theย segment IDย pool which is the way VMware presents the VNIs for consumption to logically separate out one logical switch from another. ย Transport zones define the scope of the virtual networks between clusters.

You configure your VNI’s or segment IDs of your NSX installation under theย Networking andย Security >> Installationย >> Logical Network Preparation >> Segment IDย of the web client.

Logical-Network-Separation-Segment-IDs
Logical Network Separation Segment IDs

Transport zones tell us which clusters virtual machines can participate in a certain logical network.

VMware-NSX-Transport-Zone
VMware NSX Transport Zone

As we can see below, when looking at the properties of the Transport zone, we see the cluster that is a member of the transport zone allowing it to participate in the logical network.

Transport-Zone-Cluster-configuration
Transport Zone Cluster configuration

When we create a logical switch, we can choose which transport zone a logical switch is defined on. ย We can see form this how we can affect which clusters would be able to participate in various logical networks.

Creating-a-new-VMware-NSX-Logical-Switch
Creating a new VMware NSX Logical Switch

Unicast vs Hybrid vs Multicast

There are three modes that can be configured with logical swithces – Unicast, Hybrid, and Multicast. ย Each have their advantages and disadvantages.

  • Unicast – simplest but the least efficient, good for pilots and POCs, works basically anywhere. ย It requires no changes to the physical network hardware.
  • Hybrid – Utilizes some of both Unicast and Multicast. ย Host sends the packet VXLAN encapsulation in unicast mode and the switches rebroadcast this out to destinations. ย Let’s the network do a lot of the packet replication for the broadcasts, etc.
  • Multicast – Most efficient, but you have to enable IGMP snooping on switches, etc so requires more physical switch configuration changes. ย This may not be the best mode just getting started with a POC.

Additionally, you can start out with one mode and choose a different mode later. ย It isn’t a burn down everything and start over affair to change to a different mode later.

Thoughts

VXLAN is arguably the most popular method for network overlay technology today. ย If you have ever wondered what is VMware NSX VXLAN, hopefully this quick run through helps to show VMware’s implementation of VXLAN through the use of logical switches. ย VMware NSX is a powerful network virtualization platform that helps to make organizations extremely agile and efficient with quick network creation and implementation.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.