Network testing method, device and equipment
By exploring nodes to filter public network IPs and generating IP link topology, combined with network performance detection of detection nodes, it solves the problems of high cost and limited frequency of network testing in the existing technology, and achieves efficient network status monitoring and abnormal location.
Patent Information
- Application Number
- CN202210147242.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-02-17
AI Technical Summary
Existing network testing methods require the deployment of dedicated test equipment in the target area, resulting in high costs. They are also limited by the detection frequency and cost of third-party services, making it difficult to effectively monitor the network status of the entire network.
Through the exploration node, the target IP is screened from the public network IP, the IP link topology is generated, and the detection node performs network performance detection on these IPs. The central node determines the abnormal link segment based on the detection data and topology, realizing network testing without the need for special equipment. Reduce cost and frequency constraints.
It realizes network testing without special equipment, reduces costs, and improves the efficiency and frequency of network status monitoring. It can sense and locate network abnormalities in a timely manner and reduce the impact on users.
Smart Images

Figure CN114531370B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication network technology, and in particular, to a network testing method, device and equipment. Background Art
[0002] In order to improve service quality, companies that provide Internet services often deploy server nodes in various regions to provide services to users in target areas. There is a need to test the network coverage of service nodes, so that when the network in the target area corresponding to the service node is abnormal, the business of users in the target area can be transferred to other service nodes to achieve high availability.
[0003] If it is necessary to detect the network status of the entire network or the target area, the detection party needs to deploy detection nodes in the target area, the whole country or even the whole world. This solution requires the target area to have test equipment, and its manpower cost, resource cost and time cost are relatively high. If the third-party service is used, the test is limited by the test nodes of the third-party service and the detection frequency limit allowed by the third party, and its test cost is high. Summary of the invention
[0004] The present application provides a network testing method, apparatus and device to reduce the cost of network testing.
[0005] The first aspect provides a network testing method. The method includes: a central node receives exploration data sent by an exploration node, the exploration data includes multiple target IPs and the exploration IP of the exploration node, and the multiple target IPs are obtained by screening the exploration node in the public network IP. The central node generates an IP link topology between the exploration IP and the multiple target IPs based on the exploration data. The central node receives detection data sent by a detection node, and the detection data is obtained by the detection node detecting network performance indicators of multiple target IPs. The central node determines the abnormal link segment in the IP link topology based on the detection data and the IP link topology.
[0006] In a possible implementation, the IP link topology includes multiple target links, each target link includes a series-connected exploration IP and at least one target IP, the detection data includes first network performance data of each target IP, and the central node obtains an abnormal link segment in the IP link topology based on the detection data and the IP link topology, including: the central node determines an abnormal IP among the multiple target IPs, the abnormal IP among the multiple target IPs is an IP whose first network performance data does not meet a first preset condition; the central node determines an abnormal link among the multiple target links based on the abnormal IPs among the multiple target IPs; the central node obtains the abnormal IP in the abnormal link; the central node determines the abnormal link segment based on the abnormal IP in the abnormal link.
[0007] In a possible implementation, the exploration data includes multiple exploration links, each exploration link includes a serially connected exploration IP and at least one target IP, and the central node generates an IP link topology of the exploration IP and the multiple target IPs according to the exploration data, including: the central node obtains geographic location information of each target IP. The central node generates the IP link topology according to the multiple exploration links and the geographic location information of each target IP.
[0008] The second aspect provides a network testing method. The method includes: an exploration node screens and obtains multiple target IPs from a public network IP; the exploration node sends exploration data including the exploration IP of the exploration node and multiple target IPs to a central node, so that the central node generates an IP link topology of the exploration IP and multiple target IPs according to the exploration data, and determines an abnormal link segment in the IP link topology according to the detection data and the IP link topology, wherein the detection data is obtained by the detection node detecting network performance indicators of multiple target IPs.
[0009] In one possible implementation, the multiple target IPs include at least one initial IP and at least one routing IP. The initial IP is selected by the exploration node from the public IPs, and the routing IP is the IP to which the route tracking message sent from the exploration IP in the public IP jumps when it reaches the initial IP.
[0010] In a possible implementation, before the exploration node sends the exploration data to the central node, the process further includes: the exploration node obtains the second network performance data corresponding to each target IP, and the exploration node deletes the IP whose second network performance data does not meet the second preset condition from among the multiple target IPs.
[0011] The third aspect provides a network testing method. The method includes: the detection node obtains multiple target IPs from the central node, and the target IPs are screened by the exploration node from the public network IP and sent to the central node. The detection node detects the network performance indicators of the multiple target IPs to obtain detection data. The detection node sends the detection data to the central node so that the central node determines the abnormal link segment in the IP link topology based on the detection data and the IP link topology. The IP link topology is generated by the central node, and the IP link topology includes the exploration IP of the exploration node and the connection relationship between the multiple target IPs.
[0012] A fourth aspect provides a network testing device. The device includes: a receiving module, which is used to receive exploration data sent by an exploration node, the exploration data includes multiple target IPs and the exploration IP of the exploration node, and the multiple target IPs are obtained by the exploration node screening in the public network IP; a generating module, which is used to generate an IP link topology between the exploration IP and the multiple target IPs according to the exploration data; the receiving module is also used to receive detection data sent by a detection node, and the detection data is obtained by the detection node detecting network performance indicators of multiple target IPs; a determining module is used to determine an abnormal link segment in the IP link topology according to the detection data and the IP link topology.
[0013] A fifth aspect provides a network testing device, which includes a processor and a memory, wherein the processor is coupled to the memory, and the processor is configured to execute the above-mentioned network testing method based on instructions stored in the memory.
[0014] A sixth aspect provides a computer-readable storage medium, comprising instructions, which, when the computer-readable storage medium is run on a computer, enables the computer to execute the network testing method as described above.
[0015] In this application, the exploration node screens the target IP from the public network IP, and the detection node directly uses the IP exposed to the public network to perform network testing. There is no need to set up special equipment in the network for the tested network performance indicators, thereby reducing the cost of network testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the structure of the network testing system provided for this application;
[0017] Figure 2 A schematic diagram of the interaction flow of the first embodiment of the network testing method provided by the present application;
[0018] Figure 3 A schematic diagram of generating an IP link topology provided for this application;
[0019] Figure 4 A schematic diagram of a flow chart of a second embodiment of a network testing method provided by the present application;
[0020] Figure 5 A schematic diagram of a flow chart of a third embodiment of a network testing method provided by the present application;
[0021] Figure 6 A schematic diagram of a flow chart of a fourth embodiment of a network testing method provided by the present application;
[0022] Figure 7 A schematic diagram of the structure of an embodiment of a network testing device provided by the present application;
[0023] Figure 8A schematic diagram of the structure of an embodiment of a network testing device provided in the present application. DETAILED DESCRIPTION
[0024] The embodiments of the present application provide a network testing method, apparatus and device to reduce the cost of network testing.
[0025] In order to improve the response efficiency and success rate of user access, some service providers that provide audio and video playback, image and text browsing, file downloading and other services often rent or build data centers (DC) in multiple regions, deploy edge servers in DC, and distribute audio and video, websites, downloads and other content to edge servers in DC, so that users in the area covered by the edge server can access the edge server nearby to obtain the required content.
[0026] When edge nodes fail, or network quality in some areas is poor, users in the corresponding area will experience long access delays or access failures. Therefore, it is necessary to monitor the network status of the entire network, so as to timely perceive and locate nodes or areas with network anomalies, and take corresponding measures to reduce the impact on users.
[0027] Traditional network testing methods require the deployment of dedicated tested equipment in the target area, resulting in high testing costs. Therefore, in order to solve the problem of high network testing costs, the present application provides the following embodiments.
[0028] like Figure 1 As shown, Figure 1 A schematic diagram of the structure of the network test system provided in the present application. In this embodiment, the network test system 100 includes a central node 10, at least one exploration node 20 and a plurality of detection nodes 30. The exploration node 20 is connected to the central node 10, and the detection node 30 is connected to the central node 10. Figure 1 The number of exploration nodes 20 and detection nodes is merely exemplary and should not be construed as a limitation to the present application. For example, the number of exploration nodes may be multiple.
[0029] The detection node 30 may be deployed on a virtual machine in an edge server in each area, thereby eliminating the need to set up dedicated test equipment and reducing network testing costs.
[0030] The exploration node 20 may be deployed in the same data center, the same physical server, or the same region as the central node 10. The exploration node 20 may also be deployed on one or more edge servers.
[0031] The exploration node 20 obtains exploration data including the exploration IP of the exploration node 20 and multiple target IPs screened from the public network IP, and sends the exploration data to the central node 10. The central node 10 generates an IP link topology between the exploration IP and multiple target IPs based on the exploration data, and sends the multiple target IPs to the detection node 30. The detection node detects the network performance indicators of the multiple target IPs to obtain detection data, and sends the detection data to the central node 10. The central node 10 determines the abnormal link segment in the IP link topology based on the IP link topology and the detection data. Among them, the network performance indicators include, for example, delay indicators or packet loss rate indicators.
[0032] Specifically, the exploration node 20 randomly extracts multiple initial IPs from the IP library, and the IP library includes the public network IP of the target area and the operator, country, province (autonomous region), city, district (county) and other information corresponding to each public network IP. The IP library can be obtained by the exploration node 20 from the central node 10, or it can be called by the exploration node 20 from a third party through an API interface. The target area is the area where network measurement is required, for example, the target area can be the whole world, China, Hunan Province or Changsha City. The exploration node 20 sends a detection message to each initial IP to obtain the routing IP to which the detection message jumps from the exploration node 20 to the initial IP. In this application, the target IP includes the routing IP and the initial IP. The exploration node 20 sends the exploration data to the central node 10. The exploration data also includes multiple exploration links. Each exploration link includes the connection relationship between the exploration IP and the initial IP, and the routing IP between the two. For example, the exploration IP passes through the routing IP1 and the routing IP2 from the initial IP1, and the corresponding exploration link is the exploration IP→routing IP1→routing IP2→initial IP1.
[0033] Optionally, in order to ensure that the target IPs sent to the central node 10 are all available, before sending the target IPs to the central IP, the exploration node 20 further detects the network performance indicators of the nodes corresponding to the target IPs, and obtains the second network performance data corresponding to each target IP. The exploration node 20 removes the IPs whose second network performance data do not meet the second preset condition from all target node IPs, and the IPs whose second network performance data meet the second preset condition are used as the IPs finally sent to the central node 10. The second network performance data includes packet loss rate and / or latency, etc.
[0034] After receiving the exploration data, the central node 10 generates an IP link topology consisting of the exploration IP and all target IPs according to the exploration data. On the other hand, the central node 10 sends multiple target IPs to each detection node.
[0035] After receiving these target IPs, the detection node selects at least one of the target IPs for network testing. Each detection node jointly completes the detection of all target IPs. After the detection node completes the detection of the target IP, the detection data is sent to the central node 10. The detection data includes the first network performance data corresponding to each target IP. The first network performance data includes packet loss rate and / or delay, etc.
[0036] After receiving the detection data, the central node 10 determines which IPs in the target IP are abnormal according to the detection data, and determines the abnormal link segments in the IP link topology in combination with the IP link topology. According to the abnormal link segments, the central node 10 can know which regional networks have faults or poor network quality, so as to carry out corresponding processing as soon as possible.
[0037] like Figure 2 As shown, Figure 2 A schematic diagram of the interaction process of the first embodiment of the network testing method provided by this application. In this embodiment, the steps performed by each execution subject are described together to reflect the integrity of the interaction, but it is by no means limited to the processes involved in each entity side must be performed together. The technical solution proposed in this application has improvements on each entity side.
[0038] S201: The exploration node obtains exploration data, where the exploration data includes a target IP and an exploration link.
[0039] Among them, the target IP is selected by the exploration node from the public network IP. The exploration link includes a series of exploration IPs and at least one target IP. When the route tracking message sent by the exploration IP needs to pass through the routing IP to reach the initial IP, the exploration link specifically includes the series of exploration IPs, routing IPs and initial IPs. The exploration link represents the communication line between the exploration node and the node corresponding to the initial IP. The exploration node obtains the exploration data in the first cycle, so as to ensure that the exploration data is updated in time and avoid more invalid data in the exploration data. The first cycle is, for example, one day, one week or one month.
[0040] The exploration node first selects the initial IP from the public IP, and then obtains the routing IP based on the initial IP. The initial IP and the routing IP constitute the target IP. The routing IP is also an IP in the public IP.
[0041] Specifically, the exploration node obtains the IP library, parses the IP library, extracts the target information in the IP library according to the target dimension, and obtains the target dimension information table. Among them, the target dimension includes one or more of the information such as the operator, country, province, city, district (county), etc., and the target information is the specific information corresponding to the target dimension extracted from the IP library. For example, if the public network IP in the IP library comes from 10 countries including China, the target information corresponding to the country dimension includes the names or codes of 10 countries including China; if the public network IP in the IP library includes the IPs of 20 provinces including Hunan, Hubei, Guangdong, etc. in all provinces, autonomous regions and municipalities directly under the Central Government in China, the target information corresponding to the province dimension includes Hunan, Hubei and Guangdong, etc. As shown in Table 1.
[0042] Target dimension information table
[0043]
[0044] The exploration node randomly extracts the target information of each dimension from the target dimension information table and combines them to obtain multiple target combination conditions. Each target combination condition includes a target information corresponding to each dimension. The exploration node selects at least one IP that meets the target combination condition from the IP library as the initial IP. It can be understood that when there is a correlation between dimensions, the correlation between dimensions should also be followed when randomly extracting target information and combining them. For example, the target information extracted from the national dimension is China, and when extracting target information from the provincial dimension, it should be extracted from the province corresponding to China; the target information extracted from the provincial dimension is Hunan, and when extracting target information from the city dimension, it should be extracted from the city corresponding to Hunan Province. For example, if a target combination condition is (China, Hunan, Changsha, Mobile), the initial IP is selected from the public network IP that meets the four dimensions of China, Hunan, Changsha, and Mobile at the same time.
[0045] After the exploration node obtains the initial IP, the exploration node uses itself as the source end and the device corresponding to each initial IP as the destination end. The exploration node executes the tracert command and sends a detection message to each initial IP, so that the exploration node can obtain the IP corresponding to the device routed between the exploration node and each initial IP, that is, the routing IP. The detection message can be an Internet Control Message Protocol (ICMP) message. On a simple network, this network link may only pass through one routing IP, or even none. However, in a complex network, the detection message may have to pass through several dozens of routing IPs before reaching the destination. The route tracking command sets the time to live (TTL) value of the detection message, tracks the gateway through which the detection message reaches the device corresponding to the initial IP, and listens to the ICMP response from the gateway, which includes the routing IP corresponding to each hop. The routing IP and the initial IP are the target IP.
[0046] The number of initial IP addresses that the exploration node acquires can be determined based on the size of the target area and the accuracy requirements for the network test results. This application does not impose any restrictions on this. The larger the target area, the more initial IP addresses; the higher the accuracy requirements for the network test results, the more initial IP addresses.
[0047] In order to verify whether all target IPs are available, the exploration node further obtains the second network performance data of each target IP. The detection node can specifically perform an ICMP test on the target node. Specifically, the detection node executes the ICMPPing program and sends a test data packet to the node corresponding to the target IP. For example, the test data packet size can be 64 bits, the preset number of tests is 100 times, and the timeout is set to 500 milliseconds. Of course, the data packet size can also be 32 bits or 128 bits, etc., the number of tests can be 50 times, 120 times, 150 times or 200 times, etc., and the timeout can also be set to 300 milliseconds, 400 milliseconds, 600 milliseconds or 800 milliseconds, etc., and this application does not limit this. The number of tests refers to the number of times the same test is performed on the same target IP.
[0048] The detection node records the first time when the test data packet is sent to the node corresponding to the target IP, and starts the timer. The detection node records whether the response message returned by the node corresponding to the target IP is received within the set timeout period. If the response message is received within the set timeout period, the detection node records the second time when the response message is received. The detection node uses the second time to subtract the first time, and then the delay of the test can be obtained. If the response message returned by the node corresponding to the target IP is not received within the set timeout period, it is considered that packet loss has occurred in this test, and the cumulative number of packet losses of the node corresponding to the target IP is recorded. After the detection node completes the preset number of tests for a certain target IP, the packet loss rate and delay corresponding to the target IP are counted. The packet loss rate corresponding to the target IP is the number of packet losses divided by the preset number of tests. The delay corresponding to the target IP is the sum of the delays of all tests that receive the response message within the timeout period within the preset number of tests of the target IP, divided by the number of tests that receive the response message within the timeout period, that is, the average value of the delays of multiple tests. The second network performance of a certain target IP includes the delay and / or packet loss rate of the target IP.
[0049] The exploration node determines whether the second network performance data of each target IP meets the second preset condition. When the second network performance data includes delay, the exploration node determines whether the delay corresponding to the target IP is greater than the first threshold. If the delay corresponding to the target IP is greater than the first threshold, the second network performance data of the target IP does not meet the second preset condition. If the delay corresponding to the target IP is less than or equal to the first threshold, the second network performance data of the target IP meets the second preset condition. When the second network data includes packet loss rate, the exploration node determines whether the packet loss rate corresponding to the target IP is greater than the second threshold. If the packet loss rate corresponding to the target IP is greater than the second threshold, the second network performance data of the target IP does not meet the second preset condition. If the packet loss rate corresponding to the target IP is less than or equal to the second threshold, the second network performance data of the target IP meets the second preset condition. When the second network performance data includes both delay and packet loss rate, the delay is less than or equal to the first threshold, and the packet loss rate is less than or equal to the second threshold, then it is determined that the second network performance data meets the second preset condition; otherwise, it is determined that the second network performance data does not meet the second preset condition.
[0050] The target IPs that meet the second preset condition are retained, while the target IPs that do not meet the second preset condition are eliminated.
[0051] S202: The exploration node sends the exploration data to the central node.
[0052] S203: The central node generates an IP link topology according to the exploration data.
[0053] The central node obtains the geographical location information of the exploration IP and each target IP, and generates an IP link topology according to the plurality of exploration links and the geographical location information of each target IP.
[0054] The geographic location information is the region where the node corresponding to the exploration IP and the target IP is located. For example, the geographic location information includes the country, province, city, district, etc. corresponding to the exploration IP or the target IP.
[0055] The central node traverses each target IP and exploration IP, queries whether the target IP / exploration IP is a backbone IP and the target IP's geographic location information, and records the backbone IP / non-backbone IP information and geographic location information of each target IP / exploration IP. The central node marks the map based on the backbone / non-backbone information and geographic location information of the target IP. Among them, the backbone IP is the IP corresponding to the backbone node in the network. The backbone node is a communication hub within a region, mainly used to aggregate and clear regional network communication traffic.
[0056] According to the multiple exploration links in the exploration data, the exploration IPs marked on the map are connected to the target IPs, and the non-backbone IPs in the area corresponding to the backbone IPs are directly or indirectly connected to the corresponding backbone IPs, thereby generating an IP link topology. For example, the IP link topology is as follows: Figure 3 As shown, Figure 3 A schematic diagram of generating an IP link topology provided for this application.
[0057] S204: The central node sends multiple target IPs to the detection node.
[0058] The central node sends the multiple target IPs sent by the exploration node to each detection node, so that the detection node can perform network testing on the multiple target IPs.
[0059] This embodiment does not limit the execution order of S203 and S204. For example, S203 and S204 may be executed simultaneously, or S203 may be executed first, or S204 may be executed first.
[0060] S205: The detection node detects network performance indicators of multiple target IPs to obtain detection data.
[0061] Each detection node can detect the network performance indicators of each target IP among multiple target IPs separately, or detect some of the target IPs among multiple target IPs. For example, since the detection nodes are deployed in different areas, the detection nodes can only be responsible for detecting the target IPs belonging to the same area, or the detection nodes can be responsible for detecting the target IPs belonging to the same area and the adjacent areas of the area.
[0062] The detection node detects the target IP it is responsible for in the second period. The second period can be 5 minutes, 10 minutes, 20 minutes, 30 minutes or 1 hour, so that the network status of the node corresponding to the target IP can be obtained in time.
[0063] The detection node can specifically be an ICMP test on the target node. Specifically, the detection node executes the ICMP Ping program and sends a test data packet to the node corresponding to the target IP. For example, the test data packet size can be 64 bits, the preset test number is 100 times, and the timeout is set to 500 milliseconds. Of course, the data packet size can also be 32 bits or 128 bits, etc., the test number can be 50 times, 120 times, 150 times or 200 times, etc., and the timeout can also be set to 300 milliseconds, 400 milliseconds, 600 milliseconds or 800 milliseconds, etc., and the application does not limit this. The test number refers to the number of times the same test is performed on the same target IP.
[0064] The detection node records the first time when the test data packet is sent to the node corresponding to the target IP, and starts the timer. The detection node records whether the response message returned by the node corresponding to the target IP is received within the set timeout period. If the response message is received within the set timeout period, the detection node records the second time when the response message is received. The detection node uses the second time to subtract the first time, and then the delay of the test can be obtained. If the response message returned by the node corresponding to the target IP is not received within the set timeout period, it is confirmed that packet loss has occurred in this test, and the cumulative number of packet losses of the node corresponding to the target IP is recorded. After the detection node completes the preset number of tests for a certain target IP, the packet loss rate and delay corresponding to the target IP are counted. The packet loss rate corresponding to the target IP is the number of packet losses divided by the preset number of tests. The delay corresponding to the target IP is the sum of the delays of all tests that receive response messages within the timeout period within the preset number of tests of the target IP, divided by the number of tests that receive response messages within the timeout period, that is, the average value of the delays of multiple tests.
[0065] The first network performance of a target IP includes the delay and / or packet loss rate of the target IP.
[0066] S206: The detection node sends the detection data to the central node.
[0067] Each detection node sends detection data including first network performance data corresponding to at least one target IP obtained by the detection node to the central node.
[0068] S207: The central node determines an abnormal link segment in the IP link topology according to the detection data and the IP link topology.
[0069] The central node first determines the target IP with abnormality among all the target IPs according to the detection data. Specifically, the exploration node determines whether the first network performance data of each target IP meets the first preset condition. When the first network performance data includes delay, the exploration node determines whether the delay corresponding to the target IP is greater than the third threshold. If the delay corresponding to the target IP is greater than the third threshold, the first network performance data of the target IP does not meet the first preset condition. If the delay corresponding to the target IP is less than or equal to the third threshold, the first network performance data of the target IP meets the first preset condition. When the second network data includes packet loss rate, the exploration node determines whether the packet loss rate corresponding to the target IP is greater than the fourth threshold. If the packet loss rate corresponding to the target IP is greater than the fourth threshold, the first network performance data of the target IP does not meet the first preset condition. If the packet loss rate corresponding to the target IP is less than or equal to the fourth threshold, the first network performance data of the target IP meets the first preset condition. When the first network performance data includes both delay and packet loss rate, the delay is less than or equal to the third threshold, and the packet loss rate is less than or equal to the fourth threshold, it is determined that the first network performance data meets the first preset condition; otherwise, it is determined that the first network performance data does not meet the first preset condition. The central node determines that the target IP that does not meet the first preset condition is an abnormal IP.
[0070] The third threshold value may be the same as or different from the first threshold value, for example, the third threshold value may be smaller than the first threshold value. The fourth threshold value may be the same as or different from the second threshold value, for example, the fourth threshold value may be smaller than the second threshold value.
[0071] The central node determines the link where the abnormal IP is located based on the abnormal IP and the IP link topology. The central node further obtains the abnormal IP in the abnormal link, and then the central node determines the abnormal link segment based on the abnormal IP in the abnormal link. Specifically, the central node obtains the preceding IP in the abnormal link. The preceding IP is the routing IP to which the detection message sent by the exploration IP is transmitted in the link and reaches the abnormal IP. For example, the abnormal link is exploration IP→routing IP3→routing IP4→routing IP5→abnormal IP1, and the preceding IPs are routing IP3, routing IP4 and routing IP5.
[0072] The central node determines whether the first network performance data of each preceding IP meets the first preset condition, that is, determines whether an abnormal IP is stored in the preceding IP. When there is a preceding IP whose first network performance data does not meet the first preset condition in the preceding IP, that is, when there are other abnormal IPs in the abnormal link, the central node determines that the link segment between the previous IP of the abnormal IP with the least number of IPs spaced from the exploration IP in the abnormal link to the abnormal IP with the largest number of IPs spaced from the exploration IP is the abnormal link segment. For example, the abnormal link is exploration IP→routing IP3→routing IP4→routing IP5→abnormal IP1, the central node determines that routing IP4 and routing IP5 are abnormal IPs, and routing IP3 is not an abnormal IP, then routing IP4 is the abnormal IP with the least number of IPs spaced from the exploration IP in the abnormal link, abnormal IP1 is the abnormal IP with the largest number of IPs spaced from the exploration IP, and routing IP3 is the previous IP of routing IP4, then it can be determined that the abnormal link segment is the link segment from routing to abnormal IP1 in the abnormal link.
[0073] Thus, the central node can determine which areas have poor network performance based on the abnormal link segments and can quickly take corresponding measures, such as switching users in areas with poor network performance to other edge servers outside the area.
[0074] In this embodiment, the exploration node collects and filters available public IPs, and the detection node tests the network status of the public IPs, thereby eliminating the need to deploy devices specifically for testing in various regions, and eliminating the need to use third-party services, thereby reducing the cost of network monitoring in the target area. In addition, the detection node is not restricted by third parties or costs, and can test the network status at a high frequency, thereby improving the effectiveness of obtaining the network status of the entire network.
[0075] like Figure 4 As shown, Figure 4 This is a flow chart of the second embodiment of the network testing method provided by the present application. The execution subject of this embodiment is the central node. This embodiment includes the following steps:
[0076] S401: The central node receives exploration data sent by the exploration node. The exploration data includes multiple target IPs and the exploration IP of the exploration node. The multiple target IPs are obtained by screening the exploration node from the public network IPs.
[0077] S402: The central node generates an IP link topology between the exploration IP and multiple target IPs according to the exploration data.
[0078] S403: The central node receives the detection data sent by the detection node, where the detection data is obtained by the detection node detecting network performance indicators of multiple target IPs.
[0079] S404: The central node determines an abnormal link segment in the IP link topology according to the detection data and the IP link topology.
[0080] For S401 - S404 of this embodiment, reference may be made to the related operations performed by the central node in the first embodiment of the network testing method, and thus they will not be described in detail herein.
[0081] like Figure 5 As shown, Figure 5 This is a flow chart of the third embodiment of the network testing method provided by the present application. The execution subject of this embodiment is the exploration node. This embodiment includes the following steps:
[0082] S501: The exploration node obtains multiple target IPs from public network IPs;
[0083] S502: The exploration node sends exploration data including the exploration IP of the exploration node and multiple target IPs to the central node, so that the central node generates an IP link topology of the exploration IP and multiple target IPs based on the exploration data, and determines the abnormal link segments in the IP link topology based on the detection data and the IP link topology. The detection data is obtained by the detection node detecting network performance indicators of multiple target IPs.
[0084] For S501 and S502 of this embodiment, reference may be made to the related operations performed by the exploration node in the first embodiment of the network testing method, and thus they will not be described in detail herein.
[0085] like Figure 6 As shown, Figure 6 This is a flowchart of the fourth embodiment of the network testing method provided by the present application. The execution subject of this embodiment is the exploration node. This embodiment includes the following steps:
[0086] S601: The detection node obtains multiple target IPs from the central node. The target IPs are obtained by the exploration node from the public network IPs and sent to the central node.
[0087] S602: The detection node detects network performance indicators of multiple target IPs to obtain detection data.
[0088] S603: The detection node sends detection data to the central node so that the central node determines the abnormal link segment in the IP link topology based on the detection data and the IP link topology. The IP link topology is generated by the central node, and the IP link topology includes the exploration IP of the exploration node and the connection relationship between multiple target IPs.
[0089] For S601 - S603 of this embodiment, reference may be made to the related operations performed by the detection node in the first embodiment of the network testing method, and thus they will not be described in detail herein.
[0090] like Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of an embodiment of a network testing device provided by the present application. In this embodiment, the network testing device 700 includes a receiving module 701 , a generating module 702 and a determining module 707 .
[0091] The receiving module 701 is used to receive the exploration data sent by the exploration node, and the exploration data includes multiple target IPs and the exploration IP of the exploration node. The multiple target IPs are obtained by screening the exploration node from the public network IPs.
[0092] The generating module 702 is used to generate an IP link topology between the exploration IP and multiple target IPs according to the exploration data.
[0093] The receiving module 701 is also used to receive detection data sent by the detection node, where the detection data is obtained by the detection node detecting network performance indicators of multiple target IPs.
[0094] The determination module 703 is used to determine the abnormal link segment in the IP link topology according to the detection data and the IP link topology.
[0095] The network testing device 700 is specifically used to implement the steps executed by the central node in the above network testing method embodiment, so it will not be described in detail here.
[0096] like Figure 8 As shown, Figure 8 The network testing device 800 is a schematic diagram of an embodiment of the network testing device provided by the present application. The network testing device 800 may be a discovery node, a central node or a detection node.
[0097] The network testing device 800 includes a processor 801 and a memory 802 . The processor 801 is coupled to the memory 802 . The processor 801 is configured to execute the steps of exploring nodes, central nodes or detecting nodes in the above network testing method embodiment based on instructions stored in the memory 802 .
[0098] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a computer, the channel configuration method flow of any of the above method embodiments is implemented.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0100] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0102] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A network testing method, characterized in that: The method comprises: The central node receives the exploration data sent by the exploration node, wherein the exploration data includes multiple target IPs and the exploration IP of the exploration node, wherein the multiple target IPs are obtained by screening the exploration node in the public network IPs; the multiple target IPs include at least one initial IP and at least one routing IP, wherein the initial IP is an IP corresponding to the target area for which network measurement is required and selected from the IP library by the exploration node, wherein the IP library includes the public network IPs and the area information corresponding to each public network IP; the routing IP is the IP to which the route tracking message sent from the exploration IP in the public network IP jumps when it reaches the initial IP; The central node generates an IP link topology between the exploration IP and the multiple target IPs according to the exploration data; The central node receives detection data sent by the detection node, where the detection data is obtained by the detection node detecting network performance indicators of the multiple target IPs; The central node determines an abnormal link segment in the IP link topology according to the detection data and the IP link topology.
2. The method according to claim 1, characterized in that The IP link topology includes a plurality of target links, each of the target links includes the exploration IP and at least one target IP connected in series, the detection data includes first network performance data of each target IP, and the central node obtains an abnormal link segment in the IP link topology according to the detection data and the IP link topology, including: The central node determines an abnormal IP among the multiple target IPs, where the abnormal IP among the multiple target IPs is an IP whose first network performance data does not meet a first preset condition; The central node determines an abnormal link among the multiple target links according to an abnormal IP among the multiple target IPs; The central node obtains the abnormal IP in the abnormal link; The central node determines the abnormal link segment according to the abnormal IP in the abnormal link.
3. The method according to claim 1 or 2, characterized in that: The exploration data includes a plurality of exploration links, each of which includes the exploration IP and at least one target IP connected in series, and the central node generates an IP link topology of the exploration IP and the plurality of target IPs according to the exploration data, including: The central node obtains the geographical location information of each target IP; The central node generates the IP link topology according to the multiple exploration links and the geographical location information of each of the target IPs.
4. A network testing method, characterized in that: The method comprises: The exploration node selects multiple target IPs from the public network IPs; the multiple target IPs include at least one initial IP and at least one routing IP, the initial IP is an IP corresponding to a target area for which network measurement is required and selected from an IP library by the exploration node, the IP library includes public network IPs and area information corresponding to each public network IP; the routing IP is an IP in the public network IP to which a route tracking message sent from the exploration IP of the exploration node reaches the initial IP; The exploration node sends exploration data including the exploration IP of the exploration node and the multiple target IPs to the central node, so that the central node generates an IP link topology of the exploration IP and the multiple target IPs based on the exploration data, and determines the abnormal link segments in the IP link topology based on the detection data and the IP link topology, wherein the detection data is obtained by the detection node detecting the network performance indicators of the multiple target IPs.
5. The method according to claim 4, characterized in that Before the exploration node sends the exploration data to the central node, the method further includes: The exploration node obtains the second network performance data corresponding to each of the target IPs; The exploration node deletes the IPs among the multiple target IPs whose second network performance data does not meet the second preset condition.
6. A network testing method, characterized in that: The method comprises: The detection node obtains multiple target IPs from the central node, and the multiple target IPs are screened by the exploration node from the public network IP and sent to the central node; the multiple target IPs include at least one initial IP and at least one routing IP, the initial IP is an IP corresponding to the target area that needs to be measured for network selected by the exploration node from the IP library, and the IP library includes public network IPs and area information corresponding to each public network IP; the routing IP is the IP in the public network IP to which the route tracking message sent from the exploration IP of the exploration node reaches the initial IP; The detection node detects the network performance indicators of the multiple target IPs to obtain detection data; The detection node sends the detection data to the central node so that the central node determines the abnormal link segment in the IP link topology based on the detection data and the IP link topology. The IP link topology is generated by the central node, and the IP link topology includes the exploration IP of the exploration node and the connection relationship between the multiple target IPs.
7. A network testing device, characterized in that: The device comprises: A receiving module, used for receiving exploration data sent by an exploration node, wherein the exploration data includes multiple target IPs and the exploration IP of the exploration node, wherein the multiple target IPs are obtained by screening the exploration node in public network IPs; the multiple target IPs include at least one initial IP and at least one routing IP, wherein the initial IP is an IP corresponding to a target area requiring network measurement selected by the exploration node from an IP library, wherein the IP library includes public network IPs and area information corresponding to each public network IP; the routing IP is an IP in the public network IP to which a route tracking message sent from the exploration IP reaches the initial IP; A generating module, used for generating an IP link topology between the exploration IP and the plurality of target IPs according to the exploration data; The receiving module is further used to receive detection data sent by the detection node, where the detection data is obtained by the detection node detecting network performance indicators of the multiple target IPs; A determination module is used to determine an abnormal link segment in the IP link topology based on the detection data and the IP link topology.
8. A network testing device, characterized in that: The device includes a processor and a memory, wherein the processor is coupled to the memory, and the processor is configured to execute the network testing method according to any one of claims 1 to 6 based on instructions stored in the memory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when the computer-readable storage medium is executed on a computer, causes the computer to execute the network testing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for detecting quality of network link
CN102035691A
Data transmission method and device
CN106571977A
Fault link detection method and apparatus, and computer readable storage medium
CN108833202A
Distributed IP level network topology detection method based on a plurality of protocols
CN109617728A
Network quality testing method, a testing server and a testing system
CN109981386A
