CN105721232A - Method and device for implementing link detection - Google Patents

Method and device for implementing link detection Download PDF

Info

Publication number
CN105721232A
CN105721232A CN201410723600.0A CN201410723600A CN105721232A CN 105721232 A CN105721232 A CN 105721232A CN 201410723600 A CN201410723600 A CN 201410723600A CN 105721232 A CN105721232 A CN 105721232A
Authority
CN
China
Prior art keywords
data message
packet
packet header
bag tail
result
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.)
Withdrawn
Application number
CN201410723600.0A
Other languages
Chinese (zh)
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 CN201410723600.0A priority Critical patent/CN105721232A/en
Priority to PCT/CN2015/081410 priority patent/WO2016086638A1/en
Publication of CN105721232A publication Critical patent/CN105721232A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Landscapes

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

Abstract

Embodiments of the invention provide a method and a device for implementing link detection. The method comprises the steps of sending a first data message to a backup link according to pre-configured data packet information, receiving a second data message looped back through the backup link, detecting the second data message in real time to get a detection result, and reporting the detection result.

Description

A kind of method and apparatus realizing link detecting
Technical field
The present invention relates to data message detection technique, particularly relate to a kind of method and apparatus realizing link detecting.
Background technology
In order to meet the high-stability requirement to system, most systems all adopt man-to-man link disaster-tolerant backup to design, that is: when system backbone breaks down, the mode switching to backup link from primary link by business system processed reaches the unbroken purpose of business, thus improving the stability of system.
In actual applications, when needs carry out link switching, system thinks that backup link is currently at normal operating conditions under implied terms, thus the business directly system processed switches to backup link.
But, this business system the processed acquiescence switching mode from primary link to backup link has following defects that owing to system cannot judge that whether the duty of backup link is normal, therefore, if the duty of backup link is fault, by the mode that the business on primary link switches on backup link be can still result in service disconnection, the stability of whole system makes system existence Unpredictability largely when carrying out link switching, thus cannot be provided.
Summary of the invention
In view of this, embodiment of the present invention expectation provides a kind of method and apparatus realizing link detecting, it is possible to realize the real-time detection of the duty to backup link, effective solution system Unpredictability when carrying out link switching.
For reaching above-mentioned purpose, the technical scheme of the embodiment of the present invention is achieved in that
The invention provides a kind of method realizing link detecting, described method includes:
The first data message is sent to backup link according to the packet information being pre-configured with;
Receive the second data message being backed up link loopback;
Described second data message is detected in real time, it is thus achieved that testing result;
Report described testing result.
It is preferred that described in the packet information that is pre-configured with include length, packet sending speed, packet header number, bag tail number and bag content format.
It is preferred that described, described second data message is detected in real time, it is thus achieved that testing result, including:
Add up packet header number and the bag tail number of described second data message, obtain statistical result;
Judge whether described statistical result meets the first packet header bag tail pre-conditioned, obtain judged result;
When described judged result be described statistical result be unsatisfactory for the first packet header bag tail pre-conditioned time, directly obtain testing result.
It is preferred that described method also includes: when described judged result be described statistical result meet the first packet header bag tail pre-conditioned time, the packet content in described second data message is carried out error checking, it is thus achieved that testing result.
It is preferred that described, packet content in described second data message is carried out error checking, including:
By cyclic redundancy check (CRC) mode, the packet content in described second data message is carried out error checking.
Preferably, the pre-conditioned packet header number including described second data message of described first packet header bag tail matches with bag tail number, and the packet header number of described second data message and bag tail number are all consistent with the described packet information middle wrapping head number being pre-configured with and bag tail number.
Invention further provides a kind of device realizing link detecting, described device includes sending module, receiver module, detection module and reporting module;
Described sending module, for sending the first data message according to the packet information being pre-configured with to backup link;
Described receiver module, for receiving the second data message being backed up link loopback;
Described detection module, for detecting in real time described second data message, it is thus achieved that testing result;
Described reporting module, is used for reporting described testing result.
It is preferred that described detection module 33 includes statistic unit and judging unit;Wherein,
Described statistic unit, for adding up packet header number and the bag tail number of described second data message, obtains statistical result;
Described judging unit, is used for judging whether described statistical result meets the first packet header bag tail pre-conditioned, obtains judged result;Be additionally operable to when described judged result be described statistical result be unsatisfactory for the first packet header bag tail pre-conditioned time, directly obtain testing result.
It is preferred that described detection module also includes verification unit;
Described verification unit, for when described judged result be described statistical result meet the first packet header bag tail pre-conditioned time, the packet content in described second data message is carried out error checking, it is thus achieved that testing result.
It is preferred that described verification unit, for the packet content in described second data message being carried out error checking by cyclic redundancy check (CRC) mode.
The method and apparatus that what the embodiment of the present invention provided realize link detecting, sends the first data message according to the packet information being pre-configured with to backup link;Receive the second data message being backed up link loopback;Described second data message is detected in real time, it is thus achieved that testing result;Report described testing result.So, it is possible to realize the real-time detection of the duty to backup link, effectively solving the Unpredictability when system carries out link switching, thus improving the stability of whole system.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the embodiment of the present invention realizes the method for link detecting;
Fig. 2 be the embodiment of the present invention described second data message is carried out in real time detection realize schematic flow sheet one;
Fig. 3 be the embodiment of the present invention described second data message is carried out in real time detection realize schematic flow sheet two;
Fig. 4 is the composition structural representation that the embodiment of the present invention realizes the device of link detecting;
Fig. 5 is the composition structural representation one of detection module described in the embodiment of the present invention;
Fig. 6 is the composition structural representation two of detection module described in the embodiment of the present invention.
Detailed description of the invention
In embodiments of the present invention, the first data message is sent according to the packet information being pre-configured with to backup link;Receive the second data message being backed up link loopback;Described second data message is detected in real time, it is thus achieved that testing result;Report described testing result.
Here, described backup link is the backup link corresponding with primary link.
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Fig. 1 is the schematic flow sheet that the embodiment of the present invention realizes the method for link detecting, as it is shown in figure 1, the method that the embodiment of the present invention realizes link detecting includes:
Step S101: send the first data message to backup link according to the packet information being pre-configured with;
Wherein, described backup link is the backup link corresponding with primary link.The described packet information being pre-configured with includes length, packet sending speed, packet header number, bag tail number and bag content format.
Here, described Bao Changke thinks fixed value or incremented/decremented ordered series of numbers, and correspondingly, the first data message sent can be fixed length bag, or incremented/decremented length bag;Described packet sending speed can be fixed rate, or step rate;Described bag content format can be configured by user, as long as the flow control signal of backup link can be supported.
Specifically, it is achieved the device of link detecting sends the first data message by the interface pre-set to backup link.Wherein, arranging of interface can be arranged according to the interface protocol of backup link.Owing to each backup link can support multiple different agreement type, so realizing in the embodiment of the present invention device of link detecting can pre-set the interface supporting different agreement type.
Step S102: receive the second data message being backed up link loopback;
Specifically, it is achieved the device of link detecting can be backed up the second data message of link loopback by interface;Described interface be the device realizing link detecting in abovementioned steps S101 for sending the first data message to backup link time the interface that pre-sets.
Step S103: described second data message is detected in real time, it is thus achieved that testing result;
Here, described testing result includes following three kinds of situations:
1) to be unsatisfactory for the first packet header bag tail pre-conditioned in described statistical result;
2) described backup link is absent from error code or there is error code and the bit error rate is in tolerance interval;
3) described backup link exists error code and the bit error rate beyond tolerance interval.
Specifically, as in figure 2 it is shown, described described second data message is detected in real time, it is thus achieved that testing result, including:
Step S1031: add up packet header number and the bag tail number of described second data message, obtain statistical result;
Step S1032: judge whether described statistical result meets the first packet header bag tail pre-conditioned, obtain judged result;
Wherein, the pre-conditioned packet header number including described second data message of described first packet header bag tail matches with bag tail number, and the packet header number of described second data message and bag tail number are all consistent with the described packet information middle wrapping head number being pre-configured with and bag tail number.
Step S1033: when described judged result be described statistical result be unsatisfactory for the first packet header bag tail pre-conditioned time, directly obtain testing result.
Further, as it is shown on figure 3, after described step S1032, described method also includes:
Step S1034: when described judged result be described statistical result meet the first packet header bag tail pre-conditioned time, the packet content in described second data message is carried out error checking, it is thus achieved that testing result.
Here, described error checking that packet content in described second data message is carried out can be through cyclic redundancy check (CRC) (CRC) mode the packet content in described second data message carried out error checking, to determine whether described backup link exists error code.
Step S104: report described testing result.
Specifically, it is achieved the testing result of acquisition is reported system by the device of link detecting in real time.So, system can learn the duty of described backup link according to testing result.
Here, when described testing result be described statistical result be unsatisfactory for the first packet header bag tail pre-conditioned time, then according to described testing result, system can determine that the duty of described backup link is fault;When described testing result is be absent from error code in described backup link or there is error code and when the bit error rate is in tolerance interval, then according to described testing result, system can determine that the duty of described backup link is normal;When described testing result is there is error code and the bit error rate in described backup link beyond tolerance interval, then according to described testing result, system can determine that the duty of described backup link is fault.
So, the method by realizing link detecting described in the embodiment of the present invention, it is possible to realizing the real-time detection of the duty to backup link, effectively solving the Unpredictability when system carries out link switching, thus improving the stability of whole system.
Fig. 4 is the composition structural representation that the embodiment of the present invention realizes the device of link detecting, and as shown in Figure 4, the embodiment of the present invention realizes the device of link detecting and includes sending module 41, receiver module 42, detection module 43 and reporting module 44;Wherein,
Described sending module 41, for sending the first data message according to the packet information being pre-configured with to backup link;
Described receiver module 42, for receiving the second data message being backed up link loopback;
Described detection module 43, for detecting in real time described second data message, it is thus achieved that testing result;
Described reporting module 44, is used for reporting described testing result.
In one embodiment, as it is shown in figure 5, described detection module 43 includes statistic unit 431 and judging unit 432;Wherein,
Described statistic unit 431, for adding up packet header number and the bag tail number of described second data message, obtains statistical result;
Described judging unit 432, is used for judging whether described statistical result meets the first packet header bag tail pre-conditioned, obtains judged result;Be additionally operable to when described judged result be described statistical result be unsatisfactory for the first packet header bag tail pre-conditioned time, directly obtain testing result.
Further, in one embodiment, as shown in Figure 6, described detection module 43 also includes verification unit 433, for when described judged result be described statistical result meet the first packet header bag tail pre-conditioned time, packet content in described second data message is carried out error checking, it is thus achieved that testing result.
In one embodiment, described verification unit 433, specifically for carrying out error checking by cyclic redundancy check (CRC) mode to the packet content in described second data message.
In actual applications, each module included by the described device realizing link detecting all can be realized the realizations such as the central processing unit (CPU) in the device of link detecting, microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) by the embodiment of the present invention.
Between technical scheme described in the embodiment of the present invention, when not conflicting, it is possible to combination in any.
In several embodiments provided by the present invention, it should be understood that disclosed method and apparatus, it is possible to realize by another way.Device embodiment described above is merely schematic, such as, the division of described unit, it is only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, or is desirably integrated into another system, or some features can ignore, or do not perform.It addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, equipment or unit, it is possible to be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, it is also possible to be distributed on multiple NE;Part or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be fully integrated in a processing unit, it is also possible to be that each unit is individually as a unit, it is also possible to two or more unit are integrated in a unit;Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention.

Claims (10)

1. the method realizing link detecting, it is characterised in that described method includes:
The first data message is sent to backup link according to the packet information being pre-configured with;
Receive the second data message being backed up link loopback;
Described second data message is detected in real time, it is thus achieved that testing result;
Report described testing result.
2. method according to claim 1, it is characterised in that described in the packet information that is pre-configured with include length, packet sending speed, packet header number, bag tail number and bag content format.
3. method according to claim 1, it is characterised in that described described second data message is detected in real time, it is thus achieved that testing result, including:
Add up packet header number and the bag tail number of described second data message, obtain statistical result;
Judge whether described statistical result meets the first packet header bag tail pre-conditioned, obtain judged result;
When described judged result be described statistical result be unsatisfactory for the first packet header bag tail pre-conditioned time, directly obtain testing result.
4. method according to claim 3, it is characterized in that, described method also includes: when described judged result be described statistical result meet the first packet header bag tail pre-conditioned time, the packet content in described second data message is carried out error checking, it is thus achieved that testing result.
5. method according to claim 4, it is characterised in that described packet content in described second data message is carried out error checking, including:
By cyclic redundancy check (CRC) mode, the packet content in described second data message is carried out error checking.
6. the method according to any one of claim 3 to 5, it is characterized in that, the pre-conditioned packet header number including described second data message of described first packet header bag tail matches with bag tail number, and the packet header number of described second data message and bag tail number are all consistent with the described packet information middle wrapping head number being pre-configured with and bag tail number.
7. the device realizing link detecting, it is characterised in that described device includes sending module, receiver module, detection module and reporting module;
Described sending module, for sending the first data message according to the packet information being pre-configured with to backup link;
Described receiver module, for receiving the second data message being backed up link loopback;
Described detection module, for detecting in real time described second data message, it is thus achieved that testing result;
Described reporting module, is used for reporting described testing result.
8. device according to claim 7, it is characterised in that described detection module 33 includes statistic unit and judging unit;Wherein,
Described statistic unit, for adding up packet header number and the bag tail number of described second data message, obtains statistical result;
Described judging unit, is used for judging whether described statistical result meets the first packet header bag tail pre-conditioned, obtains judged result;Be additionally operable to when described judged result be described statistical result be unsatisfactory for the first packet header bag tail pre-conditioned time, directly obtain testing result.
9. device according to claim 8, it is characterised in that described detection module also includes verification unit;
Described verification unit, for when described judged result be described statistical result meet the first packet header bag tail pre-conditioned time, the packet content in described second data message is carried out error checking, it is thus achieved that testing result.
10. device according to claim 9, it is characterised in that described verification unit, for carrying out error checking by cyclic redundancy check (CRC) mode to the packet content in described second data message.
CN201410723600.0A 2014-12-02 2014-12-02 Method and device for implementing link detection Withdrawn CN105721232A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410723600.0A CN105721232A (en) 2014-12-02 2014-12-02 Method and device for implementing link detection
PCT/CN2015/081410 WO2016086638A1 (en) 2014-12-02 2015-06-12 Link detection method, device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410723600.0A CN105721232A (en) 2014-12-02 2014-12-02 Method and device for implementing link detection

Publications (1)

Publication Number Publication Date
CN105721232A true CN105721232A (en) 2016-06-29

Family

ID=56090935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410723600.0A Withdrawn CN105721232A (en) 2014-12-02 2014-12-02 Method and device for implementing link detection

Country Status (2)

Country Link
CN (1) CN105721232A (en)
WO (1) WO2016086638A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107331185A (en) * 2017-08-16 2017-11-07 青岛海信网络科技股份有限公司 A kind of abnormal state processing method, main frame and the slave of traffic lights machine
CN109347598A (en) * 2017-09-21 2019-02-15 中国移动通信有限公司研究院 Check code processing method, electronic equipment and storage connect medium
CN110661702A (en) * 2018-06-28 2020-01-07 中兴通讯股份有限公司 Link backup method and device and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865912B (en) * 2019-10-31 2024-01-16 天津市英贝特航天科技有限公司 System and method for detecting serial port communication reliability of DSP (digital Signal processor)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984078A (en) * 2005-11-14 2007-06-20 美国博通公司 Telephone network and method for exchanging media package in telephone network
US20070217438A1 (en) * 2006-03-17 2007-09-20 Fujitsu Limited Ring node device and method of connecting terminal to ring node device
CN101060442A (en) * 2006-04-22 2007-10-24 华为技术有限公司 A linkage status detection device and method
CN103051546A (en) * 2012-12-12 2013-04-17 中国科学院计算技术研究所 Delay scheduling-based network traffic conflict prevention method and delay scheduling-based network traffic conflict prevention system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594268B (en) * 2009-06-23 2011-11-23 中兴通讯股份有限公司 Link detection method
CN101616037B (en) * 2009-07-27 2012-02-29 华为技术有限公司 Detection method, device and system of packet loss in network communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984078A (en) * 2005-11-14 2007-06-20 美国博通公司 Telephone network and method for exchanging media package in telephone network
US20070217438A1 (en) * 2006-03-17 2007-09-20 Fujitsu Limited Ring node device and method of connecting terminal to ring node device
CN101060442A (en) * 2006-04-22 2007-10-24 华为技术有限公司 A linkage status detection device and method
CN103051546A (en) * 2012-12-12 2013-04-17 中国科学院计算技术研究所 Delay scheduling-based network traffic conflict prevention method and delay scheduling-based network traffic conflict prevention system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107331185A (en) * 2017-08-16 2017-11-07 青岛海信网络科技股份有限公司 A kind of abnormal state processing method, main frame and the slave of traffic lights machine
CN107331185B (en) * 2017-08-16 2019-12-06 青岛海信网络科技股份有限公司 Abnormal state processing method of traffic signal lamp machine, host and slave
CN109347598A (en) * 2017-09-21 2019-02-15 中国移动通信有限公司研究院 Check code processing method, electronic equipment and storage connect medium
WO2019056895A1 (en) * 2017-09-21 2019-03-28 中国移动通信有限公司研究院 Check code processing method, electronic device, and storage medium
US11546088B2 (en) 2017-09-21 2023-01-03 China Mobile Communication Co., Ltd Research Institute Check code processing method, electronic device and storage medium
CN110661702A (en) * 2018-06-28 2020-01-07 中兴通讯股份有限公司 Link backup method and device and computer readable storage medium

Also Published As

Publication number Publication date
WO2016086638A1 (en) 2016-06-09

Similar Documents

Publication Publication Date Title
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN110808873B (en) Method and device for detecting link failure
CN105721232A (en) Method and device for implementing link detection
CN102594643B (en) A kind of Controller Area Network BUS communicating control method, Apparatus and system
CN102571492B (en) Method and device for detecting failure of routing equipment
CN105429814B (en) Method and equipment for protecting BFD (bidirectional forwarding detection) by using multiple board cards
CN100403689C (en) Method for detecting Ethernet user line state
CN102882704A (en) Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade)
CN104065508A (en) Application service health examination method, device and system
CN109039825A (en) A kind of network data protection device and method
CN101808021A (en) Fault detection method, device and system, message statistical method and node equipment
CN102088415A (en) Method and device for MAC (media access control) address withdrawal
CN101237343B (en) Method for quick failure switching and quick switching system
CN104811324A (en) Pseudo wire protection method, pseudo wire protection device and node
CN104468347B (en) Control method and device of the network data from loopback
CN103036724B (en) State information transmission method, the network equipment and unit equipment
CN101980478B (en) Method and device for detecting and processing equipment failures and network equipment
CN104935614B (en) Data transmission method and device
CN103067205B (en) Under same Host Administration, share the RT and backup RT changing method of same address
WO2015180265A1 (en) Multi-link protection switching method and device
CN109039761B (en) Method and device for processing fault link in cluster control channel
CN103931227A (en) Wireless transmission device, failure-information forwarding method, and failure-information notification method
CN103209213A (en) Data transmission method and system for data subscription
CN103891204B (en) The method of link switchover and switching equipment
US9992767B2 (en) Data transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20160629

WW01 Invention patent application withdrawn after publication