Book Image

VMware NSX Cookbook

By : Bayu Wibowo, Tony Sangha
Book Image

VMware NSX Cookbook

By: Bayu Wibowo, Tony Sangha

Overview of this book

This book begins with a brief introduction to VMware's NSX for vSphere Network Virtualization solutions and how to deploy and configure NSX components and features such as Logical Switching, Logical Routing, layer 2 bridging and the Edge Services Gateway. Moving on to security, the book shows you how to enable micro-segmentation through NSX Distributed Firewall and Identity Firewall and how to do service insertion via network and guest introspection. After covering all the feature configurations for single-site deployment, the focus then shifts to multi-site setups using Cross-vCenter NSX. Next, the book covers management, backing up and restoring, upgrading, and monitoring using built-in NSX features such as Flow Monitoring, Traceflow, Application Rule Manager, and Endpoint Monitoring. Towards the end, you will explore how to leverage VMware NSX REST API using various tools from Python to VMware vRealize Orchestrator.
Table of Contents (19 chapters)
Title Page
Packt Upsell
Foreword
Contributors
Preface
Index

Configuring Load Balancing


Load balancing is a complex network task that is typically performed by a physical network infrastructure; however, NSX can provide a software-based approach to load balancing. The load balancing features provided by the ESG are feature-rich; the edge supports both layer 4 (Accelerated Virtual Server) and layer 7 (Full Proxy Virtual Server) load balancing engines. Some of the features that the edge load balancing feature set provides are as follows:

  • Layer 4 protocols: TCP/UDP
  • Layer 7 protocols: HTTP/HTTPS
  • SSL termination with AES-NI acceleration
  • Health checks for TCP/UDP and HTTP/HTTPS
  • Persistence
  • URL rewrite and redirection
  • The load balancing algorithms supported are as follows:
    • Weighted Round Robin
    • IP hash
    • URI
    • Least connection

This list is not exhaustive but is included with the most commonly used features for your reference. In addition, NSX supports two deployment models, inline and one-armed mode (also known as proxy mode); for the purposes of the recipe, we will configure...