Distributed virtual switch port mirroring method and device and storage medium
A technology of virtual switch and port mirroring, which is applied in the direction of program control device, software simulation/interpretation/simulation, program control design, etc. It can solve the problems that only one destination port can be set, is complicated and infeasible, and achieves the goal of saving computing resources Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] An embodiment of the present application provides a method for port mirroring of a distributed virtual switch. This method is applied to a distributed network composed of hosts, network cards, physical switches, and virtual switches and virtual machines in the host, such as figure 1 shown, figure 1 Provides a simple distributed network.
[0055] refer to figure 2 As shown, the method for port mirroring of the distributed virtual switch includes:
[0056] S100, recording the network information of the distributed network formed by the host, the virtual machine running on the host, the virtual switch, and the physical switch connected to the host; in the specific implementation process, by constructing a master control node on at least one host, The master control node records the network information of each host in the distributed network, the virtual machines and virtual switches running on the host, and the physical switches connected to the host. The network info...
Embodiment 2
[0085] refer to Figure 4 As shown, the embodiment of the present application provides an apparatus for implementing port mirroring of a distributed virtual switch, including:
[0086] A monitoring module, the monitoring module is used to collect the running status of the host machine, the virtual machine running on the host machine, the virtual switch, and the physical switch connected to the host machine.
[0087] A network information management module, the network information management module is used to record and update the network information of the distributed network formed by the host, the virtual machine running on the host, the virtual switch, and the physical switch connected to the host.
[0088] Configuration module, the configuration module is used for users to make port mirroring configuration.
[0089] A policy building module, the policy building module generates a corresponding first port mirroring policy or a second port mirroring policy according to the ...
Embodiment 3
[0094] An embodiment of the present application provides a storage medium for implementing a method for port mirroring of a distributed virtual switch. The storage medium of the method for realizing port mirroring of a distributed virtual switch stores at least one instruction, and the instruction is read and executed to realize the method for port mirroring of a distributed virtual switch.
[0095]This application generates the corresponding port mirroring policy according to the port mirroring configuration, network information, and the state of the virtual machine, and sends the port mirroring policy to the corresponding host machine and physical switch, so as to realize the traffic mirroring of the source port to the destination port.
[0096] This application builds a vxlan tunnel between the hosts through a physical switch to realize cross-host port mirroring. The tunnel end point of the vxlan tunnel is set on the host machine. The vxlan tunnel is only visible to the tun...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


