WO2013097196A1 - Method, device and system for detecting transmission link - Google Patents

Method, device and system for detecting transmission link Download PDF

Info

Publication number
WO2013097196A1
WO2013097196A1 PCT/CN2011/085079 CN2011085079W WO2013097196A1 WO 2013097196 A1 WO2013097196 A1 WO 2013097196A1 CN 2011085079 W CN2011085079 W CN 2011085079W WO 2013097196 A1 WO2013097196 A1 WO 2013097196A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission link
count value
value
set value
detected
Prior art date
Application number
PCT/CN2011/085079
Other languages
French (fr)
Chinese (zh)
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 京信通信系统(中国)有限公司
Priority to CN201180074222.2A priority Critical patent/CN104012020A/en
Priority to PCT/CN2011/085079 priority patent/WO2013097196A1/en
Publication of WO2013097196A1 publication Critical patent/WO2013097196A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a transmission link detection method, apparatus, and system.
  • Cyclic Redundancy Check is a commonly used error detection method.
  • the basic principle is: The transmitting end performs frame check coding on a data code in a data frame, and The result of the encoding is added to the end of the data frame as a CRC check code and transmitted to the receiving end along with the data frame. After receiving the data frame with the CRC check code, the receiving end encodes the data code in the data frame in the same manner, and the obtained encoded result is compared with the data frame check code part. If they are consistent, the transmission is considered to be transmitted. Correct, otherwise it is considered that an error occurred in the transmission. With the continuous development of Ethernet technology, the network transmission rate continues to increase.
  • Gigabit Ethernet has developed into a mainstream network technology, which can provide lGbps communication bandwidth and can adapt to the ever-expanding network bandwidth requirements of users.
  • the high transmission rate of Gigabit Ethernet and the complex environment of the transmission link affect the stability of signal transmission.
  • the existing transmission technology solidifies the timing of the transmission link, cannot monitor the transmission of the transmission link in real time, and cannot adjust the transmission link in real time, thereby failing to ensure the stability of the Gigabit Ethernet transmission.
  • Embodiments of the present invention provide a transmission link detection method, apparatus, and system for real-time monitoring of a transmission shield of a transmission link.
  • a transmission link detection method includes: performing cyclic redundancy check CRC on received data when detecting that the receiving end receives data through the to-be-detected transmission link in each set time period; When the result is incorrect, the error count value is increased by the set value; when the error count value after the set value is increased is not less than the set threshold, the transmission link adjustment instruction is issued to indicate that the to-be-detected transmission link needs to be adjusted. .
  • a transmission link detection method includes, when each time period is detected, when the receiving end receives data through the to-be-detected transmission link, increasing the count value of the received data times for characterizing the number of times of receiving data The first set value; and performing cyclic redundancy check CRC on the received data; when the CRC result is incorrect, increasing the error count value to the second set value; receiving data according to adding the first set value Determining whether to issue a transmission link adjustment according to the determined error rate according to the determined bit error rate and the error count value after adding the second set value
  • the instruction indicates that the transmission link to be detected needs to be adjusted.
  • a transmission link detecting apparatus comprising: a cyclic redundancy check unit, configured to perform, on a received time period, a received data when detecting that the receiving end receives data through the to-be-detected transmission link Cyclic redundancy check CRC; error counting unit, configured to increase the error count value by a set value when the CRC result is incorrect; and transmit a shield amount determining unit for adding the set value in the error technical unit When the error count value is not less than the set threshold, issuing a transmission link adjustment instruction indicates that the to-be-detected transmission link needs to be adjusted.
  • a transmission link detecting apparatus comprising a cyclic redundancy check unit, configured to represent the received data when detecting that the receiving end receives data through the to-be-detected transmission link in each set time period set The number of received data counts of the number of times is increased by the first set value; and the cyclic redundancy check CRC is performed on the received data; the error count unit is configured to increase the error count value by the second when the CRC result is incorrect.
  • bit error rate determining unit configured to determine a bit error rate of the transmission link according to the count value of the received data number after adding the first set value and the error count value after adding the second set value;
  • quantity determining unit configured to determine, according to the determined error rate, whether to issue a transmission link adjustment instruction to indicate that the to-be-detected transmission link needs to be adjusted.
  • a transmission link detection system includes: a transmitting end for transmitting data, a receiving end for receiving data, and a transmission link detecting device; and the transmission link detecting device includes the above-described transmission link detecting device.
  • the method and device for detecting a transmission link when the receiving end receives the data through the to-be-detected transmission link in each set time period, the method repeatedly performs redundancy on the received data.
  • the check CRC when the CRC result is incorrect, the error count value is increased by the set value; when the error count value after the set value is increased is not less than the set threshold, the transmission link adjustment instruction is issued to indicate the to-be-detected The transmission link needs to be adjusted.
  • the scheme determines the transmission shield of the transmission link by detecting the error count value of the data received within the set time period, and can set the length of the time period as needed, and when the data is received, the data can be CRC Verification, to determine the error count value, so as to achieve the purpose of monitoring the transmission shield of the transmission link in real time, once it is determined that the error count value reaches the set threshold, it can be determined that the transmission link is faulty, because the transmission link is monitored in real time. Therefore, the fault of the transmission link can be found in time, and the fault can be eliminated in time, which ensures the stability of the transmission link.
  • FIG. 1 is a flowchart of a method for detecting a transmission link by using an error count value according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for detecting a transmission link by using a bit error rate according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for detecting a transmission link by using an error count value according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for detecting a transmission link by using a bit error rate according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a transmission link detection system according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for detecting a transmission link, and the process of the method is as shown in FIG. 1 , and the following steps are specifically performed:
  • the initialization process can be performed, and the following steps are started after the initialization is completed.
  • the time period for monitoring the setting of the transmission link to be detected it can be set according to actual needs. For example: When the transmission link is busy, the set time period can be set shorter, which can be set to 20S ( That is, 20 seconds), 15S, 10S, etc.; during the period when the transmission link is idle, the set time period can be set longer, and can be set to 60S, 50S, 40S, and the like. Multiple consecutive time periods can be set to monitor the arrival of the next set time period at the end of a set time period.
  • the transmitting end When detecting a transmission shield of a transmission link to be detected, the transmitting end sends data to the receiving end through the to-be-detected transmission link, and when detecting that the receiving end receives the data, performs CRC check processing on the received data, where The specific implementation process of the CRC check processing is prior art and will not be described here.
  • the error count value used to characterize the number of errors in the CRC check result remains unchanged, and the received new data can be subjected to CRC check processing.
  • the error count value used to represent the error number of the CRC check result is increased by a set value, and the set value may be set according to actual needs, for example, may be 1, 2, 3, etc. .
  • S 15 Determine whether the error count value after increasing the set value is not less than the set threshold. If yes, execute S 16; otherwise, return to continue executing S 12 .
  • the set threshold can be set according to actual needs. For example: When the transmission link is busy, the set threshold can be set larger; during the period when the transmission link is idle, the set threshold can be set smaller.
  • SI 7 Zero the error count value after increasing the set value, and execute S 19 .
  • the error count value after the increase of the set value can be reset to zero, so that the error count value can be re-counted in the next set time period;
  • the error count value is reset to zero, and the error count value in the next set time period is continuously accumulated.
  • the set threshold value needs to be adjusted separately for each set time period.
  • other methods can be used.
  • the error count value after the set value is increased can be reset to zero, so that the next set is The error count value is re-counted in the time period; of course, the error count value after the increase of the set value is not reset to zero, and the error count value in the next set time period is continuously accumulated, and then it is necessary to set each time.
  • the set time value is adjusted separately for the determined time period, and of course other methods can be used.
  • the set next time period can be entered, and then the transmission link is continuously detected.
  • the scheme determines the transmission shield of the transmission link by detecting the error count value of the data received within the set time period, and can set the length of the time period as needed, so that when the receiver receives the data, it can
  • the data is subjected to CRC check processing, and the error count value is determined according to the check result, so that the transmission shield of the transmission link can be monitored in real time, and once the error count value is determined to reach the set threshold, the transmission link may be determined to be faulty. Since the transmission link is monitored in real time, the fault of the transmission link can be found in time, and the fault can be eliminated in time, which ensures the stability of the transmission link.
  • the scheme for detecting the shield of the transmission link in real time by comparing the error count value with the set threshold is described above.
  • the scheme for detecting the transmission link shield by comparing the bit error rate with the set threshold is described below.
  • an embodiment of the present invention provides a method for detecting a transmission link.
  • the process of the method is as shown in FIG. 2, and the following steps are specifically performed:
  • the initialization process can be performed, and the following steps are started after the initialization is completed.
  • the time period set here can be referred to the setting of the time period in S11.
  • the number of times the data received in a set time period is counted is counted, and the number of received data is counted.
  • the value is used to represent the statistical result.
  • the count value of the received data is increased by a first set value, and the first set value may be set according to actual needs, for example, may be 1, 2, 3 and many more.
  • the specific implementation process for performing CRC check processing on the received data is prior art, and details are not described herein again.
  • the error count value used to represent the error number of the CRC check result is added to the second set value, and the second set value may be set according to actual needs, for example, may be 1, 2 , 3 and so on.
  • S25 Determine a bit error rate of the transmission link according to the count value of the received data after adding the first set value and the error count value after adding the second set value.
  • S26 Determine whether the determined bit error rate is not less than the first set threshold, and if yes, execute S27; otherwise, return to continue to execute S22.
  • the first set threshold is used to indicate that when the error rate of the transmission link reaches the first set threshold within a set time period, The transmission link to be detected is faulty; otherwise, the transmission link to be detected is in a normal state.
  • the first set threshold may be set according to actual needs or set according to the busy state of the transmission link, and may be set according to other methods.
  • S27 Send a transmission link adjustment command to indicate that the transmission link to be detected needs to be adjusted.
  • the error rate of the transmission link is not less than the first set threshold, it is determined that the transmission link to be detected is faulty, and a transmission link adjustment command is required to indicate that the transmission link to be detected needs to be adjusted.
  • the error rate of the transmission link may reach the first set threshold, and the transmission link adjustment indication is sent back.
  • the upper is in an unstable state, not a fault.
  • it can be simultaneously determined whether the count value of the received data number after the first set value is increased is greater than the set second threshold value, and when it is greater than, the transmission link adjustment indication is issued again. This makes it more accurate to determine if the transmission link has failed.
  • the count value of the received data count after adding the first set value and the error count value after increasing the set value may be reset to zero, so that the transmission may be re-transmitted in the next set time period.
  • the error rate of the link is counted; of course, the count value of the received data after increasing the first set value and the error count value after the increase of the setting may not be reset to zero, and the accumulation of the next set time period is continued. Receiving the data count value and the error count value, of course, other methods can also be used.
  • the bit error rate may be reset to zero, that is, after the first set value is added, the count value of the received data is increased and the setting is increased. The error count value is returned to zero, respectively. It is convenient to re-calculate the bit error rate in the next set time period; of course, the bit error rate may not be zeroed, and the bit error rate in the next set time period is continued to be counted, and then it is necessary to set each bit error rate.
  • the set time threshold is adjusted for a fixed time period, and of course other methods can be used.
  • bit error rate When the bit error rate is reset to zero, it can enter the set next time period and continue to detect the transmission link.
  • determining a bit error rate of the transmission link according to the count value of the received data number after adding the first set value and the error count value after adding the second set value specifically including: adding the second The ratio of the error count value after the set value to the count value of the number of received data after increasing the first set value is determined as the bit error rate of the transmission link.
  • the ratio is used to characterize the transmission.
  • the transmission shield of the link the smaller the ratio, the smaller the percentage of data received in the error data, and the better the transmission shield of the transmission link.
  • the scheme determines the transmission shield of the transmission link by detecting the bit error rate in the set time period, and can set the length of the time period according to the need, and when the receiving end receives the data, the received data can be performed.
  • CRC check processing and determine the bit error rate after receiving the data, thereby monitoring the transmission amount of the transmission link data in real time, and once the bit error rate reaches the set threshold, it can determine that the transmission link is faulty, because it is Real-time monitoring of the transmission link enables timely detection of faults on the transmission link and timely troubleshooting, which ensures the stability of the transmission link.
  • an embodiment of the present invention provides a transmission link detecting apparatus.
  • the structure of the apparatus is as shown in FIG. 3, and includes:
  • the cyclic redundancy check unit 31 is configured to perform a cyclic redundancy check CRC on the received data when detecting that the receiving end receives the data through the to-be-detected transmission link in each set time period.
  • the error counting unit 32 is configured to increase the error count value by a set value when the CRC result is incorrect.
  • the transmission shield determining unit 33 when the error count value after adding the set value in the error technical unit is not less than the set threshold, issues a transmission link adjustment command indicating that the transmission link to be detected needs to be adjusted.
  • the transmission shield determining unit 33 is further configured to: when each set time period expires, if the error count value after adding the set value is less than the set threshold, the set value is increased. The error count value is reset to zero; or after the transmission link adjustment command is issued, the error count value after the set value is increased is reset to zero.
  • an embodiment of the present invention provides a transmission link detecting apparatus.
  • the structure of the apparatus is as shown in FIG. 4, and includes:
  • the cyclic redundancy check unit 41 is configured to: when each time period is detected, when the receiving end receives the data through the to-be-detected transmission link, the count value of the received data used to represent the number of times the received data is received Adding a first set value; performing a cyclic redundancy check CRC on the received data;
  • the error counting unit 42 is configured to increase the error count value by a second set value when the CRC result is incorrect;
  • the bit error rate determining unit 43 is configured to determine a bit error rate of the transmission link according to the count value of the received data number after adding the first set value and the error count value after adding the second set value;
  • the transmission shield determining unit 44 is configured to determine, according to the determined error rate, whether to issue a transmission link adjustment instruction, indicating that the transmission link to be detected needs to be adjusted.
  • the error rate determining unit 43 is specifically configured to: determine, as a transmission link, a ratio of an error count value after adding the second set value to a count value of the received data number after adding the first set value. Bit error rate.
  • the transmission shield quantity determining unit 44 is configured to: when the determined error rate is not less than the first set threshold, issue a transmission link adjustment instruction to indicate that the to-be-detected transmission link needs to be adjusted; or in the determined error
  • the transmission link adjustment command is issued to indicate that the transmission link to be detected needs to be adjusted.
  • the transmission shield determination unit 44 is further configured to: when each of the set time periods expires, when the determined error rate is less than the set threshold, zero the error rate; or send the transmission. After the link adjustment command, the count value of the received data number after increasing the first set value and the error count value after adding the second set value are respectively zeroed.
  • an embodiment of the present invention provides a transmission link detection system.
  • the structure of the device is as shown in FIG. 5, and includes:
  • a transmitting end 51 for transmitting data, a receiving end 52 for receiving data, and a transmission link detecting device 53 are included; the transmission link detecting device includes the link detecting device as shown in FIG. 3 and/or as shown in FIG. Link detection device.
  • the above transmission link detecting device 52 is disposed in the receiving end 52.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the present invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage interfaces (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
  • computer-usable storage interfaces including but not limited to disk storage, CD-ROM, optical storage, etc.
  • 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 device is implemented in a flow or a flow or a block diagram of a block or multiple The function specified in the box.
  • 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.

Abstract

Disclosed are a method, a device and a system for detecting a transmission link. The method comprises: in each preset time period, when it is detected that a receiving terminal receives data from the transmission link to be detected, performing a cyclic redundancy check CRC on the data received; and when the CRC result is incorrect, adding a preset value to an error counting value; and when the error counting value after the addition of the preset value is not less than a preset threshold, then sending out a transmission link adjusting instruction to indicate that the transmission link to be detected needs to be adjusted. The solution can monitor the quality of the transmission link in real time, and thereby can promptly discover a failure in the transmission link and solve the failure in time, which ensures the stability of the transmission link.

Description

一种传输链路检测方法、 装置以及系统  Transmission link detection method, device and system
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及一种传输链路检测方法、 装置以及系统。  The present invention relates to the field of communications technologies, and in particular, to a transmission link detection method, apparatus, and system.
背景技术 在通信领域中, 循环冗余校验 ( Cyclic Redundancy Check, CRC )是一种常用的误码 检测方法, 其基本原理是: 发送端对数据帧中的数据码进行帧校验编码, 将编码结果作为 CRC校验码加到数据帧的末尾, 并随数据帧一起传送给接收端。 接收端接收到带有 CRC 校验码的数据帧后, 釆用相同的方式对数据帧中的数据码进行编码, 获得的编码结果与数 据帧校验码部分进行比较, 如果一致, 就认为传输正确, 否则就认为传输中发生差错。 随 着以太网技术的不断发展, 网络传输速率不断提高。 目前千兆位以太网已经发展成主流的 网络技术, 可以提供 lGbps的通信带宽, 能够适应用户不断升级的网络带宽需求。 但在具 体应用过程中, 千兆以太网的高传输速率和传输链路所处的复杂环境, 影响了信号传输的 稳定性。而现有的传输技术固化了传输链路的时序,无法对传输链路的盾量进行实时监控, 也无法对传输链路进行实时调整, 也就无法保障千兆以太网传输的稳定性了。 BACKGROUND In the field of communications, a Cyclic Redundancy Check (CRC) is a commonly used error detection method. The basic principle is: The transmitting end performs frame check coding on a data code in a data frame, and The result of the encoding is added to the end of the data frame as a CRC check code and transmitted to the receiving end along with the data frame. After receiving the data frame with the CRC check code, the receiving end encodes the data code in the data frame in the same manner, and the obtained encoded result is compared with the data frame check code part. If they are consistent, the transmission is considered to be transmitted. Correct, otherwise it is considered that an error occurred in the transmission. With the continuous development of Ethernet technology, the network transmission rate continues to increase. At present, Gigabit Ethernet has developed into a mainstream network technology, which can provide lGbps communication bandwidth and can adapt to the ever-expanding network bandwidth requirements of users. However, in the specific application process, the high transmission rate of Gigabit Ethernet and the complex environment of the transmission link affect the stability of signal transmission. However, the existing transmission technology solidifies the timing of the transmission link, cannot monitor the transmission of the transmission link in real time, and cannot adjust the transmission link in real time, thereby failing to ensure the stability of the Gigabit Ethernet transmission.
综上所述, 现有技术中缺少能够对传输链路的传输盾量进行实时监控的方法。 发明内容 本发明实施例提供一种传输链路检测方法、 装置以及系统, 用以实现对传输链路的传 输盾量进行实时监控。  In summary, the prior art lacks a method capable of real-time monitoring of the transmission shield of the transmission link. SUMMARY OF THE INVENTION Embodiments of the present invention provide a transmission link detection method, apparatus, and system for real-time monitoring of a transmission shield of a transmission link.
本发明实施例提供的技术方案包括:  The technical solution provided by the embodiment of the present invention includes:
一种传输链路检测方法, 包括在设定的每个时间周期内, 当检测到接收端通过待检测 传输链路接收到数据时, 对接收到的数据进行循环冗余校验 CRC; 当 CRC结果为不正确 时, 将错误计数值增加设定值; 当增加设定值后的所述错误计数值不小于设定阈值时, 发 出传输链路调整指令指示所述待检测传输链路需要调整。  A transmission link detection method includes: performing cyclic redundancy check CRC on received data when detecting that the receiving end receives data through the to-be-detected transmission link in each set time period; When the result is incorrect, the error count value is increased by the set value; when the error count value after the set value is increased is not less than the set threshold, the transmission link adjustment instruction is issued to indicate that the to-be-detected transmission link needs to be adjusted. .
一种传输链路检测方法, 包括在设定的每个时间周期内, 当检测到接收端通过待检测 传输链路接收到数据时, 将用于表征接收数据的次数的接收数据次数计数值增加第一设定 值; 并对接收到的数据进行循环冗余校验 CRC; 当 CRC结果为不正确时, 将错误计数值 增加第二设定值; 根据增加第一设定值后的接收数据次数计数值和增加第二设定值后的错 误计数值, 确定传输链路的误码率; 根据确定的所述误码率, 确定是否发出传输链路调整 指令指示所述待检测传输链路需要调整。 A transmission link detection method includes, when each time period is detected, when the receiving end receives data through the to-be-detected transmission link, increasing the count value of the received data times for characterizing the number of times of receiving data The first set value; and performing cyclic redundancy check CRC on the received data; when the CRC result is incorrect, increasing the error count value to the second set value; receiving data according to adding the first set value Determining whether to issue a transmission link adjustment according to the determined error rate according to the determined bit error rate and the error count value after adding the second set value The instruction indicates that the transmission link to be detected needs to be adjusted.
一种传输链路检测装置, 包括循环冗余校验单元, 用于在设定的每个时间周期内, 当 检测到接收端通过待检测传输链路接收到数据时, 对接收到的数据进行循环冗余校验 CRC; 错误计数单元, 用于当 CRC 结果为不正确时, 将错误计数值增加设定值; 传输盾 量判定单元, 用于所述错误技术单元中增加设定值后的所述错误计数值不小于设定阈值 时, 发出传输链路调整指令指示所述待检测传输链路需要调整。  A transmission link detecting apparatus, comprising: a cyclic redundancy check unit, configured to perform, on a received time period, a received data when detecting that the receiving end receives data through the to-be-detected transmission link Cyclic redundancy check CRC; error counting unit, configured to increase the error count value by a set value when the CRC result is incorrect; and transmit a shield amount determining unit for adding the set value in the error technical unit When the error count value is not less than the set threshold, issuing a transmission link adjustment instruction indicates that the to-be-detected transmission link needs to be adjusted.
一种传输链路检测装置, 包括循环冗余校验单元, 用于在设定的每个时间周期内, 当 检测到接收端通过待检测传输链路接收到数据时, 将用于表征接收数据的次数的接收数据 次数计数值增加第一设定值; 并对接收到的数据进行循环冗余校验 CRC; 错误计数单元, 用于当 CRC 结果为不正确时, 将错误计数值增加第二设定值; 误码率确定单元, 用于根 据增加第一设定值后的接收数据次数计数值和增加第二设定值后的错误计数值 , 确定传输 链路的误码率; 传输盾量判定单元, 用于根据确定的所述误码率, 确定是否发出传输链路 调整指令指示所述待检测传输链路需要调整。  A transmission link detecting apparatus, comprising a cyclic redundancy check unit, configured to represent the received data when detecting that the receiving end receives data through the to-be-detected transmission link in each set time period set The number of received data counts of the number of times is increased by the first set value; and the cyclic redundancy check CRC is performed on the received data; the error count unit is configured to increase the error count value by the second when the CRC result is incorrect. a set value; a bit error rate determining unit, configured to determine a bit error rate of the transmission link according to the count value of the received data number after adding the first set value and the error count value after adding the second set value; And a quantity determining unit, configured to determine, according to the determined error rate, whether to issue a transmission link adjustment instruction to indicate that the to-be-detected transmission link needs to be adjusted.
一种传输链路检测系统, 包括: 用于发送数据的发送端、 用于接收数据的接收端和传 输链路检测设备; 所述传输链路检测设备包括上述的传输链路检测装置。  A transmission link detection system includes: a transmitting end for transmitting data, a receiving end for receiving data, and a transmission link detecting device; and the transmission link detecting device includes the above-described transmission link detecting device.
本发明实施例提供的传输链路检测方法及装置, 该方法在设定的每个时间周期内, 当 检测到接收端通过待检测传输链路接收到数据时, 对接收到的数据进行循环冗余校验 CRC; 当 CRC 结果为不正确时, 将错误计数值增加设定值; 当增加设定值后的错误计数 值不小于设定阈值时, 发出传输链路调整指令指示所述待检测传输链路需要调整。 该方案 通过检测设定的时间周期内接收到的数据的错误计数值来判断传输链路的传输盾量, 可以 根据需要设定时间周期的长度, 在接收到数据时, 就可以对数据进行 CRC校验, 以确定 错误计数值, 从而达到实时监控传输链路的传输盾量的目的, 一旦确定错误计数值达到设 定阈值, 就可以确定传输链路出现故障, 由于是在实时监控传输链路, 从而能够及时发现 传输链路的故障, 可以及时排除故障, 这也就保证了传输链路的稳定性。 附图说明  The method and device for detecting a transmission link according to an embodiment of the present invention, when the receiving end receives the data through the to-be-detected transmission link in each set time period, the method repeatedly performs redundancy on the received data. The check CRC; when the CRC result is incorrect, the error count value is increased by the set value; when the error count value after the set value is increased is not less than the set threshold, the transmission link adjustment instruction is issued to indicate the to-be-detected The transmission link needs to be adjusted. The scheme determines the transmission shield of the transmission link by detecting the error count value of the data received within the set time period, and can set the length of the time period as needed, and when the data is received, the data can be CRC Verification, to determine the error count value, so as to achieve the purpose of monitoring the transmission shield of the transmission link in real time, once it is determined that the error count value reaches the set threshold, it can be determined that the transmission link is faulty, because the transmission link is monitored in real time. Therefore, the fault of the transmission link can be found in time, and the fault can be eliminated in time, which ensures the stability of the transmission link. DRAWINGS
图 1为本发明实施例中用错误计数值来对传输链路进行检测的方法流程图; 图 2为本发明实施例中用误码率对传输链路进行检测的方法流程图;  1 is a flowchart of a method for detecting a transmission link by using an error count value according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for detecting a transmission link by using a bit error rate according to an embodiment of the present invention;
图 3为本发明实施例中用错误计数值来对传输链路进行检测的装置的结构示意图; 图 4为本发明实施例中用误码率来对传输链路进行检测的装置的结构示意图; 图 5为本发明实施例中传输链路检测系统的结构示意图。 具体实施方式 由于存在缺少能够对传输链路的传输盾量进行实时监控的方法, 本发明实施例提供了 一种传输链路检测方法, 该方法的流程如图 1所示, 具体执行如下步骤: 3 is a schematic structural diagram of an apparatus for detecting a transmission link by using an error count value according to an embodiment of the present invention; FIG. 4 is a schematic structural diagram of an apparatus for detecting a transmission link by using a bit error rate according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a transmission link detection system according to an embodiment of the present invention. The embodiment of the present invention provides a method for detecting a transmission link, and the process of the method is as shown in FIG. 1 , and the following steps are specifically performed:
S 10: 开始。  S 10: Start.
这时可以执行初始化的过程, 当初始化完成后开始执行下列各个步骤。  At this time, the initialization process can be performed, and the following steps are started after the initialization is completed.
S 11 : 监控设定的时间周期是否到期, 若到期, 执行 S 18; 否则, 执行 S 12。  S 11 : Monitor whether the set time period expires. If it expires, execute S 18; otherwise, execute S 12.
对于监控待检测传输链路的设定的时间周期, 可以根据实际的需要进行设定, 例如: 在传输链路繁忙的时段,可以将设定的时间周期设置的短一些,可以设置为 20S(即 20秒)、 15S、 10S等等; 在传输链路空闲的时段, 可以将设定的时间周期设置的长一些, 可以设置 为 60S、 50S、 40S等等。 可以设置多个连续的时间周期, 在一个设定的时间周期结束时, 监控下一个设定的时间周期的到来。  For the time period for monitoring the setting of the transmission link to be detected, it can be set according to actual needs. For example: When the transmission link is busy, the set time period can be set shorter, which can be set to 20S ( That is, 20 seconds), 15S, 10S, etc.; during the period when the transmission link is idle, the set time period can be set longer, and can be set to 60S, 50S, 40S, and the like. Multiple consecutive time periods can be set to monitor the arrival of the next set time period at the end of a set time period.
S 12: 当检测到接收端通过待检测传输链路接收到数据时, 对接收到的数据进行 CRC 校验处理, 当 CRC结果为不正确时, 执行 S 14; 否则, 执行 S 13。  S12: When it is detected that the receiving end receives the data through the to-be-detected transmission link, perform CRC check processing on the received data. When the CRC result is incorrect, execute S14; otherwise, execute S13.
当检测一段待检测传输链路的传输盾量时, 发送端通过待检测传输链路向接收端发送 数据, 当检测到接收端接收到数据时, 对于接收到的数据进行 CRC校验处理, 其中 CRC 校验处理的具体实现过程是现有技术, 在这里不再赘述。  When detecting a transmission shield of a transmission link to be detected, the transmitting end sends data to the receiving end through the to-be-detected transmission link, and when detecting that the receiving end receives the data, performs CRC check processing on the received data, where The specific implementation process of the CRC check processing is prior art and will not be described here.
S 13 : 保持当前错误计数值, 返回继续执行 S 12。  S 13 : Keep the current error count value and return to continue execution S 12 .
当 CRC校验结果正确时,将用来表征 CRC校验结果错误次数的错误计数值保持不变, 这时可以再对接收到的新的数据进行 CRC校验处理。  When the CRC check result is correct, the error count value used to characterize the number of errors in the CRC check result remains unchanged, and the received new data can be subjected to CRC check processing.
S 14: 将错误计数值增加设定值。  S 14: Increase the error count value by the set value.
当 CRC校验结果为错误时, 将用来表征 CRC校验结果错误次数的错误计数值增加设 定值, 该设定值可以依据实际需要进行设定, 例如可以为 1、 2、 3等等。  When the CRC check result is an error, the error count value used to represent the error number of the CRC check result is increased by a set value, and the set value may be set according to actual needs, for example, may be 1, 2, 3, etc. .
S 15 : 判断增加设定值后的错误计数值是否不小于设定阈值, 若是, 执行 S 16; 否则, 返回继续执行 S 12。  S 15 : Determine whether the error count value after increasing the set value is not less than the set threshold. If yes, execute S 16; otherwise, return to continue executing S 12 .
判断增加设定值后的错误计数值是否不小于设定阈值, 该设定阈值用来表征在设定的 时间周期内, 当 CRC校验结果为错误的错误计数值达到该设定阈值时, 则可以确定待检 测传输链路出现故障; 反之则可以确定待检测传输链路处于正常状态。 该设定阈值可以依 据实际需要进行设定, 例如: 在传输链路繁忙的时段, 可以将设定阈值设置的大一些; 在 传输链路空闲的时段, 可以将设定阈值设置的小一些。  Determining whether the error count value after increasing the set value is not less than a set threshold value, and the set threshold value is used to represent that when the error count value of the CRC check result is wrong reaches the set threshold value within a set time period, Then, it can be determined that the transmission link to be detected is faulty; otherwise, it can be determined that the transmission link to be detected is in a normal state. The set threshold can be set according to actual needs. For example: When the transmission link is busy, the set threshold can be set larger; during the period when the transmission link is idle, the set threshold can be set smaller.
S 16: 发出传输链路调整指令指示待检测传输链路需要调整。  S 16: The transmission link adjustment command is issued to indicate that the transmission link to be detected needs to be adjusted.
当增加设定值后的错误计数值不 、于设定阈值时, 确定待检测传输链路发生故障, 此 时需要发出传输链路调整指令, 用来指示待检测传输链路需要调整。 S I 7: 将增加设定值后的错误计数值归零, 执行 S 19。 When the error count value after the set value is increased is not set to the threshold value, it is determined that the transmission link to be detected is faulty, and a transmission link adjustment command is required to indicate that the transmission link to be detected needs to be adjusted. SI 7: Zero the error count value after increasing the set value, and execute S 19 .
当发出传输链路调整指令后, 可以将增加设定值后的错误计数值归零, 以便于在下一 个设定的时间周期内重新对错误计数值进行计数; 当然也可以不将增加设定之后的错误计 数值归零, 继续累加下一个设定的时间周期内的错误计数值, 这时需要针对每一个设定的 时间周期都分别调整设定阈值, 当然也可以釆用其他的方式。  After the transmission link adjustment command is issued, the error count value after the increase of the set value can be reset to zero, so that the error count value can be re-counted in the next set time period; The error count value is reset to zero, and the error count value in the next set time period is continuously accumulated. In this case, the set threshold value needs to be adjusted separately for each set time period. Of course, other methods can be used.
S 18: 若增加设定值后的错误计数值 'J、于设定阈值, 则将增加设定值后的错误计数值 归零。  S 18: If the error count value 'J after increasing the set value is added, the error count value after increasing the set value is reset to zero.
当设定的时间周期到期后, 并且增加设定值后的错误计数值 'J、于设定阈值时, 可以将 增加设定值后的错误计数值归零, 以便于在下一个设定的时间周期内重新对错误计数值进 行计数; 当然也可以不将增加设定值之后的错误计数值归零, 继续累加下一个设定的时间 周期内的错误计数值, 这时需要针对每一个设定的时间周期都分别调整设定阈值, 当然也 可以釆用其他的方式。  When the set time period expires, and the error count value 'J after the set value is increased, when the set threshold is set, the error count value after the set value is increased can be reset to zero, so that the next set is The error count value is re-counted in the time period; of course, the error count value after the increase of the set value is not reset to zero, and the error count value in the next set time period is continuously accumulated, and then it is necessary to set each time. The set time value is adjusted separately for the determined time period, and of course other methods can be used.
S 19: 在进入设定的下一个时间周期后, 返回继续执行 S l l。  S 19: After entering the next time period of the setting, return to continue to execute S l l.
当将增加设定值后的错误计数值归零后, 可以进入设定的下一个时间周期, 然后继续 检测该传输链路。  When the error count value after increasing the set value is zeroed, the set next time period can be entered, and then the transmission link is continuously detected.
该方案通过检测设定的时间周期内接收到的数据的错误计数值来判断传输链路的传 输盾量, 可以根据需要设定时间周期的长度, 以在接收端接收到数据时, 就可以对数据进 行 CRC校验处理, 并根据校验结果确定错误计数值, 从而可以实现实时监控传输链路的 传输盾量, 一旦确定错误计数值达到设定阈值时, 就可以确定传输链路出现故障, 由于是 在实时监控传输链路, 从而可以及时发现传输链路出现的故障, 可以及时排除故障, 这也 就保证了传输链路的稳定性。  The scheme determines the transmission shield of the transmission link by detecting the error count value of the data received within the set time period, and can set the length of the time period as needed, so that when the receiver receives the data, it can The data is subjected to CRC check processing, and the error count value is determined according to the check result, so that the transmission shield of the transmission link can be monitored in real time, and once the error count value is determined to reach the set threshold, the transmission link may be determined to be faulty. Since the transmission link is monitored in real time, the fault of the transmission link can be found in time, and the fault can be eliminated in time, which ensures the stability of the transmission link.
上面介绍了通过将错误计数值与设定阈值进行比较来实时检测传输链路的盾量的方 案, 下面将介绍通过将误码率与设定阈值进行比较来检测传输链路盾量的方案。  The scheme for detecting the shield of the transmission link in real time by comparing the error count value with the set threshold is described above. The scheme for detecting the transmission link shield by comparing the bit error rate with the set threshold is described below.
基于同一发明构思, 本发明实施例提供一种传输链路检测方法, 该方法的流程如图 2 所示, 具体执行如下步骤:  Based on the same inventive concept, an embodiment of the present invention provides a method for detecting a transmission link. The process of the method is as shown in FIG. 2, and the following steps are specifically performed:
S20: 开始。  S20: Start.
这时可以执行初始化的过程, 当初始化完成后开始执行下列各个步骤。  At this time, the initialization process can be performed, and the following steps are started after the initialization is completed.
S21 : 监控设定的时间周期是否到期, 若到期, 执行 S29; 否则, 执行 S22。  S21: Monitor whether the set time period expires. If it expires, execute S29; otherwise, execute S22.
这里设定的时间周期可以参考 S 11中的时间周期的设定。  The time period set here can be referred to the setting of the time period in S11.
S22: 当检测到接收端通过待检测传输链路接收到数据时, 将用于表征接收数据的次 数的接收数据次数计数值增加第一设定值,并对接收到的数据进行 CRC校验处理,当 CRC 校验结果为不正确时, 执行 S24; 否则, 执行 S23。  S22: When detecting that the receiving end receives the data through the to-be-detected transmission link, increase the count value of the received data times for characterizing the number of times of receiving the data by a first set value, and perform CRC check processing on the received data. When the CRC check result is incorrect, execute S24; otherwise, execute S23.
在这里要对设定的一个时间周期内接收到的数据的次数进行统计, 用接收数据次数计 数值来表征该统计结果, 当接收到数据时, 将该接收数据次数计数值就增加第一设定值, 该第一设定值可以依据实际需要进行设定, 例如可以为 1、 2、 3等等。 对于对接收到的数 据进行 CRC校验处理的具体实现过程是现有技术, 在这里不再赘述。 Here, the number of times the data received in a set time period is counted is counted, and the number of received data is counted. The value is used to represent the statistical result. When the data is received, the count value of the received data is increased by a first set value, and the first set value may be set according to actual needs, for example, may be 1, 2, 3 and many more. The specific implementation process for performing CRC check processing on the received data is prior art, and details are not described herein again.
S23 : 保持当前错误计数值和接收数据次数计数值, 并返回继续执行 S22。  S23: Keep the current error count value and the received data count value, and return to continue execution S22.
S24: 将错误计数值增加第二设定值。  S24: Increase the error count value by the second set value.
当 CRC校验结果为错误时, 将用来表征 CRC校验结果错误次数的错误计数值增加第 二设定值, 该第二设定值可以依据实际需要进行设定, 例如可以为 1、 2、 3等等。  When the CRC check result is an error, the error count value used to represent the error number of the CRC check result is added to the second set value, and the second set value may be set according to actual needs, for example, may be 1, 2 , 3 and so on.
S25: 根据增加第一设定值后的接收数据次数计数值和增加第二设定值后的错误计数 值, 确定传输链路的误码率。  S25: Determine a bit error rate of the transmission link according to the count value of the received data after adding the first set value and the error count value after adding the second set value.
S26: 判断确定的误码率是否不小于第一设定阈值, 若是, 执行 S27; 否则, 返回继续 执行 S22。  S26: Determine whether the determined bit error rate is not less than the first set threshold, and if yes, execute S27; otherwise, return to continue to execute S22.
判断确定的误码率是否不小于第一设定阈值, 该第一设定阈值用来表征在设定的时间 周期内, 当传输链路的误码率达到该第一设定阈值时, 说明待检测传输链路出现故障; 反 之说明待检测传输链路处于正常状态。 该第一设定阈值可以依据实际需要进行设定或者根 据传输链路忙闲状态进行设定, 当然也可以依据其他的方法进行设定。  Determining whether the determined bit error rate is not less than a first set threshold. The first set threshold is used to indicate that when the error rate of the transmission link reaches the first set threshold within a set time period, The transmission link to be detected is faulty; otherwise, the transmission link to be detected is in a normal state. The first set threshold may be set according to actual needs or set according to the busy state of the transmission link, and may be set according to other methods.
S27: 发出传输链路调整指令以指示待检测传输链路需要调整。  S27: Send a transmission link adjustment command to indicate that the transmission link to be detected needs to be adjusted.
当传输链路的误码率不小于第一设定阈值时, 确定待检测传输链路发生故障, 此时需 要发出传输链路调整指令, 用来指示待检测传输链路需要调整。  When the error rate of the transmission link is not less than the first set threshold, it is determined that the transmission link to be detected is faulty, and a transmission link adjustment command is required to indicate that the transmission link to be detected needs to be adjusted.
对传输链路进行调整之后 , 当传输链路仍处于不稳定状态时, 传输链路的误码率可能 会达到第一设定阈值, 又回发出传输链路调整指示, 此时传输链路实际上是处于不稳定状 态, 而不是发生了故障。 为了避免对于传输链路故障的误判, S26 中可以同时判断增加第 一设定值后的接收数据次数计数值是否大于设定的第二阈值, 当大于时, 再发出传输链路 调整指示, 这样可以更加准确地判断传输链路是否发生了故障。  After the transmission link is adjusted, when the transmission link is still in an unstable state, the error rate of the transmission link may reach the first set threshold, and the transmission link adjustment indication is sent back. The upper is in an unstable state, not a fault. In order to avoid misjudgment of the transmission link failure, in S26, it can be simultaneously determined whether the count value of the received data number after the first set value is increased is greater than the set second threshold value, and when it is greater than, the transmission link adjustment indication is issued again. This makes it more accurate to determine if the transmission link has failed.
S28 : 将增加第一设定值后的接收数据次数计数值和增加第二设定值后的错误计数值 分别归零, 然后执行 S30。  S28: Zero the count value of the received data after increasing the first set value and the error count value after adding the second set value, respectively, and then execute S30.
当发出传输链路调整指令后 , 可以将增加第一设定值后的接收数据次数计数值和增加 设定值后的错误计数值归零, 以便于下一个设定的时间周期内重新对传输链路的误码率进 行统计; 当然也可以不将增加第一设定值后的接收数据次数计数值和增加设定之后的错误 计数值归零, 继续累加下一个设定的时间周期内的接收数据次数计数值和错误计数值, 当 然也可以釆用其他的方式。  After the transmission link adjustment command is issued, the count value of the received data count after adding the first set value and the error count value after increasing the set value may be reset to zero, so that the transmission may be re-transmitted in the next set time period. The error rate of the link is counted; of course, the count value of the received data after increasing the first set value and the error count value after the increase of the setting may not be reset to zero, and the accumulation of the next set time period is continued. Receiving the data count value and the error count value, of course, other methods can also be used.
S29: 当确定的误码率小于设定阈值时, 将误码率归零。  S29: When the determined bit error rate is less than the set threshold, the bit error rate is reset to zero.
当设定的时间周期到期后, 并且确定的误码率小于设定阈值时, 可以将误码率归零, 即将增加第一设定值后的接收数据次数计数值和增加设定之后的错误计数值分别归零, 以 便于在下一个设定的时间周期内重新对误码率进行统计; 当然也可以不将误码率归零, 继 续统计下一个设定的时间周期内的误码率, 这时需要针对每一个设定的时间周期都调整设 定阈值, 当然也可以釆用其他的方式。 When the set time period expires, and the determined bit error rate is less than the set threshold, the bit error rate may be reset to zero, that is, after the first set value is added, the count value of the received data is increased and the setting is increased. The error count value is returned to zero, respectively. It is convenient to re-calculate the bit error rate in the next set time period; of course, the bit error rate may not be zeroed, and the bit error rate in the next set time period is continued to be counted, and then it is necessary to set each bit error rate. The set time threshold is adjusted for a fixed time period, and of course other methods can be used.
S30: 在进入设定的下一个时间周期后, 继续返回执行 S21。  S30: After entering the set time period, continue to return to execution S21.
当将误码率归零后, 可以进入设定的下一个时间周期, 继续检测该传输链路。  When the bit error rate is reset to zero, it can enter the set next time period and continue to detect the transmission link.
具体的, 上述 S25中的根据增加第一设定值后的接收数据次数计数值和增加第二设定 值后的错误计数值, 确定传输链路的误码率, 具体包括: 将增加第二设定值后的错误计数 值与增加第一设定值后的接收数据次数计数值的比值, 确定为传输链路的误码率。  Specifically, in the foregoing S25, determining a bit error rate of the transmission link according to the count value of the received data number after adding the first set value and the error count value after adding the second set value, specifically including: adding the second The ratio of the error count value after the set value to the count value of the number of received data after increasing the first set value is determined as the bit error rate of the transmission link.
也就是确定在设定的时间周期内, 在接收到的数据总次数中, 经 CRC校验处理后被 确定为错误数据的次数占接收到的数据总次数的百分比, 用这个比值来表征该传输链路的 传输盾量。 当然这个比值越小, 说明出错的数据占接收到的数据的百分比越小, 也就说明 传输链路的传输盾量越好。  That is, in the set time period, the total number of received data, the number of times the CRC is processed to be determined as erroneous data as a percentage of the total number of received data, and the ratio is used to characterize the transmission. The transmission shield of the link. Of course, the smaller the ratio, the smaller the percentage of data received in the error data, and the better the transmission shield of the transmission link.
该方案通过检测设定的时间周期内的误码率来判断传输链路的传输盾量, 可以根据需 要设定时间周期的长度, 在接收端接收到数据时, 就可以对接收到的数据进行 CRC校验 处理, 并确定接收到数据后的误码率, 从而实时监控传输链路传输数据的盾量, 一旦误码 率达到设定阈值时, 就可以确定传输链路出现故障, 由于是在实时监控传输链路, 从而能 够及时发现传输链路出现的故障, 及时排除故障, 这也就保证了传输链路的稳定性。  The scheme determines the transmission shield of the transmission link by detecting the bit error rate in the set time period, and can set the length of the time period according to the need, and when the receiving end receives the data, the received data can be performed. CRC check processing, and determine the bit error rate after receiving the data, thereby monitoring the transmission amount of the transmission link data in real time, and once the bit error rate reaches the set threshold, it can determine that the transmission link is faulty, because it is Real-time monitoring of the transmission link enables timely detection of faults on the transmission link and timely troubleshooting, which ensures the stability of the transmission link.
基于同一发明构思, 本发明实施例提供一种传输链路检测装置, 该装置的结构如图 3 所示, 包括:  Based on the same inventive concept, an embodiment of the present invention provides a transmission link detecting apparatus. The structure of the apparatus is as shown in FIG. 3, and includes:
循环冗余校验单元 31 , 用于在设定的每个时间周期内, 当检测到接收端通过待检测传 输链路接收到数据时, 对接收到的数据进行循环冗余校验 CRC。  The cyclic redundancy check unit 31 is configured to perform a cyclic redundancy check CRC on the received data when detecting that the receiving end receives the data through the to-be-detected transmission link in each set time period.
错误计数单元 32 , 用于当 CRC结果为不正确时, 将错误计数值增加设定值。  The error counting unit 32 is configured to increase the error count value by a set value when the CRC result is incorrect.
传输盾量判定单元 33 ,用于错误技术单元中增加设定值后的错误计数值不小于设定阈 值时, 发出传输链路调整指令指示待检测传输链路需要调整。  The transmission shield determining unit 33, when the error count value after adding the set value in the error technical unit is not less than the set threshold, issues a transmission link adjustment command indicating that the transmission link to be detected needs to be adjusted.
较优的, 上述传输盾量判定单元 33 , 还用于: 在设定的每个时间周期到期时, 若增加 设定值后的错误计数值小于设定阈值, 则将增加设定值后的错误计数值归零; 或发出传输 链路调整指令之后 , 将增加设定值后的错误计数值归零。  Preferably, the transmission shield determining unit 33 is further configured to: when each set time period expires, if the error count value after adding the set value is less than the set threshold, the set value is increased. The error count value is reset to zero; or after the transmission link adjustment command is issued, the error count value after the set value is increased is reset to zero.
基于同一发明构思, 本发明实施例提供一种传输链路检测装置, 该装置的结构如图 4 所示, 包括:  Based on the same inventive concept, an embodiment of the present invention provides a transmission link detecting apparatus. The structure of the apparatus is as shown in FIG. 4, and includes:
循环冗余校验单元 41 , 用于在设定的每个时间周期内 , 当检测到接收端通过待检测传 输链路接收到数据时, 将用于表征接收数据的次数的接收数据次数计数值增加第一设定 值; 并对接收到的数据进行循环冗余校验 CRC;  The cyclic redundancy check unit 41 is configured to: when each time period is detected, when the receiving end receives the data through the to-be-detected transmission link, the count value of the received data used to represent the number of times the received data is received Adding a first set value; performing a cyclic redundancy check CRC on the received data;
错误计数单元 42 , 用于当 CRC结果为不正确时, 将错误计数值增加第二设定值; 误码率确定单元 43 ,用于根据增加第一设定值后的接收数据次数计数值和增加第二设 定值后的错误计数值 , 确定传输链路的误码率; The error counting unit 42 is configured to increase the error count value by a second set value when the CRC result is incorrect; The bit error rate determining unit 43 is configured to determine a bit error rate of the transmission link according to the count value of the received data number after adding the first set value and the error count value after adding the second set value;
传输盾量判定单元 44, 用于根据确定的误码率, 确定是否发出传输链路调整指令指示 待检测传输链路需要调整。  The transmission shield determining unit 44 is configured to determine, according to the determined error rate, whether to issue a transmission link adjustment instruction, indicating that the transmission link to be detected needs to be adjusted.
具体的, 上述误码率确定单元 43 , 具体用于: 将增加第二设定值后的错误计数值与增 加第一设定值后的接收数据次数计数值的比值, 确定为传输链路的误码率。  Specifically, the error rate determining unit 43 is specifically configured to: determine, as a transmission link, a ratio of an error count value after adding the second set value to a count value of the received data number after adding the first set value. Bit error rate.
具体的, 上述传输盾量判定单元 44, 用于在确定的误码率不小于第一设定阈值时, 发 出传输链路调整指令指示所述待检测传输链路需要调整; 或者在确定的误码率不小于第一 设定阈值、 且增加第一设定值后的接收数据次数计数值大于第二设定阈值时, 发出传输链 路调整指令指示待检测传输链路需要调整。  Specifically, the transmission shield quantity determining unit 44 is configured to: when the determined error rate is not less than the first set threshold, issue a transmission link adjustment instruction to indicate that the to-be-detected transmission link needs to be adjusted; or in the determined error When the code rate is not less than the first set threshold, and the count value of the received data number after the first set value is increased is greater than the second set threshold, the transmission link adjustment command is issued to indicate that the transmission link to be detected needs to be adjusted.
较优的, 上述传输盾量判定单元 44, 还用于: 在设定的每个时间周期到期时, 当确定 的误码率小于设定阈值时, 将误码率归零; 或者发出传输链路调整指令之后, 将增加第一 设定值后的接收数据次数计数值和增加第二设定值后的错误计数值分别归零。  Preferably, the transmission shield determination unit 44 is further configured to: when each of the set time periods expires, when the determined error rate is less than the set threshold, zero the error rate; or send the transmission. After the link adjustment command, the count value of the received data number after increasing the first set value and the error count value after adding the second set value are respectively zeroed.
基于同一发明构思, 本发明实施例提供一种传输链路检测系统, 该装置的结构如图 5 所示, 包括:  Based on the same inventive concept, an embodiment of the present invention provides a transmission link detection system. The structure of the device is as shown in FIG. 5, and includes:
包括用于发送数据的发送端 51、 用于接收数据的接收端 52和传输链路检测设备 53; 传输链路检测设备包括如图 3所示的链路检测装置和 /或如图 4所示的链路检测装置。  A transmitting end 51 for transmitting data, a receiving end 52 for receiving data, and a transmission link detecting device 53 are included; the transmission link detecting device includes the link detecting device as shown in FIG. 3 and/or as shown in FIG. Link detection device.
较优的, 上述传输链路检测设备 52设置在接收端 52中。  Preferably, the above transmission link detecting device 52 is disposed in the receiving end 52.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产 品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实 施例的形式。 而且, 本发明可釆用在一个或多个其中包含有计算机可用程序代码的计算机 可用存储介盾 (包括但不限于磁盘存储器、 CD-ROM、 光学存储器等)上实施的计算机程 序产品的形式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the present invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage interfaces (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序产品的流程图 和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图和 /或方框图中的每一流 程和 /或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机 程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器 以产生一个机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用 于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each process and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方 式工作的计算机可读存储器中, 使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品, 该指令装置实现在流程图一个流程或多个流程和 /或方框图一个方框或多个 方框中指定的功能。 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 device is implemented in a flow or a flow or a block diagram of a block or multiple The function specified in the box.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理, 从而在计算机或其他 可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 /或方框图一个 方框或多个方框中指定的功能的步骤。  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.
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了基本创造性概 念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权利要求意欲解释为包括优选 实施例以及落入本发明范围的所有变更和修改。  Although the preferred embodiment of the invention has been described, it will be apparent to those of ordinary skill in the art that <RTIgt; Therefore, the appended claims are intended to be construed as including the preferred embodiments and the modifications
显然, 本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实 施例的精神和范围。 这样, 倘若本发明实施例的这些修改和变型属于本发明权利要求及其 等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, it is intended that the present invention cover the modifications and modifications of the inventions

Claims

权 利 要 求 Rights request
1、 一种传输链路检测方法, 其特征在于, 包括: A transmission link detection method, comprising:
在设定的每个时间周期内, 当检测到接收端通过待检测传输链路接收到数据时, 对接 收到的数据进行循环冗余校验 CRC;  During each set time period, when it is detected that the receiving end receives data through the to-be-detected transmission link, the received data is subjected to a cyclic redundancy check CRC;
当 CRC结果为不正确时, 将错误计数值增加设定值;  When the CRC result is incorrect, the error count value is increased by the set value;
当增加设定值后的所述错误计数值不小于设定阈值时, 发出传输链路调整指令指示所 述待检测传输链路需要调整。  When the error count value after the set value is increased is not less than the set threshold, the transmission link adjustment instruction is issued to indicate that the transmission link to be detected needs to be adjusted.
2、 如权利要求 1所述的方法, 其特征在于, 还包括:  2. The method of claim 1, further comprising:
在设定的每个时间周期到期时, 若增加设定值后的所述错误计数值 'J、于设定阈值, 则 将增加设定值后的所述错误计数值归零; 或  When the set time period expires, if the error count value 'J after the set value is increased, the error count value after the set value is increased is reset to zero; or
发出传输链路调整指令之后 , 将增加设定值后的所述错误计数值归零。  After the transmission link adjustment command is issued, the error count value after the set value is increased is reset to zero.
3、 一种传输链路检测方法, 其特征在于, 包括:  3. A transmission link detection method, characterized in that it comprises:
在设定的每个时间周期内, 当检测到接收端通过待检测传输链路接收到数据时, 将用 于表征接收数据的次数的接收数据次数计数值增加第一设定值; 并  During each set time period, when it is detected that the receiving end receives the data through the to-be-detected transmission link, the count value of the received data used to characterize the number of times of receiving the data is increased by the first set value;
对接收到的数据进行循环冗余校验 CRC;  Performing a cyclic redundancy check on the received data CRC;
当 CRC结果为不正确时, 将错误计数值增加第二设定值;  When the CRC result is incorrect, the error count value is increased to the second set value;
根据增加第一设定值后的接收数据次数计数值和增加第二设定值后的错误计数值 , 确 定传输链路的误码率;  Determining the bit error rate of the transmission link according to the count value of the received data after increasing the first set value and the error count value after increasing the second set value;
根据确定的所述误码率, 确定是否发出传输链路调整指令指示所述待检测传输链路需 要调整。  And determining, according to the determined bit error rate, whether to issue a transmission link adjustment command to indicate that the to-be-detected transmission link needs to be adjusted.
4、 如权利要求 3 所述的方法, 其特征在于, 根据增加第一设定值后的接收数据次数 计数值和增加第二设定值后的错误计数值, 确定传输链路的误码率, 具体包括:  The method according to claim 3, wherein the error rate of the transmission link is determined according to the count value of the received data after increasing the first set value and the error count value after adding the second set value Specifically, including:
将增加第二设定值后的错误计数值与增加第一设定值后的接收数据次数计数值的比 值, 确定为所述传输链路的误码率。  The ratio of the error count value after the second set value is increased to the count value of the received data number after the first set value is increased is determined as the bit error rate of the transmission link.
5、 如权利要求 3 所述的方法, 其特征在于, 根据确定的所述误码率, 确定是否发出 传输链路调整指令指示所述待检测传输链路需要调整, 包括:  The method of claim 3, wherein determining, according to the determined error rate, whether to issue a transmission link adjustment instruction, indicating that the to-be-detected transmission link needs to be adjusted, includes:
在确定的所述误码率不小于第一设定阈值时, 发出传输链路调整指令指示所述待检测 传输链路需要调整; 或者  And when the determined bit error rate is not less than the first set threshold, sending a transmission link adjustment instruction to indicate that the to-be-detected transmission link needs to be adjusted; or
在确定的所述误码率不小于第一设定阈值、 且增加第一设定值后的接收数据次数计数 值大于第二设定阈值时, 发出传输链路调整指令指示所述待检测传输链路需要调整。 Sending a transmission link adjustment instruction to indicate the to-be-detected transmission when the determined bit error rate is not less than the first set threshold, and the received data number count value after the first set value is increased is greater than the second set threshold The link needs to be adjusted.
6、 如权利要求 3所述的方法, 其特征在于, 还包括: 6. The method of claim 3, further comprising:
在设定的每个时间周期到期时, 当确定的所述误码率小于设定阈值时, 将所述误码率 归零; 或者  When the set time period expires, when the determined bit error rate is less than the set threshold, the bit error rate is reset to zero; or
发出传输链路调整指令之后 , 将增加第一设定值后的接收数据次数计数值和增加第二 设定值后的错误计数值分别归零。  After the transmission link adjustment command is issued, the count value of the received data number after increasing the first set value and the error count value after adding the second set value are respectively zeroed.
7、 一种传输链路检测装置, 其特征在于, 包括:  7. A transmission link detecting apparatus, comprising:
循环冗余校验单元, 用于在设定的每个时间周期内, 当检测到接收端通过待检测传输 链路接收到数据时, 对接收到的数据进行循环冗余校验 CRC;  a cyclic redundancy check unit, configured to perform a cyclic redundancy check CRC on the received data when detecting that the receiving end receives data through the to-be-detected transmission link in each time period set;
错误计数单元, 用于当 CRC结果为不正确时, 将错误计数值增加设定值; 传输盾量判定单元, 用于所述错误技术单元中增加设定值后的所述错误计数值不小于 设定阈值时, 发出传输链路调整指令指示所述待检测传输链路需要调整。  An error counting unit, configured to: when the CRC result is incorrect, increase the error count value by a set value; and transmit a shield amount determining unit, where the error count value after adding the set value in the error technical unit is not less than When the threshold is set, a transmission link adjustment command is issued to indicate that the transmission link to be detected needs to be adjusted.
8、 如权利要求 7所述的装置, 其特征在于, 所述传输盾量判定单元, 还用于: 在设定的每个时间周期到期时, 若增加设定值后的所述错误计数值 'J、于设定阈值, 则 将增加设定值后的所述错误计数值归零; 或  The device according to claim 7, wherein the transmission shield determining unit is further configured to: when the set time period expires, if the error value is increased after the set value is increased The value 'J, after setting the threshold, resets the error count value after increasing the set value; or
发出传输链路调整指令之后, 将增加设定值后的所述错误计数值归零。  After the transmission link adjustment command is issued, the error count value after the set value is increased is reset to zero.
9、 一种传输链路检测装置, 其特征在于, 包括:  9. A transmission link detecting apparatus, comprising:
循环冗余校验单元, 用于在设定的每个时间周期内, 当检测到接收端通过待检测传输 链路接收到数据时, 将用于表征接收数据的次数的接收数据次数计数值增加第一设定值; 并对接收到的数据进行循环冗余校验 CRC;  a cyclic redundancy check unit, configured to increase a count value of the number of received data used to characterize the number of times of receiving data when detecting that the receiving end receives data through the to-be-detected transmission link in each set time period a first set value; and performing cyclic redundancy check CRC on the received data;
错误计数单元, 用于当 CRC结果为不正确时, 将错误计数值增加第二设定值; 误码率确定单元, 用于根据增加第一设定值后的接收数据次数计数值和增加第二设定 值后的错误计数值 , 确定传输链路的误码率;  An error counting unit, configured to: when the CRC result is incorrect, increase the error count value by a second set value; the error rate determining unit is configured to: according to the count value of the received data after adding the first set value, and increase the number The error count value after the second set value determines the bit error rate of the transmission link;
传输盾量判定单元, 用于根据确定的所述误码率, 确定是否发出传输链路调整指令指 示所述待检测传输链路需要调整。  And a transmission shield determining unit, configured to determine, according to the determined error rate, whether to issue a transmission link adjustment command, indicating that the to-be-detected transmission link needs to be adjusted.
10、 如权利要求 9所述的装置, 其特征在于, 所述误码率确定单元, 具体用于: 将增加第二设定值后的错误计数值与增加第一设定值后的接收数据次数计数值的比 值, 确定为所述传输链路的误码率。  The apparatus according to claim 9, wherein the error rate determining unit is specifically configured to: receive an error count value after adding the second set value and receive data after adding the first set value The ratio of the count values is determined as the bit error rate of the transmission link.
11、 如权利要求 9所述的装置, 其特征在于, 所述传输盾量判定单元, 具体用于: 在确定的所述误码率不小于第一设定阈值时, 发出传输链路调整指令指示所述待检测 传输链路需要调整; 或者  The device according to claim 9, wherein the transmission shield determining unit is specifically configured to: issue a transmission link adjustment command when the determined error rate is not less than a first set threshold Instructing the transmission link to be detected to be adjusted; or
在确定的所述误码率不小于第一设定阈值、 且增加第一设定值后的接收数据次数计数 值大于第二设定阈值时, 发出传输链路调整指令指示所述待检测传输链路需要调整。Counting the number of received data after the determined bit error rate is not less than the first set threshold and the first set value is increased When the value is greater than the second set threshold, issuing a transmission link adjustment command indicates that the to-be-detected transmission link needs to be adjusted.
12、 如权利要求 9所述的装置, 其特征在于, 所述传输盾量判定单元, 还用于: 在设定的每个时间周期到期时, 当确定的所述误码率小于设定阈值时, 将所述误码率 归零; 或者 The device according to claim 9, wherein the transmission shield determining unit is further configured to: when each set time period expires, when the determined bit error rate is less than a setting Zeroing the bit error rate when the threshold is reached; or
发出传输链路调整指令之后 , 将增加第一设定值后的接收数据次数计数值和增加第二 设定值后的错误计数值分别归零。  After the transmission link adjustment command is issued, the count value of the received data number after increasing the first set value and the error count value after adding the second set value are respectively zeroed.
13、 一种传输链路检测系统, 其特征在于, 包括用于发送数据的发送端、 用于接收数 据的接收端和传输链路检测设备; 所述传输链路检测设备包括如权利要求 7-8任一所述的 传输链路检测装置和 /或如权利要求 9-12任一所述的传输链路检测装置。  A transmission link detection system, comprising: a transmitting end for transmitting data, a receiving end for receiving data, and a transmission link detecting device; wherein the transmission link detecting device comprises the following claim 7 A transmission link detecting apparatus according to any of the preceding claims, and/or a transmission link detecting apparatus according to any one of claims 9-12.
14、 如权利要求 13 所述的系统, 其特征在于, 所述传输链路检测设备设置在所述接 收端中。  14. The system according to claim 13, wherein the transmission link detecting device is disposed in the receiving end.
PCT/CN2011/085079 2011-12-30 2011-12-30 Method, device and system for detecting transmission link WO2013097196A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180074222.2A CN104012020A (en) 2011-12-30 2011-12-30 Method, device and system for detecting transmission link
PCT/CN2011/085079 WO2013097196A1 (en) 2011-12-30 2011-12-30 Method, device and system for detecting transmission link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/085079 WO2013097196A1 (en) 2011-12-30 2011-12-30 Method, device and system for detecting transmission link

Publications (1)

Publication Number Publication Date
WO2013097196A1 true WO2013097196A1 (en) 2013-07-04

Family

ID=48696259

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/085079 WO2013097196A1 (en) 2011-12-30 2011-12-30 Method, device and system for detecting transmission link

Country Status (2)

Country Link
CN (1) CN104012020A (en)
WO (1) WO2013097196A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884866A (en) * 2020-08-05 2020-11-03 中国工商银行股份有限公司 Network optimization method, network optimization system, computer system, and storage medium
CN117565885A (en) * 2024-01-17 2024-02-20 中国第一汽车股份有限公司 Automatic driving transverse control system and vehicle

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144937B (en) * 2018-10-30 2021-08-17 天津津航计算技术研究所 High-reliability transmission method for multi-path serial port
CN111857302A (en) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 Reset method, device and equipment of system management bus
CN113595833B (en) * 2021-08-05 2024-01-30 中国工商银行股份有限公司 CRC exception handling method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859075A (en) * 2005-11-16 2006-11-08 华为技术有限公司 Method for detecting link disturbing code configuration conformance
CN101621829A (en) * 2009-07-27 2010-01-06 北京天碁科技有限公司 Method and device for reporting channel quality indicator
CN101772065A (en) * 2009-01-06 2010-07-07 上海摩波彼克半导体有限公司 Method for triggering reports of quality measurement events by wireless communication terminal
CN102104442A (en) * 2009-12-17 2011-06-22 中兴通讯股份有限公司 Channel quality indicator correction method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859075A (en) * 2005-11-16 2006-11-08 华为技术有限公司 Method for detecting link disturbing code configuration conformance
CN101772065A (en) * 2009-01-06 2010-07-07 上海摩波彼克半导体有限公司 Method for triggering reports of quality measurement events by wireless communication terminal
CN101621829A (en) * 2009-07-27 2010-01-06 北京天碁科技有限公司 Method and device for reporting channel quality indicator
CN102104442A (en) * 2009-12-17 2011-06-22 中兴通讯股份有限公司 Channel quality indicator correction method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884866A (en) * 2020-08-05 2020-11-03 中国工商银行股份有限公司 Network optimization method, network optimization system, computer system, and storage medium
CN111884866B (en) * 2020-08-05 2022-10-28 中国工商银行股份有限公司 Network optimization method, network optimization system, computer system, and storage medium
CN117565885A (en) * 2024-01-17 2024-02-20 中国第一汽车股份有限公司 Automatic driving transverse control system and vehicle

Also Published As

Publication number Publication date
CN104012020A (en) 2014-08-27

Similar Documents

Publication Publication Date Title
WO2013097196A1 (en) Method, device and system for detecting transmission link
EP2654310B1 (en) Lossy link detection method, apparatus, node and system
Akhshabi et al. Server-based traffic shaping for stabilizing oscillating adaptive streaming players
US8811167B2 (en) Shaping multimedia stream bit-rates to adapt to network conditions
US20080184081A1 (en) Data communication apparatus, method, and program
JP2016201794A (en) Fault detection device, method and system
WO2016033897A1 (en) Network link monitoring method and device, network system and storage medium
US11102273B2 (en) Uplink performance management
US9755926B2 (en) Efficiently utilizing probe packets within a network
WO2012088843A1 (en) Method and system for bidirectional forwarding detection
BR112014027418B1 (en) METHOD, COMPUTING DEVICE AND NON-TRANSITORY COMPUTER READABLE MEDIUM
CN102368729B (en) Accurate network speed limit method at non-realtime system
US8593948B1 (en) Network device and method of controlling network device
US20150288607A1 (en) Enhanced Media Quality Management
JP2010183220A (en) Quality deterioration detection apparatus, and wireline/wireless detection apparatus
WO2012088910A1 (en) Method and system for detecting connectivity fault
WO2014067283A1 (en) Network failure detecting method, node, and monitoring center
US10496128B2 (en) Method for obtaining timestamp and computer device using the same
WO2016086638A1 (en) Link detection method, device, and computer storage medium
US20110153804A1 (en) Method and system for reporting defects within a network
CN101409648A (en) Method for locating node fault and link fault of Overlay network
CN113923140A (en) Round trip delay measuring method, system and storage medium
KR101324857B1 (en) A method for linking ethernet communication for digital protective relay and the digital protective relay performing the same
WO2015172319A1 (en) Method and device for testing new flow creating speed of sdn
WO2013117066A1 (en) Method and device for detecting user equipment abnormity in long term evolution system

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: 11878359

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: 11878359

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 24/11/2014)

122 Ep: pct application non-entry in european phase

Ref document number: 11878359

Country of ref document: EP

Kind code of ref document: A1