# Virtual Networking
## What is Virtual Networking
Virtual networking is the process of creating a software-based network infrastructure that replicates the functionality of physical network hardware. Virtual networks allow network administrators to build, manage, and operate networks entirely in software without physical devices. Virtual networking is fundamental to cloud computing, data centers, and virtualized environments. It allows multiple logical networks to share the same physical infrastructure while remaining isolated from each other.
## Network Virtualization
Network virtualization abstracts physical network hardware and creates virtual versions of switches, routers, firewalls, and load balancers. These virtual network functions can be created, configured, and deleted through software without touching any physical hardware. Network virtualization allows rapid provisioning of new networks, easier management, better resource utilization, and the ability to run multiple isolated networks on the same physical infrastructure.
## Virtual Switches
A virtual switch is a software-based Ethernet switch that operates within a hypervisor, connecting virtual machines to each other and to the physical network. When a virtual machine sends a packet, the virtual switch makes a forwarding decision just like a physical switch, directing the packet to the appropriate destination. Virtual switches support VLANs, security policies, and traffic monitoring just like physical switches. VMware vSwitch and the Linux Bridge are examples of virtual switches.
## Hypervisor Networking
In a virtualized server environment running a hypervisor like VMware ESXi, Hyper-V, or KVM, each virtual machine has one or more virtual network interface cards. These virtual NICs connect to virtual switches within the hypervisor. The virtual switches then connect to the physical NICs of the host server, providing connectivity to the physical network. This arrangement allows many virtual machines to share the physical network interfaces of a single server.
## Overlay Networks
Overlay networks create virtual networks on top of an existing physical network infrastructure. VXLAN, which stands for Virtual Extensible LAN, is a widely used overlay technology that encapsulates Layer 2 Ethernet frames within Layer 3 UDP packets. This allows Layer 2 networks to be extended across Layer 3 boundaries, which is important in large data centers where virtual machines need to communicate as if they are on the same Layer 2 network even though they are physically located on different servers or racks. GENEVE and NVGRE are other overlay protocols with similar purposes.Back to Subject