Security protection method and cloud platform

By adopting the architecture of spinal switch and switch clusters in the cloud platform, network traffic is directed to multiple hardware firewalls for security detection, solving the problem that tenants need to deploy virtual firewalls by themselves, and achieving cost reduction and resource utilization improvement.

WO2024227362A1PCT designated stage expired Publication Date: 2024-11-07CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Application Number
PCT/CN2023/143261
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-13
Filing Date
2023-12-29
Publication Date
2024-11-07

AI Technical Summary

Technical Problem

In the security protection method of existing cloud platforms, each tenant needs to deploy a virtual firewall, resulting in high costs and unbalanced resource utilization, which can easily lead to resource waste.

Method used

Using the architecture of spinal switch, first switch cluster and second switch cluster, network traffic is directed to multiple hardware firewalls for security detection through virtual extension LAN technology, realizing shared security protection between tenants.

Benefits of technology

It reduces security protection costs, improves resource utilization, and meets the hardware firewall security protection needs of tenants, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023143261_07112024_PF_FP_ABST
    Figure CN2023143261_07112024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present invention are a security protection method and a cloud platform. The method is applied to a cloud platform. The cloud platform comprises a spine switch, a first leaf switch and a second leaf switch, wherein the first leaf switch is connected to a plurality of virtual switches, the virtual switches are connected to a plurality of tenant virtual machines, and the second leaf switch is connected to a plurality of hardware firewalls. The method comprises: after receiving network traffic, a virtual switch determining a target second leaf switch; sending the network traffic to a hardware firewall via a first leaf switch connected to the virtual switch, a spine switch, and the target second leaf switch; performing security detection on the network traffic by means of the hardware firewall; and if the traffic is abnormal traffic, performing traffic interception. By applying the method of the present invention, traffic can be led to the hardware firewall for security detection, and each tenant can share the hardware firewall to realize security protection without the need for the tenant to deploy a virtual firewall, such that the security protection costs can be reduced, and the resource utilization rate can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Security protection methods and cloud platforms Technical Field

[0001] The present invention relates to the technical field of cloud computing, and in particular to a security protection method and a cloud platform. Background Art

[0002] With the development of cloud computing technology, cloud platforms have been widely used in various service scenarios. During the service process of cloud platforms, it is usually necessary to perform security inspections on the network traffic in the cloud to provide security protection for each tenant on the cloud.

[0003] Currently, security protection in cloud platforms is primarily implemented using virtual firewalls. Typically, firewalls are deployed within each tenant's Virtual Private Cloud (VPC). This involves using a virtual machine to host the firewall. Subnet routing is used to route network traffic requiring security checks to the firewall's VM, achieving security protection.

[0004] In existing security protection methods, each virtual firewall only provides security protection for its associated tenants. This means that each tenant needs to deploy a corresponding virtual firewall, which results in high security protection costs. Furthermore, in real-world business scenarios, the traffic loads of different tenants are often uneven, which results in significant differences in resource utilization among the virtual firewalls, leading to resource waste.

[0005] Summary of the Invention

[0006] In view of this, an embodiment of the present invention provides a security protection method and a cloud platform to solve the problem in the existing security protection method that each tenant needs to deploy a virtual firewall, which is costly and easily causes waste of resources.

[0007] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0008] A security protection method is applied to a cloud platform, the cloud platform comprising: a spine switch, a first switch cluster, and a second switch cluster; the first switch cluster comprises at least one first leaf switch, and the second switch cluster comprises at least one second leaf switch; the first leaf switch is connected to multiple virtual switches, each of the virtual switches is connected to multiple tenant virtual machines, and the second leaf switch is connected to multiple hardware firewalls; the method comprises:

[0009] When the first virtual switch receives network traffic sent by the tenant virtual machine connected to it, the first virtual switch determines a target second leaf switch corresponding to the network traffic in the second switch cluster; the first virtual switch is a virtual switch connected to the first leaf switch in the first switch cluster;

[0010] The first virtual switch performs virtual extended LAN message encapsulation processing on the network traffic based on the address of the target second leaf switch, obtains a first flow message corresponding to the network traffic, and sends the first flow message to the target second leaf switch through the first leaf switch and the spine switch connected to the first virtual switch;

[0011] The target second leaf switch performs virtual extended LAN message decapsulation processing on the first flow message to obtain a second flow message corresponding to the network flow;

[0012] The target second leaf switch determines the target hardware firewall corresponding to the network traffic among the hardware firewalls connected thereto, and sends the second traffic message to the target hardware firewall;

[0013] The target hardware firewall performs a security check on the network traffic based on the second traffic message to obtain a security check result. If the security check result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform.

[0014] In the above method, optionally, the hardware firewall connected to the second leaf switch is connected to the second leaf switch through a target interface, and the target interface is a Layer 2 aggregation interface configured as a port aggregation interface;

[0015] The hardware firewall connected to the second leaf switch is configured with multiple layer-3 sub-interfaces and multiple virtual routing forwarding instances, and the multiple layer-3 sub-interfaces and the multiple virtual routing forwarding instances are bound in a one-to-one correspondence.

[0016] Optionally, in the above method, sending the second traffic message to the target hardware firewall includes:

[0017] According to the pre-configured policy routing, the target three-layer sub-interface corresponding to the second traffic message is determined in each three-layer sub-interface of the target hardware firewall, and the second traffic message is sent to the virtual routing forwarding instance bound to the target three-layer sub-interface through the target three-layer sub-interface to send the second traffic message to the target hardware firewall.

[0018] Optionally, in the above method, each hardware firewall connected to the second leaf switch performs session synchronization based on a preset remote backup management protocol.

[0019] The above method may optionally further include:

[0020] If the security detection result indicates that the network traffic is normal traffic, the target hardware firewall sends the second traffic message to the target second leaf switch;

[0021] The target second leaf switch determines the target address corresponding to the second flow message, performs virtual extended LAN message encapsulation processing on the second flow message based on the target address, obtains a third flow message corresponding to the network flow, and forwards the third flow message through the spine switch and the first switch cluster to enable the network flow to reach the target address.

[0022] Optionally, in the above method, if the network traffic is east-west traffic, the process of forwarding the third traffic message through the spine switch and the first switch cluster so that the network traffic reaches the destination address includes:

[0023] The target second leaf switch sends the third traffic message to the spine switch;

[0024] The spine switch determines, in the first switch cluster, a target first leaf switch corresponding to the target address, and sends the third flow packet to the target first leaf switch;

[0025] The target first leaf switch determines the second virtual switch corresponding to the target address among the virtual switches connected thereto, and sends the third flow packet to the second virtual switch;

[0026] The second virtual switch performs virtual extended local area network message decapsulation processing on the third flow message to obtain a fourth flow message corresponding to the network flow;

[0027] The second virtual switch determines, among the tenant virtual machines connected thereto, a target tenant virtual machine corresponding to the target address, and sends the fourth traffic message to the target tenant virtual machine.

[0028] In the above method, optionally, the first switch cluster further includes a third leaf switch, wherein the third leaf switch is connected to the internet gateway and the service gateway respectively; if the network traffic is north-south traffic, the process of forwarding the third traffic message through the spine switch and the first switch cluster so that the network traffic reaches the destination address includes:

[0029] The target second leaf switch sends the third traffic message to the spine switch;

[0030] The spine switch sends the third traffic message to the third leaf switch;

[0031] The third leaf switch sends the third traffic message to the Internet gateway;

[0032] The internet gateway performs virtual extended local area network message decapsulation processing on the third traffic message to obtain a fifth traffic message corresponding to the network traffic;

[0033] The internet gateway performs network address translation on the target address to obtain a public network address corresponding to the target address, and performs virtual extended local area network message encapsulation on the fifth traffic message based on the public network address to obtain a sixth traffic message corresponding to the network traffic;

[0034] The internet gateway sends the sixth traffic message to the service gateway through the third leaf switch;

[0035] The service gateway performs virtual extended local area network message decapsulation processing on the sixth traffic message to obtain a seventh traffic message corresponding to the network traffic, and sends the seventh traffic message to the public network.

[0036] The above method may optionally further include:

[0037] Collecting network performance statistics corresponding to the first switch cluster and network performance statistics corresponding to the second switch cluster;

[0038] Collecting network performance statistics corresponding to each virtual switch connected to the first leaf switch in the first switch cluster;

[0039] Collecting network performance statistics corresponding to each hardware firewall connected to the second leaf switch in the second switch cluster;

[0040] The network performance statistics corresponding to the first switch cluster, the network performance statistics corresponding to the second switch cluster, the network performance statistics corresponding to each virtual switch, and the network performance statistics corresponding to each hardware firewall are sent to a preset operation and maintenance system to facilitate data display by the operation and maintenance system.

[0041] The above method may optionally further include:

[0042] Monitoring whether each of the hardware firewalls is in a fault state;

[0043] When it is monitored that each of the hardware firewalls is in a faulty state, for each virtual switch connected to the first leaf switch, the traffic forwarding mechanism of the virtual switch is changed so that the virtual switch forwards traffic according to the original path of the traffic message.

[0044] A cloud platform, comprising:

[0045] A spine switch, a first switch cluster, and a second switch cluster; the first switch cluster includes at least one first leaf switch, and the second switch cluster includes at least one second leaf switch; the first leaf switch is connected to multiple virtual switches, each of the virtual switches is connected to multiple tenant virtual machines, and the second leaf switch is connected to multiple hardware firewalls;

[0046] The virtual switch is configured to, upon receiving network traffic sent by a connected tenant virtual machine, determine a target second leaf switch corresponding to the network traffic in the second switch cluster; perform virtual extended LAN message encapsulation processing on the network traffic based on the address of the target second leaf switch to obtain a first flow message corresponding to the network traffic; and send the first flow message to the target second leaf switch through the first leaf switch and the spine switch connected to the virtual switch;

[0047] The target second leaf switch is configured to perform virtual extended LAN message decapsulation processing on the first flow message to obtain a second flow message corresponding to the network flow; determine a target hardware firewall corresponding to the network flow among the hardware firewalls connected to the target second leaf switch, and send the second flow message to the target hardware firewall;

[0048] The target hardware firewall is used to perform security detection on the network traffic based on the second traffic message to obtain a security detection result. If the security detection result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform.

[0049] A security protection method provided based on the above-mentioned embodiment of the present invention is applied to a cloud platform, which includes a spine switch, a first switch cluster and a second switch cluster; the first switch cluster includes at least one first leaf switch, and the second switch cluster includes at least one second leaf switch; the first leaf switch is connected to multiple virtual switches, each virtual switch is connected to multiple tenant virtual machines, and the second leaf switch is connected to multiple hardware firewalls; the method includes: when the first virtual switch receives network traffic sent by the tenant virtual machine to which it is connected, in the second switch cluster, it determines the target second leaf switch corresponding to the network traffic, and virtualizes the network traffic based on the address of the target second leaf switch The extended LAN message is encapsulated and processed to obtain a first flow message corresponding to the network traffic, and the first flow message is sent to the target second leaf switch through the first leaf switch and the spine switch connected to the first virtual switch; the target second leaf switch performs virtual extended LAN message decapsulation processing on the first flow message to obtain a second flow message corresponding to the network traffic, and determines the target hardware firewall among the hardware firewalls connected to it, and sends the second flow message to the target hardware firewall; the target hardware firewall performs security detection on the network traffic based on the second flow message to obtain a security detection result. If the security detection result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform. By applying the method provided in the embodiment of the present invention, multiple hardware firewalls are connected to the cloud platform. When the virtual switch receives the network traffic that the tenant virtual machine needs to transmit, the network traffic can be directed to the hardware firewall for security detection. The tenants of the cloud platform can share the hardware firewall in the cloud platform for security protection, without the need for each tenant to deploy a virtual firewall by themselves, which is conducive to reducing security protection costs and improving resource utilization. In addition, in actual business scenarios, some tenants have security protection needs for applying hardware firewalls. The method provided in the embodiment of the present invention can meet the security protection needs of tenants for applying hardware firewalls and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0051] FIG1 is a schematic diagram of the architecture of a cloud platform provided by an embodiment of the present invention;

[0052] FIG2 is a flow chart of a security protection method provided by an embodiment of the present invention;

[0053] FIG3 is a diagram illustrating an example of a virtual network architecture according to an embodiment of the present invention;

[0054] FIG4 is a schematic diagram of a network traffic flow path during a security protection process provided by an embodiment of the present invention;

[0055] FIG5 is another schematic diagram of a network traffic flow path during a security protection process provided by an embodiment of the present invention;

[0056] FIG6 is a diagram illustrating an exemplary architecture of a monitoring system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments 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 are within the scope of protection of the present invention.

[0058] In this application, the terms "comprises," "comprising," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0059] An embodiment of the present invention provides a security protection method, which is applied to a cloud platform. An example diagram of the architecture of the cloud platform can be shown in FIG1 .

[0060] The cloud platform includes: a spine switch 101, a first switch cluster, and a second switch cluster; the first switch cluster includes at least one first leaf switch 102, and the second switch cluster includes at least one second leaf switch 103; the first leaf switch 102 is connected to multiple virtual switches 104, each of the virtual switches 104 is connected to multiple tenant virtual machines 105, and the second leaf switch 103 is connected to multiple hardware firewalls 106;

[0061] The method provided in the embodiment of the present invention can be applied to a cloud platform based on a spine-leaf network architecture, and the spine-leaf network architecture is composed of a spine switch (spine switch) and multiple leaf switches (leaf switches). The first leaf switch and the second leaf switch in the cloud platform in the embodiment of the present invention are leaf switches in the spine-leaf network. The first leaf switch is a leaf switch for connecting a virtual switch (Open Vswitch, OVS), each first leaf switch is connected to multiple virtual switches, each virtual switch is connected to each tenant virtual machine, and the tenant virtual machine is a virtual machine (Virtual Machine, VM) associated with the tenant. The second leaf switch is a leaf switch for connecting a hardware firewall cluster, each second leaf switch is connected to a hardware firewall cluster, and the hardware firewall cluster contains multiple hardware firewalls. For example, as shown in Figure 1, the first leaf switch is connected to virtual switches such as virtual switch 1 and virtual switch 2, virtual switch 1 is connected to tenant virtual machines such as tenant virtual machine 1 and tenant virtual machine 2 respectively, virtual switch 2 is connected to tenant virtual machines such as tenant virtual machine 3 and tenant virtual machine 4 respectively, and the second leaf switch is connected to hardware firewalls such as hardware firewall 1 and hardware firewall 2 respectively.

[0062] It should be noted that the architecture shown in Figure 1 is only a brief schematic diagram provided to better illustrate the method of the present invention. It does not show all platform components and does not limit the platform architecture in actual application scenarios. In actual application scenarios, the number of various leaf switches, the number of virtual switches connected to the first leaf switch, the number of tenant virtual machines connected to the virtual switch, and the number of hardware firewalls connected to the second leaf switch, etc., can all be deployed according to actual conditions without affecting the function of the method provided in the embodiment of the present invention.

[0063] The method provided by the embodiment of the present invention may be shown in a flowchart of FIG2 , wherein the method includes:

[0064] S201: When a first virtual switch receives network traffic sent by a connected tenant virtual machine, the first virtual switch determines a target second leaf switch corresponding to the network traffic in the second switch cluster; the first virtual switch is a virtual switch connected to the first leaf switch in the first switch cluster;

[0065] In the method provided by an embodiment of the present invention, when a tenant virtual machine needs to send network traffic to a designated traffic recipient, the network traffic it sends will first be sent to the virtual switch to which it is connected. The virtual switch must then direct the network traffic to the hardware firewall for security testing. When the virtual switch in the cloud platform receives network traffic sent by the tenant virtual machine, the virtual switch is the so-called first virtual switch. Based on a pre-configured flow table, the first virtual switch can find a second leaf switch in the second leaf switch cluster that matches the current network traffic and use the second leaf switch as the target second leaf switch.

[0066] S202: The first virtual switch performs virtual extended LAN message encapsulation processing on the network traffic based on the address of the target second leaf switch to obtain a first flow message corresponding to the network traffic, and sends the first flow message to the target second leaf switch through the first leaf switch and the spine switch connected to the first virtual switch;

[0067] In the method provided by the embodiment of the present invention, during the security protection process, the virtual eXtensible Local Area Network (VXLAN) technology is used to forward traffic. VXLAN is also called an extensible virtual local area network.

[0068] The first virtual switch uses the address of the target second leaf switch as the target address for packet forwarding, encapsulates the network traffic into a virtual extended local area network (VXLAN) packet, and uses the encapsulated VXLAN packet as the first traffic packet. The first traffic packet is sent to the target second leaf switch via the first leaf switch and spine switch connected to the first virtual switch. Specifically, the first virtual switch sends the first traffic packet to the first leaf switch it is connected to. The first leaf switch sends the first traffic packet to the spine switch, which then sends the first traffic packet to the target second leaf switch.

[0069] S203: The target second leaf switch performs virtual extended LAN message decapsulation processing on the first flow message to obtain a second flow message corresponding to the network flow;

[0070] In the method provided by an embodiment of the present invention, when the target second leaf switch receives the first traffic message sent by the spine switch, it decapsulates the VXLAN message and uses the decapsulated message as the second traffic message.

[0071] S204: The target second leaf switch determines a target hardware firewall corresponding to the network traffic from among the hardware firewalls connected thereto, and sends the second traffic message to the target hardware firewall;

[0072] In the method provided by an embodiment of the present invention, the target second leaf switch can find a hardware firewall that matches the current network traffic among the various hardware firewalls connected to it based on pre-configured policy routing, use the hardware firewall as the target hardware firewall, and send the second traffic message to the target hardware firewall, so that the target hardware firewall can perform security detection on the current network traffic.

[0073] S205: The target hardware firewall performs a security check on the network traffic based on the second traffic message to obtain a security check result. If the security check result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform.

[0074] In the method provided by an embodiment of the present invention, after receiving the second traffic message, the target hardware firewall performs a security check based on the second traffic message, that is, performs a security check on the network traffic, and obtains a security check result of the network traffic. If the security check result indicates that the current network traffic is abnormal traffic, the network traffic is intercepted and the traffic is no longer forwarded, thereby ending the current network traffic processing process.

[0075] Based on the method provided by the embodiment of the present invention, when the virtual switch receives network traffic sent by the tenant virtual machine to which it is connected, it determines the target second leaf switch in the second switch cluster, and based on the address of the target second leaf switch, performs virtual extended LAN message encapsulation processing on the network traffic to obtain a first traffic message, and sends the first traffic message to the target second leaf switch through the first leaf switch and the spine switch connected to the virtual switch; the target second leaf switch performs virtual extended LAN message decapsulation processing on the first traffic message to obtain a second traffic message, determines the target hardware firewall among the various hardware firewalls connected to the target second leaf switch, and sends the second traffic message to the target hardware firewall; the target hardware firewall performs security detection on the network traffic based on the second traffic message, and if the security detection result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform. By applying the method provided in the embodiment of the present invention, multiple hardware firewalls are connected to the cloud platform. When the virtual switch receives network traffic that needs to be transmitted by the tenant virtual machine, the network traffic can be directed to the hardware firewall for security detection. The tenants of the cloud platform can share the hardware firewall in the cloud platform for security protection, eliminating the need for each tenant to deploy a virtual firewall on their own. This helps reduce security protection costs and improve resource utilization. In addition, in actual business scenarios, some tenants have the security protection needs of using hardware firewalls. Based on the method provided in the embodiment of the present invention, the security protection needs of tenants using hardware firewalls can be met, improving the user experience.

[0076] The method provided in the embodiment of the present invention can be implemented based on a virtual network of a cloud platform, which can be deployed and controlled based on a software-defined network (SDN). The architecture of the virtual network can be shown in Figure 3, where the virtual network is divided into three layers.

[0077] The first layer is the TC zone, responsible for accessing external networks, including external network traffic, Network Attached Storage (NAS) traffic, dedicated point-of-presence (POPs), inter-cloud high-speed devices, and virtual private network (VPN) devices. These devices all utilize active-active multi-network access. Dedicated POPs access through the Direct Connect Gateway (DCGW), inter-cloud high-speed devices through the Cloud Gateway (CGW), and VPN devices through the Virtual Private Network Gateway (VPNGW). The network elements deployed in this zone include the Access Gateway (AGW) and the Serving Gateway (SGW). The AGW is responsible for issuing Classless Inter-Domain Routing (CIDR) for the public network, while the SGW is responsible for rate limiting. The AGW and SGW interact with the BLeaf switch nodes.

[0078] The second layer is the network element service area. The service areas deployed in this area provide tenants with layer 3 to layer 7 network services, including dedicated lines, Internet Gateway (IGW), Network Address Translation Gateway (NATGW), Load Balancing Service (Load Balance, LB), INAT Gateway, PDN Gateway (PGW), PSGW Gateway, Virtual Private Cloud Peer (VPC Peer, VPCP), NAS, object storage public services, virtual gateway VGW, VPN access, etc.

[0079] The third layer is the resource access layer, which is responsible for providing virtual network access services for VMs, containers, and bare metal machines. The network element types are distributed virtual routers (DVRs) and smart network cards (SmartNICs).

[0080] Based on the method provided in combination with FIG. 1 and FIG. 2 , in the method provided by an embodiment of the present invention, the hardware firewall connected to the second leaf switch is connected to the second leaf switch through a target interface, and the target interface is a Layer 2 aggregation interface configured as a port aggregation interface;

[0081] The hardware firewall connected to the second leaf switch is configured with multiple layer-3 sub-interfaces and multiple virtual routing forwarding instances, and the multiple layer-3 sub-interfaces and the multiple virtual routing forwarding instances are bound in a one-to-one correspondence.

[0082] In the method provided by the embodiment of the present invention, each hardware firewall in the platform is connected to the second leaf switch through a Layer 2 aggregation interface. The interface is configured as a port aggregation interface, that is, a trunk port, which can pass through all virtual local area networks (VLANs). Each hardware firewall in the platform is configured with multiple Layer 3 sub-interfaces and multiple virtual routing forwarding instances (VRFs). Each Layer 3 sub-interface on the hardware firewall is bound to each VRF in a one-to-one correspondence, that is, each Layer 3 sub-interface is bound to a separate VRF.

[0083] Based on the method provided in the above embodiment, in the method provided in the embodiment of the present invention, the process of sending the second traffic message to the target hardware firewall mentioned in step S204 includes:

[0084] According to the pre-configured policy routing, the target three-layer sub-interface corresponding to the second traffic message is determined in each three-layer sub-interface of the target hardware firewall, and the second traffic message is sent to the virtual routing forwarding instance bound to the target three-layer sub-interface through the target three-layer sub-interface to send the second traffic message to the target hardware firewall.

[0085] In the method provided by an embodiment of the present invention, the target second leaf switch can find a Layer 3 sub-interface that matches the current network traffic among the various Layer 3 sub-interfaces of the target hardware firewall based on pre-configured policy routing, and use the Layer 3 sub-interface as the target Layer 3 sub-interface. The second traffic message is sent to the target Layer 3 sub-interface, so that the second traffic message enters the VRF bound to the target Layer 3 sub-interface through the target Layer 3 sub-interface, so that the second traffic message reaches the target hardware firewall, and the target hardware firewall can perform security detection on the current network traffic on the VRF.

[0086] Based on the method provided in the embodiment of the present invention, the hardware firewall can perform security detection on network traffic based on VRF, and can isolate the traffic of each tenant on the hardware firewall.

[0087] Based on the method provided in combination with FIG. 1 and FIG. 2 , in the method provided by the embodiment of the present invention, session synchronization is performed between the hardware firewalls connected to the second leaf switch based on a preset remote backup management protocol.

[0088] In the method provided by an embodiment of the present invention, the hardware firewalls connected to each second leaf switch in the platform synchronize session information based on the Remote Backup Management (RBM) protocol, that is, each second leaf switch is connected to a hardware firewall cluster based on the RBM protocol, and the hardware firewalls in the cluster can back up each other.

[0089] Based on the method provided by the embodiment of the present invention, the session information between the hardware firewalls connected to the second leaf switch is synchronized, which can improve the reliability of the security detection service and achieve high load reliability.

[0090] Based on the method provided in combination with FIG. 1 and FIG. 2 , the method provided in the embodiment of the present invention further includes:

[0091] If the security detection result indicates that the network traffic is normal traffic, the target hardware firewall sends the second traffic message to the target second leaf switch;

[0092] In the method provided by the embodiment of the present invention, if the security detection result of the target hardware firewall on the current network traffic indicates that it is normal traffic, the target hardware firewall returns the second traffic message to the target second leaf switch.

[0093] The target second leaf switch determines the target address corresponding to the second flow message, performs virtual extended LAN message encapsulation processing on the second flow message based on the target address, obtains a third flow message corresponding to the network flow, and forwards the third flow message through the spine switch and the first switch cluster to enable the network flow to reach the target address.

[0094] In the method provided by the embodiment of the present invention, the target second leaf switch parses the second traffic message to obtain its corresponding target address, that is, the address of the destination of the current network traffic. The target second leaf switch can determine its forwarding path based on the target address, and accordingly encapsulate the second traffic message into a virtual extended local area network message, and use the encapsulated VXLAN message as the third traffic message. The third traffic message is then forwarded via the spine switch and the leaf switches in the first switch cluster, which is also the forwarding of the current network traffic, so that the network traffic reaches the target address, that is, the network traffic is forwarded to the destination it is supposed to reach, completing the transmission of the network traffic.

[0095] Based on the method provided in the above embodiment, in the method provided in the embodiment of the present invention, if the network traffic is east-west traffic, the process of forwarding the third traffic message through the spine switch and the first switch cluster so that the network traffic reaches the destination address includes:

[0096] The target second leaf switch sends the third traffic message to the spine switch;

[0097] In the method provided by an embodiment of the present invention, if the current network traffic is east-west traffic, i.e., traffic between tenant virtual machines within the cloud platform, the target second leaf switch, upon receiving the third traffic message, sends the third traffic message to the spine switch, causing the spine switch to forward the current network traffic.

[0098] The spine switch determines, in the first switch cluster, a target first leaf switch corresponding to the target address, and sends the third flow packet to the target first leaf switch;

[0099] In the method provided by an embodiment of the present invention, the spine switch can find the first leaf switch associated with the target address in the first switch cluster based on the routing information, use it as the target first leaf switch, and send the third traffic message to the target first leaf switch, so that the target first leaf switch can further forward the current network traffic.

[0100] The target first leaf switch determines the second virtual switch corresponding to the target address among the virtual switches connected thereto, and sends the third flow packet to the second virtual switch;

[0101] In the method provided by an embodiment of the present invention, after receiving the third traffic packet, the target first leaf switch can use routing information to find the virtual switch associated with the target address among its connected virtual switches and use that virtual switch as the second virtual switch. The third traffic packet is then sent to that virtual switch, which then forwards the current network traffic.

[0102] The second virtual switch performs virtual extended local area network message decapsulation processing on the third flow message to obtain a fourth flow message corresponding to the network flow;

[0103] The second virtual switch determines, among the tenant virtual machines connected thereto, a target tenant virtual machine corresponding to the target address, and sends the fourth traffic message to the target tenant virtual machine.

[0104] In the method provided by an embodiment of the present invention, after receiving the third traffic message, the second virtual switch performs VXLAN message decapsulation on the third traffic message and uses the decapsulated message as the fourth traffic message. Based on the routing information, the second virtual switch finds the tenant virtual machine associated with the target address among the tenant virtual machines connected to the second virtual switch, uses the tenant virtual machine as the target tenant virtual machine, and sends the fourth traffic message to the tenant virtual machine so that the current network traffic reaches the target tenant virtual machine. The current network traffic is the traffic that the tenant virtual machine sending the network traffic wants to send to the target tenant virtual machine.

[0105] In order to better illustrate the method provided by the embodiment of the present invention, based on the method provided by the above embodiment and in combination with actual application scenarios, the flow process of network traffic in the method provided by the embodiment of the present invention is illustrated by example.

[0106] For example, as shown in Figure 4, leaf switch 1 (i.e., the first leaf switch) is connected to virtual switch 1 (OVS1) and virtual switch 2 (OVS2). Tenant VM 1, connected to virtual switch 1, sends network traffic to tenant VM 4. This traffic needs to pass through the hardware firewall for security protection. The SDN controller pre-delivers a flow table to OVS1, directing traffic from each tenant VM connected to OVS1 to pass through OVS1 on the compute node for processing. Based on its configuration, OVS1, upon receiving traffic from tenant VM 1, encapsulates it with VXLAN. The destination address of the VXLAN packet header is leaf switch 2 (i.e., the second leaf switch), with a vxlan ID of 100. The packet then passes through the physical network devices leaf switch 1 and spine switch to leaf switch 2, where it undergoes VXLAN decapsulation. The SDN controller pre-delivers policy routing configuration to leaf switch 2. Policy routing aggregates the outbound interface of the decapsulated VXLAN packet with the interface of the hardware firewall. When processing the current traffic, Leaf Switch 2 can use policy-based routing to forward the traffic to VLAN 100. The traffic then enters a VRF through the hardware firewall's Layer 3 sub-interface. This VRF is pre-configured with a default route, and the outbound interface is the Layer 3 sub-interface through which the traffic entered. The VRF on the hardware firewall applies security rules to the traffic. After the hardware firewall completes its security rule enforcement, if the traffic is allowed to flow, it returns to Leaf Switch 2 with the VLAN header 100. Leaf Switch 2 then maps the traffic from VLAN 100 to VXLAN 101, with the destination address being OVS2. After the traffic reaches OVS2, OVS2 decapsulates the traffic and directs it to the destination address, Tenant VM 4, completing the traffic forwarding. The SDN controller can centrally distribute the switch and hardware firewall configurations throughout the entire process via the NETCONF channel. The SDN controller uniformly allocates VLANs and VXLAN IDs, and uniformly manages the conversion relationship between VXLAN IDs and VLANs, ensuring that one VXLAN ID corresponds to one VLAN header, thus achieving VPC traffic isolation.

[0107] Based on the method provided in the above embodiment, in the method provided in the embodiment of the present invention, the first switch cluster further includes a third leaf switch, and the third leaf switch is connected to the internet gateway and the service gateway respectively; if the network traffic is north-south traffic, the process of forwarding the third traffic message through the spine switch and the first switch cluster so that the network traffic reaches the destination address includes:

[0108] The target second leaf switch sends the third traffic message to the spine switch;

[0109] The spine switch sends the third traffic message to the third leaf switch;

[0110] In the method provided by the embodiment of the present invention, a third leaf switch is further deployed in the first switch cluster, and the third leaf switch is a leaf switch for connecting various gateways. The third leaf switch is respectively connected to the Internet gateway IGW and the service gateway SGW.

[0111] In the method provided by an embodiment of the present invention, if the current network traffic is north-south traffic, that is, traffic between the cloud platform and the external network, the target second leaf switch, after receiving the third traffic message, sends the third traffic message to the spine switch, causing the spine switch to forward the third traffic message to the third leaf switch.

[0112] The third leaf switch sends the third traffic message to the Internet gateway;

[0113] In the method provided by the embodiment of the present invention, after receiving the third traffic message, the third leaf switch forwards it to the IGW.

[0114] The internet gateway performs virtual extended local area network message decapsulation processing on the third traffic message to obtain a fifth traffic message corresponding to the network traffic;

[0115] The internet gateway performs network address translation on the target address to obtain a public network address corresponding to the target address, and performs virtual extended local area network message encapsulation on the fifth traffic message based on the public network address to obtain a sixth traffic message corresponding to the network traffic;

[0116] The internet gateway sends the sixth traffic message to the service gateway through the third leaf switch;

[0117] In the method provided by an embodiment of the present invention, the third traffic packet is decapsulated as a VXLAN packet on the IGW, and the decapsulated packet is used as the fifth traffic packet. After the IGW performs NAT mapping on the target address, it obtains its corresponding public network address, and encapsulates the fifth traffic packet as a VXLAN packet based on the public network address. The encapsulated VXLAN packet is used as the sixth traffic packet, and the sixth traffic packet is sent to the SGW via the third leaf switch.

[0118] The service gateway performs virtual extended local area network message decapsulation processing on the sixth traffic message to obtain a seventh traffic message corresponding to the network traffic, and sends the seventh traffic message to the public network.

[0119] In the method provided by the embodiment of the present invention, the SGW performs VXLAN message decapsulation on the sixth traffic message, uses the message obtained after decapsulation as the seventh traffic message, performs traffic speed limiting, and then sends the seventh traffic message to the public network.

[0120] In order to better illustrate the method provided by the embodiment of the present invention, based on the method provided by the above embodiment and in combination with actual application scenarios, the flow process of network traffic in the method provided by the embodiment of the present invention is described in detail.

[0121] For example, as shown in Figure 5, the platform is deployed with leaf switch 3 (i.e., the third leaf switch), which connects the Internet gateway IGW, the service gateway SGW, and the access gateway AGW. The other objects in Figure 5 are the same as the corresponding objects shown in Figure 4. Please refer to the previous description and will not be repeated here.

[0122] In an embodiment of the present invention, virtual switch 1 sends out network traffic that needs to access the public network. The network traffic flows through leaf switch 1, spine switch, and leaf switch 2 to the hardware firewall for security detection. This part of the flow process is similar to the process of traffic flowing to the hardware firewall for security detection in the flow process shown in Figure 4. Please refer to the description in the previous embodiment and will not be repeated here. In an embodiment of the present invention, after the traffic comes out of the hardware firewall and reaches leaf switch 2, the destination address of the VXLAN message encapsulation is the address of the IGW, and then the traffic is sent to leaf switch 3 via the spine switch. Leaf switch 3 sends the traffic to IGW. The traffic is decapsulated as a VXLAN message on the IGW, and then NAT mapping of the public network address is performed. VXLAN encapsulation is added, and the encapsulated message is sent to the SGW via leaf switch 3. After VXLAN decapsulation on the SGW, traffic speed is limited, and then it goes directly out of the public network.

[0123] In order to better illustrate the method provided by the embodiment of the present invention, based on the methods provided by the above embodiments, the security protection method provided by the embodiment of the present invention is further briefly described. The security protection process provided by the embodiment of the present invention mainly includes:

[0124] A hardware firewall cluster is attached to a leaf switch. Each hardware firewall in the cluster synchronizes firewall session information using the RBM protocol. The hardware firewall connects to the leaf switch using a Layer 2 aggregation interface configured as a trunk port that allows all VLANs to pass. The SDN controller distributes connection configurations to the upstream leaf switch and the hardware firewall itself. Each VPC is assigned a VLAN on the hardware firewall and the upstream leaf switch, which isolates traffic between VPCs. VXLAN packets from the OVS are decapsulated on the leaf switch and then directed to the corresponding Layer 3 sub-interface of the hardware firewall using policy-based routing. Each Layer 3 sub-interface on the hardware firewall is bound to a separate VRF, isolating tenant traffic on the hardware firewall. Outgoing traffic on the hardware firewall is differentiated between east-west and north-south traffic. East-west traffic can be directed to the corresponding VXLAN using policy-based routing and forwarded to the corresponding destination OVS. North-south traffic can be directed to VXLAN encapsulation using policy-based routing and forwarded to the IGW for forwarding. Configurations for the hardware firewall and its upstream leaf switch are distributed by the SDN controller via the NETCONF channel.

[0125] Based on the method provided by the embodiment of the present invention, a hardware firewall can be deployed and configured on OVS to direct traffic that requires security protection processing to the hardware firewall. At the same time, high load reliability can be achieved through the session synchronization technology of the hardware firewall, which can not only improve the traffic throughput of the hardware firewall in the entire cloud, but also make full use of resources, allowing multiple tenants to share the hardware firewall. In addition, the hardware firewall can be implemented by existing facilities in actual business scenarios and can utilize old resources.

[0126] Based on the method provided in combination with FIG. 1 and FIG. 2 , the method provided in the embodiment of the present invention further includes:

[0127] Collecting network performance statistics corresponding to the first switch cluster and network performance statistics corresponding to the second switch cluster;

[0128] In the method provided in an embodiment of the present invention, a monitoring system can be deployed to collect information from various leaf switches, hardware firewalls, virtual switches, and other nodes in the platform to obtain network performance statistics for each node. Specifically, an information collection module can be deployed at each node to collect various network performance statistics on the node, including the bit rate (bps) of packets at the network card, VPC, CPU, subnet, and number of connections, as well as the number of packets per second (pps), delay and packet loss statistics, and the content of discarded packets.

[0129] In the method provided in an embodiment of the present invention, network performance statistics corresponding to a first switch cluster and network performance statistics corresponding to a second switch cluster are collected. Specifically, an information collection module is deployed in each first leaf switch and each second leaf switch, and network performance statistics are collected for each first leaf switch and each second leaf switch. The network performance statistics of each first leaf switch serve as the network performance statistics corresponding to the first switch cluster, and the network performance statistics of each second leaf switch serve as the network performance statistics corresponding to the second switch cluster.

[0130] Collecting network performance statistics corresponding to each virtual switch connected to the first leaf switch in the first switch cluster;

[0131] In the method provided by the embodiment of the present invention, each virtual switch information collection module in the platform collects network performance statistical data of each virtual switch to obtain network performance statistical information corresponding to each virtual switch.

[0132] Collecting network performance statistics corresponding to each hardware firewall connected to the second leaf switch in the second switch cluster;

[0133] In the method provided by the embodiment of the present invention, an information collection module is deployed on each hardware firewall in the platform to collect network performance statistics of each hardware firewall to obtain network performance statistics corresponding to each hardware firewall.

[0134] The network performance statistics corresponding to the first switch cluster, the network performance statistics corresponding to the second switch cluster, the network performance statistics corresponding to each virtual switch, and the network performance statistics corresponding to each hardware firewall are sent to a preset operation and maintenance system to facilitate data display by the operation and maintenance system.

[0135] In the method provided in the embodiment of the present invention, the network performance statistical information of each node can be summarized and sent to a preset operation and maintenance system, and data of various network performance statistical information can be displayed on the operation and maintenance system.

[0136] On the basis of the method provided in the above embodiment, the method provided in the embodiment of the present invention further includes:

[0137] Monitoring whether each of the hardware firewalls is in a fault state;

[0138] When it is monitored that each of the hardware firewalls is in a faulty state, for each virtual switch connected to the first leaf switch, the traffic forwarding mechanism of the virtual switch is changed so that the virtual switch forwards traffic according to the original path of the traffic message.

[0139] In the method provided by the embodiment of the present invention, the operating status of each hardware firewall can also be monitored by a monitoring system to detect whether each hardware firewall is in a faulty state. When it is detected that all hardware firewalls are in a faulty state, the traffic forwarding mechanism of each virtual switch in the platform is changed. That is, when the hardware firewalls are operating normally, the traffic forwarding mechanism of the virtual switch is to direct traffic to the hardware firewall for security testing. When all hardware firewalls are faulty, the traffic forwarding mechanism is changed to forward traffic according to the original path of the traffic, and forward the traffic directly to its destination.

[0140] Based on the method provided by the embodiment of the present invention, when all hardware firewalls fail, the processing of the hardware firewalls can be skipped, which is conducive to ensuring the normal operation of the business.

[0141] In order to better illustrate the method provided by the embodiment of the present invention, based on the method provided by the above embodiment, combined with actual application scenarios, an example of a monitoring system for implementing network performance statistical information collection and hardware firewall status monitoring is given. The architecture of the monitoring system mentioned in the embodiment of the present invention can be shown in Figure 6. It should be noted that the architecture shown in Figure 6 is only a simplified schematic diagram provided to better illustrate the method of the present invention. It does not show all information collection objects in actual application scenarios, nor does it limit the architecture deployment in actual application scenarios.

[0142] The monitoring system is responsible for collecting network performance statistics for all compute nodes, leaf switches, hardware firewalls, and virtual switches, and reporting this data to the operations and maintenance (O&M) or product monitoring system. The sys-agent module is deployed on each compute node, leaf switch, hardware firewall, virtual switch, xGW gateway, load balancing service (LB), and other nodes to obtain relevant statistics from virtual switches, DPOS, and physical device switches. The collected statistics include packet bit-per-second (bps), packet-per-second (pps), latency and packet loss statistics, and the content of discarded packets at the network card, VPC, CPU, subnet, and connection level. Data from each node can be sent to the search engine ES. At the same time, statistics from the real-time network monitoring tool netprobe and the data center DTC are also written to ES. The virtual network controller vnet-controller is responsible for reading all statistics from ES and presenting the data to the O&M system via Kafka.

[0143] The operating status of the hardware firewall cluster is monitored through the monitoring system. When the SDN controller finds that the entire hardware firewall cluster has failed, it directly changes the destination IP address of the VXLAN of the traffic. Instead of sending the traffic to the leaf switch connected to the hardware firewall, it sends it directly to the destination OVS or IGW, which is equivalent to bypassing the hardware firewall. When the monitoring system detects that the hardware firewall cluster is normal, it forwards the traffic according to the previous process.

[0144] Corresponding to the security protection method provided in conjunction with FIG. 1 and FIG. 2 , an embodiment of the present invention further provides a cloud platform for implementing the above method. An example diagram of the architecture of the cloud platform may be shown in FIG. 1 . The cloud platform includes:

[0145] A spine switch 101, a first switch cluster, and a second switch cluster; the first switch cluster includes at least one first leaf switch 102, and the second switch cluster includes at least one second leaf switch 103; the first leaf switch 102 is connected to multiple virtual switches 104, each of the virtual switches 104 is connected to multiple tenant virtual machines 105, and the second leaf switch 103 is connected to multiple hardware firewalls 106;

[0146] The virtual switch is configured to, upon receiving network traffic sent by a connected tenant virtual machine, determine a target second leaf switch corresponding to the network traffic in the second switch cluster; perform virtual extended LAN message encapsulation processing on the network traffic based on the address of the target second leaf switch to obtain a first flow message corresponding to the network traffic; and send the first flow message to the target second leaf switch through the first leaf switch and the spine switch connected to the virtual switch;

[0147] The target second leaf switch is configured to perform virtual extended LAN message decapsulation processing on the first flow message to obtain a second flow message corresponding to the network flow; determine a target hardware firewall corresponding to the network flow among the hardware firewalls connected to the target second leaf switch, and send the second flow message to the target hardware firewall;

[0148] The target hardware firewall is used to perform security detection on the network traffic based on the second traffic message to obtain a security detection result. If the security detection result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform.

[0149] The cloud platform provided by the embodiment of the present invention is connected to multiple hardware firewalls. When the virtual switch receives network traffic that needs to be transmitted by a tenant virtual machine, it can direct the network traffic to the hardware firewall for security testing. The tenants of the cloud platform can share the hardware firewall in the cloud platform for security protection, eliminating the need for each tenant to deploy a virtual firewall on their own. This helps reduce security protection costs and improve resource utilization. In addition, in actual business scenarios, some tenants have the security protection needs of using hardware firewalls. The cloud platform provided by the embodiment of the present invention can meet the security protection needs of tenants using hardware firewalls and improve user experience.

[0150] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.

[0151] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0152] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A safety protection method, characterized in that: The method is applied to a cloud platform, the cloud platform comprising: a spine switch, a first switch cluster and a second switch cluster; the first switch cluster comprises at least one first leaf switch, the second switch cluster comprises at least one second leaf switch; the first leaf switch is connected to a plurality of virtual switches, each of the virtual switches is connected to a plurality of tenant virtual machines, and the second leaf switch is connected to a plurality of hardware firewalls; the method comprises: When the first virtual switch receives network traffic sent by the tenant virtual machine connected to it, the first virtual switch determines a target second leaf switch corresponding to the network traffic in the second switch cluster; the first virtual switch is a virtual switch connected to the first leaf switch in the first switch cluster; The first virtual switch performs virtual extended LAN message encapsulation processing on the network traffic based on the address of the target second leaf switch, obtains a first flow message corresponding to the network traffic, and sends the first flow message to the target second leaf switch through the first leaf switch and the spine switch connected to the first virtual switch; The target second leaf switch performs virtual extended LAN message decapsulation processing on the first flow message to obtain a second flow message corresponding to the network flow; The target second leaf switch determines the target hardware firewall corresponding to the network traffic among the hardware firewalls connected thereto, and sends the second traffic message to the target hardware firewall; The target hardware firewall performs a security check on the network traffic based on the second traffic message to obtain a security check result. If the security check result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform.

2. The method according to claim 1, characterized in that The hardware firewall connected to the second leaf switch is connected to the second leaf switch through a target interface, where the target interface is a layer 2 aggregation interface configured as a port aggregation interface; The hardware firewall connected to the second leaf switch is configured with multiple layer-3 sub-interfaces and multiple virtual routing forwarding instances, and the multiple layer-3 sub-interfaces and the multiple virtual routing forwarding instances are bound in a one-to-one correspondence.

3. The method according to claim 2, characterized in that The sending the second traffic message to the target hardware firewall includes: According to the pre-configured policy routing, the target layer 3 sub-interface corresponding to the second traffic message is determined in each layer 3 sub-interface of the target hardware firewall, and the second traffic message is sent to the virtual routing forwarding instance bound to the target layer 3 sub-interface through the target layer 3 sub-interface, so as to send the second traffic message to the target hardware firewall.

4. The method according to claim 1, characterized in that: The hardware firewalls connected to the second leaf switch perform session synchronization based on a preset remote backup management protocol.

5. The method according to claim 1, characterized in that Also includes: If the security detection result indicates that the network traffic is normal traffic, the target hardware firewall sends the second traffic message to the target second leaf switch; The target second leaf switch determines the target address corresponding to the second flow message, performs virtual extended LAN message encapsulation processing on the second flow message based on the target address, obtains the third flow message corresponding to the network flow, and forwards the third flow message through the spine switch and the first switch cluster so that the network flow reaches the target address.

6. The method according to claim 5, characterized in that If the network traffic is east-west traffic, the process of forwarding the third traffic message through the spine switch and the first switch cluster so that the network traffic reaches the destination address includes: The target second leaf switch sends the third flow message to the spine switch; The spine switch determines, in the first switch cluster, a target first leaf switch corresponding to the target address, and sends the third flow message to the target first leaf switch; The target first leaf switch determines the second virtual switch corresponding to the target address among the virtual switches connected to it, and sends the third flow message to the second virtual switch; The second virtual switch performs virtual extended local area network message decapsulation processing on the third flow message to obtain a fourth flow message corresponding to the network flow; The second virtual switch determines, among the tenant virtual machines connected to it, a target tenant virtual machine corresponding to the target address, and sends the fourth traffic message to the target tenant virtual machine.

7. The method according to claim 5, characterized in that The first switch cluster further includes a third leaf switch, and the third leaf switch is connected to an Internet gateway and a service gateway respectively; if the network traffic is north-south traffic, the process of forwarding the third traffic message through the spine switch and the first switch cluster so that the network traffic reaches the target address includes: The target second leaf switch sends the third flow message to the spine switch; The spine switch sends the third traffic message to the third leaf switch; The third leaf switch sends the third traffic message to the Internet gateway; The Internet gateway performs virtual extended local area network message decapsulation processing on the third flow message to obtain a fifth flow message corresponding to the network flow; The Internet gateway performs network address translation processing on the target address to obtain a public network address corresponding to the target address, and performs virtual extended local area network message encapsulation processing on the fifth flow message based on the public network address to obtain a sixth flow message corresponding to the network flow; The Internet gateway sends the sixth traffic message to the service gateway through the third leaf switch; The service gateway performs virtual extended LAN message decapsulation processing on the sixth flow message to obtain a seventh flow message corresponding to the network flow, and sends the seventh flow message to the public network.

8. The method according to claim 1, characterized in that Also includes: Collecting network performance statistics corresponding to the first switch cluster and network performance statistics corresponding to the second switch cluster; Collecting network performance statistics corresponding to each virtual switch connected to the first leaf switch in the first switch cluster; Collecting network performance statistics corresponding to each hardware firewall connected to the second leaf switch in the second switch cluster; The network performance statistics corresponding to the first switch cluster, the network performance statistics corresponding to the second switch cluster, the network performance statistics corresponding to each of the virtual switches, and the network performance statistics corresponding to each of the hardware firewalls are sent to a preset operation and maintenance system to facilitate data display by the operation and maintenance system.

9. The method according to claim 1, characterized in that: Also includes: Monitoring whether each of the hardware firewalls is in a fault state; When it is monitored that each of the hardware firewalls is in a faulty state, for each virtual switch connected to the first leaf switch, the traffic forwarding mechanism of the virtual switch is changed so that the virtual switch forwards traffic according to the original path of the traffic message.

10. A cloud platform, characterized in that: include: A spine switch, a first switch cluster, and a second switch cluster; the first switch cluster includes at least one first leaf switch, and the second switch cluster includes at least one second leaf switch; the first leaf switch is connected to a plurality of virtual switches, each of the virtual switches is connected to a plurality of tenant virtual machines, and the second leaf switch is connected to a plurality of hardware firewalls; The virtual switch is used to, when receiving network traffic sent by a tenant virtual machine connected to it, determine a target second leaf switch corresponding to the network traffic in the second switch cluster; based on the address of the target second leaf switch, perform virtual extended LAN message encapsulation processing on the network traffic to obtain a first traffic message corresponding to the network traffic, and send the first traffic message to the target second leaf switch through the first leaf switch and the spine switch connected to the virtual switch; The target second leaf switch is used to perform virtual extended LAN message decapsulation processing on the first flow message to obtain a second flow message corresponding to the network flow; determine the target hardware firewall corresponding to the network flow among the hardware firewalls connected to the target second leaf switch, and send the second flow message to the target hardware firewall; The target hardware firewall is used to perform security detection on the network traffic based on the second traffic message to obtain a security detection result. If the security detection result indicates that the network traffic is abnormal traffic, the network traffic is intercepted to provide security protection for the cloud platform.

Citation Information

Patent Citations

  • Tenant isolating method and system

    CN104579898A

  • Method and device for realizing virtual firewall in software defined network

    CN105656841A

  • System and method for providing scalable flow monitoring in a data center fabric

    CN110945838A

  • Controlled micro fault injection on a distributed appliance

    US20180367435A1

  • Systems and methods for forming on-premise virtual private cloud resources

    US20210112000A1

Cited By

  • Gateway load balancing method, device, equipment and storage medium

    CN119728693A

  • Data transmission method and device, computer equipment and storage medium

    CN119743289A

  • Data transmission method, device, computer equipment and storage medium

    CN119743289B