
The NSX architecture
VMware NSX building blocks enable us to implement a complete set of software-defined networking functions. Using the GUI, the RESTful API, or the CLI, we can create services like distributed logical switches and routers. Centralized services including BGP, OSPF, IPSec VPN, NAT, load balancing, DHCP, L2 bridging, and DNS are also available.
All of this is made possible by an architecture composed of three planes: Management, Control, and Data Plane. These planes run several different components such as services, databases, agents, and loadable kernel modules.
Understanding the NSX building blocks such as its planes, the related components, and their deployment, is crucial for implementing and configuring NSX effectively.
In this module, we’re going to cover the following main topics:
- Part 1:
- Part 2:
- Part 3:
- Part 4:
- Part 5:
- Part 6:
By the end of this first part of the module, you will understand the use cases for the different versions of the NSX Manager virtual appliances. Additionally, you will be able to enumerate the deployment prerequisites that must be satisfied for a successful implementation.
The NSX unified appliance
NSX Manager is an application that runs as an Ubuntu Linux-based virtual appliance. Deployed as a virtual machine, with a preinstalled operating system and software, we use it to administer our NSX environment. The NSX unified appliance is the one and only OVA (Open Virtualization Appliance) file that we need to download. It contains, in a local folder, all the source files we need to deploy the distributed and centralized components. It is called unified because the same source OVA file enables us to choose, at deployment time, between three possible different NSX Manager roles, which share most of the codebase, but implement different functionalities:
- NSX Manager: This is the typical and default role assigned to those nodes that are destined to manage a single NSX fabric in one location.
- NSX Global Manager: This role is required for NSX Federation to manage multiple NSX environments from a single pane of glass. With NSX Federation we can create logical segments, gateways and firewall rules that span across one or more location. It federates multiple NSX Local Managers, the name given to the NSX Managers in charge of a single location.
- NSX Cloud Service Manager: This role is used for integration with NSX Manager to provide public cloud-specific information to the management plane. It works with NSX deployments running onto public cloud service providers’ environments such as Amazon Web Services and Microsoft Azure.
An NSX Manager virtual appliance can run only one role at a time.
Implementation prerequisites
We shall not forget that NSX building blocks run on top of the VMware vSphere platform. As a result, ESXi hosts will provide the physical resources to run all NSX management, control and data plane components. Hence, we must run our NSX solution on a supported vSphere release.
Consequently, the starting point – when checking for the NSX prerequisites – is to verify the VMware’s Systems Compatibility Guide. It is located at https://www.vmware.com/resources/compatibility/search.php and constantly updated. The Systems / Servers section enables us to search for hosts, identified by manufacturer, model, and CPU series, supported by the desired vSphere release.
REMEMBER
Many of the ESXi hosts Purple Screen of Death (PSOD) related issues are caused by incompatible physical systems or components. Incompatibility typically involves unsupported hardware, but can also include firmware and related drivers.
To prepare for a successful NSX deployment, several additional prerequisites must be met.
Product interoperability
Products interoperability is a fundamental prerequisite to check each and every time we have to initially deploy or upgrade NSX. With this in mind, a very useful tool we can rely on is the VMware’s Interoperability Matrix located at https://interopmatrix.broadcom.com/.
At the time of writing, NSX 4.x supports vSphere 7.x and 8.x with subtle differences depending on the minor releases. Always double check the Interoperability Matrix for further details and requirements.
FEATURE DEPRECATION
NSX 4.0 does no longer support either KVM based hypervisors or OpenStack distributions from third-party vendors. Support for VMware Integration OpenStack (VIO) remains.
Hardware resources
Physical hosts have minimum CPU and memory requirements just to run the ESXi hypervisor on its own. vSphere 7.x and vSphere 8.x must have a bare minimum of 2 CPU cores and 8 GB of memory. However, this does not include the resources required to run any NSX virtual appliance and component.
NSX Managers and Edge Transport Nodes have different form factors: ESXi hosts that run them must support their resources demand. The larger the number of Host Transport Nodes in the NSX fabric, the bigger the Manager appliances form factor. The larger the number of centralized services implemented in the Edge Transport Nodes, the bigger their form factor.
NSX Host Transport Nodes – ESXi hosts that run NSX data plane components – require minimum 4 CPU cores and 16 GB of memory. These minimum quantities do not include the resources needed to run any user workload, such as virtual machines and containers.
Additionally consider that, in a production environment, all the NSX appliances typically require a highly available, fault-tolerant deployment. A highly available Management Cluster must be deployed in a three-node topology. Likewise, a highly available Edge Clusters comprise a minimum of one to a maximum of ten Edge Transport nodes. Moreover, the total number of Edge Clusters we may have per NSX fabric – maximum 160 – depends on several design decisions.
Given these points, it becomes clear that a thorough design process of the NSX building blocks is required to correctly size the physical compute resources.
Manager appliances sizing
The NSX Manager appliance form factor selection depends on the node role and the number of hypervisors we must support:
| Form Factor | Memory | vCPUs | Role | Hypervisors | Disk Space |
|---|---|---|---|---|---|
| Extra Small | 8 GB | 2 | Cloud Service Manager | N/A | 300 GB |
| Small | 16 GB | 4 | Non-production | N/A | 300 GB |
| Medium | 24 GB | 6 | Production (LM/GM)1 | ≤ 128 | 300 GB |
| Large | 48 GB | 12 | Production (LM/GM)1 | > 128 | 300 GB |
| Extra Large2 | 96 GB | 24 | Production (LM/GM)1 | > 128 | 300 GB |
1 LM = NSX Manager / NSX Local Manager | GM = NSX Global Manager.
2 The Extra Large form factor has been introduced in NSX 4.2.0 to provide support for increased distributed firewall scalability.
Edge Transport Nodes sizing
The NSX Edge Transport Nodes are Linux-based virtual appliances designed to run centralized services. Their form factor depends on the number of services configured and the throughput they must support.
| Form Factor | Memory | vCPUs | Disk Space | Services |
|---|---|---|---|---|
| Small | 4 GB | 2 | 200 GB | Proof-of-concept deployments only. |
| Medium | 8 GB | 4 | 200 GB | NAT, Routing, L4 firewall, L4 load balancer. Throughput ≤ 2 Gbps. |
| Large | 32 GB | 8 | 200 GB | NAT, Routing, L4 firewall, L4 & L7 load balancer, TLS Inspection. Throughput 2 ≤ x ≤ 10 Gbps. |
| Extra Large | 64 GB | 16 | 200 GB | L7 load balancer, VPN, TLS Inspection, L7 Access Profile (URL filtering), IDS/IPS, Malware prevention (Advanced Threat Protection). |
Host Transport Nodes sizing
Host Transport Nodes are physical hosts where the NSX loadable kernel modules and agents have been installed by an administrator. These data plane components enable the hosts to actively participate in the NSX logical fabric. NSX supports the following types of Host Transport Nodes:
- ESXi hosts:
- Run user workloads like VMs, virtual appliances, and containers.
- Supported ESXi versions: vSphere 7.x and vSphere 8.x.
- Minimum hardware requirements: 4 CPU cores, 16 GB of memory.
- Bare Metal servers:
- Run applications and containers on general-purpose OSes.
- Supported OSes: CentOS Linux, Red Hat Enterprise Linux (RHEL), Oracle Linux, SUSE Linux Enterprise Server, Ubuntu, and Windows Server. Look for the supported OS versions in the release notes.
- Minimum hardware requirements: 4 CPU cores, 16 GB of memory.
FEATURE DEPRECATION
End of Support of Overlay on Physical Servers:
- NSX supports the deployment of NSX agents on physical servers to provide security and overlay connectivity.
- VMware no longer supports overlay connectivity for physical servers in the NSX 4.2.0 release.
- Security for physical servers remains fully supported, with VLAN connectivity only. The corresponding NSX API parameters are marked with a “deprecated” label in the NSX API Guide.
- VMware recommends that new NSX physical server deployments take advantage of Edge bridging to provide L2 connectivity to overlay segments.
Other hardware requirements
Network cards may offer offloading functions to improve the overall NSX performances:
- GENEVE offload: Network cards supporting TCP Segmentation Offload (TSO) and Large Receive Offload (LRO), as well as jumbo frames (MTU 9000), will improve the performances of applications with elephant flows by reducing the overhead on the TCP stack. Furthermore, GENEVE Rx / Tx Filters, which are a smarter version of Receive-Side Scaling (RSS), queue flows based on insights into traffic flows.
- NSX provides three Datapath options:
- Standard Datapath: Enabled by default, it fits most use cases.
- Enhanced Datapath: A DPDK-like traffic processing mode, that provides performance optimization to latency-sensitive applications. It does require physical NIC support.
- SmartNICs: Traffic processing is offloaded entirely to the Data Processing Unit (DPU), a special network interface card with a built-in Arm processor. Physical host CPU utilization for network traffic is reduced close to zero, this way freeing up compute resources for user workloads.
Network latency is a fundamental aspect to ensure successful communication between components:
- The maximum network latency between NSX Management cluster nodes is 10ms.
- Latency between NSX Management cluster and NSX Transport Nodes must not exceed 150ms.
Ports and protocols must be configured on physical firewalls before deployment begins:
- A comprehensive list of all required port and protocol pairs necessary for components communication across nodes can be found at https://ports.vmware.com/home/NSX. The portal also lists the ports needed to access shared network services.
Certificates ensure secure communication between components:
- By default, all certificates are self-signed. Nevertheless, GUI and API certificates can be replaced by corporate or commercial Certificate Authority-signed certificates.
Disk latency can affect NSX appliances performances:
- The average disk access latency on the target datastore(s) should be less than 10ms.
Shared network services
Like every other VMware product, NSX needs DNS resolution and NTP synchronization. NSX may also authenticate users from external sources using multiple options.
- DNS resolution: All nodes must be added to both forward and reverse zones, and DNS server shall reply to both short and long name queries.
- NTP synchronization: All nodes must synchronize from the same source of time for proper node-to-node secure communication and log correlation.
- Identity Sources / Identity Providers: NSX can authenticate external users either via integrated support for Microsoft Active Directory and OpenLDAP only. Enterprise Single-Sign-On functionality can be provided by the VMware Workspace ONE Access (formerly known as VMware Identity Manager) virtual appliance. Alternatively, authentication can be provided from a compliant Identity Provider via the OpenID Connect (OIDC) authentication layer on top of the OAuth2 protocol.
Continue to Part 2…
In Part 1 of this Exploring NSX Building Blocks module we have examined all the prerequisites we must satisfy for a successful NSX deployment. Continue to the second part of this module to discover the converged Management and Control Plane, where the NSX Management Cluster lives.
