WO2016086638A1 - 一种实现链路检测的方法、装置及计算机存储介质 - Google Patents

一种实现链路检测的方法、装置及计算机存储介质 Download PDF

Info

Publication number
WO2016086638A1
WO2016086638A1 PCT/CN2015/081410 CN2015081410W WO2016086638A1 WO 2016086638 A1 WO2016086638 A1 WO 2016086638A1 CN 2015081410 W CN2015081410 W CN 2015081410W WO 2016086638 A1 WO2016086638 A1 WO 2016086638A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
packet
result
detection
link
Prior art date
Application number
PCT/CN2015/081410
Other languages
English (en)
French (fr)
Inventor
马鸿伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016086638A1 publication Critical patent/WO2016086638A1/zh

Links

Images

Classifications

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

Definitions

  • the present invention relates to data packet detection technology, and in particular, to a method, device and computer storage medium for implementing link detection.
  • a one-to-one link disaster recovery backup design is adopted in most systems, that is, when the system main link fails, the service being processed by the system is taken from the main chain.
  • the way that the road is switched to the backup link achieves the purpose of uninterrupted service, thereby improving the stability of the system.
  • the system when a link switchover is required, the system considers that the backup link is in the normal working state by default, and directly switches the service being processed by the system to the backup link.
  • the default switching mode of the service being processed by the system from the primary link to the backup link has the following drawbacks: because the system cannot determine whether the working status of the backup link is normal, if the working status of the backup link is faulty When the service on the primary link is switched to the backup link, the service is interrupted, which causes the system to be largely unpredictable when performing link switching, thus failing to provide stability of the entire system. .
  • the embodiments of the present invention are to provide a method, a device, and a computer storage medium for implementing link detection, which can realize real-time detection of the working state of the backup link, and effectively solve the unpredictability of the system when performing link switching.
  • the present invention provides a method for implementing link detection, the method comprising:
  • the pre-configured packet information includes a packet length, a packet transmission rate, a packet header number, a packet tail number, and a packet content format.
  • the detecting the second data packet in real time to obtain the detection result includes:
  • the detection result is directly obtained.
  • the method further includes: performing error code correction on the content of the data packet in the second data packet when the result of the determination is that the statistical result meets a preset condition of the first packet header Test, obtain test results.
  • the performing error verification on the content of the data packet in the second data packet includes:
  • the content of the data packet in the second data packet is error-checked by a cyclic redundancy check mode.
  • the first packet header termination condition includes that the number of packet headers of the second data packet matches the number of packet tails, and the number of packets and the packet header of the second data packet The number of tails is consistent with the number of headers and the number of trailers in the pre-configured packet information.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the embodiment of the present invention.
  • the present invention further provides an apparatus for implementing link detection, where the apparatus includes a sending module, a receiving module, a detecting module, and a reporting module;
  • the sending module is configured to send the first data packet to the backup link according to the pre-configured data packet information
  • the receiving module is configured to receive a second data packet that is looped back through the backup link.
  • the detecting module is configured to perform real-time detection on the second data packet to obtain a detection result
  • the reporting module is configured to report the detection result.
  • the detecting module 33 includes a statistical unit and a determining unit
  • the statistic unit is configured to count the number of headers and the number of trailers of the second data packet to obtain a statistical result
  • the determining unit is configured to determine whether the statistical result meets a preset condition of the first packet header, and obtain a determination result; and is further configured to: when the determination result is that the statistical result does not satisfy a preset condition of the first packet header When you get the test results directly.
  • the detecting module further includes a verifying unit
  • the checking unit is configured to perform error checking on the content of the data packet in the second data packet when the result of the determination is that the statistical result meets the preset condition of the first packet header result.
  • the checking unit is configured to perform error checking on the content of the data packet in the second data packet by using a cyclic redundancy check mode.
  • the method and device for implementing link detection and the computer storage medium provided by the embodiment of the present invention send a first data packet to the backup link according to the pre-configured data packet information, and receive the second data packet that is looped back through the backup link. Performing real-time detection on the second data packet to obtain a detection result; reporting the detection result. In this way, real-time detection of the working state of the backup link can be realized.
  • the measurement effectively solves the unpredictability when the system performs link switching, thereby improving the stability of the entire system.
  • FIG. 1 is a schematic flowchart of a method for implementing link detection according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart 1 of an implementation process for real-time detection of the second data packet according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart 2 of an implementation process for real-time detection of the second data packet according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for implementing link detection according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram 1 of a structure of a detection module according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram 2 of a structure of a detection module according to an embodiment of the present invention.
  • the first data packet is sent to the backup link according to the pre-configured data packet information; the second data packet that is looped back through the backup link is received; and the second data packet is detected in real time. , obtaining the test result; reporting the test result.
  • the backup link is a backup link corresponding to the primary link.
  • FIG. 1 is a schematic flowchart of a method for implementing link detection according to an embodiment of the present invention. As shown in FIG. 1 , a method for implementing link detection according to an embodiment of the present invention includes:
  • Step S101 Send a first data packet to the backup link according to the pre-configured data packet information.
  • the backup link is a backup link corresponding to the primary link.
  • the pre-configured packet information includes a packet length, a packet transmission rate, a packet header number, a packet tail number, and a packet content format.
  • the packet length may be a fixed value, or an increment/decrement sequence
  • the sent first data packet may be a fixed length packet, or an increment/decrement length packet
  • the packet sending rate may be solid.
  • the rate, or step rate; the packet content format can be configured by the user as long as the flow control signal of the backup link can be supported.
  • the device that implements link detection sends the first data packet to the backup link through a preset interface.
  • the setting of the interface can be set according to the interface protocol of the backup link.
  • an interface supporting different protocol types may be preset in advance, as each of the backup links can support a plurality of different protocol types.
  • Step S102 Receive a second data packet that is looped back through the backup link.
  • the device that implements the link detection may receive the second data packet that is looped back through the backup link through the interface.
  • the interface is configured to send the first data to the backup link in the foregoing step S101.
  • the interface preset in the message.
  • Step S103 Perform real-time detection on the second data packet to obtain a detection result.
  • the detection result includes the following three cases:
  • the real-time detecting the second data packet, and obtaining the detection result includes:
  • Step S1031 Statistics of the number of packet headers and the number of packet headers of the second data packet, to obtain a statistical result
  • Step S1032 determining whether the statistical result meets the preset condition of the first packet header, and obtaining a determination result
  • the preset condition of the first packet header includes: the number of headers of the second data packet matches the number of packets, and the number of headers and the number of trailers of the second data packet are both It is consistent with the number of headers and the number of trailers in the pre-configured packet information.
  • Step S1033 When the result of the determination is that the statistical result does not satisfy the first packet header When the conditions are met, the test results are obtained directly.
  • the method further includes:
  • Step S1034 When the result of the determination is that the statistical result meets the preset condition of the first packet header, the content of the data packet in the second data packet is error-checked, and the detection result is obtained.
  • the error checking the content of the data packet in the second data packet may be that the content of the data packet in the second data packet is error coded by a cyclic redundancy check (CRC) manner.
  • CRC cyclic redundancy check
  • Step S104 Report the detection result.
  • the device that implements the link detection reports the obtained detection result to the system in real time. In this way, the system can know the working state of the backup link according to the detection result.
  • the system may determine, according to the detection result, that the working status of the backup link is a fault; when the detection result is The system may determine that the working status of the backup link is normal according to the detection result when there is no error or error in the backup link, and the error rate is in an acceptable range; When there is an error in the backup link and the error rate is out of the acceptable range, the system may determine that the working status of the backup link is a fault according to the detection result.
  • the method for implementing link detection according to the embodiment of the present invention can implement real-time detection of the working state of the backup link, and effectively solve the unpredictability when the system performs link switching, thereby improving the stability of the entire system. .
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform the method for implementing link detection according to the embodiment of the present invention.
  • an apparatus for implementing link detection according to an embodiment of the present invention includes a sending module 41, a receiving module 42, a detecting module 43 and a reporting module 44; wherein
  • the sending module 41 is configured to send a first data packet to the backup link according to the pre-configured data packet information
  • the receiving module 42 is configured to receive a second data packet that is looped back through the backup link.
  • the detecting module 43 is configured to perform real-time detection on the second data packet to obtain a detection result.
  • the reporting module 44 is configured to report the detection result.
  • the detecting module 43 includes a statistic unit 431 and a judging unit 432;
  • the statistics unit 431 is configured to collect statistics on the number of headers and the number of trailers of the second data packet to obtain a statistical result.
  • the determining unit 432 is configured to determine whether the statistical result meets the preset condition of the first packet header, and obtain a determination result; and is further configured to: when the determination result is that the statistical result does not satisfy the first packet header end preset When the conditions are met, the test results are obtained directly.
  • the detecting module 43 further includes a checking unit 433, configured to: when the determining result is that the statistical result meets a preset condition of the first packet header, Performing a bit error check on the content of the data packet in the second data packet to obtain a detection result.
  • the checking unit 433 is specifically configured to perform error checking on the content of the data packet in the second data packet by using a cyclic redundancy check mode.
  • each module included in the apparatus for implementing link detection can be a central processing unit (CPU) and a microprocessor (Micro Processor Unit) in the apparatus for implementing link detection according to an embodiment of the present invention.
  • CPU central processing unit
  • Microprocessor Unit Micro Processor Unit
  • MPU central processing unit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the first data packet is sent to the backup link according to the pre-configured data packet information; the second data packet that is looped back through the backup link is received; The data packet is detected in real time, and the detection result is obtained; the detection result is reported.
  • real-time detection of the working state of the backup link can be realized, and the unpredictability when the system performs link switching is effectively solved, thereby improving the stability of the entire system.

Landscapes

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

Abstract

本发明实施例提供一种实现链路检测的方法、装置及计算机存储介质,根据预先配置的数据包信息向备份链路发送第一数据报文;接收经备份链路环回的第二数据报文;对所述第二数据报文进行实时检测,获得检测结果;上报所述检测结果。

Description

一种实现链路检测的方法、装置及计算机存储介质 技术领域
本发明涉及数据报文检测技术,尤其涉及一种实现链路检测的方法、装置及计算机存储介质。
背景技术
为了满足对系统的高稳定性要求,在绝大多数系统中均采用一对一的链路容灾备份设计,即:当系统主链路出现故障时,通过将系统正在处理的业务从主链路切换至备份链路的方式达到业务不中断的目的,从而提高系统的稳定性。
在实际应用中,当需要进行链路切换时,系统在默认条件下认为备份链路当前处于正常工作状态,从而直接将系统正在处理的业务切换至备份链路。
然而,这种将系统正在处理的业务从主链路至备份链路的默认切换方式存在如下缺陷:由于系统无法判断备份链路的工作状态是否正常,因此,如果备份链路的工作状态为故障时,通过将主链路上的业务切换至备份链路上的方式仍会导致业务中断,使得系统在进行链路切换时存在很大程度上的不可预见性,从而无法提供整个系统的稳定性。
发明内容
本发明实施例期望提供一种实现链路检测的方法、装置及计算机存储介质,能够实现对备份链路的工作状态的实时检测,有效解决系统在进行链路切换时的不可预见性。
本发明实施例的技术方案是这样实现的:
本发明提供了一种实现链路检测的方法,所述方法包括:
根据预先配置的数据包信息向备份链路发送第一数据报文;
接收经备份链路环回的第二数据报文;
对所述第二数据报文进行实时检测,获得检测结果;
上报所述检测结果。
在一实施例中,所述预先配置的数据包信息包括包长、发包速率、包头个数、包尾个数和包内容格式。
在一实施例中,所述对所述第二数据报文进行实时检测,获得检测结果,包括:
统计所述第二数据报文的包头个数和包尾个数,得到统计结果;
判断所述统计结果是否满足第一包头包尾预设条件,得到判断结果;
当所述判断结果为所述统计结果不满足第一包头包尾预设条件时,直接获得检测结果。
在一实施例中,所述方法还包括:当所述判断结果为所述统计结果满足第一包头包尾预设条件时,对所述第二数据报文中的数据包内容进行误码校验,获得检测结果。
在一实施例中,所述对所述第二数据报文中的数据包内容进行误码校验,包括:
通过循环冗余校验方式对所述第二数据报文中的数据包内容进行误码校验。
在一实施例中,所述第一包头包尾预设条件包括所述第二数据报文的包头个数与包尾个数相匹配,且所述第二数据报文的包头个数和包尾个数均与所述预先配置的数据包信息中包头个数和包尾个数一致。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所 述实现链路检测的方法。
本发明又提供了一种实现链路检测的装置,所述装置包括发送模块、接收模块、检测模块和上报模块;
所述发送模块,配置为根据预先配置的数据包信息向备份链路发送第一数据报文;
所述接收模块,配置为接收经备份链路环回的第二数据报文;
所述检测模块,配置为对所述第二数据报文进行实时检测,获得检测结果;
所述上报模块,配置为上报所述检测结果。
在一实施例中,所述检测模块33包括统计单元和判断单元;其中,
所述统计单元,配置为统计所述第二数据报文的包头个数和包尾个数,得到统计结果;
所述判断单元,配置为判断所述统计结果是否满足第一包头包尾预设条件,得到判断结果;还配置为当所述判断结果为所述统计结果不满足第一包头包尾预设条件时,直接获得检测结果。
在一实施例中,所述检测模块还包括校验单元;
所述校验单元,配置为当所述判断结果为所述统计结果满足第一包头包尾预设条件时,对所述第二数据报文中的数据包内容进行误码校验,获得检测结果。
在一实施例中,所述校验单元,配置为通过循环冗余校验方式对所述第二数据报文中的数据包内容进行误码校验。
本发明实施例所提供的实现链路检测的方法、装置及计算机存储介质,根据预先配置的数据包信息向备份链路发送第一数据报文;接收经备份链路环回的第二数据报文;对所述第二数据报文进行实时检测,获得检测结果;上报所述检测结果。如此,能够实现对备份链路的工作状态的实时检 测,有效解决在系统进行链路切换时的不可预见性,从而提高整个系统的稳定性。
附图说明
图1为本发明实施例实现链路检测的方法的流程示意图;
图2为本发明实施例对所述第二数据报文进行实时检测的实现流程示意图一;
图3为本发明实施例对所述第二数据报文进行实时检测的实现流程示意图二;
图4为本发明实施例实现链路检测的装置的组成结构示意图;
图5为本发明实施例所述检测模块的组成结构示意图一;
图6为本发明实施例所述检测模块的组成结构示意图二。
具体实施方式
在本发明实施例中,根据预先配置的数据包信息向备份链路发送第一数据报文;接收经备份链路环回的第二数据报文;对所述第二数据报文进行实时检测,获得检测结果;上报所述检测结果。
这里,所述备份链路为与主链路相对应的备份链路。
下面结合附图及具体实施例对本发明再作进一步详细的说明。
图1为本发明实施例实现链路检测的方法的流程示意图,如图1所示,本发明实施例实现链路检测的方法包括:
步骤S101:根据预先配置的数据包信息向备份链路发送第一数据报文;
其中,所述备份链路为与主链路相对应的备份链路。所述预先配置的数据包信息包括包长、发包速率、包头个数、包尾个数和包内容格式。
这里,所述包长可以为固定值,或递增/递减数列,相应地,所发送的第一数据报文可以为定长包,或递增/递减长度包;所述发包速率可以为固 定速率,或步进速率;所述包内容格式可以由用户来配置,只要可支持备份链路的流控信号即可。
具体地,实现链路检测的装置通过预先设置的接口向备份链路发送第一数据报文。其中,接口的设置可以根据备份链路的接口协议来设置。由于每一条备份链路可支持多种不同协议类型,所以在本发明实施例实现链路检测的装置中可以预先设置支持不同协议类型的接口。
步骤S102:接收经备份链路环回的第二数据报文;
具体地,实现链路检测的装置可以通过接口接收经备份链路环回的第二数据报文;所述接口为前述步骤S101中实现链路检测的装置用于向备份链路发送第一数据报文时所预先设置的接口。
步骤S103:对所述第二数据报文进行实时检测,获得检测结果;
这里,所述检测结果包括如下三种情况:
1)所述统计结果不满足第一包头包尾预设条件;
2)所述备份链路中不存在误码或存在误码且误码率处在可接受范围;
3)所述备份链路中存在误码且误码率超出可接受范围。
具体地,如图2所示,所述对所述第二数据报文进行实时检测,获得检测结果,包括:
步骤S1031:统计所述第二数据报文的包头个数和包尾个数,得到统计结果;
步骤S1032:判断所述统计结果是否满足第一包头包尾预设条件,得到判断结果;
其中,所述第一包头包尾预设条件包括所述第二数据报文的包头个数与包尾个数相匹配,且所述第二数据报文的包头个数和包尾个数均与所述预先配置的数据包信息中包头个数和包尾个数一致。
步骤S1033:当所述判断结果为所述统计结果不满足第一包头包尾预设 条件时,直接获得检测结果。
进一步地,如图3所示,所述步骤S1032之后,所述方法还包括:
步骤S1034:当所述判断结果为所述统计结果满足第一包头包尾预设条件时,对所述第二数据报文中的数据包内容进行误码校验,获得检测结果。
这里,所述对所述第二数据报文中的数据包内容进行误码校验可以是通过循环冗余校验(CRC)方式对所述第二数据报文中的数据包内容进行误码校验,以确定所述备份链路是否存在误码。
步骤S104:上报所述检测结果。
具体地,实现链路检测的装置实时将获得的检测结果上报给系统。这样,系统即可根据检测结果得知所述备份链路的工作状态。
这里,当所述检测结果为所述统计结果不满足第一包头包尾预设条件时,则系统可以根据所述检测结果确定所述备份链路的工作状态为故障;当所述检测结果为所述备份链路中不存在误码或存在误码且误码率处在可接受范围时,则系统可以根据所述检测结果确定所述备份链路的工作状态为正常;当所述检测结果为所述备份链路中存在误码且误码率超出可接受范围时,则系统可以根据所述检测结果确定所述备份链路的工作状态为故障。
如此,通过本发明实施例所述实现链路检测的方法,能够实现对备份链路的工作状态的实时检测,有效解决在系统进行链路切换时的不可预见性,从而提高整个系统的稳定性。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述实现链路检测的方法。
图4为本发明实施例实现链路检测的装置的组成结构示意图,如图4所示,本发明实施例实现链路检测的装置包括发送模块41、接收模块42、 检测模块43和上报模块44;其中,
所述发送模块41,配置为根据预先配置的数据包信息向备份链路发送第一数据报文;
所述接收模块42,配置为接收经备份链路环回的第二数据报文;
所述检测模块43,配置为对所述第二数据报文进行实时检测,获得检测结果;
所述上报模块44,配置为上报所述检测结果。
在一实施例中,如图5所示,所述检测模块43包括统计单元431和判断单元432;其中,
所述统计单元431,配置为统计所述第二数据报文的包头个数和包尾个数,得到统计结果;
所述判断单元432,配置为判断所述统计结果是否满足第一包头包尾预设条件,得到判断结果;还配置为当所述判断结果为所述统计结果不满足第一包头包尾预设条件时,直接获得检测结果。
进一步地,在一实施例中,如图6所示,所述检测模块43还包括校验单元433,配置为当所述判断结果为所述统计结果满足第一包头包尾预设条件时,对所述第二数据报文中的数据包内容进行误码校验,获得检测结果。
在一实施例中,所述校验单元433,具体配置为通过循环冗余校验方式对所述第二数据报文中的数据包内容进行误码校验。
在实际应用中,所述实现链路检测的装置所包括的各模块均可由本发明实施例实现链路检测的装置中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
本发明实施例所记载的技术方案之间,在不冲突的情况下,可以任意 组合。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可 轻易想到变化或替换,都应涵盖在本发明的保护范围之内。
工业实用性
本发明实施例所述实现链路检测的方法,根据预先配置的数据包信息向备份链路发送第一数据报文;接收经备份链路环回的第二数据报文;对所述第二数据报文进行实时检测,获得检测结果;上报所述检测结果。如此,能够实现对备份链路的工作状态的实时检测,有效解决在系统进行链路切换时的不可预见性,从而提高整个系统的稳定性。

Claims (11)

  1. 一种实现链路检测的方法,所述方法包括:
    根据预先配置的数据包信息向备份链路发送第一数据报文;
    接收经备份链路环回的第二数据报文;
    对所述第二数据报文进行实时检测,获得检测结果;
    上报所述检测结果。
  2. 根据权利要求1所述的方法,其中,所述预先配置的数据包信息包括包长、发包速率、包头个数、包尾个数和包内容格式。
  3. 根据权利要求1所述的方法,其中,所述对所述第二数据报文进行实时检测,获得检测结果,包括:
    统计所述第二数据报文的包头个数和包尾个数,得到统计结果;
    判断所述统计结果是否满足第一包头包尾预设条件,得到判断结果;
    当所述判断结果为所述统计结果不满足第一包头包尾预设条件时,直接获得检测结果。
  4. 根据权利要求3所述的方法,其中,所述方法还包括:当所述判断结果为所述统计结果满足第一包头包尾预设条件时,对所述第二数据报文中的数据包内容进行误码校验,获得检测结果。
  5. 根据权利要求4所述的方法,其中,所述对所述第二数据报文中的数据包内容进行误码校验,包括:
    通过循环冗余校验方式对所述第二数据报文中的数据包内容进行误码校验。
  6. 根据权利要求3至5任一项所述的方法,其中,所述第一包头包尾预设条件包括所述第二数据报文的包头个数与包尾个数相匹配,且所述第二数据报文的包头个数和包尾个数均与所述预先配置的数据包信息中包头个数和包尾个数一致。
  7. 一种实现链路检测的装置,所述装置包括发送模块、接收模块、检测模块和上报模块;
    所述发送模块,配置为根据预先配置的数据包信息向备份链路发送第一数据报文;
    所述接收模块,配置为接收经备份链路环回的第二数据报文;
    所述检测模块,配置为对所述第二数据报文进行实时检测,获得检测结果;
    所述上报模块,配置为上报所述检测结果。
  8. 根据权利要求7所述的装置,其中,所述检测模块33包括统计单元和判断单元;
    所述统计单元,配置为统计所述第二数据报文的包头个数和包尾个数,得到统计结果;
    所述判断单元,配置为判断所述统计结果是否满足第一包头包尾预设条件,得到判断结果;还配置为当所述判断结果为所述统计结果不满足第一包头包尾预设条件时,直接获得检测结果。
  9. 根据权利要求8所述的装置,其中,所述检测模块还包括校验单元;
    所述校验单元,配置为当所述判断结果为所述统计结果满足第一包头包尾预设条件时,对所述第二数据报文中的数据包内容进行误码校验,获得检测结果。
  10. 根据权利要求9所述的装置,其中,所述校验单元,配置为通过循环冗余校验方式对所述第二数据报文中的数据包内容进行误码校验。
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至6任一项所述实现链路检测的方法。
PCT/CN2015/081410 2014-12-02 2015-06-12 一种实现链路检测的方法、装置及计算机存储介质 WO2016086638A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410723600.0 2014-12-02
CN201410723600.0A CN105721232A (zh) 2014-12-02 2014-12-02 一种实现链路检测的方法和装置

Publications (1)

Publication Number Publication Date
WO2016086638A1 true WO2016086638A1 (zh) 2016-06-09

Family

ID=56090935

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/081410 WO2016086638A1 (zh) 2014-12-02 2015-06-12 一种实现链路检测的方法、装置及计算机存储介质

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865912A (zh) * 2019-10-31 2020-03-06 天津市英贝特航天科技有限公司 Dsp处理器串口通信可靠性检测系统及方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107331185B (zh) * 2017-08-16 2019-12-06 青岛海信网络科技股份有限公司 一种交通信号灯机的异常状态处理方法、主机及从机
CN109347598B (zh) * 2017-09-21 2022-03-11 中国移动通信有限公司研究院 校验码处理方法、电子设备及存储介质
CN110661702B (zh) * 2018-06-28 2022-09-13 中兴通讯股份有限公司 一种链路备份的方法、装置及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984078A (zh) * 2005-11-14 2007-06-20 美国博通公司 一种电话网络及在电话网中交换媒体包的方法
CN101594268A (zh) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 链路检测方法
CN101616037A (zh) * 2009-07-27 2009-12-30 华为技术有限公司 网络通信中丢包的检测方法、装置及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4705492B2 (ja) * 2006-03-17 2011-06-22 富士通株式会社 リングノード装置及びリングノード冗長方法
CN101060442A (zh) * 2006-04-22 2007-10-24 华为技术有限公司 一种链路状态检测装置及方法
CN103051546B (zh) * 2012-12-12 2015-07-08 中国科学院计算技术研究所 一种基于迟滞调度的网络流量冲突避免方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984078A (zh) * 2005-11-14 2007-06-20 美国博通公司 一种电话网络及在电话网中交换媒体包的方法
CN101594268A (zh) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 链路检测方法
CN101616037A (zh) * 2009-07-27 2009-12-30 华为技术有限公司 网络通信中丢包的检测方法、装置及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865912A (zh) * 2019-10-31 2020-03-06 天津市英贝特航天科技有限公司 Dsp处理器串口通信可靠性检测系统及方法
CN110865912B (zh) * 2019-10-31 2024-01-16 天津市英贝特航天科技有限公司 Dsp处理器串口通信可靠性检测系统及方法

Also Published As

Publication number Publication date
CN105721232A (zh) 2016-06-29

Similar Documents

Publication Publication Date Title
WO2020253083A1 (zh) 主备存储卷同步数据校验方法、装置、设备及存储介质
WO2016086638A1 (zh) 一种实现链路检测的方法、装置及计算机存储介质
WO2016029749A1 (zh) 一种通信故障的检测方法、装置及系统
JP2014068283A (ja) ネットワーク障害検出システムおよびネットワーク障害検出装置
CN110808873B (zh) 一种检测链路故障的方法及装置
CN104348578B (zh) 数据处理的方法及装置
WO2022267233A1 (zh) 基于冗余设备的通信故障检测方法、设备和系统
EP2541840A2 (en) Link fault detection method and apparatus
CN104065508A (zh) 应用服务健康检查方法、装置和系统
CN106302001B (zh) 数据通信网络中业务故障检测方法、相关装置及系统
WO2018209658A1 (zh) 数据传输方法、设备、机器可读存储介质以及系统
CN104125590A (zh) 链路故障诊断装置以及方法
CN106372026B (zh) 一种链路检测方法和接收设备
CN105871661A (zh) 公网服务器探测方法及探测服务器
WO2015180265A1 (zh) 多链路保护倒换的方法及装置
CN103995901A (zh) 一种确定数据节点失效的方法
US11477098B2 (en) Identification of candidate problem network entities
WO2016082509A1 (zh) 一种检测标签交换路径连通性的方法及装置
WO2013097196A1 (zh) 一种传输链路检测方法、装置以及系统
WO2021077797A1 (zh) 服务质量测量方法、装置及用户平面功能
WO2016061943A1 (zh) 实现生成树协议保护倒换的方法、装置及计算机存储介质
JP6237074B2 (ja) 通信装置および障害検出方法
WO2018121353A1 (zh) 数据通路的测试方法、测试服务器及测试系统
WO2018059344A1 (zh) 复用段保护双向倒换方法、装置及系统、计算机存储介质
CN105721236B (zh) 一种以太网错包测试的方法及其装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15864363

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15864363

Country of ref document: EP

Kind code of ref document: A1