CN103944755A - Universal method for detection and recovery of communication dead halt of network switching device - Google Patents
Universal method for detection and recovery of communication dead halt of network switching device Download PDFInfo
- Publication number
- CN103944755A CN103944755A CN201410130314.3A CN201410130314A CN103944755A CN 103944755 A CN103944755 A CN 103944755A CN 201410130314 A CN201410130314 A CN 201410130314A CN 103944755 A CN103944755 A CN 103944755A
- Authority
- CN
- China
- Prior art keywords
- communication
- network switching
- switching equipment
- frame
- interval time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 111
- 238000011084 recovery Methods 0.000 title claims abstract description 25
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000001514 detection method Methods 0.000 title claims abstract description 14
- 230000002159 abnormal effect Effects 0.000 claims abstract description 11
- 230000005856 abnormality Effects 0.000 claims description 35
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 description 2
Abstract
The invention provides a universal method for detection and recovery of a communication dead halt of a network switching device. The universal method comprises the steps that the interval time of timed sending of data frames is set to be an integer larger than zero; allowable duration of abnormal communication is set to be an integer larger than zero; the interval time between two times of recovery is set to be an integer larger than zero; the interval time between switching-off and switching-on of a power supply is set to be an integer larger than zero; the data frames are sent to a computer in a network continuously according to the interval time of timed sending of the data frames, if abnormal communication occurs, the duration of abnormal communication is compared with the allowable duration of abnormal communication, and if the duration of abnormal communication is equal to the allowable duration of abnormal communication, it is judged that the communication dead halt of the network device occurs; when the communication dead halt of the network device occurs, communication dead halt recovery processing is conducted on the network switching device; if the network switching device cannot return to normal after communication dead halt recovery processing, after the interval time between two times of recovery, communication dead halt recovery processing is conducted on the network switching device again.
Description
Technical field
The present invention relates to a kind of method that general network switching equipment communication is crashed detection and recovered, belong to data communication technology field.
Background technology
In computer network communications system, the normal work of the network switching equipment is to maintain one of normal basic link of communication.Network service causes due to network switching equipment communication deadlock extremely often, and the network switching equipment itself there is no hardware fault, as long as the network switching equipment is heavily powered on and just can recover normal communication work state.The communication of the network switching equipment is crashed and detected, generally adopt hardware circuit detection method or application software diagnosis.Hardware circuit detection method communicates by designing special hardware circuit the detection of crashing, and the shortcoming of the method is to detect after communication is crashed to need manual intervention, not too applicable to unattended occasion.Application software diagnosis communicates by configure special software module in the network switching equipment detection of crashing, when detecting that communication makes network switching equipment Self-resetting while deadlock, the shortcoming of this kind of method is that network switching equipment Self-resetting is a kind of warm start mode, be not the cold start-up mode of direct power-off, another warm startup can not recover normal work sometimes.And the communication deadlock detection method of above-mentioned two kinds of network switching equipment is not universal method, the method for different manufacturers can only be applied to the products that oneself is produced, and in practical engineering application, versatility is not strong.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method that general network switching equipment communication is crashed detection and recovered, the method that adopts software and hardware to combine, can be initiatively, detect network switching equipment communication rapidly and crash and recover, be applicable to the different network switching equipment, Attended mode and unattended occasion all can be applied.
The invention provides a kind of method that general network switching equipment communication is crashed detection and recovered, comprising:
It is to be greater than 0 integer that timed sending Frame interval time is set; It is to be greater than 0 integer that the communication abnormality permission duration is set; It is to be greater than 0 integer that setting recovers interval time again; Power supply is set, and to disconnect closed interval time be to be greater than 0 integer;
Send Frame to certain computer in network continuously by timed sending Frame interval time, as communicate by letter normally by communications status initialization; As the abnormal duration of record communication of communication abnormality, and compare the size of communication abnormality duration and communication abnormality permission duration, as the two equates, be judged as network switching equipment communication and crash;
In the time that network switching equipment communication is crashed, the network switching equipment is communicated to deadlock Recovery processing;
When the network switching equipment can not recover normal after communication deadlock Recovery processing,, through again recovering after interval time, again the network switching equipment is communicated to deadlock Recovery processing.
Further, communication first defines communication abnormality duration register before crashing and detecting;
The duration of communication abnormality when described communication abnormality duration register sends Frame to a network computer for recording continuously by timed sending Frame interval time.
Further, described communication normally refers to: send after a frame data frame to certain computer in network by timed sending Frame interval time, can receive the passback Frame of this computer;
Described communication abnormality refers to: send after a frame data frame to certain computer in network by timed sending Frame interval time, can not receive the passback Frame of this computer.
Further, described communications status initialization refers to communication abnormality duration register is set to 0.
Further, communication is crashed to detect after each transmission Frame and is carried out.
Further, described communication deadlock Recovery processing refers to: in the time that network switching equipment communication is crashed, the network switching equipment is heavily powered on, during heavily powering on, suspend and send Frame, after heavily having powered on, start to send Frame again;
The described deadlock Recovery processing that again communicates refers to: when the network switching equipment can not recover normal after communication deadlock Recovery processing,, through again recovering after interval time, again the network switching equipment is communicated to deadlock Recovery processing.
Further, described communication is crashed to detect and is specifically referred to: by timed sending Frame interval time continuously to certain computer transmission Frame in network; After every transmission one frame data frame, if can receive that the Frame of this computer passback just thinks that communication is normal, sets to 0 communication abnormality duration register; After every transmission one frame data frame, just think communication abnormality if can not receive the Frame of this computer passback, by the value of communication abnormality duration register and be added timed sending Frame interval time with value record to communication abnormality duration register, and relatively value and the communication abnormality of communication abnormality duration register allow the size of duration, in the time that the two is equal, think network switching equipment communication deadlock.
Further, described heavily powers on and refers to the network switching equipment: first disconnect the power supply of the network switching equipment, and after power supply disconnects closed interval time, then the power supply of closed network switching equipment.
In sum, the method that a kind of general network switching equipment communication provided by the invention is crashed detection and recovered, can detect initiatively, rapidly network switching equipment communication crashes and automatically recovers, be applicable to the network switching equipment of different manufacturers, Attended mode and unattended occasion all can be applied.In the time that network switching equipment communication is crashed, the network switching equipment is heavily powered on and makes equipment recover normal; After heavily powering on, equipment can not recover normally,, after interval time, again the network switching equipment heavily to be powered on through again recovering.
Brief description of the drawings
Fig. 1 is that in the present invention, network switching equipment communication is crashed and detected and the operational flowchart of restoration methods.
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is described in detail.
The present embodiment relates to a kind of method that general network switching equipment communication is crashed detection and recovered, first following variable and the register of definition:
Timed sending Frame N1:N1 interval time is greater than 0 integer, for sending a frame data frame every the N1 time to a network computer;
Communication abnormality duration register R1: for the abnormal duration of record communication, often detect that once communication is normal, register sets to 0; Communication abnormality often detected one time, register adds N1; The counting of R1 represents with r1, and its initial value is made as 0;
Communication abnormality allows duration N2:N2 to be greater than 0 integer, is used for judging the network switching equipment deadlocks of whether communicating by letter, and thinks and network switching equipment communication deadlock communicate deadlock Recovery processing in the time that r1 equals N2;
Again recover interval time N3:N3 and be greater than 0 integer, for the network switching equipment is communicated to deadlock Recovery processing again, in the time that r1 equals N3, think to communicate after deadlock Recovery processing and can not recover normal, again the network switching equipment is communicated to deadlock Recovery processing;
Power supply disconnects closed interval time N4:N4 and is greater than 0 integer, when the network switching equipment is heavily powered on, controls the interval time disconnecting between network switching equipment power supply and closed network switching equipment power supply.
Sending before Frame for the first time, first to define timed sending Frame N1 interval time, communication abnormality allow duration N2, again recover interval time N3 and power supply disconnect closed interval time of N4, in the present embodiment, N1 is made as 30, N2 is made as 300, N3 is made as 20000, N4 is made as 10, and unit is all second.
As shown in Figure 1, the network switching equipment communication of the present embodiment deadlock detection and restoration methods comprise the following steps:
Step 110, starts;
Step 120, sends a frame data frame to certain computer in network;
Step 130, waits for the N1 time, execution step 140;
Step 140, judges and within the stand-by period, whether receives passback Frame, is to perform step 150, otherwise execution step 160;
Step 150, sets to 0 r1, returns to step 120;
Step 160, upgrades communication abnormality duration register R1, and r1 adds N1, execution step 170;
Step 170, the value r1 of register R1 of abnormal duration of query communication, if r1=N2 performs step 180, otherwise execution step 210;
Step 180, disconnects network switching equipment power supply, execution step 190;
Step 190, waits for the N4 time, execution step 200;
Step 200, closed network switching equipment power supply, returns to step 120;
Step 210, the value r1 of register R1 of abnormal duration of query communication, if r1=N3 performs step 220, otherwise returns to step 120;
Step 220, is set to N2 by r1, execution step 180.
Claims (8)
1. the method that general network switching equipment communication is crashed detection and recovered, comprising:
It is to be greater than 0 integer that timed sending Frame interval time is set; It is to be greater than 0 integer that the communication abnormality permission duration is set; It is to be greater than 0 integer that setting recovers interval time again; Power supply is set, and to disconnect closed interval time be to be greater than 0 integer;
Send Frame to certain computer in network continuously by timed sending Frame interval time, as communicate by letter normally by communications status initialization; As the abnormal duration of record communication of communication abnormality, and compare the size of communication abnormality duration and communication abnormality permission duration, as the two equates, be judged as network switching equipment communication and crash;
In the time that network switching equipment communication is crashed, the network switching equipment is communicated to deadlock Recovery processing;
When the network switching equipment can not recover normal after communication deadlock Recovery processing,, through again recovering after interval time, again the network switching equipment is communicated to deadlock Recovery processing.
2. the general network switching equipment communication method that detects and recover that crashes as claimed in claim 1, is characterized in that:
Communication first defines communication abnormality duration register before crashing and detecting;
The duration of communication abnormality when described communication abnormality duration register sends Frame to a network computer for recording continuously by timed sending Frame interval time.
3. the general network switching equipment communication method that detects and recover that crashes as claimed in claim 1, is characterized in that:
Described communication normally refers to: send after a frame data frame to certain computer in network by timed sending Frame interval time, can receive the passback Frame of this computer;
Described communication abnormality refers to: send after a frame data frame to certain computer in network by timed sending Frame interval time, can not receive the passback Frame of this computer.
4. the general network switching equipment communication method that detects and recover that crashes as claimed in claim 1, is characterized in that, described communications status initialization refers to communication abnormality duration register is set to 0.
5. the general network switching equipment communication method that detects and recover that crashes as claimed in claim 1, is characterized in that, communication is crashed to detect each and carried out after sending Frame.
6. the general network switching equipment communication method that detects and recover that crashes as claimed in claim 1, is characterized in that:
Described communication deadlock Recovery processing refers to: in the time that network switching equipment communication is crashed, the network switching equipment is heavily powered on, during heavily powering on, suspend and send Frame, after heavily having powered on, start to send Frame again;
The described deadlock Recovery processing that again communicates refers to: when the network switching equipment can not recover normal after communication deadlock Recovery processing,, through again recovering after interval time, again the network switching equipment is communicated to deadlock Recovery processing.
7. the general network switching equipment communication method that detects and recover that crashes as claimed in claim 5, is characterized in that, described communication is crashed to detect and specifically referred to: by timed sending Frame interval time continuously to certain computer transmission Frame in network; After every transmission one frame data frame, if can receive that the Frame of this computer passback just thinks that communication is normal, sets to 0 communication abnormality duration register; After every transmission one frame data frame, just think communication abnormality if can not receive the Frame of this computer passback, by the value of communication abnormality duration register and be added timed sending Frame interval time with value record to communication abnormality duration register, and relatively value and the communication abnormality of communication abnormality duration register allow the size of duration, in the time that the two is equal, think network switching equipment communication deadlock.
8. the general network switching equipment communication method that detects and recover that crashes as claimed in claim 6, it is characterized in that, described heavily powers on and refers to the network switching equipment: the power supply that first disconnects the network switching equipment, after power supply disconnects closed interval time, then the power supply of closed network switching equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410130314.3A CN103944755A (en) | 2014-04-02 | 2014-04-02 | Universal method for detection and recovery of communication dead halt of network switching device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410130314.3A CN103944755A (en) | 2014-04-02 | 2014-04-02 | Universal method for detection and recovery of communication dead halt of network switching device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103944755A true CN103944755A (en) | 2014-07-23 |
Family
ID=51192252
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410130314.3A Pending CN103944755A (en) | 2014-04-02 | 2014-04-02 | Universal method for detection and recovery of communication dead halt of network switching device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103944755A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170480A (en) * | 2007-11-30 | 2008-04-30 | 中兴通讯股份有限公司 | Intelligent network bridge for network element communication in different segments and its data transmission method |
CN102263651A (en) * | 2010-05-28 | 2011-11-30 | 烽火通信科技股份有限公司 | Method for detecting connection state of local end equipment in SNMP (simple network management protocol) network management system (NMS) |
CN102394791A (en) * | 2011-10-26 | 2012-03-28 | 浪潮(北京)电子信息产业有限公司 | Downtime recovery method and system |
CN102833392A (en) * | 2011-06-17 | 2012-12-19 | 比亚迪股份有限公司 | Method and system for automatically restarting mobile terminal |
CN203375726U (en) * | 2013-06-26 | 2014-01-01 | 芜湖美的厨卫电器制造有限公司 | Water heater |
-
2014
- 2014-04-02 CN CN201410130314.3A patent/CN103944755A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170480A (en) * | 2007-11-30 | 2008-04-30 | 中兴通讯股份有限公司 | Intelligent network bridge for network element communication in different segments and its data transmission method |
CN102263651A (en) * | 2010-05-28 | 2011-11-30 | 烽火通信科技股份有限公司 | Method for detecting connection state of local end equipment in SNMP (simple network management protocol) network management system (NMS) |
CN102833392A (en) * | 2011-06-17 | 2012-12-19 | 比亚迪股份有限公司 | Method and system for automatically restarting mobile terminal |
CN102394791A (en) * | 2011-10-26 | 2012-03-28 | 浪潮(北京)电子信息产业有限公司 | Downtime recovery method and system |
CN203375726U (en) * | 2013-06-26 | 2014-01-01 | 芜湖美的厨卫电器制造有限公司 | Water heater |
Non-Patent Citations (2)
Title |
---|
杨艳华: "PC与单片机串行通信的协议策略研究及应用", 《云南大学学报(自然科学版)》 * |
林敏: "工业控制计算机的自保护自恢复系统", 《大连轻工业学院学报》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10560315B2 (en) | Method and device for processing failure in at least one distributed cluster, and system | |
CN105808394B (en) | Server self-healing method and device | |
CN104272217B (en) | Principal and subordinate interface | |
CN104657228B (en) | A kind of system exception processing method and processing device of mobile terminal | |
US8578182B2 (en) | Power lock-up setting method performed by baseboard management controller and electronic apparatus using the same | |
CN103955414A (en) | Self-restoration method and device of USB (universal serial bus) Host fault | |
CN105446851A (en) | Processor monitoring method and system and MCU (Microprogrammed Control Unit) for monitoring processor | |
CN105550012A (en) | Method for custom recovery of malfunctioning virtual machine | |
CN103034552B (en) | A kind of method realizing software watchdog in software systems | |
CN101719089A (en) | Remote management method and system of distributed type assembly | |
CN102999148A (en) | WOL (Wake-On-LAN) system with protection function | |
CN106383569A (en) | Universal server power supply protection mechanism | |
CN100378617C (en) | Network wakening device and method | |
CN102801133B (en) | A kind of method of automatic recovery of power supply and device | |
CN103428033A (en) | Active detection method for blade server management network | |
CN102957623A (en) | Maintenance method and equipment of neighborhood of border gate protocol | |
US9735563B2 (en) | Power distribution method, power distribution apparatus, and information handling system | |
CN110502369A (en) | A kind of method, apparatus and storage medium of equipment crash recovery | |
CN101557307B (en) | Dispatch automation system application state management method | |
EP2922331B1 (en) | Method and system for performing dual-homing automatic switching decision according to the number of registered gateways | |
CN103944755A (en) | Universal method for detection and recovery of communication dead halt of network switching device | |
CN103970705A (en) | Multi-path server architecture design with redundant and symmetrical hot-plugging IO boxes | |
CN101930382A (en) | Method, circuit and terminal for starting terminal with memory | |
CN104166599A (en) | Method for recovering delivery configuration by restarting ARM device | |
CN104133759A (en) | Method and device for realizing extension module removal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140723 |