A network status monitoring method, device, electronic device and storage medium
By obtaining and analyzing branch link test data and historical network usage rules of the Internet of Things network, combining the network speed interval of the current time, the network status is judged, which solves the problem of inaccurate judgment of the Internet of Things network status and improves the accuracy of monitoring Sex and stability.
Patent Information
- Application Number
- CN202211451624.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-21
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-11-21
AI Technical Summary
It is difficult for the prior art to accurately judge the status of the Internet of Things network, and the preset network speed threshold is too wide, resulting in insufficient network status judgment.
By obtaining branch link test data of the target network, determine the actual network speed and historical network usage rules, combine the network speed interval of the current time to determine whether the network state is an abnormal state, and determine the need through random functions and the number of abnormal states. Strengthen monitoring links and improve the accuracy and efficiency of network status monitoring.
It improves the accuracy and monitoring efficiency of network status, enhances network stability and processing scheme accuracy, and is suitable for different data types and link conditions.
Smart Images

Figure CN115811483B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network monitoring, and in particular to a network status monitoring method, device, electronic device and storage medium. Background Art
[0002] Network topology refers to the physical layout that uses transmission media to connect various devices to each other. Network topology includes bus network topology, star network topology, ring network topology and tree network topology. Among them, the tree network topology is often used in the Internet of Things because of its easy expansion and management. In a tree topology network, each device is linked and arranged like a tree. The tree topology network includes a core layer, a middle layer and an access layer. The top layer of the tree is the core layer. The devices in the core layer generally transmit information in a one-to-many form; the devices in the middle layer transmit in a similar way to the devices in the core layer; the bottom of the tree is the access layer, where terminal devices are connected to the network.
[0003] The Internet of Things is built on the Internet. In order to enable relevant personnel to understand the working conditions of each terminal device in the Internet of Things, the relevant technology determines the network status by detecting the network speed of each link in the network and comparing it with the preset network speed threshold. However, the preset network speed threshold is relatively broad, and it is difficult to accurately judge the actual network status. Therefore, how to improve the accuracy of network status is an urgent problem to be solved. Summary of the invention
[0004] In order to improve the accuracy of network status, the present application provides, in particular, a network status monitoring method, device, electronic device and storage medium.
[0005] In a first aspect, the present application provides a network status monitoring method, which adopts the following technical solution:
[0006] A network status monitoring method includes obtaining test data corresponding to each of a plurality of branch links of a target network, wherein the test data includes data transmitted by the branch links during a test period;
[0007] Based on the test data of any branch link, determine the actual network speed corresponding to any branch link;
[0008] Obtain a historical network usage pattern corresponding to any branch link, wherein the historical network usage pattern includes multiple network usage time periods and network speed intervals corresponding to each network usage time period;
[0009] Obtain the current time, and determine that the network speed interval corresponding to the network usage time period to which the current time belongs is the first comparison interval;
[0010] Based on the actual network speed of any branch link and the first comparison interval, it is determined whether the network status of any branch link is an abnormal status.
[0011] By adopting the above technical solution, the test data of several branch links are obtained, and the corresponding actual network speed is determined based on the test data of any branch link; the historical network usage pattern corresponding to the branch link is obtained, and the first comparison interval corresponding to the current moment is determined from it, and the network status of the branch link is determined to be abnormal based on the comparison between the actual network speed and the first comparison interval. Based on the network usage pattern, the first comparison interval is limited to the network speed interval corresponding to the network usage period of the current moment, thereby improving the accuracy of the network status.
[0012] In a possible implementation, obtaining test data corresponding to each of several branch links of the target network includes:
[0013] Based on a preset random function, determining a number of first test links from the target network;
[0014] Obtain the number of abnormal states corresponding to each branch link in the target network within the historical period;
[0015] Determine a branch link whose abnormal state times are greater than a preset threshold as a second test link;
[0016] Acquire test data corresponding to each of the first test links and the second test links.
[0017] By adopting the above technical solution, based on the preset random function, several first test links are determined; the number of abnormal states corresponding to each branch link in the target network in the historical period is obtained, and the branch link with the number of abnormal states greater than the preset threshold is determined as the second test link. A large number of abnormal states means that the network is more prone to abnormalities and needs to be monitored more closely; the first test link and the second test link are used as branch links that need to be detected, and the test data corresponding to several first test links and several second test links are obtained. The branch links that need to be detected are determined by random functions and judging the number of abnormalities, so that when the test data of the branch links obtained is small, the information obtained can better characterize the overall state of the target network, improve the monitoring efficiency, and also improve the stability of the target network.
[0018] In a possible implementation, obtaining the historical network usage pattern corresponding to any branch link includes:
[0019] Obtaining historical network usage information of any branch link within at least two monitoring cycles, wherein the historical network usage information includes a comparison curve of network speed and time;
[0020] Based on the historical network usage information of any branch link in at least two monitoring periods, a plurality of network usage time periods and a network speed range corresponding to each network usage time period are determined.
[0021] By adopting the above technical solution, the historical network usage information of any branch link in at least two monitoring periods is obtained, and based on the historical network usage information of at least two monitoring periods obtained, the network usage characteristics of the branch link are analyzed, the monitoring period is divided into multiple network usage time periods, and the network speed interval corresponding to each network usage time period is determined to obtain the historical network usage law of the branch link. The determined network usage interval is more consistent with the network usage law of the corresponding branch link, and the accuracy of each network speed interval is improved.
[0022] In one possible implementation, the method further includes:
[0023] When the network state of any branch link is an abnormal state, determining the any branch link as a target link;
[0024] Acquire the upper node of the target link and all parallel links, wherein the upper node is the upper-level network node to which the target link belongs, and the parallel links are the same as the upper node of the target link;
[0025] Acquire verification network information, the verification network information including the network status of the upper node and all the parallel links;
[0026] Based on the verified network information, a network processing solution is determined.
[0027] By adopting the above technical solution, when the network status of a branch link is abnormal, the branch link is determined to be the target link; the parent node and all parallel links of the target link are obtained, and verification network information is obtained, and the verification network information includes the network status of the parent node and the network status of all parallel links; by analyzing the network status of the parent node and the parallel links, it is determined whether the place where the problem occurs is the target link, and then the corresponding network processing solution is determined, thereby improving the accuracy of the network processing solution.
[0028] In one possible implementation, the method further includes:
[0029] When the historical network usage pattern of any branch link is obtained and does not meet the preset conditions, the data type of any branch link is determined based on the test data of any branch link, and the preset conditions include that the amount of historical network usage information is less than a preset value or the division of network usage time periods does not meet the preset requirements;
[0030] Based on the data type of any branch link, determine a corresponding second comparison interval, where the second comparison interval is a network speed interval corresponding to the data type;
[0031] Based on the actual network speed of any branch link and the second comparison interval, it is determined whether the network status of any branch link is an abnormal status.
[0032] By adopting the above technical solution, when the historical network usage pattern of the branch link is not sufficient to determine the network status of the branch link, the data type of the branch link is determined based on the test data of the branch link, and the corresponding second comparison interval is determined based on the data type; the actual network speed of the branch link is compared with the second comparison interval to determine whether the network status of the branch link is abnormal. The applicable scope of the branch link is expanded and the universality of the method is improved.
[0033] In a possible implementation, determining the corresponding second control interval based on the data type includes:
[0034] Acquire an associated node type of any branch link, wherein the associated node type includes a hardware type of each node directly connected to any branch link;
[0035] Based on the data type and the associated node type, a corresponding second comparison interval is determined.
[0036] By adopting the above technical solution, the associated node type of any branch link is obtained. The associated node type includes the hardware type of each node directly connected to the branch link. Different associated node types have different corresponding network speed thresholds. Based on the data type and the associated node type, the second comparison interval is further determined. For data of the same data type, different types of devices (nodes) are used to transmit data with different corresponding network speeds, which improves the accuracy of the second comparison interval and further improves the accuracy of the network status.
[0037] In one possible implementation, the method further includes:
[0038] When the network state of any branch link is an abnormal state, determining the abnormal type based on the actual network speed and data type of any branch link;
[0039] Based on the abnormal type of any branch link, an abnormality handling solution is determined.
[0040] By adopting the above technical solution, when the network status of a branch link is abnormal, the abnormal type of the branch link is determined based on the actual network speed and data type, and the abnormal handling solution corresponding to the branch link is determined based on the abnormal type. By analyzing the relationship between the actual network speed and the data type, the abnormal type of the branch link is determined, and the corresponding abnormal handling solution is determined for the abnormal type, thereby improving the accuracy of the abnormal handling solution.
[0041] In a second aspect, the present application provides a network status monitoring device, which adopts the following technical solution:
[0042] A network status monitoring device, comprising:
[0043] A test data acquisition module, used to acquire test data corresponding to each of several branch links of the target network, wherein the test data includes data transmitted by the branch links during a test period;
[0044] An actual network speed determination module, used to determine the actual network speed corresponding to any branch link based on the test data of any branch link;
[0045] A historical network usage pattern acquisition module is used to acquire a historical network usage pattern corresponding to any branch link, wherein the historical network usage pattern includes multiple network usage time periods and network speed intervals corresponding to each network usage time period;
[0046] A first comparison interval determination module is used to obtain the current time and determine the network speed interval corresponding to the network usage time period to which the current time belongs as the first comparison interval;
[0047] The first network status determination module is used to determine whether the network status of any branch link is an abnormal state based on the actual network speed of any branch link and the first comparison interval.
[0048] In a possible implementation, when the test data acquisition module acquires the test data corresponding to each of the plurality of branch links of the target network, it is specifically used to:
[0049] Based on a preset random function, determining a number of first test links from the target network;
[0050] Obtain the number of abnormal states corresponding to each branch link in the target network within the historical period;
[0051] Determine a branch link whose abnormal state times are greater than a preset threshold as a second test link;
[0052] Acquire test data corresponding to each of the first test links and the second test links.
[0053] In a possible implementation, when the historical network usage rule acquisition module acquires the historical network usage rule corresponding to any branch link, it is specifically used to:
[0054] Obtaining historical network usage information of any branch link within at least two monitoring cycles, wherein the historical network usage information includes a comparison curve of network speed and time;
[0055] Based on at least two pieces of historical network usage information of any branch link, multiple network usage time periods and a network speed range corresponding to each network usage time period are determined.
[0056] In one possible implementation, a network status monitoring device further includes:
[0057] A target link determination module, configured to determine any branch link as a target link when the network state of any branch link is an abnormal state;
[0058] A verification target acquisition module, used to acquire the upper node of the target link and all parallel links, wherein the upper node is the upper level network node to which the target link belongs, and the parallel link is the same as the upper node of the target link;
[0059] A verification network information acquisition module, used to acquire verification network information, wherein the verification network information includes the network status of the upper node and all the parallel links;
[0060] The network processing solution determination module is used to determine the network processing solution based on the verification network information.
[0061] In one possible implementation, a network status monitoring device further includes:
[0062] A data type determination module, for determining the data type of any branch link based on the test data of any branch link when the historical network usage pattern of any branch link does not meet the preset conditions, wherein the preset conditions include that the amount of historical network usage information is less than a preset value or the division of network usage time periods does not meet the preset requirements;
[0063] A second comparison interval determination module, configured to determine a corresponding second comparison interval based on a data type of any branch link, wherein the second comparison interval is a network speed interval corresponding to the data type;
[0064] The second network status determination module is used to determine whether the network status of any branch link is an abnormal state based on the actual network speed of any branch link and the second comparison interval.
[0065] In a possible implementation, when the second control interval determination module determines the corresponding second control interval based on the data type, it is specifically configured to:
[0066] Acquire an associated node type of any branch link, wherein the associated node type includes a hardware type of each node directly connected to any branch link;
[0067] Based on the data type and the associated node type, a corresponding second comparison interval is determined.
[0068] In one possible implementation, a network status monitoring device further includes:
[0069] An abnormality type determination module, used for determining the abnormality type based on the actual network speed and data type of any branch link when the network state of any branch link is an abnormal state;
[0070] The exception handling solution determination module is used to determine the exception handling solution based on the exception type of any branch link.
[0071] By adopting the above technical solution, the test data of several branch links are obtained, and the corresponding actual network speed is determined based on the test data of any branch link; the historical network usage pattern corresponding to the branch link is obtained, and the first comparison interval corresponding to the current moment is determined therefrom, and the network status of the branch link is determined to be abnormal based on the comparison between the actual network speed and the first comparison interval. Based on the network usage pattern, the first comparison interval is limited to the network speed interval corresponding to the network usage period to which the current moment belongs, thereby improving the accuracy of the determined network status.
[0072] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0073] An electronic device, comprising:
[0074] at least one processor;
[0075] Memory;
[0076] At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the above-mentioned network status monitoring method.
[0077] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0078] A computer-readable storage medium includes: a computer program that can be loaded by a processor and execute the above-mentioned network status monitoring method.
[0079] In summary, the present application includes at least one of the following beneficial technical effects:
[0080] 1. By adopting the above technical solution, the test data of several branch links are obtained, and the corresponding actual network speed is determined based on the test data of any branch link; the historical network usage pattern corresponding to the branch link is obtained, and the first comparison interval corresponding to the current moment is determined from it, and the network status of the branch link is determined to be abnormal based on the comparison between the actual network speed and the first comparison interval. Based on the network usage pattern, the first comparison interval is limited to the network speed interval corresponding to the network usage period of the current moment, which improves the accuracy of the determined network status.
[0081] 2. By adopting the above technical solution, based on the preset random function, several first test links are determined; the number of abnormal states corresponding to each branch link in the target network in the historical period is obtained, and the branch link with the number of abnormal states greater than the preset threshold is determined as the second test link. A large number of abnormal states means that the network is more prone to abnormalities and needs to be monitored more closely; the first test link and the second test link are used as branch links that need to be detected, and the test data corresponding to several first test links and several second test links are obtained. The branch links that need to be detected are determined by random functions and judging the number of abnormalities, so that when the test data of the branch links obtained is small, the information obtained can better characterize the overall state of the target network, improve the stability of the target network, and improve the monitoring efficiency.
[0082] 3. By adopting the above technical solution, when the network status of a branch link is abnormal, the branch link is determined to be the target link; the parent node and all parallel links of the target link are obtained, and the verification network information is obtained, and the verification network information includes the network status of the parent node and the network status of all parallel links; by analyzing the network status of the parent node and the parallel links, it is determined whether the place where the problem occurs is the target link, and then the corresponding network processing solution is determined, thereby improving the accuracy of the network processing solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] FIG1 is a flow chart of a network status monitoring method in an embodiment of the present application;
[0084] Figure 2 is a schematic diagram of a network structure in an embodiment of the present application;
[0085] FIG3 is a schematic diagram of the structure of a network status monitoring device in an embodiment of the present application;
[0086] FIG. 4 is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0087] The present application is further described in detail below in conjunction with Figures 1 to 4.
[0088] After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but such modifications are protected by patent law as long as they are within the scope of the claims of this application.
[0089] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0090] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0091] The embodiment of the present application provides a network status monitoring method, which is performed by an electronic device. Referring to FIG. 1 , the method includes steps S101 to S105, wherein:
[0092] Step S101: Acquire test data corresponding to each of several branch links of a target network, where the test data includes data transmitted by the branch links within a test period.
[0093] In an embodiment of the present application, the target network is a network that needs to be monitored, and the target network is composed of multiple branch links and nodes. Test data corresponding to each of the several branch links in the target network is obtained, wherein a preset number of branch links can be obtained, or a random number of branch links can be obtained. The number of branch links obtained is not specifically limited in the embodiment of the present application. The test data includes data transmitted by each branch link during the test period, and the test period can be 1 second, 5 seconds, or 10 seconds, etc. The length of the test period is not specifically limited in the embodiment of the present application.
[0094] Step S102: Based on the test data of any branch link, determine the actual network speed corresponding to any branch link.
[0095] In the embodiment of the present application, the actual network speed corresponding to any branch link is determined based on the test data and the corresponding test cycle. For example, if the amount of the transmitted test data is 4 megabytes and the test cycle is 2 seconds, the corresponding actual network speed is 2 megabytes / second.
[0096] Step S103: Obtain the historical network usage pattern of any branch link, where the historical network usage pattern includes multiple network usage time periods and network speed intervals corresponding to each network usage time period.
[0097] In the embodiment of the present application, the historical network usage pattern corresponding to any branch link is obtained. The historical network usage pattern includes multiple network usage time periods and the network speed intervals corresponding to each network usage time period. For example, the network usage pattern corresponding to the branch link is: 0:00-6:00: 0.5 Mbps-1 Mbps; 6:00-12:00: 1 Mbps-3 Mbps; 12:00-18:00: 1 Mbps-2 Mbps; 18:00-24:00: 2 Mbps-4 Mbps. In order to facilitate subsequent judgment, the network speed interval is consistent with the unit of the actual network speed.
[0098] Furthermore, the test cycle for network status monitoring of branch links is the same, for example, 8:00-18:00 every day. Based on the information of the branch link in each test cycle, the historical network usage rules corresponding to the branch link are obtained, wherein the division of each network usage time period under each test cycle is also the same. For example, the duration of the network usage time period under each test cycle of branch link A is 2 hours, namely 8:00-10:00, 10:00-12:00, 12:00-14:00, 14:00-16:00, and 16:00-18:00. However, the division rules of the network usage time periods corresponding to different branch links may be different, and the length of each network usage time period may also be different, which is determined according to the actual network usage of each branch link, and is not specifically limited in the embodiments of the present application.
[0099] Step S104: Acquire the current time, and determine that the network speed interval corresponding to the network usage time period to which the current time belongs is the first comparison interval.
[0100] In the embodiment of the present application, the current time is obtained, the network usage time period to which the current time belongs is determined, and there is a corresponding relationship between the network usage time period and the network speed interval, and then the corresponding network speed interval is determined to be the first comparison interval. For example, the current time is 8:30, and the network usage pattern corresponding to the branch link is: 7:00-13:00, 1 Mbps-3 Mbps; 13:00-19:00: 1 Mbps-2 Mbps; 19:00-1:00 the next day: 2 Mbps-4 Mbps; 1:00-7:00: 0.5 Mbps-1 Mbps. The current usage time period is 7:00-13:00, and its first comparison interval is determined to be 1 Mbps-3 Mbps.
[0101] Step S105: Based on the actual network speed of any branch link and the first comparison interval, determine whether the network status of any branch link is abnormal.
[0102] In the embodiment of the present application, based on the actual network speed corresponding to the branch link and the first reference interval, it is determined whether the actual network speed is within the first reference interval. If the actual network speed is not within the first reference interval, the network state of the branch link is determined to be abnormal; if the actual network speed is within the first reference interval, the network state of the branch link is determined not to be abnormal. For example, if the actual network speed of branch link A is 1 megabit / second and the first reference interval is 2 megabits / second to 4 megabits / second, the network state of branch link A is determined to be abnormal.
[0103] Further, obtaining test data corresponding to each of several branch links of the target network includes steps S1011 (not shown in the figure) to S1014 (not shown in the figure), wherein:
[0104] Step S1011: Determine a number of first test links from a target network based on a preset random function.
[0105] Specifically, the first test link is randomly determined based on a preset random function, wherein the type of the preset random function is not specifically limited in the embodiment of the present application, and it is only necessary to easily determine the first test link interface. A unique corresponding number can be set for each link in the target network, and a number of numbers can be determined from all the numbers based on a preset random function, and then the corresponding first test link can be determined by the number. The links in the target network can also be classified, and then randomly obtained from each category, and finally the links obtained from each category are summarized as the first test link. In the embodiment of the present application, the topological network is used as an example to illustrate the scheme, but this is not a limitation of the scheme of the present application. For example, in a tree topology structure, the link between the core layer and the middle layer is a class, and the link between the middle layer and the access layer is a class. Then, for each category, the corresponding link is obtained based on a preset random function, and the links obtained in all categories are summarized to determine a number of first test links. The number of the first test link is determined based on a preset random function, and can be one or more, which is not specifically limited in the embodiment of the present application.
[0106] Step S1012: Obtain the number of abnormal states corresponding to each branch link in the target network within a historical period.
[0107] Specifically, based on the historical data of network status monitoring of the target network, the network status information corresponding to each branch link in the historical period is obtained, and the network status information includes the time when each branch link is monitored and the network status corresponding to each monitored time. It is further determined that the network status of each branch link is abnormal, and the number of abnormal states of each branch link is calculated to determine the number of abnormal states corresponding to each branch link. The historical period can be 1 month or 2 months. The length of the historical period is not specifically limited in the embodiments of the present application.
[0108] Step S1013: Determine a branch link whose number of abnormal states is greater than a preset threshold as a second test link.
[0109] Specifically, when the number of abnormal states of a branch link is greater than a preset threshold, it is considered that the branch link is more likely to be abnormal, and it is necessary to detect the branch link to determine the branch link with the number of abnormal states greater than the preset threshold as the second test link.
[0110] Step S1014: Acquire test data corresponding to each of the first test links and the second test links.
[0111] Specifically, based on the first test link and the second test link, the branch link to be tested is determined, and the test data corresponding to each of the several branch links is obtained. The test data can be detected by a probe device pre-set on the branch link, or detected by a terminal device corresponding to the branch link. The method of obtaining the test data is not specifically limited in the embodiments of the present application.
[0112] Further, obtaining the historical network usage rules corresponding to any branch link respectively includes step S1031 (not shown in the figure) to step S1032 (not shown in the figure), wherein:
[0113] Step S1031: Obtain historical network usage information of any branch link within at least two monitoring cycles, where the historical network usage information includes a comparison curve of network speed and time.
[0114] Specifically, the monitoring period is related to the usage pattern of the target network. For the same branch link, the historical network usage information in each monitoring period has similar trends. The monitoring period can be one day or a preset time period. The length of the monitoring period is not specifically limited in the embodiments of the present application, and it only needs to correspond to the usage pattern of the target network. The historical network usage information includes a network speed and time comparison curve within the monitoring period. The historical network usage information is determined based on the historical data of the network status monitoring of the branch link.
[0115] Step S1032: Based on at least two historical network usage information of any branch link, determine multiple network usage time periods and a network speed range corresponding to each network usage time period.
[0116] Specifically, based on at least two historical network usage information of any branch link, each historical network usage information is segmented to determine multiple network usage time periods. The network speeds within the same network usage time period are similar, and based on the network speed in the same network usage time period in each historical network usage information, the network speed range corresponding to each network usage time period is determined.
[0117] Furthermore, when it is determined that the network state of a branch link is abnormal, a network state monitoring method further includes steps S201 (not shown in the figure) to S204 (not shown in the figure), wherein:
[0118] Step S201: when the network status of any branch link is abnormal, determine any branch link as a target link;
[0119] Step S202: Acquire the upper node of the target link and all parallel links, where the upper node is the upper-level network node to which the target link belongs, and the parallel link is the same as the upper node of the target link.
[0120] In an embodiment of the present application, when the network status of a branch link is an abnormal state, the branch link is determined to be a target link. The parent node of the target link and all parallel links are obtained, wherein the parent node is the upper-level network node to which the target network belongs, and the parallel link is the same as the upper-level network node of the target link. In the embodiment of the present application, a topological network is used as an example to illustrate the scheme, but this is not a limitation of the scheme of the present application. The parent node of the target link and all parallel links can be obtained according to the pre-stored topological structure diagram of the target network. In the embodiment of the present application, a topological network is used as an example to illustrate the scheme, but this is not a limitation of the scheme of the present application. For example, referring to Figure 2, the target network is a tree-type topology structure, including three layers A, B, and C, wherein the network status of the target link B2C3 is an abnormal state, and its corresponding parent node is B2, and the corresponding parallel links are B2C2 and B2C4.
[0121] Step S203: Acquire verification network information, where the verification network information includes the network status of the upper node and all parallel links.
[0122] In an embodiment of the present application, the verification network information includes the network status of the upper node and the network status of each parallel link. The network data of the upper node is obtained through the device corresponding to the upper node, the network data of the upper node is analyzed, and the network status of the upper node is determined. The network data of the parallel link is obtained through the probe device on the parallel link or the lower node of the parallel link, the network data of the parallel link is analyzed, and the network data of the parallel link is determined. The lower node of the parallel link is a node in the parallel link that receives the transmission data.
[0123] Furthermore, a preset network status acquisition data packet can be sent to the superior node and the parallel link to obtain the return information of the superior node and the parallel link, and then the network status corresponding to the superior node and each parallel link can be determined based on the return information. The network status acquisition data packet includes a network speed acquisition unit, a network speed judgment unit, and a network status greater than. The method of obtaining and verifying network information is not specifically limited in the embodiments of the present application.
[0124] Step S204: Determine a network processing solution based on the verified network information.
[0125] In the embodiment of the present application, based on the verification network information, it is determined whether an abnormality occurs at the target link, and the corresponding network processing scheme is further determined. In the embodiment of the present application, the topological network is used as an example to illustrate the scheme, but this is not a limitation of the scheme of the present application. For example, with reference to Figure 2, the target network is a tree topology structure, including three layers A, B, and C, wherein the network state of the target link B2C3 is an abnormal state, the upper node is B2, and the parallel links are B2C2 and B2C4. When the network state of the upper node B2 is an abnormal state, and the network states of the parallel links B2C2 and B2C4 are also abnormal states, it is determined that the upper node B2 or the links or nodes above it may be abnormal, and the corresponding network processing scheme is determined. When the network state of the upper node B2 is not an abnormal state, and the network states of the parallel links B2C2 and B2C4 are not abnormal states, it is determined that the target link B2C3 or the lower node C3 may be abnormal, and then combined with the way to obtain test data, the corresponding network processing scheme is determined.
[0126] Furthermore, when the historical network usage pattern of the branch link is obtained but the network status of the branch link cannot be further determined, the method further includes steps S111 (not shown in the figure) to S113 (not shown in the figure), wherein:
[0127] Step S111: When the historical network usage pattern of any branch link does not meet the preset conditions, the data type of any branch link is determined based on the test data of any branch link. The preset conditions include that the amount of historical network usage information is less than the preset value or the division of network usage time periods does not meet the preset requirements.
[0128] In an embodiment of the present application, when the historical network usage pattern does not meet the preset conditions, the data type is determined based on the test data of the branch link. The preset conditions include, but are not limited to, the amount of historical network usage information of the branch link is less than the preset value, and the division of the network usage time period does not meet the preset requirements. For example, branch link A is a link newly added to the target network, and its corresponding historical data is empty, while the historical network usage information requires data from at least two monitoring cycles, that is, the historical network usage pattern of branch link A does not meet the preset conditions. The test cycle of branch link B is 0 hours to 24 hours, and the network usage time periods are: 0 hours to 7 hours, 10 hours to 17 hours, and 17 hours to 24 hours, respectively. The part from 7 hours to 10 hours is missing in the network usage time period, that is, the historical network usage pattern of branch link B does not meet the preset conditions.
[0129] Furthermore, the test data of the branch link includes data transmitted by the branch link during the test period. The data is parsed based on the transmitted data to determine the data type corresponding to the branch link. The data type includes but is not limited to text, pictures, audio, and video.
[0130] Step S112: Based on the data type of any branch link, determine the corresponding second comparison interval, where the second comparison interval is the network speed interval corresponding to the data type.
[0131] In an embodiment of the present application, there is a difference in the network speed intervals corresponding to the transmission of different types of data. Based on the data type of the branch link, the network speed interval corresponding to the transmission of data of the data type is determined as the second comparison interval. The corresponding second comparison interval can be determined based on a comparison relationship table between data types and network speed intervals. For example, the comparison relationship table between data types and network speed intervals is: text data: 0.5 megabits / second to 1 megabits / second, picture data: 1 megabits / second to 2 megabits / second, audio data: 1 megabits / second to 2 megabits / second, and video data: 2 megabits / second to 3 megabits / second. If the data type of the branch link is audio data, then its corresponding second comparison interval is 1 megabits / second to 2 megabits / second.
[0132] Step S113: Determine whether any branch link is in an abnormal state based on the actual network speed of any branch link and the second comparison interval.
[0133] In an embodiment of the present application, based on the actual network speed corresponding to the branch link and the second reference interval, it is determined whether the actual network speed is within the second reference interval. If the actual network speed is not within the second reference interval, it is determined that the network status of the branch link is an abnormal state; if the actual network speed is within the second reference interval, it is determined that the network status of the branch link is not an abnormal state.
[0134] Further, based on the data type, determining the corresponding second control interval includes step S1121 (not shown in the figure) to step S1122 (not shown in the figure), wherein:
[0135] Step S1121: Obtain the associated node type of any branch link, where the associated node type includes the hardware type of each node directly connected to any branch link.
[0136] Specifically, the associated node type includes the hardware type of the node directly connected to the branch link. The hardware includes but is not limited to CPU, network card, memory, motherboard, hard disk, etc. The hardware type is the configuration of the corresponding hardware. Different hardware types have corresponding network speed thresholds.
[0137] Step S1122: Determine a corresponding second comparison interval based on the data type and the associated node type.
[0138] Specifically, the corresponding network speed interval is determined based on the data type of the branch link. There is a corresponding relationship between the network speed interval and the data type. Combined with the associated node type, the network speed interval is further limited to determine the second comparison interval of the branch link. The associated node type is the hardware type of the node directly connected to the branch link, and different hardware types correspond to corresponding network speed thresholds. For example, the data type of branch link X is video data, and its corresponding network speed interval is 2 megabits per second to 3 megabits per second. Branch link X corresponds to node A and node B. The network card of node A is a single-frequency wireless network card P1, and the network speed threshold corresponding to the single-frequency wireless network card P1 is 2.5 megabits per second; the network card of node B is a single-frequency wireless network card P2, and the network speed threshold corresponding to the single-frequency wireless network card P2 is 3.7 megabits per second. Then the second comparison interval corresponding to branch link X is 2 megabits per second to 2.5 megabits per second.
[0139] Furthermore, when the data traffic (network speed) on the branch link approaches the hardware upper limit, the corresponding data traffic (network speed) decreases, and the actual network speed range should be lower than the network speed threshold.
[0140] Furthermore, a network status monitoring method further includes step S121 (not shown in the figure) to step S122 (not shown in the figure), wherein:
[0141] Step S121: When the network status of any branch link is abnormal, the corresponding abnormal type is determined based on the actual network speed and data type of any branch link.
[0142] Specifically, based on the actual network speed and data type of the branch link, the reasons why the data of this data type uses the actual network speed to transmit data are analyzed, and then the abnormal type of the branch link is determined. Abnormal types include but are not limited to network delay, network packet loss, network throttling, network retransmission, etc. Among them, network delay: when the network information flow is too large, it may cause data transmission delay; network packet loss: during the data transmission process, the data packet is lost in the link due to various reasons; network throttling: when the data transmission volume reaches the upper limit of the network bandwidth, the data packet may be intercepted and sent later; network retransmission: when the network is unstable, it may cause the upper node to determine that the data packet is lost, resulting in the retransmission of some data packets.
[0143] For example, the network status of branch link X is abnormal, and its data type is text type, then the second comparison interval is 0.5 Mbps-1 Mbps, and the actual network speed is 5 Mbps, which far exceeds the upper limit of the second comparison interval. Based on the above analysis, it is determined that the network of branch link X is retransmitted.
[0144] Step S122: Determine an exception handling solution based on the exception type of any branch link.
[0145] Specifically, based on the abnormal type of the branch link, an abnormality handling scheme corresponding to the abnormal type is determined, and the content of the abnormality handling scheme includes specific scheme steps that need to be implemented for the abnormal type. For example, when the abnormal type of branch link X is network packet loss, the corresponding abnormality handling scheme is to send a packet loss retransmission data packet to the upper node of branch link X, so that the lower node of branch link X can obtain the lost data.
[0146] The above embodiment introduces a method for monitoring network status from the perspective of method flow, and the following embodiment introduces a device for monitoring network status from the perspective of a virtual module or a virtual unit. Please refer to the following embodiment for details.
[0147] The embodiment of the present application provides a network status monitoring device. As shown in FIG. 3 , the network status monitoring device may specifically include a test data acquisition module 301, an actual network speed determination module 302, a historical network usage rule acquisition module 303, a first comparison interval determination module 304, and a first network status determination module 305, wherein:
[0148] The test data acquisition module 301 is used to acquire test data corresponding to each of several branch links of the target network, where the test data includes data transmitted by the branch links during a test period;
[0149] The actual network speed determination module 302 is used to determine the actual network speed corresponding to any branch link based on the test data of any branch link;
[0150] A historical network usage pattern acquisition module 303 is used to acquire a historical network usage pattern corresponding to any branch link, wherein the historical network usage pattern includes multiple network usage time periods and network speed intervals corresponding to each network usage time period;
[0151] The first comparison interval determination module 304 is used to obtain the current time and determine the network speed interval corresponding to the network usage time period to which the current time belongs as the first comparison interval;
[0152] The first network status determination module 305 is used to determine whether the network status of any branch link is abnormal based on the actual network speed of any branch link and the first comparison interval.
[0153] In a possible implementation, when the test data acquisition module 301 acquires the test data corresponding to each of the plurality of branch links of the target network, it is specifically used to:
[0154] Based on a preset random function, determining a number of first test links from the target network;
[0155] Obtain the number of abnormal states corresponding to each branch link in the target network within the historical period;
[0156] Determine a branch link whose abnormal state times are greater than a preset threshold as a second test link;
[0157] The test data corresponding to each of the first test links and the second test links is obtained.
[0158] In a possible implementation, when the historical network usage rule acquisition module 303 acquires the historical network usage rule corresponding to any branch link, it is specifically used to:
[0159] Obtaining historical network usage information of any branch link within at least two monitoring cycles, the historical network usage information including a comparison curve of network speed and time;
[0160] Based on at least two historical network usage information of any branch link, multiple network usage time periods and a network speed range corresponding to each network usage time period are determined.
[0161] In one possible implementation, a network status monitoring device further includes:
[0162] A target link determination module, used to determine any branch link as a target link when the network state of any branch link is abnormal;
[0163] A verification target acquisition module is used to acquire the upper node of the target link and all parallel links, where the upper node is the upper level network node to which the target link belongs, and the parallel link is the same as the upper node of the target link;
[0164] A verification network information acquisition module is used to acquire verification network information, which includes the network status of the upper node and all parallel links;
[0165] The network processing solution determination module is used to determine the network processing solution based on the verified network information.
[0166] In one possible implementation, a network status monitoring device further includes:
[0167] A data type determination module is used to determine the data type of any branch link based on the test data of any branch link when the historical network usage pattern of any branch link does not meet the preset conditions. The preset conditions include that the amount of historical network usage information is less than a preset value or the division of network usage time periods does not meet the preset requirements;
[0168] A second comparison interval determination module, used to determine a corresponding second comparison interval based on the data type of any branch link, where the second comparison interval is a network speed interval corresponding to the data type;
[0169] The second network status determination module is used to determine whether the network status of any branch link is an abnormal state based on the actual network speed of any branch link and the second comparison interval.
[0170] In a possible implementation, when the second control interval determination module determines the corresponding second control interval based on the data type, it is specifically configured to:
[0171] Obtaining an associated node type of any branch link, the associated node type including a hardware type of each node directly connected to any branch link;
[0172] Based on the data type and the associated node type, a corresponding second comparison interval is determined.
[0173] In one possible implementation, a network status monitoring device further includes:
[0174] An abnormality type determination module, used to determine the abnormality type based on the actual network speed and data type of any branch link when the network state of any branch link is abnormal;
[0175] The exception handling solution determination module is used to determine the exception handling solution based on the exception type of any branch link.
[0176] An electronic device is provided in an embodiment of the present application, as shown in FIG. 4, and the electronic device 400 shown in FIG. 4 includes: a processor 401 and a memory 403. The processor 401 and the memory 403 are connected, such as through a bus 402. Optionally, the electronic device 400 may also include a transceiver 404. It should be noted that in actual applications, the transceiver 404 is not limited to one, and the structure of the electronic device 400 does not constitute a limitation on the embodiment of the present application.
[0177] Processor 401 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 401 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0178] The bus 402 may include a path for transmitting information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 402 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in FIG4, but it does not mean that there is only one bus or one type of bus.
[0179] The memory 403 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0180] The memory 403 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 401. The processor 401 is used to execute the application code stored in the memory 403 to implement the contents shown in the above method embodiment.
[0181] The electronic device includes, but is not limited to, mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, and the like. It can also be a server, etc. The electronic device shown in FIG4 is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0182] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0183] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0184] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A network status monitoring method, characterized in that: include: Acquire test data corresponding to each of a plurality of branch links of the target network, wherein the test data includes data transmitted by the branch links during a test period; Based on the test data of any branch link, determine the actual network speed corresponding to any branch link; Obtain a historical network usage pattern corresponding to any branch link, wherein the historical network usage pattern includes multiple network usage time periods and network speed intervals corresponding to each network usage time period; Obtain the current time, and determine that the network speed interval corresponding to the network usage time period to which the current time belongs is the first comparison interval; Based on the actual network speed of any branch link and the first comparison interval, determining whether the network status of any branch link is an abnormal state; When the historical network usage pattern of any branch link is obtained and does not meet the preset conditions, the data type of any branch link is determined based on the test data of any branch link, and the preset conditions include that the amount of historical network usage information is less than a preset value or the division of network usage time periods does not meet the preset requirements; Based on the data type of any branch link, determine a corresponding second comparison interval, where the second comparison interval is a network speed interval corresponding to the data type; Based on the actual network speed of any branch link and the second comparison interval, it is determined whether the network status of any branch link is an abnormal status.
2. A network status monitoring method according to claim 1, characterized in that: The obtaining of test data corresponding to each of the plurality of branch links of the target network includes: Based on a preset random function, determining a number of first test links from the target network; Obtain the number of abnormal states corresponding to each branch link in the target network within the historical period; Determine a branch link whose abnormal state times are greater than a preset threshold as a second test link; Acquire test data corresponding to each of the first test links and the second test links.
3. A network status monitoring method according to claim 1, characterized in that: The obtaining of the historical network usage rule corresponding to any branch link includes: Obtaining historical network usage information of any branch link within at least two monitoring cycles, wherein the historical network usage information includes a comparison curve of network speed and time; Based on the historical network usage information of any branch link in at least two monitoring periods, a plurality of network usage time periods and a network speed range corresponding to each network usage time period are determined.
4. A network status monitoring method according to claim 1, characterized in that: Also includes: When the network state of any branch link is an abnormal state, determining the any branch link as a target link; Acquire the upper node of the target link and all parallel links, wherein the upper node is the upper-level network node to which the target link belongs, and the parallel links are the same as the upper node of the target link; Acquire verification network information, the verification network information including the network status of the upper node and all the parallel links; Based on the verified network information, a network processing solution is determined.
5. A network status monitoring method according to claim 1, characterized in that: The determining, based on the data type, a corresponding second comparison interval includes: Acquire an associated node type of any branch link, wherein the associated node type includes a hardware type of each node directly connected to any branch link; Based on the data type and the associated node type, a corresponding second comparison interval is determined.
6. A network status monitoring method according to claim 5, characterized in that: Also includes: When the network state of any branch link is an abnormal state, determining a corresponding abnormal type based on an actual network speed and a data type of any branch link; Based on the abnormal type of any branch link, an abnormality handling solution is determined.
7. A network status monitoring device, characterized in that: include: A test data acquisition module, used to acquire test data corresponding to each of several branch links of the target network, wherein the test data includes data transmitted by the branch links during a test period; An actual network speed determination module, used to determine the actual network speed corresponding to any branch link based on the test data of any branch link; A historical network usage pattern acquisition module is used to acquire a historical network usage pattern corresponding to any branch link, wherein the historical network usage pattern includes multiple network usage time periods and network speed intervals corresponding to each network usage time period; A first comparison interval determination module is used to obtain the current time and determine the network speed interval corresponding to the network usage time period to which the current time belongs as the first comparison interval; A first network status determination module, configured to determine whether the network status of any branch link is an abnormal status based on the actual network speed of any branch link and a first comparison interval; A data type determination module, for determining the data type of any branch link based on the test data of any branch link when the historical network usage pattern of any branch link does not meet the preset conditions, wherein the preset conditions include that the amount of historical network usage information is less than a preset value or the division of network usage time periods does not meet the preset requirements; A second comparison interval determination module, configured to determine a corresponding second comparison interval based on a data type of any branch link, wherein the second comparison interval is a network speed interval corresponding to the data type; The second network status determination module is used to determine whether the network status of any branch link is an abnormal state based on the actual network speed of any branch link and the second comparison interval.
8. An electronic device, characterized in that: The electronic device includes: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the network status monitoring method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: include: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 6.
