CN101141327A - Method for detecting network node abnormality - Google Patents

Method for detecting network node abnormality Download PDF

Info

Publication number
CN101141327A
CN101141327A CNA2007101757536A CN200710175753A CN101141327A CN 101141327 A CN101141327 A CN 101141327A CN A2007101757536 A CNA2007101757536 A CN A2007101757536A CN 200710175753 A CN200710175753 A CN 200710175753A CN 101141327 A CN101141327 A CN 101141327A
Authority
CN
China
Prior art keywords
link
thread
network node
information table
flag bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007101757536A
Other languages
Chinese (zh)
Other versions
CN100571173C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101757536A priority Critical patent/CN100571173C/en
Publication of CN101141327A publication Critical patent/CN101141327A/en
Application granted granted Critical
Publication of CN100571173C publication Critical patent/CN100571173C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The utility model discloses an detection method for detecting the abnormal network nodes. The method arranges the link status zone bit in the communication program; as the communication program starts up, the examination thread is established to examine each link in the link information table, so as to check for the network nodes which are correspondent to the link. If the link status zone bit thereof is under running state and the difference between the present time and the link's message sending time is no less than the pre-set value, the link's correspondent network nodes are judged as abnormal. So, the link shall be closed and informed to the upper level; or, the next link shall be examined. The utility model can conduct the judgment before receiving the other side's heart-beat messages or recv function return or send function return, so as to greatly shorten the testing time used for detecting the abnormal conditions of the network nodes. Also, the call loss is reduced.

Description

A kind of detection method of network node abnormality
Technical field
The present invention relates to the intelligent network communication field, relate in particular to a kind of detection method of network node abnormality.
Background technology
Owing to complied with of the high requirement of present operator for system safety, improve the fail safe and the reliability of existing network equipment, the biplanar intelligent net system of two nets is used more and more widely.Fig. 1 is the Flat Architecture figure of two net biplane intelligent networks, and as shown in Figure 1, two net biplane intelligent net systems are made up of Ethernet switch, service management node, Complex interface machine, service management access node and router.In the biplanar intelligent net system of two nets, each network node all has active and standby branch, and main frame is in running status under the normal condition, and standby host is in stand-by state.When detecting certain network node and be in abnormality, system can select away emergence program or enable standby host.
Along with the development of intelligent network, more and more higher to the reliability requirement of two net biplane intelligent network communication, when network link broke down, requirement can detect network node abnormality as early as possible, so that take corresponding measure safeguards system reliability.
The unusual method of detection of at present two net biplane intelligent network communication programs has three kinds: 1, communication thread is not received the other side's heartbeat message in the designated time.2, system call recv returns failure.3, system call send returns failure.First method detects needs 25s unusually at least, and during this period of time, upper layer application thinks that link is normal, still sends message, causes producing call loss.Four-way handshake messages when second method and the third method depend on transmission control protocol (TCP) end, when waiting for that close message is responded in the opposite end, this machine TCP is in the TIME_WAIT state, the duration of this state is 2 times the longest merogenesis life cycle (MSL), be generally between 1 fen kind to 4 minute, during this period of time, recv and send can not return failure, thereby can cause producing call loss yet.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of detection method of network node abnormality, shortens detection time, reduces call loss.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of detection method of network node abnormality, this method comprises: every link in setting-up time length scan chain circuit information table, if the transmission thread of detected link is in running status, and the difference that current time and link send the thread transmission message time is not less than preset value, determines the network node abnormality of current detection link correspondence; Otherwise, detect next bar link.
Comprise step before this method: create when communication program starts and detect thread, the link in the link information table is detected by detecting thread.
Comprise step before this method: the Link State flag bit of expression Link State is set, obtains the state of detected link when detecting link by the access link state flag bit in communication program.
Described Link State flag bit represents that link is in running status or blocked state.
When the transmission thread of link began to send message, it was running status that the Link State flag bit is set.
When the transmission thread of link successfully sent message, it was blocked state that the Link State flag bit is set.
Described setting-up time length is 10ms, and described preset value is 100ms.
Comprise step after the network node abnormality of described definite current detection link correspondence: close link, link is set, and whether available flag position IsConnected is unavailable FALSE, and the notice upper layer application.
Described is poll scanning every setting-up time length scan chain circuit information table.
When the current detection link is the last item link detected in the link information table, the epicycle end of scan.
The detection method of network node abnormality provided by the invention, when communication program starts, create one and detect thread, by detecting the mode of thread every link in the link information table is detected with poll, thereby judge whether the pairing network node of detected link is unusual, and need not wait for and receive the other side's heartbeat message, or the recv function returns, or the send function is judged after returning again, whether the network node that can detect every link correspondence in the link information table in 2~10s is unusual, shorten the detection time of network node abnormality greatly, and reduced call loss.
Description of drawings
Fig. 1 is the Flat Architecture figure of two net biplane intelligent networks;
Fig. 2 is the system architecture diagram of the two net biplane intelligent networks of the present invention;
Fig. 3 detects the flow chart of the each scan chain circuit information table of thread for the present invention.
Embodiment
The detection method of network node abnormality of the present invention, when communication program starts, create one and detect thread, by detecting the mode of thread every link in the link information table is detected, thereby judge whether the pairing network node of detected link is unusual with poll.Below be described in further detail by specific embodiment and accompanying drawing detection method network node abnormality of the present invention.
Communication program is created one and is detected thread when starting, and with network on the communication program of other node set up link.Fig. 2 is the system architecture diagram of the two net biplane intelligent networks of the present invention, and as shown in Figure 2, communication program is under the application program, and application has been shielded the communication details.Detect thread and be positioned at communication program, send the state of thread by TCP link information table poll.
Can create the transmission thread when setting up link and be used to send message.The Link State flag bit of expression Link State is set in communication program, when the transmission thread begins to call send transmission message, the Link State flag bit is set is operation (RUN) state, show that sending thread is in running status, and record sends the time of message, successfully send message when sending thread dispatching send, when soon message sends, the Link State flag bit is set for blocking (BLOCK) state.
Detect thread every the mode run-down link information table of 10ms with poll, whether the network node of checking every link correspondence is unusual, Fig. 3 detects the flow chart of the each scan chain circuit information table of thread for the present invention, as shown in Figure 3, detecting the each scan chain circuit information table of thread specifically may further comprise the steps:
Step 31: start detection thread.
Step 32: whether the transmission thread that detects current link is in running status, and whether promptly detect the Link State flag bit is running status.If, execution in step 33; Otherwise promptly the network node of current detection link correspondence does not send message, continue to detect next bar link, returns step 32, when the current detection link is the last item link detected in the link information table, and the epicycle end of scan.
Step 33: judge whether current time and the difference that sends the thread transmission message time are not less than preset value.If the network node abnormality of judgement current detection link correspondence is closed link, link is set, and whether available flag position (IsConnected) is unavailable (FALSE), and the notice upper layer application, so that upper layer application is taked corresponding measure safeguards system reliability; Otherwise, continue to detect next bar link, return step 32, when the current detection link is the last item link detected in the link information table, the epicycle end of scan.For intelligent net system, the time that once sends message is much smaller than 100ms, is 100ms so select preset value at this, if the current time with send difference that thread sends the message time greater than 100ms, then think the network node abnormality of current detection link correspondence.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (10)

1. the detection method of a network node abnormality, it is characterized in that, this method comprises: every link in setting-up time length scan chain circuit information table, if the transmission thread of detected link is in running status, and the difference that current time and link send the thread transmission message time is not less than preset value, determines the network node abnormality of current detection link correspondence; Otherwise, detect next bar link.
2. method according to claim 1 is characterized in that, comprises step before this method: create when communication program starts and detect thread, by detecting thread the link in the link information table is detected.
3. method according to claim 1 is characterized in that, comprises step before this method: the Link State flag bit of expression Link State is set in communication program, obtains the state of detected link when detecting link by the access link state flag bit.
4. method according to claim 3 is characterized in that, described Link State flag bit represents that link is in running status or blocked state.
5. method according to claim 4 is characterized in that, when the transmission thread of link began to send message, it was running status that the Link State flag bit is set.
6. method according to claim 4 is characterized in that, when the transmission thread of link successfully sent message, it was blocked state that the Link State flag bit is set.
7. method according to claim 1 is characterized in that, described setting-up time length is 10ms, and described preset value is 100ms.
8. method according to claim 1, it is characterized in that, comprise step after the network node abnormality of described definite current detection link correspondence: close link, link is set, and whether available flag position IsConnected is unavailable FALSE, and the notice upper layer application.
9. method according to claim 1 is characterized in that, described is poll scanning every setting-up time length scan chain circuit information table.
10. method according to claim 1 is characterized in that, when the current detection link is the last item link detected in the link information table, and the epicycle end of scan.
CNB2007101757536A 2007-10-11 2007-10-11 A kind of detection method of network node abnormality Expired - Fee Related CN100571173C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101757536A CN100571173C (en) 2007-10-11 2007-10-11 A kind of detection method of network node abnormality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101757536A CN100571173C (en) 2007-10-11 2007-10-11 A kind of detection method of network node abnormality

Publications (2)

Publication Number Publication Date
CN101141327A true CN101141327A (en) 2008-03-12
CN100571173C CN100571173C (en) 2009-12-16

Family

ID=39193089

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101757536A Expired - Fee Related CN100571173C (en) 2007-10-11 2007-10-11 A kind of detection method of network node abnormality

Country Status (1)

Country Link
CN (1) CN100571173C (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345663B (en) * 2008-08-22 2010-12-08 杭州华三通信技术有限公司 Heartbeat detection method and heartbeat detection apparatus
CN102222526A (en) * 2010-04-14 2011-10-19 苹果公司 Method and device for controlling treatment process of electronic apparatus
CN101938365B (en) * 2009-07-03 2012-10-03 华为技术有限公司 Fault handling method and device for Ethernet
CN102957545A (en) * 2011-08-17 2013-03-06 中兴通讯股份有限公司 Method and device for maintaining synchronous network clocks
WO2013078820A1 (en) * 2011-11-30 2013-06-06 中兴通讯股份有限公司 Method and device for detecting 1588 timing error between network elements
CN103634821A (en) * 2013-12-07 2014-03-12 天津光电通信技术有限公司 Dynamic monitoring method for multi-channel wireless network communication equipment links
CN103684873A (en) * 2013-12-27 2014-03-26 乐视网信息技术(北京)股份有限公司 Polling heartbeat monitoring method, device and system
CN105426276A (en) * 2015-11-03 2016-03-23 山东超越数控电子有限公司 Fault detection method for double control storage controllers and storage controllers
CN107196817A (en) * 2016-03-15 2017-09-22 中国移动通信集团河南有限公司 Ping threads monitoring method, network service state monitoring method and client
CN107483639A (en) * 2017-09-25 2017-12-15 山东渔翁信息技术股份有限公司 The method, apparatus and equipment converted between serial data and wireless network data
CN108367681A (en) * 2015-12-18 2018-08-03 裕罗有限公司 The automatic reclosing device and method of electric vehicle charging thread control device
CN109947636A (en) * 2017-12-20 2019-06-28 浙江宇视科技有限公司 Abnormal thread localization method and device
CN109992436A (en) * 2017-12-29 2019-07-09 华为技术有限公司 Thread block detection method and equipment
CN111337820A (en) * 2020-04-24 2020-06-26 江西联智集成电路有限公司 Digital chip scan chain test method, device, equipment and medium
CN112202635A (en) * 2020-09-27 2021-01-08 浙江三维利普维网络有限公司 Link monitoring method and device, storage medium and electronic device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345663B (en) * 2008-08-22 2010-12-08 杭州华三通信技术有限公司 Heartbeat detection method and heartbeat detection apparatus
CN101938365B (en) * 2009-07-03 2012-10-03 华为技术有限公司 Fault handling method and device for Ethernet
CN102222526B (en) * 2010-04-14 2015-04-01 苹果公司 Method and device for controlling treatment process of electronic apparatus
CN102222526A (en) * 2010-04-14 2011-10-19 苹果公司 Method and device for controlling treatment process of electronic apparatus
CN102957545A (en) * 2011-08-17 2013-03-06 中兴通讯股份有限公司 Method and device for maintaining synchronous network clocks
CN102957545B (en) * 2011-08-17 2017-12-05 中兴通讯股份有限公司 The maintaining method and device of synchronous network clock
US9331837B2 (en) 2011-11-30 2016-05-03 Zte Corporation Method and device for detecting 1588 time error between network elements
CN103139002B (en) * 2011-11-30 2017-12-29 中兴通讯股份有限公司 1588 thing error detection method and devices between network element
WO2013078820A1 (en) * 2011-11-30 2013-06-06 中兴通讯股份有限公司 Method and device for detecting 1588 timing error between network elements
CN103634821B (en) * 2013-12-07 2016-08-17 天津光电通信技术有限公司 A kind of multiple wireless dynamic monitor processing method of network communication equipment link
CN103634821A (en) * 2013-12-07 2014-03-12 天津光电通信技术有限公司 Dynamic monitoring method for multi-channel wireless network communication equipment links
CN103684873A (en) * 2013-12-27 2014-03-26 乐视网信息技术(北京)股份有限公司 Polling heartbeat monitoring method, device and system
CN103684873B (en) * 2013-12-27 2017-01-18 乐视云计算有限公司 Polling heartbeat monitoring method, device and system
CN105426276A (en) * 2015-11-03 2016-03-23 山东超越数控电子有限公司 Fault detection method for double control storage controllers and storage controllers
CN108367681A (en) * 2015-12-18 2018-08-03 裕罗有限公司 The automatic reclosing device and method of electric vehicle charging thread control device
CN107196817A (en) * 2016-03-15 2017-09-22 中国移动通信集团河南有限公司 Ping threads monitoring method, network service state monitoring method and client
CN107196817B (en) * 2016-03-15 2020-07-14 中国移动通信集团河南有限公司 Ping thread monitoring method, network service state monitoring method and client
CN107483639A (en) * 2017-09-25 2017-12-15 山东渔翁信息技术股份有限公司 The method, apparatus and equipment converted between serial data and wireless network data
CN109947636A (en) * 2017-12-20 2019-06-28 浙江宇视科技有限公司 Abnormal thread localization method and device
CN109947636B (en) * 2017-12-20 2022-11-04 浙江宇视科技有限公司 Abnormal thread positioning method and device
CN109992436A (en) * 2017-12-29 2019-07-09 华为技术有限公司 Thread block detection method and equipment
CN111337820A (en) * 2020-04-24 2020-06-26 江西联智集成电路有限公司 Digital chip scan chain test method, device, equipment and medium
CN112202635A (en) * 2020-09-27 2021-01-08 浙江三维利普维网络有限公司 Link monitoring method and device, storage medium and electronic device
CN112202635B (en) * 2020-09-27 2022-05-06 浙江三维利普维网络有限公司 Link monitoring method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN100571173C (en) 2009-12-16

Similar Documents

Publication Publication Date Title
CN100571173C (en) A kind of detection method of network node abnormality
CN103568863B (en) The Real-Time Monitoring diagnostic system of cell management system of electric automobile and diagnostic method
CN102315966B (en) Service single board, fault detection and reporting method and system thereof
CN104683797A (en) Intelligent television production test method and system
CN104796329B (en) A kind of link automatic switching method and device
CN102281167B (en) Method and system for detecting power failure of network equipment
CN105099825B (en) A kind of safeguard method and device of external Bypass
CN104283718B (en) The network equipment and the hardware fault diagnosis method for the network equipment
CN104317679B (en) A kind of SCADA system is based on the communication fault-tolerance method of thread redundancy
CN105588989B (en) Single board testing method and device
CN105630647A (en) Equipment detection method and detection equipment
CN113645095A (en) Automatic switch testing method, equipment and medium based on snmp alarm information
CN110213136B (en) Communication control method and system
CN110071836A (en) A kind of network state detection system and method based on intelligent gateway
CN105721047B (en) A kind of method and system for testing smart machine luminous power receiving sensitivity
CN109412902A (en) A kind of intelligent monitoring method of power dispatch data network system, storage equipment, terminal and system
CN105224426A (en) Physical host fault detection method, device and empty machine management method, system
CN101764698B (en) Automatic recovering method for power equipment
CN104378246B (en) A kind of network equipment failure alignment system, method and device
CN103457755A (en) IEC 61850 system communication fault detection method and system
CN114884803B (en) Method, device, equipment and medium for processing multiple redundant states
CN100539716C (en) The method that a kind of main and standby boards is monitored and switched automatically
CN104348676B (en) A kind of chain circuit detecting method and equipment based on operation management maintainance OAM
CN116137603A (en) Link fault detection method and device, storage medium and electronic device
CN109726055A (en) Detect the method and computer equipment of PCIe chip exception

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091216

Termination date: 20171011

CF01 Termination of patent right due to non-payment of annual fee