Intranet bypass mirror system operation status analysis method, device, equipment and medium

By analyzing the traffic data collected by the intranet bypass mirroring system to determine its operating status, it solves the problems of difficulty and high cost in detecting anomalies in the existing technology, achieves fast and low-cost anomaly detection and analysis, and improves cloud network services. quality.

CN116170361BActive Publication Date: 2024-10-22ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310092913.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-17
Publication Date
2024-10-22
Estimated Expiration
2043-01-17

AI Technical Summary

Technical Problem

In cloud networks, abnormal operation of the intranet bypass mirroring system will affect cloud network service quality. Existing technologies are difficult to effectively detect and analyze these anomalies, resulting in high costs and poor maintenance.

Method used

By obtaining the traffic data collected by the mirroring systems in the two intranets, and analyzing whether peer-to-peer traffic mirroring is performed, the operating status of the mirroring system can be determined. Analysis can be performed directly based on the traffic data without the need to build a target station, thus reducing costs.

Benefits of technology

Quickly detect and timely discover working abnormalities of the bypass mirror system, reduce the impact of abnormalities, reduce manual maintenance costs, and improve cloud network service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170361B_ABST
    Figure CN116170361B_ABST
Patent Text Reader

Abstract

The present application proposes a method, device, equipment and medium for analyzing the operation status of an intranet bypass mirroring system, the method comprising: obtaining first flow data collected by a first mirroring system and second flow data collected by a second mirroring system, the first mirroring system being arranged in a first intranet, and the second mirroring system being arranged in a second intranet; based on the first flow data and the second flow data, determining whether the first mirroring system and the second mirroring system have performed peer-to-peer flow mirroring on the same session between the first intranet and the second intranet; if not, determining that the operation status of the first mirroring system and / or the second mirroring system is abnormal. The present application can analyze the operation status of an intranet bypass mirroring system, promptly discover an intranet bypass mirroring system that is working abnormally, and reduce the adverse effects caused by the abnormality of the intranet bypass mirroring system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of cloud network technology, and specifically relates to a method, device, equipment and medium for analyzing the operating status of an intranet bypass mirroring system. Background Art

[0002] In recent years, cloud network technology has become increasingly mature and its application scope has become increasingly wide. In a cloud network, the network traffic between two data centers can be called east-west traffic. As a cloud service provider, an intranet bypass mirror system will be built at the key nodes of the east-west traffic in the cloud network to monitor the user's network and analyze the traffic.

[0003] The intranet bypass mirroring system can include multiple mirrored traffic collection devices to perform 1:1 replication of network traffic at key points in the cloud network and perform traffic analysis. For example, cross-regional public network traffic in the cloud network can be measured so that the cloud service provider can perform traffic statistics and cloud security intranet attack detection, etc.

[0004] In the face of clustered cloud service systems with many data centers, in order to meet the requirements of 1:1 traffic replication at key network points, a large number of intranet bypass mirror systems are usually deployed. If some intranet bypass mirror systems operate abnormally, the service quality of the cloud network will be affected. Therefore, how to detect the operating status of the intranet bypass mirror system is of great significance to the working stability of the intranet bypass mirror system and improving the service quality of the cloud network. Summary of the invention

[0005] The present application proposes a method, device, equipment and medium for analyzing the operating status of an intranet bypass mirroring system, which can analyze the operating status of an intranet bypass mirroring system, promptly discover an intranet bypass mirroring system with abnormal operation, and reduce the adverse effects caused by the abnormal operation of the intranet bypass mirroring system.

[0006] The first embodiment of the present application proposes a method for analyzing the operating status of an intranet bypass mirroring system, including:

[0007] Acquire first flow data collected by a first mirroring system and second flow data collected by a second mirroring system, wherein the first mirroring system is set in a first intranet and the second mirroring system is set in a second intranet;

[0008] Based on the first traffic data and the second traffic data, determining whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet;

[0009] If not, it is determined that the operating status of the first mirroring system and / or the second mirroring system is abnormal.

[0010] The second aspect of the present application provides an intranet bypass mirroring system operation status analysis system, including:

[0011] A data acquisition module, used to acquire first flow data collected by a first mirroring system and second flow data collected by a second mirroring system, wherein the first mirroring system is set in a first intranet and the second mirroring system is set in a second intranet;

[0012] a traffic analysis module, configured to determine, based on the first traffic data and the second traffic data, whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet;

[0013] A status analysis module is used to determine that the operating status of the first mirroring system and / or the second mirroring system is abnormal if no.

[0014] An embodiment of the third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect or the second aspect above.

[0015] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and the program is executed by a processor to implement the method described in the first aspect or the second aspect above.

[0016] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:

[0017] In the network bypass mirror system operation status analysis method provided in the embodiment of the present application, after obtaining the traffic data collected by the mirror system, the operation status of the intranet bypass mirror system can be analyzed based on the obtained traffic data. This method can quickly detect whether the bypass mirror systems in the two intranets perform peer-to-peer traffic mirroring, thereby analyzing the operation status of the two bypass mirror systems, and promptly discovering the intranet bypass mirror system with abnormal operation, thereby reducing the adverse effects caused by the abnormality of the intranet bypass mirror system. In addition, this method does not require the construction of a target station, and determines the operation status of the mirror system by directly analyzing the traffic data, so the cost is relatively low. In addition, no manual maintenance is required, which can further reduce labor costs.

[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.

[0020] In the attached picture:

[0021] Figure 1 A schematic diagram of a flow chart of a method for analyzing the operating status of an intranet bypass mirroring system provided in an embodiment of the present application is shown;

[0022] Figure 2 A schematic diagram of a network forwarding process for mutual access between terminal devices in two intranets in one embodiment of the present application is shown;

[0023] Figure 3 A specific flow chart of step S2 in an embodiment of the present application is shown;

[0024] Figure 4 A specific flow chart of step S23 in an embodiment of the present application is shown;

[0025] Figure 5 Another schematic diagram of a flow chart of an intranet bypass mirroring system operating status analysis method provided by an embodiment of the present application is shown;

[0026] Figure 6 Another flow chart of a method for analyzing the operating status of an intranet bypass mirroring system provided by an embodiment of the present application is shown;

[0027] Figure 7 A schematic diagram of a network architecture used in an embodiment of the present application is shown;

[0028] Figure 8 A schematic diagram of the deployment position of the mirror system in one embodiment of the present application is shown;

[0029] Fig. 9 A schematic diagram of cross-region transmission of VXLAN packets in an embodiment of the present application is shown;

[0030] Fig.10 A schematic diagram of the structure of an intranet bypass mirroring system operation status analysis system provided by an embodiment of the present application is shown;

[0031] Fig.11 A schematic diagram of the structure of another intranet bypass mirror system operation status analysis system provided by an embodiment of the present application is shown;

[0032] Fig.12 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;

[0033] Fig.13 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0034] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0035] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.

[0036] The bypass mirroring system can replicate traffic from network devices 1:1 through certain technical means and perform traffic analysis. It can be used for network monitoring, analyzing user traffic and user behavior in the network, etc. The bypass mirroring system can not only replicate and analyze traffic on the physical network, but can also be applied to the virtual network to replicate and analyze traffic in the virtual network tunnel. However, since the bypass mirroring system itself is not the sender or receiver of the traffic, it cannot directly evaluate whether the network traffic it mirrors is the complete traffic that should be mirrored. Especially in complex networking situations or network architecture environments with a large service volume, it brings great challenges to the analysis of the operating status of the bypass mirroring system.

[0037] In the prior art, a target station can be constructed, and the target station traffic can be constructed as baseline traffic data. The baseline traffic data is then compared and analyzed with the traffic data collected by the bypass mirroring system to evaluate whether the bypass mirroring system is working properly.

[0038] However, the resources available for target station construction are limited. To achieve more accurate quantitative analysis results, the target stations that need to be built should cover all network links, computer room locations, etc. as much as possible. In reality, this method is very costly and has poor maintainability, so it is often not truly implemented. In real engineering applications, target construction verification can only meet the needs of qualitative analysis.

[0039] With respect to the operation status analysis method of the bypass mirror system in the related art, the inventor of the present application found that, for large networks with complex networking, especially cross-regional networking, it is necessary to build a target station that can cover all network links and computer room locations to accurately analyze the bypass mirror system. In this way, the cost of target station construction will be greatly increased, and since the target station has a large coverage area, the maintainability is also poor, and only qualitative analysis can be performed, and quantitative analysis cannot be performed.

[0040] Based on this, the inventor of the present application proposes a method and system for analyzing the operating status of an intranet bypass mirroring system. The analysis system is used to implement the method. Specifically, it can be a computer device such as an independent server, cloud server or server cluster with data processing and analysis capabilities, or a data processing module on these computer devices. As long as it can communicate with the bypass mirroring system in the intranet, obtain the traffic data collected by the mirroring system, and analyze the operating status of the intranet bypass mirroring system based on the acquired traffic data. The method can quickly detect whether the bypass mirroring system in the intranet performs peer-to-peer traffic mirroring, thereby analyzing the operating status of the bypass mirroring system, timely discovering the intranet bypass mirroring system with abnormal operation, and reducing the adverse effects caused by the abnormality of the intranet bypass mirroring system.

[0041] See also Figure 1 The method for analyzing the operation status of the intranet bypass mirroring system provided in the present application may include the following steps:

[0042] Step S1, obtaining first flow data collected by a first mirroring system and second flow data collected by a second mirroring system.

[0043] The first mirroring system is set in the first intranet, which may include multiple first terminal devices, and may also include a data center, a local gateway, a switch, etc. The second mirroring system is set in the second intranet, which may include multiple second terminal devices, and may also include a data center, a local gateway, a switch, etc. The first intranet and the second intranet may both be physical networks or virtual networks, and the two intranets may be networked through a public network gateway, and a session connection may be established between the terminal devices located in the two intranets.

[0044] When a first terminal device establishes a session connection with a second terminal device, the two terminal devices can visit each other, that is, they can both send data requests to each other, and the party receiving the request can respond to the request and send the corresponding data to the requesting party. The first mirroring system is used to collect the traffic generated on the first terminal device side when the first terminal device and the second terminal device visit each other, which is the first traffic data; the second mirroring system is used to collect the traffic generated on the second terminal device side when the first terminal device and the second terminal device visit each other, which is the second traffic data. Therefore, the first traffic data and the second traffic data both include both the traffic data sent by the local end and the traffic data received by the local end. In this application scenario, the first intranet is the network architecture on the first terminal device side, which can be a physical network or a virtual network. The second intranet is the network architecture on the second terminal device side, which can also be a physical network or a virtual network. The first mirroring system mirrors the traffic data of the first intranet, and the second mirroring system mirrors the traffic data of the second intranet.

[0045] It can be understood that the first flow data and the second flow data are flow data collected by the first mirroring system and the second mirroring system in the same time period, respectively, and can be offline data or real-time data.

[0046] For details, please refer to Figure 2 , which is a schematic diagram of the network forwarding process for terminal devices in two intranets to visit each other, such as Figure 2 As shown, when the first terminal device and the second terminal device visit each other, assuming that the first terminal device initiates a data request to the second terminal device, the data traffic is sent from the first terminal device, first passes through the local gateway device of the first intranet, is forwarded to the public network gateway device through the local gateway device, and then is sent to the local gateway device of the second intranet through the public network gateway device, and then enters the second terminal device through the local gateway device of the second intranet. After the second terminal device parses the data request, it will return the corresponding request result to the first terminal device.

[0047] In the process of mutual access between terminal devices in the above two intranets, data traffic will pass through the local gateway device of the intranet where the terminal devices are located, so an intranet bypass mirroring system can be set at the local gateway, that is, the first mirroring system can be set to collect traffic at the local gateway device of the first intranet; the second mirroring system can be set to collect traffic at the local gateway device of the second intranet. In this way, the traffic between the two terminals for mutual access can be collected by the mirroring systems of the two intranets at the same time. This phenomenon of east-west traffic being mirrored twice at the same time can be called peer-to-peer traffic mirroring. Subsequently, by analyzing whether the mirroring systems of the two intranets perform peer-to-peer traffic mirroring, the traffic integrity between the two mirroring systems can be mutually verified, thereby determining whether the operating status of the two mirroring systems is normal.

[0048] In some implementations, the present application may also perform sampling control on the first mirror system and the second mirror system, that is, before obtaining the first flow data and the second flow data, the method may first formulate a corresponding sampling strategy.

[0049] In the case where the first intranet and the second intranet are determined, it is assumed that the relevant information of the first terminal device included in the first intranet and the relevant information of the second terminal device included in the second intranet are known. Accordingly, the attributes of the session that can be established between the first terminal device and the second terminal device are also known. Therefore, when formulating the sampling strategy, the present application can first determine the corresponding sampling strategy based on the session attributes of the same session, and then send the sampling strategy to the first mirror system and the second mirror system respectively, so that the first mirror system and the second mirror system collect traffic data based on the sampling strategy.

[0050] In practical applications, the mirroring system can replicate the traffic data passing through the local gateway device in real time so as to accurately calculate the traffic generated by the terminal devices in the local area network. When the intranet bypass mirroring system operation status analysis method provided in this embodiment is implemented, the analysis system can send a preset sampling strategy to the mirroring systems in the two intranets, so that the mirroring system collects the corresponding traffic data according to the sampling strategy, or extracts the corresponding traffic data from the copied traffic data according to the sampling strategy, so that the analysis system can obtain the required reliability traffic data. It is understandable that the analysis system can also configure the sampling strategy, for example, the target session to be collected can be determined first, and then the terminal device addresses, local gateway addresses and public network gateway addresses at both ends of the target session can be determined, and the corresponding sampling strategy can be determined based on these address information.

[0051] The session attributes are mainly related to the addresses of both ends of the session and the content of the session, such as but not limited to the network segments to which the public network addresses of both ends belong, whether the session content belongs to a preset service, etc. The preset service here can be any cross-regional service, including but not limited to services that are considered important by the service provider.

[0052] Specifically, when determining the corresponding sampling strategy based on the session attributes of the same session, the following processing may be included: if the public network addresses at both ends of the same session belong to a preset network segment, then determining the corresponding sampling strategy based on the network segment; or, if the session content corresponding to the same session belongs to a preset service, then determining the corresponding sampling strategy based on the preset service.

[0053] The preset network segment may be any address network segment, and the preset service may be any service that can be provided by the network to be tested, and those skilled in the art may set them according to actual needs.

[0054] In this embodiment, the service provider will carry out a unified network segment planning for the addresses of all data centers in the network services it provides, and based on this, a sampling strategy based on the network segment can be formulated. When it is necessary to analyze the operating status of a mirror system deployed in a local area network, a preset network segment can be set according to the network segment to which its corresponding public network address belongs, and then the preset network segment and the specific sampling method are sent to the mirror system. In view of the large overall network traffic data, a sampling method of spot checks can be used to collect traffic data. For example, for a network segment with a 24-bit mask, a sampling queue of a first preset number of units can be set, and a round of sampling can be performed every first preset time. The first preset number and the first preset time here can both be set according to actual needs, and this embodiment does not specifically limit their specific values. For example, the first preset number can be several or dozens, and the first preset time can be several minutes.

[0055] In addition, in actual applications, the preset service can be a key service that has a greater impact on the service. In this embodiment, the IP addresses of individual devices that have a particularly large impact on the overall service can be put into a list, and then the addresses in the list can be inspected in a round-robin manner. For example, a sliding window of a second preset number of units can be used, and a round of sliding sampling can be performed every second preset time. The second preset number and the second preset time here can be set according to actual needs. The specific values ​​are not specifically limited in this embodiment. For example, the second preset number can be several or dozens, and the second preset time can be a few minutes.

[0056] Step S2: determining, based on the first traffic data and the second traffic data, whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet.

[0057] It can be understood that the same session here can be only a session connection between two terminal devices, or it can include multiple session connections between the two terminal devices, as long as the sessions between the same two terminal devices belong to the same session. In this embodiment, the same session can be a session established between any first terminal device and any second terminal device. And for the same session, when collecting traffic, the mirroring systems at both ends of the session will collect the relevant data traffic of the session. Therefore, the peer-to-peer traffic mirroring here does not mean that the traffic data collected by the two mirroring systems are equal in specific traffic size, but the phenomenon that the traffic data related to the same session can be collected equally by the two mirroring systems at both ends of the session.

[0058] In some implementations, data transmission between two terminal devices may be, but is not limited to, in the form of messages. Given that message header information may include information about the terminal devices at both ends of the session, it may be determined whether the first mirroring system and the second mirroring system perform peer-to-peer traffic mirroring based on the message header information. Specifically, Figure 3 As shown, the above step S2 may include the following processing:

[0059] Step S21, determining first message header data belonging to the same session in the first traffic data;

[0060] Step S22, determining second message header data belonging to the same session in the second traffic data;

[0061] Step S23: determining, based on the first message header data and the second message header data, whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet.

[0062] The first flow data and the second flow data may include multiple messages, which may belong to the same session or different sessions, which may be determined based on message header data. The first message header data may include all message header information in the first flow data, and the second message header data may include all message header information in the second flow data.

[0063] This embodiment does not need to perform statistical analysis on a large amount of traffic data, but can perform analysis based on message header data with a smaller amount of data, and then determine whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet, thereby improving the processing speed of the method and facilitating real-time online analysis of the mirroring system.

[0064] Furthermore, when determining the first packet header data belonging to the same session in the first traffic data, the first traffic summary information of the first traffic data may be obtained first, and then the first packet header data belonging to the same session may be determined based on the first packet header information of each packet in the first traffic summary information. Similarly, when determining the second packet header data belonging to the same session in the second traffic data, the second traffic summary information of the second traffic data may be obtained first, and then the second packet header data belonging to the same session may be determined based on the second packet header information of each packet in the second traffic summary information.

[0065] Among them, the traffic summary information can be understood as an information set composed of main information fields in the traffic data. Specifically, the first traffic summary information may include the message header information of each message in the first traffic data, and the second traffic summary information may include the message header information of each message in the second traffic data.

[0066] In this embodiment, the first traffic summary information of the first traffic data and the second traffic summary information of the second traffic data can be directly obtained, and then the fields in the first traffic summary information and the second traffic summary information can be directly extracted to obtain the first message header information and the second message header information, and based on the session address in the first message header information, the first message header data belonging to the same session is determined, and based on the session address in the second message header information, the second message header data belonging to the same session is determined. In this way, directly obtaining the traffic summary information and extracting the message header information from the traffic summary information can further reduce the amount of data to be processed and improve the processing speed of the method.

[0067] It is understandable that the above method for determining whether the first mirroring system and the second mirroring system perform peer-to-peer traffic mirroring based on the message header information is only a preferred implementation of this embodiment, and this embodiment is not limited thereto, as long as it can determine whether the two mirroring systems perform peer-to-peer traffic mirroring based on the traffic data collected by the first mirroring system and the second mirroring system. For example, it is also possible to directly obtain each message information, and directly extract the source address and destination address of the message from the message information, and then determine whether the first mirroring system and the second mirroring system perform peer-to-peer traffic mirroring based on the source address and the destination address.

[0068] In other embodiments, Figure 4 As shown, the above step S23 may include the following processing:

[0069] Step S231, respectively determining the first address information included in the first message header data and the second address information included in the second message header data;

[0070] Step S232, determining whether the first address information and the second address information match;

[0071] Step S233: If yes, it is determined that the first mirroring system and the second mirroring system have performed peer-to-peer traffic mirroring on the same session between the first intranet and the second intranet; if no, it is determined that the first mirroring system and the second mirroring system have not performed peer-to-peer traffic mirroring on the same session between the first intranet and the second intranet.

[0072] The first address information may include, but is not limited to, the source address and destination address in the first message header data obtained above, and the second address information may include, but is not limited to, the source address and destination address in the second message header data obtained above. Here, the source address may be the intranet address of the terminal device that sends the message, and the destination address may be the public network address corresponding to the terminal device that receives the message.

[0073] In this embodiment, if the mirroring systems at both ends of the session perform peer-to-peer traffic mirroring, the address information in the traffic data collected by both ends should be matched, specifically, both ends of the session can extract the same source address and destination address, and / or both ends of the session extract the intranet address of the local end and the public network address of the opposite end. For the same session, the traffic data collected by the mirroring systems at both ends of the session in the same period, the number of intranet addresses and the number of public network addresses extracted should be equal, and the public network address collected by the local end is exactly the public network address of the opposite end. Based on this, after determining the first message header data and the second message header data, the above-mentioned address information can be directly extracted from the message header data, that is, the first address information is extracted from the first message header data, and the second address information is extracted from the second message header data, and then by judging whether the first address information and the second address information match, it is analyzed whether the first mirroring system and the second mirroring system perform peer-to-peer traffic mirroring, so that the operation status of the first mirroring system and the second mirroring system can be accurately judged by quantitative analysis.

[0074] Specifically, the above-mentioned step of determining whether the first address information and the second address information match may include the following processing: determining the first intranet address in the first intranet contained in the first address information, and the second public network address corresponding to the second intranet; determining the second intranet address in the second intranet contained in the second address information, and the first public network address corresponding to the first intranet; based on the first intranet address, the first public network address, the second intranet address and the second public network address, determining whether the first address information and the second address information match.

[0075] Among them, for the same session, the above-mentioned first intranet address is the same address, the above-mentioned second intranet address is the same address, the above-mentioned first public network address is also the same address, and the above-mentioned second public network address is also the same address. And the first intranet address and the second intranet address are different intranet addresses, and the first public network address and the second public network address are also different public network addresses. In the case where the mirroring systems at both ends of the session perform peer-to-peer traffic mirroring, the first intranet address and the second intranet address correspond one-to-one, and the first public network address and the second public network address also correspond one-to-one. Therefore, based on the first intranet address, the first public network address, the second intranet address and the second public network address, it can be quickly and accurately determined whether the first address information and the second address information match.

[0076] Optionally, when determining whether the first address information and the second address information match based on the first intranet address, the first public network address, the second intranet address, and the second public network address, it may be determined whether the number of the first intranet addresses and the number of the second intranet addresses of the same session are the same, and whether the number of the first public network addresses and the number of the second public network addresses of the same session are the same. If so, it is determined that the first address information and the second address information match; if not, it is determined that the first address information and the second address information do not match.

[0077] For the same session, in theory, the number of the first intranet address, the number of the second intranet address, the number of the first public network address, and the number of the second public network address should all be the same. This embodiment may also only count the number of two intranet addresses, or the number of two public network addresses, or the number of a group of intranet addresses and the number of their corresponding public network addresses, that is, as long as the number of any network address at both ends of the session is counted at the same time. In this way, by comparing the number of addresses, it is possible to directly determine whether the first address information and the second address information match, and the accuracy of the result can be guaranteed.

[0078] Optionally, when determining whether the first address information and the second address information match based on the first intranet address, the first public network address, the second intranet address, and the second public network address, the third public network address mapped to the first intranet address and the fourth public network address mapped to the second intranet address may be determined first. Then, it is determined whether the number of the first public network addresses, the number of the second public network addresses, the number of the third public network addresses, and the number of the fourth public network addresses are all equal. If so, it is determined that the first address information and the second address information match; if not, it is determined that the first address information and the second address information do not match.

[0079] Based on the above analysis, each intranet address has a corresponding public network address. This embodiment can also first map the intranet address in the address information into a public network address, and then determine whether the first address information and the second address information match based on the number of all public network addresses, which can also ensure the accuracy of the results.

[0080] It is understandable that the number of each of the above-mentioned addresses may be quite large in actual application, there may be tens of thousands or even more, and data transmission may also have a certain time delay, resulting in that during sampling, only one end may collect relevant traffic data, while the other end does not collect it. However, this phenomenon is normal and should not be regarded as an abnormal operation of the mirroring system. Therefore, the same and equal numbers of the above-mentioned addresses are not equal in absolute numerical sense, as long as the numbers are equivalent and the difference is almost the same. Specifically, a preset threshold can be set. When the difference between the numbers of the above-mentioned addresses is equal to or greater than the preset threshold, it is considered that the first address information and the second address information do not match. The preset threshold can be any natural number that is not 0.

[0081] Step S3: if not, determine that the operating status of the first mirroring system and / or the second mirroring system is abnormal.

[0082] The operating status is used to determine whether the first mirroring system and / or the second mirroring system are working normally. An abnormal operating status means that the first mirroring system and / or the second mirroring system are not working normally and the complete flow data in the local area network is not collected in time.

[0083] In other implementations, after determining that the operating status of the first mirroring system and / or the second mirroring system is abnormal, it is also possible to further determine which mirroring system has an abnormal operating status, such as Figure 5 As shown, the following steps may be specifically included:

[0084] Step S4, respectively determining the amount of address information included in the first flow data and the amount of address information included in the second flow data;

[0085] Step S5, determining the flow data containing the least amount of address information in the first flow data and the second flow data as abnormal flow data;

[0086] Step S6, determining that the mirroring system operation status corresponding to the abnormal traffic data is abnormal.

[0087] The number of address information can be understood as the number of flow data containing IP addresses in the flow data, and the address here can be either an intranet address or a public network address.

[0088] In actual applications, if two mirror systems perform peer traffic mirroring, the amount of address information included in the first traffic data is equivalent to the amount of address information included in the second traffic data. Therefore, when the amount of address information included in one of them is significantly less than that in the other, it can be determined that the mirror system corresponding to the traffic data containing the smaller amount of address information is operating abnormally.

[0089] Furthermore, the first mirroring system may include multiple first mirroring collection devices, and the second mirroring system may also include multiple second mirroring collection devices. Therefore, after determining which mirroring system has an abnormal operating status, it is also possible to further determine which mirroring collection device has an abnormal operating status. Figure 6 As shown, the following steps may be specifically included:

[0090] Step S7, determining the number of device IDs corresponding to each mirror collection device in the mirror system with abnormal operating status from the abnormal traffic data;

[0091] Step S8: determine the image collection device corresponding to the smallest number of device IDs as an abnormal image collection device.

[0092] In actual applications, multiple mirror acquisition devices work together. When executing the acquisition task, which mirror acquisition is used for the acquisition can be load balanced through the hash algorithm. Therefore, the traffic data collected by each mirror acquisition device is roughly the same. Based on this principle, when each mirror acquisition device uploads data traffic to the analysis system, it can carry its own device ID, that is, the above traffic summary information includes not only the message header information, but also the device ID of the mirror acquisition device. Based on the above load balancing principle, the number of device IDs of each mirror acquisition device carried in the traffic data received by the analysis system should be almost the same. In the case of determining that the mirror system fails, given the principle that less traffic data is collected after the mirror acquisition device fails, it can be directly determined that the mirror acquisition device corresponding to the smallest number of device IDs is working abnormally.

[0093] The following takes the virtual LAN as an example, combined with Figure 7-Figure 9 , this embodiment is described in detail.

[0094] This embodiment can be specifically applied to Figure 7 In the network architecture shown in the figure, when the virtual terminals in two virtual intranets visit each other, the traffic forwarding path is as follows: Figure 7As shown by the dotted line in the figure, VM is a virtual machine, AVS is a virtual switch, and D / P / A SW is a virtual forwarding device. When the virtual machine in the first intranet communicates with the virtual machine in the second intranet, a data packet is generated in the virtual machine. The data packet is first forwarded by the D / P / A SW, and then passes through the physical switch and the virtual switch to reach the virtual gateway. The virtual gateway strips the virtual address of the data and adds the public network address corresponding to the second intranet to form a VXLAN packet. The VXLAN packet passes through the virtual switch and the physical switch and is sent to the public network gateway. The public network gateway can send the VXLAN packet to the second intranet based on the packet information, first enter the physical switch and the virtual switch of the second intranet, and then reach the virtual gateway. In this virtual gateway, the public network address of the VXLAN packet can be stripped and the intranet address of the receiving virtual machine can be added to form a new data packet again. The new data packet passes through the virtual switch and the virtual forwarding device in turn and enters the corresponding virtual machine. The virtual machine can then respond based on the received data packet and return the response traffic to the virtual machine at the traffic sending end. Specifically, it can be along the following steps: Figure 7 The dotted line shown returns along the original route, or it can return along other transmission paths.

[0095] Among them, VXLAN (Virtual extensible Local Area Network) is a tunnel technology that can establish a Layer 2 Ethernet network tunnel based on a Layer 3 network, thereby achieving cross-regional Layer 2 interconnection.

[0096] The VXLAN message headers of the virtual gateway in the first intranet when sending and receiving traffic are respectively:

[0097] Send traffic:

[0098] outer:NCIP1→XGWIP

[0099] Inner:ECSIP1→ECSIP2

[0100] Receiving traffic:

[0101] outer:NCIP2→XGWIP

[0102] Inner:ECSIP2→ECSIP1.

[0103] Among them, outer represents the packet header of the physical network, inner represents the packet header of the VXLAN virtual network, NCIP represents the physical address of the host machine where the virtual machine is located, XGWIP represents the device address of the virtual gateway of the virtual network, ECSIP represents the virtual address in the virtual network, and EIP represents the public network address of the virtual machine.

[0104] It can be understood that this embodiment only takes the virtual machine of the first intranet as the traffic sender and the virtual machine of the second intranet as the traffic receiver as an example for explanation. In actual applications, the virtual machines in the two intranets can be both traffic senders and traffic receivers.

[0105] Based on the virtual network forwarding path above, the most reasonable deployment location for the bypass mirror traffic mirror point is at the virtual gateway, such as Figure 8 As shown, in this embodiment, a mirroring system is set at the virtual gateway of each virtual network. Each mirroring system includes multiple mirroring collection devices, which can collect traffic data with VXLAN message headers from the virtual gateway, such as Fig. 9 As shown in the figure, the format of the VXLAN packet header is as follows:

[0106] The VXLAN packet header in the first intranet is:

[0107] outer:NCIP1→XGWIP

[0108] Inner:ECSIP1→ECSIP2

[0109] VPCID: vpcA

[0110] The VXLAN packet header in the second intranet is:

[0111] outer:XGWIP→NCIP2

[0112] Inner:ECSIP1→ECSIP2

[0113] VPCID: vpcB

[0114] Among them, outer represents the packet header of the physical network, inner represents the packet header of the VXLAN virtual network, NCIP represents the physical address of the host machine where the virtual machine is located, XGWIP represents the device address of the virtual network forwarding gateway, ECSIP represents the virtual address in the virtual network, EIP represents the public network address of the virtual machine, and VPCID represents the tunnelid (tunnel address) of the current virtual network.

[0115] For the first mirroring system of the first intranet and the second mirroring system of the second intranet, the matching logic of peer traffic mirroring is as follows:

[0116] On the first mirror system side, the traffic from virtual machine ECS1 to virtual machine ECS2 can capture the message header features of EIP1→EIP2. At this time, on the second mirror system side, the traffic from virtual machine ECS1 to virtual machine ECS2 can also capture the message header features of EIP1→EIP2.

[0117] If the packet header features captured by the first mirror system can also be captured by the second mirror system, it can be concluded that the mirror systems on both sides are working as expected; if the packet header features that can be captured by the first mirror system are not captured by the second mirror system, it can be considered that the second mirror system is working abnormally; similarly, when the packet header features that can be captured by the second mirror system are not captured by the first mirror system, it can be considered that the first mirror system is working abnormally.

[0118] In summary, the method for analyzing the operating status of the intranet bypass mirroring system provided by this embodiment can analyze the operating status of the intranet bypass mirroring system based on the acquired traffic data after acquiring the traffic data collected by the mirroring system. This method can quickly detect whether the bypass mirroring systems in the two intranets perform peer-to-peer traffic mirroring, thereby analyzing the operating status of the two bypass mirroring systems, and promptly discovering the intranet bypass mirroring system with abnormal operation, thereby reducing the adverse effects caused by the abnormality of the intranet bypass mirroring system. In addition, this method does not require the construction of a target station, and determines the operating status of the mirroring system by directly analyzing the traffic data, so the cost is relatively low. In addition, no manual maintenance is required, which can further reduce labor costs.

[0119] Some embodiments of the present application provide an intranet bypass mirroring system operation status analysis system, which is used to execute the intranet bypass mirroring system operation status analysis method provided by any of the above embodiments. Fig.10 A schematic diagram of the intranet bypass mirror system operation status analysis system is shown, Fig.10 As shown, the intranet bypass mirror system operation status analysis system may include:

[0120] A data acquisition module, used to acquire first flow data collected by a first mirroring system and second flow data collected by a second mirroring system, wherein the first mirroring system is arranged in a first intranet and the second mirroring system is arranged in a second intranet;

[0121] The traffic analysis module is used to determine whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet based on the first traffic data and the second traffic data.

[0122] The status analysis module is used to determine that the operating status of the first mirroring system and / or the second mirroring system is abnormal if no.

[0123] Alternatively, if Fig.11As shown, the analysis system provided by the present application may also include a sampling control module, which can be used to determine a corresponding sampling strategy based on session attributes of the same session; and send the sampling strategy to the first mirror system and the second mirror system respectively, so that the first mirror system and the second mirror system collect traffic data based on the sampling strategy.

[0124] The present application also provides an electronic device to perform the above-mentioned method for analyzing the operation status of the intranet bypass mirror system. Fig.12 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Fig.12 As shown, the electronic device 4 includes: a processor 400, a memory 401, a bus 402 and a communication interface 403, wherein the processor 400, the communication interface 403 and the memory 401 are connected via the bus 402; the memory 401 stores a computer program that can be run on the processor 400, and when the processor 400 runs the computer program, the intranet bypass mirror system operation status analysis method provided in any of the aforementioned embodiments of the present application is executed.

[0125] The memory 401 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0126] The bus 402 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 401 is used to store a program, and the processor 400 executes the program after receiving an execution instruction. The method for analyzing the operating status of the intranet bypass mirror system disclosed in any implementation of the embodiment of the present application may be applied to the processor 400, or implemented by the processor 400.

[0127] The processor 400 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 400. The above processor 400 can be a general-purpose processor, including a processor (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.

[0128] The electronic device provided in the embodiment of the present application and the method for analyzing the operation status of the intranet bypass mirror system provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0129] The present application also provides a computer-readable storage medium corresponding to the method for analyzing the operating status of the intranet bypass mirroring system provided in the above embodiment. Fig.13 The computer-readable storage medium shown is a CD 50 on which a computer program (i.e., a program product) is stored. When the computer program is executed by the processor, the method for analyzing the operating status of the intranet bypass mirror system provided in any of the aforementioned embodiments will be executed.

[0130] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0131] An embodiment of the present application also provides a computer program product, including a computer program, which is executed by a processor to implement the method for analyzing the operating status of an intranet bypass mirroring system as described in any of the above embodiments.

[0132] The computer-readable storage medium and computer program product provided in the above-mentioned embodiments of the present application are based on the same inventive concept as the method for analyzing the operation status of the intranet bypass mirror system provided in the embodiments of the present application, and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0133] It should be noted that:

[0134] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.

[0135] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

[0136] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0137] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for analyzing the operating status of an intranet bypass mirroring system, characterized in that: include: Acquire first flow data collected by a first mirroring system and second flow data collected by a second mirroring system, wherein the first mirroring system is set in a first intranet and the second mirroring system is set in a second intranet; Based on the first traffic data and the second traffic data, determining whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet; The peer traffic mirroring refers to the phenomenon that the traffic data related to the same session can be collected equally by the two mirroring systems at both ends of the session; If not, it is determined that the operating status of the first mirroring system and / or the second mirroring system is abnormal.

2. The method according to claim 1, characterized in that The determining, based on the first traffic data and the second traffic data, whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet includes: Determining first message header data belonging to the same session in the first traffic data; Determining second message header data belonging to the same session in the second traffic data; Based on the first message header data and the second message header data, it is determined whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet.

3. The method according to claim 2, characterized in that The determining the first message header data belonging to the same session in the first traffic data includes: Acquire traffic summary information of the first traffic data; the traffic summary information includes message header information of each message in the first traffic data; Based on the message header information of each message, first message header data belonging to the same session is determined.

4. The method according to claim 2, characterized in that: The determining, based on the first message header data and the second message header data, whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet includes: respectively determining first address information included in the first message header data and second address information included in the second message header data; determining whether the first address information and the second address information match; If so, it is determined that the first mirroring system and the second mirroring system have performed peer-to-peer traffic mirroring on the same session between the first intranet and the second intranet; if not, it is determined that the first mirroring system and the second mirroring system have not performed peer-to-peer traffic mirroring on the same session between the first intranet and the second intranet.

5. The method according to claim 4, characterized in that The determining whether the first address information matches the second address information includes: Determine a first intranet address in the first intranet contained in the first address information, and a second public network address corresponding to the second intranet; Determine a second intranet address in the second intranet contained in the second address information, and a first public network address corresponding to the first intranet; Based on the first intranet address, the first public network address, the second intranet address and the second public network address, determine whether the first address information matches the second address information.

6. The method according to claim 5, characterized in that The determining whether the first address information matches the second address information based on the first intranet address, the first public network address, the second intranet address, and the second public network address includes: Determine whether the number of the first intranet addresses and the number of the second intranet addresses of the same session are the same, and determine whether the number of the first public network addresses and the number of the second public network addresses of the same session are the same; If so, it is determined that the first address information and the second address information match; if not, it is determined that the first address information and the second address information do not match.

7. The method according to claim 5, characterized in that The determining whether the first address information matches the second address information based on the first intranet address, the first public network address, the second intranet address, and the second public network address includes: Determine a third public network address mapped to the first intranet address and a fourth public network address mapped to the second intranet address; Determine whether the number of the first public network addresses, the number of the second public network addresses, the number of the third public network addresses, and the number of the fourth public network addresses are all equal; If so, it is determined that the first address information and the second address information match; if not, it is determined that the first address information and the second address information do not match.

8. The method according to claim 1, characterized in that Before obtaining the first flow data collected by the first mirroring system and the second flow data collected by the second mirroring system, the method further includes: Determining a corresponding sampling strategy based on the session attributes of the same session; The sampling strategy is sent to the first mirror system and the second mirror system respectively, so that the first mirror system and the second mirror system collect traffic data based on the sampling strategy.

9. The method according to claim 8, characterized in that The determining a corresponding sampling strategy based on the session attribute of the same session includes: If the public network addresses of both ends of the same session belong to a preset network segment, then determining a corresponding sampling strategy based on the network segment; or, If the session content corresponding to the same session belongs to a preset service, a corresponding sampling strategy based on the preset service is determined.

10. The method according to any one of claims 1 to 9, characterized in that: After determining that the operating status of the first mirroring system and / or the second mirroring system is abnormal, the method further includes: respectively determining the amount of address information included in the first flow data and the amount of address information included in the second flow data; Determine the flow data containing the least amount of address information between the first flow data and the second flow data as abnormal flow data; It is determined that the operating state of the mirroring system corresponding to the abnormal traffic data is abnormal.

11. The method according to claim 10, characterized in that The first mirror system includes a plurality of first mirror collection devices, and the second mirror system includes a plurality of second mirror collection devices; after determining that the mirror system operation state corresponding to the abnormal traffic data is abnormal, the method further includes: Determine the number of device IDs corresponding to each mirror collection device in the mirror system with abnormal operation status from the abnormal traffic data; The image collection device corresponding to the smallest device ID number is determined as an abnormal image collection device.

12. An intranet bypass mirror system operation status analysis system, characterized in that: include: A data acquisition module, used to acquire first flow data collected by a first mirroring system and second flow data collected by a second mirroring system, wherein the first mirroring system is set in a first intranet and the second mirroring system is set in a second intranet; a traffic analysis module, configured to determine, based on the first traffic data and the second traffic data, whether the first mirroring system and the second mirroring system have performed peer traffic mirroring on the same session between the first intranet and the second intranet; The peer traffic mirroring refers to the phenomenon that the traffic data related to the same session can be collected equally by the two mirroring systems at both ends of the session; A status analysis module is used to determine that the operating status of the first mirroring system and / or the second mirroring system is abnormal if no.

13. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method according to any one of claims 1 to 11.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 11.