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

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

Info

Publication number
CN113079059A
CN113079059A CN202110308839.1A CN202110308839A CN113079059A CN 113079059 A CN113079059 A CN 113079059A CN 202110308839 A CN202110308839 A CN 202110308839A CN 113079059 A CN113079059 A CN 113079059A
Authority
CN
China
Prior art keywords
network
node
monitoring
information
link
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
CN202110308839.1A
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 Sundray Technologies Co ltd
Original Assignee
Shenzhen Sundray Technologies 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 Sundray Technologies Co ltd filed Critical Shenzhen Sundray Technologies Co ltd
Priority to CN202110308839.1A priority Critical patent/CN113079059A/en
Publication of CN113079059A publication Critical patent/CN113079059A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a network state monitoring method, a network state monitoring device, electronic equipment and a computer readable storage medium, wherein the method comprises the steps of obtaining monitoring range information and determining at least one target node according to the monitoring range information; sending monitoring configuration information to each target node so as to establish a monitoring link between each target node by using the monitoring configuration information; receiving node network information which is sent by a target node and obtained based on a monitoring link, and generating network state information by utilizing the node network information; network state information can be generated by a monitoring link established at a target node and acquiring node network information sent by the target node based on the monitoring link; the network state information can represent the network condition in the monitoring range information, and the abnormal position can be quickly determined based on the network state information when the network link, the node and the like are abnormal or have faults; the speed of network abnormity positioning is improved, and the network fault can be rapidly processed.

Description

Network state monitoring method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of communications network technologies, and in particular, to a network status monitoring method, a network status monitoring apparatus, an electronic device, and a computer-readable storage medium.
Background
Network communications may fail due to a variety of different factors while the network is operating, such as physical line failures, virus attacks, equipment failures, and the like. After a network communication fault occurs, related technologies can locate a device with the network fault by checking the state information of each network node, and then, troubleshoot the fault reason. When the network topology is small and the number of devices is small, the method can be used for quickly finding out the reason of the network fault, the link, the device or other factors causing the network fault and the like, and restoring the network communication in time. When the network topology becomes larger with the increase of the number of devices, after a network communication failure occurs, a long time is required for a mode of checking the problem by checking the state information of each network node, which may cause problems of long time required for checking the network failure, complex network failure checking, and the like, thereby causing the network to fail to recover the communication quickly.
Disclosure of Invention
In view of this, an object of the present application is to provide a network status monitoring method, a network status monitoring apparatus, an electronic device, and a computer-readable storage medium, which can detect a network condition in monitoring range information through a monitoring link established in a target node, and perform characterization through network status information, thereby improving a speed of network anomaly location and facilitating network fault handling.
In order to solve the above technical problem, the present application provides a network status monitoring method, which specifically includes:
acquiring monitoring range information, and determining at least one target node according to the monitoring range information;
sending monitoring configuration information to each target node so that each target node establishes a monitoring link by using the monitoring configuration information;
and receiving node network information which is sent by the target node and obtained based on the monitoring link, and generating network state information by using the node network information.
Optionally, the sending monitoring configuration information to each target node includes:
determining a forwarding node in the target node;
and sending the monitoring configuration information to the forwarding node so that the forwarding node can forward the monitoring configuration information to the rest of the target nodes.
Optionally, the receiving node network information sent by the target node and obtained based on the monitoring link, and generating network state information by using the node network information includes:
receiving the node network information respectively sent by each target node, and integrating the node network information to obtain link state information;
and generating a network state topological graph by using the link state information, and determining the network state topological graph as the network state information.
Optionally, the method further comprises:
performing network anomaly detection on the network state information;
and if the network abnormality is detected, performing abnormality alarm.
The application also provides a network state monitoring method, which comprises the following steps:
receiving monitoring configuration information sent by a network controller;
establishing a monitoring link with a neighbor node by using the monitoring configuration information;
and acquiring node network information based on the monitoring link, and sending the node network information to the network controller.
Optionally, the obtaining node network information based on the monitoring link and sending the node network information to the network controller includes:
when the communication state of a target monitoring link is monitored to be changed, updating a target state machine corresponding to the target monitoring link;
and generating the node network information based on each state machine, and sending the node network information to the network controller.
Optionally, the receiving monitoring configuration information sent by the network controller includes:
receiving the monitoring configuration information forwarded by a forwarding node;
correspondingly, the sending the node network information to the network controller includes:
and sending the node network information to the forwarding node so that the forwarding node can send the node network information to the network controller.
The present application further provides a network status monitoring device, including:
the monitoring range determining module is used for acquiring monitoring range information and determining at least one target node according to the monitoring range information;
a configuration information sending module, configured to send monitoring configuration information to each target node, so as to establish a monitoring link between each target node by using the monitoring configuration information;
and the state information generating module is used for receiving the node network information which is sent by the target node and is obtained based on the monitoring link, and generating network state information by utilizing the node network information.
The present application further provides a network status monitoring device, including:
the configuration information receiving module is used for receiving monitoring configuration information sent by the network controller;
the link establishing module is used for establishing a monitoring link with a neighbor node by using the monitoring configuration information;
and the network information sending module is used for acquiring node network information based on the monitoring link and sending the node network information to the network controller.
The present application further provides an electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the network status monitoring method.
The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the network status monitoring method described above.
The network state monitoring method provided by the application comprises the steps of obtaining monitoring range information, and determining at least one target node according to the monitoring range information; sending monitoring configuration information to each target node so as to establish a monitoring link between each target node by using the monitoring configuration information; and receiving node network information which is sent by a target node and obtained based on the monitoring link, and generating network state information by utilizing the node network information.
Further, the application also provides another network state monitoring method, which receives monitoring configuration information sent by a network controller; establishing a monitoring link with a neighbor node by using monitoring configuration information; and acquiring node network information based on the monitoring link, and sending the node network information to the network controller.
Therefore, in the method, the network controller sends the monitoring configuration information to the target nodes in the monitoring range, and the target nodes can establish monitoring links among the nodes after acquiring the monitoring configuration information. The monitoring link is only used for monitoring the network communication condition between two target nodes. After the monitoring link is established, the target node can acquire node network information by using the monitoring link, and the node network information can represent the network communication condition between the target node and each neighbor node. The target node sends the node network information to the network controller after acquiring the node network information, the network controller can further generate network state information by using the node network information, and the network state information can represent the conditions of each target node and each link in a monitoring range, so that the network state can be rapidly and accurately monitored by using the node network information, the abnormal reason can be timely determined when the network is abnormal, and further fault recovery is rapidly performed. Network state information can be generated by the monitoring link established at the target node and acquiring node network information sent by the target node based on the monitoring link. The network state information can represent the network condition in the monitoring range information, and the abnormal position can be quickly determined based on the network state information when the network link, the node and the like are abnormal or have faults. The method and the device improve the speed of network abnormity positioning, are beneficial to quickly processing network faults, and solve the problems that the time for troubleshooting the network faults is long, the process for troubleshooting the network faults is complex and the like in the related technology, and the communication cannot be quickly recovered.
In addition, the application also provides a network state monitoring device, electronic equipment and a computer readable storage medium, and the network state monitoring device, the electronic equipment and the computer readable storage medium also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of a specific configuration provided in an embodiment of the present application;
fig. 3 is a flowchart of a network status monitoring method according to an embodiment of the present application;
fig. 4 is a flowchart of another network condition monitoring method according to an embodiment of the present application;
fig. 5 is a specific target node work flow diagram provided in the embodiment of the present application;
fig. 6 is a schematic diagram of a specific network topology provided in an embodiment of the present application;
fig. 7 is a structural diagram of a network status monitoring apparatus according to an embodiment of the present application;
fig. 8 is a structural diagram of another network status monitoring apparatus according to an embodiment of the present application;
fig. 9 is a hardware composition framework diagram applicable to a network status monitoring method according to an embodiment of the present disclosure.
Detailed Description
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 only a part of the embodiments of the present application, and not all the 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.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application. The user 10 may input monitoring range information into the network controller 11 or the network controller 12, and then issue monitoring configuration information to each target node 13 in the monitoring range through the network controller 11 or the network controller 12, so as to monitor a network state in a customized network formed by the target nodes 13. The network controller 11 is a virtual controller, and in a possible embodiment, the network controller 11 is a virtual machine in a Linux operating system. The network controller 12 is an entity controller, and the specific type thereof is not limited. In this embodiment, the target node 13 is a router, and besides, the target node 13 may further include a gateway, a switch, a terminal, and the like, and the specific type thereof is not limited in this embodiment. The network controller and the target node respectively execute the steps of the two network state monitoring methods provided by the application, and jointly complete the state monitoring of the network.
Referring to fig. 2, fig. 2 is a specific configuration flowchart provided in an embodiment of the present application, and a user may perform configuration of network status monitoring according to the configuration flowchart. Specifically, a user may log in to the controller management system through a pc (personal computer) terminal, and select a switch management center among application center functions provided by the management system, that is, a target node is a switch node. The switch management center provides high availability functions including network monitoring functions. The network name and the network description of the monitored network can be set by clicking the name and the description of the newly added and configured user-defined network area, and the acquisition of the monitoring range information is completed by configuring the network node equipment therein. By clicking on the submission, some or all of the steps of the network status monitoring method provided by the present application may begin to be performed.
Specifically, please refer to fig. 3, where fig. 3 is a flowchart of a network status monitoring method according to an embodiment of the present application, and the method is applied to a network controller. The method comprises the following steps:
s101: and acquiring monitoring range information, and determining at least one target node according to the monitoring range information.
The monitoring range information is used for determining a network range for receiving the monitoring state, and the monitored node can be determined according to the monitoring range information. The data form of the monitoring range information is not limited in this embodiment, and may be, for example, a node number of the target node or a network address of the target node. In one embodiment, the monitoring range information may be manually entered by a user; in another embodiment, the monitoring range information may be imported from the outside, for example, the monitoring range information sent by a specific device may be received, or the monitoring range information may be read from an accessed removable storage device, or the monitoring range information may be acquired from a cloud; in another embodiment, a plurality of candidate range information may be pre-stored locally, and when the network state monitoring is required, one of the candidate range information is selected as the monitoring range information, for example, the monitoring range information may be selected according to an input selection instruction, so as to complete the acquisition of the monitoring range information.
After the monitoring range information is obtained, the corresponding target node can be determined according to the monitoring range information. The number of the target nodes is multiple, each target node and at least one other target node are provided with a communication link, and each communication link and the target node jointly form a network subjected to state monitoring. The present embodiment does not limit the device type of the target node, and the types of the target nodes may be the same or different.
S102: and sending the monitoring configuration information to each target node so that each target node establishes a monitoring link by using the monitoring configuration information.
The monitoring configuration information is used to instruct the target node to establish the monitoring link, and specifically, the monitoring configuration information includes neighbor node information used to instruct neighbor nodes corresponding to each target node, so as to establish the monitoring link between the target node and the neighbor nodes. It should be noted that the monitoring configuration information corresponding to each target node is different. In another embodiment, monitoring mode information may be further included, which is used to specify a specific mode for establishing the monitoring link and a specific form of the monitoring link. The specific form of the monitoring link is not limited, and for example, the monitoring link may be a BFD (Bidirectional Forwarding Detection, which is a Bidirectional Forwarding Detection mechanism and can provide millisecond Detection and implement fast Detection of the link) link. The monitoring configuration information may be locally generated, for example, after the monitoring range information is acquired, corresponding monitoring configuration information may be generated for each target node according to the monitoring range information and the network topology. In another embodiment, the monitoring configuration information may be obtained from the outside, for example, corresponding monitoring configuration information may be obtained simultaneously when the monitoring range information is obtained, and each monitoring configuration information is issued according to the corresponding relationship between the monitoring configuration information and the target node. By issuing the monitoring configuration information, the target node can determine the neighbor node by using the monitoring configuration information, and then a monitoring link is established between the target node and the neighbor node. The establishment mode of the monitoring link is not limited, for example, whether a link establishment request sent by a neighbor node is received or not can be judged; if the link establishment request is received, sending a link establishment request to the neighbor node; and if so, responding to the link establishment request.
In a possible implementation, the network controller and each target node have a communication link therebetween, so that the monitoring configuration information can be directly sent to each target node. In another possible embodiment, part of the target nodes in the network subject to condition monitoring and the network controller do not have a direct communication link, in which case the process of sending the monitoring configuration information to each target node may include the following steps:
step 11: a forwarding node is determined in the target node.
In this embodiment, the forwarding nodes are target nodes having direct communication links with the network controller, and the number of the forwarding nodes is less than or equal to the number of all the target nodes. As for the determination method of the forwarding node, in a specific implementation manner, all or part of nodes directly connected to the network controller may be labeled in advance, and determined as candidate forwarding nodes, information of the candidate forwarding nodes is stored in the network controller, and after the monitoring range is determined, the candidate forwarding nodes in the monitoring range are determined as the forwarding nodes.
Step 12: and sending the monitoring configuration information to the forwarding node so that the forwarding node forwards the monitoring configuration information to the rest target nodes.
After the forwarding node is determined, the monitoring configuration information is sent to the forwarding node, so that the forwarding node forwards the monitoring configuration information to other target nodes. It can be understood that, in an embodiment, the monitoring configuration information sent by the network controller to each forwarding node is completely the same, and the forwarding node selects part of the monitoring configuration information to forward; in a second embodiment, the monitoring configuration information sent by the network controller to each forwarding node is completely the same, and the forwarding nodes forward all the acquired monitoring configuration information; in the third embodiment, the forwarding node only obtains monitoring configuration information that the forwarding node can forward, and selects part of the monitoring configuration information to forward; in the fourth embodiment, the forwarding node only acquires monitoring configuration information that it can forward, and forwards all the acquired monitoring configuration information.
The four embodiments described above will be specifically described below by way of examples. For example, there are A, B, C, D, E five target nodes in the monitoring range, the node a and the node D are forwarding nodes, the node a has a communication link with the node B and the node C, does not have a communication link with the node D, and has a communication link with the node D.
For monitoring configuration information acquired by a node a and a node D in the first embodiment, which is monitoring configuration information corresponding to A, B, C, D, E five nodes, after acquiring all monitoring configuration information, the node a sends a part corresponding to a node B to the node B, and a part corresponding to a node C to the node C, or sends parts corresponding to the node B and the node C together, that is, both the node B and the node C acquire monitoring configuration information corresponding to both the node B and the node C, and the node B and the node C screen out content corresponding to the node B from the acquired monitoring configuration information, for example, parts of the monitoring configuration information corresponding to different nodes have different node identity information (for example, node serial numbers), and each node may select a part matching with itself as content corresponding to itself. And after the D node acquires all the configuration information, sending the part corresponding to the E node.
For the second embodiment, the monitoring configuration information acquired by the node a and the node D is A, B, C, D, E monitoring configuration information corresponding to five nodes, after the node a and the node D acquire all the configuration information, the node a and the node D send the monitoring configuration information corresponding to the A, B, C, D, E five nodes to the B, C, E node, and the B, C, E node screens out the content corresponding to the node a from the acquired monitoring configuration information.
For the third embodiment, the monitoring configuration information acquired by the node a is A, B, C and the monitoring configuration information corresponding to three nodes, and the monitoring configuration information acquired by the node D is D, E and the monitoring configuration information corresponding to two nodes. After the node A acquires all the monitoring configuration information, the part corresponding to the node B is sent to the node B, the part corresponding to the node C is sent to the node C, or the parts corresponding to the node B and the node C are sent to the node B and the node C together. And after the D node acquires all the configuration information, sending the part corresponding to the E node.
For the fourth embodiment, the monitoring configuration information acquired by the node a is A, B, C and the monitoring configuration information corresponds to three nodes, and the monitoring configuration information acquired by the node D is D, E and the monitoring configuration information corresponds to two nodes. After the node A acquires the configuration information, monitoring configuration information corresponding to A, B, C three nodes is sent to the node B, C, and after the node D acquires the configuration information, monitoring configuration information corresponding to D, E two nodes is sent to the node E. B. C, E node screens out the corresponding content from the acquired monitoring configuration information.
Or may be A, B, C, D monitoring configuration information corresponding to the four nodes. During the delivery, the node a may send all the acquired monitoring configuration information to the node B, or only send the monitoring configuration information corresponding to the node B. By using the method, the monitoring configuration information can be issued to all target nodes under the condition of various network topologies.
S103: and receiving node network information which is sent by a target node and obtained based on the monitoring link, and generating network state information by utilizing the node network information.
After the monitoring configuration information is sent, the target node can establish a monitoring link and monitor the state of the network based on the monitoring link, namely, the monitoring link is used for judging whether the network communication state between the target node and each neighbor node is normal or not. The target node combines the detection results corresponding to the monitoring links of the target node to obtain corresponding node network information, so that the node network information can indicate whether the network communication state between the target node and the neighbor nodes is normal or not. The network controller receives and combines the node network information of each target node to generate the network state information capable of reflecting the network state, so that the network state information can indicate whether the network communication state among each node in the network formed by the target nodes is normal or not, and the state monitoring of the network is completed. In a specific implementation manner, the network state information is specifically information indicating whether a communication link between the target node and a corresponding neighboring node is normally connected, where the connection is normal and may be represented by a character 1, and the connection is disconnected or abnormal and may be represented by a character 0; in another embodiment, the network state information may indicate whether the communication speed of the communication link between the target node and its corresponding neighbor node is normal, for example, to indicate whether the signal transmission speed is lower than a threshold value; in another embodiment, the network state information may indicate whether signal quality of a communication link between the target node and its corresponding neighbor node is normal. It should be noted that the network controller may receive the node network information sent by all the target nodes at each time of receiving, and generate the network state information by using the new node network information; in another embodiment, the network controller may receive node network information sent by a part of nodes, update current network state information with new node network information to obtain new network state information, that is, replace old node network information corresponding to the target node with the new node network information, and generate new network state information together with node network information newly sent by other target nodes. The network status information may be in the form of a graph or may be in the form of data. By generating the network state information, the network fault or abnormity can be timely found when the network is in fault or abnormity, fault or abnormity positioning is carried out without checking the state information of each node, and the positioning speed is improved.
In one possible embodiment, the network status information may be provided in the form of a topology map in order to enable a user to visually view the network status information. In this case, the step of receiving node network information sent by the target node and obtained based on the monitored link, and generating network state information by using the node network information may specifically include:
step 21: and receiving node network information respectively sent by each target node, and integrating the node network information to obtain link state information.
In this embodiment, each target node may send node network information to the network controller, and the node network information of different target nodes may include information corresponding to the same monitoring link. The present embodiment does not limit the specific type of the fault, and for example, the fault may be an operation fault of a node, for example, a node downtime; or it may be a node communication failure, i.e. the node communication therefore needs to be integrated after obtaining the node network information. The specific process of the integration processing is not limited, for example, the information corresponding to the same monitoring link is deduplicated; or the missing node network information can be filled by using the standard abnormal information to obtain the link state information.
Step 22: and generating a network state topological graph by using the link state information, and determining the network state topological graph as the network state information.
The link state information can reflect the state information of each monitoring link in the monitoring range, so the generated network state topological graph can intuitively reflect the state of each monitoring link in the network, and further intuitively reflect the state of the network.
In another possible implementation manner, in order to enable the user to know the network abnormality in time and then perform abnormality repairing in time, the embodiment may further include the following steps:
step 31: and carrying out network anomaly detection on the network state information.
It should be noted that, the embodiment does not limit the specific manner of network anomaly detection, and the manner of network anomaly detection may also be different according to the form of the network state information. For example, when the network state information is in a data form, whether an abnormal mark exists in the network state information can be judged, and if the abnormal mark exists, the network state information is determined to be detected; or when the network state information is in the form of a topological graph, comparing the network state information with the network topology to judge whether topology loss or topology abnormity exists, and if the topology loss or topology abnormity exists, determining that the network abnormity is detected.
Step 32: and if the network abnormality is detected, performing abnormality alarm.
If the network abnormality is detected, an abnormality alarm can be performed, and the alarm form of the abnormality alarm is not limited, and can be one or more of a video alarm, an audio alarm, a notification alarm and the like.
By applying the network state monitoring method provided by the embodiment of the application, the network controller sends monitoring configuration information to the target nodes in the monitoring range, and the target nodes can establish monitoring links among the nodes after acquiring the monitoring configuration information. The monitoring link is only used for monitoring the network communication condition between two target nodes. After the monitoring link is established, the target node can acquire node network information by using the monitoring link, and the node network information can represent the network communication condition between the target node and each neighbor node. The target node sends the node network information to the network controller after acquiring the node network information, the network controller can further generate network state information by using the node network information, and the network state information can represent the conditions of each target node and each link in a monitoring range, so that the network state can be rapidly and accurately monitored by using the node network information, the abnormal reason can be timely determined when the network is abnormal, and further fault recovery is rapidly performed. Network state information can be generated by the monitoring link established at the target node and acquiring node network information sent by the target node based on the monitoring link. The network state information can represent the network condition in the monitoring range information, and the abnormal position can be quickly determined based on the network state information when the network link, the node and the like are abnormal or have faults. The method and the device improve the speed of network abnormity positioning, are beneficial to quickly processing network faults, and solve the problems that the time for troubleshooting the network faults is long, the process for troubleshooting the network faults is complex and the like in the related technology, and the communication cannot be quickly recovered.
Further, please refer to fig. 4, where fig. 4 is a flowchart of another network status monitoring method provided in the present embodiment, and the method is applied to a target node. The method comprises the following steps:
s201: and receiving monitoring configuration information sent by the network controller.
It will be appreciated that the monitoring configuration information may be sent directly by the network controller; in another embodiment, the monitoring configuration information may be forwarded by a forwarding node, in this case, the step S201 may specifically be:
step 41: monitoring configuration information forwarded by the forwarding node is received.
S202: and establishing a monitoring link with the neighbor node by using the monitoring configuration information.
It should be noted that the neighbor node in this embodiment may be a physical neighbor node, or may also be a logical neighbor node, that is, a neighbor node on a link or a neighbor node of a specified different network segment. The specific process of establishing the monitoring link is related to the type of the monitoring link, and the specific establishing process is not limited in this embodiment. The number of monitoring links corresponding to one target node is not limited, and may be multiple.
S203: and acquiring node network information based on the monitoring link, and sending the node network information to the network controller.
After the monitored link is established, node network information may be obtained based on the monitored link, and the node network information may represent a communication state of the monitored link, and a specific obtaining manner of the node network information is related to the type of the monitored link, which is not described in detail in this embodiment. It should be noted that, the generation and sending time of the node network information is not limited in this embodiment, for example, in an implementation, the node network information may be generated according to a preset period; in another embodiment, the node network information is sent once after the monitoring link is established for the first time, so that the network controller initializes the network state information, and the node network information is generated and sent only when the change of the communication state of the monitoring link is detected in the following.
It can be understood that, if the monitoring configuration information is forwarded by the forwarding node, the node network information cannot be directly sent to the network controller, and therefore, the process of sending the node network information to the network controller may specifically include the following steps:
step 42: and sending the node network information to the forwarding node so that the forwarding node sends the node network information to the network controller.
In a specific embodiment, in order to avoid the waste of computing resources, the target node may upload the node network information when detecting that the communication state of a certain monitoring link changes. The process of obtaining the node network information based on the monitoring link and sending the node network information to the network controller may specifically include the following steps:
step 51: and when the communication state of the target monitoring link is monitored to be changed, updating the target state machine corresponding to the target monitoring link.
In this embodiment, the communication state of the monitoring link may be recorded by using a state machine, and the monitoring link and the state machine are in a one-to-one correspondence relationship.
Step 52: and generating node network information based on each state machine, and sending the node network information to the network controller.
In this embodiment, the node network information may be a node communication quality table. And generating a node communication quality table according to the current state of the state machine, and sending the table to the network controller as node network information. After the network controller acquires the node network information, the network controller can update the current network state information by using the node network information to acquire new network state information.
By applying the network state monitoring method provided by the embodiment of the application, the network controller sends monitoring configuration information to the target nodes in the monitoring range, and the target nodes can establish monitoring links among the nodes after acquiring the monitoring configuration information. The monitoring link is only used for monitoring the network communication condition between two target nodes. After the monitoring link is established, the target node can acquire node network information by using the monitoring link, and the node network information can represent the network communication condition between the target node and each neighbor node. The target node sends the node network information to the network controller after acquiring the node network information, the network controller can further generate network state information by using the node network information, and the network state information can represent the conditions of each target node and each link in a monitoring range, so that the network state can be rapidly and accurately monitored by using the node network information, the abnormal reason can be timely determined when the network is abnormal, and further fault recovery is rapidly performed. Network state information can be generated by the monitoring link established at the target node and acquiring node network information sent by the target node based on the monitoring link. The network state information can represent the network condition in the monitoring range information, and the abnormal position can be quickly determined based on the network state information when the network link, the node and the like are abnormal or have faults. The method and the device improve the speed of network abnormity positioning, are beneficial to quickly processing network faults, and solve the problems that the time for troubleshooting the network faults is long, the process for troubleshooting the network faults is complex and the like in the related technology, and the communication cannot be quickly recovered.
Referring to fig. 5, fig. 5 is a specific work flow diagram of a target node according to an embodiment of the present disclosure. The network node equipment in the user-defined network area is a target node, the configuration of network monitoring is monitoring configuration information, and the process of creating a network neighbor information table based on the network node equipment is the process of determining neighbor nodes. It should be noted that the customized network region may cover different network segments, and therefore, the neighbor node of each target node may be a neighbor device node on a link, and may also be a logical neighbor device node, that is, the target node and the neighbor node are designated neighbor device nodes in different network segments. After the network neighbor information table is created, a BFD session is created according to the network neighbor information table and a neighbor node, and a network neighbor communication quality table is created at the same time. The network neighbor communication quality table is the node network information, and the updating and reporting of the node network information can be completed by starting the quality table and updating the state machine. And in the circulating process of the state machine, periodically updating the state machine according to the BFD monitoring state, further updating a network neighbor communication quality table by using the state machine, and reporting the quality table to the network controller. If a network communication fault is detected, the state machine can be updated, the quality table is updated, and the network controller can know the network state in a quality target reporting mode.
Referring to fig. 6, fig. 6 is a schematic diagram of a specific network topology according to an embodiment of the present application. After receiving the "network monitoring" configuration (i.e., the monitoring configuration information), the network node device in the customized network area starts network monitoring according to a network monitoring start-up procedure (i.e., as shown in fig. 5), and periodically reports the network neighbor communication quality table to the network controller. When the link between the sw5 and the sw2 has network failure, the sw2 can quickly detect the communication failure through the BFD module. The BFD module in sw2 reports the monitored communication failures to the "network monitoring" function. And after receiving the communication fault report, the network monitoring module updates the network neighbor communication quality table corresponding to the user-defined network area in the sw2 according to the relevant information of the communication fault report. After the network monitoring module finishes updating the network neighbor communication quality table, the network monitoring module immediately reports the network neighbor communication quality table to the network controller. And after receiving the network neighbor communication quality table reported by the sw2, the network controller updates the network neighbor communication quality table corresponding to the user-defined network area in the network controller. When a network administrator checks the communication state in the user-defined network area through the network controller, the network controller draws the current communication state according to the network neighbor communication quality table in the user-defined network area, and the network administrator can very intuitively check the node or link where the network fault occurs in the current user-defined area.
In the following, the network state monitoring device provided in the embodiment of the present application is introduced, and the network state monitoring device described below and the network state monitoring method described above may be referred to correspondingly.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a network status monitoring device according to an embodiment of the present application, including:
a monitoring range determining module 110, configured to obtain monitoring range information, and determine at least one target node according to the monitoring range information;
a configuration information sending module 120, configured to send monitoring configuration information to each target node, so as to establish a monitoring link between each target node by using the monitoring configuration information;
and a state information generating module 130, configured to receive node network information sent by the target node and obtained based on the monitored link, and generate network state information by using the node network information.
Optionally, the configuration information sending module 120 includes:
a forwarding node determination unit configured to determine a forwarding node in the target node;
and the sending unit is used for sending the monitoring configuration information to the forwarding node so that the forwarding node forwards the monitoring configuration information to the rest target nodes.
Optionally, the state information generating module 130 includes:
the integration unit is used for receiving the node network information respectively sent by each target node and integrating the node network information to obtain link state information;
and the topological graph generating unit is used for generating a network state topological graph by using the link state information and determining the network state topological graph as the network state information.
Optionally, the method further comprises:
the abnormality detection unit is used for carrying out network abnormality detection on the network state information;
and the abnormity alarm unit is used for alarming abnormity if the network abnormity is detected.
In the following, another network status monitoring device provided in the embodiments of the present application is introduced, and the network status monitoring device described below and the network status monitoring method described above may be referred to correspondingly.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another network status monitoring apparatus according to an embodiment of the present application, including:
a configuration information receiving module 210, configured to receive monitoring configuration information sent by a network controller;
a link establishing module 220, configured to establish a monitoring link with a neighboring node by using the monitoring configuration information;
and a network information sending module 230, configured to obtain node network information based on the monitored link, and send the node network information to the network controller.
Optionally, the network information sending module 230 includes:
the updating unit is used for updating a target state machine corresponding to the target monitoring link when the communication state of the target monitoring link is monitored to be changed;
and the sending unit is used for generating node network information based on each state machine and sending the node network information to the network controller.
Optionally, the configuration information receiving module 210 includes:
a forwarding receiving unit, configured to receive the monitoring configuration information forwarded by the forwarding node;
accordingly, the network information sending module 230 includes:
and the forwarding and sending unit is used for sending the node network information to the forwarding node so that the forwarding node sends the node network information to the network controller.
In the following, the electronic device provided by the embodiment of the present application is introduced, and the electronic device described below and the network state monitoring method described above may be referred to correspondingly.
Referring to fig. 9, fig. 9 is a hardware composition framework diagram for a network status monitoring method according to an embodiment of the present disclosure. Wherein the electronic device 100 may include a processor 101 and a memory 102, and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
The processor 101 is configured to control the overall operation of the electronic device 100, so as to complete all or part of the steps in the network status monitoring method; the memory 102 is used to store various types of data to support operation at the electronic device 100, such data may include, for example, instructions for any application or method operating on the electronic device 100, as well as application-related data. The Memory 102 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as one or more of Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk. In the present embodiment, the memory 102 stores therein at least programs and/or data for realizing the following functions:
acquiring monitoring range information, and determining at least one target node according to the monitoring range information;
sending monitoring configuration information to each target node so that each target node establishes a monitoring link by using the monitoring configuration information;
and receiving node network information which is sent by a target node and obtained based on the monitoring link, and generating network state information by utilizing the node network information.
Or the like, or, alternatively,
receiving monitoring configuration information sent by a network controller;
establishing a monitoring link with a neighbor node by using monitoring configuration information;
and acquiring node network information based on the monitoring link, and sending the node network information to the network controller.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 102 or transmitted through the communication component 105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 105 may include: Wi-Fi part, Bluetooth part, NFC part.
The electronic Device 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is configured to perform the network state monitoring method according to the above embodiments.
Of course, the structure of the electronic device 100 shown in fig. 9 does not constitute a limitation of the electronic device in the embodiment of the present application, and in practical applications, the electronic device 100 may include more or less components than those shown in fig. 9, or some components may be combined.
In the following, a computer-readable storage medium provided by the embodiments of the present application is introduced, and the computer-readable storage medium described below and the network state monitoring method described above may be referred to correspondingly.
The present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the network status monitoring method described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for monitoring network conditions, comprising:
acquiring monitoring range information, and determining at least one target node according to the monitoring range information;
sending monitoring configuration information to each target node so that each target node establishes a monitoring link by using the monitoring configuration information;
and receiving node network information which is sent by the target node and obtained based on the monitoring link, and generating network state information by using the node network information.
2. The method according to claim 1, wherein the sending monitoring configuration information to each of the target nodes comprises:
determining a forwarding node in the target node;
and sending the monitoring configuration information to the forwarding node so that the forwarding node can forward the monitoring configuration information to the rest of the target nodes.
3. The method according to claim 1, wherein the receiving node network information sent by the target node and obtained based on the monitored link, and generating network state information by using the node network information comprises:
receiving the node network information respectively sent by each target node, and integrating the node network information to obtain link state information;
and generating a network state topological graph by using the link state information, and determining the network state topological graph as the network state information.
4. The network status monitoring method according to claim 1, further comprising:
performing network anomaly detection on the network state information;
and if the network abnormality is detected, performing abnormality alarm.
5. A method for monitoring network conditions, comprising:
receiving monitoring configuration information sent by a network controller;
establishing a monitoring link with a neighbor node by using the monitoring configuration information;
and acquiring node network information based on the monitoring link, and sending the node network information to the network controller.
6. The method for monitoring network status according to claim 5, wherein the obtaining node network information based on the monitoring link and sending the node network information to the network controller comprises:
when the communication state of a target monitoring link is monitored to be changed, updating a target state machine corresponding to the target monitoring link;
and generating the node network information based on each state machine, and sending the node network information to the network controller.
7. The method according to claim 5, wherein the receiving the monitoring configuration information sent by the network controller comprises:
receiving the monitoring configuration information forwarded by a forwarding node;
correspondingly, the sending the node network information to the network controller includes:
and sending the node network information to the forwarding node so that the forwarding node can send the node network information to the network controller.
8. A network condition monitoring device, comprising:
the monitoring range determining module is used for acquiring monitoring range information and determining at least one target node according to the monitoring range information;
a configuration information sending module, configured to send monitoring configuration information to each target node, so as to establish a monitoring link between each target node by using the monitoring configuration information;
and the state information generating module is used for receiving the node network information which is sent by the target node and is obtained based on the monitoring link, and generating network state information by utilizing the node network information.
9. An electronic device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor for executing the computer program to implement the network condition monitoring method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the network status monitoring method according to any one of claims 1 to 7.
CN202110308839.1A 2021-03-23 2021-03-23 Network state monitoring method and device, electronic equipment and readable storage medium Pending CN113079059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110308839.1A CN113079059A (en) 2021-03-23 2021-03-23 Network state monitoring method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110308839.1A CN113079059A (en) 2021-03-23 2021-03-23 Network state monitoring method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113079059A true CN113079059A (en) 2021-07-06

Family

ID=76613557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110308839.1A Pending CN113079059A (en) 2021-03-23 2021-03-23 Network state monitoring method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113079059A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992540A (en) * 2021-11-01 2022-01-28 创盛视联数码科技(北京)有限公司 Equipment detection method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070180105A1 (en) * 2006-01-30 2007-08-02 Clarence Filsfils Technique for distinguishing between link and node failure using bidirectional forwarding detection (BFD)
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN101710868A (en) * 2009-11-06 2010-05-19 北京中创信测科技股份有限公司 Method for acquiring network data by monitoring equipment and monitoring equipment
CN106549774A (en) * 2015-09-17 2017-03-29 中兴通讯股份有限公司 A kind of link failure report method and forwarding unit based on software defined network
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium
CN110855456A (en) * 2018-08-20 2020-02-28 阿里巴巴集团控股有限公司 Network change method and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070180105A1 (en) * 2006-01-30 2007-08-02 Clarence Filsfils Technique for distinguishing between link and node failure using bidirectional forwarding detection (BFD)
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN101710868A (en) * 2009-11-06 2010-05-19 北京中创信测科技股份有限公司 Method for acquiring network data by monitoring equipment and monitoring equipment
CN106549774A (en) * 2015-09-17 2017-03-29 中兴通讯股份有限公司 A kind of link failure report method and forwarding unit based on software defined network
CN110855456A (en) * 2018-08-20 2020-02-28 阿里巴巴集团控股有限公司 Network change method and equipment
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992540A (en) * 2021-11-01 2022-01-28 创盛视联数码科技(北京)有限公司 Equipment detection method and electronic equipment
CN113992540B (en) * 2021-11-01 2023-06-16 创盛视联数码科技(北京)有限公司 Equipment detection method and electronic equipment

Similar Documents

Publication Publication Date Title
US9817709B2 (en) Systems and methods for automatic replacement and repair of communications network devices
JP5767617B2 (en) Network failure detection system and network failure detection device
WO2020029407A1 (en) Alarm data management method and apparatus, and computer device and storage medium
CN111756571B (en) Cluster node fault processing method, device, equipment and readable medium
CN113328872B (en) Fault repairing method, device and storage medium
CN110324174B (en) Block chain environment detection method, equipment, device and storage medium
US7617086B2 (en) Monitoring simulating device, method, and program
US11349703B2 (en) Method and system for root cause analysis of network issues
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
US11316756B2 (en) Self-tuning networks using distributed analytics
WO2014180450A1 (en) Communications provider network management equipment detection method, device, and computer storage medium
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
CN113079059A (en) Network state monitoring method and device, electronic equipment and readable storage medium
CN114070752B (en) Test method, test device, electronic equipment and computer readable storage medium
CN111585797A (en) Ethernet link switching method, device, equipment and computer readable storage medium
JP6124612B2 (en) Engineering apparatus and engineering method
JP6555721B2 (en) Disaster recovery system and method
CN110086719B (en) Data processing method and device and server
CN116166536A (en) Test method, test device, electronic equipment and storage medium
CN108141406B (en) Method, device and equipment for processing service fault
JP4485344B2 (en) Server apparatus, failure path diagnosis method, and failure path diagnosis program
CN113590434A (en) Cluster alarm method, system, device and medium
JP2005141308A (en) Failure monitoring method and its program
JP6513001B2 (en) Failure detection device, failure detection method, and program
KR101680736B1 (en) Process for checking status of network device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210706