Fault positioning method and device for underlying network of data center, server and medium
By collecting and analyzing detection flow and path data in the data center, combining layered detection and abnormal alarm data, we can quickly locate the underlying network fault nodes of the data center, solving the problem of low fault positioning efficiency in the data center.
Patent Information
- Application Number
- CN202411109012.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-13
AI Technical Summary
The real-time real-time performance of network fault location at the underlying data center is poor, especially when the scale and complexity increase, it is difficult for traditional methods to quickly identify and locate fault nodes.
By obtaining the detection flow set and path set collected by each target proxy service based on the preset network search list, the detection threshold is determined, the exception alarm data is generated, the abnormal network path is summarized, the abnormal network path is processed, the frequency of public network nodes is counted to locate the fault nodes, and the preset is used The layered detection method reduces the number of detection flows, combining abnormal alarm data and routing paths without traffic acquisition or port mirroring.
It realizes rapid and effective positioning of the network fault nodes at the underlying data center, improves the efficiency and accuracy of fault location, and solves the problem of poor real-time performance.
Smart Images

Figure CN119030859A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of cloud computing technology, and in particular to a method, device, server and medium for locating a fault in an underlying network of a data center. Background Art
[0002] Data centers are the core infrastructure of modern information technology, and their network performance directly affects the quality of various applications and services. Therefore, it is very important to locate the faulty nodes in the underlying network of the data center.
[0003] However, as the scale of data centers continues to expand and the complexity increases, the underlay network of data centers contains a large number of network device nodes and connection lines, and modern data center networks usually use multi-path transmission technology, which makes it difficult for traditional network fault location methods to meet the real-time requirements. Therefore, how to quickly locate faults in the underlying network of data centers is an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, server and medium for locating faults in the underlying network of a data center, so as to solve the problem of poor real-time performance of locating faults in the underlying network in the prior art.
[0005] In a first aspect, an embodiment of the present invention provides a method for locating a fault in an underlying network of a data center, comprising:
[0006] Obtain the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on the preset network search list; wherein the target proxy service is deployed in each target server of the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server;
[0007] Determine a detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set;
[0008] Determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and summarize and process each abnormal network path to obtain a common network node set;
[0009] The occurrence frequency of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical result.
[0010] In a second aspect, an embodiment of the present invention further provides a fault location device for a data center underlying network, the device comprising:
[0011] A data collection module is used to obtain the current detection flow set and the current path set corresponding to the target data center obtained by each target proxy service based on a preset network search list; wherein the target proxy service is deployed in each target server of the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server;
[0012] A data analysis module, used to determine the detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set;
[0013] A fault analysis module, configured to determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and to aggregate and process each abnormal network path to obtain a common network node set;
[0014] The fault location module is used to count the occurrence frequency of each public network node in the public network node set, and determine the target fault node corresponding to the target data center based on the statistical result.
[0015] In a third aspect, an embodiment of the present invention further provides a server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for locating the fault of the underlying network of a data center as described in any one of the embodiments of the present invention is implemented.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for locating a fault in a data center underlying network as described in any one of the embodiments of the present invention.
[0017] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a method for locating a fault in a data center underlying network as described in any one of the embodiments of the present invention.
[0018] In the embodiment of the present invention, the current detection flow set and the current path set corresponding to the target data center are collected based on the preset network search list by each target proxy service, and then, the detection threshold corresponding to the target detection flow is determined based on the integrity index of each target detection flow in the current detection flow set, and the target detection flow is analyzed based on the detection threshold to generate the abnormal alarm data set corresponding to the current detection flow set, and further, the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set is determined based on the current path set, and each abnormal network path is aggregated and processed to obtain a public network node set, and finally, the frequency of occurrence of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical result. Since the detection flow between servers is collected based on the preset hierarchical detection method, the number of detection flows between servers is greatly reduced, and the abnormal alarm data corresponding to the detection flow and the routing path are combined to locate the network fault node, without the need to perform traffic collection or port mirroring operations on the network device. Therefore, the problem of poor real-time positioning of the underlying network fault can be solved, and the fault node of the underlying network can be quickly located. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of the network architecture of a large-scale system for measuring and analyzing network latency in a data center provided by the prior art;
[0021] Figure 2 A flowchart of a method for locating a fault in a data center underlying network provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of a network architecture of an underlying network provided by an embodiment of the present invention;
[0023] Figure 4 A flowchart of another method for locating a fault in a data center underlying network provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of a hierarchical network topology relationship within an access switch provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of an external hierarchical network topology relationship of an access switch provided by an embodiment of the present invention;
[0026] Figure 7 A schematic diagram of an external hierarchical network topology relationship of a convergence switch provided by an embodiment of the present invention;
[0027] Figure 8 A schematic diagram of an external hierarchical network topology relationship of a core switch provided by an embodiment of the present invention;
[0028] Fig. 9 A flowchart of another method for locating a fault in a data center underlying network provided by an embodiment of the present invention;
[0029] Fig.10 A schematic diagram of the structure of a fault location device for a data center underlying network provided by an embodiment of the present invention;
[0030] Fig.11 A schematic diagram of the structure of a server for implementing the method for locating a fault in an underlying network of a data center according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0032] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. The purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or must use the relevant content of the solution.
[0033] Data center networks are usually divided into two levels: underlay network and overlay network. Among them, the underlay network is the physical network responsible for transmitting data packets and is the basis of the overlay network. Therefore, it is very important to quickly locate faults in the underlay network. However, due to the complexity and high requirements of the underlay network, the following challenges are usually encountered when locating faults in the underlay network: 1) Large node scale: The underlay network is composed of devices such as switches and routers, and is driven by Ethernet protocols, routing protocols, and virtual local area networks (VLAN) protocols, including a large number of network device nodes and connection lines. It is difficult to monitor all nodes in real time. 2) Multipath transmission complexity: The underlay network uses multipath transmission technology, which increases the complexity of the network path and the difficulty of fault location. 3) High real-time requirements: Many applications have extremely high requirements for network quality and need to quickly identify network problems and perform fast fault location.
[0034] The prior art generally uses a large-scale system (pingmesh) for data center network latency measurement and analysis to determine network performance in an underlay network for detection. Figure 1 A network architecture diagram of a large-scale system for measuring and analyzing network latency in a data center provided by the prior art. Specifically, the pingmesh architecture includes a pingmesh controller, a pingmesh agent service (agent), and a data storage and analysis (DSA) platform. The pingmesh generator in the pingmesh controller generates a packet internet grope list (pinglist) file based on the network topology diagram, wherein the pinglist file contains a list of target server nodes to be detected by each server. And the pinglist file is sent to each server. The pingmesh agent in each server determines the server to be detected based on the pinglist file, and uses the transmission control protocol / hypertext transfer protocol (TCP / HTTP) to perform a packet network search (ping) on the server to be detected, and saves the result in the form of a log in the memory. When the saved result in the memory exceeds a certain threshold or reaches the timeout time, the saved result is uploaded to the DSA platform for analysis and processing.
[0035] However, if the pingmesh system is used for network performance testing, each server in the same data center needs to ping all other servers. For example, if the data center contains N servers, each server needs to ping the remaining (N-1) servers, that is, N 2 The complexity. If there are 10,000 servers in the data center, there will be 10,000*9999 ping tasks. If a server has multiple Internet Protocol (IP) requests, the result will double. If a ping action is performed every 30 seconds, and the payload size required for a ping action is 64 bytes, the data storage capacity for one day is: 10,000*9999*64*24*3600 / 30=16.76TB. It requires higher computing and storage costs, and greatly affects the detection rate of network performance. In addition, although the pingmesh system can detect the network performance of the underlying network, it is difficult to specifically locate the root cause of the fault. Therefore, in order to quickly locate the faulty nodes of the underlying network and improve the efficiency of fault location, an embodiment of the present invention proposes a fault location method for the underlying network of a data center.
[0036] Figure 2 The present invention provides a flowchart of a method for locating a fault in a data center underlying network. This embodiment is applicable to the case of quickly locating a fault node in a data center underlying network. The method can be performed by a fault locating device for a data center underlying network. The device can be implemented in the form of hardware and / or software and can be configured in a server. Figure 2 As shown, the method includes:
[0037] S101. Obtain the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on a preset network search list; wherein the target proxy service is deployed in each target server in the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server.
[0038] The target data center may refer to a data center that needs to perform data analysis. For example, it may be a data center that needs to perform fault location, or it may be a data center that needs to perform quality assessment. Each physical device in the data center constitutes an underlying network, and the underlying network in each data center is usually a standard three-layer network architecture. Figure 3A schematic diagram of the network architecture of an underlying network provided for an embodiment of the present invention. Specifically, in the same geographical area, multiple independent data centers isolated from each other form an availability zone (AZ). For each data center in each AZ, the server (server) is mounted under the access switch (leaf), the access switch is mounted under the aggregation switch (Spine), and the aggregation switch is mounted under the core switch (core). Among them, the server, access switch and aggregation switch are in the computing area, and the core switch is in the core switching area. Each AZ transmits data through the core switch.
[0039] Among them, the target server may refer to the source server selected for data detection in the preset network search list. The preset network search list may refer to a pre-built data detection topology list corresponding to the target data center. Usually, the preset network search list includes the source server for data detection, that is, the target server, and the detected server corresponding to the source server. Exemplarily, the preset network search list may include the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch, and the external hierarchical network topology relationship of the core switch corresponding to each target server.
[0040] Among them, the internal hierarchical network topology relationship of the access switch may refer to the network topology relationship between the target server and the corresponding detected server under the same access switch. The external hierarchical network topology relationship of the access switch may refer to the network topology relationship between the target server and the detected servers under different access switches. The external hierarchical network topology relationship of the aggregation switch may refer to the network topology relationship between the target server and the detected servers under different aggregation switches. The external hierarchical network topology relationship of the core switch may refer to the network topology relationship between the target server and the detected servers under different core switches.
[0041] The target proxy service may refer to a proxy service program deployed on the target server for initiating data detection. Exemplarily, the target proxy service may perform packet internet grope (ping) to generate detection flow results, or may perform path collection to generate path collection results. The current detection flow set may refer to a set of detection flow results corresponding to the target data center at the same time. The current path set may refer to a set of path collection results corresponding to the target data center at the same time.
[0042] In an optional embodiment, before obtaining the current detection flow set and current path set corresponding to the target data center collected by each target proxy service based on a preset network search list, it may also include: generating a basic proxy service based on the underlying principle of packet network search, and deploying the basic proxy service to all servers in the target data center. Among them, the underlying principle of packet network search may refer to the underlying principle of the ping command. The basic proxy service may refer to a proxy service reconstructed according to the underlying principle of packet network search. Therefore, by rewriting the basic proxy service using the underlying principle of the ping command and deploying the basic proxy service to all servers in the target data center, it is possible to make it possible for the target server to send a detection request to other nodes without calling the ping command of the operating system, thereby improving the efficiency of data detection.
[0043] S102. Determine a detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set.
[0044] Among them, the target detection stream may refer to the detection stream result selected for data analysis in the current detection stream set. Exemplarily, the target detection stream may include the source IP address, the destination IP address, the packet loss rate, and the delay time. The integrity index may refer to the degree of integrity of the historical data corresponding to the target detection stream. Exemplarily, the integrity index may be an integrity result that represents a greater degree of integrity of the historical data corresponding to the target detection stream, or an incompleteness result that represents a smaller degree of integrity of the historical data corresponding to the target detection stream.
[0045] Among them, the detection threshold may refer to a value used to evaluate the target detection flow. Abnormal alarm data may refer to the alarm information corresponding to the target detection flow that does not meet the detection threshold. Exemplarily, the abnormal alarm data may include the target detection flow that does not meet the detection threshold, the corresponding detection threshold, and the value exceeding the detection threshold. The abnormal alarm data set may refer to a set composed of each abnormal alarm data corresponding to the current detection flow set.
[0046] S103: Determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and aggregate and process each abnormal network path to obtain a public network node set.
[0047] The abnormal network path may refer to a transmission path for generating abnormal alarm data, and may be, for example, a transmission path of a target detection stream corresponding to the abnormal alarm data.
[0048] The public network node may refer to the same network node that at least two abnormal network paths pass through. The public network node set may refer to a set consisting of public network nodes corresponding to the target data center.
[0049] S104: Count the occurrence frequency of each public network node in the public network node set, and determine the target fault node corresponding to the target data center based on the statistical result.
[0050] The occurrence frequency may refer to the number of occurrences of the same public node in each abnormal network path. Exemplarily, the occurrence frequency of each public network node may be determined by the number of times each abnormal network path passes through the same public node. The target fault node may refer to a network node with a fault problem in the target data center.
[0051] In the embodiment of the present invention, the current detection flow set and the current path set corresponding to the target data center are collected based on the preset network search list by each target proxy service, and then, the detection threshold corresponding to the target detection flow is determined based on the integrity index of each target detection flow in the current detection flow set, and the target detection flow is analyzed based on the detection threshold to generate the abnormal alarm data set corresponding to the current detection flow set, and further, the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set is determined based on the current path set, and each abnormal network path is aggregated and processed to obtain a public network node set, and finally, the frequency of occurrence of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical result. Since the detection flow between servers is collected based on the preset hierarchical detection method, the number of detection flows between servers is greatly reduced, and the abnormal alarm data corresponding to the detection flow and the routing path are combined to locate the network fault node, without the need to perform traffic collection or port mirroring operations on the network device. Therefore, the problem of poor real-time positioning of the underlying network fault can be solved, and the fault node of the underlying network can be quickly located.
[0052] Figure 4 This is a flowchart of another method for locating a fault in the underlying network of a data center provided by an embodiment of the present invention. This embodiment is based on the above embodiment and specifically describes the operations before obtaining the current detection flow set and current path set corresponding to the target data center collected by each target proxy service based on a preset network search list. Figure 4 As shown, the method includes:
[0053] S201. Obtain basic network topology data corresponding to the underlying network of the target data center; wherein the basic network topology data includes core switch information corresponding to the target data center, aggregation switch information corresponding to each core switch, access switch information corresponding to each aggregation switch, and server information corresponding to each access switch.
[0054] The basic network topology data may refer to the original network topology data corresponding to the underlying network of the target data center. Typically, the basic network topology data includes the core switch information corresponding to the target data center, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch.
[0055] The core switch information corresponding to the target data center may include the number of core switches corresponding to the target data center and the numbers of each core switch. The aggregation switch information corresponding to each core switch may include the number of aggregation switches under each core switch and the numbers of each aggregation switch. The access switch information corresponding to each aggregation switch may include the number of access switches under each aggregation switch and the numbers of each access switch. The server information corresponding to each access switch may include the number of servers under each access switch and the numbers of each server.
[0056] Therefore, through the basic network topology data corresponding to the underlying network of the target data center, the number of devices at each level and the connection status between each device can be determined, providing an effective basis for the construction of the subsequent preset network search list.
[0057] S202: Based on the preset access switch internal hierarchical detection rules and the server information corresponding to each access switch, construct the internal hierarchical network topology relationship of all access switches corresponding to the target data center.
[0058] The preset access switch internal level detection rule may refer to a preset access switch internal level detection link determination rule. The detection link topology relationship between servers under the same access switch can be determined by the preset access switch internal level detection rule.
[0059] Among them, the internal hierarchical network topology relationship of the access switch may refer to the detection link topology relationship of the internal hierarchical level of the access switch constructed according to the preset internal hierarchical detection rules of the access switch. Generally, the internal hierarchical network topology relationship of the access switch may include the source server number and the corresponding detected server number under the same access switch. The internal hierarchical network topology relationship of the full access switch may refer to the internal hierarchical network topology relationship of all access switches in the target data center.
[0060] In an optional implementation, the step of constructing the internal hierarchical network topology relationship of all access switches corresponding to the target data center based on the preset internal hierarchical detection rule of the access switch and the server information corresponding to each access switch includes:
[0061] Step a1: based on the server information corresponding to each access switch, obtain a first current server under a target access switch and a first set number of first servers to be tested corresponding to the first current server.
[0062] The target access switch may refer to the access switch mounted by the server currently selected for determining the network topology relationship. The first current server may refer to the source server that initiates the detection request under the target access switch. Exemplarily, the first current server may be each server under the target access switch. The first server to be tested may refer to the detected server corresponding to the first current server.
[0063] Among them, the first set number may refer to a value that limits the number of devices in the internal layer of the access switch. Exemplarily, the multiple may be set according to the detection link value issued by each server in the internal layer of the access switch. Specifically, a maximum of 45 servers are usually connected to the access switch, that is, there are 45 links from the server to the access switch, and each server can theoretically cover all 45 links by initiating one detection link. Therefore, in an embodiment of the present invention, each server can initiate a detection link with a set multiple, such as 3 times the detection link, that is, 3 links. In this way, the coverage rate of all detection links can be improved.
[0064] Step a2: taking the first current server as a first source object and the first server to be tested as a first detection object, constructing a detection link between the first source object and the first detection object, and generating an internal hierarchical network topology relationship corresponding to the target access switch.
[0065] The source object may refer to a server that initiates a detection request. The detection object may refer to a server that is detected. Usually, a source object and a detection object are combined to form a detection link. The first source object may refer to a source object under the internal hierarchy of the access switch. The first detection object may refer to a detection object under the internal hierarchy of the access switch. The internal hierarchical network topology relationship corresponding to the target access switch may refer to the network topology relationship formed between each first source object under the target access switch and the corresponding first detection object.
[0066] Figure 5A schematic diagram of an internal hierarchical network topology relationship of an access switch provided by an embodiment of the present invention. Specifically, for each server under the same target access switch, the servers numbered i under the target access switch are used as the first current server, and the servers numbered (i+N) are used as the first server to be tested. Wherein, N represents the first set number, and exemplary, N=1, 2, 3. For example, if the server numbered 1 is the first current server, the first servers to be tested are respectively the server numbered 2, the server numbered 3, and the server numbered 4. Similarly, if the server numbered 2 is the first current server, the first servers to be tested are respectively the server numbered 3, the server numbered 4, and the server numbered 5. Furthermore, the first current server is used as the first source object, the first server to be tested is used as the first detection object, and a detection link between the first source object and the first detection object is constructed. Finally, the detection links between all the first source objects and the first detection objects under the target access switch are summarized to generate an internal hierarchical network topology relationship corresponding to the target access switch.
[0067] Step a3: Summarize the internal hierarchical network topology relationships corresponding to all target access switches, and generate the internal hierarchical network topology relationships of all access switches corresponding to the target data center.
[0068] Specifically, after generating the internal hierarchical network topology relationship corresponding to each target access switch, the internal hierarchical network topology relationship corresponding to all target access switches under the target data center is summarized, thereby generating the internal hierarchical network topology relationship of all access switches corresponding to the target data center, providing an effective basis for subsequent fault location.
[0069] S203: construct an external hierarchical network topology relationship of all access switches corresponding to the target data center based on a preset access switch external hierarchical detection rule, access switch information corresponding to each aggregation switch, and server information corresponding to each access switch.
[0070] The preset access switch external layer detection rule may refer to a preset access switch external layer detection link determination rule. The detection link topology relationship between access switches under the same aggregation switch can be determined by the preset access switch external layer detection rule.
[0071] Among them, the access switch external hierarchical network topology relationship may refer to the access switch external hierarchical detection link topology relationship constructed according to the preset access switch external hierarchical detection rule. Generally, the access switch external hierarchical network topology relationship may include the source server number and the corresponding detected server number under the same aggregation switch but different access switches. The full access switch external hierarchical network topology relationship may refer to the external hierarchical network topology relationship of all access switches in the target data center.
[0072] In an optional implementation, the step of constructing an external hierarchical network topology relationship of all access switches corresponding to a target data center based on a preset access switch external hierarchical detection rule, access switch information corresponding to each aggregation switch, and server information corresponding to each access switch includes:
[0073] Step b1: based on the access switch information corresponding to each aggregation switch, obtain the first current access switch under the target aggregation switch and a second set number of first access switches to be tested corresponding to the first current access switch.
[0074] The target aggregation switch may refer to the aggregation switch mounted on the access switch currently selected for determining the network topology relationship. The first current access switch may refer to the source access switch that initiates the detection request under the target aggregation switch. The first access switch to be tested may refer to the detected access switch corresponding to the first current access switch.
[0075] Among them, the second set number may refer to a value that limits the number of devices at the external level of the access switch. Exemplarily, the multiple may be set according to the detection link value sent by each access switch at the external level of the access switch. Specifically, each access switch is usually connected to a maximum of 4 aggregation switches, that is, each access switch has a total of 4 links to the aggregation switch. Therefore, in an embodiment of the present invention, each access switch can send a set multiple of detection links, such as 3 times the detection links, that is, 12 detection links. Thereby, the coverage of all detection links can be improved.
[0076] Step b2: based on the server information corresponding to each access switch, obtain a second set number of second current servers under the first current access switch, and based on the second current servers and a preset sorting remainder rule, obtain a second server to be tested under the first access switch to be tested.
[0077] The second current server may refer to a source server that initiates a detection request under the first current access switch. The second server to be tested may refer to a detected server corresponding to the second current server.
[0078] Among them, the preset sorting remainder rule may refer to a preset link pairing rule between each physical machine. Exemplarily, if the source physical machine that initiates the detection request is numbered X, and the device layer receiving the detection request contains Y physical machines, then the preset sorting remainder rule may stipulate that the number of the detected physical machine is the remainder of X divided by Y, that is, (X%Y). Specifically, taking the first current access switch as access switch 1, the second current server as P, the first access switch to be tested as access switch 2, and access switch 2 containing Q servers as an example, according to the preset sorting remainder rule, it can be determined that the second server to be tested under the first access switch to be tested is numbered (P%Q).
[0079] Step b3: taking the second current server as the second source object and the second server to be tested as the second detection object, constructing a detection link between the second source object and the second detection object, and generating an external hierarchical network topology relationship corresponding to the first current access switch.
[0080] The second source object may refer to a source object under the external layer of the access switch. The second detection object may refer to a detection object under the external layer of the access switch. The external layer network topology relationship corresponding to the first current access switch may refer to the network topology relationship formed between each second source object under the first current access switch and the corresponding second detection object.
[0081] Figure 6A schematic diagram of an external hierarchical network topology relationship of an access switch provided by an embodiment of the present invention. Specifically, first, for each access switch under the same target aggregation switch, and the servers under each access switch are sorted by IP, the source access switch currently selected to initiate the detection request under the target aggregation switch is used as the first current access switch, and the remaining second set number of access switches are used as the first access switch to be tested. For example, if the first current access switch is access switch 1 under the target aggregation switch, and the second set number is 12, then the first access switches to be tested are access switch 2, access switch 3, ..., access switch 12 and access switch 13 under the target aggregation switch, a total of 12 access switches. Further, in order to ensure that the servers under each access switch are sufficiently dispersed, the second set number of servers are selected as the second current servers under each first current access switch, and the second server to be tested under the first access switch to be tested is determined according to the preset sorting remainder rule. For example, take the first current access switch as access switch 1 under the target aggregation switch, the first access switch to be tested is access switch 2 under the target aggregation switch, and access switch 2 contains q servers as an example. If 12 servers are selected as the second current servers under access switch 1, the second server to be tested corresponding to the second current server numbered p is numbered (p%q). Exemplarily, if access switch 2 contains 13 servers, and the second current server is the server numbered 1 under access switch 1, then the second server to be tested is the server numbered 1 under access switch 2. Similarly, if the second current server is the server numbered 2 under access switch 1, then the second server to be tested is the server numbered 2 under access switch 2. By analogy, all 12 second current servers under access switch 1 have completed pairing with the corresponding second server to be tested. Finally, the second current server is used as the second source object, and the second server to be tested is used as the second detection object. A detection link between the second source object and the second detection object is constructed, and the detection links between all the second source objects and the second detection objects under the first current access switch are summarized to generate an external hierarchical network topology relationship corresponding to the first current access switch.
[0082] Step b4: Summarize the external hierarchical network topology relationships corresponding to all first current access switches under all target aggregation switches to generate the external hierarchical network topology relationships of all access switches corresponding to the target data center.
[0083] Specifically, after generating the external hierarchical network topology relationship corresponding to each first current access switch, the external hierarchical network topology relationship corresponding to all the first current access switches under the same target aggregation switch is summarized, and the external hierarchical network topology relationship corresponding to the first current access switches under all target aggregation switches under the target data center is summarized, thereby generating the external hierarchical network topology relationship of all access switches corresponding to the target data center, providing an effective basis for subsequent fault location.
[0084] S204: Based on the preset aggregation switch external hierarchical detection rules, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, an external hierarchical network topology relationship of all aggregation switches corresponding to the target data center is constructed.
[0085] The preset aggregation switch external layer detection rule may refer to a preset aggregation switch external layer detection link determination rule. The detection link topology relationship between servers under the same core switch can be determined by the preset aggregation switch external layer detection rule.
[0086] The external hierarchical network topology of the aggregation switch may refer to the external hierarchical detection link topology of the aggregation switch constructed according to the preset external hierarchical detection rules of the aggregation switch. Generally, the external hierarchical network topology of the aggregation switch may include the source server number and the corresponding detected server number under the same core switch but different aggregation switches. The external hierarchical network topology of all aggregation switches may refer to the external hierarchical network topology of all aggregation switches in the target data center.
[0087] In an optional implementation, the external hierarchical network topology relationship of the full aggregation switches corresponding to the target data center is constructed based on the preset aggregation switch external hierarchical detection rule, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, including:
[0088] Step c1: based on the aggregation switch information corresponding to each core switch, obtain the first current aggregation switch under the target core switch and a third set number of first aggregation switches to be tested corresponding to the first current aggregation switch.
[0089] The target core switch may refer to the core switch mounted on the aggregation switch currently selected for determining the network topology relationship. The first current aggregation switch may refer to the source aggregation switch that initiates the detection request under the target core switch. The first aggregation switch to be tested may refer to the detected aggregation switch corresponding to the first current aggregation switch. Usually, the first aggregation switch to be tested is an aggregation switch adjacent to the first current aggregation switch.
[0090] Among them, the third set number can refer to a value that limits the number of devices at the external level of the aggregation switch. Exemplarily, the multiple can be set according to the detection link value sent by each aggregation switch at the external level of the aggregation switch. Specifically, each aggregation switch is usually connected to a maximum of 4 core switches, that is, each aggregation switch has a total of 4 links to the core switch. Therefore, in an embodiment of the present invention, each aggregation switch can send a set multiple of detection links, such as 5 times the detection links, that is, 20 detection links. In this way, the coverage of all detection links can be improved.
[0091] Step c2: based on the access switch information corresponding to each aggregation switch, obtain a third set number of second current access switches under the first current aggregation switch, and based on the second current access switches and a preset sorting remainder rule, obtain the second access switches to be tested under the first aggregation switch to be tested.
[0092] The second current access switch may refer to a source access switch that initiates a detection request under the first current aggregation switch. Generally, to ensure that the access switches under each aggregation switch are sufficiently dispersed, a third set number of second current access switches are selected under each first current aggregation switch. The second access switch to be tested may refer to a detected access switch corresponding to the second current access switch.
[0093] Step c3: take the first server under the second current access switch as the third source object, and the first server under the second access switch to be tested as the third detection object, build a detection link between the third source object and the third detection object, and generate an external hierarchical network topology relationship corresponding to the first current aggregation switch.
[0094] Among them, the first server may refer to the server with the first IP order under the access switch. Exemplarily, it may be the server numbered 1. The third source object may refer to the source object under the external layer corresponding to the aggregation switch. The third detection object may refer to the detection object under the external layer corresponding to the aggregation switch. The external layer network topology relationship corresponding to the first current aggregation switch may refer to the network topology relationship formed between each third source object under the first current aggregation switch and the corresponding third detection object.
[0095] Figure 7A schematic diagram of the external hierarchical network topology relationship of an aggregation switch provided by an embodiment of the present invention. Specifically, the aggregation switches under the same target core switch, the access switches under all the aggregation switches, and the servers under each access switch are sorted by IP, and the source aggregation switch that initiates the detection request under the target core switch is used as the first current aggregation switch, and each first current aggregation switch selects the adjacent third set number of first aggregation switches to be tested. Exemplarily, if the first current aggregation switch is the aggregation switch 1 under the target core switch, and the third set number is 20, then the first aggregation switches to be tested are respectively the aggregation switch 2, the aggregation switch 3, ..., the aggregation switch 20 and the aggregation switch 21 under the target core switch, a total of 20 aggregation switches. Further, in order to ensure that the access switches under each aggregation switch are sufficiently dispersed, the second current access switches of the third set number are selected under each first current aggregation switch, and the second access switch to be tested under the first aggregation switch to be tested is determined according to the preset sorting remainder rule. For example, take the first current aggregation switch as the aggregation switch 1 under the target core switch, the first aggregation switch to be tested is the aggregation switch 2 under the target core switch, and the aggregation switch 2 contains s access switches as an example. Then the second access switch to be tested corresponding to the second current access switch numbered r under aggregation switch 1 is numbered (r%s) in aggregation switch 2. Exemplarily, if aggregation switch 1 includes 20 access switches, aggregation switch 2 includes 20 access switches, and the second current access switch is the access switch numbered 1 under aggregation switch 1, then the second access switch to be tested is the access switch numbered 1 under aggregation switch 2, that is, the access switch numbered 21 among all access switches. Similarly, if the second current access switch is the access switch numbered 2 under aggregation switch 1, then the second access switch to be tested is the access switch numbered 2 under aggregation switch 2, that is, the access switch numbered 22 among all access switches. By analogy, all 20 second current access switches under aggregation switch 1 complete pairing with the corresponding second access switch to be tested. Furthermore, the first server under the second current access switch is used as the third source object, and the first server under the second access switch to be tested is used as the third detection object. A detection link is constructed between the third source object and the third detection object, and the detection links between all the third source objects and the third detection objects under the first current aggregation switch are summarized to generate an external hierarchical network topology relationship corresponding to the first current aggregation switch.
[0096] It is worth noting that if the number of aggregation switches adjacent to the first current aggregation switch in the target core switch is lower than the third set number, the aggregation switches adjacent to the first current aggregation switch can be used to supplement. For example, the target core switch contains 31 aggregation switches, the first current aggregation switch is numbered as aggregation switch 10, and the third set number is 20. The aggregation switches behind aggregation switch 10 can be obtained first. Here, the number of aggregation switches adjacent to the first current aggregation switch is 11, which is lower than the third set number 20. Then, 9 more aggregation switches are obtained from the aggregation switches before aggregation switch 10 as the first aggregation switch to be tested.
[0097] Step c4: Summarize the external hierarchical network topology relationships corresponding to all the first current aggregation switches under all the target core switches, and generate the external hierarchical network topology relationships of all the aggregation switches corresponding to the target data center.
[0098] Specifically, after generating the external hierarchical network topology relationship corresponding to each first current aggregation switch, the external hierarchical network topology relationship corresponding to all the first current aggregation switches under the same target core switch is summarized, and the external hierarchical network topology relationship corresponding to the first current aggregation switches under all target core switches under the target data center is summarized. Thus, the external hierarchical network topology relationship of all aggregation switches corresponding to the target data center is generated, providing an effective basis for subsequent fault location.
[0099] S205. Based on the preset core switch external hierarchical detection rules, the core switch information corresponding to the target data center, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, the external hierarchical network topology relationship of all core switches corresponding to the target data center is constructed.
[0100] The preset core switch external layer detection rule may refer to a preset core switch external layer detection link determination rule. The detection link topology relationship between servers under different core switches can be determined by the preset core switch external layer detection rule.
[0101] Among them, the core switch external hierarchical network topology relationship may refer to the core switch external hierarchical detection link topology relationship constructed according to the preset core switch external hierarchical detection rules. Generally, the core switch external hierarchical network topology relationship may include the source server number and the corresponding detected server number under different core switches. The full core switch external hierarchical network topology relationship may refer to the external hierarchical network topology relationship of all core switches in the target data center.
[0102] In an optional implementation, the external hierarchical network topology relationship of all core switches corresponding to the target data center is constructed based on the preset core switch external hierarchical detection rule, the core switch information corresponding to the target data center, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, including:
[0103] Step d1: Based on the core switch information corresponding to the target data center, the current core switch in the target data center and the core switch to be tested corresponding to the current core switch are obtained.
[0104] The current core switch may refer to the source core switch currently selected for determining the network topology relationship. The core switch to be tested may refer to the detected core switch corresponding to the current core switch. Exemplarily, the core switch to be tested may be the remaining core switches in the target data center except the current core switch.
[0105] Step d2: Determine the second current aggregation switch with the same number under the current core switch and the second aggregation switch to be tested with the same number under the core switch to be tested based on the aggregation switch information corresponding to each core switch.
[0106] The second current aggregation switch may refer to an aggregation switch under the current core switch that initiates the detection request. The second aggregation switch to be tested may refer to an aggregation switch to be detected corresponding to the second current aggregation switch.
[0107] Specifically, if the current core switch is core switch 1 and the core switch to be tested is core switch 2, the second current aggregation switch is aggregation switch 1 in the sequence of all aggregation switches, and the second aggregation switch to be tested is aggregation switch 2 in the sequence of all aggregation switches.
[0108] Step d3: based on the access switch information corresponding to each aggregation switch, obtain a fourth set number of third current access switches under the second current aggregation switch, and based on the third current access switches and a preset sorting remainder rule, obtain a third access switch to be tested under the second aggregation switch to be tested.
[0109] Among them, the fourth set number may refer to a value that limits the number of devices at the external level of the core switch. Exemplarily, the multiples may be set according to the detection link values sent by each core switch at the external level of the core switch. Specifically, if each core switch is connected to two customer network edge devices (Customer Edge, CE), that is, there are 2 links from each core switch to the customer network edge device. Therefore, in an embodiment of the present invention, each core switch may send a set multiple of detection links, such as 5 times the detection links, that is, 10 detection links. Thus, the coverage of all detection links can be improved.
[0110] The third current access switch may refer to a source access switch that initiates a detection request under the second current aggregation switch. Typically, to ensure that the access switches under each aggregation switch are sufficiently dispersed, a fourth set number of third current access switches are selected under each second current aggregation switch. The third access switch to be tested may refer to a detected access switch corresponding to the third current access switch.
[0111] Step d4: Use the first server under the third current access switch as the fourth source object, and the first server under the third access switch to be tested as the fourth detection object, build a detection link between the fourth source object and the fourth detection object, and generate an external hierarchical network topology relationship corresponding to the current core switch.
[0112] The fourth source object may refer to a source object under the external layer of the core switch. The fourth detection object may refer to a detection object under the external layer of the core switch. The external layer network topology relationship corresponding to the current core switch may refer to the network topology relationship formed between each fourth source object under the current core switch and the corresponding fourth detection object.
[0113] Figure 8A schematic diagram of the external hierarchical network topology relationship of a core switch provided in an embodiment of the present invention. Specifically, for the target core switch under the same target data center, the aggregation switch under the target core switch, the access switches under all the aggregation switches, and the servers under each access switch are sorted by IP, the source core switch that initiates the detection request under the target data center is used as the current core switch, and the remaining core switches are used as the core switches to be tested, and the aggregation switch with the same number under the current core switch is used as the second current aggregation switch, and the aggregation switch with the same number under the core switch to be tested is used as the second aggregation switch to be tested. Exemplarily, if the current core switch is core switch 1 and the core switch to be tested is core switch 2, the second current aggregation switch is aggregation switch 1 in the sorting of all aggregation switches, and the second aggregation switch to be tested is aggregation switch 2 in the sorting of all aggregation switches. Further, in order to ensure that the access switches under each aggregation switch are sufficiently dispersed, a fourth set number of third current access switches are selected under each second current aggregation switch, and the third access switch to be tested under the second aggregation switch to be tested is determined according to the preset sorting remainder rule. For example, the second current aggregation switch is the aggregation switch 1 under the current core switch, the second aggregation switch to be tested is the aggregation switch 2 under the core switch to be tested, and the aggregation switch 2 contains v access switches. Then the third access switch to be tested corresponding to the third current access switch numbered u under the aggregation switch 1 is numbered (u%v) in the aggregation switch 2. Exemplarily, if the aggregation switch 1 contains 10 access switches, the aggregation switch 2 contains 10 access switches, the fourth set number is 10, and the third current access switch is the access switch numbered 1 under the aggregation switch 1, then the third access switch to be tested is the access switch numbered 1 under the aggregation switch 2, that is, the access switch numbered 11 among all the access switches. Similarly, if the third current access switch is the access switch numbered 2 under the aggregation switch 1, then the third access switch to be tested is the access switch numbered 2 under the aggregation switch 2, that is, the access switch numbered 12 among all the access switches. By analogy, the 10 third current access switches under the aggregation switch 1 are all paired with the corresponding third access switches to be tested. Furthermore, the first server under the third current access switch is used as the fourth source object, and the first server under the third access switch to be tested is used as the fourth detection object. A detection link is constructed between the fourth source object and the fourth detection object, and the detection links between all the fourth source objects and the fourth detection objects under the current core switch are summarized to generate an external hierarchical network topology relationship corresponding to the current core switch.
[0114] Step d5: Summarize the external hierarchical network topology relationships corresponding to all current core switches in the target data center, and generate the external hierarchical network topology relationships of all core switches corresponding to the target data center.
[0115] Specifically, after generating the external hierarchical network topology relationship corresponding to each current core switch, the external hierarchical network topology relationship corresponding to all current core switches under the same target data center is summarized, thereby generating the external hierarchical network topology relationship of all core switches corresponding to the target data center, providing an effective basis for subsequent fault location.
[0116] S206, deduplicating the internal hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full aggregation switch, and the external hierarchical network topology relationship of the full core switch, to obtain a preset network search list corresponding to the target data center.
[0117] Among them, deduplication processing can refer to the processing operation of screening out repeated detection links. Exemplarily, the repeated detection links in the internal hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full aggregation switch, and the external hierarchical network topology relationship of the full core switch are screened out, and only one detection link is retained in each group of repeated detection links, and the remaining detection links are deleted to generate a preset network search list corresponding to the target data center. In this way, it can be ensured that within a detection cycle, the number of detection links between the source object and the detection object is one, which avoids the duplication of data transmission and improves the efficiency of fault location.
[0118] Specifically, if the number of core switches in the target data center is CS=8, the number of aggregation switches is SPS=74, the number of access switches is LS=1843, the average number of servers under each access switch is S=45, the number of user network edge devices connected to each core switch is CE=4, the first set number is 3, the second set number is 12, the third set number is 20, and the fourth set number is 20. Then in the preset network search list, the number of detection links included in the internal hierarchical network topology relationship of all access switches is: 3*S*LS=248805. The number of detection links included in the external hierarchical network topology relationship of all access switches is: 12*12*LS=265392. The number of detection links included in the external hierarchical network topology relationship of all aggregation switches is: 20*20*SPS=29600. The number of detection links included in the external hierarchical network topology relationship of all core switches is: CE*5*CS*(CS-1)=20*CS*(CS-1)=1120. That is, there are a total of 540,000 detection links in the target data center, which greatly reduces the number of detection links compared to the existing technology.
[0119] S207. Determine the target detection object corresponding to the target server based on the preset network search list through the target proxy service, group the target detection object to generate a current detection flow according to the first set time, and perform path collection on the target detection object to generate a current path according to the second set time.
[0120] Among them, the target detection object may refer to the detected server corresponding to the target server. The packet network search may refer to a ping detection operation performed according to the ping command. The first set duration may refer to a pre-set time period for periodically limiting the packet network search operation. Exemplarily, the first set duration may be 5s or 10s, etc. The current detection flow may refer to the ping detection result between the target server and the target detection object in the current detection cycle. Exemplarily, the current detection flow may include the source IP, destination IP, packet loss rate, delay time, etc.
[0121] Among them, path collection may refer to a network path acquisition operation performed according to a path tracking command. The second set duration may refer to a pre-set time period for periodically limiting the path collection operation. Exemplarily, the second set duration may be 1 hour. The current path may refer to a data transmission link between a target server and a target detection object during an actual data transmission process.
[0122] S208: Summarize the current detection flows corresponding to all target proxy services at the same time as the current detection flow set corresponding to the target data center, and summarize the current paths corresponding to all target proxy services at the same time as the current path set corresponding to the target data center.
[0123] Specifically, after the target detection object is grouped and network searched according to the first set time by the target proxy service to generate the current detection flow, the current detection flows corresponding to all target proxy services at the same time are summarized to generate the current detection flow set corresponding to the target data center, and after the target detection object is path collected according to the second set time to generate the current path, the current paths corresponding to all target proxy services at the same time are summarized to generate the current path set corresponding to the target data center. Thus, an effective data basis is provided for subsequent fault location.
[0124] S209: Verify the integrity of each target detection flow in the current detection flow set based on the integrity of the historical detection flow set corresponding to the target data center, and obtain the integrity index corresponding to each target detection flow.
[0125] The historical detection flow set may refer to a set of detection flows collected in a historical time period, for example, a set of detection flows collected in the previous week or the previous month.
[0126] Among them, the integrity check may refer to a data integrity check operation performed on the target detection stream. Exemplarily, the integrity check may include a format check and a data volume check. Specifically, the format check may be a standardized check on the data format of the target detection stream. The data volume check may be to determine whether there is detection stream data of the same detection link as the target detection stream in the historical detection stream set.
[0127] S210: Determine a detection threshold corresponding to the target detection flow based on a preset alarm strategy and the integrity indicator.
[0128] The preset alarm strategy may refer to a preset data evaluation strategy. Exemplarily, the preset alarm strategy may be a dynamic prediction strategy or a solid prediction strategy.
[0129] In an optional implementation, the determining the detection threshold corresponding to the target detection flow based on the preset alarm strategy and the integrity indicator includes:
[0130] Step e1: If the preset alarm strategy is a dynamic prediction strategy and the integrity indicator corresponding to the target detection flow is an integrity result, a dynamic threshold is generated based on the historical detection flow corresponding to the target detection flow in the historical detection flow set, and the dynamic threshold is used as the detection threshold corresponding to the target detection flow.
[0131] The dynamic prediction strategy may refer to a strategy for dynamically evaluating data, and the dynamic threshold may refer to a threshold that changes with the change of time points.
[0132] Specifically, for the same detection pair, i.e., the target server and the corresponding detected server, the data fluctuations at different time points may be different. Therefore, when the preset alarm strategy is a dynamic prediction strategy and the integrity indicator corresponding to the target detection flow is the integrity result, the detection threshold of the target detection flow can be determined by using the historical detection flow generated by the detection pair corresponding to the target detection flow in the historical time period. Exemplarily, if in the historical detection flow within a month, the delay of the detection pair corresponding to the target detection flow at zero o'clock is 5ms, and the delay at nine o'clock in the morning is 15ms. Then the detection threshold of the target detection flow at zero o'clock can be set to 15ms, and the detection threshold at nine o'clock in the morning can be set to 30ms. In this way, the detection threshold corresponding to the target detection flow can be more refined, thereby improving the accuracy of fault location.
[0133] Step e2: If the preset alarm strategy is a solid-state prediction strategy, the solid-state threshold corresponding to the target detection flow is determined based on a preset threshold setting rule, and the solid-state threshold is used as the detection threshold corresponding to the target detection flow.
[0134] Among them, the solid prediction strategy may refer to a strategy for fixed evaluation of data. The preset threshold setting rule may refer to a preset solid threshold determination standard. Usually, different detection data correspond to different solid threshold determination standards. Exemplarily, if the detection data is packet loss, the preset threshold setting rule may be that the solid threshold is less than 50%. If the detection data is delay time, the preset threshold setting rule may be that the delay time is less than 100ms. The solid threshold may refer to a threshold that does not change with the change of time point.
[0135] Specifically, if the preset alarm strategy is a solid-state prediction strategy, the solid-state threshold corresponding to each detection data in the target detection flow can be determined based on the preset threshold setting rule, and the solid-state threshold corresponding to each detection data is used as the detection threshold corresponding to the target detection flow. In this way, the corresponding detection threshold is determined for the target detection flow, providing an effective basis for subsequent fault location.
[0136] S211. Perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set.
[0137] Specifically, after determining the detection threshold corresponding to the target detection stream, each detection threshold can be used to compare the thresholds of each detection data in the target detection stream. When the delay time or packet loss in the target detection stream exceeds the corresponding detection threshold, abnormal alarm data corresponding to the target detection stream is generated. Then, the abnormal alarm data corresponding to all target detection streams in the current detection stream set are combined to generate an abnormal alarm data set corresponding to the current detection stream set.
[0138] In an optional implementation, after performing data analysis on the target detection stream based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection stream set, the method further includes:
[0139] Step f1: if the abnormal alarm data set is empty, obtain the quality assessment requirements corresponding to the target data center; wherein the quality assessment requirements include identification information of the target data center and identification information of the detection data center corresponding to the target data center.
[0140] Among them, the quality assessment requirement may refer to a data transmission quality detection requirement initiated by a user. Exemplarily, it may be a requirement for evaluating data delay conditions. Generally, the quality assessment requirement may include identification information of a target data center and identification information of a detection data center corresponding to the target data center. The identification information may refer to unique identification data of each data center. Exemplarily, it may be the IP address of each data center. The detection data center may refer to a detected data center corresponding to the target data center.
[0141] Step f2: based on the identification information of the target data center and the identification information of the detection data center, a set of detection flows to be selected between the target data center and the detection data center is obtained in the current detection flow set.
[0142] The detection flow to be selected may refer to the detection flow in the current detection flow set whose detection path includes the target data center and the detection data center. The detection flow set to be selected may refer to a set composed of the detection flows to be selected.
[0143] Step f3: performing quality evaluation on the candidate detection flows in the candidate detection flow set based on a preset evaluation standard, and generating a quality evaluation result corresponding to the target data center.
[0144] The preset evaluation criteria may refer to a preset quality evaluation criteria. For example, the preset evaluation criteria may include delay time evaluation and packet loss evaluation. Quality evaluation may refer to an operation of numerically comparing each candidate detection stream according to the preset evaluation criteria. The quality evaluation result may refer to a conclusive result generated after quality evaluation according to the preset evaluation criteria. For example, it may be the maximum value or average value among the data of each detection stream.
[0145] Specifically, after performing data analysis on the target detection flow based on the detection threshold and generating an abnormal alarm data set corresponding to the current detection flow set, if the abnormal alarm data set is empty, it indicates that there is no faulty node in the target data center. At this time, if there is a need to query the data delay between the target data center and the corresponding detection data center, the target data center and the detection data center can be obtained in the current detection flow set according to the identification information of the target data center and the identification information of the detection data center corresponding to the target data center. The target detection flow set and the detection flow in the selected detection flow set are evaluated for quality based on the preset evaluation criteria to generate the quality evaluation result corresponding to the target data center. Exemplarily, there are three detection flows to be selected in the detection flow set to be selected, wherein the delay time of the detection flow 1 to be selected is 5ms, the delay time of the detection flow 2 to be selected is 5ms, and the delay time of the detection flow 3 to be selected is 15ms, and the preset evaluation criteria are that the difference between each delay time is less than 5ms. By performing quality evaluation on each detection flow to be selected according to the preset evaluation criteria, it can be determined that there is a detection flow to be selected that does not meet the preset evaluation criteria. At this time, the maximum value between each delay time can be used as the quality evaluation result corresponding to the target data center. Therefore, the data transmission quality of the target data center can be evaluated without any faulty nodes in the target data center.
[0146] S212: Determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and aggregate and process each abnormal network path to obtain a public network node set.
[0147] Specifically, after generating the abnormal alarm data set corresponding to the current detection flow set, the abnormal network path corresponding to each abnormal alarm data can be determined in the current path set, and the various network nodes in each abnormal network path can be compared and summarized to obtain the public network nodes corresponding to each abnormal network path, forming a public network node set, which provides an effective basis for the subsequent determination of the fault node.
[0148] S213: Count the occurrence frequency of each public network node in the public network node set, and determine the target fault node corresponding to the target data center based on the statistical result.
[0149] In an optional implementation, the determining the target fault node corresponding to the target data center based on the statistical result includes:
[0150] Step g1: If the public network node with the highest occurrence frequency in the statistical result is unique, the public network node with the highest occurrence frequency is used as the target fault node corresponding to the target data center.
[0151] The public network node with the highest occurrence frequency may refer to the public network node with the highest occurrence frequency. For example, if the public network node set includes public network node 1, public network node 2, and public network node 3, the occurrence frequency of public network node 1 is 3, the occurrence frequency of public network node 2 is 5, and the occurrence frequency of public network node 3 is 7. Then public network node 3 is the public network node with the highest occurrence frequency.
[0152] Specifically, after counting the occurrence frequency of each public network node in the public network node set, if there is only one public network node with the highest occurrence frequency, the public network node with the highest occurrence frequency can be used as the target fault node corresponding to the target data center.
[0153] Step g2: If the public network node with the highest occurrence frequency in the statistical result is not unique, each public network node with the highest occurrence frequency is used as a candidate fault node, and a target fault node among the candidate fault nodes is determined based on a preset routing tracking instruction as the target fault node corresponding to the target data center.
[0154] The candidate fault node may refer to a public network node that needs to be judged again. The preset route tracing instruction may refer to a preset real-time route path collection instruction. Exemplarily, the preset route tracing instruction may be a traceroute instruction.
[0155] Specifically, after counting the frequency of occurrence of each public network node in the public network node set, if there are multiple public network nodes with the highest occurrence frequency, the preset route tracking instructions can be used to perform real-time path collection on the detection links where the multiple public network nodes with the highest occurrence frequency are located, and determine the target fault node corresponding to the target data center based on the real-time path collection results.
[0156] In an optional embodiment, after counting the occurrence frequency of each public network node in the public network node set and determining the target fault node corresponding to the target data center based on the statistical results, it also includes: performing fault handling on the target fault node to isolate the target fault node. Among them, fault handling can refer to the operation of isolating the target fault node. Exemplarily, it can be to close the port of the target fault node. In this way, the target fault node can stop data transmission, reducing the impact of the target fault node on the data transmission process.
[0157] In the embodiment of the present invention, the internal hierarchical network topology relationship of the full access switch corresponding to the target data center is constructed by presetting the internal hierarchical detection rules of the access switch and the server information corresponding to each access switch. The external hierarchical network topology relationship of the full access switch corresponding to the target data center is constructed by presetting the external hierarchical detection rules of the access switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch. The external hierarchical network topology relationship of the full aggregation switch corresponding to the target data center is constructed by presetting the external hierarchical detection rules of the aggregation switch, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch. The external hierarchical network topology relationship of the full core switch corresponding to the target data center is constructed by presetting the external hierarchical detection rules of the core switch, the core switch information corresponding to the target data center, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch. Then, the internal hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full aggregation switch, and the external hierarchical network topology relationship of the full core switch are deduplicated to obtain the preset network search list corresponding to the target data center. And through the target proxy service, the target detection object corresponding to the target server is determined based on the preset network search list, the target detection object is grouped and searched for according to the first set time to generate the current detection flow, and the path collection of the target detection object is performed according to the second set time to generate the current path. The current detection flows corresponding to all target proxy services at the same time are summarized as the current detection flow set corresponding to the target data center, and the current paths corresponding to all target proxy services at the same time are summarized as the current path set corresponding to the target data center. Further, based on the integrity of the historical detection flow set corresponding to the target data center, each target detection flow in the current detection flow set is checked to obtain the integrity index corresponding to each target detection flow. The detection threshold corresponding to the target detection flow is determined based on the preset alarm strategy and integrity index, and the target detection flow is analyzed based on the detection threshold to generate the abnormal alarm data set corresponding to the current detection flow set. Finally, the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set is determined based on the current path set, and each abnormal network path is summarized and processed to obtain a public network node set, and the frequency of occurrence of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical results. Since the detection flows between servers are collected based on the preset hierarchical detection method, the number of detection flows between servers is greatly reduced, and the network fault nodes are located in combination with the abnormal alarm data and routing paths corresponding to the detection flows, without the need for traffic collection or port mirroring on network devices.Therefore, the problem of poor real-time performance of locating faults in the underlying network can be solved, and the faulty nodes in the underlying network can be located quickly.
[0158] Fig. 9 A flowchart of another method for locating a fault in the underlying network of a data center provided by an embodiment of the present invention. Specifically, first, a preset network search list corresponding to the target data center is constructed based on the basic network topology data corresponding to the underlying network of the target data center, and a basic proxy service is generated based on the underlying principle of group network search, and the basic proxy service is deployed to all servers in the target data center. Then, the target detection object corresponding to the target server is determined based on the preset network search list by the target proxy service in each target server, and the target detection object is grouped and searched for according to the first set time to generate the current detection flow, and the target detection object is collected according to the second set time to generate the current path. The current detection flow corresponding to all target proxy services at the same time is summarized as the current detection flow set corresponding to the target data center, and the current path corresponding to all target proxy services at the same time is summarized as the current path set corresponding to the target data center. Further, each target detection flow in the current detection flow set is checked based on the integrity of the historical detection flow set corresponding to the target data center, and the integrity index corresponding to each target detection flow is obtained, and the detection threshold corresponding to the target detection flow is determined based on the preset alarm strategy and the integrity index. And, the target detection flow is analyzed based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set. At this time, if the abnormal alarm data set is empty, the target data center can be quality evaluated according to the quality evaluation requirements corresponding to the target data center, and the quality evaluation results corresponding to the target data center can be generated. If the abnormal alarm data set is not empty, the paths of the baseline paths in the current path set can be completed according to the preset network search list. Based on the current path set, the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set is determined, and each abnormal network path is aggregated and processed to obtain a public network node set. Finally, the frequency of occurrence of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical results, and the target fault node is handled to isolate the target fault node. In this way, the fault location of the underlying network of the target data center is completed.
[0159] Fig.10 The present invention provides a schematic diagram of a structure of a fault location device for a data center bottom network according to an embodiment of the present invention. Fig.10 As shown, the device includes: a data acquisition module 301, a data analysis module 302, a fault analysis module 303 and a fault location module 304;
[0160] Among them, the data collection module 301 is used to obtain the current detection flow set and the current path set corresponding to the target data center obtained by each target proxy service based on the preset network search list; wherein the target proxy service is deployed in each target server of the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server;
[0161] A data analysis module 302 is used to determine a detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set;
[0162] The fault analysis module 303 is used to determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and summarize and process each abnormal network path to obtain a common network node set;
[0163] The fault location module 304 is used to count the occurrence frequency of each public network node in the public network node set, and determine the target fault node corresponding to the target data center based on the statistical result.
[0164] In the embodiment of the present invention, the current detection flow set and the current path set corresponding to the target data center are collected based on the preset network search list by each target proxy service, and then, the detection threshold corresponding to the target detection flow is determined based on the integrity index of each target detection flow in the current detection flow set, and the target detection flow is analyzed based on the detection threshold to generate the abnormal alarm data set corresponding to the current detection flow set, and further, the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set is determined based on the current path set, and each abnormal network path is aggregated and processed to obtain a public network node set, and finally, the frequency of occurrence of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical result. Since the detection flow between servers is collected based on the preset hierarchical detection method, the number of detection flows between servers is greatly reduced, and the abnormal alarm data corresponding to the detection flow and the routing path are combined to locate the network fault node, without the need to perform traffic collection or port mirroring operations on the network device. Therefore, the problem of poor real-time positioning of the underlying network fault can be solved, and the fault node of the underlying network can be quickly located.
[0165] Optionally, the fault location device of the bottom layer network of the data center further includes: a search list generation module, the search list generation module includes: a topology data acquisition unit, a first-level relationship construction unit, a second-level relationship construction unit, a third-level relationship construction unit, a fourth-level relationship construction unit and a data deduplication unit;
[0166] Wherein, the topology data acquisition unit is used to obtain the basic network topology data corresponding to the underlying network of the target data center before obtaining the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on the preset network search list; wherein, the basic network topology data includes the core switch information corresponding to the target data center, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch and the server information corresponding to each access switch;
[0167] The first hierarchical relationship building unit is used to build the internal hierarchical network topology relationship of all access switches corresponding to the target data center based on the preset internal hierarchical detection rules of the access switches and the server information corresponding to each access switch;
[0168] The second hierarchical relationship building unit is used to build an external hierarchical network topology relationship of all access switches corresponding to the target data center based on a preset access switch external hierarchical detection rule, access switch information corresponding to each aggregation switch, and server information corresponding to each access switch;
[0169] The third hierarchical relationship building unit is used to build an external hierarchical network topology relationship of all aggregation switches corresponding to the target data center based on the preset external hierarchical detection rules of the aggregation switches, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch;
[0170] The fourth hierarchical relationship building unit is used to build an external hierarchical network topology relationship of all core switches corresponding to the target data center based on a preset core switch external hierarchical detection rule, core switch information corresponding to the target data center, aggregation switch information corresponding to each core switch, access switch information corresponding to each aggregation switch, and server information corresponding to each access switch;
[0171] The data deduplication unit is used to deduplicate the internal hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full aggregation switch and the external hierarchical network topology relationship of the full core switch to obtain a preset network search list corresponding to the target data center.
[0172] Optionally, the first-level relationship building unit can be used for:
[0173] Based on the server information corresponding to each access switch, a first current server under the target access switch and a first set number of first servers to be tested corresponding to the first current server are acquired;
[0174] Taking the first current server as a first source object and the first server to be tested as a first detection object, building a detection link between the first source object and the first detection object, and generating an internal hierarchical network topology relationship corresponding to the target access switch;
[0175] Summarize the internal hierarchical network topology relationships corresponding to all target access switches, and generate the internal hierarchical network topology relationships of all access switches corresponding to the target data center.
[0176] Optionally, the second-level relationship building unit can be used for:
[0177] Based on the access switch information corresponding to each aggregation switch, obtaining a first current access switch under the target aggregation switch and a second set number of first access switches to be tested corresponding to the first current access switch;
[0178] Based on the server information corresponding to each access switch, a second set number of second current servers under the first current access switch is obtained, and based on the second current servers and a preset sorting remainder rule, a second server to be tested under the first access switch to be tested is obtained;
[0179] The second current server is used as a second source object, the second server to be tested is used as a second detection object, a detection link is constructed between the second source object and the second detection object, and an external hierarchical network topology relationship corresponding to the first current access switch is generated;
[0180] Summarize the external hierarchical network topology relationships corresponding to the full set of first current access switches under the full set of target aggregation switches, and generate the external hierarchical network topology relationships of the full set of access switches corresponding to the target data center.
[0181] Optionally, the third-level relationship building unit can be used for:
[0182] Based on the aggregation switch information corresponding to each core switch, obtaining the first current aggregation switch under the target core switch and a third set number of first aggregation switches to be tested corresponding to the first current aggregation switch;
[0183] Based on the access switch information corresponding to each aggregation switch, a third set number of second current access switches under the first current aggregation switch is obtained, and based on the second current access switches and a preset sorting remainder rule, a second access switch to be tested under the first aggregation switch to be tested is obtained;
[0184] The first server under the second current access switch is used as the third source object, and the first server under the second access switch to be tested is used as the third detection object, a detection link is established between the third source object and the third detection object, and an external hierarchical network topology relationship corresponding to the first current aggregation switch is generated;
[0185] Summarize the external hierarchical network topology relationships corresponding to the full set of first current aggregation switches under the full set of target core switches, and generate the external hierarchical network topology relationships of the full set of aggregation switches corresponding to the target data center.
[0186] Optionally, the fourth-level relationship building unit can be used for:
[0187] Based on the core switch information corresponding to the target data center, obtain the current core switch under the target data center and the core switch to be tested corresponding to the current core switch;
[0188] Determine the second current aggregation switch with the same number under the current core switch and the second aggregation switch to be tested with the same number under the core switch to be tested based on the aggregation switch information corresponding to each core switch;
[0189] Based on the access switch information corresponding to each aggregation switch, a fourth set number of third current access switches under the second current aggregation switch is obtained, and based on the third current access switches and a preset sorting remainder rule, a third access switch to be tested under the second aggregation switch to be tested is obtained;
[0190] Taking the first server under the third current access switch as the fourth source object and the first server under the third access switch to be tested as the fourth detection object, building a detection link between the fourth source object and the fourth detection object, and generating an external hierarchical network topology relationship corresponding to the current core switch;
[0191] Summarize the external hierarchical network topology relationships corresponding to all current core switches in the target data center, and generate the external hierarchical network topology relationships corresponding to all core switches in the target data center.
[0192] Optionally, the fault locating device of the underlying network of the data center may also include: a proxy service deployment module, which is used to generate a basic proxy service based on the underlying principle of packet network search before obtaining the current detection flow set and current path set corresponding to the target data center collected by each target proxy service based on a preset network search list, and deploy the basic proxy service to all servers in the target data center.
[0193] Optionally, the data acquisition module 301 may be specifically used for:
[0194] Determine the target detection object corresponding to the target server based on a preset network search list through a target proxy service, perform a group network search on the target detection object according to a first set time to generate a current detection flow, and perform path collection on the target detection object according to a second set time to generate a current path;
[0195] The current detection flows corresponding to all target proxy services at the same time are summarized as the current detection flow set corresponding to the target data center, and the current paths corresponding to all target proxy services at the same time are summarized as the current path set corresponding to the target data center.
[0196] Optionally, the data analysis module 302 may specifically include: an indicator determination unit and a data analysis unit;
[0197] The indicator determination unit is used to check the integrity of each target detection flow in the current detection flow set based on the integrity of the historical detection flow set corresponding to the target data center, and obtain the integrity indicator corresponding to each target detection flow;
[0198] A data analysis unit is used to determine a detection threshold corresponding to the target detection flow based on a preset alarm strategy and the integrity indicator.
[0199] Optionally, the data analysis unit may be specifically used for:
[0200] If the preset alarm strategy is a dynamic prediction strategy and the integrity indicator corresponding to the target detection flow is an integrity result, a dynamic threshold is generated based on the historical detection flow corresponding to the target detection flow in the historical detection flow set, and the dynamic threshold is used as the detection threshold corresponding to the target detection flow;
[0201] If the preset alarm strategy is a solid-state prediction strategy, the solid-state threshold corresponding to the target detection flow is determined based on a preset threshold setting rule, and the solid-state threshold is used as the detection threshold corresponding to the target detection flow.
[0202] Optionally, the fault location module 304 may be specifically used for:
[0203] If the public network node with the highest occurrence frequency in the statistical result is unique, the public network node with the highest occurrence frequency is used as the target fault node corresponding to the target data center;
[0204] If the public network node with the highest occurrence frequency in the statistical result is not unique, each public network node with the highest occurrence frequency is used as a candidate fault node, and the target fault node among the candidate fault nodes is determined based on the preset route tracking instruction as the target fault node corresponding to the target data center.
[0205] Optionally, the fault location device of the underlying network of the data center may also include: a fault isolation module, which is used to count the occurrence frequency of each public network node in the public network node set, and after determining the target fault node corresponding to the target data center based on the statistical results, perform fault handling on the target fault node to isolate the target fault node.
[0206] Optionally, the fault location device of the underlying network of the data center may further include: a quality assessment module, which is used to obtain the quality assessment requirements corresponding to the target data center after performing data analysis on the target detection flow based on the detection threshold and generating an abnormal alarm data set corresponding to the current detection flow set, if the abnormal alarm data set is empty; wherein the quality assessment requirements include identification information of the target data center and identification information of the detection data center corresponding to the target data center; based on the identification information of the target data center and the identification information of the detection data center, obtaining a set of candidate detection flows between the target data center and the detection data center in the current detection flow set; performing quality assessment on the candidate detection flows in the set of candidate detection flows based on preset evaluation criteria, and generating a quality assessment result corresponding to the target data center.
[0207] The fault location device for the underlying network of a data center provided in the embodiment of the present invention can execute the fault location method for the underlying network of a data center provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0208] Fig.11 A schematic diagram of the structure of a server for implementing the method for locating a fault in the underlying network of a data center according to an embodiment of the present invention. Fig.11 As shown, the server includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of processors 410 in the server can be one or more. Fig.11 A processor 410 is taken as an example; the processor 410, the memory 420, the input device 430 and the output device 440 in the server can be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.
[0209] The memory 420, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the fault location method of the underlying network of a data center in the embodiment of the present invention (for example, the data acquisition module 301, the data analysis module 302, the fault analysis module 303 and the fault location module 304 in the fault location device of the underlying network of a data center). The processor 410 executes various functional applications and data processing of the server by running the software programs, instructions and modules stored in the memory 420, that is, implements the above-mentioned fault location method of the underlying network of a data center.
[0210] The method includes:
[0211] Obtain the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on the preset network search list; wherein the target proxy service is deployed in each target server of the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server;
[0212] Determine a detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set;
[0213] Determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and summarize and process each abnormal network path to obtain a common network node set;
[0214] The occurrence frequency of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical result.
[0215] The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 420 may further include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0216] The input device 430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the server. The output device 440 may include a display device such as a display screen.
[0217] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a computer processor, the program is used to execute a method for locating a fault in an underlying network of a data center. The method includes:
[0218] Obtain the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on the preset network search list; wherein the target proxy service is deployed in each target server of the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server;
[0219] Determine a detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set;
[0220] Determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and summarize and process each abnormal network path to obtain a common network node set;
[0221] The occurrence frequency of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical result.
[0222] Of course, the computer-readable storage medium provided in the embodiment of the present invention has a program that is not limited to the method operations described above, and can also execute related operations in the fault location method for the underlying network of a data center provided in any embodiment of the present invention.
[0223] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0224] It is worth noting that in the embodiment of the fault location device of the underlying network of the above-mentioned data center, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific name of each functional unit is only for the convenience of distinguishing each other, and is not used to limit the scope of protection of the present invention.
[0225] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the method for locating a fault in an underlying network of a data center as provided in any embodiment of the present invention.
[0226] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0227] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for locating faults in the underlying network of a data center. It is characterized in that include: Obtain the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on the preset network search list; wherein the target proxy service is deployed in each target server of the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server; Determine a detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set; Determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and summarize and process each abnormal network path to obtain a common network node set; The occurrence frequency of each public network node in the public network node set is counted, and the target fault node corresponding to the target data center is determined based on the statistical result.
2. The method according to claim 1, It is characterized in that Before obtaining the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on the preset network search list, the method further includes: Obtain basic network topology data corresponding to the underlying network of the target data center; wherein the basic network topology data includes core switch information corresponding to the target data center, aggregation switch information corresponding to each core switch, access switch information corresponding to each aggregation switch, and server information corresponding to each access switch; Based on the preset access switch internal hierarchical detection rules and the server information corresponding to each access switch, the internal hierarchical network topology relationship of all access switches corresponding to the target data center is constructed; Based on the preset access switch external hierarchical detection rules, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, the external hierarchical network topology relationship of all access switches corresponding to the target data center is constructed; Based on the preset aggregation switch external hierarchical detection rules, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, the external hierarchical network topology relationship of all aggregation switches corresponding to the target data center is constructed; Based on the preset core switch external hierarchical detection rules, the core switch information corresponding to the target data center, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, the external hierarchical network topology relationship of all core switches corresponding to the target data center is constructed; De-duplication is performed on the internal hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full access switch, the external hierarchical network topology relationship of the full aggregation switch, and the external hierarchical network topology relationship of the full core switch to obtain a preset network search list corresponding to the target data center.
3. The method according to claim 2, It is characterized in that The method of constructing the internal hierarchical network topology relationship of all access switches corresponding to the target data center based on the preset internal hierarchical detection rules of the access switches and the server information corresponding to each access switch includes: Based on the server information corresponding to each access switch, a first current server under the target access switch and a first set number of first servers to be tested corresponding to the first current server are acquired; Taking the first current server as a first source object and the first server to be tested as a first detection object, building a detection link between the first source object and the first detection object, and generating an internal hierarchical network topology relationship corresponding to the target access switch; Summarize the internal hierarchical network topology relationships corresponding to all target access switches, and generate the internal hierarchical network topology relationships of all access switches corresponding to the target data center.
4. The method according to claim 2, It is characterized in that The method of constructing an external hierarchical network topology relationship of all access switches corresponding to the target data center based on a preset access switch external hierarchical detection rule, access switch information corresponding to each aggregation switch, and server information corresponding to each access switch includes: Based on the access switch information corresponding to each aggregation switch, obtaining a first current access switch under the target aggregation switch and a second set number of first access switches to be tested corresponding to the first current access switch; Based on the server information corresponding to each access switch, a second set number of second current servers under the first current access switch is obtained, and based on the second current servers and a preset sorting remainder rule, a second server to be tested under the first access switch to be tested is obtained; The second current server is used as a second source object, the second server to be tested is used as a second detection object, a detection link is constructed between the second source object and the second detection object, and an external hierarchical network topology relationship corresponding to the first current access switch is generated; Summarize the external hierarchical network topology relationships corresponding to the full set of first current access switches under the full set of target aggregation switches, and generate the external hierarchical network topology relationships of the full set of access switches corresponding to the target data center.
5. The method according to claim 2, It is characterized in that The external hierarchical network topology relationship of all aggregation switches corresponding to the target data center is constructed based on the preset aggregation switch external hierarchical detection rules, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, including: Based on the aggregation switch information corresponding to each core switch, obtaining the first current aggregation switch under the target core switch and a third set number of first aggregation switches to be tested corresponding to the first current aggregation switch; Based on the access switch information corresponding to each aggregation switch, a third set number of second current access switches under the first current aggregation switch is obtained, and based on the second current access switches and a preset sorting remainder rule, a second access switch to be tested under the first aggregation switch to be tested is obtained; The first server under the second current access switch is used as the third source object, and the first server under the second access switch to be tested is used as the third detection object, a detection link is established between the third source object and the third detection object, and an external hierarchical network topology relationship corresponding to the first current aggregation switch is generated; Summarize the external hierarchical network topology relationships corresponding to the full set of first current aggregation switches under the full set of target core switches, and generate the external hierarchical network topology relationships of the full set of aggregation switches corresponding to the target data center.
6. The method according to claim 2, It is characterized in that The external hierarchical network topology relationship of all core switches corresponding to the target data center is constructed based on the preset core switch external hierarchical detection rules, the core switch information corresponding to the target data center, the aggregation switch information corresponding to each core switch, the access switch information corresponding to each aggregation switch, and the server information corresponding to each access switch, including: Based on the core switch information corresponding to the target data center, obtain the current core switch under the target data center and the core switch to be tested corresponding to the current core switch; Determine the second current aggregation switch with the same number under the current core switch and the second aggregation switch to be tested with the same number under the core switch to be tested based on the aggregation switch information corresponding to each core switch; Based on the access switch information corresponding to each aggregation switch, a fourth set number of third current access switches under the second current aggregation switch is obtained, and based on the third current access switches and a preset sorting remainder rule, a third access switch to be tested under the second aggregation switch to be tested is obtained; Taking the first server under the third current access switch as the fourth source object and the first server under the third access switch to be tested as the fourth detection object, building a detection link between the fourth source object and the fourth detection object, and generating an external hierarchical network topology relationship corresponding to the current core switch; Summarize the external hierarchical network topology relationships corresponding to all current core switches in the target data center, and generate the external hierarchical network topology relationships corresponding to all core switches in the target data center.
7. The method according to claim 1, It is characterized in that Before obtaining the current detection flow set and the current path set corresponding to the target data center collected by each target proxy service based on the preset network search list, it also includes: A basic proxy service is generated based on the underlying principle of group network search, and the basic proxy service is deployed to all servers in the target data center.
8. The method according to claim 1, It is characterized in that Obtain the current detection flow set and current path set corresponding to the target data center collected by each target proxy service based on the preset network search list, including: Determine the target detection object corresponding to the target server based on a preset network search list through a target proxy service, perform a group network search on the target detection object according to a first set time to generate a current detection flow, and perform path collection on the target detection object according to a second set time to generate a current path; The current detection flows corresponding to all target proxy services at the same time are summarized as the current detection flow set corresponding to the target data center, and the current paths corresponding to all target proxy services at the same time are summarized as the current path set corresponding to the target data center.
9. The method according to claim 1, It is characterized in that The determining the detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set includes: Based on the integrity of the historical detection flow set corresponding to the target data center, each target detection flow in the current detection flow set is checked to obtain the integrity index corresponding to each target detection flow; A detection threshold corresponding to the target detection flow is determined based on a preset alarm strategy and the integrity indicator.
10. The method according to claim 9, It is characterized in that The determining the detection threshold corresponding to the target detection flow based on the preset alarm strategy and the integrity indicator includes: If the preset alarm strategy is a dynamic prediction strategy and the integrity indicator corresponding to the target detection flow is an integrity result, a dynamic threshold is generated based on the historical detection flow corresponding to the target detection flow in the historical detection flow set, and the dynamic threshold is used as the detection threshold corresponding to the target detection flow; If the preset alarm strategy is a solid-state prediction strategy, the solid-state threshold corresponding to the target detection flow is determined based on a preset threshold setting rule, and the solid-state threshold is used as the detection threshold corresponding to the target detection flow.
11. The method according to claim 1, It is characterized in that The determining the target fault node corresponding to the target data center based on the statistical result includes: If the public network node with the highest occurrence frequency in the statistical result is unique, the public network node with the highest occurrence frequency is used as the target fault node corresponding to the target data center; If the public network node with the highest occurrence frequency in the statistical result is not unique, each public network node with the highest occurrence frequency is used as a candidate fault node, and the target fault node among the candidate fault nodes is determined based on the preset route tracking instruction as the target fault node corresponding to the target data center.
12. The method according to claim 1, It is characterized in that After counting the occurrence frequency of each public network node in the public network node set and determining the target fault node corresponding to the target data center based on the statistical result, the method further includes: Fault handling is performed on the target faulty node to isolate the target faulty node.
13. The method according to claim 1, It is characterized in that After performing data analysis on the target detection stream based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection stream set, the method further includes: If the abnormal alarm data set is empty, obtain the quality assessment requirements corresponding to the target data center; wherein the quality assessment requirements include identification information of the target data center and identification information of the detection data center corresponding to the target data center; Based on the identification information of the target data center and the identification information of the detection data center, obtaining a set of detection flows to be selected between the target data center and the detection data center in the current detection flow set; The quality of the selected detection streams in the set of selected detection streams is evaluated based on a preset evaluation standard to generate a quality evaluation result corresponding to the target data center.
14. A fault location device for the underlying network of a data center, It is characterized in that include: A data collection module is used to obtain the current detection flow set and the current path set corresponding to the target data center obtained by each target proxy service based on a preset network search list; wherein the target proxy service is deployed in each target server of the target data center; the preset network search list includes the internal hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the access switch, the external hierarchical network topology relationship of the aggregation switch and the external hierarchical network topology relationship of the core switch corresponding to each target server; A data analysis module, used to determine the detection threshold corresponding to the target detection flow based on the integrity index of each target detection flow in the current detection flow set, and perform data analysis on the target detection flow based on the detection threshold to generate an abnormal alarm data set corresponding to the current detection flow set; A fault analysis module, configured to determine the abnormal network path corresponding to each abnormal alarm data in the abnormal alarm data set based on the current path set, and to aggregate and process each abnormal network path to obtain a common network node set; The fault location module is used to count the occurrence frequency of each public network node in the public network node set, and determine the target fault node corresponding to the target data center based on the statistical result.
15. A server, It is characterized in that It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for locating a fault in a data center underlying network as described in any one of claims 1 to 13 when executing the computer program.
16. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, it implements the fault location method of the underlying network of a data center as described in any one of claims 1-13.
17. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the computer program implements the fault location method for the underlying network of a data center as described in any one of claims 1 to 13.
Citation Information
Patent Citations
Determinate fault detection and positioning method and system in time sensitive network
CN110601888A
Method and device for detecting network quality, computing equipment and storage medium
CN111817911A
Network fault detection method and device, equipment and storage medium
CN113132140A
Fault positioning method and device, server and computer storage medium
CN113595783A
Method, device and equipment for positioning network fault
CN115701041A
Cited By
Dynamic data flow monitoring system and method for data center
CN119945949A
