CN115811483A - Network state monitoring method and device, electronic equipment and storage medium - Google Patents

Network state monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115811483A
CN115811483A CN202211451624.6A CN202211451624A CN115811483A CN 115811483 A CN115811483 A CN 115811483A CN 202211451624 A CN202211451624 A CN 202211451624A CN 115811483 A CN115811483 A CN 115811483A
Authority
CN
China
Prior art keywords
network
link
branch
branch link
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211451624.6A
Other languages
Chinese (zh)
Inventor
吴海超
彭玉琴
高剑平
林书航
招权富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Onv Technology Co ltd
Original Assignee
Shenzhen Onv Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onv Technology Co ltd filed Critical Shenzhen Onv Technology Co ltd
Priority to CN202211451624.6A priority Critical patent/CN115811483A/en
Publication of CN115811483A publication Critical patent/CN115811483A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The application relates to the field of network monitoring, in particular to a network state monitoring method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of obtaining test data corresponding to a plurality of branch links of a target network; determining the actual network speed of any branch link based on the test data of any branch link; acquiring a historical network utilization rule of any branch link, wherein the historical network utilization rule comprises a plurality of network utilization time intervals and network speed intervals corresponding to each network utilization time interval; acquiring the current time, and determining a network speed interval corresponding to a network utilization time interval to which the current time belongs as a first comparison interval; and comparing the actual network speed of any branch link with the first control interval to determine whether the network state of the branch link is an abnormal state. The method and the device improve the accuracy of the network state.

Description

Network state monitoring method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of network monitoring, and in particular, to a network status monitoring method and apparatus, an electronic device, and a storage medium.
Background
The network topology structure refers to a physical layout for connecting devices to each other by using a transmission medium, and the network topology structure includes a bus network topology structure, a star network topology structure, a ring network topology structure, a tree network topology structure, and the like. The tree-type network topology structure is often applied to the internet of things due to the characteristics of easy expansion, convenient management and the like. The devices are linked and arranged like a tree in a tree topology network including a core layer, a middle layer, and an access layer. The top layer of the tree is a core layer, and the devices of the core layer generally transmit information in a one-to-many mode; each device in the middle layer has a similar transmission mode with the device in the core layer; the lowest part of the tree is the access level, where the terminal devices are connected into the network.
The internet of things is established on the basis of the internet, and in order to enable relevant personnel to know the working condition of each terminal device in the internet of things, the network speed of each link in the network is detected and compared with a preset network speed threshold value to determine the network state in the relevant technology. However, the preset network speed threshold is wide, and it is difficult to accurately determine the actual network state. Therefore, how to improve the accuracy of the network state is an urgent problem to be solved.
Disclosure of Invention
In order to improve the accuracy of the network state, the present application provides, inter alia, a method, an apparatus, an electronic device, and a storage medium for monitoring the network state.
In a first aspect, the present application provides a network status monitoring method, which adopts the following technical scheme:
a network state monitoring method comprises the steps of obtaining test data corresponding to a plurality of branch links of a target network, wherein the test data comprises data transmitted by the branch links in a test period;
determining the actual network speed corresponding to any branch link based on the test data of the branch link;
obtaining a historical network using rule corresponding to any branch link, wherein the historical network using rule comprises a plurality of network using time intervals and network speed intervals corresponding to the network using time intervals;
acquiring the current time, and determining a network speed interval corresponding to a network utilization time interval to which the current time belongs as a first comparison interval;
and determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and the first control interval.
By adopting the technical scheme, the test data of a plurality of branch links are obtained, and the corresponding actual network speed is determined based on the test data of any branch link; and acquiring a historical network rule corresponding to the branch link, determining a first control interval corresponding to the current moment from the historical network rule, and comparing the actual network speed with the first control interval to determine whether the network state of the branch link is an abnormal state. Based on the use rule of the network, the first control interval is limited in the network speed interval corresponding to the network use time interval to which the current time belongs, and the accuracy of the network state is improved.
In a possible implementation manner, obtaining test data corresponding to each of a plurality of branch links of a target network includes:
determining a plurality of first test links from a target network based on a preset random function;
acquiring abnormal state times corresponding to each branch link in a target network in a historical period;
determining the branch link with the abnormal state times larger than a preset threshold value as a second test link;
and acquiring test data corresponding to the first test links and the second test links.
By adopting the technical scheme, a plurality of first test links are determined based on a preset random function; acquiring abnormal state times corresponding to each branch link in a target network in a historical period, and determining the branch link of which the abnormal state times are greater than a preset threshold value as a second test link, wherein the abnormal state times indicate that the network is easy to be abnormal and need to be monitored intensively; the first test link and the second test link are used as branch links to be detected, and test data corresponding to the first test links and the second test links are obtained. The branch link to be detected is determined by a random function and an abnormal frequency judgment mode, so that the overall state of the target network can be better represented by the acquired information under the condition that the acquired test data of the branch link is less, the monitoring efficiency is improved, and the stability of the target network is also improved.
In a possible implementation manner, obtaining a historical grid rule corresponding to any branch link includes:
obtaining historical network information of any branch link in at least two monitoring periods, wherein the historical network information comprises a comparison curve of network speed and time;
and determining a plurality of network utilization periods and a network speed interval corresponding to each network utilization period based on the historical network utilization information in at least two monitoring periods of any branch link.
By adopting the technical scheme, the historical network utilization information of any branch link in at least two monitoring periods is obtained, the network utilization characteristics of the branch link are analyzed based on the obtained historical network utilization information of the at least two monitoring periods, the monitoring period is divided into a plurality of network utilization time intervals, the network speed interval corresponding to each network utilization time interval is determined, and the historical network utilization rule of the branch link is obtained. The determined network utilization interval is more in accordance with the network utilization rule of the corresponding branch link, and the accuracy of each network speed interval is improved.
In one possible implementation, the method further includes:
when the network state of any branch link is an abnormal state, determining that the branch link is a target link;
acquiring a superior node and all parallel links of the target link, wherein the superior node is a superior network node to which the target link belongs, and the parallel links are the same as the superior node of the target link;
acquiring verification network information, wherein the verification network information comprises the network states of the superior node and all the parallel links;
determining a network processing scheme based on the verified network information.
By adopting the technical scheme, when the network state of the branch link is an abnormal state, the branch link is determined to be a target link; acquiring a superior node and all parallel links of a target link, and acquiring verification network information, wherein the verification network information comprises the network state of the superior node and the network states of all parallel links; by analyzing the network states of the superior node and the parallel link, whether the place with the problem is the target link or not is judged, and then the corresponding network processing scheme is determined, so that the accuracy of the network processing scheme is improved.
In one possible implementation, the method further includes:
when the acquired historical network utilization rule of any branch link does not meet a preset condition, determining the data type of any branch link based on the test data of any branch link, wherein the preset condition comprises that the quantity of the historical network utilization information is less than a preset value or the division of the network utilization time period does not meet a preset requirement;
determining a corresponding second control interval based on the data type of any branch link, wherein the second control interval is a network speed interval corresponding to the data type;
and determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and a second control interval.
By adopting the technical scheme, when the acquired historical network rule of the branch link is not enough to determine the network state 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 control interval is determined based on the data type; and comparing the actual network speed of the branch link with the second control interval to determine whether the network state of the branch link is an abnormal state. The application range of the branch link is expanded, and the universality of the method is improved.
In one possible implementation manner, determining, based on the data type, a corresponding second control interval includes:
acquiring an associated node type of any branch link, wherein the associated node type comprises a hardware type of each node directly connected with the any branch link;
and determining a corresponding second control interval based on the data type and the associated node type.
By adopting the technical scheme, the associated node type of any branch link is obtained, the associated node type comprises the hardware type of each node directly connected with the branch link, the associated node types are different, and the corresponding network speed thresholds are different; a second control interval is further determined based on the data type and the associated node type. For the data of the same data type, different types of equipment (nodes) are used for transmitting the data with different corresponding network speeds, so that the accuracy of the second control interval is improved, and the accuracy of the network state is further improved.
In one possible implementation, the method further includes:
when the network state of any branch link is an abnormal state, determining an abnormal type based on the actual network speed and the data type of any branch link;
and determining an exception handling scheme based on the exception type of any branch link.
By adopting the technical scheme, when the network state of the branch link is an abnormal state, the abnormal type of the branch link is determined based on the actual network speed and the data type, and the abnormal processing scheme corresponding to the branch link is determined based on the abnormal type. The method and the device determine the exception type of the branch link by analyzing the relation between the actual network speed and the data type, and determine a corresponding exception handling scheme aiming at the exception type, thereby improving the accuracy of the exception handling scheme.
In a second aspect, the present application provides a network status monitoring apparatus, which adopts the following technical solution:
a network condition monitoring device comprising:
the test data acquisition module is used for acquiring test data corresponding to a plurality of branch links of a target network, wherein the test data comprises data transmitted by the branch links in a test period;
the actual network speed determining module is used for determining the actual network speed corresponding to any branch link based on the test data of the branch link;
the historical network regulation obtaining module is used for obtaining the historical network regulation corresponding to any branch link, and the historical network regulation comprises a plurality of network utilization time intervals and network speed intervals corresponding to the network utilization time intervals;
the first comparison interval determination module is used for acquiring the current moment and determining a network speed interval corresponding to the network utilization time interval to which the current moment belongs as a first comparison interval;
and the first network state determining module is used for determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and the first control interval.
In a possible implementation manner, when the test data obtaining module obtains test data corresponding to each of a plurality of branch links of the target network, the test data obtaining module is specifically configured to:
determining a plurality of first test links from a target network based on a preset random function;
acquiring abnormal state times corresponding to each branch link in a target network in a historical period;
determining the branch link with the abnormal state times larger than a preset threshold value as a second test link;
and acquiring test data corresponding to the first test links and the second test links.
In a possible implementation manner, when the historical grid regulation obtaining module obtains the historical grid regulation corresponding to any branch link, the historical grid regulation obtaining module is specifically configured to:
obtaining historical network information of any branch link in at least two monitoring periods, wherein the historical network information comprises a comparison curve of network speed and time;
and determining a plurality of network utilization periods and a network speed interval corresponding to each network utilization period based on at least two historical network utilization information of any branch link.
In one possible implementation manner, a network condition monitoring apparatus further includes:
the target link determining module is used for determining any branch link as a target link when the network state of the branch link is an abnormal state;
a verification target obtaining module, configured to obtain a superior node of the target link and all parallel links, where the superior node is a superior network node to which the target link belongs, and the parallel links are the same as the superior node of the target link;
the verification network information acquisition module is used for acquiring verification network information, and the verification network information comprises the network states of the superior node and all the parallel links;
and the network processing scheme determining module is used for determining a network processing scheme based on the verification network information.
In one possible implementation manner, a network condition monitoring apparatus further includes:
the data type determining module is used for determining the data type of any branch link based on the test data of any branch link when the obtained historical network utilization rule of any branch link does not meet the preset condition, wherein the preset condition comprises that the quantity of the historical network utilization information is less than the preset value or the division of the network utilization time period does not meet the preset requirement;
a second comparison interval determining module, configured to determine a corresponding second comparison interval based on a data type of the any branch link, where the second comparison interval is a network speed interval corresponding to the data type;
and the second network state determining module is used for determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and the second control interval.
In a possible implementation manner, when the second control interval determining module determines the corresponding second control interval based on the data type, the second control interval determining module is specifically configured to:
acquiring an associated node type of any branch link, wherein the associated node type comprises a hardware type of each node directly connected with the any branch link;
and determining a corresponding second control interval based on the data type and the associated node type.
In one possible implementation manner, a network status monitoring apparatus further includes:
the abnormal type determining module is used for determining an abnormal type based on the actual network speed and the data type of any branch link when the network state of any branch link is an abnormal state;
and the exception handling scheme determining module is used for determining an exception handling scheme based on the exception type of any branch link.
By adopting the technical scheme, the test data of a plurality of branch links are obtained, and the corresponding actual network speed is determined based on the test data of any branch link; and acquiring a historical network rule corresponding to the branch link, determining a first control interval corresponding to the current moment from the historical network rule, and comparing the actual network speed with the first control interval to determine whether the network state of the branch link is an abnormal state. Based on the use rule of the network, the first comparison interval is limited in the network speed interval corresponding to the network use time period to which the current time belongs, and the accuracy of the determined network state is improved.
In a third aspect, the present application provides an electronic device, which adopts the following technical solutions:
an electronic device, comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, the at least one application configured to: the network state monitoring method is executed.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, comprising: a computer program is stored which can be loaded by a processor and which performs the above-described network condition monitoring method.
In summary, the present application includes at least one of the following beneficial technical effects:
1. by adopting the technical scheme, the test data of a plurality of branch links are obtained, and the corresponding actual network speed is determined based on the test data of any branch link; and acquiring a historical network rule corresponding to the branch link, determining a first control interval corresponding to the current moment from the historical network rule, and comparing the actual network speed with the first control interval to determine whether the network state of the branch link is an abnormal state. Based on the use rule of the network, the first comparison interval is limited in the network speed interval corresponding to the network use time period to which the current time belongs, and the accuracy of the determined network state is improved.
2. By adopting the technical scheme, a plurality of first test links are determined based on a preset random function; acquiring abnormal state times corresponding to each branch link in a target network in a historical period, and determining the branch link with the abnormal state times larger than a preset threshold as a second test link, wherein the abnormal state times represent that the network is easy to be abnormal and needs to be monitored intensively; the first test link and the second test link are used as branch links to be detected, and test data corresponding to the first test links and the second test links are obtained. The branch link to be detected is determined by a random function and an abnormal frequency judgment mode, so that the acquired information can better represent the overall state of the target network under the condition that the acquired test data of the branch link is less, the stability of the target network is improved, and the monitoring efficiency is improved.
3. By adopting the technical scheme, when the network state of the branch link is an abnormal state, the branch link is determined to be a target link; acquiring a superior node and all parallel links of a target link, and acquiring verification network information, wherein the verification network information comprises the network state of the superior node and the network states of all the parallel links; by analyzing the network states of the superior node and the parallel link, whether the place with the problem is the target link or not is judged, and then the corresponding network processing scheme is determined, so that the accuracy of the network processing scheme is improved.
Drawings
Fig. 1 is a schematic flow chart of a network state monitoring method in an embodiment of the present application;
FIG. 2 is a schematic diagram of a network architecture in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a network state monitoring device in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to figures 1-4.
A person skilled in the art, after reading the present specification, may make modifications to the present embodiments as necessary without inventive contribution, but only within the scope of the claims of the present application are protected by patent laws.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiment of the present application provides a network status monitoring method, which is executed by an electronic device, and with reference to fig. 1, the method includes steps S101 to S105, where:
step S101, test data corresponding to a plurality of branch links of a target network are obtained, and the test data comprise data transmitted by the branch links in a test period.
In the embodiment of the application, the target network is a network which needs to be monitored, and the target network is composed of a plurality of branch links and nodes. The method includes the steps of obtaining test data corresponding to a plurality of branch links in a target network, wherein a preset number of branch links can be obtained, a random number of branch links can also be obtained, and the number of the obtained branch links is not specifically limited in the embodiment of the application. The test data includes data transmitted by each branch link in a test period, where the test period may be 1 second, 5 seconds, or 10 seconds, and the length of the test period is not specifically limited in this embodiment of the application.
Step S102, determining the actual network speed corresponding to any branch link based on the test data of any branch link.
In the embodiment of the application, the actual wire speed corresponding to any branch link is determined based on the test data and the corresponding test period. For example, if the data amount of the transmitted test data is 4 mb and the test period is 2 seconds, the corresponding actual network speed is 2 mb/sec.
Step S103, obtaining a historical network regulation of any branch link, wherein the historical network regulation comprises a plurality of network utilization time intervals and network speed intervals corresponding to each network utilization time interval.
In this embodiment of the present application, a historical grid rule corresponding to any branch link is obtained, where the historical grid rule includes a plurality of grid utilization periods and a grid speed interval corresponding to each grid utilization period, and for example, the grid utilization rule corresponding to the branch link is: 0 hour-6 hours: 0.5 Mega/second-1 mega/s; 6 hours to 12 hours, 1 million/second to 3 million/second; 12 hours-18 hours: 1. mega/second-2 mega/second; 18 hours-24 hours: 2. mega/sec-4 mega/sec. In order to facilitate subsequent judgment, the network speed interval is consistent with the unit of the actual network speed.
Further, the test period for network status monitoring for the branch links is the same, for example, 8-18 points per day. Obtaining a historical network utilization rule corresponding to the branch link based on information of the branch link in each test cycle, wherein the division of each network utilization time interval in each test cycle is the same, for example, the duration of the network utilization time interval in each test cycle of the branch link A is 2 hours, and is respectively 8-10 points, 10-12 points, 12-14 points, 14-16 points and 16-18 points. However, the division rules of the network utilization periods corresponding to different branch links may be different, and the length of each network utilization period may also be different, which is specifically determined according to the actual network utilization condition of each branch link, and this embodiment of the present application is not specifically limited.
And step S104, acquiring the current time, and determining a network speed interval corresponding to the network utilization time interval to which the current time belongs as a first contrast interval.
In the embodiment of the application, the current time is obtained, the network utilization time interval to which the current time belongs is judged, the network utilization time interval and the network speed interval have a corresponding relation, and then the corresponding network speed interval is determined to be the first comparison interval. For example, the current time is 8:30, the network application rule corresponding to the branch link is as follows: 7 hours to 13 hours, 1 million/second to 3 million/second; 13 hours-19 hours: 1. mega/second-2 mega/second; 19 hours-next day 1: 2. mega/second-4 mega/second; 1 hour-7 hours: 0.5 And Mm/s is 1 Mm/s, and the exhaustion time period at the current moment is 7 hours to 13 hours, the first control interval of the control interval is determined to be 1 Mm/s to 3 Mm/s.
Step S105, determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and the first control interval.
In the embodiment of the application, whether the actual network speed is in the first comparison interval is judged based on the actual network speed corresponding to the branch link and the first comparison interval, and if the actual network speed is not in the first comparison interval, the network state of the branch link is determined to be an abnormal state; and if the actual network speed is in the first comparison interval, determining that the network state of the branch link is not an abnormal state. For example, if the actual network speed of the branch link a is 1 million/second and the first control interval is 2-4 million/second, it is determined that the network status of the branch link a is an abnormal status.
Further, obtaining test data corresponding to each of a plurality of branch links of the target network includes steps S1011 (not shown in the figure) -S1014 (not shown in the figure), where:
step S1011, determining a plurality of first test links from the target network based on a preset random function.
Specifically, the first test link is randomly determined based on a preset random function, where for the type of the preset random function, no specific limitation is imposed in this embodiment, and only the first test link interface needs to be easily determined. A plurality of numbers can be determined from all the numbers by setting a unique corresponding number for each link in the target network based on a preset random function, and then a corresponding first test link is determined through the numbers. The links in the target network can also be classified, then the links are respectively and randomly acquired from each class, and finally the links acquired by each class are collected into a first test link. In the embodiment of the present application, a topological network is taken as an example to illustrate the scheme, but this is not a limitation to the scheme of the present application. For example, in a tree topology, links between the core layer and the middle layer are one type, and links between the middle layer and the access layer are one type. And respectively acquiring corresponding links for each category based on a preset random function, summarizing the links acquired in all the categories, and determining a plurality of first test links. The number of the first test links is determined based on a preset random function, and may be one or more, which is not specifically limited in this embodiment.
Step S1012, obtaining the number of times of abnormal state corresponding to each branch link in the target network in the history period.
Specifically, based on historical data of a target network for monitoring the network state, network state information corresponding to each branch link in a historical period is obtained, the network state information comprises the monitored time of each branch link and the network state corresponding to each monitored time, the network state of each branch link is further determined to be an abnormal state, the frequency of the abnormal state of each branch link is calculated, and the frequency of the abnormal state corresponding to each branch link is determined. The historical period may be 1 month or 2 months, and the length of the historical period is not specifically limited in the embodiment of the present application.
Step S1013, determining the branch link with the abnormal state frequency greater than the preset threshold as a second test link.
Specifically, when the number of times of abnormal state of a certain branch link is greater than a preset threshold, it is considered that the branch link is more likely to be abnormal, and the branch link needs to be detected, and the branch link with the number of times of abnormal state greater than the preset threshold is determined as the second test link.
Step 1014, obtaining test data corresponding to the first test links and the second test links.
Specifically, based on the first test link and the second test link, the branch link to be detected is determined, and test data corresponding to each of the plurality of branch links is obtained. The test data may be detected by a probe device preset on the branch link, or may be detected by a terminal device corresponding to the branch link, and a manner of obtaining the test data is not specifically limited in this embodiment of the application.
Further, obtaining historical grid rules corresponding to each branch link includes step S1031 (not shown in the figure) to step S1032 (not shown in the figure), where:
and step S1031, obtaining historical network information of any branch link in at least two monitoring periods, wherein the historical network information comprises a comparison curve of network speed and time.
Specifically, the monitoring periods are related to the usage rules of the target network, and for the same branch link, the historical network usage information in each monitoring period has a similar trend. The monitoring period may be one day or a preset certain time, and for the length of the monitoring period, no specific limitation is performed in the embodiment of the present application, and only the length corresponds to the usage rule of the target network. The historical network information comprises a network speed and time comparison curve in a monitoring period, and the historical network information is determined based on historical data of network state monitoring of the branch link.
Step S1032, based on at least two historical network utilization information of any branch link, a plurality of network utilization periods and a network speed interval corresponding to each network utilization period are determined.
Specifically, each piece of historical network information is segmented based on at least two pieces of historical network information of any branch link, a plurality of network utilization time intervals are determined, the network speeds in the same network utilization time interval are similar, and a network speed interval corresponding to each network utilization time interval is determined based on the network speeds in the same network utilization time interval in each piece of historical network information.
Further, when the network status of a branch line is determined to be abnormal, a method for monitoring the network status further includes steps S201 (not shown) to S204 (not shown), wherein:
step S201, when the network state of any branch link is an abnormal state, determining any branch link as a target link;
step S202, a superior node of the target link and all parallel links are obtained, wherein the superior node is a superior network node to which the target link belongs, and the parallel links are the same as the superior node of the target link.
In the embodiment of the present application, when the network state of the branch link is an abnormal state, the branch link is determined to be the target link. And acquiring a superior node and all parallel links of the target link, wherein the superior node is a superior network node to which the target network belongs, and the parallel links are the same as the superior network node of the target link. In the embodiment of the present application, a topology network is taken as an example to illustrate the scheme, but this is not a limitation to the scheme of the present application, and the upper node of the target link and all parallel links may be acquired according to a topology structure diagram of the target network stored in advance. In the embodiment of the present application, a topology network is taken as an example to illustrate the scheme, but this is not a limitation to the scheme of the present application, for example, referring to fig. 2, a target network is a tree topology structure, and includes A, B, C three layers, where a network state of a target link B2C3 is an abnormal state, a corresponding upper node is B2, and corresponding parallel links are B2C2 and B2C4.
Step S203, obtaining verification network information, where the verification network information includes network states of the upper node and all parallel links.
In the 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. And acquiring network data of the superior node through equipment corresponding to the superior node, analyzing the network data of the superior node, and determining the network state of the superior node. And acquiring the network data of the parallel link through the probe equipment on the parallel link or the lower node of the parallel link, analyzing the network data of the parallel link, and determining the network data of the parallel link. Wherein the lower node of the parallel link is a node receiving transmission data in the parallel link.
Furthermore, the return information of the superior node and the parallel link can be acquired by sending a preset network state acquisition data packet to the superior node and the parallel link, and the network state corresponding to the superior node and each parallel link is determined based on the return information. The network state acquisition data packet comprises a network speed acquisition unit, a network speed judgment unit and a network state larger than the network speed. The method for acquiring the verification network information is not specifically limited in the embodiment of the present application.
And step S204, determining a network processing scheme based on the verified network information.
In the embodiment of the application, whether the target link is abnormal or not is judged based on the verification network information, and a corresponding network processing scheme is further determined. In the embodiment of the present application, a topology network is taken as an example to illustrate the scheme, but this is not a limitation to the scheme of the present application, for example, referring to fig. 2, a target network is a tree topology structure, and includes A, B, C three layers, where a network state of a target link B2C3 is an abnormal state, an upper node is B2, and 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 there may be an abnormality in the upper node B2 or in links or nodes above it, and a 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 a corresponding network processing scheme is determined in combination with a manner of acquiring test data.
Further, when the history acquired of the branch link cannot further determine the network status of the branch link by the network regulation, the method further includes step S111 (not shown in the figure) to step S113 (not shown in the figure), wherein:
and step S111, when the obtained historical network utilization rule of any branch link does not meet a preset condition, determining the data type of any branch link based on the test data of any branch link, wherein the preset condition comprises that the quantity of the historical network utilization information is less than a preset value or the division of the network utilization time period does not meet the preset requirement.
In the embodiment of the application, when the historical grid rules do 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, that the number of historical network utilization information of the branch links is less than a preset value, and the network utilization time interval division condition does not meet preset requirements. For example, the branch link a is a link newly added to the target network, and the corresponding historical data is null, while the historical grid information requires data of at least two monitoring periods, that is, the historical grid rule of the branch link a does not satisfy the preset condition. When the test cycle of the branch link B is 0 hour to 24 hours, the network utilization time intervals are respectively as follows: when the network utilization time interval is lack of 7 hours-10 hours, namely the historical network utilization rule of the branch link B does not meet the preset condition, the network utilization time interval is 0 hours-7 hours, 10 hours-17 hours and 17 hours-24 hours.
Further, the test data of the branch link comprises data transmitted by the branch link in the test period, the analysis is performed based on the transmitted data, and the data type corresponding to the branch link is determined, wherein the data type includes, but is not limited to, characters, pictures, audio, video and the like.
And step S112, determining a corresponding second comparison interval based on the data type of any branch link, wherein the second comparison interval is a network speed interval corresponding to the data type.
In the embodiment of the application, the network speed intervals corresponding to the different types of data to be transmitted have difference values, and the network speed interval corresponding to the data of the data type to be transmitted is determined to be the second control interval based on the data type of the branch link. The corresponding second comparison interval can be determined based on the comparison relation table of the data type and the network speed interval. For example, the data type and the network speed interval are in a comparison table as follows: character data: 0.5-1 million/sec, picture data: 1-2 million/sec, audio data: 1-2 million/second and video data: 2 to 3 million/sec. And if the data type of the branch link is audio data, the corresponding second control interval is 1-2 Ms/s.
And step S113, determining whether any branch link is in an abnormal state or not based on the actual network speed of any branch link and the second control interval.
In the embodiment of the application, whether the actual network speed is in the second contrast interval is judged based on the actual network speed corresponding to the branch link and the second contrast interval, and if the actual network speed is not in the second contrast interval, the network state of the branch link is determined to be an abnormal state; and if the actual network speed is in the second control interval, determining that the network state of the branch link is not an abnormal state.
Further, based on the data type, determining a corresponding second control interval, including step S1121 (not shown in the figure) -step S1122 (not shown in the figure), wherein:
step S1121, obtaining 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.
Specifically, the associated node type includes a hardware type of a node directly connected to the branch link, the hardware includes but is not limited to a CPU, a network card, a memory, a motherboard, a hard disk, and the like, the hardware type is a configuration of corresponding hardware, and different hardware types correspond to corresponding network speed thresholds.
Step S1122, determining a corresponding second control interval based on the data type and the associated node type.
Specifically, a corresponding network speed interval is determined based on the data type of the branch link, the network speed interval and the data type have a corresponding relationship, and the network speed interval is further limited by combining the associated node type, so that a second control interval of the branch link is determined. The type of the associated node is the hardware type of the node directly connected with the branch link, and different hardware types correspond to corresponding network speed thresholds. For example, the data type of the branch link X is video data, the network speed interval corresponding to the branch link X is 2-3 million/second, the branch link X corresponds to a node a and a node B, the network card of the 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 million/second; the network card of the 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 million/second, and the second contrast interval corresponding to the branch link X is 2-2.5 million/second.
Further, when the data traffic (wire speed) on the branch link approaches the upper hardware limit, the corresponding data traffic (wire speed) decreases, and the actual wire speed range should be lower than the wire speed threshold.
Further, a network status monitoring method further includes step S121 (not shown in the figure) to step S122 (not shown in the figure), wherein:
step S121, when the network status of any branch link is abnormal, determining a corresponding abnormal type based on the actual network speed and the data type of any branch link.
Specifically, based on the actual wire speed and the data type of the branch link, the reason for the data of the data type to transmit the data using the actual wire speed is analyzed, and then the abnormal type of the branch link is determined. The types of exceptions include, but are not limited to, network delays, network dropped packets, network throttles, network retransmissions, and the like. Wherein the network delay: when the network information flow is too large, data transmission delay can be caused; network packet dropping: during data transmission, data packets are lost in the link for various reasons; network throttling: when the data transmission quantity reaches the upper limit of the network bandwidth, the data packet may be intercepted and sent out later; network retransmission: when the network is unstable, the upper node may judge that the data packet is lost to cause retransmission of part of the data packet.
For example, if the network status of the branch link X is abnormal and the data type thereof is text type, the second control interval is 0.5-1 mb/sec, and the actual network speed is 5 mb/sec, which is far beyond the upper limit of the second control interval, the analysis is performed to determine the network retransmission of the branch link X.
And step S122, determining an exception handling scheme based on the exception type of any branch link.
Specifically, based on the exception type of the branch link, an exception handling scheme corresponding to the exception type is determined, and the content of the exception handling scheme includes specific scheme steps to be implemented for the exception type. For example, when the exception type of the branch link X is a network packet drop, the corresponding exception handling scheme is to send a packet drop retransmission packet to an upper node of the branch link X, so that a lower node of the branch link X can acquire lost data.
The foregoing embodiments describe a method for monitoring a network state from the perspective of a method flow, and the following embodiments describe a device for monitoring a network state from the perspective of a virtual module or a virtual unit, which are described in detail in the following embodiments.
An embodiment of the present application provides a network state monitoring apparatus, as shown in fig. 3, the network state monitoring apparatus may specifically include a test data obtaining module 301, an actual network speed determining module 302, a historical network regulation obtaining module 303, a first comparison interval determining module 304, and a first network state determining module 305, where:
a test data obtaining module 301, configured to obtain test data corresponding to each of a plurality of branch links of a target network, where the test data includes data transmitted by the branch links in a test period;
an actual network speed determining module 302, configured to determine an actual network speed corresponding to any branch link based on test data of any branch link;
a historical grid regulation obtaining module 303, configured to obtain a historical grid regulation corresponding to any branch link, where the historical grid regulation includes multiple grid utilization periods and a grid speed interval corresponding to each grid utilization period;
a first comparison interval determination module 304, configured to obtain a current time, and determine that a network speed interval corresponding to a network utilization time period to which the current time belongs is a first comparison interval;
a first network status determining module 305, configured to determine whether the network status of any of the branch links is an abnormal status based on the actual network speed of any of the branch links and the first control interval.
In a possible implementation manner, when the test data obtaining module 301 obtains test data corresponding to each of a plurality of branch links of the target network, the test data obtaining module is specifically configured to:
determining a plurality of first test links from a target network based on a preset random function;
acquiring abnormal state times corresponding to each branch link in a target network in a historical period;
determining the branch link with the abnormal state times larger than a preset threshold as a second test link;
and acquiring test data corresponding to the first test links and the second test links.
In a possible implementation manner, when the historical grid regulation obtaining module 303 obtains the historical grid regulation corresponding to any branch link, the historical grid regulation obtaining module is specifically configured to:
obtaining historical network information of any branch link in at least two monitoring periods, wherein the historical network information comprises a comparison curve of network speed and time;
and determining a plurality of network utilization periods and a network speed interval corresponding to each network utilization period based on at least two historical network utilization information of any branch link.
In one possible implementation manner, a network condition monitoring apparatus further includes:
the target link determining module is used for determining any branch link as a target link when the network state of any branch link is an abnormal state;
the verification target acquisition module is used for acquiring a superior node of a target link and all parallel links, wherein the superior node is a superior network node to which the target link belongs, and the parallel links are the same as the superior node of the target link;
the verification network information acquisition module is used for acquiring verification network information which comprises network states of a superior node and all parallel links;
and the network processing scheme determining module is used for determining the network processing scheme based on the verified network information.
In one possible implementation manner, a network condition monitoring apparatus further includes:
the data type determining module is used for determining the data type of any branch link based on the test data of any branch link when the obtained historical network utilization rule of any branch link does not meet the preset condition, wherein the preset condition comprises that the quantity of the historical network utilization information is less than the preset value or the division of the network utilization time interval does not meet the preset requirement;
the second comparison interval determining module is used for determining a corresponding second comparison interval based on the data type of any branch link, and the second comparison interval is a network speed interval corresponding to the data type;
and the second network state determining module is used for determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and the second control interval.
In a possible implementation manner, when the second control interval determining module determines the corresponding second control interval based on the data type, the second control interval determining module is specifically configured to:
acquiring the associated node type of any branch link, wherein the associated node type comprises the hardware type of each node directly connected with any branch link;
and determining a corresponding second control interval based on the data type and the associated node type.
In one possible implementation manner, a network condition monitoring apparatus further includes:
the abnormal type determining module is used for determining the abnormal type based on the actual network speed and the data type of any branch link when the network state of any branch link is the abnormal state;
and the exception handling scheme determining module is used for determining an exception handling scheme based on the exception type of any branch link.
In an embodiment of the present application, there is provided an electronic device, as shown in fig. 4, an electronic device 400 shown in fig. 4 includes: a processor 401 and a memory 403. Wherein the processor 401 is coupled to the memory 403, such as via a bus 402. Optionally, the electronic device 400 may also include a transceiver 404. It should be noted that the transceiver 404 is not limited to one in practical applications, and the structure of the electronic device 400 is not limited to the embodiment of the present application.
Processor 401 may be a CPU (Central Processing Unit), general purpose Processor, DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array), or other Programmable logic device, transistor logic, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 401 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 402 may include a path that transfers information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 402 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The Memory 403 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 403 is used for storing application program codes for executing the scheme of the application, and the execution is controlled by the processor 401. Processor 401 is configured to execute application program code stored in memory 403 to implement the aspects illustrated in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. But also a server, etc. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A method for monitoring network conditions, comprising:
obtaining test data corresponding to a plurality of branch links of a target network, wherein the test data comprises data transmitted by the branch links in a test period;
determining the actual network speed corresponding to any branch link based on the test data of the branch link;
obtaining a historical network using rule corresponding to any branch link, wherein the historical network using rule comprises a plurality of network using time intervals and network speed intervals corresponding to the network using time intervals;
acquiring the current time, and determining a network speed interval corresponding to a network utilization time interval to which the current time belongs as a first comparison interval;
and determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and the first control interval.
2. The method according to claim 1, wherein the obtaining test data corresponding to each of a plurality of branch links of a target network comprises:
determining a plurality of first test links from a target network based on a preset random function;
acquiring abnormal state times corresponding to each branch link in a target network in a historical period;
determining the branch link with the abnormal state times larger than a preset threshold value as a second test link;
and acquiring test data corresponding to the first test links and the second test links.
3. The method according to claim 1, wherein the obtaining of the historical grid regulation for any branch link comprises:
obtaining historical network information of any branch link in at least two monitoring periods, wherein the historical network information comprises a comparison curve of network speed and time;
and determining a plurality of network utilization periods and a network speed interval corresponding to each network utilization period based on the historical network utilization information in at least two monitoring periods of any branch link.
4. The network status monitoring method according to claim 1, further comprising:
when the network state of any branch link is an abnormal state, determining that the branch link is a target link;
acquiring a superior node and all parallel links of the target link, wherein the superior node is a superior network node to which the target link belongs, and the parallel links are the same as the superior node of the target link;
acquiring verification network information, wherein the verification network information comprises the network states of the superior node and all the parallel links;
determining a network processing scheme based on the verified network information.
5. The network status monitoring method according to claim 1, further comprising:
when the acquired historical network utilization rule of any branch link does not meet a preset condition, determining the data type of any branch link based on the test data of any branch link, wherein the preset condition comprises that the quantity of the historical network utilization information is less than a preset value or the division of the network utilization time period does not meet a preset requirement;
determining a corresponding second control interval based on the data type of any branch link, wherein the second control interval is a network speed interval corresponding to the data type;
and determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and a second control interval.
6. The method according to claim 5, wherein the determining the corresponding second control interval based on the data type includes:
acquiring an associated node type of any branch link, wherein the associated node type comprises a hardware type of each node directly connected with the any branch link;
and determining a corresponding second control interval based on the data type and the associated node type.
7. The network status monitoring method according to claim 6, further comprising:
when the network state of any branch link is an abnormal state, determining a corresponding abnormal type based on the actual network speed and the data type of any branch link;
and determining an exception handling scheme based on the exception type of any branch link.
8. A network condition monitoring device, comprising:
the test data acquisition module is used for acquiring test data corresponding to a plurality of branch links of a target network, wherein the test data comprises data transmitted by the branch links in a test period;
the actual network speed determining module is used for determining the actual network speed corresponding to any branch link based on the test data of the branch link;
the historical network regulation obtaining module is used for obtaining the historical network regulation corresponding to any branch link, and the historical network regulation comprises a plurality of network utilization time intervals and network speed intervals corresponding to the network utilization time intervals;
the first comparison interval determination module is used for acquiring the current moment and determining a network speed interval corresponding to the network utilization time interval to which the current moment belongs as a first comparison interval;
and the first network state determining module is used for determining whether the network state of any branch link is an abnormal state or not based on the actual network speed of any branch link and the first control interval.
9. An electronic device, comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, the at least one application configured to: performing the network condition monitoring method of any one of claims 1-7.
10. A computer-readable storage medium, comprising: a computer program which can be loaded by a processor and which performs the method according to any of claims 1-7.
CN202211451624.6A 2022-11-21 2022-11-21 Network state monitoring method and device, electronic equipment and storage medium Pending CN115811483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211451624.6A CN115811483A (en) 2022-11-21 2022-11-21 Network state monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211451624.6A CN115811483A (en) 2022-11-21 2022-11-21 Network state monitoring method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115811483A true CN115811483A (en) 2023-03-17

Family

ID=85483596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211451624.6A Pending CN115811483A (en) 2022-11-21 2022-11-21 Network state monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115811483A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116743617A (en) * 2023-08-11 2023-09-12 浙江国利信安科技有限公司 Method, computing device, and storage medium for network testing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116743617A (en) * 2023-08-11 2023-09-12 浙江国利信安科技有限公司 Method, computing device, and storage medium for network testing
CN116743617B (en) * 2023-08-11 2023-11-10 浙江国利信安科技有限公司 Method, computing device, and storage medium for network testing

Similar Documents

Publication Publication Date Title
CN102831045B (en) Method and device for detecting starting items in terminal equipment
CN109309596B (en) Pressure testing method and device and server
CN110162270B (en) Data storage method, storage node and medium based on distributed storage system
US20170185454A1 (en) Method and Electronic Device for Determining Resource Consumption of Task
CN114095567B (en) Data access request processing method and device, computer equipment and medium
EP3816924B1 (en) Method for accepting blockchain evidence storage transaction and system
CN110059068B (en) Data verification method and data verification system in distributed storage system
CN110806960B (en) Information processing method and device and terminal equipment
CN112737800A (en) Service node fault positioning method, call chain generation method and server
CN112637162A (en) UDP (user Datagram protocol) data packet processing method and device
CN115811483A (en) Network state monitoring method and device, electronic equipment and storage medium
CN110807050B (en) Performance analysis method, device, computer equipment and storage medium
CN110247823A (en) A kind of fault detection method, device and relevant device
CN107018039B (en) Method and device for testing performance bottleneck of server cluster
CN109246093A (en) Risk links recognition methods and device
CN116938776A (en) Method, device, electronic equipment and medium for network asset mapping
CN109327349B (en) Method, medium, device and system for limiting block chain account during creation
CN114338386B (en) Network configuration method and device, electronic equipment and storage medium
CN116226071A (en) Data statistics method, device, equipment and storage medium
CN110020166B (en) Data analysis method and related equipment
CN113849125B (en) CDN server disk reading method, device and system
CN112367384B (en) Kafka cluster-based dynamic speed limiting method and device and computer equipment
CN115269519A (en) Log detection method and device and electronic equipment
CN113535654A (en) Log processing method, system, electronic device and storage medium
WO2014173129A1 (en) Mobile terminal flow identification method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination