CN107241218A - A kind of fault detection method and device - Google Patents
A kind of fault detection method and device Download PDFInfo
- Publication number
- CN107241218A CN107241218A CN201710384541.2A CN201710384541A CN107241218A CN 107241218 A CN107241218 A CN 107241218A CN 201710384541 A CN201710384541 A CN 201710384541A CN 107241218 A CN107241218 A CN 107241218A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- current
- current electronic
- connection status
- network
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Abstract
The invention discloses a kind of fault detection method and device, failure detector sets up network connection by network access device and electronic equipment, and this method can include:The current connection state of current electronic device is obtained by communication process;According to current connection state and default connection status, judge whether the corresponding monitoring process connection status of current electronic device changes, default connection status is the initial connection state for characterizing current electronic device;When judging the change of monitoring process connection status, whether judgement connects with the network between current electronic device;When judging not connect with the network of current electronic device, determine that network access device breaks down.
Description
Technical field
The present invention relates to the automated communication technology of field of power electronics, more particularly to a kind of fault detection method and dress
Put.
Background technology
With developing rapidly for power industry, advanced power system transformer substation automated system has turned into the field and developed
Inexorable trend.Operations staff can accurately monitor the operation feelings of transformer station's internal unit by electric substation automation system
Condition, moreover it is possible to remote control is carried out to equipment component, the intelligent management to transformer station's internal unit is substantially increased.But monitoring
System monitoring transformer station internal unit is to rely on and reliable communication network, once communication network is abnormal, will result in monitoring system
Unite all transformer station's internal units between communication all can accidental interruption, transformer station's internal unit can be caused without monitoring situation
Lower operation, has very many potential safety hazards.
In the prior art, it is many due to communication disruption, when logical between monitoring system and transformer station's content device
After letter is interrupted, the reason for operations staff needs to investigate communication disruption one by one, and the reason for the communication disruption of positioning at
Reason, the speed that so may result in positioning and communicating interruption source is slow.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention is expected to provide a kind of fault detection method and device, Neng Gouti
The speed of high positioning and communicating interruption source.
The technical proposal of the invention is realized in this way:
The embodiment of the present invention provides a kind of fault detection method, applied to failure detector, the failure detector
Network connection is set up by network access device and electronic equipment, methods described includes:
The current connection state of current electronic device is obtained by communication process;
According to the current connection state and default connection status, the corresponding monitoring process of the current electronic device is judged
Whether connection status changes, and the default connection status is used for the initial connection state for characterizing the current electronic device;
When judging the monitoring process connection status change, judge that the network between the current electronic device is
No connection;
When judging not connect with the network of the current electronic device, determine that event occurs for the network access device
Barrier.
In the above-mentioned methods, it is described before the current connection state that current electronic device is obtained by communication process
Method also includes:
The initiating electron equipment that the default connection status is characterized is obtained by the communication process.
In the above-mentioned methods, it is described according to the current connection state and default connection status, judge the Current electronic
Whether the corresponding monitoring process connection status of equipment changes, including:
The electricity to be detected that there is identical device identification with the initiating electron equipment is determined from the current electronic device
Sub- equipment;
When the corresponding current connection state of the electronic equipment to be detected is corresponding with the electronic equipment to be detected
During the default connection status all same, characterize the monitoring process connection status and do not change;
When a current connection state in the current connection state and the default connection status and a default company
When the state of connecing is differed, the monitoring process connection status change is characterized.
In the above-mentioned methods, whether the judgement connects with the network between the current electronic device, including:
Obtain the corresponding unique identification of the current electronic device;
First is sent to the current electronic device detect packet according to the unique identification;
When receiving the response data packet for responding the first detection packet, judge and the current electronic device
Network-in-dialing;
When not receiving the response data packet, judge not connect with the network of the current electronic device.
In the above-mentioned methods, after the determination network access device breaks down, methods described also includes:
The fault type of the network access device is determined, by the fault type and preset failure type and solution
Relation storehouse is matched;
When the match is successful for the fault type and the preset failure type and solution relation storehouse, described default
Fault type is with determining solution corresponding with the fault type in solution relation storehouse;
Recover the network access device using the solution.
The embodiment of the present invention provides a kind of failure detector, and the failure detector includes:
Acquiring unit, the current connection state for obtaining current electronic device by communication process;
Judging unit, for according to the current connection state and default connection status, judging the current electronic device
Whether corresponding monitoring process connection status changes, and the default connection status is used to characterize the initial of the current electronic device
Connection status;When judging the monitoring process connection status change, the network between the current electronic device is judged
Whether connect;
Determining unit, for when judging not connect with the network of the current electronic device, determining that the network connects
Connect device fails.
In above-mentioned failure detector, the acquiring unit is additionally operable to obtain described default by the communication process
The initiating electron equipment that connection status is characterized.
In above-mentioned failure detector, the determining unit is additionally operable to determine and institute from the current electronic device
Stating initiating electron equipment has the electronic equipment to be detected of identical device identification;
The judging unit, specifically for when the corresponding current connection state of the electronic equipment to be detected with it is described
During the corresponding default connection status all same of electronic equipment to be detected, characterize the monitoring process connection status and do not change;
When the current connection state and a default connection status in the current connection state and the default connection status not
When identical, the monitoring process connection status change is characterized.
In above-mentioned failure detector, the failure detector also includes:Transmitting element;
The acquiring unit, is additionally operable to obtain the corresponding unique identification of the current electronic device;
The transmitting element, data are detected for sending first to the current electronic device according to the unique identification
Bag;
The judging unit, specifically for when receiving the response data packet for responding the first detection packet, sentencing
Break and network-in-dialing with the current electronic device;When not receiving the response data packet, judge with it is described current
The network of electronic equipment is not connected.
In above-mentioned failure detector, the failure detector also includes:Matching unit and recovery unit;
The determining unit, is additionally operable to determine the fault type of the network access device;
A matching unit, for the fault type and preset failure type and solution relation storehouse to be carried out
Match somebody with somebody;
The determining unit, is additionally operable to when the fault type and the preset failure type and solution relation storehouse
During with success, in the preset failure type with determining solution party corresponding with the fault type in solution relation storehouse
Method;
The recovery unit, for recovering the network access device using the solution.
The embodiment of the present invention provides a kind of failure detector, including memory, transmitter, processor and is stored in described
On memory and the computer program that can run on the processor, the transmitter is grasped dependent on the computing device
Make, when program is executed by processor, perform following steps:
The processor, the current connection state for obtaining current electronic device by communication process;Worked as according to described
Preceding connection status and default connection status, judge whether the corresponding monitoring process connection status of the current electronic device changes,
The default connection status is used for the initial connection state for characterizing the current electronic device;When judging that the monitoring process connects
When connecing state change, whether judgement connects with the network between the current electronic device;When judging and the Current electronic
When the network of equipment is not connected, determine that the network access device breaks down.
The embodiment of the present invention provides a kind of computer-readable recording medium, is stored thereon with computer program, applied to event
Hinder in detection means, any one fault detection method described above is realized during the computing device of the computer program quilt.
The embodiments of the invention provide a kind of fault detection method and device, current electronic device is obtained by communication process
Current connection state;According to current connection state and default connection status, the corresponding monitoring process of current electronic device is judged
Whether connection status changes, and default connection status is used for the initial connection state for characterizing current electronic device;When judge monitoring
When process connection status changes, whether judgement connects with the network between current electronic device;When judging to set with Current electronic
When standby network is not connected, determine that network access device breaks down.Using above-mentioned technic relization scheme, failure detector leads to
Cross communication process and judge the change of current electronic device corresponding monitoring process connection status, and with the network of current electronic device
When not connecting, the reason for failure detector determines communication terminal is broken down for network access device, fixed so as to improve
The speed of bit walk interruption source.
Brief description of the drawings
Fig. 1 is a kind of flow chart one of fault detection method provided in an embodiment of the present invention;
Fig. 2 is a kind of flowchart 2 of fault detection method provided in an embodiment of the present invention;
Fig. 3 carries out the schematic diagram of fault detect for a kind of exemplary digitalizer provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation one of failure detector provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation two of failure detector provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation three of failure detector provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation four of failure detector provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described.
Embodiment one
The embodiment of the present invention provides a kind of fault detection method, as shown in figure 1, this method can include:
S101, the current connection state by communication process acquisition current electronic device.
A kind of fault detection method provided in an embodiment of the present invention is applied to the network interruption of connection transformer station internal unit
Scene under.
In the embodiment of the present invention, failure detector is set up network by network access device and current electronic device and connected
Connect, failure detector communication process obtains the current connection state of current electronic device in real time according to connection management unit.
In the embodiment of the present invention, network access device is the equipment that network interface card etc. can carry out network interconnection, specific basis
Actual conditions are selected, and the embodiment of the present invention does not do specific restriction.
In the embodiment of the present invention, the current connection shape of current electronic device is recorded in the connection management unit of communication process
State, the initial connection state of current electronic device is connection status, when current electronic device disconnects and failure detector
Connection when, the connection status of current electronic device is changed to off-state in communication process.
S102, according to current connection state and default connection status, judge that the corresponding monitoring process of current electronic device connects
Connect whether state changes, default connection status is used for the initial connection state for characterizing current electronic device.
After failure detector gets the current connection state of current electronic device, failure detector will root
According to current connection state and default connection status, to detect the monitoring process connection status with current electronic device.
In the embodiment of the present invention, current connection state and default connection status are compared by failure detector, due to
Default connection status is initial connection state, therefore, when one in current connection state and default connection status currently connects
Connect state it is different from a default connection status when, with regard to that can judge that the monitoring process connection status of current electronic device changes,
Now, the monitoring process connection status of at least one electronic equipment in current electronic device is off-state;When current connection
When state and default connection status all same, with regard to that can judge that the monitoring process connection status of current electronic device does not change, this
When, the monitoring process connection status of current electronic device is connection status.
Further, before failure detector obtains current connection state, failure detector, which is first obtained, initially to be connected
The initiating electron equipment of state is connect, then determines there be treating for identical device identification with initiating electron equipment from current electronic device
Detect electronic equipment.
In the embodiment of the present invention, the connection that initiating electron equipment is obtained when being last fault detect by communication process
Electronic equipment.
Specifically, in the embodiment of the present invention, because the default connection status of initiating electron equipment is initial connection state,
Therefore, failure detector can by check electronic equipment to be detected in connection management unit connection status to be detected whether be
Initial connection state, to judge whether monitoring process connection status changes;Failure detector can also pass through the company of acquisition respectively
Connect the corresponding first connection quantity of initiating electron equipment in administrative unit and the corresponding second connection quantity of electronic equipment to be detected
Between size, to judge whether monitoring process connection status changes, judgment mode is specifically selected according to actual conditions, this
Inventive embodiments do not do specific restriction.
Exemplary, the electronic equipment of connection when failure detector obtains last fault detect is device A, equipment
B, equipment C, then failure detector by communication process determine current electronic device be device A, equipment B, equipment C and equipment
D, wherein, the current connection state of device A is off-state, and equipment B, equipment C and equipment D current connection state are to have connected
State, failure detector is determined to have the device A of identical device identification with being connected electronic equipment from current electronic device, set
Standby B and equipment C, whether the current connection state for then judging device A, equipment B and equipment C is connection status, now, is sentenced
Break and the current connection state of device A for off-state, therefore, when failure detector judges the fault detect of distance last time
Between in section, failure detector is disconnected with device A.
S103, when judge monitoring process connection status change when, judge and current electronic device between network whether
Connection.
When failure detector judge monitoring process connection status change when, failure detector will judge with currently
Whether the network between electronic equipment connects.
In the embodiment of the present invention, the corresponding Internet protocol of current electronic device (IP, Internet Protocol) letter
Breath (unique identification) is stored in network connection list, when failure detector judges that monitoring process connection status becomes
During change, failure detector obtains IP information from network connection list, and performs ping orders to the IP information got, when
IP information can ping it is logical when, the network-in-dialing between characterization failure detection means and current electronic device;When IP information is equal
Be unable to ping it is logical when, the network between characterization failure detection means and current electronic device is not connected.
In the embodiment of the present invention, when electronic equipment disconnects the connection with failure detector, failure detector will be disconnected
The corresponding IP information of electronic equipment for opening connection is removed from network connection list.
S104, when judging not connect with the network of current electronic device, determine that network access device breaks down.
When failure detector is judged not connect with the network of current electronic device, failure detector is determined with working as
The network access device that preceding electronic equipment carries out network connection breaks down.
In the embodiment of the present invention, when the network that failure detector is judged between current electronic device is not connected,
The reason for failure detector is by communication disruption is defined as the network access devices such as network interface card and broken down.
The preset failure type that is stored with the embodiment of the present invention, in failure detector and solution relation storehouse, when event
Barrier detection means is when determining the fault type of network access device, failure detector by fault type and preset failure type with
Solution relation storehouse is matched, when the match is successful for fault type and preset failure type and solution relation storehouse, therefore
Hinder detection means from preset failure type with determining solution corresponding with fault type in solution relation storehouse, and utilize
Solution recovers network access device.
It is exemplary, it is that the resource of network interface card is taken by other equipment when the reason for failure detector judges net card failure
When, failure detector determines the equipment for taking network interface card resource, and interrupts the resource occupation of the equipment, is again finally network interface card point
With resource, to recover the normal operation of network interface card.
Further, when failure detector judges the network-in-dialing between current electronic device, fault detect
Device determines network connectivity devices normal operation.
It is understood that failure detector judges the corresponding monitoring process of current electronic device by communication process
Connection status changes, and when not connected with the network of current electronic device, the reason for failure detector determines communication terminal is
Network access device breaks down, so as to improve the speed of positioning and communicating interruption source.
Embodiment two
The embodiment of the present invention provides a kind of fault detection method, as shown in Fig. 2 this method can include:
S201, failure detector obtain the initiating electron equipment of default connection status by communication process.
A kind of fault detection method provided in an embodiment of the present invention is applied to the network interruption of connection transformer station internal unit
Scene under.
In the embodiment of the present invention, initial connection state is initial during due to that can preserve fault detect each time in communication process
Electronic equipment, therefore, failure detector is initial by the initial connection state during fault detect of communication process acquisition last time
Electronic equipment.
In the embodiment of the present invention, failure detector presets the initiating electron equipment of connection status by obtaining, and is used as inspection
Survey the benchmark whether corresponding monitoring process connection status of current electronic device changes.
S202, failure detector obtain the current connection state of current electronic device by communication process.
After failure detector gets initiating electron equipment, failure detector will obtain current electronic device
And the current connection state of current electronic device.
In the embodiment of the present invention, failure detector is set up network by network access device and current electronic device and connected
Connect, failure detector communication process obtains the current connection state of current electronic device in real time according to connection management unit.
In the embodiment of the present invention, network access device is the equipment that network interface card etc. can carry out network interconnection, specific basis
Actual conditions are selected, and the embodiment of the present invention does not do specific restriction.
In the embodiment of the present invention, the current connection shape of current electronic device is recorded in the connection management unit of communication process
State, the initial connection state of current electronic device is connection status, when current electronic device disconnects and failure detector
Connection when, the connection status of current electronic device is changed to off-state in communication process.
S203, failure detector determine there is identical device identification with initiating electron equipment from current electronic device
Electronic equipment to be detected.
After failure detector gets current electronic device, failure detector is determined from current electronic device
There is the electronic equipment to be detected of identical device identification with initiating electron equipment.
In the embodiment of the present invention, failure detector determines there be identical set with initiating electron equipment from current electronic device
The equipment of standby mark is used as electronic equipment to be detected.
S204, when the default connection corresponding with electronic equipment to be detected of the corresponding current connection state of electronic equipment to be detected
During state all same, characterize monitoring process connection status and do not change.
After failure detector determines electronic equipment to be detected, failure detector will pass through electronics to be detected
The corresponding connection status to be detected of equipment and default connection status, to judge whether monitoring process connection status changes.
In the embodiment of the present invention, failure detector determines that the current of electronic equipment to be detected connects from current connection state
State is connect, and the current connection state of electronic equipment to be detected default connection status corresponding with electronic equipment to be detected is carried out
Compare, when the corresponding current connection state of electronic equipment to be detected default connection status corresponding with electronic equipment to be detected is homogeneous
Meanwhile, failure detector judges that monitoring process connection status does not change.
Exemplary, the electronic equipment of connection when failure detector obtains last fault detect is device A, equipment
B, equipment C, then failure detector by communication process determine current electronic device be device A, equipment B, equipment C and equipment
D, wherein, the current connection state of device A is off-state, and equipment B, equipment C and equipment D current connection state are to have connected
State, failure detector is determined to have the device A of identical device identification with being connected electronic equipment from current electronic device, set
Standby B and equipment C, whether the current connection state for then judging device A, equipment B and equipment C is connection status, now, is sentenced
Break and the current connection state of device A for off-state, therefore, when failure detector judges the fault detect of distance last time
Between in section, failure detector is disconnected with device A.
S205, with one default it is connected shape when current connection state and a current connection state in default connection status
When state is differed, the change of monitoring process connection status is characterized.
A current connection state in failure detector judges current connection state and default connection status with
When one default connection status is differed, now, the change of monitoring process connection status is characterized.
In the embodiment of the present invention, because default connection status characterizes initial connection state, when failure detector is judged
One in the corresponding current connection state of electronic equipment to be detected default connection status corresponding with electronic equipment to be detected is worked as
When preceding connection status is differed with a default connection status, it is disconnected to characterize the corresponding current connection state of electronic equipment to be detected
Open state, now, the change of monitoring process connection status.
Step S204 and step S205 is two steps arranged side by side after step S203, is specifically selected according to actual conditions
Execution is selected, the embodiment of the present invention does not do specific restriction.
S206, when judge monitoring process connection status change when, failure detector obtain current electronic device correspondence
Unique identification.
When failure detector judges the change of monitoring process connection status, failure detector will be to Current electronic
Equipment carries out network-in-dialing and tested, first, and failure detector obtains the corresponding unique identification of current electronic device.
In the embodiment of the present invention, the corresponding IP information of current electronic device is stored in network connection list, when failure inspection
When survey device judges that monitoring process connection status changes, failure detector obtains current electricity from network connection list
The IP information of sub- equipment.
S207, failure detector send first to current electronic device according to unique identification and detect packet.
After failure detector gets unique identification, failure detector sends first to current electronic device
Detect packet.
In the embodiment of the present invention, failure detector performs ping orders to the IP information got.
In the embodiment of the present invention, when there is electronic equipment disconnection and the connection of failure detector, failure detector
The corresponding IP information of electronic equipment that will be switched off connection is removed from network connection list.
S208, when failure detector receive response first detect packet response data packet when, fault detect dress
Put the network-in-dialing judged with current electronic device.
When failure detector, which receives response first, detects the response data packet of packet, characterization failure detection means
With the network-in-dialing of current electronic device.
In the embodiment of the present invention, when failure detector can ping lead to IP information when, characterization failure detection means with work as
Network-in-dialing between preceding electronic equipment, now, is excluded because network access device causes communication disruption extremely.
S209, when failure detector do not receive response first detect packet response data packet when, characterization failure
Detection means is not connected with the network of current electronic device.
When failure detector, which does not receive response first, detects the response data packet of packet, failure detector is sentenced
Break and do not connected with the network of current electronic device.
In the embodiment of the present invention, when failure detector, which is unable to ping, leads to IP information, characterization failure detection means is with working as
Network between preceding electronic equipment is not connected.
Step S209 and step S208 is two steps arranged side by side after step S207, is specifically selected according to actual conditions
Execution is selected, the embodiment of the present invention does not do specific restriction.
S210, judge that failure detector is true when not connected with the network of current electronic device when failure detector
Determine network access device to break down.
When failure detector is judged not connect with the network of current electronic device, failure detector is determined with working as
Network access device between preceding electronic equipment breaks down.
In the embodiment of the present invention, when failure detector is judged not connect with the network of current electronic device, failure
The reason for detection means determines communication disruption is due to that network access device is caused extremely.
S211, failure detector determine the fault type of network access device, by fault type and preset failure type
Matched with solution relation storehouse.
When failure detector determines that network access device breaks down, failure detector judges that network connection is set
Standby fault type, and fault type and preset failure type are matched with solution relation storehouse.
The preset failure type that is stored with the embodiment of the present invention, in failure detector and solution relation storehouse, are safeguarded
Personnel can upload in preset failure type and solution relation storehouse and specify fault type and the specified fault type pair in advance
The solution answered, when failure detector determines the fault type of network access device, failure detector is in default event
Barrier type in solution relation storehouse with searching the fault type.
S212, when the match is successful for fault type and preset failure type and solution relation storehouse, failure detector
In preset failure type with determining solution corresponding with fault type in solution relation storehouse.
When failure detector finds the fault type in preset failure type and solution relation storehouse, failure
Detection means determines the corresponding solution of fault type.
In the embodiment of the present invention, when failure detector finds this in preset failure type and solution relation storehouse
During fault type, failure detector is in the solution corresponding with searching fault type in solution relation storehouse of preset failure type
Method.
S213, failure detector recover network access device using solution.
After failure detector determines the solution for solving network access device failure, failure detector is just
Network access device is carried out using solution recovering.
In the embodiment of the present invention, failure detector utilizes what is got from preset failure type and solution relation storehouse
Solution carries out the recovery operation such as restarting to network access device.
It is exemplary, it is that the resource of network interface card is taken by other equipment when the reason for failure detector judges net card failure
When, failure detector determines the equipment for taking network interface card resource, and interrupts the resource occupation of the equipment, is again finally network interface card point
With resource, to recover the normal operation of network interface card.
It is understood that preset failure type and solution relation storehouse are previously provided with inside failure detector,
When failure detector determines the fault type of network access device, failure detector can preset failure type with
The corresponding solution of fault type is searched out in solution relation storehouse, and recovers network connection automatically using the solution
Equipment, adds the abnormal automatic processing capabilities of network access device, improves the speed of network access device fault recovery.
Exemplary, as shown in figure 3, the flow of failure detector detection network access device failure is as follows, wherein, net
Block for network access device, client is current electronic device, and digitalizer is failure detector:
1st, digitalizer obtains the connection status of active client, and counts the number for the active client for keeping connection
Amount;
2nd, digitalizer determines whether that client is disconnected according to the quantity of connection status and active client;
3rd, when no client is disconnected, step 1 is jumped to;
4th, when there is client and disconnect, digitalizer passes through to all client executing networks for keeping connection
Connection is tested to judge whether all clients for keeping connection connect, and is then to perform step 7, otherwise performs step 5;
5th, when digitalizer is tested by network-in-dialing judges that all clients for keeping connecting can not all be connected,
Digitalizer judges that network interface card is abnormal.
6th, digitalizer carries out abnormality processing to network interface card.
7th, when digitalizer is tested by network-in-dialing judges that all clients for keeping connecting can be connected, jump
Go to step 1.
It is understood that failure detector judges the corresponding monitoring process of current electronic device by communication process
Connection status changes, and when not connected with the network of current electronic device, the reason for failure detector determines communication terminal is
Network access device breaks down, so as to improve the speed of positioning and communicating interruption source.
Embodiment three
The embodiment of the present invention provides a kind of failure detector 1, as shown in figure 4, the failure detector 1 can include:
Acquiring unit 10, the current connection state for obtaining current electronic device by communication process.
Judging unit 11, for according to the current connection state and default connection status, judging that the Current electronic is set
Whether standby corresponding monitoring process connection status changes, and the default connection status is used to characterize the first of the current electronic device
Beginning connection status;When judging the monitoring process connection status change, the net between the current electronic device is judged
Whether network connects.
Determining unit 12, for when judging not connect with the network of the current electronic device, determining the network
Connect device fails.
Optionally, the acquiring unit 10, is additionally operable to obtain the initial connection state sign by the communication process
Initiating electron equipment.
Optionally, the determining unit 12, is additionally operable to determine to set with the initiating electron from the current electronic device
The standby electronic equipment to be detected with identical device identification.
The judging unit 11, specifically for being treated when the corresponding current connection state of the electronic equipment to be detected with described
When detecting the corresponding default connection status all same of electronic equipment, characterize the monitoring process connection status and do not change;When
The corresponding current connection state of the electronic equipment to be detected default connection shape corresponding with the electronic equipment to be detected
When a current connection state and a default connection status in state are differed, characterize the monitoring process connection status and become
Change.
Optionally, based on Fig. 4, as shown in figure 5, the failure detector 1 also includes:Transmitting element 13.
The acquiring unit 10, is additionally operable to obtain the corresponding unique identification of the current electronic device.
The transmitting element 13, number is detected for sending first to the current electronic device according to the unique identification
According to bag.
The judging unit 11, specifically for when receive respond it is described first detection packet response data packet when,
Judge the network-in-dialing with the current electronic device;When not receiving the response data packet, judge to work as with described
The network of preceding electronic equipment is not connected.
Optionally, based on Fig. 4, as shown in fig. 6, the failure detector 1 also includes:Matching unit 14 and recovery unit
15。
The determining unit 12, is additionally operable to determine the fault type of the network access device.
A matching unit 14, for the fault type and preset failure type and solution relation storehouse to be carried out
Match somebody with somebody.
The determining unit 12, is additionally operable to when the fault type and the preset failure type and solution relation storehouse
When the match is successful, in the preset failure type with determining solution party corresponding with the fault type in solution relation storehouse
Method.
The recovery unit 15, for recovering the network access device using the solution.
In actual applications, under the same inventive concept based on embodiment one and embodiment two, as shown in fig. 7, failure is examined
Surveying device 1 can include:Communication interface 16, memory 17, transmitter 18, processor 19 and bus 110;
Above-mentioned acquiring unit 10, judging unit 11, determining unit 12, matching unit 14 and recovery unit 15 can be by positioned at events
Barrier detection means 1 on processor 19 realize, above-mentioned processor 19 can for application-specific IC (ASIC,
Application Specific Integrated Circuit), digital signal processor (DSP, Digital Signal
Processor), digital signal processing device (DSPD, Digital Signal Processing Device), FPGA
Device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field Programmable
Gate Array), central processing unit (CPU, Central Processing Unit), controller, microcontroller, microprocessor
At least one of.It is to be appreciated that for different equipment, for realizing that the electronic device of above-mentioned processor function can be with
To be other, the embodiment of the present invention is not especially limited, and transmitting element 13 can be realized by transmitter 18, and the failure detector 1 is also
Memory 17 can be included, the memory 17 and transmitter 18 can be connected with processor 19, wherein, memory 17 is used to store
Executable program code, the program code includes computer-managed instruction, and memory 17 may include high-speed RAM memory,
Nonvolatile memory may also be included, for example, at least one magnetic disk storage.
The bus 110 be used for connect the communication interface 16, transmitter 18, processor 19 and memory 17 and these
Being in communication with each other between device;
The communication interface 16, for carrying out data transmission with ext nal network element;
The memory 17, for store instruction and data;
The processor 19, which performs described instruct, to be used for:The current connection shape of current electronic device is obtained by communication process
State;
According to the current connection state and default connection status, the corresponding monitoring process of the current electronic device is judged
Whether connection status changes, and the default connection status is used for the initial connection state for characterizing the current electronic device;
When judging the monitoring process connection status change, judge that the network between the current electronic device is
No connection;
When judging not connect with the network of the current electronic device, determine that event occurs for the network access device
Barrier.
The transmitter 18, packet is detected for sending first to the current electronic device.
In actual applications, above-mentioned memory 17 can be volatile memory (volatile memory), for example at random
Access memory (RAM, Random-Access Memory);Or nonvolatile memory (non-volatile memory),
Such as read-only storage (ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard
Disk Drive) or solid state hard disc (SSD, Solid-State Drive);Or the combination of the memory of mentioned kind, and to
Processor 19 provides instruction and data.
In addition, each functional module in the present embodiment can be integrated in a processing unit or each list
Member be individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit both can be with
Realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.
If the integrated unit realizes that being not intended as independent product is sold in the form of software function module
Or in use, can be stored in a computer read/write memory medium, based on such understanding, the technical side of the present embodiment
The part or all or part of the technical scheme that case substantially contributes to prior art in other words can be produced with software
The form of product is embodied, and the computer software product is stored in a storage medium, including some instructions are to cause one
Platform computer equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform sheet
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc
Or CD etc. is various can be with the medium of store program codes.
The embodiment of the present invention provides a kind of computer-readable recording medium, is stored thereon with computer program, applied to event
Hinder in detection means 1, the method as described in embodiment one and embodiment two is realized when the computer program is executed by processor.
Specifically, corresponding first programmed instruction of a kind of fault detection method in the present embodiment can be stored in light
On disk, hard disk, the storage medium such as USB flash disk, when the first programmed instruction quilt corresponding with a kind of fault detection method in storage medium
When one electronic equipment reads or is performed, comprise the following steps:
The current connection state of current electronic device is obtained by communication process;
According to the current connection state and default connection status, the corresponding monitoring process of the current electronic device is judged
Whether connection status changes, and the default connection status is used for the initial connection state for characterizing the current electronic device;
When judging the monitoring process connection status change, judge that the network between the current electronic device is
No connection;
When judging not connect with the network of the current electronic device, determine that event occurs for the network access device
Barrier.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combine software and hardware
Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code
The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (12)
1. a kind of fault detection method, applied to failure detector, the failure detector by network access device with
Electronic equipment sets up network connection, it is characterised in that methods described includes:
The current connection state of current electronic device is obtained by communication process;
According to the current connection state and default connection status, the corresponding monitoring process connection of the current electronic device is judged
Whether state changes, and the default connection status is used for the initial connection state for characterizing the current electronic device;
When judging the monitoring process connection status change, judge whether the network between the current electronic device connects
It is logical;
When judging not connect with the network of the current electronic device, determine that the network access device breaks down.
2. according to the method described in claim 1, it is characterised in that described that working as current electronic device is obtained by communication process
Before preceding connection status, methods described also includes:
The initiating electron equipment that the default connection status is characterized is obtained by the communication process.
3. method according to claim 2, it is characterised in that described according to the current connection state and default connection shape
State, judges whether the corresponding monitoring process connection status of the current electronic device changes, including:
Determine that the electronics to be detected for having identical device identification with the initiating electron equipment is set from the current electronic device
It is standby;
When the corresponding current connection state of the electronic equipment to be detected is corresponding with the electronic equipment to be detected described
During default connection status all same, characterize the monitoring process connection status and do not change;
Preset when the current connection state with a current connection state in the default connection status with one and be connected shape
When state is differed, the monitoring process connection status change is characterized.
4. method according to claim 2, it is characterised in that the network between the judgement and the current electronic device
Whether connect, including:
Obtain the corresponding unique identification of the current electronic device;
First is sent to the current electronic device detect packet according to the unique identification;
When receiving the response data packet for responding the first detection packet, the net with the current electronic device is judged
Network is connected;
When not receiving the response data packet, judge not connect with the network of the current electronic device.
5. according to the method described in claim 1, it is characterised in that described to determine that the network access device breaks down it
Afterwards, methods described also includes:
The fault type of the network access device is determined, by the fault type and preset failure type and solution relation
Storehouse is matched;
When the match is successful for the fault type and the preset failure type and solution relation storehouse, in the preset failure
Type is with determining solution corresponding with the fault type in solution relation storehouse;
Recover the network access device using the solution.
6. a kind of failure detector, it is characterised in that the failure detector includes:
Acquiring unit, the current connection state for obtaining current electronic device by communication process;
Judging unit, for according to the current connection state and default connection status, judging the current electronic device correspondence
Monitoring process connection status whether change, the default connection status is used to characterize the initial connection of the current electronic device
State;When judging the monitoring process connection status change, whether the network between judgement and the current electronic device
Connection;
Determining unit, for when judging not connect with the network of the current electronic device, determining that the network connection is set
It is standby to break down.
7. failure detector according to claim 6, it is characterised in that
The acquiring unit, is additionally operable to set by the initiating electron that the communication process obtains the initial connection state sign
It is standby.
8. failure detector according to claim 7, it is characterised in that
The determining unit, is additionally operable to determine there is identical equipment with the initiating electron equipment from the current electronic device
The electronic equipment to be detected of mark;
The judging unit, specifically for when the corresponding current connection state of the electronic equipment to be detected with it is described to be checked
When surveying the corresponding default connection status all same of electronic equipment, characterize the monitoring process connection status and do not change;Work as institute
Current connection state is stated to differ with a current connection state in the default connection status and a default connection status
When, characterize the monitoring process connection status change.
9. failure detector according to claim 7, it is characterised in that the failure detector also includes:Send
Unit;
The acquiring unit, is additionally operable to obtain the corresponding unique identification of the current electronic device;
The transmitting element, packet is detected for sending first to the current electronic device according to the unique identification;
The judging unit, specifically for when receiving the response data packet for responding the first detection packet, judging
With the network-in-dialing of the current electronic device;When not receiving the response data packet, judge and the Current electronic
The network of equipment is not connected.
10. failure detector according to claim 6, it is characterised in that the failure detector also includes:Matching
Unit and recovery unit;
The determining unit, is additionally operable to determine the fault type of the network access device;
The matching unit, for the fault type and preset failure type to be matched with solution relation storehouse;
The determining unit, is additionally operable to work as the fault type and the preset failure type is matched into solution relation storehouse
During work(, in the preset failure type with determining solution corresponding with the fault type in solution relation storehouse;
The recovery unit, for recovering the network access device using the solution.
11. a kind of failure detector, it is characterised in that the failure detector include memory, transmitter, processor and
The computer program that can be run on the memory and on the processor is stored in, the transmitter depends on the processing
Device performs operation, when program is executed by processor, and performs following steps:
The processor, the current connection state for obtaining current electronic device by communication process;Currently connected according to described
State and default connection status are connect, judges whether the corresponding monitoring process connection status of the current electronic device changes, it is described
Default connection status is used for the initial connection state for characterizing the current electronic device;When judging monitoring process connection shape
When state changes, whether judgement connects with the network between the current electronic device;When judging and the current electronic device
Network when not connecting, determine that the network access device breaks down.
12. a kind of computer-readable recording medium, is stored thereon with computer program, applied in failure detector, it is special
Levy and be, the method as described in claim any one of 1-5 is realized during the computing device of the computer program quilt.
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 true CN107241218A (en) | 2017-10-10 |
CN107241218B CN107241218B (en) | 2020-07-28 |
Family
ID=59985693
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710384541.2A Active CN107241218B (en) | 2017-05-26 | 2017-05-26 | Fault detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107241218B (en) |
Cited By (1)
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 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102457403A (en) * | 2010-10-15 | 2012-05-16 | 无锡江南计算技术研究所 | Method and device for detecting network connection faults |
US20120278657A1 (en) * | 2008-09-04 | 2012-11-01 | Telcordia Technologies, Inc. | Computing diagnostic explanations of network faults from monitoring data |
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 |
-
2017
- 2017-05-26 CN CN201710384541.2A patent/CN107241218B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120278657A1 (en) * | 2008-09-04 | 2012-11-01 | Telcordia Technologies, Inc. | Computing diagnostic explanations of network faults from monitoring data |
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 |
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107241218B (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110166462B (en) | Access control method, system, electronic device and computer storage medium | |
CN110691009B (en) | Network equipment inspection method and device | |
CN103838181B (en) | Machine tool state judgment method and system | |
CN103138988B (en) | Positioning treatment method and positioning treatment device of network faults | |
CN106789386A (en) | The method and the error detector for network system of mistake on detection communication bus | |
CN113259183B (en) | Network relay control method and device, electronic equipment and storage medium | |
CN107070747B (en) | Device, system and method for automatically testing network card network connection stability in network card binding mode | |
CN101252448A (en) | Method and system for detecting current failure of power receiving equipment as well as power supply equipment | |
CN115118581B (en) | Internet of things data all-link monitoring and intelligent guaranteeing system based on 5G | |
CN107147546A (en) | Double net heartbeat inspecting method and system | |
CN111341063A (en) | Intelligent control system, method and device for safety early warning and monitoring of electric equipment and terminal equipment | |
CN104572329A (en) | Fault determination method and device | |
CN101252477B (en) | Determining method and analyzing apparatus of network fault root | |
CN107241218A (en) | A kind of fault detection method and device | |
CN105630657A (en) | Temperature detection method and device | |
CN115543872A (en) | Equipment management method and device and computer storage medium | |
CN109150587A (en) | A kind of maintaining method and device | |
CN104795796A (en) | Motor fault monitoring device and method of intelligent ring main unit | |
CN104378246B (en) | A kind of network equipment failure alignment system, method and device | |
CN104391756B (en) | Chain type SVG failure sorted fault-tolerance processing methods based on multi-channel serial communication | |
CN105280966B (en) | The detection diagnosis that multiple battery unit sensing board communications are lost | |
CN116405408A (en) | Automatic equipment inspection method, device, equipment and storage medium | |
CN116133021A (en) | Wireless network card self-management flow based on LINUX board card | |
CN114244686B (en) | Communication fault detection method, device and system | |
CN115373916A (en) | Abnormality detection method, abnormality detection device, electronic apparatus, and computer-readable storage medium |
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 |