CN113746735A - Detection method, device and equipment of controller and computer storage medium - Google Patents

Detection method, device and equipment of controller and computer storage medium Download PDF

Info

Publication number
CN113746735A
CN113746735A CN202010469153.6A CN202010469153A CN113746735A CN 113746735 A CN113746735 A CN 113746735A CN 202010469153 A CN202010469153 A CN 202010469153A CN 113746735 A CN113746735 A CN 113746735A
Authority
CN
China
Prior art keywords
routing
data
calculation result
determining
controller
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.)
Granted
Application number
CN202010469153.6A
Other languages
Chinese (zh)
Other versions
CN113746735B (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010469153.6A priority Critical patent/CN113746735B/en
Publication of CN113746735A publication Critical patent/CN113746735A/en
Application granted granted Critical
Publication of CN113746735B publication Critical patent/CN113746735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects

Landscapes

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

Abstract

The embodiment of the invention provides a detection method, a detection device, detection equipment and a computer storage medium of a controller. The method comprises the following steps: obtaining routing data and a first calculation result corresponding to the routing data; the first calculation result is obtained by processing the routing data based on the network equipment controller, and a calculation strategy corresponding to the routing data is determined; processing the routing data based on the calculation strategy to obtain a second calculation result; and determining the running state of a network equipment controller according to the second calculation result and the first calculation result, wherein the network equipment controller is used for controlling the network equipment in the network. In this embodiment, a second calculation result is obtained based on the calculation policy and the routing data, and the second calculation result and the first calculation result are detected for data consistency in an active calculation manner, so that the accuracy of the first calculation result can be accurately and effectively identified, and an abnormal operation condition caused by an error in the first calculation result is identified.

Description

Detection method, device and equipment of controller and computer storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for detecting a controller.
Background
Route calculation refers to finding a better path from a source route to a target route based on a routing algorithm, and the path can reduce resource overhead required in the data processing process as much as possible. In the prior art, the process of route calculation includes: and calculating the routing data on the line to obtain a routing calculation result, and automatically issuing the routing calculation result to the routing controller, so that the routing controller can obtain a routing forwarding result corresponding to the routing calculation result. After the route forwarding result is obtained, the route forwarding result and the route calculation result may be analyzed and compared to detect whether the data are consistent and determine the operation state of the route controller.
However, since the route forwarding result is obtained based on the route calculation result, if there is an error in the route calculation result, the above data detection process will have an error, and the accuracy of data detection is reduced.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a computer storage medium for detecting a controller, which may perform a data consistency detection operation on a first calculation result corresponding to routing data by using a second calculation result to identify whether the first calculation result is accurate, and may determine an operation state of a network device controller for generating the first calculation result according to the identification result.
In an online aspect, an embodiment of the present invention provides a method for detecting a controller, including:
obtaining routing data and a first calculation result corresponding to the routing data, wherein the first calculation result is obtained by processing the routing data based on a network equipment controller;
determining a computational policy corresponding to the routing data;
processing the routing data based on the calculation strategy to obtain a second calculation result;
and determining the running state of a network equipment controller according to the second calculation result and the first calculation result, wherein the network equipment controller is used for controlling network equipment in the network.
In a second aspect, an embodiment of the present invention provides a detection apparatus for a controller, including:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring routing data and a first calculation result corresponding to the routing data, and the first calculation result is obtained by processing the routing data based on a network equipment controller;
a determining module for determining a computational policy corresponding to the routing data;
the processing module is used for processing the routing data based on the calculation strategy to obtain a second calculation result;
the determining module is configured to determine an operating state of a network device controller according to the second calculation result and the first calculation result, where the network device controller is configured to control a network device in a network.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method of detection for a controller in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, where the computer program is used to enable a computer to implement the detection method of the controller in the first aspect when executed.
The detection method, apparatus, device and computer storage medium for a controller provided in this embodiment determine a calculation policy corresponding to routing data by obtaining the routing data and a first calculation result corresponding to the routing data, and process the routing data based on the calculation policy to obtain a second calculation result, then determining the operation state of the network equipment controller according to the second calculation result and the first calculation result, effectively realizing the detection of data consistency of the second calculation result and the first calculation result in an active calculation mode, thereby, the accuracy of the first calculation result can be accurately and effectively recognized, that is, the operation state of the network device controller can be recognized, and in addition, the method can also identify the condition of abnormal operation of the route caused by the error of the first calculation result, thereby improving the practicability of the method.
In a fifth aspect, an embodiment of the present invention provides a method for detecting an operating state of a device, where the method includes:
acquiring operation data of first equipment and a first processing result corresponding to the operation data, wherein the first processing result is obtained by processing the operation data based on the first equipment;
determining a computational policy corresponding to the operational data;
processing the operating data based on the calculation strategy to obtain a second processing result;
and determining the running state of the first equipment according to the second processing result and the first processing result.
In a sixth aspect, an embodiment of the present invention provides an apparatus for detecting an operating state of a device, including:
the second acquisition module is used for acquiring operation data of first equipment and a first processing result corresponding to the operation data, wherein the first processing result is obtained by processing the operation data based on the first equipment;
a second determination module for determining a calculation strategy corresponding to the operational data;
the second processing module is used for processing the operating data based on the calculation strategy to obtain a second processing result;
and the second determining module is used for determining the running state of the first equipment according to the second processing result and the first processing result.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory is configured to store one or more computer instructions, and the one or more computer instructions, when executed by the processor, implement a method for detecting an operation status of a device in the fifth aspect.
In an eighth aspect, an embodiment of the present invention provides a computer storage medium, which is used for storing a computer program, and the computer program enables a computer to implement the method for detecting the device operating state in the fifth aspect when executed.
The method, apparatus, device and computer storage medium for detecting the operating status of a device provided in this embodiment, determining a calculation strategy corresponding to the operation data by acquiring the operation data and a first processing result corresponding to the operation data, and processing the operation data based on the calculation strategy to obtain a second processing result, then the running state of the first equipment is determined according to the second processing result and the first processing result, the detection of data consistency of the second calculation result and the first processing result in an active calculation mode is effectively realized, thereby, the accuracy of the first processing result can be accurately and effectively identified, that is, the operation state of the first device is identified, and in addition, the method can also identify the condition of abnormal data operation caused by the error of the first processing result, thereby improving the practicability of the method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1a is a schematic view of an application scenario of a detection method of a controller according to an embodiment of the present invention;
fig. 1b is a schematic view of an application scenario of a detection method of a controller according to an embodiment of the present invention;
fig. 1c is a schematic view of an application scenario of a detection method of a controller according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a detection method of a controller according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of determining an operating state of a network device controller according to the second calculation result and the first calculation result according to the embodiment of the present invention;
fig. 4 is a schematic flowchart of determining an operating state of a network device controller according to the second calculation result and the first calculation result according to the embodiment of the present invention;
fig. 5 is a schematic flowchart of determining an operating state of the network device controller according to the first time difference according to the embodiment of the present invention;
fig. 6 is a schematic flowchart of a detection method of a controller according to another embodiment of the present invention;
fig. 7 is a schematic flowchart of another detection method of a controller according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of determining an operating state of the routing controller according to the forwarding routing data and the routing data according to the embodiment of the present invention;
fig. 9 is a schematic flowchart of determining an operating state of the routing controller according to the second calculation result and the forwarding calculation result according to the embodiment of the present invention;
fig. 10 is a schematic flowchart of determining an operating state of the routing controller according to the second calculation result and the forwarding calculation result according to the embodiment of the present invention;
fig. 11 is a schematic flowchart of determining an operating state of the routing controller according to the second time difference according to the embodiment of the present invention;
fig. 12 is a schematic flowchart illustrating a detection method of a controller according to another embodiment of the present invention;
fig. 13 is a schematic flowchart of a process of acquiring routing data according to an embodiment of the present invention;
fig. 14 is a schematic flowchart of processing the routing data based on the computation policy to obtain a second computation result according to the embodiment of the present invention;
fig. 15 is a schematic view of an application scenario of a detection method of a controller according to an embodiment of the present invention;
fig. 16 is a schematic flowchart of a detection method of a controller according to an embodiment of the present invention;
fig. 17 is a schematic flowchart of a method for detecting an operating state of a device according to an embodiment of the present invention;
fig. 18 is a schematic structural diagram of a detection device of a controller according to an embodiment of the present invention;
fig. 19 is a schematic structural diagram of an electronic device corresponding to the detection device of the controller provided in the embodiment shown in fig. 18;
fig. 20 is a schematic structural diagram of a device for detecting an operating state of an apparatus according to an embodiment of the present invention;
fig. 21 is a schematic structural diagram of an electronic device corresponding to the apparatus for detecting an operating state of the device shown in fig. 20 according to the embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B 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.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
In order to facilitate understanding of the technical solutions of the present application, the following briefly describes the prior art:
in the prior art, when performing routing calculation, test routing cases corresponding to each application scenario are configured in advance, so as to find out problems or defects of a routing controller or a network device controller in each application scenario based on the configured test routing cases. Specifically, when the analysis processing is performed based on the test route case, the method includes the following steps: and performing routing calculation on the line based on the test routing case to obtain a routing calculation result, and automatically issuing the routing calculation result to the routing controller, so that the routing controller can obtain a routing forwarding result corresponding to the routing calculation result. After the route forwarding result is obtained, the route forwarding result and the route calculation result may be analyzed and compared to detect whether the data are consistent and determine the operation state of the route controller.
However, because the number of application scenarios corresponding to the test routing case is limited, it is difficult to completely cover all application scenarios and test points, and it is difficult to actively discover some abnormal situations that are not in the scope of the test routing case through a data processing process. In addition, when the routing forwarding result and the routing calculation result are analyzed and compared, only whether the data are consistent or not can be identified, but the accuracy and reliability of the data cannot be detected or identified, and if a deviation occurs when the test routing case is subjected to routing calculation on line, the whole data processing process is wrong, so that the operation state of the routing controller cannot be accurately detected.
In order to overcome the above technical problem, the present embodiment provides a detection method for a controller, and in an implementation manner, an execution main body of the detection method for the controller may include a network device controller and a server, and specifically, as shown in fig. 1a, the network device controller and the server in the present embodiment may execute the following steps:
the network device controller is used for acquiring the routing data through the online database, calculating the routing data based on a pre-configured calculation strategy to acquire a first calculation result corresponding to the routing data, and then storing the acquired first calculation result in the online database.
It should be noted that the on-line database stores the routing data and the first calculation result, and specifically, the first calculation result is obtained by analyzing and processing the routing data by using a calculation policy through the network device controller.
And the server is used for acquiring the routing data and the first calculation result through the online database, and the acquired routing data is online routing data, so that the online routing data is not limited by the application of each application scene. After the routing data is obtained, a calculation strategy corresponding to the routing data can be determined, and the routing data is calculated based on the calculation strategy, so that a second calculation result can be obtained; the second calculation result and the first calculation result may then be analyzed to determine an operational status of the network device controller.
In the implementation mode, because the routing data which is actually operated on the line can be accurately acquired, the application scenes corresponding to the actual routing data are richer, and the covered application scenes are more comprehensive, so that the application is not limited by the use of each application scene, and in addition, the data consistency detection can be accurately carried out on the first calculation result through the second calculation result, so that the operation state of the network equipment controller can be accurately determined.
In another implementation manner, the execution subject of the detection method of the controller may include a network device controller, a server, and a routing controller, and specifically, as shown in fig. 1b, the network device controller, the server, and the routing controller in this embodiment may perform the following steps:
the network device controller is used for acquiring the routing data through the online database, calculating the routing data based on a pre-configured calculation strategy to acquire a first calculation result corresponding to the routing data, and then storing the acquired first calculation result in the online database.
It should be noted that the on-line database stores the routing data and the first calculation result, and specifically, the first calculation result is obtained by analyzing and processing the routing data by using a calculation policy through the network device controller.
Furthermore, the network device controller may forward the acquired routing data and the first calculation result to the routing controller, so that the routing controller may acquire forwarding routing data corresponding to the routing data and a forwarding calculation result corresponding to the first calculation result, and perform a corresponding operation based on the forwarding routing data and the forwarding calculation result.
The server can obtain the routing data, the first calculation result and the calculation strategy corresponding to the routing data through the online database, and calculate the routing data based on the calculation strategy, so that the second calculation result can be obtained. Then, the server can obtain the forwarding route data and the forwarding calculation result from the route controller, analyze and compare the route data with the forwarding route data, and determine that the running state of the route controller is an abnormal state when the route data is inconsistent with the forwarding route data; when the routing data is consistent with the forwarding routing data, analyzing and comparing a second calculation result with a forwarding calculation result, and when the second calculation result is inconsistent with the forwarding calculation result, determining that the running state of the routing controller is an abnormal state; and when the second calculation result is consistent with the forwarding calculation result, determining that the running state of the routing controller is a normal state.
In another implementation manner, the execution subject of the detection method of the controller may include a network device controller, a server, and a routing controller, and specifically, as shown in fig. 1c, the network device controller, the server, and the routing controller in this embodiment may perform the following steps:
the network device controller is used for acquiring the routing data through the online database, calculating the routing data based on a pre-configured calculation strategy to acquire a first calculation result corresponding to the routing data, and then storing the acquired first calculation result in the online database.
It should be noted that the on-line database stores the routing data and the first calculation result, and specifically, the first calculation result is obtained by analyzing and processing the routing data by using a calculation policy through the network device controller.
Furthermore, the network device controller may forward the acquired routing data and the first calculation result to the routing controller, so that the routing controller may acquire forwarding routing data corresponding to the routing data and a forwarding calculation result corresponding to the first calculation result, and perform a corresponding operation based on the forwarding routing data and the forwarding calculation result.
The server can obtain the routing data and the first calculation result through an online database, and the obtained routing data is actual routing data on the line, so the routing data is not limited by the application of each application scene. After the routing data is obtained, a calculation strategy corresponding to the routing data can be determined, and the routing data is calculated based on the calculation strategy, so that a second calculation result can be obtained; the second calculation result and the first calculation result may then be analyzed to determine an operational status of the network device controller.
In addition, the server can also obtain forwarding routing data and a forwarding calculation result from the routing controller, analyze and compare the routing data with the forwarding routing data, and determine that the running state of the routing controller is an abnormal state when the routing data is inconsistent with the forwarding routing data; when the routing data is consistent with the forwarding routing data, analyzing and comparing a second calculation result with a forwarding calculation result, and when the second calculation result is inconsistent with the forwarding calculation result, determining that the running state of the routing controller is an abnormal state; and when the second calculation result is consistent with the forwarding calculation result, determining that the running state of the routing controller is a normal state.
In the detection method of the controller provided in this embodiment, the actual routing data and the first calculation result corresponding to the routing data are obtained through the on-line database, the server processes the routing data based on the calculation policy to obtain the second calculation result, and then the second calculation result and the first calculation result are used to determine the operation state of the network device controller; in addition, the method can also obtain the forwarding routing data and the forwarding calculation result through the routing controller, and determine the operation state of the routing controller based on the routing data, the forwarding calculation result and the first calculation result, so that the detection of data consistency of the second calculation result and the first calculation result in an active calculation mode is effectively realized, the identification of the operation state of the network equipment controller is realized, in addition, the method can also identify the condition of abnormal routing operation caused by the error of the first calculation result, and the application range of the method is further improved.
In order to clearly understand the implementation process of the detection method of the controller, the route detection process performed by the server is described in detail below.
Fig. 2 is a schematic flowchart of a detection method of a controller according to an embodiment of the present invention; referring to fig. 2, the embodiment provides a detection method of a controller, where an execution main body of the detection method of the controller may be a detection device of the controller, and in a specific application, the detection device of the controller may be a bypass server, and it is understood that the bypass server may be implemented as software, or a combination of software and hardware. Specifically, the method may include:
step S201: and acquiring the routing data and a first calculation result corresponding to the routing data, wherein the first calculation result is obtained by processing the routing data based on the network equipment controller.
The routing data may refer to routing data to be actually forwarded and reported, and the routing data may include at least one of the following: destination address, netmask, next hop IP address, output interface, etc. Of course, the routing data may not only include the above-mentioned examples, but also other similar data information may be set by those skilled in the art according to the specific application requirement and design requirement, and will not be described herein again.
In addition, obtaining the routing data and the first calculation result corresponding to the routing data may include:
step S2011: and acquiring the routing data and a first calculation result corresponding to the routing data through an online database, wherein the routing data and the first calculation result corresponding to the routing data are stored in the online database.
Wherein the online database may include at least one of: relational database MySQL, relational database Access, and the like. The on-line database stores routing data and a first calculation result, where the first calculation result may be obtained after the network device controller analyzes and processes the routing data, and specifically, the network device controller may obtain the routing data from the on-line database and analyze and process the routing data according to a preset calculation policy, so as to obtain a first calculation result corresponding to the routing data; after the first calculation result is obtained, the first calculation result may be stored in an online database, so that the server may obtain the routing data and the first calculation result corresponding to the routing data through the online database.
It may be understood that the specific implementation manner for obtaining the routing data and the first calculation result corresponding to the routing data is not limited to the implementation manner defined above, and those skilled in the art may set the implementation manner according to specific application requirements and design requirements as long as the accuracy and reliability of obtaining the routing data and the first calculation result corresponding to the routing data can be ensured, and details are not described herein again.
Step S202: a computational policy corresponding to the routing data is determined.
Wherein, after the route data is obtained, a calculation strategy corresponding to the route data can be determined based on the route data. Specifically, an implementation manner is that a mapping relationship between a data identifier of the routing data and a calculation policy is preconfigured, the calculation policy corresponding to the routing data is determined based on the data identifier and the mapping relationship by obtaining the data identifier of the routing data, and the calculation policy may include a to-be-processed routing node corresponding to the routing data, so that when the calculation policy is used to analyze the routing data, an operating calculation node for analyzing the routing data may be limited. It should be noted that the calculation policy is the same as the calculation policy corresponding to the analysis processing of the routing data by the network device controller, that is, the logic of the analysis processing of the routing data by the server is the same as the logic of the analysis processing of the routing data by the network device controller.
Step S203: and processing the routing data based on the calculation strategy to obtain a second calculation result.
When the method for detecting the running state of the device is applied to the bypass server, the second processing result may be a bypass calculation result obtained after the bypass server processes the running data based on the calculation policy.
Step S204: and determining the running state of a network equipment controller according to the second calculation result and the first calculation result, wherein the network equipment controller is used for controlling the network equipment in the network.
After the calculation strategy is obtained, the routing data can be processed based on the calculation strategy, so that a second calculation result can be obtained; after the second calculation result is obtained, the second calculation result may be analyzed and compared with the first calculation result, and the operation state of the network device controller may be determined according to the analysis and comparison result. Specifically, referring to fig. 3, in this embodiment, determining the operating state of the network device controller according to the second calculation result and the first calculation result may include:
step S301: and detecting whether the second calculation result is consistent with the first calculation result.
Step S302: and when the second calculation result is consistent with the first calculation result, determining that the running state of the network equipment controller is a normal state. Alternatively, the first and second electrodes may be,
step S303: and when the second calculation result is inconsistent with the first calculation result, determining that the running state of the network equipment controller is an abnormal state.
After the second calculation result and the first calculation result are obtained, whether the second calculation result is consistent with the first calculation result or not can be detected, and when the second calculation result is consistent with the first calculation result, the routing data and the first calculation result are more accurate, so that the operation state of the network equipment controller can be determined to be a normal state. When the second calculation result is inconsistent with the first calculation result, it is indicated that the routing data and the first calculation result have a deviation, and further, the operation state of the network equipment controller can be determined to be an abnormal state.
In the detection method of the controller provided in this embodiment, the routing data and the first calculation result corresponding to the routing data are obtained, the calculation policy corresponding to the routing data is determined, then the routing data is processed based on the calculation policy, the second calculation result is obtained, and the operating state of the network device controller is determined according to the second calculation result and the first calculation result, because the routing data is the real-time routing data of the online database, and the application scenarios corresponding to the real-time routing data are richer, and the covered application scenarios are more comprehensive, the method in this embodiment is not limited by the application of each application scenario, thereby effectively realizing the detection of data consistency of the second calculation result and the first calculation result by means of active calculation, and thus being capable of accurately and effectively identifying the accuracy of the first calculation result, the method also can identify the abnormal condition of the route operation caused by the error of the first calculation result, thereby improving the practicability of the method.
Fig. 4 is a schematic flowchart of determining an operating state of a network device controller according to the second calculation result and the first calculation result according to the embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 4, in order to improve the accuracy and reliability of the method, in this embodiment, determining the operating state of the network device controller according to the second calculation result and the first calculation result may include:
step S401: a first time difference between the second calculation result and the first calculation result is obtained.
Step S402: and determining the running state of the network equipment controller according to the first time difference.
After the second calculation result and the first calculation result are obtained, a first time difference between the second calculation result and the first calculation result may be obtained, specifically, a bypass operation time corresponding to the second calculation result and an original calculation time corresponding to the first calculation result may be obtained, and the first time difference between the second calculation result and the first calculation result is obtained through the bypass operation time and the original calculation time. After the first time difference is obtained, whether the operation state of the network device controller is an abnormal state may be detected according to the first time difference. Specifically, referring to fig. 5, in this embodiment, determining the operating state of the network device controller according to the first time difference may include:
step S4021: the first time difference is compared to a preset time threshold.
Step S4022: and when the first time difference is larger than a preset time threshold, determining that the running state of the network equipment controller is an abnormal state. Alternatively, the first and second electrodes may be,
step S4023: and when the first time difference is smaller than or equal to the preset time threshold, determining that the running state of the network equipment controller is a normal state.
The preset time threshold is used for identifying that the delay state of the network equipment controller is the maximum time limit of the normal state, after the first time difference is obtained, the first time difference can be analyzed and compared with the preset time threshold, when the first time difference is larger than the preset time threshold, the first time difference between the second calculation result and the first calculation result is proved to exceed the maximum time limit used for identifying that the delay state of the network equipment controller is the normal state, and then the running state of the network equipment controller is proved to be the abnormal state. Similarly, when the first time difference is smaller than or equal to the preset time threshold, the operation state of the network device controller may be determined to be a normal state.
In this embodiment, the first time difference is compared with a preset time threshold, and when the first time difference is greater than the preset time threshold, it is determined that the running state of the network device controller is an abnormal state; when the first time difference is smaller than or equal to the preset time threshold, the running state of the network equipment controller is determined to be a normal state, so that the running state of the network equipment controller is accurately identified, and the stability and the reliability of the method are further improved.
Fig. 6 is a schematic flowchart of a detection method of a controller according to another embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 6, after determining that the operation state of the routing controller is an abnormal state, the method in this embodiment may further include:
step S601: and generating first alarm information according to the abnormal state of the network equipment controller.
Step S602: and performing alarm indication based on the first alarm information.
When the network device controller is in an abnormal state, in order to enable a user to obtain the running state of the network device controller in time, first warning information may be generated according to the abnormal state of the network device controller, where the first warning information may include an identity of the network device controller and state identification information corresponding to the abnormal state. After the first alarm information is generated, an alarm indication may be performed based on the first alarm information, and the alarm indication may include sound and light alarm information, an information transmission alarm, and the like, so that the user may know the abnormal state of the network device controller based on the first alarm information.
In the embodiment, the first warning information is generated according to the abnormal state of the network equipment controller, and then the warning indication is carried out based on the first warning information, so that the user can effectively know the abnormal state of the network equipment controller in time, the user can adjust and maintain the network equipment controller in time, and the working stability and reliability of the network equipment controller are further ensured.
Fig. 7 is a schematic flowchart of another detection method of a controller according to an embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 7, the method in this embodiment may further include:
step S701: and acquiring forwarding route data which is stored in the route controller and corresponds to the route data.
Step S702: and determining the running state of the routing controller according to the forwarding routing data and the routing data.
The routing controller is in communication connection with the network equipment controller, and the network equipment controller can forward the routing data to the routing controller, so that the routing controller can acquire and store forwarding routing data corresponding to the routing data; so that the server can acquire the forwarding routing data corresponding to the routing data stored in the routing controller, and after acquiring the forwarding routing data, the forwarding routing data and the routing data can be analyzed and compared to determine the running state of the routing controller. Specifically, referring to fig. 8, in this embodiment, determining the operation state of the routing controller according to the forwarding routing data and the routing data may include:
step S7021: the forwarding routing data is compared with the routing data.
Step S7022: and when the forwarding routing data is inconsistent with the routing data, determining that the running state of the routing controller is an abnormal state. Alternatively, the first and second electrodes may be,
step S7023: and when the forwarding routing data is consistent with the routing data, acquiring a forwarding calculation result which is stored in the routing controller and corresponds to the first calculation result, and determining the running state of the routing controller according to the second calculation result and the forwarding calculation result.
After the forwarding route data and the route data are obtained, the forwarding route data and the route data can be analyzed and compared to identify whether the forwarding route data and the route data are consistent. Specifically, when the forwarding routing data is inconsistent with the routing data, it may be determined that the operation state of the routing controller is an abnormal state. When the forwarding routing data is consistent with the routing data, in order to accurately identify whether the operation state of the routing controller is a normal state, the forwarding calculation result corresponding to the first calculation result stored in the routing controller may be obtained, and then the second calculation result and the forwarding calculation result may be analyzed and compared to determine the operation state of the routing controller.
It should be noted that the forwarding calculation result stored in the routing controller is obtained based on the first calculation result issued by the network device controller, specifically, the network device controller may forward the first calculation result corresponding to the routing data to the routing controller, so that the routing controller may obtain and store the forwarding calculation result corresponding to the first calculation result, so that the server may obtain the forwarding calculation result corresponding to the first calculation result stored in the routing controller, and after obtaining the forwarding calculation result, the second calculation result and the forwarding calculation result may be analyzed and compared to determine the operating state of the routing controller. Preferably, referring to fig. 9, in this embodiment, determining the operation state of the routing controller according to the second calculation result and the forwarding calculation result may include:
step S901: and detecting whether the second calculation result is consistent with the forwarding calculation result.
Step S902: and when the second calculation result is consistent with the forwarding calculation result, determining that the running state of the routing controller is a normal state. Alternatively, the first and second electrodes may be,
step S903: and when the second calculation result is inconsistent with the forwarding calculation result, determining that the running state of the routing controller is an abnormal state.
After the second calculation result and the forwarding calculation result are obtained, whether the second calculation result is consistent with the forwarding calculation result or not can be detected, and when the second calculation result is consistent with the forwarding calculation result, the running state of the routing controller can be determined to be a normal state; when the second calculation result is inconsistent with the forwarding calculation result, it may be determined that the operation state of the routing controller is an abnormal state.
In the embodiment, the forwarding routing data corresponding to the routing data and stored in the routing controller is obtained, and then the running state of the routing controller is determined according to the forwarding routing data and the routing data, so that the normal state or the abnormal state of the routing controller is effectively and accurately identified, and the stability and the reliability of the method are further improved.
Fig. 10 is a schematic flowchart of determining an operating state of the routing controller according to the second calculation result and the forwarding calculation result according to the embodiment of the present invention; based on the foregoing embodiment, with continued reference to fig. 10, in this embodiment, determining the operating state of the routing controller according to the second calculation result and the forwarding calculation result may further include:
step S1001: and acquiring a second time difference between the second calculation result and the forwarding calculation result.
Step S1002: and determining the running state of the routing controller according to the second time difference.
After the second calculation result and the forwarding calculation result are obtained, a second time difference between the second calculation result and the forwarding calculation result may be obtained, specifically, a bypass operation time corresponding to the second calculation result and a forwarding calculation time corresponding to the forwarding calculation result may be obtained, and the second time difference between the second calculation result and the forwarding calculation result is obtained through the bypass operation time and the forwarding calculation time. After the second time difference is obtained, whether the operation state of the routing controller is an abnormal state may be detected according to the second time difference. Specifically, referring to fig. 11, in this embodiment, determining the operating state of the routing controller according to the second time difference may include:
step S10021: the second time difference is compared to a preset time threshold.
Step S10022: and when the second time difference is larger than the preset time threshold, determining that the running state of the routing controller is an abnormal state. Alternatively, the first and second electrodes may be,
step S10023: and when the second time difference is smaller than or equal to the preset time threshold, determining that the running state of the routing controller is a normal state.
The preset time threshold is used for identifying that the delay state of the routing controller is the maximum time limit of the normal state, after the second time difference is obtained, the second time difference can be analyzed and compared with the preset time threshold, when the second time difference is greater than the preset time threshold, it is indicated that the second time difference between the second calculation result and the forwarding calculation result exceeds the maximum time limit used for identifying that the delay state of the routing controller is the normal state, and further, it is indicated that the running state of the routing controller is the abnormal state. Similarly, when the second time difference is smaller than or equal to the preset time threshold, the operation state of the routing controller may be determined to be a normal state.
In this embodiment, the second time difference is compared with the preset time threshold, and when the second time difference is greater than the preset time threshold, it is determined that the running state of the routing controller is an abnormal state; when the second time difference is smaller than or equal to the preset time threshold, the running state of the routing controller is determined to be a normal state, so that the running state of the routing controller is effectively and accurately identified, and the stability and the reliability of the method are further improved.
Fig. 12 is a schematic flowchart illustrating a detection method of a controller according to another embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 12, after determining that the operation state of the routing controller is an abnormal state, the method in this embodiment may further include:
step S1201: and generating second alarm information according to the abnormal state of the routing controller.
Step S1202: and performing alarm indication based on the second alarm information.
When the routing controller is in an abnormal state, in order to enable a user to obtain the running state of the routing controller in time, second warning information may be generated according to the abnormal state of the routing controller, where the second warning information may include an identity of the routing controller and state identification information corresponding to the abnormal state. After the second alarm information is generated, an alarm indication may be performed based on the second alarm information, and the alarm indication may include sound and light alarm information, an information transmission alarm, and the like, so that the user may know the abnormal state of the routing controller based on the second alarm information.
In the embodiment, the second alarm information is generated according to the abnormal state of the routing controller, and then the alarm indication is performed based on the second alarm information, so that the user can effectively know the abnormal state of the routing controller in time, the user can adjust and maintain the routing controller in time, and the stability and reliability of the operation of the routing controller are ensured.
Fig. 13 is a schematic flowchart of a process of acquiring routing data according to an embodiment of the present invention; on the basis of any of the above embodiments, with continued reference to fig. 13, the acquiring of the routing data in this embodiment may include:
step S1301: all route data corresponding to all routes is obtained.
Step S1302: and acquiring the changed routing data in all the routing data.
Step S1303: and determining the changed routing data as the routing data.
When acquiring the route data, in order to ensure the quality and efficiency of data processing, the route data may be at least a part of all route data corresponding to all routes. Specifically, all the routing data corresponding to all the routes may be stored in the online database, and in order to ensure the quality and efficiency of data processing, the changed routing data in all the routing data may be identified first, and then the server may acquire the changed routing data from the online database, and then may determine the changed routing data as the routing data.
For example, all the routing data corresponding to all the routes may include routing data a, routing data B, routing data C, and routing data D, and then whether the all the routing data change is detected, and if it is assumed that the routing data C and the routing data D change is identified, the routing data C and the routing data D may be determined as the routing data, and at this time, the server may acquire only the routing data C and the routing data D from the on-line database, thereby effectively improving the quality and efficiency of processing the routing data.
In this embodiment, the changed routing data is determined as the routing data, that is, only the changed routing data is subjected to the routing detection operation, and the routing data that is not changed is not required to be subjected to the routing detection operation, so that the quality and efficiency of processing the routing data are effectively ensured, and the practicability of the method is further improved.
Fig. 14 is a schematic flowchart of processing the routing data based on the computation policy to obtain a second computation result according to the embodiment of the present invention; on the basis of any one of the foregoing embodiments, with reference to fig. 14, in this embodiment, a specific implementation manner of processing the routing data based on the computation policy to obtain the second computation result is not limited, and a person skilled in the art may set the second computation result according to a specific application requirement and a design requirement, and it is preferable that the processing the routing data based on the computation policy in this embodiment to obtain the second computation result includes:
step S1401: a topology corresponding to the routing data is obtained.
Step S1402: and calculating the routing data based on the topological structure and the calculation strategy to obtain a second calculation result.
After the routing data is obtained, the routing data may be analyzed and identified to obtain a topology corresponding to the routing data. Specifically, the embodiment does not limit the specific implementation manner of obtaining the topology structure corresponding to the routing data, and a person skilled in the art may set the topology structure according to specific application requirements and design requirements, where an implementation manner is as follows: and analyzing and processing the routing data by using a preset machine learning model so as to acquire a topological structure corresponding to the routing data, wherein the machine learning model is trained in advance to be used for determining the topological structure of the routing data. Or, another realizable manner is to analyze and identify the routing data by using a preset structure identification algorithm to obtain the topology structure corresponding to the routing data.
Of course, a specific implementation manner of obtaining the topology structure corresponding to the routing data is not limited to the above-mentioned implementation manner, and a person skilled in the art may also use other manners to obtain the topology structure corresponding to the routing data as long as the accuracy and reliability of obtaining the topology structure corresponding to the routing data can be ensured, which is not described herein again.
After the topology corresponding to the routing data is obtained, the routing data may be calculated based on the topology and the calculation policy, so that a second calculation result may be obtained. It is understood that the topology corresponding to the routing data may include a plurality of routing nodes and connection relationships between the plurality of routing nodes, and the routing nodes to be processed (which may be at least a part of all routing nodes included in the topology) may be included in the calculation policy, so that the routing data may be analyzed and processed based on the calculation policy and the topology to obtain the second calculation result corresponding to the calculation policy.
In the embodiment, the topological structure corresponding to the routing data is obtained, and then the routing data is calculated based on the topological structure and the calculation strategy to obtain the second calculation result, so that the accuracy and the reliability of obtaining the second calculation result are effectively ensured.
On the basis of the foregoing embodiment, after obtaining the second calculation result, the method in this embodiment may further include:
step S1403: and determining whether at least part of the communication link corresponding to the topological structure is normal according to the second calculation result. Alternatively, the first and second electrodes may be,
step S1404: and determining whether the running state of at least part of the routing nodes corresponding to the topological structure is normal or not according to the second calculation result.
After the second calculation result is obtained based on the calculation policy, the to-be-processed routing node may be included in the calculation policy, and the to-be-processed routing node may correspond to at least part of the communication link in the topology. Since the obtained second calculation result corresponds to at least part of the communication links corresponding to the topology, it is possible to determine whether or not at least part of the communication links corresponding to the topology are normal based on the second calculation result. Specifically, when it is determined that the second calculation result is correct in operation, it may be determined that the operation state of at least a part of the communication link corresponding to the second calculation result is a normal state; when the second calculation result is in error, the operation state of at least part of the communication link corresponding to the second calculation result can be determined to be an abnormal state.
In another implementation manner, when it is determined that the second calculation result is error-free and the communication link corresponding to the second calculation result is the serial link, it may be determined that the operation state of the serial link corresponding to the second calculation result is a normal state; when the second calculation result is calculated incorrectly and the communication link corresponding to the second calculation result is the serial link, it may be determined that the operation state of the serial link corresponding to the second calculation result is an abnormal state.
Similarly, since the topology includes a plurality of routing nodes, the computation policy includes the routing nodes to be processed. Therefore, after the second calculation result is obtained based on the calculation strategy, whether the operation state of at least part of the routing nodes corresponding to the topological structure is normal or not can be determined based on the second calculation result. Specifically, when it is determined that the second calculation result is correct in operation, it may be determined that the operation state of at least part of the routing nodes corresponding to the second calculation result is a normal state; when the second calculation result is in error, the operating state of at least part of the routing nodes corresponding to the second calculation result can be determined to be an abnormal state.
In this embodiment, after the second calculation result is obtained, it is effectively achieved that whether at least part of the communication links corresponding to the topology structure are normal is determined according to the second calculation result, and whether the operating state of at least part of the routing nodes corresponding to the topology structure is normal can also be determined according to the second calculation result, thereby further ensuring the stability and reliability of the method.
In specific application, referring to fig. 15 to fig. 16, an execution main body of the detection method for the controller includes a server, where the server is connected to the network device controller and the routing controller in a communication manner, the server includes a bypass processing logic for processing routing data, and in addition, the server may be deployed in a cluster deployment manner to improve quality and efficiency of data processing. In the following, taking data processing on any one example data as an example, the method may include the following steps:
step S1: the network equipment controller acquires the routing data from the online database, analyzes and processes the routing data by utilizing the calculation strategy, thereby acquiring an original routing calculation result corresponding to the routing data, and then storing the original routing calculation result and the routing data in the online database.
The online database stores routing instance data of thousands of users, the routing instance data of each user can be an instance, so that the quality and efficiency of analyzing and processing the routing instance data can be improved, whether the routing instance data of the users change can be detected, specifically, timestamp information of the routing instance data of the users can be obtained, whether the routing instance data change is determined based on the timestamp information, that is, whether the timestamp information between the current routing instance data and the historical routing instance data is the same or not is detected, when the timestamp information of the current routing instance data is different from the timestamp information of the historical routing instance data, the routing instance data of the users can be determined to have changed, and further, the routing instance data which has changed can be determined as the routing data, therefore, data calculation and early warning processing of bypassing can be effectively realized by taking single routing instance data as dimensionality, and multiple different routing instance data can be processed in parallel, so that the flexibility and reliability of the detection method of the controller are further improved.
Step S2: the server acquires the on-line original routing information through the on-line read-only database, determines a bypass calculation strategy corresponding to the on-line original routing information, wherein the bypass calculation strategy is the same as a calculation strategy for analyzing and processing routing data by the network equipment controller, and analyzes and calculates the on-line original routing information by utilizing the bypass calculation strategy to acquire a second calculation result.
Step S3: and analyzing and comparing the second calculation result with the original route calculation result to identify whether the running state of the route controller is a normal state.
The server performs bypass calculation on a bypass calculation strategy (which is consistent with a calculation strategy for analyzing and processing the routing data by the network equipment controller), then obtains a second calculation result, and compares the second calculation result with an original route calculation result, so that whether the running state of the network equipment controller is in a normal state can be verified, and if the running state of the network equipment controller is not consistent with the original route calculation result, an alarm indication can be performed on the running state of the network equipment controller, so that the running state of the network equipment controller can be ensured to be within a preset time limit.
In another implementation manner, the method in this embodiment may include the following steps:
step S11: the network device controller can acquire the routing data from the online database, analyze and process the routing data by using the calculation strategy, thereby acquiring an original routing calculation result corresponding to the routing data, and then store the original routing calculation result and the routing data in the online database.
Step S12: and the network equipment controller forwards the original route calculation result and the route data to the route controller, so that the route controller can acquire the forwarding route data corresponding to the route data and the forwarding route calculation result corresponding to the original route calculation result.
Step S13: the server acquires the on-line original routing information through the on-line read-only database, determines a bypass calculation strategy corresponding to the on-line original routing information, wherein the bypass calculation strategy is the same as a calculation strategy for analyzing and processing routing data by the network equipment controller, and analyzes and calculates the on-line original routing information by utilizing the bypass calculation strategy to acquire a second calculation result.
Step S14: and analyzing and comparing the second calculation result with the original route calculation result, the on-line original route information with the forwarding route data, and the second calculation result with the forwarding route calculation result to identify whether the running state of the network equipment controller and the running state of the route controller are normal or not.
In some examples, the method in this application embodiment may further include:
step S4: when the running state of the routing controller/the running state of the network device controller is an abnormal state, the alarm indication information can be generated based on the abnormal state of the routing controller/the abnormal state of the network device controller, so that a user can timely know the abnormal state of the routing controller/the network device controller based on the alarm indication information.
In another example, to avoid that the accuracy of the route detection is affected by the data transmission delay, after the second calculation result is obtained, the method in this embodiment may further include: after the second calculation result is acquired, a data transmission time difference corresponding to the second calculation result may be acquired to determine whether the delay time of the second calculation result is reasonable based on the data transmission time difference.
Specifically, in order to ensure the accuracy and reliability of detection of the routing controller/network device controller, the server may be communicatively connected with a cache database, timestamp information of routing data to be processed is stored in the cache database, a data transmission time difference corresponding to a second calculation result is determined based on the timestamp information, then the data transmission time difference is analyzed and compared with a preset threshold, and when the data transmission time difference is greater than the preset threshold, it may be determined that the delay of the second calculation result is unreasonable; when the data transmission time difference is smaller than or equal to the preset threshold, the delay of the second calculation result can be determined to be reasonable, so that accurate routing detection operation can be performed based on the second calculation result, and the stability and the detection performance of processing the routing data are further improved.
In still other examples, when the routing data is processed based on the computation policy, the to-be-processed routing node and the routing topology corresponding to the routing data may be obtained, and the routing data may be analyzed and processed based on the computation policy, the to-be-processed routing node and the routing topology corresponding to the routing data.
The online database may store routing data of users in a plurality of different areas, and the routing data may correspond to a routing topology structure, and the routing topology structure may be composed of a plurality of routing nodes. When analyzing and processing the routing data, analyzing and processing part or all routing nodes; specifically, a data identifier and an area identifier corresponding to the routing data may be obtained, and a routing topology and a plurality of routing nodes corresponding to the routing data may be obtained from the online database through the data identifier and the area identifier.
In addition, the calculation policy may include a routing node identifier of the to-be-processed routing node, where the to-be-processed routing node may be a part or all of the routing nodes, that is, it may be determined whether the route detection operation can be performed to a certain routing node (reachability of the routing node) according to the calculation policy, and may store the processing operation data. Specifically, the routing nodes corresponding to the routing node identifiers in the routing data can be sequentially transferred and processed based on the calculation strategy according to the topology structure corresponding to the routing data, so that the second calculation result processed by the routing data can be accurately obtained, and the quality and efficiency of data processing are further improved.
In still other examples, the method for detecting a controller in this embodiment may further effectively avoid a situation where the route calculation is in conflict, and specifically, when the network device controller and the route controller are subjected to a route detection operation, the method may obtain route data corresponding to the network device controller and second route data corresponding to the route controller, detect whether the route data and the second route data include the same route node, and when the route data and the second route data include the same route node, may control data transmission between the route node included in the route data and the route node included in the second route data to avoid a conflict of data transmission.
According to the detection method of the controller provided by the application embodiment, the actual online routing data can be acquired through the online database, and because the application scenes corresponding to the actual routing data are richer and the covered application scenes are more comprehensive, the method provided by the application embodiment is not limited by the use of each application scene; in addition, the method in this embodiment may further effectively detect the operating states of at least part of the communication links/at least part of the routing nodes corresponding to the routing data, thereby ensuring quality and efficiency of routing data detection, and providing effective guarantee for stable operation of the routing controller and the network device controller.
Fig. 17 is a schematic flowchart of a method for detecting an operating state of a device according to an embodiment of the present invention; referring to fig. 17, this embodiment provides a method for detecting an operating state of a device, where an execution main body of the method for detecting an operating state of a device may be a device for detecting an operating state of a device, and in a specific application, the device for detecting an operating state of a device may be a bypass server, and it is understood that the bypass server may be implemented as software or a combination of software and hardware. Specifically, the method may include:
step S1701: the method comprises the steps of obtaining operation data of first equipment and a first processing result corresponding to the operation data, wherein the first processing result is obtained by processing the operation data based on the first equipment.
Step 1702: determining a computational policy corresponding to the operational data.
Step S1703: and processing the operation data based on the calculation strategy to obtain a second processing result.
Step S1704: and determining the running state of the first equipment according to the second processing result and the first processing result.
The first device and the operation data of the first device may be different based on different application scenarios, for example: when the method for detecting the device operation state is applied to a communication network, the first device may be a network communication device, and in this case, the operation data of the first device may include network state data of the network device, network operation data, and the like. When the method for detecting the operating state of the device is applied to the technical field of unmanned aerial vehicles, the first device can be an unmanned aerial vehicle, and the operating data of the first device can include the operating state and communication data of the unmanned aerial vehicle and the like. When the method for detecting the operating state of the device is applied to the technical field of mobile robots, the first device may be a mobile robot, and the operating data of the first device may include state data, operating data, and the like of the mobile robot.
In addition, in this embodiment, the specific implementation principle and process of steps 1701 to 1704 are similar to those of steps 201 to 204 in the foregoing embodiment, and are not described again here.
In some examples, obtaining operational data of a first device and a first processing result corresponding to the operational data includes: and acquiring the operation data and a first processing result corresponding to the operation data through an online database, wherein the operation data and the first processing result corresponding to the operation data are stored in the online database.
In some examples, determining the operating state of the first device according to the second processing result and the first processing result includes: detecting whether the second processing result is consistent with the first processing result; when the second processing result is consistent with the first processing result, determining that the running state of the first equipment is a normal state; or when the second processing result is inconsistent with the first processing result, determining that the running state of the first equipment is an abnormal state.
In some examples, determining the operating state of the first device according to the second processing result and the first processing result includes: acquiring a first time difference between the second processing result and the first processing result; and determining the running state of the first equipment according to the first time difference.
In some examples, determining the operational status of the first device based on the first time difference includes: comparing the first time difference with a preset time threshold; when the first time difference is larger than the preset time threshold, determining that the running state of the first equipment is an abnormal state; or when the first time difference is smaller than or equal to a preset time threshold, determining that the running state of the first equipment is a normal state.
In some examples, after determining that the operational state of the first device is an abnormal state, the method further comprises: generating first alarm information according to the abnormal state of the first equipment; and performing alarm indication based on the first alarm information.
In some examples, the method further comprises: acquiring forwarding operation data corresponding to the operation data, which is stored in second equipment, wherein the second equipment is used for forwarding the operation data; and determining the operation state of the second equipment according to the forwarding operation data and the operation data.
In some examples, determining the operational state of the second device based on the forwarding operational data and the operational data includes: comparing the forwarding operation data with the operation data; when the forwarding operation data is inconsistent with the operation data, determining that the operation state of the second equipment is an abnormal state; or, when the forwarding operation data is consistent with the operation data, obtaining a forwarding calculation result corresponding to the first processing result and stored in the second device, and determining an operation state of the second device according to the second processing result and the forwarding calculation result.
In some examples, determining the operating state of the second device according to the second processing result and the forwarding calculation result includes: detecting whether the second processing result is consistent with the forwarding calculation result; when the second processing result is consistent with the forwarding calculation result, determining that the running state of the second equipment is a normal state; or, when the second processing result is inconsistent with the forwarding calculation result, determining that the operating state of the second device is an abnormal state.
In some examples, determining the operating state of the second device according to the second processing result and the forwarding calculation result includes: acquiring a second time difference between the second processing result and the forwarding calculation result; and determining the running state of the second equipment according to the second time difference.
In some examples, determining the operational state of the second device based on the second time difference includes: comparing the second time difference to a preset time threshold; when the second time difference is larger than the preset time threshold, determining that the running state of the second equipment is an abnormal state; and when the second time difference is smaller than or equal to a preset time threshold, determining that the running state of the second equipment is a normal state.
In some examples, after determining that the operational state of the second device is an abnormal state, the method further comprises: generating second alarm information according to the abnormal state of the second equipment; and performing alarm indication based on the second alarm information.
In some examples, the operational data includes routing data; acquiring operating data of a first device, comprising: acquiring all routing data corresponding to all routing devices; acquiring changed routing data from all the routing data; and determining the changed routing data as the operation data of the first equipment.
In some examples, the operational data includes routing data; processing the operation data based on the calculation strategy to obtain a second processing result, wherein the second processing result comprises: acquiring a topological structure corresponding to the operating data; and calculating the operation data based on the topological structure and the calculation strategy to obtain the second processing result.
In some examples, after obtaining the second processing result, the method further comprises: determining whether at least part of communication links corresponding to the topological structure are normal according to the second processing result; or determining whether the running state of at least part of the routing nodes corresponding to the topological structure is normal or not according to the second processing result.
In some examples, when the detection method of the device operating state is applied to the bypass server, the second processing result may be a bypass calculation result obtained after the bypass server processes the operating data based on the calculation policy.
The implementation process and technical effect of the method in the embodiment of fig. 17 are similar to those in the embodiments shown in fig. 1a, fig. 1b, and fig. 1c to fig. 16, and the above statements may be specifically referred to, and are not repeated herein.
Fig. 18 is a schematic structural diagram of a detection device of a controller according to an embodiment of the present invention; referring to fig. 18, the embodiment provides a detection apparatus of a controller, and in particular, when the detection apparatus of the controller is applied, the detection apparatus of the controller may be a server, and the server may perform the detection method of the controller shown in fig. 1a, fig. 1b, and fig. 1 c. The server may include: a first obtaining module 11, a first determining module 12 and a first processing module 13. In particular, the method comprises the following steps of,
a first obtaining module 11, configured to obtain routing data and a first calculation result corresponding to the routing data, where the first calculation result is obtained by processing the routing data based on a network device controller;
a first determining module 12 for determining a calculation policy corresponding to the routing data;
the first processing module 13 is configured to process the routing data based on the calculation policy to obtain a second calculation result;
and a first determining module 12, configured to determine an operating state of a network device controller according to the second calculation result and the first calculation result, where the network device controller is configured to control a network device in a network.
In some examples, when the first obtaining module 11 obtains the route data and the first calculation result corresponding to the route data, the first obtaining module 11 may be configured to perform: and acquiring the routing data and a first calculation result corresponding to the routing data through an online database, wherein the routing data and the first calculation result corresponding to the routing data are stored in the online database.
In some examples, when the first determination module 12 determines the operation state of the network device controller according to the second calculation result and the first calculation result, the first determination module 12 may be configured to perform: detecting whether the second calculation result is consistent with the first calculation result; when the second calculation result is consistent with the first calculation result, determining that the running state of the network equipment controller is a normal state; or when the second calculation result is inconsistent with the first calculation result, determining that the operation state of the network equipment controller is an abnormal state.
In some examples, when the first determining module 12 determines the operating state of the network device controller according to the second calculation result and the first calculation result, the first determining module 12 in this embodiment may be configured to perform: acquiring a first time difference between the second calculation result and the first calculation result; and determining the running state of the network equipment controller according to the first time difference.
In some examples, when the first determination module 12 determines the operation state of the network device controller according to the first time difference, the first determination module 12 may be configured to perform: comparing the first time difference with a preset time threshold; when the first time difference is larger than a preset time threshold, determining that the running state of the network equipment controller is an abnormal state; or when the first time difference is smaller than or equal to the preset time threshold, determining that the running state of the network equipment controller is a normal state.
In some examples, after determining that the operation state of the routing controller is an abnormal state, the first processing module 13 in this embodiment may be configured to perform: generating first alarm information according to the abnormal state of the network equipment controller; and performing alarm indication based on the first alarm information.
In some examples, the first obtaining module 11 and the first determining module 12 in this embodiment may be configured to perform the following steps:
a first obtaining module 11, configured to obtain forwarding routing data corresponding to routing data stored in a routing controller;
and a first determining module 12, configured to determine an operating state of the routing controller according to the forwarding routing data and the routing data.
In some examples, when the first determining module 12 determines the operation status of the routing controller according to the forwarding routing data and the routing data, the first determining module 12 may be configured to perform: comparing the forwarding routing data with the routing data; when the forwarding routing data is inconsistent with the routing data, determining that the running state of the routing controller is an abnormal state; or when the forwarding routing data is consistent with the routing data, acquiring a forwarding calculation result which is stored in the routing controller and corresponds to the first calculation result, and determining the running state of the routing controller according to the second calculation result and the forwarding calculation result.
In some examples, when the first determining module 12 determines the operation state of the routing controller according to the second calculation result and the forwarding calculation result, the first determining module 12 may be configured to perform: detecting whether the second calculation result is consistent with the forwarding calculation result; when the second calculation result is consistent with the forwarding calculation result, determining that the running state of the routing controller is a normal state; or when the second calculation result is inconsistent with the forwarding calculation result, determining that the running state of the routing controller is an abnormal state.
In some examples, when the first determining module 12 determines the operation state of the routing controller according to the second calculation result and the forwarding calculation result, the first determining module 12 in this embodiment may be configured to perform: acquiring a second time difference between the second calculation result and the forwarding calculation result; and determining the running state of the routing controller according to the second time difference.
In some examples, when the first determining module 12 determines the operation state of the routing controller according to the second time difference, the first determining module 12 may be configured to perform: comparing the second time difference with a preset time threshold; when the second time difference is larger than the preset time threshold, determining that the running state of the routing controller is an abnormal state; and when the second time difference is smaller than or equal to the preset time threshold, determining that the running state of the routing controller is a normal state.
In some examples, after determining that the operation state of the routing controller is an abnormal state, the first processing module 13 in this embodiment may be configured to perform: generating second alarm information according to the abnormal state of the routing controller; and performing alarm indication based on the second alarm information.
In some examples, when the first obtaining module 11 obtains the routing data, the first obtaining module 11 may be configured to perform: acquiring all route data corresponding to all routes; acquiring changed routing data from all the routing data; and determining the changed routing data as the routing data.
In some examples, when the first processing module 13 processes the routing data based on the calculation policy to obtain the second calculation result, the first processing module 13 may be configured to perform: acquiring a topological structure corresponding to the routing data; and calculating the routing data based on the topological structure and the calculation strategy to obtain a second calculation result.
In some examples, after obtaining the second calculation result, the first processing module 13 in this embodiment may be configured to perform: determining whether at least a part of the communication links corresponding to the topology structure are normal according to the second calculation result; or determining whether the running state of at least part of the routing nodes corresponding to the topological structure is normal according to the second calculation result.
In some examples, when the detection device of the controller is applied to the bypass server, the second calculation result is a bypass calculation result obtained after the bypass server processes the routing data based on the calculation policy.
The apparatus shown in fig. 18 can perform the method of the embodiments shown in fig. 1a, 1b, 1c to 16, and for the parts not described in detail in this embodiment, reference may be made to the related description of the embodiments shown in fig. 1a, 1b, 1c to 16. The implementation process and technical effect of the technical solution are described in the embodiments shown in fig. 1a, 1b, and 1c to 16, and are not described herein again.
In one possible design, the structure of the detection means of the controller shown in fig. 18 may be implemented as an electronic device. As shown in fig. 19, the electronic device may include: a first processor 21 and a first memory 22. Wherein the first memory 22 is used for storing a program for supporting the electronic device to execute the detection method of the controller provided in the embodiments shown in fig. 1a, 1b, 1 c-16, and the first processor 21 is configured to execute the program stored in the first memory 22.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the first processor 21, are capable of performing the steps of:
the method comprises the steps of obtaining routing data and a first calculation result corresponding to the routing data, wherein the first calculation result is obtained by processing the routing data based on a network equipment controller;
determining a computational policy corresponding to the routing data;
processing the routing data based on the calculation strategy to obtain a second calculation result;
and determining the running state of a network equipment controller according to the second calculation result and the first calculation result, wherein the network equipment controller is used for controlling the network equipment in the network.
Optionally, the first processor 21 is further configured to perform all or part of the steps in the embodiments shown in fig. 1a, 1b, and 1c to 16.
The electronic device may further include a first communication interface 23 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the detection method of the controller in the embodiments of the method shown in fig. 1a, 1b, and 1c to 16.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the detection method of the controller in the embodiments of the method shown in fig. 1a, 1b, and 1c to 16.
Fig. 20 is a schematic structural diagram of a device for detecting an operating state of an apparatus according to an embodiment of the present invention; referring to fig. 20, this embodiment provides a device for detecting an operating state of an apparatus, and in particular, when the device is applied, the device for detecting an operating state of an apparatus may be a server, and the server may perform the method for detecting an operating state of an apparatus shown in fig. 17. The server may include: a second obtaining module 31, a second determining module 32 and a second processing module 33. In particular, the method comprises the following steps of,
a second obtaining module 31, configured to obtain operation data of a first device and a first processing result corresponding to the operation data, where the first processing result is obtained by processing the operation data based on the first device;
a second determination module 32 for determining a calculation strategy corresponding to the operation data;
the second processing module 33 is configured to process the operation data based on the calculation policy to obtain a second processing result;
the second determining module 32 is configured to determine the operating state of the first device according to the second processing result and the first processing result.
In some examples, when the second obtaining module 31 obtains the operation data of the first device and the first processing result corresponding to the operation data, the second obtaining module 31 may be configured to: and acquiring the operation data and a first processing result corresponding to the operation data through an online database, wherein the operation data and the first processing result corresponding to the operation data are stored in the online database.
In some examples, when the second determining module 32 determines the operating state of the first device according to the second processing result and the first processing result, the second determining module 32 may be configured to: detecting whether the second processing result is consistent with the first processing result; when the second processing result is consistent with the first processing result, determining that the running state of the first equipment is a normal state; or when the second processing result is inconsistent with the first processing result, determining that the running state of the first equipment is an abnormal state.
In some examples, when the second determining module 32 determines the operating state of the first device according to the second processing result and the first processing result, the second determining module 32 may be configured to: acquiring a first time difference between the second processing result and the first processing result; and determining the running state of the first equipment according to the first time difference.
In some examples, when the second determining module 32 determines the operating state of the first device according to the first time difference, the second determining module 32 may be configured to perform: comparing the first time difference with a preset time threshold; when the first time difference is larger than the preset time threshold, determining that the running state of the first equipment is an abnormal state; or when the first time difference is smaller than or equal to a preset time threshold, determining that the running state of the first equipment is a normal state.
In some examples, after determining that the operating state of the first device is an abnormal state, the second processing module 33 in this embodiment may be configured to perform: generating first alarm information according to the abnormal state of the first equipment; and performing alarm indication based on the first alarm information.
In some examples, the second obtaining module 31 and the second determining module 32 in this embodiment may be configured to perform the following steps:
a second obtaining module 31, configured to obtain forwarding operation data corresponding to the operation data and stored in a second device, where the second device is configured to forward the operation data;
a second determining module 32, configured to determine an operating state of the second device according to the forwarding operation data and the operation data.
In some examples, when the second determining module 32 determines the operation state of the second device according to the forwarding operation data and the operation data, the second determining module 32 may be configured to: comparing the forwarding operation data with the operation data; when the forwarding operation data is inconsistent with the operation data, determining that the operation state of the second equipment is an abnormal state; or, when the forwarding operation data is consistent with the operation data, obtaining a forwarding calculation result corresponding to the first processing result and stored in the second device, and determining an operation state of the second device according to the second processing result and the forwarding calculation result.
In some examples, when the second determining module 32 determines the operating state of the second device according to the second processing result and the forwarding calculation result, the second determining module 32 may be configured to: detecting whether the second processing result is consistent with the forwarding calculation result; when the second processing result is consistent with the forwarding calculation result, determining that the running state of the second equipment is a normal state; or, when the second processing result is inconsistent with the forwarding calculation result, determining that the operating state of the second device is an abnormal state.
In some examples, when the second determining module 32 determines the operating state of the second device according to the second processing result and the forwarding calculation result, the second determining module 32 may be configured to: acquiring a second time difference between the second processing result and the forwarding calculation result; and determining the running state of the second equipment according to the second time difference.
In some examples, when the second determining module 32 determines the operating state of the second device according to the second time difference, the second determining module 32 may be configured to perform: comparing the second time difference to a preset time threshold; when the second time difference is larger than the preset time threshold, determining that the running state of the second equipment is an abnormal state; and when the second time difference is smaller than or equal to a preset time threshold, determining that the running state of the second equipment is a normal state.
In some examples, after determining that the operating state of the second device is an abnormal state, the second processing module 33 in this embodiment may be configured to perform: generating second alarm information according to the abnormal state of the second equipment; and performing alarm indication based on the second alarm information.
In some examples, the operational data includes routing data; when the second obtaining module 31 obtains the operation data of the first device, the second obtaining module 31 may be configured to perform: acquiring all routing data corresponding to all routing devices; acquiring changed routing data from all the routing data; and determining the changed routing data as the operation data of the first equipment.
In some examples, the operational data includes routing data; when the second processing module 33 processes the operation data based on the calculation policy to obtain a second processing result, the second processing module 33 may be configured to perform: acquiring a topological structure corresponding to the operating data; and calculating the operation data based on the topological structure and the calculation strategy to obtain the second processing result.
In some examples, after obtaining the second processing result, the second processing module 33 in this embodiment may be configured to perform the following steps: determining whether at least part of communication links corresponding to the topological structure are normal according to the second processing result; or determining whether the running state of at least part of the routing nodes corresponding to the topological structure is normal or not according to the second processing result.
In some examples, when the apparatus for detecting the operating state of the device is applied to the bypass server, the second processing result may be a bypass calculation result obtained after the bypass server processes the operating data based on a calculation policy.
The apparatus shown in fig. 20 can execute the method of the embodiment shown in fig. 17, and reference may be made to the related description of the embodiment shown in fig. 17 for a part of this embodiment that is not described in detail. The implementation process and technical effect of this technical solution are described in the embodiment shown in fig. 17, and are not described herein again.
In one possible design, the structure of the device for detecting the operation state of the apparatus shown in fig. 20 may be implemented as an electronic apparatus. As shown in fig. 21, the electronic device may include: a second processor 41 and a second memory 42. Wherein the second memory 42 is used for storing a program for supporting the electronic device to execute the method for detecting the device operation state provided in the embodiment shown in fig. 17, and the second processor 41 is configured to execute the program stored in the second memory 42.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the second processor 41, are capable of performing the steps of:
acquiring operation data of first equipment and a first processing result corresponding to the operation data, wherein the first processing result is obtained by processing the operation data based on the first equipment;
determining a computational policy corresponding to the operational data;
processing the operating data based on the calculation strategy to obtain a second processing result;
and determining the running state of the first equipment according to the second processing result and the first processing result.
Optionally, the second processor 41 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 17.
The electronic device may further include a second communication interface 43 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the detection method of the controller in the embodiment of the method shown in fig. 17.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the method for detecting the device operating state in the method embodiments shown in fig. 1a, 1b, and 1c to 16.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The detection method of the controller provided in the embodiment of the present invention may be executed by a certain program/software, which may be provided by a network side, where the program/software may be, for example, an instant messaging application program mentioned in the foregoing embodiment, the prediction terminal mentioned in the foregoing embodiment may download the program/software into a local nonvolatile storage medium, and when it needs to execute the detection method of the controller, read the program/software into a memory by a CPU, and then execute the program/software by the CPU to implement the detection method of the controller provided in the foregoing embodiment, and the execution process may be referred to the schematic in fig. 1a, fig. 1b, and fig. 1c to fig. 16.
The detection method of the controller provided in the embodiment of the present invention may be executed by a certain program/software, which may be provided by a network side, where the program/software may be, for example, an instant messaging application program mentioned in the foregoing embodiment, the training terminal mentioned in the foregoing embodiment may download the program/software into a local nonvolatile storage medium, and when it needs to execute the detection method of the controller, read the program/software into a memory by a CPU, and then execute the program/software by the CPU to implement the detection method of the controller provided in the foregoing embodiment, and the execution process may be referred to the schematic in fig. 1a, fig. 1b, and fig. 1c to fig. 16.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (38)

1. A method for detecting a controller, comprising:
obtaining routing data and a first calculation result corresponding to the routing data, wherein the first calculation result is obtained by processing the routing data based on a network equipment controller;
determining a computational policy corresponding to the routing data;
processing the routing data based on the calculation strategy to obtain a second calculation result;
and determining the running state of a network equipment controller according to the second calculation result and the first calculation result, wherein the network equipment controller is used for controlling network equipment in the network.
2. The method of claim 1, wherein obtaining routing data and a first calculation corresponding to the routing data comprises:
and acquiring the routing data and a first calculation result corresponding to the routing data through an online database, wherein the routing data and the first calculation result corresponding to the routing data are stored in the online database.
3. The method of claim 1, wherein determining an operational status of a network device controller based on the second calculation and the first calculation comprises:
detecting whether the second calculation result is consistent with the first calculation result;
when the second calculation result is consistent with the first calculation result, determining that the running state of the network equipment controller is a normal state; alternatively, the first and second electrodes may be,
and when the second calculation result is inconsistent with the first calculation result, determining that the running state of the network equipment controller is an abnormal state.
4. The method of claim 1, wherein determining an operational status of a network device controller based on the second calculation and the first calculation comprises:
acquiring a first time difference between the second calculation result and the first calculation result;
and determining the running state of the network equipment controller according to the first time difference.
5. The method of claim 4, wherein determining the operational status of the network device controller based on the first time difference comprises:
comparing the first time difference with a preset time threshold;
when the first time difference is larger than the preset time threshold, determining that the running state of the network equipment controller is an abnormal state; alternatively, the first and second electrodes may be,
and when the first time difference is smaller than or equal to a preset time threshold, determining that the running state of the network equipment controller is a normal state.
6. The method according to claim 3 or 5, wherein after determining that the operational state of the network device controller is an abnormal state, the method further comprises:
generating first alarm information according to the abnormal state of the network equipment controller;
and performing alarm indication based on the first alarm information.
7. The method of claim 1, further comprising:
acquiring forwarding routing data which is stored in a routing controller and corresponds to the routing data;
and determining the running state of the routing controller according to the forwarding routing data and the routing data.
8. The method of claim 7, wherein determining the operational status of the routing controller based on the forwarding routing data and the routing data comprises:
comparing the forwarding routing data with the routing data;
when the forwarding routing data is inconsistent with the routing data, determining that the running state of the routing controller is an abnormal state; alternatively, the first and second electrodes may be,
and when the forwarding routing data is consistent with the routing data, acquiring a forwarding calculation result which is stored in the routing controller and corresponds to the first calculation result, and determining the running state of the routing controller according to the second calculation result and the forwarding calculation result.
9. The method of claim 8, wherein determining the operational status of the routing controller based on the second calculation and the forwarding calculation comprises:
detecting whether the second calculation result is consistent with the forwarding calculation result;
when the second calculation result is consistent with the forwarding calculation result, determining that the running state of the routing controller is a normal state; alternatively, the first and second electrodes may be,
and when the second calculation result is inconsistent with the forwarding calculation result, determining that the running state of the routing controller is an abnormal state.
10. The method of claim 8, wherein determining the operational status of the routing controller based on the second calculation and the forwarding calculation comprises:
acquiring a second time difference between the second calculation result and the forwarding calculation result;
and determining the running state of the routing controller according to the second time difference.
11. The method of claim 10, wherein determining the operational status of the routing controller based on the second time difference comprises:
comparing the second time difference to a preset time threshold;
when the second time difference is larger than the preset time threshold, determining that the running state of the routing controller is an abnormal state;
and when the second time difference is smaller than or equal to a preset time threshold, determining that the running state of the routing controller is a normal state.
12. The method according to claim 9 or 11, wherein after determining that the operational state of the routing controller is an abnormal state, the method further comprises:
generating second alarm information according to the abnormal state of the routing controller;
and performing alarm indication based on the second alarm information.
13. The method of claim 1, wherein obtaining routing data comprises:
acquiring all route data corresponding to all routes;
acquiring changed routing data from all the routing data;
and determining the changed routing data as the routing data.
14. The method of claim 1, wherein processing the routing data based on the computation policy to obtain a second computation result comprises:
acquiring a topological structure corresponding to the routing data;
and calculating the routing data based on the topological structure and the calculation strategy to obtain the second calculation result.
15. The method of claim 14, wherein after obtaining the second calculation, the method further comprises:
determining whether at least part of the communication links corresponding to the topological structure are normal according to the second calculation result; alternatively, the first and second electrodes may be,
and determining whether the running state of at least part of the routing nodes corresponding to the topological structure is normal or not according to the second calculation result.
16. The method according to any one of claims 1 to 5, wherein the detection method of the controller is applied to a bypass server, and the second calculation result is a bypass calculation result obtained after the bypass server processes the routing data based on the calculation policy.
17. A method for detecting the running state of equipment is characterized by comprising the following steps:
acquiring operation data of first equipment and a first processing result corresponding to the operation data, wherein the first processing result is obtained by processing the operation data based on the first equipment;
determining a computational policy corresponding to the operational data;
processing the operating data based on the calculation strategy to obtain a second processing result;
and determining the running state of the first equipment according to the second processing result and the first processing result.
18. The method of claim 17, wherein obtaining operational data of a first device and a first processing result corresponding to the operational data comprises:
and acquiring the operation data and a first processing result corresponding to the operation data through an online database, wherein the operation data and the first processing result corresponding to the operation data are stored in the online database.
19. The method of claim 17, wherein determining the operational status of the first device based on the second processing result and the first processing result comprises:
detecting whether the second processing result is consistent with the first processing result;
when the second processing result is consistent with the first processing result, determining that the running state of the first equipment is a normal state; alternatively, the first and second electrodes may be,
and when the second processing result is inconsistent with the first processing result, determining that the running state of the first equipment is an abnormal state.
20. The method of claim 17, wherein determining the operational status of the first device based on the second processing result and the first processing result comprises:
acquiring a first time difference between the second processing result and the first processing result;
and determining the running state of the first equipment according to the first time difference.
21. The method of claim 20, wherein determining the operational status of the first device based on the first time difference comprises:
comparing the first time difference with a preset time threshold;
when the first time difference is larger than the preset time threshold, determining that the running state of the first equipment is an abnormal state; alternatively, the first and second electrodes may be,
and when the first time difference is smaller than or equal to a preset time threshold, determining that the running state of the first equipment is a normal state.
22. The method according to claim 19 or 21, wherein after determining that the operational state of the first device is an abnormal state, the method further comprises:
generating first alarm information according to the abnormal state of the first equipment;
and performing alarm indication based on the first alarm information.
23. The method of claim 17, further comprising:
acquiring forwarding operation data corresponding to the operation data, which is stored in second equipment, wherein the second equipment is used for forwarding the operation data;
and determining the operation state of the second equipment according to the forwarding operation data and the operation data.
24. The method of claim 23, wherein determining the operational status of the second device based on the forwarding operational data and the operational data comprises:
comparing the forwarding operation data with the operation data;
when the forwarding operation data is inconsistent with the operation data, determining that the operation state of the second equipment is an abnormal state; alternatively, the first and second electrodes may be,
and when the forwarding operation data is consistent with the operation data, acquiring a forwarding calculation result which is stored in the second equipment and corresponds to the first processing result, and determining the operation state of the second equipment according to the second processing result and the forwarding calculation result.
25. The method of claim 24, wherein determining the operational status of the second device based on the second processing result and the forwarding calculation result comprises:
detecting whether the second processing result is consistent with the forwarding calculation result;
when the second processing result is consistent with the forwarding calculation result, determining that the running state of the second equipment is a normal state; alternatively, the first and second electrodes may be,
and when the second processing result is inconsistent with the forwarding calculation result, determining that the running state of the second equipment is an abnormal state.
26. The method of claim 24, wherein determining the operational status of the second device based on the second processing result and the forwarding calculation result comprises:
acquiring a second time difference between the second processing result and the forwarding calculation result;
and determining the running state of the second equipment according to the second time difference.
27. The method of claim 26, wherein determining the operational status of the second device based on the second time difference comprises:
comparing the second time difference to a preset time threshold;
when the second time difference is larger than the preset time threshold, determining that the running state of the second equipment is an abnormal state;
and when the second time difference is smaller than or equal to a preset time threshold, determining that the running state of the second equipment is a normal state.
28. The method according to claim 25 or 27, wherein after determining that the operating state of the second device is an abnormal state, the method further comprises:
generating second alarm information according to the abnormal state of the second equipment;
and performing alarm indication based on the second alarm information.
29. The method of claim 17, wherein the operational data comprises routing data; acquiring operating data of a first device, comprising:
acquiring all routing data corresponding to all routing devices;
acquiring changed routing data from all the routing data;
and determining the changed routing data as the operation data of the first equipment.
30. The method of claim 17, wherein the operational data comprises routing data; processing the operation data based on the calculation strategy to obtain a second processing result, wherein the second processing result comprises:
acquiring a topological structure corresponding to the operating data;
and calculating the operation data based on the topological structure and the calculation strategy to obtain the second processing result.
31. The method of claim 30, wherein after obtaining the second processing result, the method further comprises:
determining whether at least part of communication links corresponding to the topological structure are normal according to the second processing result; alternatively, the first and second electrodes may be,
and determining whether the running state of at least part of the routing nodes corresponding to the topological structure is normal or not according to the second processing result.
32. The method according to any one of claims 17 to 21, wherein the method for detecting the operating state of the device is applied to a bypass server, and the second processing result is a bypass calculation result obtained after the bypass server processes the operating data based on the calculation policy.
33. A detection apparatus for a controller, comprising: the first acquisition module is used for acquiring routing data and a first calculation result corresponding to the routing data, wherein the first calculation result is obtained by processing the routing data based on a network equipment controller;
a first determining module for determining a calculation strategy corresponding to the routing data;
the first processing module is used for processing the routing data based on the calculation strategy to obtain a second calculation result;
the first determining module is configured to determine an operating state of a network device controller according to the second calculation result and the first calculation result, where the network device controller is configured to control a network device in a network.
34. An electronic device, comprising: a memory, a processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the detection method of the controller of any one of claims 1 to 16.
35. A computer storage medium for storing a computer program which, when executed, causes a computer to implement the detection method of the controller of any one of claims 1 to 16.
36. An apparatus for detecting an operation state of a device, comprising:
the second acquisition module is used for acquiring operation data of first equipment and a first processing result corresponding to the operation data, wherein the first processing result is obtained by processing the operation data based on the first equipment;
a second determination module for determining a calculation strategy corresponding to the operational data;
the second processing module is used for processing the operating data based on the calculation strategy to obtain a second processing result;
and the second determining module is used for determining the running state of the first equipment according to the second processing result and the first processing result.
37. An electronic device, comprising: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method for detecting the operational status of the device according to any one of claims 17 to 35.
38. A computer storage medium for storing a computer program, the computer program enabling a computer to execute the method for detecting the operation status of the device according to any one of claims 17 to 35.
CN202010469153.6A 2020-05-28 2020-05-28 Method, device and equipment for detecting controller and computer storage medium Active CN113746735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010469153.6A CN113746735B (en) 2020-05-28 2020-05-28 Method, device and equipment for detecting controller and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010469153.6A CN113746735B (en) 2020-05-28 2020-05-28 Method, device and equipment for detecting controller and computer storage medium

Publications (2)

Publication Number Publication Date
CN113746735A true CN113746735A (en) 2021-12-03
CN113746735B CN113746735B (en) 2023-04-28

Family

ID=78724193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010469153.6A Active CN113746735B (en) 2020-05-28 2020-05-28 Method, device and equipment for detecting controller and computer storage medium

Country Status (1)

Country Link
CN (1) CN113746735B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160315845A1 (en) * 2013-12-31 2016-10-27 Huawei Technologies Co., Ltd. SDN Controller, Data Center System, and Routing Connection Method
CN108574566A (en) * 2018-02-13 2018-09-25 北京梆梆安全科技有限公司 A kind of whitepack encipher-decipher method, device and storage medium
CN108848093A (en) * 2018-06-21 2018-11-20 中国人民解放军战略支援部队信息工程大学 Route computing unit and apparatus for network node
CN110036367A (en) * 2018-08-15 2019-07-19 深圳鲲云信息科技有限公司 A kind of verification method and Related product of AI operation result
CN110888788A (en) * 2019-10-16 2020-03-17 平安科技(深圳)有限公司 Anomaly detection method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160315845A1 (en) * 2013-12-31 2016-10-27 Huawei Technologies Co., Ltd. SDN Controller, Data Center System, and Routing Connection Method
CN108574566A (en) * 2018-02-13 2018-09-25 北京梆梆安全科技有限公司 A kind of whitepack encipher-decipher method, device and storage medium
CN108848093A (en) * 2018-06-21 2018-11-20 中国人民解放军战略支援部队信息工程大学 Route computing unit and apparatus for network node
CN110036367A (en) * 2018-08-15 2019-07-19 深圳鲲云信息科技有限公司 A kind of verification method and Related product of AI operation result
CN110888788A (en) * 2019-10-16 2020-03-17 平安科技(深圳)有限公司 Anomaly detection method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113746735B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
US20210012239A1 (en) Automated generation of machine learning models for network evaluation
US9680665B2 (en) Apparatus and method for dynamic hybrid routing in SDN networks to avoid congestion and balance loads under changing traffic load
CN113938407B (en) Data center network fault detection method and device based on in-band network telemetry system
US11855876B2 (en) BMP route detection method and network device
CN106982236A (en) A kind of information processing method, device and system
CN109194534B (en) Scheduling and management method for Internet of things equipment group
WO2017215378A1 (en) Software-defined network, node, path calculation method and device, and storage medium
US11695856B2 (en) Scheduling solution configuration method and apparatus, computer readable storage medium thereof, and computer device
CN111355696A (en) Message identification method and device, DPI (deep packet inspection) equipment and storage medium
CN113868367A (en) Method, device and system for constructing knowledge graph and computer storage medium
CN113472700B (en) Message processing method, device, storage medium and network card
Sminesh et al. Optimal multi‐controller placement strategy in SD‐WAN using modified density peak clustering
CN113746735B (en) Method, device and equipment for detecting controller and computer storage medium
WO2021084125A1 (en) Method and system for anomaly detection using multimodal knowledge graph
CN113300868A (en) Method and device for positioning fault network equipment node and network communication method
CN107547282B (en) Information and communication service influence analysis model establishing method and system
CN109587061A (en) A kind of method, device and equipment of route processing
CN115955323A (en) Network security situation sensing method and device and electronic equipment
CN115801557A (en) Fault root cause positioning method and device and readable storage medium
CN113395655A (en) Fingerprint positioning method, device, equipment and storage medium
CN114172827A (en) Network verification method and device
CN117632666B (en) Alarm method, equipment and storage medium
CN114124461B (en) Air traffic risk hot spot identification method, key aircraft identification method and system
CN114866441A (en) Network diagnosis method, system, device and storage medium
CN115277370A (en) Method, device and equipment for determining root cause node of operation and maintenance system

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40063424

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant