Segment routing fault detection method, device, equipment and storage medium
By tracking network data packets and analyzing topological relationships, generating segmented detection paths, monitoring response data, and determining fault locations, the problems of routing fault detection delay and high resource consumption in the existing technology are solved, and network routing nodes are realized. Comprehensive and accurate detection.
Patent Information
- Application Number
- CN202410758779.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Routing fault detection in the existing technology is based on passive detection, which cannot detect faults in advance and cannot fully cover all routing nodes, resulting in detection delays and excessive resource consumption.
By tracking network data packets, we obtain routing paths, determine topological relationships, generate segmented detection paths, send detection data to target nodes, monitor response data, generate routing transmission node response graphs, and determine fault locations.
It achieves comprehensive detection of network routing nodes, improves detection accuracy and efficiency, and reduces resource consumption.
Smart Images

Figure CN118316791B
Abstract
Description
Technical Field
[0001] The present application relates to the field of routing detection technology, and in particular to a segment routing fault detection method, device, equipment and storage medium. Background Art
[0002] In order to complete the network data communication task with high quality, it is necessary to have a safe and unobstructed network transmission road. Therefore, it is necessary to perform fault detection on each routing transmission node in the network so as to deal with the faulty node in time. At present, routing fault detection is based on passive fault detection technology, that is, directly obtaining the operating indicators of each device in the network to find network faults. This detection method can only be detected after the problem occurs, which has a certain delay, and it is also impossible to detect nodes that have not generated traffic changes, so it is impossible to achieve full coverage. At the same time, a large amount of network traffic data needs to be collected and analyzed during passive detection, which will greatly increase the demand for computing resources and storage space, resulting in a large amount of resource consumption. Therefore, in view of the above problems, a more comprehensive and accurate routing fault detection method is urgently needed to solve the current technical problems.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a segment routing fault detection method, device, equipment and storage medium, aiming to solve the technical problem that the prior art cannot perform comprehensive and effective fault detection on routing transmission nodes in the network.
[0005] To achieve the above object, the present application proposes a segment routing fault detection method, the segment routing fault detection method comprising:
[0006] Tracking data packets in the current network, obtaining a routing path in the current network, and determining a topological relationship between each routing transmission node in the current network according to the routing path;
[0007] Determine the shortest transmission path between the initial node and the target node based on the topological relationship, determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header to generate a segmented detection path;
[0008] Sending detection data to the target node based on the segmented detection path, and monitoring response data generated by each of the routing transmission nodes based on the detection data;
[0009] A routing transmission node response graph is generated according to the response data, and a location of a faulty routing transmission node is determined according to the routing transmission node response graph.
[0010] In one embodiment, the step of determining the shortest transmission path between the initial node and the target node based on the topological relationship, determining the target adjacent node of the routing transmission node in the shortest transmission path, and adding the node information of the target adjacent node to the detection data header, and generating a segmented detection path includes:
[0011] Determine the link weights between the routing transmission nodes based on the topological relationship, and determine the shortest transmission path between the initial node and the target node based on the link weights;
[0012] Determine a routing transmission node in the shortest transmission path according to the shortest transmission path;
[0013] Detecting the routing transfer node to determine a target adjacent node of the routing transfer node;
[0014] The node information of the target adjacent node is determined, and the information of the target adjacent node is added to the detection data header to generate a segmented detection path.
[0015] In one embodiment, the step of detecting the routing transfer node and determining the target adjacent node of the routing transfer node includes:
[0016] Determine the transmission nodes having adjacent nodes in the shortest transmission path, and sort the transmission nodes having adjacent nodes according to the transmission order to obtain a node sequence;
[0017] Based on the order of the node sequence, path fitting is performed according to the adjacent nodes of the transmission node in turn to generate a fitting transmission path;
[0018] A non-overlapping path is determined according to the fitted transmission path and the segmented detection path, and the first transmission node in the non-overlapping path is used as a target adjacent node.
[0019] In one embodiment, the step of determining the node information of the target adjacent node and adding the information of the target adjacent node to the detection data header includes:
[0020] Analyze the working parameters of the target adjacent node to determine the node information of the target adjacent node;
[0021] Obtaining a communication address of the target adjacent node according to the node information of the target adjacent node;
[0022] The node information of the segment node and the communication address are added to the detection data header.
[0023] In one embodiment, before the step of detecting the routing transfer node and determining the target adjacent node of the routing transfer node, the step further includes:
[0024] Parsing each of the data packets to obtain performance indicator data of the routing transmission node corresponding to the data packet;
[0025] Initializing the performance indicator data to obtain initialized performance indicator data;
[0026] The initial segmentation node is updated based on the Euclidean distance between the initialization performance indicator data and the initial segmentation node to obtain a segmentation node;
[0027] The node information of the segment node is determined, and the node information of the segment node and the information of the target adjacent node are added to the detection data header to generate a segment detection path.
[0028] In one embodiment, the step of sending detection data to the target node based on the segmented detection path and monitoring response data generated by each of the routing transmission nodes based on the detection data includes:
[0029] Determine a routing transmission node on the segment detection path based on the segment detection path;
[0030] Sending the detection data to the target node through the routing transmission nodes on the segmented detection path, and obtaining the message delay and data packet loss rate generated by each routing transmission node on the segmented detection path based on the detection data;
[0031] The routing transmission node is combined with the message delay and data packet loss rate corresponding to the routing transmission node to obtain response data.
[0032] In one embodiment, the step of generating a routing transmission node response graph according to the response data and determining the location of the faulty routing transmission node according to the routing transmission node response graph comprises:
[0033] Parsing the response data to determine performance indicator data of each routing transmission node;
[0034] Performing data processing on the response data in the response data based on the indicator weight in the performance indicator data to obtain routing transmission node response data;
[0035] Analyzing the response data of the routing transmission node to determine abnormal data of the response data of the routing transmission node;
[0036] Generate a routing transmission node response graph based on the topological relationship between the routing transmission node response data and each of the routing transmission nodes, and generate an abnormal mark in the routing transmission node graph according to the abnormal data;
[0037] The location of the faulty routing transmission node is determined according to the abnormal mark and the routing transmission node response map.
[0038] In addition, to achieve the above purpose, the present application also proposes a segment routing fault detection device, the segment routing fault detection device comprising:
[0039] A routing exploration module, used to track data packets in the current network, obtain the routing path in the current network, and determine the topological relationship of each routing transmission node in the current network according to the routing path;
[0040] A path construction module, used to determine the shortest transmission path between the initial node and the target node based on the topological relationship, determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header to generate a segmented detection path;
[0041] A fault monitoring module, configured to send detection data to the target node based on the segmented detection path, and monitor response data generated by each of the routing transmission nodes based on the detection data;
[0042] The fault location module is used to generate a routing transmission node response graph according to the response data, and determine the location of the faulty routing transmission node according to the routing transmission node response graph.
[0043] In addition, to achieve the above-mentioned purpose, the present application also proposes a segment routing fault detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the segment routing fault detection method as described above.
[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the segment routing fault detection method described above are implemented.
[0045] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the segment routing fault detection method as described above are implemented.
[0046] One or more technical solutions proposed in the present application have at least the following technical effects: tracking data packets in the current network, obtaining the routing path in the current network, and determining the topological relationship of each routing transmission node in the current network based on the routing path, determining the shortest transmission path between the initial node and the target node based on the topological relationship, and determining the target adjacent node of the routing transmission node in the shortest transmission path, and adding the node information of the target adjacent node to the detection data header, generating a segmented detection path, sending detection data to the target node based on the segmented detection path, and monitoring the response data generated by each of the routing transmission nodes based on the detection data, generating a routing transmission node response graph based on the response data, and determining the location of the faulty routing transmission node based on the routing transmission node response graph, so as to achieve comprehensive detection of the routing nodes of the current network and improve the accuracy of routing detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0049] Figure 1 A flow chart of the first embodiment of the segment routing fault detection method of the present application;
[0050] Figure 2 A schematic diagram of the topological relationship of routing transmission nodes provided in an embodiment of the segment routing fault detection method of the present application;
[0051] Figure 3 A schematic diagram of a process for generating a segmented detection path provided in an embodiment of a segmented routing fault detection method of the present application;
[0052] Figure 4 A schematic diagram of the topological relationship of routing transmission nodes and node distances provided in an embodiment of the segment routing fault detection method of the present application;
[0053] Figure 5 A flow chart of the second embodiment of the segment routing fault detection method of the present application;
[0054] Figure 6 This is a schematic diagram of the module structure of the segment routing fault detection device according to an embodiment of the present application;
[0055] Figure 7Schematic diagram of the device structure of the hardware operating environment involved in the segment routing fault detection method in the embodiment of the present application.
[0056] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0057] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0058] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0059] The main solution of the embodiment of the present application is: to track the data packets in the current network, obtain the routing path in the current network, and determine the topological relationship of each routing transmission node in the current network based on the routing path, determine the shortest transmission path between the initial node and the target node based on the topological relationship, and determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header, generate a segmented detection path, send detection data to the target node based on the segmented detection path, and monitor the response data generated by each routing transmission node based on the detection data, generate a routing transmission node response graph based on the response data, and determine the location of the faulty routing transmission node based on the routing transmission node response graph.
[0060] In this embodiment, for ease of description, the following description is made by taking the identification of a segment routing fault detection device as the execution subject.
[0061] In order to determine the faulty nodes in the routing transmission nodes in the current network environment, the prior art adopts passive detection technology, and discovers network faults by directly acquiring the operating indicators of each device in the network. This method can only detect the problem after it occurs, so it cannot be eliminated before the fault occurs, and has a certain lag. At the same time, data transmission is often transmitted along the shortest path. Therefore, during the data transmission process, some routing nodes will not generate traffic data. Therefore, it is impossible to achieve comprehensive detection of routing transmission nodes. At the same time, a large amount of network traffic data needs to be collected and analyzed during passive detection, which will greatly increase the demand for computing resources and storage space, thereby consuming a large amount of resources.
[0062] The present application provides a solution, which tracks data packets in a current network, obtains a routing path in the current network, determines a topological relationship of each routing transmission node in the current network based on the routing path, determines the shortest transmission path between an initial node and a target node based on the topological relationship, determines a target adjacent node of the routing transmission node in the shortest transmission path, adds node information of the target adjacent node to a detection data header, generates a segmented detection path, sends detection data to the target node based on the segmented detection path, monitors response data generated by each routing transmission node based on the detection data, generates a routing transmission node response graph based on the response data, determines the location of a faulty routing transmission node based on the routing transmission node response graph, thereby achieving comprehensive detection of routing nodes in the current network and improving the accuracy of routing detection.
[0063] It can be seen from the above embodiments that the present application tracks data packets in the current network, obtains the routing path in the current network, and determines the topological relationship of each routing transmission node in the current network based on the routing path, determines the shortest transmission path between the initial node and the target node based on the topological relationship, and determines the target adjacent node of the routing transmission node in the shortest transmission path, and adds the node information of the target adjacent node to the detection data header, generates a segmented detection path, sends detection data to the target node based on the segmented detection path, monitors the response data generated by each routing transmission node based on the detection data, generates a routing transmission node response graph based on the response data, determines the location of the faulty routing transmission node based on the routing transmission node response graph, realizes comprehensive detection of the routing nodes of the current network, and improves the accuracy of routing detection.
[0064] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a segment routing fault detection device, etc. The following takes the segment routing fault detection device as an example to illustrate this embodiment and the following embodiments.
[0065] Based on this, the present application embodiment provides a segment routing fault detection method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the segment routing fault detection method of the present application.
[0066] In this embodiment, the segment routing fault detection method includes steps S10 to S40:
[0067] Step S10, tracing data packets in the current network, acquiring a routing path in the current network, and determining a topological relationship between each routing transmission node in the current network according to the routing path.
[0068] It should be noted that a data packet refers to a communication data packet of a routing transmission node, which is forwarded from one routing transmission node to another routing transmission node. A routing path refers to a set of data corresponding to the transmission order of each network transmission node in the current network. A routing path can be stored in the form of an array, a linked list, a queue, etc. The topological relationship of each routing transmission node refers to the communication relationship between each routing transmission node in the current network environment, that is, the routing connection relationship of any routing node can be obtained based on the topological relationship of the routing transmission nodes.
[0069] In a specific implementation, before performing routing fault detection, the segmented routing fault detection device needs to first obtain the connection relationship between the routes in the current network. For a determined network environment, it can also directly obtain the topological relationship of the routing transmission nodes in the current network environment. For a new network environment or an updated determined network environment, it can obtain the data packet information in the current network, track the data packet, determine the transmission direction and destination of the data packet, and determine the connection relationship between the transmission nodes in the network environment based on the transmission path of the data packet. That is, when the data packet arrives at the routing transmission node B from the routing transmission node A, it means that there is a connected data path between the current routing transmission node A and the routing transmission node B, that is, there is a transmission path between the routing transmission node A and the routing transmission node B. And by tracking the data packets existing in the network, it can determine the transmission paths of a large number of routing transmission nodes, such as the transmission path between the routing transmission node A and the routing transmission node B.<A,B> , the transmission path between routing transmission node B and routing transmission node C<B,C> Etc., and combine all such transmission paths to determine a huge transmission path network, that is, to form the topological relationship of each routing transmission node in the current network environment.
[0070] When tracking a data packet, it is possible to analyze the data header in the data packet. The data header of the data packet contains the direction of data transmission, where the transmission direction is determined by the sending address and the destination address, and the routing transmission node where the routing transmission path exists can be determined based on the sending address and the destination address.
[0071] Step S20, based on the topological relationship, determine the shortest transmission path between the initial node and the target node, determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header to generate a segmented detection path.
[0072] It should be noted that the initial node and the target node refer to the routing transmission node from which the data packet is sent and the routing transmission node corresponding to the final reception of the data packet, respectively. The shortest transmission node refers to the shortest transmission path among several transmission paths from the initial node to the target node in terms of hop count / delay / bandwidth / cost and other metrics. Generally speaking, the shortest transmission path is considered to be the best path for a data packet from the initial node to the target node.
[0073] It can be understood that, when the target adjacent node of the routing transmission node in the shortest path is determined, the other routing transmission nodes in the shortest path excluding the initial node and the target node can be determined, and the target adjacent nodes of other routing transmission nodes can be determined according to the topological relationship, and the node information of the target adjacent node is added to the detection data header to generate a segmented detection path. The segmented detection path is a new shortest path with the target adjacent node added to the shortest path.
[0074] In a specific implementation, when determining the shortest transmission path, the shortest transmission path between the initial node and the target node can be determined according to the topological relationship, and the target adjacent node of the routing transmission node in the shortest transmission path can be determined. Figure 2 , Figure 2 This is a schematic diagram of the topological relationship of routing transmission nodes. For example, if the current initial node is A and the target node is F, then according to Figure 2 In the schematic diagram, it can be determined that the transmission paths from the initial node A to the target node F include transmission path 1 (A→C→F), transmission path 2 (A→C→D→F), transmission path 3 (A→B→C→F), transmission path 4 (A→B→E→D→F) and transmission path 5 (A→B→E→D→C→F). If the current shortest path is transmission link 1, then after removing the initial node A and the target node F, it also includes routing transmission node C, then it can be determined that the adjacent nodes of routing transmission node C are routing transmission node B and routing transmission node D. At this time, the target adjacent node can be obtained, and the obtained target adjacent node is added to the transmission path to generate the shortest transmission path including the target adjacent node.
[0075] In one possible implementation, refer to Figure 3 , Figure 3 The schematic diagram of the flow chart of generating a segmented detection path for the segmented routing fault detection method of the present application, step S20 may include steps S21 to S24:
[0076] S21: Determine the link weights between the routing transmission nodes based on the topological relationship, and determine the shortest transmission path between the initial node and the target node based on the link weights.
[0077] S22: Determine a routing transmission node in the shortest transmission path according to the shortest transmission path.
[0078] S23: Detect the routing transfer node to determine a target adjacent node of the routing transfer node.
[0079] S24: Determine the node information of the target adjacent node, and add the information of the target adjacent node to the detection data header to generate a segmented detection path.
[0080] It should be noted that link weight refers to the node distance or delay time between two routing transmission nodes. When determining the shortest path, it is necessary to select the transmission path based on the link weight.
[0081] In a specific implementation, the transmission distance or delay time between each routing transmission node can be determined according to the topological relationship to determine the link weight in the transmission node. In this embodiment, the link weight can be determined by the transmission distance or delay time, and the transmission distance or delay time is corresponded to the link weight. Therefore, in this embodiment, the link weight value can be equivalently replaced with the transmission distance, and the link weight can be represented by the transmission distance between nodes. Figure 4 , Figure 4 It is a schematic diagram of the topological relationship and node distance of routing transmission nodes. From the above description, it can be seen that in the transmission link with routing transmission node A as the initial node and routing transmission node F as the target transmission node, there are 5 transmission paths. Figure 4 The transmission distances in the transmission path can be determined to be 5, 8, 6, 7, and 6 respectively. Therefore, the shortest transmission path can be determined to be (A→C→F). For this, the routing transmission node in the shortest transmission path can be determined, which corresponds to routing transmission node C in the current shortest transmission path, and the routing transmission node C is detected, and the adjacent nodes of routing transmission node C are determined to be routing node B and routing node D, and the current node is used as the target adjacent node to construct a segmented detection path, where the target adjacent node can also be called a segmentation point. Determine the node information of the target adjacent node, and add the information of the target adjacent node to the detection data header to generate a segmented detection path. Therefore, it can be determined that the current segmented detection path is a transmission path containing routing transmission node B and containing routing transmission node D. The segmented detection path containing routing transmission node B is segmented detection path 1 (A→C→B→E→D→F), and the segmented detection path containing routing transmission node D is segmented detection path 2 (A→C→D→F).
[0082] Exemplarily, the step of detecting the routing transfer node and determining a target adjacent node of the routing transfer node includes:
[0083] Determine the transmission nodes having adjacent nodes in the shortest transmission path, and sort the transmission nodes having adjacent nodes according to the transmission order to obtain a node sequence;
[0084] Based on the order of the node sequence, path fitting is performed according to the adjacent nodes of the transmission node in turn to generate a fitting transmission path;
[0085] A non-overlapping path is determined according to the fitted transmission path and the segmented detection path, and the first transmission node in the non-overlapping path is used as a target adjacent node.
[0086] It should be noted that the transmission order refers to the forwarding data determination of the routing transmission node. Since each routing transmission node includes all routing node information that can perform data communication, it is stored in the routing transmission node in the form of a routing node table.
[0087] In the specific implementation, we still follow Figure 4 The shortest transmission path between the initial node A and the initial node F is determined as an example. The shortest transmission path at this time is (A→C→F). At this time, according to the adjacent routing nodes of each routing transmission node in the shortest transmission path, for routing transmission node A, its adjacent nodes are routing transmission nodes B and C, and the adjacent nodes of routing transmission node C are A, B, and D. At this time, the transmission nodes with adjacent nodes can be sorted in order to obtain a node sequence, that is, <a ,c> At this time, based on the order of the node sequence, the paths are fitted according to the adjacent nodes of the transmission nodes to obtain (A→B→C→F) and (A→C→D→F). The two fitted transmission paths obtained at this time are the transmission paths with overlapping paths removed, and the first transmission nodes B and D are determined as the target adjacent nodes respectively to reduce the redundancy of data packet transmission. The fitted transmission paths are overlapped with the topological relationship, and it can be determined that the current transmission path does not cover all nodes and all transmission paths. At this time, in order to ensure that the routing transmission node can be fully determined whether it is faulty, this embodiment provides two solutions to achieve comprehensive detection of routing nodes. On the one hand, based on the scheme for determining the fitted transmission path, the adjacent nodes continue to be determined in the above scheme. The target determined at this time is the fitted transmission paths (A→B→C→F) and (A→C→D→F), and according to the same method, a new transmission path (A→B→E→D→F) can be fitted. At this time, three transmission paths are obtained, namely (A→B→C→F), (A→C→D→F) and (A→B→E→D→F). Coverage of all routing nodes is achieved. That is to say, when the routing transmission nodes cannot be fully covered after the first segmentation, the same operation can be performed on the obtained segmented transmission paths, and this can be iterated continuously until all routing transmission nodes can be completely covered. On the other hand, multi-point detection can be used, that is, multiple pairs of initial nodes and abnormal nodes can be determined. This can reduce the occurrence of repeated transmission paths to a certain extent. Figure 4 As an example, suppose the combination of the first pair of initial nodes and target nodes is<A,F> , the second pair of initial node and target node combination is <b ,f>, take these two pairs of combinations as examples to describe multi-point detection. At this time, it can be determined that the shortest path of A→F is (A→C→F), and the shortest path of (B→F) is (B→E→D→C→F). Then the segmented detection path is determined for these two shortest paths, and the segmented detection path (A→B→C→D→F) is obtained, that is, all routing nodes are detected through three transmission paths. In single-point detection, it can be determined that the node distance of the three transmission paths is 21, while the node distance of the transmission path when using multi-point detection is 19. It can be seen that when using multi-point detection, the routing nodes can be covered at a lower cost.
[0088] Exemplarily, the step of determining the node information of the target adjacent node and adding the information of the target adjacent node to the detection data header includes:
[0089] Analyze the working parameters of the target adjacent node to determine the node information of the target adjacent node;
[0090] Obtaining a communication address of the target adjacent node according to the node information of the target adjacent node;
[0091] The node information of the segment node and the communication address are added to the detection data header.
[0092] In a specific implementation, when the node information of the target adjacent node is added to the detection data header, the working parameters of the target adjacent node can be analyzed to determine the node information of the target adjacent node, including the communication address of the target adjacent node, and the node information and communication address of the segmented node are added to the detection data header, so that the node receiving the detection data can transmit data according to the communication address in the detection data header.
[0093] Step S30: sending detection data to the target node based on the segmented detection path, and monitoring response data generated by each of the routing transmission nodes based on the detection data.
[0094] It should be noted that the response data is when the detection data passes through the routing transmission node. The routing transmission node can process the detection data and generate corresponding response data, which includes processing time, routing delay, bandwidth, packet loss rate and other information.
[0095] In the specific implementation, when sending detection data to the target node based on the segmented detection path, the communication address of the target node in the detection data will communicate with the target address of the segmented node. At this time, at the initial node, the node table stored in itself will be detected to determine the communication address of the next routing transmission node that needs to be forwarded, and forward it with the communication address as the target, and this process will be repeated until the detection data reaches the target node. In this process, each routing transmission node involved in the forwarding and the target node can feedback their own response data based on the detection data.
[0096] Exemplarily, the step of sending detection data to the target node based on the segmented detection path and monitoring response data generated by each of the routing transmission nodes based on the detection data includes:
[0097] Determine a routing transmission node on the segment detection path based on the segment detection path;
[0098] Sending the detection data to the target node through the routing transmission nodes on the segmented detection path, and obtaining the message delay and data packet loss rate generated by each routing transmission node on the segmented detection path based on the detection data;
[0099] The routing transmission node is combined with the message delay and data packet loss rate corresponding to the routing transmission node to obtain response data.
[0100] In a specific implementation, first, the routing transmission nodes on the segmented detection path are determined according to the segmented detection path, detection data is sent to the target node through the routing transmission nodes on the segmented detection path, and the message delay and data packet loss rate generated by the routing transmission nodes on each segmented detection path based on the detection data are obtained. Specifically, the message delay and the packet loss rate can be determined according to the timestamp of the transmitted data and the number of data packets, and the routing transmission node is combined with the message delay and the data packet loss rate corresponding to the routing transmission node to obtain response data.
[0101] Step S40: generating a routing transmission node response graph according to the response data, and determining the location of the faulty routing transmission node according to the routing transmission node response graph.
[0102] It should be noted that the routing transmission node response diagram is obtained based on the topological relationship of the routing transmission node combined with the response data, and is used to describe the actual working status of the routing transmission node. Different working states can be distinguished by different colors to obtain the routing transmission node response diagram.
[0103] Exemplarily, the step of generating a routing transmission node response graph according to the response data, and determining the location of the faulty routing transmission node according to the routing transmission node response graph includes:
[0104] Parsing the response data to determine performance indicator data of each routing transmission node;
[0105] Performing data processing on the response data in the response data based on the indicator weight in the performance indicator data to obtain routing transmission node response data;
[0106] Analyzing the response data of the routing transmission node to determine abnormal data of the response data of the routing transmission node;
[0107] Generate a routing transmission node response graph based on the topological relationship between the routing transmission node response data and each of the routing transmission nodes, and generate an abnormal mark in the routing transmission node graph according to the abnormal data;
[0108] The location of the faulty routing transmission node is determined according to the abnormal mark and the routing transmission node response map.
[0109] In the specific implementation, the response data is parsed to determine the performance indicators of each routing transmission node, including latency, packet loss rate, throughput and other performance indicators. Since the degree of influence of each performance data on network performance is different, in order to better describe the current routing transmission node, a weight can be assigned to each indicator, and the weight reflects the importance of affecting the overall performance. After the weight is assigned, the response data can be processed to obtain the routing transmission node response data, and the routing transmission node response data can be analyzed to determine the abnormal data in the routing transmission node response data. Specifically, the routing transmission node response data can be compared with the standard data. When the routing transmission node response data is less than the standard data, it means that the current data is abnormal data. The topological relationship between the routing transmission node response data and each routing transmission node is used to generate a routing transmission node response graph, and an abnormal mark is generated according to the abnormal data in the routing transmission node, and it is marked in the routing transmission node response graph. The location of the routing transmission node is determined according to the abnormal mark.
[0110] The present embodiment provides a segmented routing fault detection method, which tracks data packets in a current network, obtains a routing path in the current network, and determines the topological relationship of each routing transmission node in the current network based on the routing path, determines the shortest transmission path between an initial node and a target node based on the topological relationship, determines the target adjacent node of the routing transmission node in the shortest transmission path, and adds the node information of the target adjacent node to a detection data header, generates a segmented detection path, sends detection data to the target node based on the segmented detection path, monitors response data generated by each routing transmission node based on the detection data, generates a routing transmission node response graph based on the response data, determines the location of the faulty routing transmission node based on the routing transmission node response graph, and implements comprehensive detection of routing nodes in the current network, thereby improving the accuracy of routing detection.
[0111] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 Before step S23, the segment routing fault detection method further includes steps S231 to S234:
[0112] Step S231: parsing each of the data packets to obtain performance indicator data of the routing transmission node corresponding to the data packet;
[0113] Step S232: Initializing the performance indicator data to obtain initialized performance indicator data;
[0114] Step S233: updating the initial segmentation node based on the Euclidean distance between the initialization performance indicator data and the initial segmentation node to obtain a segmentation node;
[0115] Step S234: Determine the node information of the segment node, add the node information of the segment node and the information of the target adjacent node to the detection data header, and generate a segment detection path.
[0116] In the specific implementation, the data packet is parsed to obtain the performance indicator data of the routing transmission node corresponding to the data packet, and the performance indicator data is initialized to obtain the initialized performance indicator data. The data are unified into the same dimension and can be initialized by Z score standardization. The specific formula is: ,in, is the mean of the overall data, is the standard deviation of the overall data. After obtaining the initialization performance indicator data, since the data in the initialization performance indicator data is presented in three dimensions, each initialization performance indicator data can be deployed in the spatial coordinate system in the form of a routing node, and a number of initial segmentation nodes are randomly selected in the initialization performance indicator, and the Euclidean distance between the initialization performance indicator data and the initial segmentation node is calculated. The Euclidean distance calculation process is:
[0117]
[0118] Among them, the coordinates of the initial segment nodes are , initialize the performance indicator data as , Represents the Euclidean distance between the initial performance index and the initial segmentation node. Each routing node is clustered based on the Euclidean distance, its cluster center is determined, and the cluster center is updated in real time to obtain the segmentation center until all routing nodes correspond to a segmentation center. In this case, the final segmentation center is output to obtain the segmentation node, and the node information of the segmentation node is determined. The node information of the segmentation node and the information of the target adjacent node are added to the detection data header to generate a segmented detection path.
[0119] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the segment routing fault detection method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0120] This application also provides a segment routing fault detection device, please refer to Figure 6 , the segment routing fault detection device comprises:
[0121] The routing exploration module 10 is used to track data packets in the current network, obtain the routing path in the current network, and determine the topological relationship of each routing transmission node in the current network according to the routing path.
[0122] The path construction module 20 is used to determine the shortest transmission path between the initial node and the target node based on the topological relationship, determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header to generate a segmented detection path.
[0123] The fault monitoring module 30 is used to send detection data to the target node based on the segmented detection path, and monitor the response data generated by each of the routing transmission nodes based on the detection data.
[0124] The fault location module 40 is used to generate a routing transmission node response graph according to the response data, and determine the location of the faulty routing transmission node according to the routing transmission node response graph.
[0125] The segment routing fault detection device provided by the present application adopts the segment routing fault detection method in the above embodiment, which can solve the technical problem that the prior art cannot perform comprehensive and effective fault detection on the routing transmission nodes in the network. Compared with the prior art, the beneficial effects of the segment routing fault detection device provided by the present application are the same as the beneficial effects of the segment routing fault detection method provided by the above embodiment, and the other technical features in the segment routing fault detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0126] The present application provides a segment routing fault detection device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the segment routing fault detection method in the above-mentioned embodiment 1.
[0127] Reference below Figure 7 , which shows a schematic diagram of the structure of a segment routing fault detection device suitable for implementing the embodiment of the present application. The segment routing fault detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The segment routing fault detection device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0128] like Figure 7 As shown, the segment routing fault detection device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the segment routing fault detection device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the segment routing fault detection device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a segment routing fault detection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0129] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0130] The segment routing fault detection device provided by the present application adopts the segment routing fault detection method in the above embodiment, which can solve the technical problem that the prior art cannot perform comprehensive and effective fault detection on the routing transmission nodes in the network. Compared with the prior art, the beneficial effects of the segment routing fault detection device provided by the present application are the same as the beneficial effects of the segment routing fault detection method provided by the above embodiment, and the other technical features in the segment routing fault detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0131] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0132] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0133] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the segment routing fault detection method in the above-mentioned embodiment.
[0134] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0135] The computer-readable storage medium may be included in the segment routing fault detection device; or may exist independently without being assembled into the segment routing fault detection device.
[0136] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the segment routing fault detection device, the segment routing fault detection device:
[0137] Tracking data packets in the current network, obtaining a routing path in the current network, and determining a topological relationship between each routing transmission node in the current network according to the routing path;
[0138] Determine the shortest transmission path between the initial node and the target node based on the topological relationship, determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header to generate a segmented detection path;
[0139] Sending detection data to the target node based on the segmented detection path, and monitoring response data generated by each of the routing transmission nodes based on the detection data;
[0140] A routing transmission node response graph is generated according to the response data, and a location of a faulty routing transmission node is determined according to the routing transmission node response graph.
[0141] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may 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 may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0144] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned segment routing fault detection method, and can solve the technical problem that the prior art cannot perform comprehensive and effective fault detection on routing transmission nodes in the network. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the segment routing fault detection method provided by the above-mentioned embodiment, and will not be repeated here.
[0145] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned segment routing failure detection method when executed by a processor.
[0146] The computer program product provided by the present application can solve the technical problem that the prior art cannot perform comprehensive and effective fault detection on routing transmission nodes in the network. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the segment routing fault detection method provided by the above embodiment, which will not be repeated here.
[0147] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A segment routing fault detection method, characterized in that: The segment routing fault detection method comprises: Tracking data packets in the current network, obtaining a routing path in the current network, and determining a topological relationship between each routing transmission node in the current network according to the routing path; Determine the shortest transmission path between the initial node and the target node based on the topological relationship, determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header to generate a segmented detection path; Sending detection data to the target node based on the segmented detection path, and monitoring response data generated by each of the routing transmission nodes based on the detection data; Generate a routing transmission node response graph according to the response data, and determine the location of the faulty routing transmission node according to the routing transmission node response graph; The step of determining the shortest transmission path between the initial node and the target node based on the topological relationship, determining the target adjacent node of the routing transmission node in the shortest transmission path, and adding the node information of the target adjacent node to the detection data header to generate the segmented detection path includes: Determine the link weights between the routing transmission nodes based on the topological relationship, and determine the shortest transmission path between the initial node and the target node based on the link weights; Determine a routing transmission node in the shortest transmission path according to the shortest transmission path; Detecting the routing transfer node to determine a target adjacent node of the routing transfer node; Determine the node information of the target adjacent node, and add the information of the target adjacent node to the detection data header to generate a segmented detection path; The step of detecting the routing transfer node and determining the target adjacent node of the routing transfer node comprises: Determine the transmission nodes having adjacent nodes in the shortest transmission path, and sort the transmission nodes having adjacent nodes according to the transmission order to obtain a node sequence; Based on the order of the node sequence, path fitting is performed according to the adjacent nodes of the transmission node in turn to generate a fitting transmission path; A non-overlapping path is determined according to the fitted transmission path and the segmented detection path, and the first transmission node in the non-overlapping path is used as a target adjacent node.
2. The method according to claim 1, characterized in that The step of determining the node information of the target adjacent node and adding the information of the target adjacent node to the detection data header includes: Analyze the working parameters of the target adjacent node to determine the node information of the target adjacent node; Obtaining a communication address of the target adjacent node according to the node information of the target adjacent node; The node information of the segment node and the communication address are added to the detection data header.
3. The method according to claim 1, characterized in that Before the step of detecting the routing transfer node and determining the target adjacent node of the routing transfer node, the step further includes: Parsing each of the data packets to obtain performance indicator data of the routing transmission node corresponding to the data packet; Initializing the performance indicator data to obtain initialized performance indicator data; The initial segmentation node is updated based on the Euclidean distance between the initialization performance indicator data and the initial segmentation node to obtain a segmentation node; The node information of the segment node is determined, and the node information of the segment node and the information of the target adjacent node are added to the detection data header to generate a segment detection path.
4. The method according to claim 1, characterized in that The step of sending detection data to the target node based on the segmented detection path and monitoring response data generated by each node based on the detection data includes: Determine a routing transmission node on the segment detection path based on the segment detection path; Sending the detection data to the target node through the routing transmission nodes on the segmented detection path, and obtaining the message delay and data packet loss rate generated by each routing transmission node on the segmented detection path based on the detection data; The routing transmission node is combined with the message delay and data packet loss rate corresponding to the routing transmission node to obtain response data.
5. The method according to claim 1, characterized in that The step of generating a routing transmission node response graph according to the response data and determining the location of the faulty routing transmission node according to the routing transmission node response graph comprises: Parsing the response data to determine performance indicator data of each routing transmission node; Performing data processing on the response data in the response data based on the indicator weight in the performance indicator data to obtain routing transmission node response data; Analyzing the response data of the routing transmission node to determine abnormal data of the response data of the routing transmission node; Generate a routing transmission node response graph based on the topological relationship between the routing transmission node response data and each of the routing transmission nodes, and generate an abnormal mark in the routing transmission node graph according to the abnormal data; The location of the faulty routing transmission node is determined according to the abnormal mark and the routing transmission node response map.
6. A segment routing fault detection device, characterized in that: The device comprises: A routing exploration module, used to track data packets in the current network, obtain the routing path in the current network, and determine the topological relationship of each routing transmission node in the current network according to the routing path; A path construction module, used to determine the shortest transmission path between the initial node and the target node based on the topological relationship, determine the target adjacent node of the routing transmission node in the shortest transmission path, and add the node information of the target adjacent node to the detection data header to generate a segmented detection path; A fault monitoring module, configured to send detection data to the target node based on the segmented detection path, and monitor response data generated by each of the routing transmission nodes based on the detection data; A fault location module, used to generate a routing transmission node response graph according to the response data, and determine the location of the faulty routing transmission node according to the routing transmission node response graph; Wherein, the determining the shortest transmission path between the initial node and the target node based on the topological relationship, determining the target adjacent node of the routing transmission node in the shortest transmission path, and adding the node information of the target adjacent node to the detection data header, and generating the segmented detection path includes: Determine the link weights between the routing transmission nodes based on the topological relationship, and determine the shortest transmission path between the initial node and the target node based on the link weights; Determine a routing transmission node in the shortest transmission path according to the shortest transmission path; Detecting the routing transfer node to determine a target adjacent node of the routing transfer node; Determine the node information of the target adjacent node, and add the information of the target adjacent node to the detection data header to generate a segmented detection path; The detecting the routing transfer node to determine the target adjacent node of the routing transfer node includes: Determine the transmission nodes having adjacent nodes in the shortest transmission path, and sort the transmission nodes having adjacent nodes according to the transmission order to obtain a node sequence; Based on the order of the node sequence, path fitting is performed according to the adjacent nodes of the transmission node in turn to generate a fitting transmission path; A non-overlapping path is determined according to the fitted transmission path and the segmented detection path, and the first transmission node in the non-overlapping path is used as a target adjacent node.
7. A segment routing fault detection device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the segment routing failure detection method according to any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the segment routing failure detection method according to any one of claims 1 to 5 are implemented.
