Traffic control method, device and storage medium based on security service chain
By creating a serial connection between a traffic-driving secure switch and a secure virtual machine in the security service chain, the traffic flow path is controlled, and the problem of low transmission efficiency of service virtual machines in the existing technology is solved, and more efficient service traffic transmission is achieved.
Patent Information
- Application Number
- CN202310066201.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-16
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-01-16
AI Technical Summary
In the prior art, security service chain solutions based on NSH protocol require modification of the cloud platform and various security products, resulting in increased development work and costs, and low service traffic transmission efficiency, and failure to effectively solve the service virtual machine. Transmission efficiency issues during business interaction.
By creating a security service chain configured by the target user, using the drainage security switch and the secure virtual machine for serial connection, the traffic flow path is controlled, and the modification of packets is avoided, and it flows directly to the second service virtual through the serial flow path. simplifies the traffic transmission path.
It improves the efficiency of business traffic transmission generated by business virtual machines during business interaction, solves the problem of low transmission efficiency, and reduces the additional network protocol requirements for secure service virtual machines.
Smart Images

Figure CN116055412B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a flow control method, device and storage medium based on a security service chain. Background Art
[0002] With the popularization of cloud computing, the network security of virtual machines has received more and more attention. A single security protection product can no longer meet customer needs. It is often necessary to string security protection products from various manufacturers into a security service chain to provide all-round protection.
[0003] However, currently common security service chain solutions are all based on the Network Service Header (NSH). This requires cloud platforms and security products from various vendors in the service chain to be able to modify messages based on the NSH protocol standard, which undoubtedly increases the secondary development work of existing security products. Existing technologies also deploy traffic classification controllers, requiring all diverted traffic to pass through the traffic classification controller for message modification. This not only adds additional costs but also creates throughput bottlenecks, resulting in low transmission efficiency of business traffic.
[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0005] The embodiments of the present invention provide a flow control method, device and storage medium based on a secure service chain, so as to at least solve the technical problem in the prior art that the business traffic generated by business virtual machines during business interaction has low transmission efficiency during the transmission process.
[0006] According to one aspect of an embodiment of the present invention, a traffic control method based on a security service chain is provided, comprising: creating at least one drainage security switch based on a security service chain configured by a target user, wherein the security service chain includes at least one security virtual machine, each drainage security switch is connected to the security virtual machine corresponding to the drainage security switch, the security virtual machine is used to perform security monitoring on the business traffic generated when a first business virtual machine and a second business virtual machine perform business interaction, the first business virtual machine is used to process business data corresponding to the target user, the second business virtual machine is used to process business data corresponding to other users, and the other users are users other than the target user, and the drainage security switch is used to control the business traffic to flow through the security virtual machine; when the first business virtual machine and the second business virtual machine perform business interaction, the first business virtual machine, at least one drainage security switch and the security virtual machine corresponding to each drainage security switch are serially connected to obtain a flow path of the business traffic, wherein each security virtual machine is connected to the trunk network of the drainage security switch corresponding to the security virtual machine, and the trunk network range is the trunk network of all VLANs; based on the flow path, the business traffic is controlled to flow to the second business virtual machine.
[0007] Furthermore, when the first business virtual machine interacts with the second business virtual machine, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic, including: determining the initial network information of the network card corresponding to the first business virtual machine based on the first business virtual machine, wherein the initial network information is the virtual LAN identity corresponding to the first business virtual machine; modifying the initial network information to the target network information, wherein the target network information is the virtual LAN identity corresponding to the first drainage security switch, and the first drainage security switch is the drainage security switch corresponding to the first security virtual machine through which the business traffic flows; based on the target network information, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic.
[0008] Furthermore, based on the target network information, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic, including: obtaining the business switch, wherein at least one security virtual machine is connected to the trunk network of the business switch, the trunk network range is the trunk network of all VLANs, the business switch is connected to the second business virtual machine, and the initial network information of the network card corresponding to the second business virtual machine is the same as the initial network information of the network card corresponding to the first business virtual machine; based on the target network information, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic.
[0009] Furthermore, based on the flow path, the business traffic is controlled to flow to the second business virtual machine, including: when controlling the business traffic to flow through the first security virtual machine based on the flow path, determining the target network information corresponding to the communication message contained in the business traffic, wherein the first security virtual machine is the last security virtual machine through which the business traffic flows; restoring the target network information corresponding to the communication message to the initial network information; and controlling the business traffic to flow to the second business virtual machine based on the initial network information.
[0010] Furthermore, based on the security service chain configured by the target user, at least one diversion security switch is created, including: obtaining at least one target information, wherein the target information at least includes the name of the security virtual machine and the network card information corresponding to the security virtual machine interface; obtaining at least one security virtual machine based on the at least one target information, and connecting the at least one security virtual machine to the security service chain, wherein each security virtual machine corresponds to one target information; and creating at least one diversion security switch based on the at least one security virtual machine.
[0011] Furthermore, the traffic control method based on the security service chain also includes: monitoring the health status of each security virtual machine; when an abnormality occurs in the second security virtual machine, connecting the drainage security switch corresponding to the second security virtual machine with the second drainage security switch based on the preset virtual device interface to obtain a first flow path, wherein the second drainage security switch is the drainage security switch corresponding to the third security virtual machine, and the third security virtual machine is the security virtual machine to which the business traffic flows after passing through the second security virtual machine; based on the first flow path, controlling the business traffic to flow to the second business virtual machine.
[0012] Furthermore, the traffic control method based on the security service chain also includes: when the security virtual machine is a fourth security virtual machine, connecting the fourth security virtual machine to the service switch, wherein the fourth security virtual machine is a security virtual machine accessed in bypass mode, and the bypass mode is used to securely identify the service traffic; and performing security detection on the service traffic based on the fourth security virtual machine.
[0013] According to another aspect of an embodiment of the present invention, a traffic control device based on a security service chain is also provided, including: a creation module, configured to create at least one diversion security switch based on a security service chain configured by a target user, wherein the security service chain includes at least one security virtual machine, each diversion security switch is connected to a security virtual machine corresponding to the diversion security switch, the security virtual machine is configured to perform security monitoring on the service traffic generated when a first business virtual machine and a second business virtual machine perform service interaction, the first business virtual machine is configured to process service data corresponding to the target user, the second business virtual machine is configured to process service data corresponding to other users, where the other users are users other than the target user, and the diversion security switch is configured to control the service traffic to flow through the security virtual machine; a connection module, configured to serially connect the first business virtual machine, at least one diversion security switch, and the security virtual machine corresponding to each diversion security switch when the first business virtual machine and the second business virtual machine perform service interaction, to obtain a flow path for the service traffic, wherein each security virtual machine is connected to a trunk network of the diversion security switch corresponding to the security virtual machine, and the trunk network range is the trunk network of all VLANs; and a control module, configured to control the service traffic to flow to the second business virtual machine based on the flow path.
[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned traffic control method based on the security service chain when running.
[0015] According to another aspect of an embodiment of the present invention, an electronic device is also provided, which includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned traffic control method based on the security service chain during runtime.
[0016] In an embodiment of the present invention, a first business virtual machine, at least one diversion security switch, and a security virtual machine corresponding to each diversion security switch are serially connected. First, at least one diversion security switch is created through a security service chain configured based on a target user. The security service chain includes at least one security virtual machine. Each diversion security switch is connected to a security virtual machine corresponding to the diversion security switch. The security virtual machine is used to securely monitor business traffic generated when the first business virtual machine and the second business virtual machine interact with each other. The first business virtual machine is used to process business data corresponding to the target user, and the second business virtual machine is used to process business data corresponding to other users, where the other users are users other than the target user. The diversion security switch is used to control business traffic to flow through the security virtual machine. Then, when the first business virtual machine and the second business virtual machine interact with each other, the first business virtual machine, the at least one diversion security switch, and the security virtual machine corresponding to each diversion security switch are serially connected to obtain a flow path for business traffic. Each security virtual machine is connected to a trunk network of the diversion security switch corresponding to the security virtual machine, and the trunk network range is the trunk network of all VLANs. Finally, based on the flow path, business traffic is controlled to flow to the second business virtual machine.
[0017] In the above process, by serially connecting at least one security virtual machine and the drainage security switch corresponding to each security virtual machine with the first business virtual machine corresponding to the target user, a flow path is obtained. There is no need for the security service virtual machine to support additional network protocols, and there is no need to modify the messages contained in the business traffic. The business traffic can flow directly to the second business virtual machine through the serial flow path, which solves the problem of flow control through a traffic classification controller in the existing technology. Since all drainage traffic needs to pass through the traffic classification controller to modify the messages, there is a throughput bottleneck, resulting in low transmission efficiency of the business traffic during the transmission process.
[0018] It can be seen that through the technical solution of the present invention, the purpose of controlling the flow of business traffic to the second business virtual machine based on the flow path is achieved, thereby realizing the technical effect of improving the transmission efficiency of the business traffic generated by the business virtual machine during business interaction during the transmission process, and thus solving the technical problem of low transmission efficiency of the business traffic generated by the business virtual machine during business interaction in the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 is a schematic diagram of a flow control method based on a security service chain according to an embodiment of the present invention;
[0021] Figure 2 is a schematic diagram of an optional flow control based on a security service chain according to an embodiment of the present invention;
[0022] Figure 3 is a flow chart of an optional flow control method based on a security service chain according to an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of an optional flow control device based on a security service chain according to an embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display and analysis, etc.) involved in the present invention are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0028] Example 1
[0029] According to an embodiment of the present invention, an embodiment of a traffic control method based on a security service chain is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] Figure 1 is a schematic diagram of an optional flow control method based on a security service chain according to an embodiment of the present invention, such as Figure 1 As shown, the method includes the following steps:
[0031] Step S102: Create at least one drainage security switch based on the security service chain configured by the target user, wherein the security service chain includes at least one security virtual machine, each drainage security switch is connected to the security virtual machine corresponding to the drainage security switch, and the security virtual machine is used to perform security monitoring on the business traffic generated when the first business virtual machine and the second business virtual machine interact with each other. The first business virtual machine is used to process the business data corresponding to the target user, and the second business virtual machine is used to process the business data corresponding to other users. The other users are users other than the target user. The drainage security switch is used to control the business traffic to flow through the security virtual machine.
[0032] In step S104, when the first business virtual machine and the second business virtual machine perform business interaction, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic, wherein each security virtual machine is connected to the trunk network of the drainage security switch corresponding to the security virtual machine, and the scope of the trunk network is the trunk network of all VLANs.
[0033] Step S106: Based on the flow path, control the service traffic to flow to the second service virtual machine.
[0034] Based on the scheme defined in the above steps S102 to S106, it can be known that in an embodiment of the present invention, a method of serially connecting the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch is adopted. First, at least one drainage security switch is created through a security service chain configured based on the target user, wherein the security service chain includes at least one security virtual machine, each drainage security switch is connected to the security virtual machine corresponding to the drainage security switch, and the security virtual machine is used to perform security monitoring on the business traffic generated when the first business virtual machine and the second business virtual machine interact with each other, and the first business virtual machine is used to process the business data corresponding to the target user. According to the data, the second business virtual machine is used to process business data corresponding to other users, and other users are users other than the target user. The drainage security switch is used to control the business traffic to flow through the security virtual machine; then when the first business virtual machine and the second business virtual machine perform business interaction, the first business virtual machine, at least one drainage security switch and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic, wherein each security virtual machine is connected to the trunk network of the drainage security switch corresponding to the security virtual machine, and the range of the trunk network is the trunk network of all VLANs; finally, based on the flow path, the business traffic is controlled to flow to the second business virtual machine.
[0035] It is easy to notice that in the above process, by serially connecting at least one security virtual machine and the drainage security switch corresponding to each security virtual machine with the first business virtual machine corresponding to the target user, a flow path is obtained. There is no need for the security service virtual machine to support additional network protocols, and there is no need to modify the messages contained in the business traffic. The business traffic can flow directly to the second business virtual machine through the serial flow path, which solves the problem of flow control through a traffic classification controller in the existing technology. Since all drainage traffic needs to pass through the traffic classification controller to modify the messages, there is a throughput bottleneck, resulting in low transmission efficiency of the business traffic during the transmission process.
[0036] It can be seen that through the technical solution of the present invention, the purpose of controlling the flow of business traffic to the second business virtual machine based on the flow path is achieved, thereby realizing the technical effect of improving the transmission efficiency of the business traffic generated by the business virtual machine during business interaction during the transmission process, and thus solving the technical problem of low transmission efficiency of the business traffic generated by the business virtual machine during business interaction in the existing technology.
[0037] In step S102, the security service chain configured by the target user is a service chain composed of multiple security virtual machines, which is used to securely monitor the business traffic generated when the first business virtual machine that processes the business data of the target user and the second business virtual machine that processes the business data of users other than the target user perform business interactions. For example, an enterprise deploys a security service chain composed of security virtual machines of multiple security vendors on its own private cloud platform to provide all-round protection for the business traffic of the business virtual machines.
[0038] Optionally, in this embodiment, the system creates at least one traffic diversion security switch based on the security service chain configured by the target user, wherein each security virtual machine is connected to the traffic diversion security switch corresponding to the security virtual machine.
[0039] Optionally, a trunk network with a range of all VLANs is created for each traffic diversion security switch, for example, a trunk network of type fw_vswitch1_net_trunk_4095. Optionally, a net_3xxx network (with a VLAN ID of 3xxx) is created for traffic diversion based on the first traffic diversion security switch in the security service chain, for example, net_3000. If a service VM's NIC is diverted, a net_3xx network is created, with different VLAN IDs.
[0040] Furthermore, the system obtains at least one target information, wherein the target information includes at least the name of the security virtual machine and the network card information of the security virtual machine; obtains at least one security virtual machine based on the at least one target information, and connects the at least one security virtual machine to the security service chain, wherein each security virtual machine corresponds to one target information; and creates at least one diversion security switch based on the at least one security virtual machine.
[0041] Optionally, the system obtains at least one target information, such as the name of the security virtual machine and the information of the network card number of the input / output interface, and then obtains the security virtual machine corresponding to each target information based on the target information, connects the security virtual machine corresponding to each target information to the security service chain, and creates a drainage security switch corresponding to the security virtual machine based on each security virtual machine.
[0042] Optionally, when the target user wants to add a new security virtual machine to the security service chain, he only needs to enter the name of the security virtual machine and the information of the network card number of the inbound / outbound interface based on the management platform. Based on the above information, the system will connect the corresponding security virtual machine to the service chain and create a corresponding drainage security switch for the security virtual machine.
[0043] It should be noted that by connecting the corresponding security virtual machine to the service chain based on the name of the security virtual machine and the information of the network card of the in / out interface, and creating a drainage security switch corresponding to the security virtual machine, the management platform can issue configuration tasks through the cloud platform API to connect the network card of the in / out interface of the security virtual machine to the corresponding drainage network, preparing for the subsequent generation of the flow path of business traffic, thereby improving the accuracy of the flow path of business traffic.
[0044] In step S104, Figure 2 As shown, in the prior art, when the first service virtual machine GVM1 and the second service virtual machine GVM2 interact with each other, GVM1 and GVM2 are in the same VLAN network of the same G-vSwitch service switch, whose VLAN ID is 10, and they are interconnected at Layer 2. GVM1 traffic is transmitted through the uplink of host HOST1 (i.e., the IoT card), and then transmitted to the uplink of host HOST2 through the physical switch. HOST2 then forwards the traffic to GVM2. Among them, each HOST will deploy security virtual machines SVMs of various security vendors, such as SVM1, SVM2, and SVMn.
[0045] In this embodiment, when the first business virtual machine and the second business virtual machine interact with each other, the system obtains the flow path of the business traffic by serially connecting the first business virtual machine, at least one diversion security switch, the security virtual machine corresponding to each diversion security switch, and the business switch. Optionally, the first business virtual machine and the second business virtual machine are connected to the same VLAN network of the business switch, and the VLAN ID is 10. For example, Figure 3As shown, when the first business virtual machine GVM1 interacts with the second business virtual machine GVM2 for business, GVM1 is connected to the first drainage security switch FW-vSwitch1. There is a network fw_vswitch1_net_trunk_4095 on FW-vSwitch1 (that is, the trunk network covering all VLANs). Then, the inbound interface of the first security virtual machine SVM1 is connected to FW-vSwitch1 and connected to the fw_vswitch1_net_trunk_4095 network. The outbound interface of SVM1 is connected to the drainage security switch FW-vSwitch2 corresponding to the second security virtual machine SVM2 and connected to the fw_vswitch2_net_trunk_4095 network. Connect the inbound interface of the second security VM, SVM2, to FW-vSwitch2. Similarly, the outbound interface of SVMn-1 and the inbound interface of SVMn are connected to the fw_vswitchn_net_trunk_4095 network of FW-vSwitchn. The outbound interface of SVMn and the inbound interface of the last security VM, SVM_end, are connected to the fw_vswitch_end_net_trunk_4095 network of SVM_end's corresponding traffic diversion switch, FW-vSwitch_end. The outbound interface of SVM_end is connected to the service switch and then to the trunk_4095 network, thus establishing the service traffic flow path.
[0046] It should be noted that by serially connecting at least one security virtual machine and the drainage security switch corresponding to each security virtual machine with the first business virtual machine corresponding to the target user, a flow path is obtained. There is no need for the security virtual machine to support additional network protocols, and there is no need to modify the messages contained in the business traffic. The business traffic can flow directly to the second business virtual machine through the serial flow path, which solves the problem of traffic control through a traffic classification controller in the existing technology. Since all drainage traffic needs to pass through the traffic classification controller to modify the messages, there is a throughput bottleneck, resulting in low transmission efficiency of the business traffic during the transmission process.
[0047] Furthermore, the system determines the initial network information of the network card corresponding to the first business virtual machine based on the first business virtual machine, wherein the initial network information is the virtual LAN identity corresponding to the first business virtual machine; modifies the initial network information into the target network information, wherein the target network information is the virtual LAN identity corresponding to the first drainage security switch, and the first drainage security switch is the drainage security switch corresponding to the first security virtual machine through which the business traffic flows; based on the target network information, the first business virtual machine, at least one drainage security switch and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic.
[0048] Optionally, in this embodiment, the system determines the initial network information of the network card corresponding to the first business virtual machine through the first business virtual machine, and modifies the initial network information to the target network information of the drainage security switch corresponding to the first security virtual machine through which the business traffic flows. For example, the VLAN ID in the initial network information of the network card connection of the first business virtual machine GVM1 is 10, and the VLAN ID in the target network information of the first drainage security switch FW-vSwitch1 is 3700 (VLAN ID 3700 corresponds to network net_3700). GVM1 can be connected to net_3700 of FW-vSwitch1 to switch the initial network information to the target network information. Then, based on the target network information, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic.
[0049] It should be noted that by modifying the initial network information of the network card to the target network information, GVM1 and FW-vSwitch1 can be connected and placed in the same network. Without the need for the security virtual machine to support additional network protocols, the flow path of business traffic can be generated, which simplifies the traffic transmission path and improves the transmission efficiency of the business traffic generated by the business virtual machine during business interaction.
[0050] Furthermore, the system obtains a service switch, wherein at least one security virtual machine is connected to the trunk network of the service switch, the range of the trunk network is the trunk network of all VLANs, the service switch is connected to the second service virtual machine, and the initial network information of the network card corresponding to the second service virtual machine is the same as the initial network information of the network card corresponding to the first service virtual machine; based on the target network information, the first service virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch and the service switch are serially connected to obtain the flow path of the service traffic.
[0051] Optionally, the first service virtual machine GVM1 and the second service virtual machine GVM2 are located in the same VLAN of the same G-vSwitch service switch, whose VLAN ID is 10. The system also creates a trunk network covering all VLANs under the service switch. The system determines the service switch and, based on the target network information, serially connects the first service virtual machine, the drainage security switch, the security virtual machines corresponding to each drainage security switch, and the service switch to obtain the flow path of the service traffic.
[0052] In step S106, the system controls the service traffic to pass through each security virtual machine in sequence according to the order of the security virtual machines in the security service chain through the flow path of the service traffic, and finally flows to the second service virtual machine.
[0053] Optionally, if GVM2 is also added to security protection and connected to the drainage network net_3701, GVM1's traffic is forwarded to the G-vSWitch and then passes through SVM_end, SVMn, SVMn-1, ..., SVM1 on the host where GVM2 resides, before being forwarded to GVM2.
[0054] Furthermore, when the system controls the business traffic to flow through the first security virtual machine based on the flow path, it determines the target network information corresponding to the communication message contained in the business traffic, wherein the first security virtual machine is the last security virtual machine through which the business traffic flows; restores the target network information corresponding to the communication message to the initial network information; and based on the initial network information, controls the business traffic to flow to the second business virtual machine.
[0055] Optionally, when the path-controlled business traffic flows through the first security virtual machine, the system restores the target network information corresponding to the communication message contained in the business traffic to the initial network information. For example, the target network information corresponding to the communication message is VLAN ID=3700, and the initial network information VLAN ID=10. The VLAN ID=3700 is modified to 10 to restore it to the initial network information. Since the network information corresponding to the communication message contained in the business traffic is the same as the initial network information of the second business virtual machine, the business traffic can be controlled to flow to the second business virtual machine. Among them, the first security virtual machine is a security virtual machine created by the system. The security virtual machine has the function of maintaining the corresponding relationship between the initial network information and the target network information. The target network information corresponding to the communication message can be restored to the initial network information through the first security virtual machine in the system. For example, the VLAN ID carried by the message is changed from 3700 to 10.
[0056] It should be noted that by controlling the business traffic to flow to the second business virtual machine based on the initial network information, the target network information corresponding to the communication message contained in the business traffic can be made the same as the initial network information of the second business virtual machine. The business traffic can be controlled to flow to the second business virtual machine. The flow path of the business traffic can be generated without the security virtual machine supporting additional network protocols, which simplifies the traffic transmission path and improves the transmission efficiency of the business traffic generated by the business virtual machine during business interaction.
[0057] In an optional embodiment, the system monitors the health status of each security virtual machine; when an abnormality occurs in the second security virtual machine, the drainage security switch corresponding to the second security virtual machine is connected to the second drainage security switch based on a preset virtual device interface to obtain a first flow path, wherein the second drainage security switch is the drainage security switch corresponding to the third security virtual machine, and the third security virtual machine is the security virtual machine to which the business traffic flows after passing through the second security virtual machine; based on the first flow path, the business traffic is controlled to flow to the second business virtual machine.
[0058] Optionally, the system monitors the health status of each security virtual machine, for example, by monitoring the power-off behavior of the SVM in the cloud platform. When an abnormality occurs in a security virtual machine, the system connects the drainage security switch corresponding to the security virtual machine to which the business traffic flows after passing through the second security virtual machine based on a preset virtual device interface (such as a veth-pair interface), obtains a first flow path, and controls the business traffic to flow to the second business virtual machine based on the first flow path. For example, when SVM2 fails, the traffic will bypass SVM2, and the two security switches FW-vSwitch2 and FW-vSwitch3 will be connected through a veth-pair.
[0059] It should be noted that by monitoring the health status of each security virtual machine, when an abnormality occurs in the security virtual machine, the security switch will be connected based on the preset virtual device interface, so that the business traffic can continue to be transmitted, thereby improving the transmission efficiency of the business traffic during the transmission process.
[0060] In another optional embodiment, when the security virtual machine is a fourth security virtual machine, the system connects the fourth security virtual machine to the service switch, wherein the fourth security virtual machine is a security virtual machine accessed in bypass mode, and the bypass mode is used to securely identify service traffic; and security detection of service traffic is performed based on the fourth security virtual machine.
[0061] In this embodiment, the system connects a security virtual machine connected in bypass mode to a service switch and connects it to a trunk network covering all VLANs, so that the security virtual machine can perform security detection on the service traffic flowing to the service switch. For example, Figure 3 The fourth security virtual machines shown are tapping_SVM1 and tapping_SVM2. Optionally, the bypass mode only performs security identification on messages and only receives messages without forwarding them.
[0062] As can be seen from the above, through the traffic control method for the security service chain provided by the present invention, users can customize the order in which business traffic passes through security service virtual machines without seeking additional support from various security vendors, allowing traffic to pass through each security service virtual machine in turn, performing comprehensive inspection and monitoring of business traffic, and enriching the security functions of their own cloud platform. Furthermore, there is no need to deploy a traffic classification controller. By modifying the messages contained in all diverted traffic through the traffic classification controller, the transmission efficiency of business traffic during transmission is improved, solving the problem of low transmission efficiency of business traffic during the transmission process of business traffic that controls business virtual machine business interactions in the prior art.
[0063] Example 2
[0064] Based on the embodiment 1 of the present invention, an embodiment of a flow control device based on a security service chain is also provided. When the device is running, the flow control method based on a security service chain of the above embodiment 1 is executed. Figure 4 FIG. 1 is a schematic diagram of an optional network security detection device for a server according to an embodiment of the present invention. Figure 4 As shown, the device includes: a creation module 401 , a connection module 403 and a control module 405 .
[0065] Among them, the creation module 401 is used to create a module for creating at least one drainage security switch based on the security service chain configured by the target user, wherein the security service chain includes at least one security virtual machine, each drainage security switch is connected to the security virtual machine corresponding to the drainage security switch, and the security virtual machine is used to perform security monitoring on the business traffic generated when the first business virtual machine and the second business virtual machine interact with each other, the first business virtual machine is used to process the business data corresponding to the target user, and the second business virtual machine is used to process the business data corresponding to other users, and other users are users other than the target user, and the drainage security switch is used to control the business traffic to flow through the security virtual machine.
[0066] Optionally, the security service chain configured for the target user is a service chain composed of multiple security virtual machines, which is used to securely monitor the business traffic generated during business interactions between a first business virtual machine that processes the target user's business data and a second business virtual machine that processes the business data of users other than the target user. For example, an enterprise deploys a security service chain composed of security virtual machines from multiple security vendors on its own private cloud platform to provide all-round protection for the business traffic of the business virtual machines.
[0067] Optionally, in this embodiment, the system creates at least one secure virtual machine and a traffic diversion security switch corresponding to each secure virtual machine based on the security service chain configured by the target user, wherein each secure virtual machine is connected to the traffic diversion security switch corresponding to the secure virtual machine.
[0068] Optionally, a trunk network with a range of all VLANs is created for each traffic diversion security switch, for example, a trunk network of type fw_vswitch1_net_trunk_4095. Optionally, a net_3xxx network (with a VLAN ID of 3xxx) is created for traffic diversion based on the first traffic diversion security switch in the security service chain, for example, net_3000. If a service VM's NIC is diverted, a net_3xx network is created, with different VLAN IDs.
[0069] Optionally, the creation module also includes: an information acquisition unit, a virtual machine acquisition unit and a creation unit; the information acquisition unit is used to acquire at least one target information, wherein the target information includes at least the name of the security virtual machine and the network card information of the security virtual machine; the virtual machine acquisition unit is used to acquire at least one security virtual machine based on at least one target information, and connect at least one security virtual machine to the security service chain, wherein each security virtual machine corresponds to one target information; the creation unit is used to create at least one diversion security switch based on at least one security virtual machine.
[0070] Optionally, the system obtains at least one target information, such as the name of the security virtual machine and the information of the network card number of the input / output interface, and then obtains the security virtual machine corresponding to each target information based on the target information, connects the security virtual machine corresponding to each target information to the security service chain, and creates a drainage security switch corresponding to the security virtual machine based on each security virtual machine.
[0071] Optionally, when the target user wants to add a new security virtual machine to the security service chain, he only needs to enter the name of the security virtual machine and the information of the network card number of the inbound / outbound interface based on the management platform. Based on the above information, the system will connect the corresponding security virtual machine to the service chain and create a corresponding drainage security switch for the security virtual machine.
[0072] It should be noted that by connecting the corresponding security virtual machine to the service chain based on the name of the security virtual machine and the information of the network card of the in / out interface, and creating a drainage security switch corresponding to the security virtual machine, the management platform can issue configuration tasks through the cloud platform API to connect the network card of the in / out interface of the security virtual machine to the corresponding drainage network, preparing for the subsequent generation of the flow path of business traffic, thereby improving the accuracy of the flow path of business traffic.
[0073] The connection module 403 is used to serially connect the first business virtual machine, at least one drainage security switch and the security virtual machine corresponding to each drainage security switch when the first business virtual machine interacts with the second business virtual machine to obtain the flow path of the business traffic, wherein each security virtual machine is connected to the trunk network of the drainage security switch corresponding to the security virtual machine, and the scope of the trunk network is the trunk network of all VLANs.
[0074] Optional, such as Figure 2 As shown, in the prior art, when the first service virtual machine GVM1 and the second service virtual machine GVM2 interact with each other, GVM1 and GVM2 are in the same VLAN network of the same G-vSwitch service switch, whose VLAN ID is 10, and they are interconnected at Layer 2. GVM1 traffic is transmitted through the uplink of host HOST1 (i.e., the IoT card), and then transmitted to the uplink of host HOST2 through the physical switch. HOST2 then forwards the traffic to GVM2. Among them, each HOST will deploy security virtual machines SVMs of various security vendors, such as SVM1, SVM2, and SVMn.
[0075] In this embodiment, when the first business virtual machine and the second business virtual machine interact with each other, the system obtains the flow path of the business traffic by serially connecting the first business virtual machine, at least one security virtual machine, the drainage security switch corresponding to each security virtual machine, and the business switch. Optionally, the first business virtual machine and the second business virtual machine are connected to the same VLAN network of the business switch, and the VLAN ID is 10. For example, Figure 3As shown, when the first business virtual machine GVM1 interacts with the second business virtual machine GVM2 for business, GVM1 is connected to the first drainage security switch FW-vSwitch1. There is a network fw_vswitch1_net_trunk_4095 on FW-vSwitch1 (that is, the trunk network covering all VLANs). Then, the inbound interface of the first security virtual machine SVM1 is connected to FW-vSwitch1 and connected to the fw_vswitch1_net_trunk_4095 network. The outbound interface of SVM1 is connected to the drainage security switch FW-vSwitch2 corresponding to the second security virtual machine SVM2 and connected to the fw_vswitch2_net_trunk_4095 network. Connect the inbound interface of the second security VM, SVM2, to FW-vSwitch2. Similarly, the outbound interface of SVMn-1 and the inbound interface of SVMn are connected to the fw_vswitchn_net_trunk_4095 network of FW-vSwitchn. The outbound interface of SVMn and the inbound interface of the last security VM, SVM_end, are connected to the fw_vswitch_end_net_trunk_4095 network of SVM_end's corresponding traffic diversion switch, FW-vSwitch_end. The outbound interface of SVM_end is connected to the service switch and then to the trunk_4095 network, thus establishing the service traffic flow path.
[0076] It should be noted that by serially connecting at least one security virtual machine and the drainage security switch corresponding to each security virtual machine with the first business virtual machine corresponding to the target user, a flow path is obtained. There is no need for the security virtual machine to support additional network protocols, and there is no need to modify the messages contained in the business traffic. The business traffic can flow directly to the second business virtual machine through the serial flow path, which solves the problem of flow control through a traffic classification controller in the existing technology. Since all drainage traffic needs to pass through the traffic classification controller to modify the messages, there is a throughput bottleneck, resulting in low transmission efficiency of the business traffic during the transmission process.
[0077] Optionally, the connection module also includes: a first determination unit, a modification unit and a connection unit; the first determination unit is used to determine the initial network information of the network card corresponding to the first business virtual machine based on the first business virtual machine, wherein the initial network information is the virtual LAN identity corresponding to the first business virtual machine; the modification unit is used to modify the initial network information to the target network information, wherein the target network information is the virtual LAN identity corresponding to the first drainage security switch, and the first drainage security switch is the drainage security switch corresponding to the first security virtual machine through which the business traffic flows; the connection unit is used to serially connect the first business virtual machine, at least one drainage security switch and the security virtual machine corresponding to each drainage security switch based on the target network information to obtain the flow path of the business traffic.
[0078] Optionally, in this embodiment, the system determines the initial network information of the network card corresponding to the first business virtual machine through the first business virtual machine, and modifies the initial network information to the target network information of the drainage security switch corresponding to the first security virtual machine through which the business traffic flows. For example, the VLAN ID in the initial network information of the network card connection of the first business virtual machine GVM1 is 10, and the VLAN ID in the target network information of the first drainage security switch FW-vSwitch1 is 3700 (VLAN ID 3700 corresponds to network net_3700). GVM1 can be connected to net_3700 of FW-vSwitch1 to switch the initial network information to the target network information. Then, based on the target network information, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic.
[0079] It should be noted that by modifying the initial network information of the network card to the target network information, GVM1 and FW-vSwitch1 can be connected and placed in the same network. Without the need for the security virtual machine to support additional network protocols, the flow path of business traffic can be generated, which simplifies the traffic transmission path and improves the transmission efficiency of the business traffic generated by the business virtual machine during business interaction.
[0080] Optionally, the connection unit also includes: an acquisition sub-module and a connection sub-module; the acquisition sub-module is used to acquire the service switch, wherein at least one security virtual machine is connected to the trunk network of the service switch, the range of the trunk network is the trunk network of all VLANs, the service switch is connected to the second service virtual machine, and the initial network information of the network card corresponding to the second service virtual machine is the same as the initial network information of the network card corresponding to the first service virtual machine; the connection sub-module is used to serially connect the first service virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch and the service switch based on the target network information to obtain the flow path of the service traffic.
[0081] Optionally, the first service virtual machine GVM1 and the second service virtual machine GVM2 are located in the same VLAN of the same G-vSwitch service switch, whose VLAN ID is 10. The system also creates a trunk network covering all VLANs under the service switch. The system determines the service switch and, based on the target network information, serially connects the first service virtual machine, the drainage security switch, the security virtual machines corresponding to each drainage security switch, and the service switch to obtain the flow path of the service traffic.
[0082] The control module 405 is configured to control the service traffic to flow to the second service virtual machine based on the flow path.
[0083] Optionally, the system controls the business traffic to pass through each security virtual machine in sequence according to the order of the security virtual machines in the security service chain through the flow path of the business traffic, and finally flows to the second business virtual machine.
[0084] Optionally, if GVM2 is also added to security protection and connected to the drainage network net_3701, GVM1's traffic is forwarded to the G-vSWitch and then passes through SVM_end, SVMn, SVMn-1, ..., SVM1 on the host where GVM2 resides, before being forwarded to GVM2.
[0085] Optionally, the control module includes: a second determination unit, a restoration unit and a control unit; the second determination unit is used to determine the target network information corresponding to the communication message contained in the business traffic when the business traffic is controlled to flow through the first security virtual machine based on the flow path, wherein the first security virtual machine is the last security virtual machine through which the business traffic flows; the restoration unit is used to restore the target network information corresponding to the communication message to the initial network information; the control unit is used to control the business traffic to flow to the second business virtual machine based on the initial network information.
[0086] Optionally, when the path-controlled business traffic flows through the first security virtual machine, the system restores the target network information corresponding to the communication message contained in the business traffic to the initial network information. For example, the target network information corresponding to the communication message is VLAN ID=3700, and the initial network information VLAN ID=10. The VLAN ID=3700 is modified to 10 to restore it to the initial network information. Since the network information corresponding to the communication message contained in the business traffic is the same as the initial network information of the second business virtual machine, the business traffic can be controlled to flow to the second business virtual machine. Among them, the first security virtual machine is a security virtual machine created by the system. The security virtual machine has the function of maintaining the corresponding relationship between the initial network information and the target network information. The target network information corresponding to the communication message can be restored to the initial network information through the first security virtual machine in the system. For example, the VLAN ID carried by the message is changed from 3700 to 10.
[0087] It should be noted that by controlling the business traffic to flow to the second business virtual machine based on the initial network information, the target network information corresponding to the communication message contained in the business traffic can be made the same as the initial network information of the second business virtual machine. The business traffic can be controlled to flow to the second business virtual machine. The flow path of the business traffic can be generated without the security virtual machine supporting additional network protocols, which simplifies the traffic transmission path and improves the transmission efficiency of the business traffic generated by the business virtual machine during business interaction.
[0088] An optional flow control device based on a security service chain also includes: a monitoring module, a first connection module and a first control module; the monitoring module is used to monitor the health status of each security virtual machine; the first connection module is used to connect the drainage security switch corresponding to the second security virtual machine with the second drainage security switch based on a preset virtual device interface when an abnormality occurs in the second security virtual machine, so as to obtain a first flow path, wherein the second drainage security switch is the drainage security switch corresponding to the third security virtual machine, and the third security virtual machine is the security virtual machine to which the business traffic flows after passing through the second security virtual machine; the first control module is used to control the business traffic to flow to the second business virtual machine based on the first flow path.
[0089] Optionally, the system monitors the health status of each security virtual machine, for example, by monitoring the power-off behavior of the SVM in the cloud platform. When an abnormality occurs in a security virtual machine, the system connects the drainage security switch corresponding to the security virtual machine to which the business traffic flows after passing through the second security virtual machine based on a preset virtual device interface (such as a veth-pair interface), obtains a first flow path, and controls the business traffic to flow to the second business virtual machine based on the first flow path. For example, when SVM2 fails, the traffic will bypass SVM2, and the two security switches FW-vSwitch2 and FW-vSwitch3 will be connected through a veth-pair.
[0090] It should be noted that by monitoring the health status of each security virtual machine, when an abnormality occurs in the security virtual machine, the security switch will be connected based on the preset virtual device interface, so that the business traffic can continue to be transmitted, thereby improving the transmission efficiency of the business traffic during the transmission process.
[0091] Another optional flow control device based on the security service chain also includes: a second connection module and a detection module; the second connection module is used to connect the fourth security virtual machine to the service switch when the security virtual machine is a fourth security virtual machine, wherein the fourth security virtual machine is a security virtual machine accessed in bypass mode, and the bypass mode is used to securely identify service traffic; the detection module is used to perform security detection on service traffic based on the fourth security virtual machine.
[0092] In this embodiment, the system connects a security virtual machine connected in bypass mode to a service switch and connects it to a trunk network covering all VLANs, so that the security virtual machine can perform security detection on the service traffic flowing to the service switch. For example, Figure 3 The fourth security virtual machines shown are tapping_SVM1 and tapping_SVM2. Optionally, the bypass mode only performs security identification on messages and only receives messages without forwarding them.
[0093] Example 3
[0094] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned traffic control method based on the security service chain when running.
[0095] Example 4
[0096] According to another aspect of an embodiment of the present invention, an electronic device is provided, wherein: Figure 5is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as Figure 5 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned traffic control method based on the security service chain when running.
[0097] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0098] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0099] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0100] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0101] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program codes.
[0102] The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A flow control method based on a security service chain, characterized in that: include: Based on the security service chain configured by the target user, at least one diversion security switch is created, wherein the security service chain includes at least one security virtual machine, each diversion security switch is connected to the security virtual machine corresponding to the diversion security switch, and the security virtual machine is used to perform security monitoring on the business traffic generated when the first business virtual machine and the second business virtual machine interact with each other, the first business virtual machine is used to process the business data corresponding to the target user, the second business virtual machine is used to process the business data corresponding to other users, the other users are users other than the target user, and the diversion security switch is used to control the business traffic to flow through the security virtual machine; When the first business virtual machine and the second business virtual machine perform business interaction, the first business virtual machine, at least one drainage security switch, and the security virtual machine corresponding to each drainage security switch are serially connected to obtain the flow path of the business traffic, wherein each security virtual machine is connected to the trunk network of the drainage security switch corresponding to the security virtual machine, and the range of the trunk network is the trunk network of all VLANs; Based on the flow path, control the service traffic to flow to the second service virtual machine.
2. The method according to claim 1, characterized in that When the first business virtual machine and the second business virtual machine perform business interaction, the first business virtual machine, at least one diversion security switch, and a security virtual machine corresponding to each diversion security switch are serially connected to obtain a flow path of the business traffic, including: Determining initial network information of a network card corresponding to the first business virtual machine based on the first business virtual machine, wherein the initial network information is a virtual local area network identity corresponding to the first business virtual machine; Modify the initial network information into target network information, wherein the target network information is a virtual local area network identity corresponding to a first traffic diversion security switch, and the first traffic diversion security switch is a traffic diversion security switch corresponding to a first secure virtual machine through which the business traffic flows; Based on the target network information, the first business virtual machine, at least one traffic diversion security switch, and the security virtual machine corresponding to each traffic diversion security switch are serially connected to obtain a flow path of the business traffic.
3. The method according to claim 2, characterized in that The first service virtual machine, at least one diversion security switch, and a security virtual machine corresponding to each diversion security switch are serially connected based on the target network information to obtain a flow path of the service traffic, including: Obtain a service switch, wherein at least one security virtual machine is connected to a trunk network of the service switch, the range of the trunk network is the trunk network of all VLANs, the service switch is connected to the second service virtual machine, and the initial network information of the network card corresponding to the second service virtual machine is the same as the initial network information of the network card corresponding to the first service virtual machine; Based on the target network information, the first business virtual machine, at least one diversion security switch, the security virtual machine corresponding to each diversion security switch, and the business switch are serially connected to obtain a flow path of the business traffic.
4. The method according to claim 3, characterized in that Based on the flow path, controlling the service traffic to flow to the second service virtual machine includes: When the service traffic is controlled to flow through a first secure virtual machine based on the flow path, determining the target network information corresponding to the communication message contained in the service traffic, wherein the first secure virtual machine is the last secure virtual machine through which the service traffic flows; Restoring the target network information corresponding to the communication message to the initial network information; Based on the initial network information, control the service traffic to flow to the second service virtual machine.
5. The method according to claim 1, characterized in that Based on the security service chain configured by the target user, create at least one traffic diversion security switch, including: Acquire at least one target information, wherein the target information includes at least the name of the security virtual machine and the network card information of the security virtual machine; Acquire at least one secure virtual machine based on the at least one target information, and connect the at least one secure virtual machine to the secure service chain, wherein each secure virtual machine corresponds to one target information; At least one traffic diversion security switch is created based on at least one security virtual machine.
6. The method according to claim 1, characterized in that The method further comprises: Monitor the health status of each secure virtual machine; When an abnormality occurs in the second security virtual machine, the drainage security switch corresponding to the second security virtual machine is connected to the second drainage security switch based on the preset virtual device interface to obtain a first flow path, wherein the second drainage security switch is the drainage security switch corresponding to the third security virtual machine, and the third security virtual machine is the security virtual machine to which the business traffic flows after passing through the second security virtual machine; The service traffic is controlled to flow to the second service virtual machine based on the first flow path.
7. The method according to claim 3, characterized in that The method further comprises: When the security virtual machine is a fourth security virtual machine, connecting the fourth security virtual machine to the service switch, wherein the fourth security virtual machine is a security virtual machine connected in bypass mode, and the bypass mode is used to securely identify the service traffic; Perform security detection on the business traffic based on the fourth security virtual machine.
8. A flow control device based on a security service chain, characterized in that: include: A creation module, used to create at least one diversion security switch based on a security service chain configured by a target user, wherein the security service chain includes at least one security virtual machine, each diversion security switch is connected to a security virtual machine corresponding to the diversion security switch, the security virtual machine is used to perform security monitoring on the business traffic generated when the first business virtual machine and the second business virtual machine perform business interaction, the first business virtual machine is used to process the business data corresponding to the target user, the second business virtual machine is used to process the business data corresponding to other users, the other users are users other than the target user, and the diversion security switch is used to control the business traffic to flow through the security virtual machine; A connection module, used for serially connecting the first business virtual machine, at least one drainage security switch and the security virtual machine corresponding to each drainage security switch when the first business virtual machine interacts with the second business virtual machine, so as to obtain the flow path of the business traffic, wherein each security virtual machine is connected to the trunk network of the drainage security switch corresponding to the security virtual machine, and the range of the trunk network is the trunk network of all VLANs; A control module is used to control the business traffic to flow to the second business virtual machine based on the flow path.
9. A computer-readable storage medium, characterized in that: A computer program is stored in a computer-readable storage medium, wherein the computer program is configured to execute the traffic control method based on the security service chain described in any one of claims 1 to 7 when running.
10. An electronic device, characterized in that: The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to run the programs, wherein the program is configured to execute the traffic control method based on the security service chain as described in any one of claims 1 to 7 when running.
