VLAN concept: (Recommended learning: phpstorm)
Virtual Local Area Network means virtual local area network, which is The concepts involved in switch implementation are defined by the 802.1Q standard.
Since the switch is a network device that works at the link layer, terminals connected to the same switch are in the same three-layer network and are also in the same broadcast domain.
When the switch is connected to many terminals, when any terminal sends a broadcast message (for example: ARP request), the message will be spread throughout the entire network.
VXLAN concept:
Virtualextensible Local Area Network, virtual extended local area network.
One of the NVO3 standard technologies defined by IETF uses MAC-in-UDP message encapsulation mode. By encapsulating Layer 2 messages using Layer 3 protocols, the Layer 2 network can be expanded within the Layer 3 range to meet the needs of data centers. Large layer 2 virtual machine migration and multi-tenant requirements;
VXLAN technology can build a layer 2 virtual network based on the three-layer network structure. Through VLAN technology, network devices in different network segments can be integrated into the same logical link. In a link-layer network, to end users, these network devices appear to be "really" deployed in the same link-layer network.
The difference between vxlan and vlan:
vxlan supports more layer 2 networks
vlan uses 12 bits to represent vlan ID, so it supports up to 212=4094 vlan
The ID used by vxlan uses 24 bits, and can support up to 224
The existing network path utilization is more efficient
vlan uses the spanning tree protocol to avoid loops, which will block half of the network paths
vxlan's data packets are encapsulated into UDP and transmitted through the network layer, and all network paths can be used
Prevent physical switch Mac table exhaustion
vlan needs to record the Mac physical address in the switch's Mac table
vxlan uses a tunnel mechanism, and the Mac physical address does not need to be Recorded in switch
The above is the detailed content of The difference between vxlan and vlan. For more information, please follow other related articles on the PHP Chinese website!