Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Pending Publication Date: 2021-12-31
济南浪潮数据技术有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, the traffic needs to be replicated three times, and such a complex and hardware-dependent configuration requires that the source host port has a dedicated physical network port to be exclusively mirrored, and two switch ports are required to be responsible for port mirroring traffic forwarding. The port is exclusively occupied by the mirror
Such a configuration method and resource consumption are not feasible in practical applications.
Moreover, in the above-mentioned existing solutions, one or more source ports of port mirroring can be set, but only one destination port can be set
That is, port mirroring can only copy traffic on one port

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Distributed virtual switch port mirroring method and device and storage medium
  • Distributed virtual switch port mirroring method and device and storage medium
  • Distributed virtual switch port mirroring method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a distributed virtual switch port mirroring method and device and a storage medium. The method comprises the following steps: recording network information of a distributed network formed by a host machine, a virtual machine running on the host machine, a virtual switch and a physical switch connected with the host machine; monitoring the state of the virtual machine, wherein the state comprises startup, operation, shutdown, restart and migration; according to the collected state and network information of the virtual machine in the host machine, generating a port mirror image strategy according to port mirror image configuration formulated by a user; and issuing the port mirroring strategy to the corresponding host machine, and enabling the host machine to execute the port mirroring strategy to realize port mirroring in the host machine or across the host machines. According to the method, the vxlan tunnel between the host machines is utilized to realize port mirroring across the host machines; and according to the application, port mirroring in the host machine is realized by using the virtual switch running in the host machine. At least one destination port is supported to be configured for the source port, and more robust flow monitoring with redundancy can be provided.

Description

technical field [0001] The present application relates to the field of port mirroring, in particular to a method, device and storage medium for port mirroring of a distributed virtual switch. Background technique [0002] With the widespread application of cloud computing technology, various network functions are virtualized and play a role in the cloud computing network in a virtual form. In the cloud computing network, the virtual switches located in each host machine form a logical switch to provide a large and flexible distributed network for the virtual machines in the host machine. [0003] Port mirroring technology is originally a technology of a physical switch, that is, select one or more switch ports as the source port, copy the network traffic of the source port to the destination port, and connect the destination port to a device that analyzes the traffic to achieve For the purpose of traffic analysis, network monitoring and rapid fault location. [0004] In th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45595
Inventor 张兆增冯振
Owner 济南浪潮数据技术有限公司