CN107241218B - Fault detection method and device - Google Patents

Fault detection method and device Download PDF

Info

Publication number
CN107241218B
CN107241218B CN201710384541.2A CN201710384541A CN107241218B CN 107241218 B CN107241218 B CN 107241218B CN 201710384541 A CN201710384541 A CN 201710384541A CN 107241218 B CN107241218 B CN 107241218B
Authority
CN
China
Prior art keywords
connection state
electronic equipment
current
network
current electronic
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.)
Expired - Fee Related
Application number
CN201710384541.2A
Other languages
Chinese (zh)
Other versions
CN107241218A (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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201710384541.2A priority Critical patent/CN107241218B/en
Publication of CN107241218A publication Critical patent/CN107241218A/en
Application granted granted Critical
Publication of CN107241218B publication Critical patent/CN107241218B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention discloses a fault detection method and a fault detection device, wherein the fault detection device establishes network connection with electronic equipment through network connection equipment, and the method can comprise the following steps: acquiring the current connection state of the current electronic equipment through a communication process; judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is an initial connection state used for representing the current electronic equipment; when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated; and when the network of the current electronic equipment is not connected, determining that the network connection equipment has a fault.

Description

Fault detection method and device
Technical Field
The invention relates to an automatic communication technology in the field of power electronics, in particular to a fault detection method and a fault detection device.
Background
With the rapid development of the power industry, the advanced power system substation automation system has become a necessary trend in the development of the field. The operating personnel can accurately monitor the operation condition of the internal equipment of the transformer substation through the automatic system of the transformer substation, and can also remotely control partial equipment, thereby greatly improving the intelligent management of the internal equipment of the transformer substation. However, the monitoring system monitors the internal equipment of the transformer substation by relying on a reliable communication network, and once the communication network is abnormal, the communication between the monitoring system and all the internal equipment of the transformer substation is interrupted accidentally, so that the internal equipment of the transformer substation operates without monitoring, and a great number of potential safety hazards exist.
In the prior art, due to a plurality of reasons for communication interruption, after communication interruption occurs between a monitoring system and substation content equipment, an operator needs to check the reasons for the communication interruption one by one and process the positioned reasons for the communication interruption, which results in a slow speed for positioning the reasons for the communication interruption.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are expected to provide a method and an apparatus for detecting a fault, which can improve the speed of locating the reason for communication interruption.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a fault detection method, which is applied to a fault detection device, wherein the fault detection device establishes network connection with electronic equipment through network connection equipment, and the method comprises the following steps:
acquiring the current connection state of the current electronic equipment through a communication process;
judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment;
when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated;
and when the network of the current electronic equipment is judged to be not connected, determining that the network connection equipment has a fault.
In the above method, before the obtaining of the current connection state of the current electronic device through the communication process, the method further includes:
and acquiring the initial electronic equipment represented by the preset connection state through the communication process.
In the above method, the determining whether the connection state of the monitoring process corresponding to the current electronic device changes according to the current connection state and a preset connection state includes:
determining to-be-detected electronic equipment with the same equipment identification as the initial electronic equipment from the current electronic equipment;
when the current connection state corresponding to the electronic equipment to be detected is the same as the preset connection state corresponding to the electronic equipment to be detected, representing that the connection state of the monitoring process is unchanged;
and when one of the current connection state and the preset connection state is different from one of the preset connection state, representing the change of the connection state of the monitoring process.
In the above method, the determining whether the network connected to the current electronic device is connected includes:
acquiring a unique identifier corresponding to the current electronic equipment;
sending a first detection data packet to the current electronic equipment according to the unique identifier;
when a response data packet responding to the first detection data packet is received, judging that the current electronic equipment is in network communication;
and when the response data packet is not received, judging that the network of the current electronic equipment is not connected.
In the above method, after determining that the network connection device has failed, the method further includes:
determining the fault type of the network connection equipment, and matching the fault type and a preset fault type with a solution relation library;
when the fault type and the preset fault type are successfully matched with a solution method relational database, determining a solution method corresponding to the fault type in the preset fault type and solution method relational database;
and recovering the network connection device by using the solution.
An embodiment of the present invention provides a fault detection apparatus, where the fault detection apparatus includes:
the acquisition unit is used for acquiring the current connection state of the current electronic equipment through a communication process;
the judging unit is used for judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment; when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated;
and the determining unit is used for determining that the network connection equipment has a fault when the network of the current electronic equipment is judged to be unconnected.
In the above fault detection apparatus, the obtaining unit is further configured to obtain the initial electronic device represented by the preset connection state through the communication process.
In the above fault detection apparatus, the determining unit is further configured to determine, from the current electronic device, an electronic device to be detected that has the same device identifier as the initial electronic device;
the judging unit is specifically configured to represent that the connection state of the monitoring process is not changed when the current connection state corresponding to the electronic device to be detected is the same as the preset connection state corresponding to the electronic device to be detected; and when one of the current connection state and the preset connection state is different from one of the preset connection state, representing the change of the connection state of the monitoring process.
In the above failure detection device, the failure detection device further includes: a transmitting unit;
the obtaining unit is further configured to obtain a unique identifier corresponding to the current electronic device;
the sending unit is used for sending a first detection data packet to the current electronic equipment according to the unique identifier;
the judging unit is specifically configured to judge that the network of the current electronic device is connected when a response packet responding to the first detection packet is received; and when the response data packet is not received, judging that the network of the current electronic equipment is not connected.
In the above failure detection device, the failure detection device further includes: a matching unit and a recovery unit;
the determining unit is further configured to determine a fault type of the network connection device;
the matching unit is used for matching the fault type and the preset fault type with a solution method relational database;
the determining unit is further configured to determine a solution corresponding to the fault type in the preset fault type and solution relation library when the fault type and the preset fault type are successfully matched with the solution relation library;
the recovery unit is used for recovering the network connection equipment by using the solution method.
An embodiment of the present invention provides a fault detection apparatus, including a memory, a transmitter, a processor, and a computer program stored on the memory and executable on the processor, where the transmitter performs operations depending on the processor, and when the program is executed by the processor, the following steps are performed:
the processor is used for acquiring the current connection state of the current electronic equipment through a communication process; judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment; when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated; and when the network of the current electronic equipment is judged to be not connected, determining that the network connection equipment has a fault.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, for use in a fault detection apparatus, where the computer program, when executed by a processor of the computer program, implements any one of the above-mentioned fault detection methods.
The embodiment of the invention provides a fault detection method and a fault detection device, wherein the current connection state of current electronic equipment is obtained through a communication process; judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment; when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated; and when the network of the current electronic equipment is not connected, determining that the network connection equipment has a fault. By adopting the technical scheme, the fault detection device judges the connection state change of the monitoring process corresponding to the current electronic equipment through the communication process, and when the network of the current electronic equipment is not communicated, the fault detection device determines that the reason of the communication terminal is the fault of the network connection equipment, so that the speed of positioning the reason of communication interruption can be improved.
Drawings
Fig. 1 is a first flowchart of a fault detection method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a fault detection method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an exemplary digitizer apparatus according to an embodiment of the present invention performing fault detection;
fig. 4 is a first schematic structural diagram of a fault detection apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a fault detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a fault detection apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a fault detection apparatus according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example one
An embodiment of the present invention provides a fault detection method, as shown in fig. 1, the method may include:
s101, acquiring the current connection state of the current electronic equipment through a communication process.
The fault detection method provided by the embodiment of the invention is suitable for a network interruption scene of connecting the internal equipment of the transformer substation.
In the embodiment of the invention, the fault detection device establishes network connection with the current electronic equipment through the network connection equipment, and the communication process of the fault detection device acquires the current connection state of the current electronic equipment in real time according to the connection management unit.
In the embodiment of the present invention, the network connection device is a network card or other device capable of performing network interconnection, and is specifically selected according to an actual situation, and the embodiment of the present invention is not specifically limited.
In the embodiment of the invention, the current connection state of the current electronic equipment is recorded in the connection management unit of the communication process, the initial connection states of the current electronic equipment are all the connected states, and when the current electronic equipment is disconnected from the fault detection device, the connection state of the current electronic equipment in the communication process is changed into the disconnected state.
S102, judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment.
After the fault detection device obtains the current connection state of the current electronic equipment, the fault detection device detects the connection state of the monitoring process of the current electronic equipment according to the current connection state and the preset connection state.
In the embodiment of the invention, the fault detection device compares the current connection state with the preset connection state, and the preset connection state is the initial connection state, so that when one of the current connection state and the preset connection state is different from the other one, the change of the connection state of the monitoring process of the current electronic equipment can be judged, and at the moment, the connection state of the monitoring process of at least one piece of current electronic equipment is in a disconnection state; when the current connection state and the preset connection state are the same, the connection state of the monitoring process of the current electronic equipment can be judged to be unchanged, and at the moment, the connection state of the monitoring process of the current electronic equipment is the connected state.
Further, before the fault detection device acquires the current connection state, the fault detection device first acquires the initial electronic device in the initial connection state, and then determines the electronic device to be detected having the same device identifier as the initial electronic device from the current electronic device.
In the embodiment of the invention, the initial electronic equipment is connected electronic equipment acquired through a communication process in the last fault detection.
Specifically, in the embodiment of the present invention, since the preset connection state of the initial electronic device is the initial connection state, the fault detection apparatus may determine whether the connection state of the monitoring process changes by checking whether the connection state to be detected of the electronic device to be detected in the connection management unit is the initial connection state; the fault detection device may further determine whether the connection state of the monitoring process changes by respectively obtaining a first connection number corresponding to the initial electronic device in the connection management unit and a second connection number corresponding to the electronic device to be detected, and specifically select a determination mode according to an actual situation, which is not specifically limited in the embodiment of the present invention.
Illustratively, the fault detection device obtains the connected electronic devices as device a, device B, and device C at the last fault detection, then the fault detection device determines the current electronic devices as device A, device B, device C and device D through the communication process, wherein the current connection state of the device A is a disconnection state, the current connection states of the device B, the device C and the device D are connection states, the fault detection device determines the device A, the device B and the device C which have the same device identification with the connected electronic device from the current electronic device, then judging whether the current connection states of the equipment A, the equipment B and the equipment C are all connected states, at the moment, judging that the current connection state of the equipment A is a disconnected state, therefore, the fault detection device determines that the fault detection device is disconnected from the apparatus a within the last fault detection time period.
S103, when the connection state of the monitoring process is judged to be changed, whether the network between the monitoring process and the current electronic equipment is connected or not is judged.
When the fault detection device judges that the connection state of the monitoring process changes, the fault detection device is to judge whether the network between the current electronic equipment is connected.
In the embodiment of the invention, network Interconnection Protocol (IP) information (unique identification) corresponding to the current electronic equipment is stored in a network connection list, when a fault detection device judges that the connection state of a monitoring process changes, the fault detection device acquires the IP information from the network connection list, executes a ping command on the acquired IP information, and represents network communication between the fault detection device and the current electronic equipment when the IP information can be ping communicated; and when the IP information can not be ping-connected, the network between the characterization fault detection device and the current electronic equipment is not connected.
In the embodiment of the invention, when the electronic equipment is disconnected from the fault detection device, the fault detection device removes the IP information corresponding to the disconnected electronic equipment from the network connection list.
And S104, when the network of the current electronic equipment is judged to be disconnected, determining that the network connection equipment has a fault.
When the fault detection device judges that the network of the current electronic equipment is not connected, the fault detection device determines that the network connection equipment which is in network connection with the current electronic equipment has a fault.
In the embodiment of the invention, when the fault detection device judges that the network between the current electronic equipment is not communicated, the fault detection device determines the reason of communication interruption as the network connection equipment such as a network card and the like is in fault.
In the embodiment of the invention, a preset fault type and solution relation library is stored in a fault detection device, when the fault detection device determines the fault type of the network connection equipment, the fault detection device matches the fault type and the preset fault type with the solution relation library, when the fault type and the preset fault type are successfully matched with the solution relation library, the fault detection device determines the solution corresponding to the fault type from the preset fault type and solution relation library, and recovers the network connection equipment by using the solution.
Illustratively, when the failure detection device determines that the reason for the network card failure is that the network card resources are occupied by other devices, the failure detection device determines the devices occupying the network card resources, interrupts the resource occupation of the devices, and finally reallocates the resources for the network card to recover the normal operation of the network card.
Further, when the fault detection device judges that the network is connected with the current electronic equipment, the fault detection device determines that the network connected equipment operates normally.
It can be understood that, when the fault detection device determines that the connection state of the monitoring process corresponding to the current electronic device changes through the communication process and the network of the current electronic device is not connected, the fault detection device determines that the reason of the communication terminal is the fault of the network connection device, so that the speed of positioning the reason of the communication interruption can be improved.
Example two
An embodiment of the present invention provides a fault detection method, as shown in fig. 2, the method may include:
s201, the fault detection device acquires the initial electronic equipment in the preset connection state through a communication process.
The fault detection method provided by the embodiment of the invention is suitable for a network interruption scene of connecting the internal equipment of the transformer substation.
In the embodiment of the invention, the initial electronic equipment in the initial connection state during each fault detection is stored in the communication process, so the fault detection device acquires the initial electronic equipment in the initial connection state during the last fault detection through the communication process.
In the embodiment of the invention, the fault detection device is used as a reference for detecting whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not by acquiring the initial electronic equipment with the preset connection state.
S202, the fault detection device obtains the current connection state of the current electronic equipment through a communication process.
After the failure detection device acquires the initial electronic device, the failure detection device acquires the current electronic device and the current connection state of the current electronic device.
In the embodiment of the invention, the fault detection device establishes network connection with the current electronic equipment through the network connection equipment, and the communication process of the fault detection device acquires the current connection state of the current electronic equipment in real time according to the connection management unit.
In the embodiment of the present invention, the network connection device is a network card or other device capable of performing network interconnection, and is specifically selected according to an actual situation, and the embodiment of the present invention is not specifically limited.
In the embodiment of the invention, the current connection state of the current electronic equipment is recorded in the connection management unit of the communication process, the initial connection states of the current electronic equipment are all the connected states, and when the current electronic equipment is disconnected from the fault detection device, the connection state of the current electronic equipment in the communication process is changed into the disconnected state.
S203, the fault detection device determines the electronic equipment to be detected with the same equipment identification as the initial electronic equipment from the current electronic equipment.
After the fault detection device obtains the current electronic equipment, the fault detection device determines the electronic equipment to be detected which has the same equipment identification with the initial electronic equipment from the current electronic equipment.
In the embodiment of the invention, the fault detection device determines the equipment with the same equipment identification as the initial electronic equipment from the current electronic equipment as the electronic equipment to be detected.
S204, when the current connection state corresponding to the electronic equipment to be detected is the same as the preset connection state corresponding to the electronic equipment to be detected, representing that the connection state of the monitoring process is unchanged.
After the fault detection device determines the electronic device to be detected, the fault detection device determines whether the connection state of the monitoring process changes according to the connection state to be detected and the preset connection state corresponding to the electronic device to be detected.
In the embodiment of the invention, the fault detection device determines the current connection state of the electronic equipment to be detected from the current connection state, compares the current connection state of the electronic equipment to be detected with the preset connection state corresponding to the electronic equipment to be detected, and judges that the connection state of the monitoring process is not changed when the current connection state corresponding to the electronic equipment to be detected is the same as the preset connection state corresponding to the electronic equipment to be detected.
Illustratively, the fault detection device obtains the connected electronic devices as device a, device B, and device C at the last fault detection, then the fault detection device determines the current electronic devices as device A, device B, device C and device D through the communication process, wherein the current connection state of the device A is a disconnection state, the current connection states of the device B, the device C and the device D are connection states, the fault detection device determines the device A, the device B and the device C which have the same device identification with the connected electronic device from the current electronic device, then judging whether the current connection states of the equipment A, the equipment B and the equipment C are all connected states, at the moment, judging that the current connection state of the equipment A is a disconnected state, therefore, the fault detection device determines that the fault detection device is disconnected from the apparatus a within the last fault detection time period.
S205, when one of the current connection state and the preset connection state is different from the other preset connection state, representing the change of the connection state of the monitoring process.
When the fault detection device judges that one current connection state of the current connection state and the preset connection state is different from one preset connection state, the connection state of the monitoring process is represented and changed.
In the embodiment of the invention, since the preset connection state represents the initial connection state, when the fault detection device judges that the current connection state corresponding to the electronic equipment to be detected is different from one of the preset connection states corresponding to the electronic equipment to be detected, the current connection state corresponding to the electronic equipment to be detected is represented as a disconnection state, and at the moment, the connection state of the monitoring process changes.
Step S204 and step S205 are two parallel steps after step S203, and are specifically selected to be executed according to actual situations, and the embodiment of the present invention is not specifically limited.
And S206, when the connection state change of the monitoring process is judged, the fault detection device acquires the unique identifier corresponding to the current electronic equipment.
When the fault detection device judges that the connection state of the monitoring process changes, the fault detection device needs to perform network connectivity test on the current electronic equipment, and firstly, the fault detection device acquires a unique identifier corresponding to the current electronic equipment.
In the embodiment of the invention, the IP information corresponding to the current electronic equipment is stored in the network connection list, and when the fault detection device judges that the connection state of the monitoring process changes, the fault detection device acquires the IP information of the current electronic equipment from the network connection list.
And S207, the fault detection device sends a first detection data packet to the current electronic equipment according to the unique identifier.
And after the fault detection device acquires the unique identifier, the fault detection device sends a first detection data packet to the current electronic equipment.
In the embodiment of the invention, the fault detection device executes ping command to the acquired IP information.
In the embodiment of the invention, when the electronic equipment is disconnected from the fault detection device, the fault detection device removes the IP information corresponding to the disconnected electronic equipment from the network connection list.
And S208, when the fault detection device receives a response data packet responding to the first detection data packet, the fault detection device judges that the network of the current electronic equipment is connected.
And when the fault detection device receives a response data packet responding to the first detection data packet, the characterization fault detection device is communicated with the network of the current electronic equipment.
In the embodiment of the invention, when the fault detection device can ping IP information, the network communication between the fault detection device and the current electronic equipment is represented, and at the moment, the communication interruption caused by the abnormality of the network connection equipment is eliminated.
And S209, when the fault detection device does not receive a response data packet responding to the first detection data packet, representing that the fault detection device is not communicated with the network of the current electronic equipment.
And when the fault detection device does not receive a response data packet responding to the first detection data packet, the fault detection device judges that the network of the current electronic equipment is not connected.
In the embodiment of the invention, when the fault detection device cannot ping the IP information, the fact that the network between the fault detection device and the current electronic equipment is not connected is represented.
Step S209 and step S208 are two parallel steps after step S207, and are specifically selected to be executed according to actual situations, and the embodiment of the present invention is not specifically limited.
S210, when the fault detection device judges that the network of the current electronic equipment is not connected, the fault detection device determines that the network connection equipment has faults.
When the fault detection device judges that the network of the current electronic equipment is not connected, the fault detection device determines that the network connection equipment between the current electronic equipment and the fault detection device is in fault.
In the embodiment of the invention, when the fault detection device judges that the network of the current electronic equipment is not connected, the fault detection device determines that the reason of the communication interruption is caused by the abnormality of the network connection equipment.
S211, the fault detection device determines the fault type of the network connection equipment and matches the fault type and the preset fault type with a solution method relation library.
When the fault detection device determines that the network connection equipment has a fault, the fault detection device judges the fault type of the network connection equipment and matches the fault type and a preset fault type with a solution method relation library.
In the embodiment of the invention, the fault detection device stores a preset fault type and solution relation library, maintenance personnel can upload a specified fault type and a solution corresponding to the specified fault type in the preset fault type and solution relation library in advance, and when the fault detection device determines the fault type of the network connection equipment, the fault detection device searches the fault type in the preset fault type and solution relation library.
S212, when the fault type and the preset fault type are successfully matched with the solution method relational database, the fault detection device determines a solution method corresponding to the fault type in the preset fault type and solution method relational database.
When the fault detection device finds the fault type in the preset fault type and solution relation library, the fault detection device determines the solution corresponding to the fault type.
In the embodiment of the invention, when the fault detection device finds the fault type in the preset fault type and solution relation library, the fault detection device finds the solution corresponding to the fault type in the preset fault type and solution relation library.
S213, the failure detection apparatus recovers the network connection device by using the solution.
When the failure detection apparatus determines a solution to the failure of the network connection device, the failure detection apparatus recovers the network connection device by using the solution.
In the embodiment of the present invention, the failure detection apparatus performs recovery operations such as restarting the network connection device by using the solution obtained from the preset failure type and solution relation library.
Illustratively, when the failure detection device determines that the reason for the network card failure is that the network card resources are occupied by other devices, the failure detection device determines the devices occupying the network card resources, interrupts the resource occupation of the devices, and finally reallocates the resources for the network card to recover the normal operation of the network card.
It can be understood that, a preset fault type and solution relation library is preset in the fault detection device, when the fault detection device determines the fault type of the network connection device, the fault detection device can find the solution corresponding to the fault type in the preset fault type and solution relation library, and automatically recover the network connection device by using the solution, thereby increasing the abnormal automatic processing capability of the network connection device and improving the fault recovery speed of the network connection device.
For example, as shown in fig. 3, a flow of detecting a failure of a network connection device by a failure detection apparatus is as follows, where a network card is the network connection device, a client is the current electronic device, and a digitizer is the failure detection apparatus:
1. the method comprises the steps that a digitalizer acquires the connection state of current clients and counts the number of the current clients which are kept connected;
2. the digital device judges whether any client is disconnected according to the connection state and the number of the current clients;
3. when no client is disconnected, jumping to the step 1;
4. when the client is disconnected, the digital device judges whether all the clients which are kept connected are connected or not by executing a network connection test on all the clients which are kept connected, if so, the step 7 is executed, and if not, the step 5 is executed;
5. and when the digital device judges that all the clients which are kept connected cannot be connected through the network connection test, the digital device judges that the network card is abnormal.
6. And the digital device processes the exception of the network card.
7. And when the digital device judges that all the clients which are kept connected can be connected through the network connection test, jumping to the step 1.
It can be understood that, when the fault detection device determines that the connection state of the monitoring process corresponding to the current electronic device changes through the communication process and the network of the current electronic device is not connected, the fault detection device determines that the reason of the communication terminal is the fault of the network connection device, so that the speed of positioning the reason of the communication interruption can be improved.
EXAMPLE III
An embodiment of the present invention provides a fault detection apparatus 1, as shown in fig. 4, where the fault detection apparatus 1 may include:
an obtaining unit 10, configured to obtain a current connection state of a current electronic device through a communication process.
A determining unit 11, configured to determine whether a connection state of a monitoring process corresponding to the current electronic device changes according to the current connection state and a preset connection state, where the preset connection state is used to represent an initial connection state of the current electronic device; and when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated.
A determining unit 12, configured to determine that the network connection device fails when it is determined that the network of the current electronic device is not connected.
Optionally, the obtaining unit 10 is further configured to obtain the initial electronic device represented by the initial connection state through the communication process.
Optionally, the determining unit 12 is further configured to determine, from the current electronic device, an electronic device to be detected that has the same device identifier as the initial electronic device.
The determining unit 11 is specifically configured to represent that the connection state of the monitoring process is not changed when the current connection state corresponding to the electronic device to be detected is the same as the preset connection state corresponding to the electronic device to be detected; when the current connection state corresponding to the electronic equipment to be detected is different from one of the preset connection states corresponding to the electronic equipment to be detected, representing the change of the connection state of the monitoring process.
Optionally, based on fig. 4, as shown in fig. 5, the fault detection apparatus 1 further includes: and a transmitting unit 13.
The obtaining unit 10 is further configured to obtain a unique identifier corresponding to the current electronic device.
The sending unit 13 is configured to send a first detection data packet to the current electronic device according to the unique identifier.
The determining unit 11 is specifically configured to determine, when a response packet responding to the first detection packet is received, network connectivity with the current electronic device; and when the response data packet is not received, judging that the network of the current electronic equipment is not connected.
Optionally, based on fig. 4, as shown in fig. 6, the fault detection apparatus 1 further includes: a matching unit 14 and a recovery unit 15.
The determining unit 12 is further configured to determine a failure type of the network connection device.
The matching unit 14 is configured to match the fault type and a preset fault type with a solution relation library.
The determining unit 12 is further configured to determine, when the fault type and the preset fault type are successfully matched with the solution relationship library, a solution corresponding to the fault type in the preset fault type and solution relationship library.
The recovery unit 15 is configured to recover the network connection device by using the solution.
In practical applications, based on the same inventive concept of the first and second embodiments, as shown in fig. 7, the fault detection apparatus 1 may include: a communication interface 16, a memory 17, a transmitter 18, a processor 19, and a bus 110;
the above-mentioned obtaining Unit 10, judging Unit 11, determining Unit 12, matching Unit 14 and recovering Unit 15 may be implemented by a processor 19 located on the fault detection Device 1, where the above-mentioned processor 19 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable logic Device (P L D, Programmable L analog Device), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller and a microprocessor, it is understood that, for different devices, electronic devices for implementing the above-mentioned processor functions may be other devices, embodiments of the present invention are not particularly limited, the sending Unit 13 may be implemented by a sending Unit 18, the fault detection Device 1 may further include a memory 17, the matching Unit 14 and the recovering Unit 15 may include a computer program code, the sending Unit 13 may further include a non-volatile memory 17, the sending Unit may include a computer program code 17, the sending Unit may include a non-volatile memory 17, and the computer program code may include a computer program code 17, and the computer may include a computer program code 17, and may include a computer program code.
The bus 110 is used for connecting the communication interface 16, the transmitter 18, the processor 19 and the memory 17 and the intercommunication among these devices;
the communication interface 16 is configured to perform data transmission with an external network element;
the memory 17 is used for storing instructions and data;
the processor 19 executes the instructions to: acquiring the current connection state of the current electronic equipment through a communication process;
judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment;
when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated;
and when the network of the current electronic equipment is judged to be not connected, determining that the network connection equipment has a fault.
The transmitter 18 is configured to transmit the first detection packet to the current electronic device.
In practical applications, the Memory 17 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a hard disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 19.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, for use in the fault detection apparatus 1, the computer program, when executed by a processor, implementing the method according to the first and second embodiments.
Specifically, the first program instructions corresponding to a failure detection method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, or a usb disk, and when the first program instructions corresponding to a failure detection method in the storage medium are read or executed by an electronic device, the method includes the following steps:
acquiring the current connection state of the current electronic equipment through a communication process;
judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment;
when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated;
and when the network of the current electronic equipment is judged to be not connected, determining that the network connection equipment has a fault.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
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 data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing 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 data processing 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 data processing 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.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (12)

1. A fault detection method is applied to a fault detection device, the fault detection device establishes network connection with an electronic device through a network connection device, and the method is characterized by comprising the following steps:
acquiring the current connection state of the current electronic equipment through a communication process;
judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment;
when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated;
and when the network of the current electronic equipment is judged to be not connected, determining that the network connection equipment has a fault.
2. The method of claim 1, wherein before the obtaining of the current connection status of the current electronic device through the communication process, the method further comprises:
acquiring initial electronic equipment through the communication process;
and acquiring a preset connection state based on the initial electronic equipment.
3. The method according to claim 2, wherein the determining whether the connection state of the monitoring process corresponding to the current electronic device changes according to the current connection state and a preset connection state includes:
determining to-be-detected electronic equipment with the same equipment identification as the initial electronic equipment from the current electronic equipment;
when the current connection state corresponding to the electronic equipment to be detected is the same as the preset connection state corresponding to the electronic equipment to be detected, representing that the connection state of the monitoring process is unchanged;
and when one of the current connection state and the preset connection state is different from one of the preset connection state, representing the change of the connection state of the monitoring process.
4. The method of claim 2, wherein the determining whether the network with the current electronic device is connected comprises:
acquiring a unique identifier corresponding to the current electronic equipment;
sending a first detection data packet to the current electronic equipment according to the unique identifier;
when a response data packet responding to the first detection data packet is received, judging that the current electronic equipment is in network communication;
and when the response data packet is not received, judging that the network of the current electronic equipment is not connected.
5. The method of claim 1, wherein after determining that the network connection device has failed, the method further comprises:
determining the fault type of the network connection equipment, and matching the fault type and a preset fault type with a solution relation library;
when the fault type and the preset fault type are successfully matched with a solution method relational database, determining a solution method corresponding to the fault type in the preset fault type and solution method relational database;
and recovering the network connection device by using the solution.
6. A fault detection device, characterized in that the fault detection device comprises:
the acquisition unit is used for acquiring the current connection state of the current electronic equipment through a communication process;
the judging unit is used for judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment; when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated;
and the determining unit is used for determining that the network connection equipment has a fault when the network of the current electronic equipment is judged to be unconnected.
7. The failure detection device according to claim 6,
the acquisition unit is further used for acquiring initial electronic equipment through the communication process; and acquiring a preset connection state based on the initial electronic equipment.
8. The failure detection device according to claim 7,
the determining unit is further configured to determine, from the current electronic device, to-be-detected electronic devices having the same device identifiers as the initial electronic device;
the judging unit is specifically configured to represent that the connection state of the monitoring process is not changed when the current connection state corresponding to the electronic device to be detected is the same as the preset connection state corresponding to the electronic device to be detected; and when one of the current connection state and the preset connection state is different from one of the preset connection state, representing the change of the connection state of the monitoring process.
9. The fault detection device according to claim 7, further comprising: a transmitting unit;
the obtaining unit is further configured to obtain a unique identifier corresponding to the current electronic device;
the sending unit is used for sending a first detection data packet to the current electronic equipment according to the unique identifier;
the judging unit is specifically configured to judge that the network of the current electronic device is connected when a response packet responding to the first detection packet is received; and when the response data packet is not received, judging that the network of the current electronic equipment is not connected.
10. The fault detection device of claim 6, further comprising: a matching unit and a recovery unit;
the determining unit is further configured to determine a fault type of the network connection device;
the matching unit is used for matching the fault type and the preset fault type with a solution method relational database;
the determining unit is further configured to determine a solution corresponding to the fault type in the preset fault type and solution relation library when the fault type and the preset fault type are successfully matched with the solution relation library;
the recovery unit is used for recovering the network connection equipment by using the solution method.
11. A fault detection device, characterized in that the fault detection device comprises a memory, a transmitter, a processor and a computer program stored on the memory and executable on the processor, the transmitter being dependent on the processor to perform operations, when the program is executed by the processor, the steps of:
the processor is used for acquiring the current connection state of the current electronic equipment through a communication process; judging whether the connection state of the monitoring process corresponding to the current electronic equipment changes or not according to the current connection state and a preset connection state, wherein the preset connection state is used for representing the initial connection state of the current electronic equipment; when the connection state of the monitoring process is judged to be changed, judging whether the network between the monitoring process and the current electronic equipment is communicated; and when the network of the current electronic equipment is judged to be not connected, determining that the network connection equipment has a fault.
12. A computer-readable storage medium, on which a computer program is stored, for use in a fault detection device, characterized in that the computer program, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201710384541.2A 2017-05-26 2017-05-26 Fault detection method and device Expired - Fee Related CN107241218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710384541.2A CN107241218B (en) 2017-05-26 2017-05-26 Fault detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710384541.2A CN107241218B (en) 2017-05-26 2017-05-26 Fault detection method and device

Publications (2)

Publication Number Publication Date
CN107241218A CN107241218A (en) 2017-10-10
CN107241218B true CN107241218B (en) 2020-07-28

Family

ID=59985693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710384541.2A Expired - Fee Related CN107241218B (en) 2017-05-26 2017-05-26 Fault detection method and device

Country Status (1)

Country Link
CN (1) CN107241218B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971059A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Method, device, equipment and storage medium for recovering equipment connection state
CN112181692A (en) * 2020-09-09 2021-01-05 深圳来电科技有限公司 Method and device for judging fault, computer equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457403A (en) * 2010-10-15 2012-05-16 无锡江南计算技术研究所 Method and device for detecting network connection faults
AU2012216363A1 (en) * 2011-08-29 2013-03-21 Ge Digital Holdings Llc Power distribution network fault management
CN104243217A (en) * 2014-09-29 2014-12-24 中国农业银行股份有限公司宿迁分行 Method and device for detecting network faults
CN104780081A (en) * 2015-04-27 2015-07-15 浙江宇视科技有限公司 Network connection failure detection device and method
CN106169965A (en) * 2016-09-28 2016-11-30 北京金山安全软件有限公司 Network repairing method, device and terminal
CN106603306A (en) * 2016-12-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Network connection abnormity processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8234522B2 (en) * 2008-09-04 2012-07-31 Telcordia Technologies, Inc. Computing diagnostic explanations of network faults from monitoring data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457403A (en) * 2010-10-15 2012-05-16 无锡江南计算技术研究所 Method and device for detecting network connection faults
AU2012216363A1 (en) * 2011-08-29 2013-03-21 Ge Digital Holdings Llc Power distribution network fault management
CN104243217A (en) * 2014-09-29 2014-12-24 中国农业银行股份有限公司宿迁分行 Method and device for detecting network faults
CN104780081A (en) * 2015-04-27 2015-07-15 浙江宇视科技有限公司 Network connection failure detection device and method
CN106169965A (en) * 2016-09-28 2016-11-30 北京金山安全软件有限公司 Network repairing method, device and terminal
CN106603306A (en) * 2016-12-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Network connection abnormity processing method and device

Also Published As

Publication number Publication date
CN107241218A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
US10491671B2 (en) Method and apparatus for switching between servers in server cluster
CN106789306B (en) Method and system for detecting, collecting and recovering software fault of communication equipment
CN108737574B (en) Node offline judgment method, device, equipment and readable storage medium
CN110377469B (en) Detection system and method for PCIE (peripheral component interface express) equipment
CN107404522B (en) Cross-node virtual machine cluster high-availability implementation method and device
CN107070747B (en) Device, system and method for automatically testing network card network connection stability in network card binding mode
CN109733238B (en) Fault detection method, device, storage medium and processor
CN112769652B (en) Node service monitoring method, device, equipment and medium
CN107241218B (en) Fault detection method and device
CN108762118B (en) Fault processing method and device between communication devices
CN116820820A (en) Server fault monitoring method and system
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN108763005B (en) Memory ECC fault error reporting method and system
CN114615310A (en) Method and device for maintaining TCP connection and electronic equipment
CN115543872A (en) Equipment management method and device and computer storage medium
CN116737471B (en) BIOS automatic switching method and device, electronic equipment and storage medium
CN110224872B (en) Communication method, device and storage medium
CN111010706B (en) Abnormality recovery method and device
CN116137603B (en) Link fault detection method and device, storage medium and electronic device
CN111858244A (en) Hard disk monitoring method, system, device and medium
CN116133021A (en) Wireless network card self-management flow based on LINUX board card
CN103139036A (en) Electronic equipment and information processing method thereof
CN104378246A (en) Network equipment fault positioning system, method and device
CN113098698A (en) Communication recovery method, equipment, storage medium and communication interruption restarting device
CN114374627A (en) Method, device and system for restarting baseboard management controller and server

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200728