Traffic detection method and device, computer equipment and readable storage medium

By building a mirror network and using mirror switches and security service nodes, full traffic detection of north-south, east-west and database traffic in the data center is achieved, which solves the problem of being unable to detect east-west traffic in traditional technology and improves the security of the data center. sex.

CN118646593APending Publication Date: 2024-09-13CHINA ELECTRONICS JINXIN DIGITAL TECH GRP CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411008777.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In traditional technology, data centers can only detect north-south traffic and cannot detect east-west traffic, resulting in poor security.

Method used

By building a mirror network and using mirror switches, traffic collection and analysis nodes, and security service nodes, full traffic detection of north-south traffic, east-west traffic, and database traffic is achieved. The mirror switch directs north-south traffic and database traffic to the security service node, and the virtual client component and security container component forward the east-west traffic to the security service node for comprehensive inspection.

Benefits of technology

Without affecting the bandwidth and stability of the normal business network, it can detect various types of traffic in the data center and improve the security of the data center.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646593A
    Figure CN118646593A
Patent Text Reader

Abstract

The invention relates to a traffic detection method and device, computer equipment and a computer readable storage medium. The traffic detection method is applied to a bypass server, a mirror image network constructed by the bypass server is a bypass network corresponding to a service network, and the bypass server comprises a mirror image switch, a traffic collection and analysis node and a security service node. The method comprises the following steps of: draining south-north flow and database flow to a security service node according to a mirror image switch; forwarding east-west traffic to a security service node based on a virtual client component and a security container component contained in the traffic collection and analysis node; and detecting the database traffic, the north-south traffic and the east-west traffic according to the security service node to obtain a full-traffic detection result. By adopting the method, the security of the data center can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud technology security technology, and in particular to a traffic detection method, device, computer equipment and computer-readable storage medium. Background Art

[0002] With the development of cloud computing technology, the means of attack against cloud services are also constantly evolving, so it is necessary to perform security testing on the traffic in the data center.

[0003] In traditional technology, the north-south traffic received by the data center is the traffic data sent by the client to the data center server. The north-south traffic is identified and analyzed through independent firewall devices or core switches with integrated firewalls, and attack behaviors in the north-south traffic are detected to achieve traffic detection in the data center.

[0004] However, in traditional technologies, since only a single type of traffic is detected in the data center, east-west traffic cannot be detected, resulting in poor security of the data center. Summary of the invention

[0005] Based on this, it is necessary to provide a flow detection method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.

[0006] In a first aspect, the present application provides a traffic detection method, which is applied to a bypass server, wherein a mirror network constructed by the bypass server is a bypass network corresponding to a service network, and the bypass server includes a mirror switch, a traffic collection and analysis node, and a security service node, and the method includes:

[0007] Directing north-south traffic and database traffic to the security service node according to the mirror switch;

[0008] Forwarding east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node;

[0009] The database traffic, the north-south traffic and the east-west traffic are detected according to the security service node to obtain a full traffic detection result.

[0010] In one embodiment, the east-west traffic includes virtual machine traffic in a virtual network environment and container traffic in a containerized environment; the method of forwarding the east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node includes:

[0011] Acquire the virtual machine traffic based on the virtual client component, and acquire the container traffic based on the secure container component;

[0012] forwarding the virtual machine traffic to the security service node according to the virtual client component and virtual extended local area network technology;

[0013] The container traffic is forwarded to the security service node according to the secure container component and daemon set technology.

[0014] In one embodiment, forwarding east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node includes:

[0015] Limiting the forwarding rate of the east-west traffic according to a preset traffic speed limiting method to obtain a target forwarding rate;

[0016] According to the virtual client component and the security container component included in the traffic collection and analysis node, the east-west traffic is forwarded to the security service node according to the target forwarding rate.

[0017] In one embodiment, directing north-south traffic and database traffic to the security service node according to the mirror switch includes:

[0018] Direct north-south traffic to security service nodes based on edge switches and mirror switches;

[0019] Based on the first access switch corresponding to the business cloud node and the mirror switch, the database traffic is directed to the security service node.

[0020] In one embodiment, directing north-south traffic to a security service node based on a border switch and a mirror switch includes:

[0021] Receive north-south traffic based on the border switch;

[0022] Mirroring the north-south traffic based on the border switch to obtain first mirrored traffic;

[0023] The first mirrored traffic is transmitted to a mirrored switch based on the border switch, and the first mirrored traffic is directed to a security service node according to the mirrored switch.

[0024] In one embodiment, the first access switch and the mirror switch corresponding to the service cloud node direct the database traffic to the security service node, including:

[0025] Mirroring the database traffic based on the first access switch corresponding to the service cloud node to obtain second mirrored traffic;

[0026] The database backup traffic in the second mirror traffic is filtered through the first access switch to obtain target mirror traffic, and the target mirror traffic is input to the security service node.

[0027] In one embodiment, after filtering the database backup traffic in the second mirror traffic through the mirror switch to obtain the target mirror traffic, the method further includes:

[0028] The full amount of the second mirrored traffic is input into the database audit device through the mirrored switch.

[0029] In a second aspect, the present application also provides a flow detection device, comprising:

[0030] A traffic diversion module, used for diverting north-south traffic and database traffic to the security service node according to the mirror switch;

[0031] A forwarding module, configured to forward east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node;

[0032] The detection module is used to detect the database traffic, the north-south traffic and the east-west traffic according to the security service node to obtain a full traffic detection result.

[0033] In one embodiment, the east-west traffic includes virtual machine traffic in a virtual network environment and container traffic in a containerized environment; the forwarding module is specifically used to obtain the virtual machine traffic based on the virtual client component and obtain the container traffic based on the secure container component;

[0034] forwarding the virtual machine traffic to the security service node according to the virtual client component and virtual extended local area network technology;

[0035] The container traffic is forwarded to the security service node according to the secure container component and daemon set technology.

[0036] In one of the embodiments, the forwarding module is specifically used to limit the forwarding rate of the east-west traffic according to a preset traffic speed limiting method to obtain a target forwarding rate;

[0037] According to the virtual client component and the security container component included in the traffic collection and analysis node, the east-west traffic is forwarded to the security service node according to the target forwarding rate.

[0038] In one of the embodiments, the traffic diversion module is specifically used to divert north-south traffic to the security service node according to the edge switch and the mirror switch;

[0039] Based on the first access switch corresponding to the business cloud node and the mirror switch, the database traffic is directed to the security service node.

[0040] In one of the embodiments, the traffic diversion module is specifically used to receive north-south traffic according to the boundary switch;

[0041] Mirroring the north-south traffic based on the border switch to obtain first mirrored traffic;

[0042] The first mirrored traffic is transmitted to a mirrored switch based on the border switch, and the first mirrored traffic is directed to a security service node according to the mirrored switch.

[0043] In one of the embodiments, the traffic diversion module is specifically used to mirror the database traffic based on the first access switch corresponding to the service cloud node to obtain the second mirrored traffic;

[0044] The database backup traffic in the second mirror traffic is filtered through the first access switch to obtain target mirror traffic, and the target mirror traffic is input to the security service node.

[0045] In one embodiment, the device further comprises:

[0046] An input module is used to input the full flow of the second mirrored flow into the database audit device through the mirrored switch.

[0047] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0048] Directing north-south traffic and database traffic to the security service node according to the mirror switch;

[0049] Forwarding east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node;

[0050] The database traffic, the north-south traffic and the east-west traffic are detected according to the security service node to obtain a full traffic detection result.

[0051] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0052] Directing north-south traffic and database traffic to the security service node according to the mirror switch;

[0053] Forwarding east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node;

[0054] The database traffic, the north-south traffic and the east-west traffic are detected according to the security service node to obtain a full traffic detection result.

[0055] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0056] Directing north-south traffic and database traffic to the security service node according to the mirror switch;

[0057] Forwarding east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node;

[0058] The database traffic, the north-south traffic and the east-west traffic are detected according to the security service node to obtain a full traffic detection result.

[0059] The above-mentioned traffic detection method, device, computer equipment, computer-readable storage medium and computer program product, through the mirror network constructed by the bypass server, can divert the north-south traffic and database traffic respectively through the boundary switch, mirror switch and traffic collection and analysis node without affecting the network bandwidth and stability of the normal business network, not only to realize the diversion of north-south traffic, but also to forward the east-west traffic through the virtual client component and the security container component, and to divert the database traffic to the security service node according to the mirror switch, and realize the detection of north-south traffic, east-west traffic and data traffic through the security service node, and realize the detection of various types of traffic in the data center, thereby improving the security of the data center. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 An application environment diagram of a flow detection method in an embodiment;

[0062] Figure 2 A schematic diagram of a flow chart of a flow detection method in an embodiment;

[0063] Figure 3 A schematic diagram of traffic flow of traffic multiplexing in one embodiment;

[0064] Figure 4 A schematic diagram of a process of forwarding east-west traffic in an embodiment;

[0065] Figure 5 A schematic diagram of diverting and forwarding various types of traffic in one embodiment;

[0066] Figure 6 A schematic diagram of a process for limiting the speed of east-west traffic forwarding in an embodiment;

[0067] Figure 7 A schematic diagram of a process for diverting north-south traffic and database traffic in one embodiment;

[0068] Figure 8 A detailed flowchart of north-south traffic mirroring and diversion in one embodiment;

[0069] Fig. 9 A schematic diagram of a process of filtering and diverting database traffic in one embodiment;

[0070] Fig.10 is a structural block diagram of a flow detection device in one embodiment;

[0071] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0073] The flow detection method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the bypass server 102 communicates with the original network server 104 through the network. The mirror network constructed by the bypass server 102 is the bypass network corresponding to the business network in the original network server 104. The bypass server includes a mirror switch (TAP switch, Terminal Access Point, a hardware device dedicated to mirroring network traffic), a traffic collection and analysis node and a security service node. The traffic collection and analysis node (including a security container component and a virtual client component) is set in the business VPC (Virtual Private Cloud, private cloud network), that is, the business cloud node, the security service node (cloud security resource pool) is set in the management VPC, that is, the management cloud node, the virtual client component is set in the application virtual machine, and the security container component is set in the container node. The bypass server 102 directs the north-south traffic and database traffic to the security service node according to the mirror switch; the bypass server 102 forwards the east-west traffic to the security service node based on the virtual client component and the security container component contained in the traffic collection and analysis node; the bypass server 102 detects the database traffic, north-south traffic and east-west traffic according to the security service node to obtain the full traffic detection result. The bypass server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0074] In an exemplary embodiment, Figure 2 As shown, a flow detection method is provided, which is applied to Figure 1 The bypass server 102 in the example is used for explanation. The method is applied to the bypass server. The mirror network constructed by the bypass server is the bypass network corresponding to the business network. The bypass server includes a mirror switch, a traffic collection and analysis node, and a security service node, and includes the following steps 202 to 206. Among them:

[0075] Step 202: North-south traffic and database traffic are directed to the security service node according to the mirror switch.

[0076] In an embodiment of the present application, a bypass server including a mirror network is pre-built in the business network. The bypass server is used to monitor and analyze traffic in the business network. The bypass server includes a mirror switch, a traffic collection and analysis node, and a security service node. The mirror switch is a TAP switch, and the mirror network (TAP network) is a network dedicated to mirror traffic, which is independent of the business network and the out-of-band network. In the bypass network, the mirror switch is used to capture and mirror traffic in the business network, copy data flows flowing in and out of the business network, and pass these mirrored traffic to the traffic collection and analysis node and the security service node of the bypass server.

[0077] First, the bypass server directs north-south traffic to the security service node through the mirror switch and predefined rules (for example, north-south traffic and database traffic). The mirror switch sends network traffic to the bypass server by replicating the data stream. This method does not affect the normal operation of the business network. At the same time, it allows the bypass server to fully monitor the traffic and direct different types of traffic to the security service node for further analysis and processing by setting rules, ensuring that key traffic can receive timely security checks.

[0078] Step 204: forward the east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node.

[0079] In the embodiments of the present application, the hybrid cloud environment usually involves multiple technology stacks, such as computing resources, network technology, etc. Such technology stacks may come from different cloud service providers or technology platforms, and different technology stacks may result in different ways of processing intra-cloud traffic (i.e., traffic within the cloud environment). In mainstream technology stacks, for example, KVM (virtualization technology), OpenStack (open source cloud computing platform), Docker (container technology), and Kubernetes (container orchestration platform), etc., usually focus on virtualization, container management, and orchestration, but have deficiencies in the diversion and forwarding of intra-cloud traffic, that is, there is no sufficient mechanism to manage and monitor the flow of data within the cloud environment, which may lead to security issues of intra-cloud traffic. The "invisibility" of intra-cloud traffic makes it difficult to detect internal attacks or unauthorized access in a timely manner, thereby increasing security risks.

[0080] In this embodiment, for the detection of east-west traffic, in the bypass server, the traffic collection and analysis node includes a virtual client component and a secure container component, which are responsible for monitoring and collecting east-west traffic, that is, traffic within the same data center or between different virtual machines and different containers.

[0081] For the virtual client component, the virtual client component is deployed in the virtual machine and is responsible for capturing and monitoring the east-west traffic of the virtual network card, and forwarding the east-west traffic of the virtual network card to the security service node through the bypass server. For the security container component, the security container component is deployed in the container cloud environment to handle the east-west traffic monitoring and analysis between containers, and forward these east-west traffic to the security service node to perform in-depth security detection and analysis of different types of east-west traffic.

[0082] Step 206, detect the database traffic, north-south traffic and east-west traffic according to the security service node to obtain the full traffic detection result.

[0083] Among them, the security service node is the cloud security resource pool in the management cloud node.

[0084] In an embodiment of the present application, the security service node detects all received traffic (including database traffic, north-south traffic, and east-west traffic), and the detection process includes traffic analysis, anomaly detection, intrusion detection, etc. For database traffic, the security service node checks whether the database interaction is as expected to prevent data leakage or abnormal queries; for north-south traffic detection, the security service node detects whether there is any attack behavior in the traffic entering and leaving the data center to prevent external attacks or data leakage. For east-west traffic detection, the security service node analyzes the internal flow of the data center business server to identify internal threats or lateral attacks. Optionally, the bypass server can also generate a comprehensive traffic security report based on the detection results to display the detected potential threats, abnormal behaviors, and security incidents.

[0085] In an optional embodiment, if Figure 3 As shown in the figure, north-south traffic and database traffic are collected once and forwarded multiple times through the mirror switch (Tap switch). East-west traffic is collected once and forwarded multiple times through the virtual machine Tap service, and the mirrored traffic is forwarded to a third-party analysis platform, situational awareness probe or other analysis components for detailed monitoring, analysis and security auditing, improving visibility of traffic inside and outside the cloud environment, thereby better performing security management and situational awareness.

[0086] In the above-mentioned traffic detection method, the mirror network constructed by the bypass server can divert the north-south traffic and database traffic respectively through the border switch, mirror switch and traffic collection and analysis node without affecting the network bandwidth and stability of the normal business network. It not only realizes the diversion of north-south traffic, but also can forward the east-west traffic through the virtual client component and the security container component, and divert the database traffic to the security service node according to the mirror switch. Through the security service node, it can realize the detection of north-south traffic, east-west traffic and data traffic, realize the detection of various types of traffic in the data center, and thus improve the security of the data center.

[0087] In an exemplary embodiment, the east-west traffic includes virtual machine traffic in a virtual network environment and container traffic in a containerized environment; Figure 4 As shown, step 204 includes steps 402 to 406. Among them:

[0088] Step 402, obtain virtual machine traffic based on the virtual client component, and obtain container traffic based on the secure container component.

[0089] In the embodiment of the present application, each virtual machine includes a pre-deployed virtual client component, which is a lightweight proxy software or tool that can monitor and capture the east-west traffic of the virtual machine; each container includes a pre-deployed secure container component, which is a lightweight tool running in the container and is responsible for monitoring the east-west traffic of the container. The bypass server captures the east-west traffic of the virtual machine through the virtual client component, and collects the east-west traffic of the container through the secure synchronization component.

[0090] Step 404: forward the virtual machine traffic to the security service node according to the virtual client component and the virtual extended LAN technology.

[0091] Among them, Virtual Extended LAN (XLAN) is a network virtualization technology that can improve the expansion problem of large-scale cloud computing during deployment and is an extension of VLAN. VXLAN is a network virtualization tool that can penetrate the third-layer network to extend the second layer. It can solve the portability limitations of VMS (Virtual Memory System) by encapsulating traffic and extending it to the third-layer gateway, so that it can access servers on the external IP (Internet Protocol) subnet.

[0092] In the present application embodiment, Figure 5 As shown in the figure, the bypass server uses the virtual client component and VXLAN (Virtual Extended Local Area Network) technology to encapsulate the virtual machine traffic into VXLAN packets, so that the virtual machine traffic can be transmitted through the physical network. Among them, VXLAN encapsulation can traverse different network infrastructures to forward the virtual machine traffic to the correct destination, that is, to forward the virtual machine traffic to the security service node. After the security service node receives the encapsulated VXLAN traffic, the bypass server decapsulates it through the security service node, restores the original traffic, and performs security analysis on it to achieve forwarding of the virtual machine traffic.

[0093] Step 406, forwarding container traffic to a secure service node based on secure container components and daemon set technology.

[0094] In the present application embodiment, Figure 5 As shown in the figure, the bypass server deploys the secure container through the deamonset (daemon set technology) mode, and uses the daemon set technology to deploy the container monitoring service on each node. The container monitoring service is responsible for capturing and processing the container traffic on the node, monitoring the traffic of the physical network card on the node, and forwarding the traffic to the security service node. After receiving the container traffic, the security service node performs necessary security analysis, including traffic inspection, anomaly detection, etc.

[0095] In this embodiment, by combining virtualization technology and container technology, it is ensured that the network traffic of virtual machines and containers can be forwarded, and the virtual machine traffic and container traffic are effectively monitored and analyzed through security service nodes, thereby improving the security of east-west traffic in the data center.

[0096] In an exemplary embodiment, Figure 6 As shown, step 204 includes steps 602 to 604. Among them:

[0097] Step 602: Limit the forwarding rate of east-west traffic according to a preset traffic speed limiting method to obtain a target forwarding rate.

[0098] In the embodiment of the present application, the virtual network used by the virtual client component is still the production network, so in order to avoid excessive bandwidth occupation caused by excessive traffic, resulting in network instability or even unavailability, the east-west traffic in the cloud is limited in the following two ways while ensuring that as much traffic as possible is collected. Method 1: Filter east-west traffic through network quintuples and network policy (network policy in Kubernetes) (because the traffic obtained through the virtual network card includes north-south traffic, only traffic within the same logical network area is obtained); Method 2: By limiting the traffic forwarding threshold, once the forwarding upper limit is exceeded, the traffic is discarded to avoid affecting the bandwidth. The computing environment that carries various virtual clients (security clients) or security containers is a virtualized environment and container node used in production. In order to ensure the computing performance of the bypass server, the virtual machine client (security client) monitors the host CPU, memory, disk IO and other performance to enable the fuse mechanism to limit the resources occupied by the security client; the security container uses an independent namespace and resource upper limit to not occupy additional resources of the host, and then obtains the target forwarding rate corresponding to the virtual machine traffic and container traffic respectively.

[0099] Step 604: forward the east-west traffic to the security service node at a target forwarding rate based on the virtual client component and the security container component included in the traffic collection and analysis node.

[0100] In the embodiment of the present application, in the traffic collection and analysis node, the bypass server manages the forwarding of east-west traffic according to a predetermined target forwarding rate through a rate control mechanism. Specifically, the virtual client component (deployed in the virtual machine) processes and forwards the captured east-west traffic (traffic between virtual machines) according to the target forwarding rate, and the virtual client caches, filters and controls the rate of the traffic to ensure that it meets the target forwarding rate; the security container component (deployed in the container) processes the east-west traffic between containers according to the target forwarding rate, and by controlling the forwarding rate, ensures that the traffic between containers does not exceed the set upper limit, and effectively forwards the traffic to the security service node.

[0101] In this embodiment, the controlled and screened east-west traffic is effectively forwarded to the security service node through the target forwarding rate. Through precise traffic rate control, resource monitoring and fuse mechanism, it is ensured that the east-west traffic collection and forwarding will not have an adverse impact on the production environment. At the same time, it meets the needs of security analysis, performs security testing on the east-west traffic while ensuring the stability of the business network, and ensures the security of the east-west traffic in the data center.

[0102] In an exemplary embodiment, Figure 7 As shown, step 202 includes steps 702 to 704. Among them:

[0103] Step 702: Direct north-south traffic to the security service node according to the edge switch and the mirror switch.

[0104] In an embodiment of the present application, for north-south traffic, the bypass server receives the north-south traffic of the original network server core switch according to the boundary switch, mirrors the north-south traffic to the input switch, and then directs the traffic to the cloud security resource pool of the security service node through the mirror switch.

[0105] Step 704: Direct the database traffic to the security service node based on the first access switch and the mirror switch corresponding to the business cloud node.

[0106] In the embodiment of the present application, for database traffic, such as Figure 5 As shown, database traffic is the traffic transmitted by database nodes between different databases or between databases and security service nodes for threat traffic detection or database operation auditing. First, the bypass server mirrors the database traffic to the mirror switch (TAP switch) through the first access switch corresponding to the business cloud node (business VPC), and the mirror switch directs the database traffic to the security service node through a dedicated mirror network.

[0107] In this embodiment, the north-south traffic and database traffic are mirrored and transmitted through the boundary switch and the mirror switch, so that the security service node can perform further security detection on the north-south traffic, and detect the database traffic, so that the bypass server can detect multiple types of traffic, thereby improving the security of the data center.

[0108] In an exemplary embodiment, Figure 8 As shown, step 702 includes steps 802 to 806. Among them:

[0109] Step 802: Receive north-south traffic according to the border switch.

[0110] In the present application embodiment, Figure 5 In the network architecture design shown, the physical network is deployed in the form of a large Layer 2, including a border bypass (logical series) firewall. The border switch connected to the border bypass firewall is connected to the core switch of the original environment. The network is on the core switch. All cross-regional network access within the cloud and access to the outside (original environment or Internet environment) pass through the firewall (the firewall uses virtualization technology not only as a border connection but also as an isolation device between regions). The bypass server receives north-south traffic through the interface of the border switch in the firewall connection through the border switch. Optionally, the border switch can also receive part of the east-west traffic transmitted when data is synchronized between remote computer rooms or computer rooms in the same city.

[0111] Step 804: Mirror the north-south traffic based on the edge switch to obtain first mirrored traffic.

[0112] In the embodiment of the present application, the bypass server performs a mirroring operation on the north-south traffic based on the border switch, and copies the traffic passing through the border switch to obtain the first mirrored traffic corresponding to the north-south traffic. Since the mirroring operation is performed in the border switch, the mirroring operation will not affect the original traffic.

[0113] Step 806: Transmit the first mirrored traffic to the mirrored switch based on the edge switch, and guide the first mirrored traffic to the security service node according to the mirrored switch.

[0114] In the embodiment of the present application, the mirror switch is used to receive the first mirror traffic transmitted by the edge switch, and transmit the first mirror traffic to the address of the security service node according to the pre-set mirror configuration.

[0115] In this embodiment, through traffic mirroring and forwarding technology, the north-south traffic in the data center can be effectively monitored and analyzed, thereby improving the security of the data center without interfering with normal business operations, thereby ensuring the stability of the business traffic in the data center.

[0116] In an exemplary embodiment, Fig. 9 As shown, step 704 includes steps 902 to 904. Among them:

[0117] Step 902, mirroring the database traffic based on the first access switch corresponding to the business cloud node to obtain second mirrored traffic.

[0118] In the embodiment of the present application, since important systems all use independent database servers to provide instances, there is no interaction of traffic within the cloud, so the bypass server mirrors the traffic (using the Tap network) from the interface of the first access switch (the first access switch corresponding to the business cloud node) connected to the database server, obtains the second mirrored traffic corresponding to the data traffic, and inputs the second mirrored traffic to the mirrored switch, which is transmitted through the mirrored switch using the mirrored network.

[0119] Step 904: Filter the database backup traffic in the second mirrored traffic through the first access switch to obtain target mirrored traffic, and input the target mirrored traffic to the security service node.

[0120] In the embodiment of the present application, due to the occupation of network resources by the virtual client (many database systems will pre-occupy a large amount of CPU and memory resources), and a large amount of communication traffic will be generated during the database backup, and these traffics are relatively less threatening to security, while the cost of mirrored traffic is high, so it is necessary to select the mirrored content of the database traffic during the mirrored traffic process. During the mirroring, at the first access switch, the database traffic of the database backup is filtered in a blacklist manner to obtain the target mirrored traffic, and the target mirrored traffic is input into the security service node through the mirrored switch.

[0121] In this embodiment, by filtering the mirror content of the data traffic content, the network bandwidth consumption during database traffic mirroring is reduced, the stability of the business traffic of the data center is guaranteed, and the security of the data traffic is tested, thereby improving the security of the data center.

[0122] In an exemplary embodiment, after step 904, the method includes step 9041. In which:

[0123] Step 9041: input the full amount of the second mirrored traffic into the database audit device through the mirrored switch.

[0124] In an embodiment of the present application, when the target traffic is mirrored to the mirror switch, the target mirror traffic is mirrored in two copies on the mirror switch, one of which is transmitted to the security service node, and the other is in the form of a port whitelist (database interaction). The full flow of the second mirror traffic is given to the database audit device through the mirror switch.

[0125] In this embodiment, by inputting the full traffic of the second mirror traffic into the database audit device, the database operations can be comprehensively recorded and analyzed, providing an additional security layer. The security service node is responsible for detecting potential security threats, while the database audit device focuses on auditing and recording database interactions. The dual traffic processing method provides more comprehensive security protection and compliance records, effectively improving the security, compliance and performance of the data center.

[0126] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0127] Based on the same inventive concept, the embodiment of the present application also provides a flow detection device for implementing the flow detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more flow detection device embodiments provided below can refer to the limitations on the flow detection method above, and will not be repeated here.

[0128] In an exemplary embodiment, Fig.10 As shown, a flow detection device 1000 is provided, including: a flow diversion module, a forwarding module and a detection module, wherein:

[0129] A traffic diversion module 1001 is used to divert north-south traffic and database traffic to a security service node according to a mirror switch;

[0130] A forwarding module 1002, configured to forward east-west traffic to a security service node based on a virtual client component and a security container component included in the traffic collection and analysis node;

[0131] The detection module 1003 is used to detect the database traffic, north-south traffic and east-west traffic according to the security service node to obtain the full traffic detection result.

[0132] In one embodiment, the east-west traffic includes virtual machine traffic in a virtual network environment and container traffic in a containerized environment; the forwarding module 1002 is specifically used to obtain virtual machine traffic based on a virtual client component and obtain container traffic based on a secure container component;

[0133] Forward virtual machine traffic to security service nodes based on virtual client components and virtual extended LAN technology;

[0134] Forward container traffic to secure service nodes based on secure container components and daemon set technology.

[0135] In one of the embodiments, the forwarding module 1002 is specifically used to limit the forwarding rate of the east-west traffic according to a preset traffic speed limiting method to obtain a target forwarding rate;

[0136] According to the virtual client component and security container component contained in the traffic collection and analysis node, the east-west traffic is forwarded to the security service node according to the target forwarding rate.

[0137] In one of the embodiments, the traffic diversion module 1001 is specifically used to divert north-south traffic to the security service node according to the edge switch and the mirror switch;

[0138] Based on the first access switch and mirror switch corresponding to the business cloud node, the database traffic is directed to the security service node.

[0139] In one of the embodiments, the traffic diversion module 1001 is specifically used to receive north-south traffic according to the boundary switch;

[0140] Mirroring the north-south traffic based on the border switch to obtain the first mirrored traffic;

[0141] The first mirrored traffic is transmitted to the mirrored switch based on the border switch, and the first mirrored traffic is directed to the security service node according to the mirrored switch.

[0142] In one of the embodiments, the traffic diversion module 1001 is specifically used to mirror the database traffic based on the first access switch corresponding to the service cloud node to obtain the second mirrored traffic;

[0143] The database backup traffic in the second mirror traffic is filtered through the first access switch to obtain the target mirror traffic, and the target mirror traffic is input to the security service node.

[0144] In one embodiment, the device further comprises:

[0145] The input module is used to input the full flow of the second mirrored flow into the database audit device through the mirrored switch.

[0146] Each module in the above-mentioned flow detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0147] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store east-west traffic, north-south traffic and database traffic. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a traffic detection method is implemented.

[0148] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0149] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0150] Direct north-south traffic and database traffic to security service nodes based on mirror switches;

[0151] Based on the virtual client component and security container component contained in the traffic collection and analysis node, the east-west traffic is forwarded to the security service node;

[0152] The database traffic, north-south traffic, and east-west traffic are detected according to the security service node to obtain the full traffic detection results.

[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0154] Obtain virtual machine traffic based on the virtual client component and container traffic based on the secure container component;

[0155] Forward virtual machine traffic to security service nodes based on virtual client components and virtual extended LAN technology;

[0156] Forward container traffic to secure service nodes based on secure container components and daemon set technology.

[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0158] The forwarding rate of east-west traffic is limited according to the preset traffic speed limit method to obtain the target forwarding rate;

[0159] According to the virtual client component and security container component contained in the traffic collection and analysis node, the east-west traffic is forwarded to the security service node according to the target forwarding rate.

[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0161] Direct north-south traffic to security service nodes based on edge switches and mirror switches;

[0162] Based on the first access switch and mirror switch corresponding to the business cloud node, the database traffic is directed to the security service node.

[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0164] Receive north-south traffic based on the border switch;

[0165] Mirroring the north-south traffic based on the border switch to obtain the first mirrored traffic;

[0166] The first mirrored traffic is transmitted to the mirrored switch based on the border switch, and the first mirrored traffic is directed to the security service node according to the mirrored switch.

[0167] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0168] Mirroring the database traffic based on the first access switch corresponding to the service cloud node to obtain second mirrored traffic;

[0169] The database backup traffic in the second mirror traffic is filtered through the first access switch to obtain the target mirror traffic, and the target mirror traffic is input to the security service node.

[0170] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0171] The full amount of the second mirrored traffic is input to the database audit device through the mirrored switch.

[0172] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0173] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0174] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0175] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0176] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0177] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A flow detection method, characterized in that: The traffic detection method is applied to a bypass server, the mirror network constructed by the bypass server is a bypass network corresponding to the service network, the bypass server includes a mirror switch, a traffic collection and analysis node, and a security service node, and the method includes: Directing north-south traffic and database traffic to the security service node according to the mirror switch; Forwarding east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node; The database traffic, the north-south traffic and the east-west traffic are detected according to the security service node to obtain a full traffic detection result.

2. The method according to claim 1, characterized in that The east-west traffic includes virtual machine traffic in a virtual network environment and container traffic in a containerized environment; the virtual client component and the security container component included in the traffic collection and analysis node forward the east-west traffic to the security service node, including: Acquire the virtual machine traffic based on the virtual client component, and acquire the container traffic based on the secure container component; forwarding the virtual machine traffic to the security service node according to the virtual client component and virtual extended local area network technology; The container traffic is forwarded to the security service node according to the secure container component and daemon set technology.

3. The method according to claim 1, characterized in that The forwarding of east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node includes: Limiting the forwarding rate of the east-west traffic according to a preset traffic speed limiting method to obtain a target forwarding rate; According to the virtual client component and the security container component included in the traffic collection and analysis node, the east-west traffic is forwarded to the security service node according to the target forwarding rate.

4. The method according to claim 1, characterized in that: Directing north-south traffic and database traffic to the security service node according to the mirror switch includes: Direct north-south traffic to security service nodes based on edge switches and mirror switches; Based on the first access switch corresponding to the business cloud node and the mirror switch, the database traffic is directed to the security service node.

5. The method according to claim 4, characterized in that The method of directing north-south traffic to the security service node based on the border switch and the mirror switch includes: Receive north-south traffic based on the border switch; Mirroring the north-south traffic based on the border switch to obtain first mirrored traffic; The first mirrored traffic is transmitted to a mirrored switch based on the border switch, and the first mirrored traffic is directed to a security service node according to the mirrored switch.

6. The method according to claim 4, characterized in that The first access switch and the mirror switch corresponding to the service cloud node direct the database traffic to the security service node, including: Mirroring the database traffic based on the first access switch corresponding to the service cloud node to obtain second mirrored traffic; The database backup traffic in the second mirror traffic is filtered through the first access switch to obtain target mirror traffic, and the target mirror traffic is input to the security service node.

7. The method according to claim 6, characterized in that After filtering the database backup traffic in the second mirrored traffic through the first access switch to obtain the target mirrored traffic, the method further includes: The full amount of the second mirrored traffic is input into the database audit device through the mirrored switch.

8. A flow detection device, characterized in that: The flow detection device is applied to a bypass server, the mirror network constructed by the bypass server is a bypass network corresponding to the service network, the bypass server includes a mirror switch, a flow collection and analysis node and a security service node, and the device includes: A traffic diversion module, used for diverting north-south traffic and database traffic to the security service node according to the mirror switch; A forwarding module, configured to forward east-west traffic to the security service node based on the virtual client component and the security container component included in the traffic collection and analysis node; The detection module is used to detect the database traffic, the north-south traffic and the east-west traffic according to the security service node to obtain a full traffic detection result.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Data packet processing system, method and device

    CN119211164A