WO2013091536A1 - Data transmission method, relevant node and system based on multi-channel - Google Patents

Data transmission method, relevant node and system based on multi-channel Download PDF

Info

Publication number
WO2013091536A1
WO2013091536A1 PCT/CN2012/086912 CN2012086912W WO2013091536A1 WO 2013091536 A1 WO2013091536 A1 WO 2013091536A1 CN 2012086912 W CN2012086912 W CN 2012086912W WO 2013091536 A1 WO2013091536 A1 WO 2013091536A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data frame
consistent
node
frames
Prior art date
Application number
PCT/CN2012/086912
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 华为技术有限公司
Publication of WO2013091536A1 publication Critical patent/WO2013091536A1/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
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals

Definitions

  • Multi-channel based data transmission method, related node and system The application is submitted to the Chinese Patent Office on December 19, 2011, the application number is 201110426422.1, and the invention name is "multi-channel based data transmission method, related nodes and systems" Priority of Chinese Patent Application, the entire contents of which is incorporated herein by reference.
  • the present invention relates to the field of communications, and in particular, to a multi-channel based data transmission method, related nodes and systems.
  • SMP Symmetric Multiprocessing
  • system architecture such as cluster system, Massively Parallel Processing (MPP), and Cache-Coherent Non-Uniform Memory Architecture (CC-NUMA).
  • MPP Massively Parallel Processing
  • CC-NUMA Cache-Coherent Non-Uniform Memory Architecture
  • Embodiments of the present invention provide a multi-channel based data transmission method, a related node, and a system for improving stability of a communication system. To solve the above technical problem, the embodiment of the present invention provides the following technical solutions:
  • a multi-channel based data transmission method comprising:
  • the receiving node synchronously receives the data frame from the sending node from the at least two channels, where the data frame carries the cyclic redundancy check code CRC, and the data frames transmitted on the at least two channels are the same data frame. ; Comparing whether data in at least two of the above received data frames is consistent;
  • the data frame with the same data is CRC checked; if there is no data frame with the same data, the CRC check is performed on all the data frames that are currently compared.
  • a data frame having the correct CRC check is transmitted to the FIFO in the FIFO; and an acknowledgement indicating that the data frame is received without error is returned to the transmitting node.
  • a receiving node includes:
  • a receiving unit configured to synchronously receive data frames from the sending node from the at least two channels, where the data frame carries a cyclic redundancy check code CRC, and the data frames transmitted on the at least two channels are the same a data frame;
  • a comparison unit configured to compare whether data of the at least two received data frames is consistent
  • a CRC check unit configured to: when the comparing unit compares data frames with data consistency, perform data frames that are consistent with the data CRC check; when the comparing unit compares the data frame with no data consistency, performs CRC check on all data frames currently compared by the comparing unit; and the transmitting unit is configured to: when there is a data frame with the correct CRC check Transmitting, to the first-in first-out queue FIFO, a data frame with the correct CRC check;
  • a feedback unit configured to: when the transmitting unit triggers, return to the sending node, the confirmation information indicating that the data frame is received without errors.
  • a cross-node interconnect system including:
  • the sending node is configured to send the same data frame to the receiving node from the at least two channels;
  • the receiving node is configured to synchronously receive the data frame from the sending node from the at least two channels, where the data frame carries a loop a redundancy check code CRC, and the data frames transmitted on the at least two channels are the same data frame;
  • the data frame with the same data is CRC checked; if there is no data frame with the same data, the CRC check is performed on all the data frames that are currently compared.
  • multiple channels are used to transmit the same data, and the receiving node synchronously receives data from multiple channels, thereby avoiding receiving the cable in a single channel when the cable is slack or partially severely interfered.
  • the node cannot receive the system defect or the service interruption caused by the data frame transmitted by the sending node in real time, and on the other hand, avoids the problem that the transmission data is easily lost during the hot-machine backup switching process; in addition, the receiving in the present invention
  • the node compares and analyzes the data in the received data frames on the multiple channels, and when there is a data frame that is correct in the analysis processing result, the acknowledgment information indicating that the data frame is received correctly is returned to the sending node, thereby avoiding the existing information.
  • the technical solution provided by the present invention effectively improves the stability of the communication system.
  • FIG. 1 is a schematic flow chart of an embodiment of a multi-channel based data transmission method provided by the present invention
  • FIG. 2 is a schematic flow chart of another embodiment of a multi-channel based data transmission method provided by the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of a receiving node according to the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of a cross-node interconnection system according to the present invention. detailed description
  • Embodiments of the present invention provide a multi-channel based data transmission method, a related node, and a system.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention.
  • the embodiments are merely a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the multi-channel based data transmission method provided by the embodiment of the present invention is described below. Referring to FIG. 1 , an embodiment of the multi-channel based data transmission method provided by the present invention includes:
  • the receiving node synchronously receives the data frame from the sending node from the at least two channels.
  • at least two cables are connected between the sending node and the receiving node to form at least two pieces for transmitting the same data.
  • the channel sends a data frame carrying a Cyclic Redundancy Check (CRC) to the receiving node through at least two channels formed by the sending node, where the data frames transmitted on each channel are the same data frame.
  • CRC Cyclic Redundancy Check
  • the data frame of the sending node where the synchronization code is a custom special character, used to indicate the sending start time of the data frame.
  • the data frame when the receiving of the data frame is completed from the channel, the data frame is stored in the packet data register, and the flag tag corresponding to the channel may be set, wherein the flag flag and the channel --correspond.
  • the receiving node compares whether the data in the at least two received data frames are consistent.
  • the receiving node may perform the data frame that is currently received after completing the receiving of the data frame from all channels. For comparison, if the receiving node synchronously receives the same data frame from the four channels in step 101, the receiving node may compare the four data frames after the four data frames are received, or the receiving node may also After the reception of the data frame is completed from the majority of channels (for example, when most flag tags are set), the received data frames are extracted for comparison, for example, a threshold value greater than 2 may be preset according to the current channel number. When the number of identical data frames that have been received exceeds the threshold, the currently received data frames are compared.
  • a waiting time of a certain duration may be preset. After the timing exceeds the waiting time, the currently received data frame is compared, and the timing may be triggered when the receiving node starts receiving the data frame, or may also be triggered after the receiving node completes receiving a data frame, or may also Timing is triggered at other times.
  • the preset duration will also be different.
  • step 103 is performed;
  • step 104 is performed.
  • the receiving node performs CRC check on the data frame with consistent data. Further, the receiving node can Data frames with inconsistent data are discarded.
  • step 105 is performed.
  • step 102 When the data of all the data frames to be compared in step 102 are inconsistent, all the data frames currently being compared are subjected to CRC check.
  • step 105 is performed.
  • the receiving node transmits one of the data frames with the correct CRC check to FIF0.
  • the receiving node returns an acknowledgement (e.g., ACK information) indicating that the data frame is received without error to the transmitting node.
  • acknowledgement e.g., ACK information
  • the receiving node may further calculate the remaining space of the current FIFO after step 105, and the calculation of the remaining space of the FIFO may be implemented by the following formula:
  • Remaining space of FIFO number of registers of FIF0 - number of data received by FIFO.
  • the sending node After calculating the remaining space of the FIFO, carrying the storage identifier in the confirmation information, where the storage identifier is used to indicate the remaining space of the FIFO, such as being definable, when the value of the storage identifier is 1, indicating that the FIFO has The remaining space, when the value of the storage identifier is 0, indicates that the FIFO is full. Therefore, when the sending node receives the acknowledgment information carrying the storage identifier, it can learn the storage status of the current FIFO of the receiving node, and stop transmitting the data frame to the receiving node when the current FIFO of the receiving node is full.
  • the data frame transmitted in the embodiment of the present invention may be a control signal (such as a reset signal, a system error signal, etc.), or the data frame may be a data frame carrying the service data, which is not limited herein.
  • a control signal such as a reset signal, a system error signal, etc.
  • the data frame may be a data frame carrying the service data, which is not limited herein.
  • the receiving node synchronously receives data from multiple channels, thereby avoiding looseness or partial strictness of the cable in a single channel.
  • the receiving node cannot receive the system or the service interruption caused by the data frame transmitted by the transmitting node in real time, and on the other hand, avoids the problem that the transmission data is easily lost during the hot-machine backup switching process;
  • the receiving node performs comparative analysis processing on the data in the received data frames on the plurality of channels, and when there is a data frame in which the comparison analysis processing result is correct, that is, returning to the transmitting node, indicating that the data frame is received without errors.
  • a multi-channel based data transmission method includes:
  • the receiving node synchronously receives the data frame from the sending node from the at least two channels.
  • at least two cables are connected between the sending node and the receiving node to form at least two pieces for transmitting the same data.
  • the channel the sending node sends the data frame carrying the CRC to the receiving node by using at least two channels formed, wherein the data frames transmitted on each channel are the same data frame.
  • the data frame of the sending node, the above synchronization code is a custom special character, which is used to indicate the sending start time of the data frame.
  • the data frame when the receiving of the data frame is completed from the channel, the data frame is stored in the packet data register, and the flag tag corresponding to the channel may be set, where the flag flag and the channel are --correspond.
  • step 202 Determine whether the number of received data frames exceeds a preset first threshold.
  • a first threshold value greater than 2 is preset, and when the received data frame is received, When the number exceeds the first threshold, step 203 is performed. When the preset first threshold is not exceeded, step 206 is performed.
  • the receiving node compares whether the data in the currently received data frame is consistent.
  • step 204 is performed;
  • step 205 is performed.
  • step 208 is performed; If the CRC check of the data frame with the same data is not correct, step 207 is performed.
  • step 208 is performed;
  • step 212 is performed.
  • the receiving node may trigger timing when starting to receive the data frame, or may trigger timing after receiving a data frame, or may trigger timing from other moments.
  • the duration of the set will also be different.
  • step 207 Determine whether the number of data frames that are consistent with the data exceeds a preset second threshold. When the number of data frames that are consistent with the data exceeds a preset second threshold, perform step 209. When the number of data frames consistent with the data does not exceed the preset second threshold, step 212 is performed.
  • the receiving node transmits one of the data frames with the correct CRC check to the FIFO.
  • the receiving node transmits one of the data frames with the same data to the FIFO.
  • the remaining space of the FIFO The number of registers in the FIFO - The number of times the data is received by the FIFO.
  • the receiving node returns an acknowledgement (e.g., ACK information) indicating that the data frame is received without error to the transmitting node.
  • the acknowledgment information carries a storage identifier, where the storage identifier is used to indicate the remaining space of the FIFO. For example, it can be defined that when the value of the storage identifier is 1, it indicates that the FIFO has a remaining space, and when the value of the storage identifier is 0 means the FIFO is full. Therefore, when the sending node receives the acknowledgment information carrying the storage identifier, the sending node can learn the storage status of the current FIFO of the receiving node, and stop sending the data frame to the receiving node when the receiving node is full FIFO.
  • the receiving node returns retransmission indication information (such as NAK information) to the transmitting node, instructing the transmitting node to resend the data frame.
  • retransmission indication information such as NAK information
  • the node cannot receive the system defect or the service interruption caused by the data frame transmitted by the sending node in real time, and on the other hand, avoids the problem that the transmission data is easily lost during the hot-machine backup switching process; in addition, the receiving in the present invention
  • the node compares and analyzes the data in the received data frames on the multiple channels, and when there is a data frame that is correct in the analysis processing result, the acknowledgment information indicating that the data frame is received correctly is returned to the sending node, thereby avoiding the existing information.
  • the technical solution provided by the present invention effectively improves the stability of the communication system.
  • a receiving node in the embodiment of the present invention is described below. Referring to FIG. 3, the receiving node 300 in the embodiment of the present invention includes:
  • the receiving unit 301 is configured to synchronously receive the data frame from the sending node from the at least two channels, where the data frame carries the CRC, and the data frames transmitted on the at least two channels are the same data frame;
  • the data frame of the node, the above synchronization code is a custom special character, which is used to indicate the sending start time of the data frame.
  • the data frame is stored in the packet data register, and the flag tag corresponding to the channel may be set, where the flag flag and the channel are --correspond.
  • the comparing unit 302 is configured to compare whether the data in the completed data frame received by the at least two receiving units 301 is consistent;
  • the comparing unit 302 may compare the currently received data frames after the receiving unit 301 completes receiving the data frame from all channels;
  • the receiving node further includes: a first determining unit, configured to determine whether the number of received data frames exceeds a preset first threshold, where the first threshold is greater than 2
  • the comparing unit 302 may trigger when the first determining unit determines that the number of received data frames exceeds a preset first threshold, or the comparing unit 302 may determine that the receiving is completed in the first determining unit. When the number of data frames does not exceed the preset first threshold, it is triggered after waiting for the preset time. This is not a limitation.
  • the comparing unit 302 is specifically configured to compare whether data in all currently received data frames is consistent.
  • the CRC check unit 303 is configured to perform CRC check on the data frame with the same data when the comparison unit 302 compares the data frames with the data consistency; when the comparison unit 302 compares the data frames with the same data, the comparison is performed. All data frames currently being compared by unit 302 are CRC checked.
  • the transmitting unit 304 is configured to: when there is a data frame with a correct CRC check, transmit a data frame with a correct CRC check to the FIFO;
  • the feedback unit 305 is configured to, when the transmitting unit 304 triggers, return an acknowledgement information (such as ACK information) indicating that the data frame is received without error.
  • an acknowledgement information such as ACK information
  • the feedback unit 305 is further configured to: when the CRC check unit 303 is incorrect in the CRC check result of the data frame, return the retransmission indication information to the sending node, where the retransmission indication information is used. Instructing the transmitting node to resend the data frame.
  • the receiving node 300 further includes: a second determining unit, configured to determine, when the CRC check unit 303 does not correctly correct the CRC of the data frame that is consistent with the data, determine a data frame that is consistent with the data Whether the number exceeds the preset second threshold value; the transmitting unit 304 is further configured to: when the determination result of the second determining unit is YES, transmit one of the data frames that is consistent with the data to the FIFO; the feedback unit 305 is further configured to use the foregoing When the determination result of the second judging unit is no, or when the CRC check of all the data frames is not correct, the retransmission indication information is returned to the transmitting node.
  • a second determining unit configured to determine, when the CRC check unit 303 does not correctly correct the CRC of the data frame that is consistent with the data, determine a data frame that is consistent with the data Whether the number exceeds the preset second threshold value
  • the transmitting unit 304 is further configured to: when the determination result of the second determining
  • the receiving node 300 further includes: a calculating unit, configured to calculate a remaining space of the current FIFO; the acknowledgment information fed back by the feedback unit 305 carries a storage identifier, where the storage identifier is used to indicate that the receiving node 300 is currently The remaining space of the FIFO, so that the transmitting node can know the storage status of the current FIFO of the receiving node when receiving the acknowledgment information carrying the storage identifier, and stop transmitting the data frame to the receiving node when the current FIFO of the receiving node is full.
  • a calculating unit configured to calculate a remaining space of the current FIFO
  • the acknowledgment information fed back by the feedback unit 305 carries a storage identifier, where the storage identifier is used to indicate that the receiving node 300 is currently The remaining space of the FIFO, so that the transmitting node can know the storage status of the current FIFO of the receiving node when receiving the acknowledgment information carrying the storage identifier, and stop transmitting the data frame to the receiving
  • the confirmation information fed back by the feedback unit carries a storage identifier, wherein the storage identifier is used to indicate the remaining space of the FIFO.
  • the receiving node 300 in the embodiment of the present invention may be used as the receiving node in the foregoing method embodiment, and may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the respective functional modules may be according to the foregoing method embodiments.
  • the functions of the respective functional modules may be according to the foregoing method embodiments.
  • the receiving node is from multiple pieces. Synchronously receiving data on the channel avoids problems such as system failure or service interruption caused by the receiving node not receiving the data frame transmitted by the transmitting node in real time when the cable of the single channel is slack or partially severely interfered. On the other hand, the problem of loss of transmission data during the hot-machine backup switching process is also avoided.
  • the receiving node compares and analyzes the data in the received data frames on multiple channels, and there is a comparative analysis.
  • the embodiment of the invention further provides a cross-node interconnection system, as shown in FIG. 4, a cross-node interconnection system.
  • the 400 includes a sending node 401 and a receiving node 402.
  • the sending node 401 is configured to send the same data frame from the at least two channels to the receiving node. Further, if the sending node 401 learns that the receiving node 402 is full, the current receiving FIFO stops receiving.
  • the node 402 sends a data frame.
  • the receiving node 402 can be the receiving node 300 in the foregoing device embodiment, and details are not described herein again.
  • the receiving node synchronously receives data from multiple channels, thereby avoiding looseness or partiality of cables in a single channel.
  • the receiving node cannot receive the data frame transmitted by the transmitting node in real time and completely suffers from problems such as system failure or service interruption.
  • the receiving node performs comparative analysis processing on the data in the received data frames on the plurality of channels, and when there is a data frame in which the comparison analysis processing result is correct, the returning to the transmitting node indicates that the data frame is received without errors.
  • the information avoids the drawbacks of requiring the transmitting node to retransmit the data frame as long as the CRC check error of one data frame in the prior art, greatly reducing the number of times of retransmitting the data frame, and improving the real-time and timing of the data.
  • the technical solution provided by the present invention effectively improves the stability of the communication system.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative, examples.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be ignored, or not. carried out.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A data transmission method, relevant node and system based on multi-channel. The data transmission method based on multi-channel includes: a receiving node receiving data frames from a sending node synchronously from at least two channels; comparing whether the data in the at least two received data frames are consistent; if there are data frames with consistent data, then performing CRC check on the data frames with consistent data; and if there are no data frames with consistent data, then performing CRC check on all the data frames which undergo comparison currently; if there are data frames with correct CRC check, then transmitting one data frame with correct CRC check in a first in first out (FIFO) queue; and returning to the sending node acknowledgement information which indicates that the receiving of the data frame is correct. The data transmission method, relevant node and system can effectively improve the stability of communication systems.

Description

基于多通道的数据传输方法、 相关节点及系统 本申请要求于 2011 年 12 月 19 日提交中国专利局、 申请号为 201110426422.1、发明名称为 "基于多通道的数据传输方法、相关节点及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  Multi-channel based data transmission method, related node and system The application is submitted to the Chinese Patent Office on December 19, 2011, the application number is 201110426422.1, and the invention name is "multi-channel based data transmission method, related nodes and systems" Priority of Chinese Patent Application, the entire contents of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及通讯领域, 尤其涉及基于多通道的数据传输方法、相关节点及 系统。  The present invention relates to the field of communications, and in particular, to a multi-channel based data transmission method, related nodes and systems.
背景技术 Background technique
伴随着 1946年世界上第一台计算机的问世,计算机技术跨越了从电子管, 晶体管,集成电路,超大规模集成电路的发展时代,伴随着计算机技术的进步, 人们对处理器系统的性能提出了更高的要求, 于是出现了对称多处理结构 With the advent of the world's first computer in 1946, computer technology spanned the era of e-tubes, transistors, integrated circuits, and ultra-large-scale integrated circuits. With the advancement of computer technology, people have put forward the performance of processor systems. Symmetric multiprocessing structure
( SMP, Symmetric Multiprocessing ), 机群系统、 大规模并行处理 (MPP, Massively Parallel Processing )、 以及一致性緩存非均匀存储访问模式 ( CC-NUMA, Cache-Coherent Non-Uniform Memory Architecture )等系统架构。 (SMP, Symmetric Multiprocessing), system architecture such as cluster system, Massively Parallel Processing (MPP), and Cache-Coherent Non-Uniform Memory Architecture (CC-NUMA).
这些架构都是由多个机箱通过背板或者线缆互联成一个大的机拒群来实 现, 背板或者线缆中的走线不仅传送程序所需要的数据信息, 而且需要传送实 时的控制信号, 这些控制信号对于实时性和时序要求严格。无论使用哪种系统 架构, 目前通常釆用热机备份保证节点与节点间的控制信号传送,通过不同的 线缆传输相同的信号, 当主用线缆故障时切换到备用线缆, 然而, 该热机备份 在切换过程中, 容易导致传输数据的丟失, 同时循环冗余校验(CRC, Cyclic Redundancy Check )协议会导致数据重传次数太多, 使得数据实时性和时序性 不强, 进而导致了通讯系统的不稳定。  These architectures are implemented by multiple chassis interconnected by a backplane or cable to form a large machine rejection group. The traces in the backplane or cable not only transmit the data information required by the program, but also need to transmit real-time control signals. These control signals are critical to real-time and timing requirements. Regardless of the system architecture used, hot machine backup is usually used to ensure the control signal transmission between nodes and nodes. The same signal is transmitted through different cables. When the main cable fails, it switches to the backup cable. However, the hot machine backup In the process of handover, it is easy to cause loss of transmission data. At the same time, the Cyclic Redundancy Check (CRC) protocol will cause too many data retransmissions, making the data real-time and time-series not strong, which leads to the communication system. Unstable.
发明内容 Summary of the invention
本发明实施例提供了基于多通道的数据传输方法、相关节点及系统, 用于 提高通讯系统的稳定性。 为解决上述技术问题, 本发明实施例提供以下技术方案:  Embodiments of the present invention provide a multi-channel based data transmission method, a related node, and a system for improving stability of a communication system. To solve the above technical problem, the embodiment of the present invention provides the following technical solutions:
一种基于多通道的数据传输方法, 包括:  A multi-channel based data transmission method, comprising:
接收节点从至少两条通道上同步接收来自发送节点的数据帧, 其中, 上述 数据帧中携带有循环冗余校验码 CRC, 且上述至少两条通道上传输的上述数 据帧为同一个数据帧; 比较至少两个接收完成的上述数据帧中的数据是否一致; The receiving node synchronously receives the data frame from the sending node from the at least two channels, where the data frame carries the cyclic redundancy check code CRC, and the data frames transmitted on the at least two channels are the same data frame. ; Comparing whether data in at least two of the above received data frames is consistent;
若存在数据一致的数据帧, 则对上述数据一致的数据帧进行 CRC校验; 若不存在数据一致的数据帧, 则对当前进行上述比较的所有数据帧进行 CRC 校验;  If there is a data frame with the same data, the data frame with the same data is CRC checked; if there is no data frame with the same data, the CRC check is performed on all the data frames that are currently compared.
若存在上述 CRC校验正确的数据帧, 则:  If there is a data frame with the correct CRC check, then:
向先入先出队列 FIFO中传送一个上述 CRC校验正确的数据帧; 向上述发送节点返回指示上述数据帧接收无误的确认信息。  A data frame having the correct CRC check is transmitted to the FIFO in the FIFO; and an acknowledgement indicating that the data frame is received without error is returned to the transmitting node.
一种接收节点, 包括:  A receiving node includes:
接收单元,用于从至少两条通道上同步接收来自发送节点的数据帧,其中, 上述数据帧中携带有循环冗余校验码 CRC, 且上述至少两条通道上传输的上 述数据帧为同一个数据帧;  a receiving unit, configured to synchronously receive data frames from the sending node from the at least two channels, where the data frame carries a cyclic redundancy check code CRC, and the data frames transmitted on the at least two channels are the same a data frame;
比较单元, 用于比较至少两个接收完成的上述数据帧中的数据是否一致; CRC校验单元, 用于当上述比较单元比较出存在数据一致的数据帧时, 对上述数据一致的数据帧进行 CRC校验; 当上述比较单元比较出不存在数据 一致的数据帧时, 对上述比较单元当前比较的所有数据帧进行 CRC校验; 传送单元, 用于当存在上述 CRC校验正确的数据帧时, 向先入先出队列 FIFO中传送一个上述 CRC校验正确的数据帧;  a comparison unit, configured to compare whether data of the at least two received data frames is consistent; and a CRC check unit, configured to: when the comparing unit compares data frames with data consistency, perform data frames that are consistent with the data CRC check; when the comparing unit compares the data frame with no data consistency, performs CRC check on all data frames currently compared by the comparing unit; and the transmitting unit is configured to: when there is a data frame with the correct CRC check Transmitting, to the first-in first-out queue FIFO, a data frame with the correct CRC check;
反馈单元, 用于当上述传送单元触发时, 向上述发送节点返回指示上述数 据帧接收无误的确认信息。  And a feedback unit, configured to: when the transmitting unit triggers, return to the sending node, the confirmation information indicating that the data frame is received without errors.
一种跨节点互联系统, 包括:  A cross-node interconnect system, including:
发送节点和接收节点;  a sending node and a receiving node;
上述发送节点用于从至少两条通道上向上述接收节点发送相同的数据帧; 上述接收节点用于从至少两条通道上同步接收来自发送节点的数据帧,其 中, 上述数据帧中携带有循环冗余校验码 CRC, 且上述至少两条通道上传输 的上述数据帧为同一个数据帧;  The sending node is configured to send the same data frame to the receiving node from the at least two channels; the receiving node is configured to synchronously receive the data frame from the sending node from the at least two channels, where the data frame carries a loop a redundancy check code CRC, and the data frames transmitted on the at least two channels are the same data frame;
比较至少两个接收完成的上述数据帧中的数据是否一致;  Comparing whether data in at least two of the above received data frames is consistent;
若存在数据一致的数据帧, 则对上述数据一致的数据帧进行 CRC校验; 若不存在数据一致的数据帧, 则对当前进行上述比较的所有数据帧进行 CRC 校验;  If there is a data frame with the same data, the data frame with the same data is CRC checked; if there is no data frame with the same data, the CRC check is performed on all the data frames that are currently compared.
若存在上述 CRC校验正确的数据帧, 则: 向先入先出队列 FIFO中传送一个上述 CRC校验正确的数据帧; 向上述发送节点返回指示上述数据帧接收无误的确认信息。 If there is a data frame with the correct CRC check, then: Transmitting a data frame with the correct CRC check to the first-in first-out queue FIFO; and returning confirmation information indicating that the data frame is received without error to the transmitting node.
由上可见, 本发明实施例中釆用多条通道传输相同数据,接收节点从多条 通道上同步接收数据,一方面避免了在单条通道的线缆出现松弛或受到局部严 重干扰时,使接收节点无法实时完整地接收到发送节点传送的数据帧而导致的 系统瘫痪或者业务中断等问题, 另一方面,也避免了热机备份切换过程中容易 导致传输数据的丟失问题; 另外, 本发明中接收节点对多条通道上接收完成的 数据帧中的数据进行比较分析处理, 将存在比较分析处理结果正确的数据帧 时, 即向发送节点返回指示该数据帧接收无误的确认信息,避免了现有技术中 只要一个数据帧的 CRC校验错误即要求发送节点重传该数据帧的弊端, 极大 地降低了重传数据帧的次数, 提高了数据的实时性和时序性。 综上, 本发明提 供的技术方案有效提高了通讯系统的稳定性。 附图说明  It can be seen that, in the embodiment of the present invention, multiple channels are used to transmit the same data, and the receiving node synchronously receives data from multiple channels, thereby avoiding receiving the cable in a single channel when the cable is slack or partially severely interfered. The node cannot receive the system defect or the service interruption caused by the data frame transmitted by the sending node in real time, and on the other hand, avoids the problem that the transmission data is easily lost during the hot-machine backup switching process; in addition, the receiving in the present invention The node compares and analyzes the data in the received data frames on the multiple channels, and when there is a data frame that is correct in the analysis processing result, the acknowledgment information indicating that the data frame is received correctly is returned to the sending node, thereby avoiding the existing information. In the technology, as long as the CRC check error of one data frame requires the sending node to retransmit the data frame, the number of retransmitted data frames is greatly reduced, and the real-time and timing of the data is improved. In summary, the technical solution provided by the present invention effectively improves the stability of the communication system. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1 为本发明提供的基于多通道的数据传输方法的一个实施例流程示意 图;  1 is a schematic flow chart of an embodiment of a multi-channel based data transmission method provided by the present invention;
图 2 为本发明提供的基于多通道的数据传输方法的另一个实施例流程示 意图;  2 is a schematic flow chart of another embodiment of a multi-channel based data transmission method provided by the present invention;
图 3为本发明提供的一种接收节点的一个实施例结构示意图;  3 is a schematic structural diagram of an embodiment of a receiving node according to the present invention;
图 4为本发明提供的一种跨节点互联系统的一个实施例结构示意图。 具体实施方式  FIG. 4 is a schematic structural diagram of an embodiment of a cross-node interconnection system according to the present invention. detailed description
本发明实施例提供了基于多通道的数据传输方法、 相关节点及系统。 为使得本发明的发明目的、 特征、 优点能够更加的明显和易懂, 下面将结 合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而非全部实施例。 基 于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 下面对本发明实施例提供的基于多通道的数据传输方法进行描述,请参阅 图 1 , 本发明提供的基于多通道的数据传输方法的一个实施例包括: Embodiments of the present invention provide a multi-channel based data transmission method, a related node, and a system. In order to make the present invention, the technical solutions in the embodiments of the present invention are clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. The embodiments are merely a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. The multi-channel based data transmission method provided by the embodiment of the present invention is described below. Referring to FIG. 1 , an embodiment of the multi-channel based data transmission method provided by the present invention includes:
101、 接收节点从至少两条通道上同步接收来自发送节点的数据帧; 在本发明实施例中,发送节点与接收节点间连接至少两条线缆, 以组建至 少两条用于传输相同数据的通道,发送节点通过组建的至少两条通道向接收节 点发送携带有循环冗余校验码(CRC, Cyclic Redundancy Check ) 的数据帧, 其中, 每条通道上传输的数据帧为同一个数据帧。 发送节点的数据帧, 上述同步码为一个自定义的特殊字符, 用于指示数据帧的 发送起始时刻。 在本发明实施例中, 当从通道上完成该数据帧的接收时, 将数 据帧存入包数据寄存器中, 并可置位与该通道对应的 flag标记符, 其中, flag 标己符与通道——对应。  The receiving node synchronously receives the data frame from the sending node from the at least two channels. In the embodiment of the present invention, at least two cables are connected between the sending node and the receiving node to form at least two pieces for transmitting the same data. The channel sends a data frame carrying a Cyclic Redundancy Check (CRC) to the receiving node through at least two channels formed by the sending node, where the data frames transmitted on each channel are the same data frame. The data frame of the sending node, where the synchronization code is a custom special character, used to indicate the sending start time of the data frame. In the embodiment of the present invention, when the receiving of the data frame is completed from the channel, the data frame is stored in the packet data register, and the flag tag corresponding to the channel may be set, wherein the flag flag and the channel --correspond.
102、 接收节点比较至少两个接收完成的数据帧中的数据是否一致; 在本发明实施例中, 接收节点可在从全部通道上完成该数据帧的接收后, 对当前接收完成的数据帧进行比较,如假设步骤 101中接收节点从 4条通道中 同步接收同一数据帧, 则接收节点可在 4 个数据帧都接收完成后, 再对该 4 个数据帧进行比较, 或者,接收节点也可以在从多数通道上完成该数据帧的接 收 (如多数 flag标记符出现置位)后, 才提取接收完成的数据帧进行比较, 例 如可根据当前的通道数预先设置一个大于 2的门限值,当接收完成的相同数据 帧的个数超过该门限值时,对当前接收完成的数据帧进行比较。在实际应用中, 由于线缆可能出现松弛或被干扰等问题而导致该线缆通道上的数据帧无法传 输到接收节点, 因此, 在本发明实施例中, 可预先设置一定时长的等待时间, 当计时超过等待时间后,对当前接收完成的数据帧进行比较,计时可从接收节 点开始进行数据帧的接收时触发,或者也可从接收节点完成一个数据帧的接收 后触发, 或者也可以从其它时刻触发计时, 当然, 根据计时触发点的不同, 所 预置的时长也将不同。  The receiving node compares whether the data in the at least two received data frames are consistent. In the embodiment of the present invention, the receiving node may perform the data frame that is currently received after completing the receiving of the data frame from all channels. For comparison, if the receiving node synchronously receives the same data frame from the four channels in step 101, the receiving node may compare the four data frames after the four data frames are received, or the receiving node may also After the reception of the data frame is completed from the majority of channels (for example, when most flag tags are set), the received data frames are extracted for comparison, for example, a threshold value greater than 2 may be preset according to the current channel number. When the number of identical data frames that have been received exceeds the threshold, the currently received data frames are compared. In a practical application, the data frame on the cable channel cannot be transmitted to the receiving node due to the problem that the cable may be slack or interfered with. Therefore, in the embodiment of the present invention, a waiting time of a certain duration may be preset. After the timing exceeds the waiting time, the currently received data frame is compared, and the timing may be triggered when the receiving node starts receiving the data frame, or may also be triggered after the receiving node completes receiving a data frame, or may also Timing is triggered at other times. Of course, depending on the timing trigger point, the preset duration will also be different.
当存在数据一致的数据帧时, 执行步骤 103;  When there is a data frame with consistent data, step 103 is performed;
当不存在数据一致的数据帧时, 执行步骤 104。  When there is no data frame with consistent data, step 104 is performed.
103、 对数据一致的数据帧进行 CRC校验;  103. Perform a CRC check on the data frame with consistent data;
接收节点对数据一致的数据帧进行 CRC校验, 进一步的, 接收节点可对 数据不一致的数据帧作丟弃处理。 The receiving node performs CRC check on the data frame with consistent data. Further, the receiving node can Data frames with inconsistent data are discarded.
当存在 CRC校验正确的数据帧时, 执行步骤 105。  When there is a data frame with the correct CRC check, step 105 is performed.
在一种应用场景下, 当上述数据一致的数据帧的 CRC校验都不正确时, 可将接收到的该数据帧全部作丟弃处理,在另一种应用场景中,为了避免 CRC 校验过程中产生错误计算, 可预先设置一定数值, 当数据一致的数据帧的个数 超过该数值时,将其中一个数据帧传送给先入先出队列(FIFO, First Input First Output )  In an application scenario, when the CRC check of the data frame with the same data is not correct, all the received data frames may be discarded. In another application scenario, in order to avoid CRC check. In the process, an error calculation is generated, and a certain value may be preset. When the number of data frames in which the data is consistent exceeds the value, one of the data frames is transmitted to the first input first output (FIFO).
104、 对当前进行比较的所有数据帧进行 CRC校验;  104. Perform CRC check on all data frames currently being compared;
当步骤 102中进行比较的所有数据帧的数据都不一致时,将当前进行比较 的所有数据帧进行 CRC校验。  When the data of all the data frames to be compared in step 102 are inconsistent, all the data frames currently being compared are subjected to CRC check.
当存在 CRC校验正确的数据帧时, 执行步骤 105。  When there is a data frame with the correct CRC check, step 105 is performed.
当不存在 CRC校验正确的数据帧时,即进行比较的所有数据帧的 CRC校 验都不正确时, 可对进行比较的所有数据帧作丟弃处理。  When there is no data frame with the correct CRC check, that is, if the CRC check of all the data frames to be compared is not correct, all the data frames to be compared can be discarded.
105、 向 FIFO中传送一个 CRC校验正确的数据帧;  105. Send a data frame with a correct CRC check to the FIFO;
接收节点将 CRC校验正确的其中一个数据帧传送给 FIF0。  The receiving node transmits one of the data frames with the correct CRC check to FIF0.
106、 向发送节点返回指示该数据帧接收无误的确认信息;  106. Return, to the sending node, confirmation information indicating that the data frame is received without errors;
接收节点向发送节点返回指示该数据帧接收无误的确认信息 (如 ACK信 息)。  The receiving node returns an acknowledgement (e.g., ACK information) indicating that the data frame is received without error to the transmitting node.
进一步,接收节点还可在步骤 105后计算当前 FIFO的剩余空间, FIFO的 剩余空间的计算可通过如下公式实现:  Further, the receiving node may further calculate the remaining space of the current FIFO after step 105, and the calculation of the remaining space of the FIFO may be implemented by the following formula:
FIFO的剩余空间 =FIF0的寄存器个数 -FIFO接收到的数据次数。  Remaining space of FIFO = number of registers of FIF0 - number of data received by FIFO.
并且,在计算出 FIFO的剩余空间后,在上述确认信息中携带存储标识符, 该存储标识符用于指示该 FIFO的剩余空间, 如可定义当存储标识符的值为 1 时表示该 FIFO有剩余空间, 当存储标识符的值为 0时表示该 FIFO已满。 以 便发送节点在接收到携带该存储标识符的确认信息时, 可获知接收节点当前 FIFO的存储状况,在接收节点当前 FIFO已满时,停止向接收节点发送数据帧。  And, after calculating the remaining space of the FIFO, carrying the storage identifier in the confirmation information, where the storage identifier is used to indicate the remaining space of the FIFO, such as being definable, when the value of the storage identifier is 1, indicating that the FIFO has The remaining space, when the value of the storage identifier is 0, indicates that the FIFO is full. Therefore, when the sending node receives the acknowledgment information carrying the storage identifier, it can learn the storage status of the current FIFO of the receiving node, and stop transmitting the data frame to the receiving node when the current FIFO of the receiving node is full.
本发明实施例中传输的数据帧可以为控制信号(如复位信号、 系统错误信 号等), 或者, 该数据帧中也可以是承载业务数据的数据帧, 此处不作限定。  The data frame transmitted in the embodiment of the present invention may be a control signal (such as a reset signal, a system error signal, etc.), or the data frame may be a data frame carrying the service data, which is not limited herein.
由上可见, 本发明实施例中釆用多条通道传输相同数据,接收节点从多条 通道上同步接收数据,一方面避免了在单条通道的线缆出现松弛或受到局部严 重干扰时,使接收节点无法实时完整地接收到发送节点传送的数据帧而导致的 系统瘫痪或者业务中断等问题, 另一方面,也避免了热机备份切换过程中容易 导致传输数据的丟失问题; 另外, 本发明中接收节点对多条通道上接收完成的 数据帧中的数据进行比较分析处理, 将存在比较分析处理结果正确的数据帧 时, 即向发送节点返回指示该数据帧接收无误的确认信息,避免了现有技术中 只要一个数据帧的 CRC校验错误即要求发送节点重传该数据帧的弊端, 极大 地降低了重传数据帧的次数, 提高了数据的实时性和时序性。 综上, 本发明提 供的技术方案有效提高了通讯系统的稳定性。 下面对本发明实施例的一种基于多通道的数据传输方法进行描述,请参阅 图 2, 本发明中一种基于多通道的数据传输方法的另一个实施例包括: It can be seen that, in the embodiment of the present invention, multiple channels are used to transmit the same data, and the receiving node synchronously receives data from multiple channels, thereby avoiding looseness or partial strictness of the cable in a single channel. In the case of heavy interference, the receiving node cannot receive the system or the service interruption caused by the data frame transmitted by the transmitting node in real time, and on the other hand, avoids the problem that the transmission data is easily lost during the hot-machine backup switching process; In addition, in the present invention, the receiving node performs comparative analysis processing on the data in the received data frames on the plurality of channels, and when there is a data frame in which the comparison analysis processing result is correct, that is, returning to the transmitting node, indicating that the data frame is received without errors. The information avoids the disadvantages of requiring the transmitting node to retransmit the data frame as long as the CRC check error of one data frame in the prior art, greatly reducing the number of times of retransmitting the data frame, and improving the real-time and timing of the data. In summary, the technical solution provided by the present invention effectively improves the stability of the communication system. A multi-channel based data transmission method according to an embodiment of the present invention is described below. Referring to FIG. 2, another embodiment of a multi-channel based data transmission method in the present invention includes:
201、 接收节点从至少两条通道上同步接收来自发送节点的数据帧; 在本发明实施例中,发送节点与接收节点间连接至少两条线缆, 以组建至 少两条用于传输相同数据的通道,发送节点通过组建的至少两条通道向接收节 点发送携带有 CRC的数据帧, 其中, 每条通道上传输的数据帧为同一个数据 帧。 送节点的数据帧, 上述同步码为一个自定义的特殊字符, 用于指示数据帧的发 送起始时刻。 在本发明实施例中, 当从通道上完成该数据帧的接收时, 将数据 帧存入包数据寄存器中, 并可置位与该通道对应的 flag标记符, 其中, flag标 己符与通道——对应。  The receiving node synchronously receives the data frame from the sending node from the at least two channels. In the embodiment of the present invention, at least two cables are connected between the sending node and the receiving node to form at least two pieces for transmitting the same data. The channel, the sending node sends the data frame carrying the CRC to the receiving node by using at least two channels formed, wherein the data frames transmitted on each channel are the same data frame. The data frame of the sending node, the above synchronization code is a custom special character, which is used to indicate the sending start time of the data frame. In the embodiment of the present invention, when the receiving of the data frame is completed from the channel, the data frame is stored in the packet data register, and the flag tag corresponding to the channel may be set, where the flag flag and the channel are --correspond.
202、 判断接收完成的数据帧的个数是否超过预置的第一门限值; 在本发明实施例中,预先设置一个大于 2的第一门限值, 当接收完成的该 数据帧的个数超过该第一门限值时, 执行步骤 203 , 当不超过预置的第一门限 值时, 执行步骤 206。  202. Determine whether the number of received data frames exceeds a preset first threshold. In the embodiment of the present invention, a first threshold value greater than 2 is preset, and when the received data frame is received, When the number exceeds the first threshold, step 203 is performed. When the preset first threshold is not exceeded, step 206 is performed.
203、 接收节点比较当前接收完成的数据帧中的数据是否一致;  203. The receiving node compares whether the data in the currently received data frame is consistent.
若存在数据一致的数据帧, 则执行步骤 204;  If there is a data frame with consistent data, step 204 is performed;
若当前接收完成的数据帧中的数据都不一致, 则执行步骤 205。  If the data in the currently received data frame is inconsistent, step 205 is performed.
204、 对上述数据一致的数据帧进行 CRC校验;  204. Perform a CRC check on the data frame that is consistent with the foregoing data.
若存在 CRC校验正确的数据帧时, 执行步骤 208; 若上述数据一致的数据帧的 CRC校验都不正确, 则执行步骤 207。 If there is a data frame with the correct CRC check, step 208 is performed; If the CRC check of the data frame with the same data is not correct, step 207 is performed.
205、 对当前比较的所有数据帧进行 CRC校验;  205. Perform CRC check on all data frames that are currently compared;
若存在 CRC校验正确的数据帧时, 执行步骤 208;  If there is a data frame with the correct CRC check, step 208 is performed;
若上述当前比较的所有数据帧的 CRC校验都不正确, 则执行步骤 212。  If the CRC check of all the data frames currently compared is not correct, step 212 is performed.
206、 判断等待时间是否超过预置时长, 若是, 则执行步骤 203 , 若否, 则执行步骤 202;  206, determining whether the waiting time exceeds the preset duration, if yes, executing step 203, if not, executing step 202;
其中,接收节点可从开始进行数据帧的接收时触发计时, 或者也可从完成 一个数据帧的接收后触发计时, 或者也可以从其它时刻触发计时, 当然, 根据 计时触发点的不同, 所预置的时长也将不同。  The receiving node may trigger timing when starting to receive the data frame, or may trigger timing after receiving a data frame, or may trigger timing from other moments. Of course, according to different timing trigger points, The duration of the set will also be different.
207、 判断上述数据一致的数据帧的个数是否超过预置的第二门限值; 当上述数据一致的数据帧的个数超过预置的第二门限值时, 执行步骤 209, 当上述数据一致的数据帧的个数不超过预置的第二门限值时, 则执行步 骤 212。  207. Determine whether the number of data frames that are consistent with the data exceeds a preset second threshold. When the number of data frames that are consistent with the data exceeds a preset second threshold, perform step 209. When the number of data frames consistent with the data does not exceed the preset second threshold, step 212 is performed.
208、 向 FIFO中传送一个 CRC校验正确的数据帧;  208. Send a data frame with a correct CRC check to the FIFO.
接收节点将 CRC校验正确的其中一个数据帧传送给 FIFO。  The receiving node transmits one of the data frames with the correct CRC check to the FIFO.
209、 向 FIFO传送一个数据一致的数据帧;  209. Send a data frame with consistent data to the FIFO.
接收节点将数据一致的其中一个数据帧传送给 FIFO。  The receiving node transmits one of the data frames with the same data to the FIFO.
210、 计算当前 FIFO的剩余空间;  210. Calculate a remaining space of the current FIFO;
其中, FIFO的剩余空间的计算可通过如下公式实现:  Among them, the calculation of the remaining space of the FIFO can be realized by the following formula:
FIFO的剩余空间 FIFO的寄存器个数 -FIFO接收到的数据次数。  The remaining space of the FIFO The number of registers in the FIFO - The number of times the data is received by the FIFO.
211、 向发送节点返回指示该数据帧接收无误的确认信息;  211. Return, to the sending node, confirmation information indicating that the data frame is received without errors;
接收节点向发送节点返回指示该数据帧接收无误的确认信息 (如 ACK信 息)。 其中, 上述确认信息中携带存储标识符, 该存储标识符用于指示该 FIFO 的剩余空间, 如可定义当存储标识符的值为 1时表示该 FIFO有剩余空间, 当 存储标识符的值为 0时表示该 FIFO已满。 以便发送节点在接收到携带该存储 标识符的确认信息时, 可获知接收节点当前 FIFO的存储状况, 在接收节点当 前 FIFO已满时, 停止向接收节点发送数据帧。  The receiving node returns an acknowledgement (e.g., ACK information) indicating that the data frame is received without error to the transmitting node. The acknowledgment information carries a storage identifier, where the storage identifier is used to indicate the remaining space of the FIFO. For example, it can be defined that when the value of the storage identifier is 1, it indicates that the FIFO has a remaining space, and when the value of the storage identifier is 0 means the FIFO is full. Therefore, when the sending node receives the acknowledgment information carrying the storage identifier, the sending node can learn the storage status of the current FIFO of the receiving node, and stop sending the data frame to the receiving node when the receiving node is full FIFO.
212、 向发送节点返回重发指示信息;  212. Return a retransmission indication information to the sending node.
接收节点向发送节点返回重发指示信息 (如 NAK信息), 指示该发送节 点重发该数据帧。 由上可见, 本发明实施例中釆用多条通道传输相同数据,接收节点从多条 通道上同步接收数据,一方面避免了在单条通道的线缆出现松弛或受到局部严 重干扰时,使接收节点无法实时完整地接收到发送节点传送的数据帧而导致的 系统瘫痪或者业务中断等问题, 另一方面,也避免了热机备份切换过程中容易 导致传输数据的丟失问题; 另外, 本发明中接收节点对多条通道上接收完成的 数据帧中的数据进行比较分析处理, 将存在比较分析处理结果正确的数据帧 时, 即向发送节点返回指示该数据帧接收无误的确认信息,避免了现有技术中 只要一个数据帧的 CRC校验错误即要求发送节点重传该数据帧的弊端, 极大 地降低了重传数据帧的次数, 提高了数据的实时性和时序性。 综上, 本发明提 供的技术方案有效提高了通讯系统的稳定性。 下面对本发明实施例中的一种接收节点进行描述, 请参阅图 3 , 本发明实 施例中的接收节点 300包括: The receiving node returns retransmission indication information (such as NAK information) to the transmitting node, instructing the transmitting node to resend the data frame. It can be seen that, in the embodiment of the present invention, multiple channels are used to transmit the same data, and the receiving node synchronously receives data from multiple channels, thereby avoiding receiving the cable in a single channel when the cable is slack or partially severely interfered. The node cannot receive the system defect or the service interruption caused by the data frame transmitted by the sending node in real time, and on the other hand, avoids the problem that the transmission data is easily lost during the hot-machine backup switching process; in addition, the receiving in the present invention The node compares and analyzes the data in the received data frames on the multiple channels, and when there is a data frame that is correct in the analysis processing result, the acknowledgment information indicating that the data frame is received correctly is returned to the sending node, thereby avoiding the existing information. In the technology, as long as the CRC check error of one data frame requires the sending node to retransmit the data frame, the number of retransmitted data frames is greatly reduced, and the real-time and timing of the data is improved. In summary, the technical solution provided by the present invention effectively improves the stability of the communication system. A receiving node in the embodiment of the present invention is described below. Referring to FIG. 3, the receiving node 300 in the embodiment of the present invention includes:
接收单元 301 , 用于从至少两条通道上同步接收来自发送节点的数据帧, 其中, 该数据帧中携带有 CRC, 且上述至少两条通道上传输的数据帧为同一 个数据帧; 来自发送节点的数据帧, 上述同步码为一个自定义的特殊字符, 用于指示数据 帧的发送起始时刻。 在本发明实施例中, 当从通道上完成该数据帧的接收时, 将数据帧存入包数据寄存器中, 并可置位与该通道对应的 flag标记符, 其中, flag标己符与通道——对应。  The receiving unit 301 is configured to synchronously receive the data frame from the sending node from the at least two channels, where the data frame carries the CRC, and the data frames transmitted on the at least two channels are the same data frame; The data frame of the node, the above synchronization code is a custom special character, which is used to indicate the sending start time of the data frame. In the embodiment of the present invention, when the receiving of the data frame is completed from the channel, the data frame is stored in the packet data register, and the flag tag corresponding to the channel may be set, where the flag flag and the channel are --correspond.
比较单元 302 , 用于比较至少两个接收单元 301接收完成的数据帧中的数 据是否一致;  The comparing unit 302 is configured to compare whether the data in the completed data frame received by the at least two receiving units 301 is consistent;
在一种应用场景下,比较单元 302可在接收单元 301从全部通道上完成该 数据帧的接收后, 对当前接收完成的数据帧进行比较;  In an application scenario, the comparing unit 302 may compare the currently received data frames after the receiving unit 301 completes receiving the data frame from all channels;
在另一种应用场景下, 接收节点还包括: 第一判断单元, 用于判断接收完 成的数据帧的个数是否超过预置的第一门限值, 其中, 该第一门限值大于 2; 比较单元 302 可在上述第一判断单元判断出接收完成的数据帧的个数超过预 置的第一门限值时触发, 或者, 比较单元 302也可在上述第一判断单元判断出 接收完成的数据帧的个数不超过预置的第一门限值时, 等待预置时长后触发, 此处不作限定。比较单元 302具体用于比较当前所有接收完成的数据帧中的数 据是否一致。 In another application scenario, the receiving node further includes: a first determining unit, configured to determine whether the number of received data frames exceeds a preset first threshold, where the first threshold is greater than 2 The comparing unit 302 may trigger when the first determining unit determines that the number of received data frames exceeds a preset first threshold, or the comparing unit 302 may determine that the receiving is completed in the first determining unit. When the number of data frames does not exceed the preset first threshold, it is triggered after waiting for the preset time. This is not a limitation. The comparing unit 302 is specifically configured to compare whether data in all currently received data frames is consistent.
CRC校验单元 303 ,用于当比较单元 302比较出存在数据一致的数据帧时, 对数据一致的数据帧进行 CRC校验; 当比较单元 302比较出不存在数据一致 的数据帧时, 对比较单元 302当前进行比较的所有数据帧进行 CRC校验。  The CRC check unit 303 is configured to perform CRC check on the data frame with the same data when the comparison unit 302 compares the data frames with the data consistency; when the comparison unit 302 compares the data frames with the same data, the comparison is performed. All data frames currently being compared by unit 302 are CRC checked.
传送单元 304, 用于当存在 CRC校验正确的数据帧时, 向 FIFO中传送一 个 CRC校验正确的数据帧;  The transmitting unit 304 is configured to: when there is a data frame with a correct CRC check, transmit a data frame with a correct CRC check to the FIFO;
反馈单元 305 , 用于当传送单元 304触发时, 向该发送节点返回指示该数 据帧接收无误的确认信息 (如 ACK信息)。  The feedback unit 305 is configured to, when the transmitting unit 304 triggers, return an acknowledgement information (such as ACK information) indicating that the data frame is received without error.
在一种应用场景下, 反馈单元 305还用于当 CRC校验单元 303对数据帧 的 CRC校验结果都不正确时, 向该发送节点返回重发指示信息, 其中, 重发 指示信息用于指示该发送节点重发该数据帧。  In an application scenario, the feedback unit 305 is further configured to: when the CRC check unit 303 is incorrect in the CRC check result of the data frame, return the retransmission indication information to the sending node, where the retransmission indication information is used. Instructing the transmitting node to resend the data frame.
在另一种应用场景下,接收节点 300还包括: 第二判断单元,用于当 CRC 校验单元 303对数据一致的数据帧的 CRC校验都不正确时, 判断数据一致的 数据帧的个数是否超过预置的第二门限值;传送单元 304还用于在上述第二判 断单元的判断结果为是时, 向 FIFO传送数据一致的其中一个数据帧; 反馈单 元 305还用于当上述第二判断单元的判断结果为否时, 或者, 当上述所有数据 帧的 CRC校验都不正确时, 向该发送节点返回上述重发指示信息。  In another application scenario, the receiving node 300 further includes: a second determining unit, configured to determine, when the CRC check unit 303 does not correctly correct the CRC of the data frame that is consistent with the data, determine a data frame that is consistent with the data Whether the number exceeds the preset second threshold value; the transmitting unit 304 is further configured to: when the determination result of the second determining unit is YES, transmit one of the data frames that is consistent with the data to the FIFO; the feedback unit 305 is further configured to use the foregoing When the determination result of the second judging unit is no, or when the CRC check of all the data frames is not correct, the retransmission indication information is returned to the transmitting node.
在一种应用场景中,接收节点 300还包括:计算单元,用于计算当前 FIFO 的剩余空间; 反馈单元 305反馈的确认信息中携带有存储标识符, 该存储标识 符用于指示接收节点 300当前 FIFO的剩余空间, 以便发送节点在接收到携带 该存储标识符的确认信息时, 可获知接收节点当前 FIFO的存储状况, 在接收 节点当前 FIFO已满时, 停止向接收节点发送数据帧。  In an application scenario, the receiving node 300 further includes: a calculating unit, configured to calculate a remaining space of the current FIFO; the acknowledgment information fed back by the feedback unit 305 carries a storage identifier, where the storage identifier is used to indicate that the receiving node 300 is currently The remaining space of the FIFO, so that the transmitting node can know the storage status of the current FIFO of the receiving node when receiving the acknowledgment information carrying the storage identifier, and stop transmitting the data frame to the receiving node when the current FIFO of the receiving node is full.
上述反馈单元反馈的确认信息中携带有存储标识符, 其中, 上述存储标识 符用于指示上述 FIFO的剩余空间。  The confirmation information fed back by the feedback unit carries a storage identifier, wherein the storage identifier is used to indicate the remaining space of the FIFO.
需要说明的是,本发明实施例的接收节点 300可以如上述方法实施例中的 接收节点, 可以用于实现上述方法实施例中的全部技术方案, 其各个功能模块 的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上 述实施例中的相关描述, 此处不再赘述。  It should be noted that the receiving node 300 in the embodiment of the present invention may be used as the receiving node in the foregoing method embodiment, and may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the respective functional modules may be according to the foregoing method embodiments. For a specific implementation, refer to the related description in the foregoing embodiments, and details are not described herein again.
由上可见, 本发明实施例中釆用多条通道传输相同数据,接收节点从多条 通道上同步接收数据,一方面避免了在单条通道的线缆出现松弛或受到局部严 重干扰时,使接收节点无法实时完整地接收到发送节点传送的数据帧而导致的 系统瘫痪或者业务中断等问题, 另一方面,也避免了热机备份切换过程中容易 导致传输数据的丟失问题; 另外, 本发明中接收节点对多条通道上接收完成的 数据帧中的数据进行比较分析处理, 将存在比较分析处理结果正确的数据帧 时, 即向发送节点返回指示该数据帧接收无误的确认信息,避免了现有技术中 只要一个数据帧的 CRC校验错误即要求发送节点重传该数据帧的弊端, 极大 地降低了重传数据帧的次数, 提高了数据的实时性和时序性。 综上, 本发明提 供的技术方案有效提高了通讯系统的稳定性。 本发明实施例还提供一种跨节点互联系统,如图 4所示,跨节点互联系统It can be seen from the above that in the embodiment of the present invention, multiple channels are used to transmit the same data, and the receiving node is from multiple pieces. Synchronously receiving data on the channel avoids problems such as system failure or service interruption caused by the receiving node not receiving the data frame transmitted by the transmitting node in real time when the cable of the single channel is slack or partially severely interfered. On the other hand, the problem of loss of transmission data during the hot-machine backup switching process is also avoided. In addition, in the present invention, the receiving node compares and analyzes the data in the received data frames on multiple channels, and there is a comparative analysis. When the data frame with the correct result is processed, the acknowledgment information indicating that the data frame is received without error is returned to the sending node, which avoids the drawback of requiring the transmitting node to retransmit the data frame as long as the CRC check error of one data frame is wrong in the prior art. The number of retransmitted data frames is greatly reduced, and the real-time and timing of the data is improved. In summary, the technical solution provided by the present invention effectively improves the stability of the communication system. The embodiment of the invention further provides a cross-node interconnection system, as shown in FIG. 4, a cross-node interconnection system.
400包括发送节点 401和接收节点 402 , 发送节点 401用于从至少两条通道上 向接收节点发送相同的数据帧, 进一步的, 若发送节点 401获知接收节点 402 当前 FIFO已满时, 停止向接收节点 402发送数据帧; 其中, 接收节点 402可 以如上述装置实施例中的接收节点 300 , 此处不再赘述。 400 includes a sending node 401 and a receiving node 402. The sending node 401 is configured to send the same data frame from the at least two channels to the receiving node. Further, if the sending node 401 learns that the receiving node 402 is full, the current receiving FIFO stops receiving. The node 402 sends a data frame. The receiving node 402 can be the receiving node 300 in the foregoing device embodiment, and details are not described herein again.
由上可见,本发明实施例中的跨节点互联系统中釆用多条通道传输相同数 据,接收节点从多条通道上同步接收数据, 一方面避免了在单条通道的线缆出 现松弛或受到局部严重干扰时,使接收节点无法实时完整地接收到发送节点传 送的数据帧而导致的系统瘫痪或者业务中断等问题, 另一方面,也避免了热机 备份切换过程中容易导致传输数据的丟失问题; 另外, 本发明中接收节点对多 条通道上接收完成的数据帧中的数据进行比较分析处理,将存在比较分析处理 结果正确的数据帧时, 即向发送节点返回指示该数据帧接收无误的确认信息, 避免了现有技术中只要一个数据帧的 CRC校验错误即要求发送节点重传该数 据帧的弊端,极大地降低了重传数据帧的次数,提高了数据的实时性和时序性。 综上, 本发明提供的技术方案有效提高了通讯系统的稳定性。  It can be seen that in the cross-node interconnection system in the embodiment of the present invention, multiple channels are used to transmit the same data, and the receiving node synchronously receives data from multiple channels, thereby avoiding looseness or partiality of cables in a single channel. In the case of severe interference, the receiving node cannot receive the data frame transmitted by the transmitting node in real time and completely suffers from problems such as system failure or service interruption. On the other hand, it also avoids the problem that the transmission data is easily lost during the hot-machine backup switching process; In addition, in the present invention, the receiving node performs comparative analysis processing on the data in the received data frames on the plurality of channels, and when there is a data frame in which the comparison analysis processing result is correct, the returning to the transmitting node indicates that the data frame is received without errors. The information avoids the drawbacks of requiring the transmitting node to retransmit the data frame as long as the CRC check error of one data frame in the prior art, greatly reducing the number of times of retransmitting the data frame, and improving the real-time and timing of the data. In summary, the technical solution provided by the present invention effectively improves the stability of the communication system.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述 的装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程,在此 不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and the unit described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置和方法, 可 以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例 如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划 分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特 征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合 或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是 电性, 机械或其它的形式。 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。 In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative, examples. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be ignored, or not. carried out. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form. The components displayed by the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在 ,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以釆用硬件的形式实现, 也可以釆用软件功能单元的 形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器, 或者网络设备等 )执行本发明各个实施例所述方法的全部或部分步骤。 而前述 的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ), 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可以 存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上对本发明所提供的基于多通道的数据传输方法、相关节点及系统进行 了详细介绍, 对于本领域的一般技术人员, 依据本发明实施例的思想, 在具体 实施方式及应用范围上均会有改变之处, 综上, 本说明书内容不应理解为对本 发明的限制。  The multi-channel data transmission method, the related node and the system provided by the present invention are described in detail above. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be a specific implementation manner and application range. The details of the description are not to be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种基于多通道的数据传输方法, 其特征在于, 包括:  A multi-channel based data transmission method, comprising:
接收节点从至少两条通道上同步接收来自发送节点的数据帧, 其中, 所述 数据帧中携带有循环冗余校验码 CRC, 且所述至少两条通道上传输的所述数 据帧为同一个数据帧;  The receiving node synchronously receives the data frame from the sending node from the at least two channels, where the data frame carries a cyclic redundancy check code CRC, and the data frames transmitted on the at least two channels are the same a data frame;
比较至少两个接收完成的所述数据帧中的数据是否一致;  Comparing whether data in at least two of the received data frames is consistent;
若存在数据一致的数据帧, 则对所述数据一致的数据帧进行 CRC校验; 若不存在数据一致的数据帧, 则对当前进行所述比较的所有数据帧进行 CRC 校验;  If there is a data frame with the same data, the data frame that is consistent with the data is subjected to a CRC check; if there is no data frame with the same data, the CRC check is performed on all the data frames currently performing the comparison;
若存在所述 CRC校验正确的数据帧, 则:  If there is a data frame with the correct CRC check, then:
向先入先出队列 FIFO中传送一个所述 CRC校验正确的数据帧; 向所述发送节点返回指示所述数据帧接收无误的确认信息。  Transmitting one of the CRC-corrected data frames to the first-in first-out queue FIFO; and returning to the transmitting node an acknowledgement indicating that the data frame is received without errors.
2、 根据权利要求 1所述的方法, 其特征在于,  2. The method of claim 1 wherein
所述向先入先出队列 FIFO中传送一个所述 CRC校验正确的数据帧之后 包括: 计算当前所述 FIFO的剩余空间;  After the transmitting the data frame with the correct CRC check to the first-in-first-out queue FIFO, the method includes: calculating a remaining space of the current FIFO;
所述确认信息中携带有存储标识符, 其中, 所述存储标识符用于指示所述 FIFO的剩余空间,以便所述发送节点在获知所述接收节点的 FIFO的剩余空间 为零时停止向所述接收节点发送数据帧。  The acknowledgment information carries a storage identifier, where the storage identifier is used to indicate a remaining space of the FIFO, so that the sending node stops at the location when the remaining space of the FIFO of the receiving node is zero. The receiving node sends a data frame.
3、 根据权利要求 1或 2所述的方法, 其特征在于,  3. A method according to claim 1 or 2, characterized in that
所述比较至少两个接收完成的所述数据帧中的数据是否一致之前包括: 判断接收完成的所述数据帧的个数是否超过预置的第一门限值, 其中, 所 述第一门限值大于 2;  Before the comparing, whether the data in the data frame that is received by the two ends is consistent, the method includes: determining whether the number of the received data frames exceeds a preset first threshold, where the first door The limit is greater than 2;
若超过,则执行所述比较至少两个接收完成的所述数据帧中的数据是否一 致的步骤,  If yes, performing the step of comparing whether the data in the at least two received data frames is consistent,
若不超过,则等待预置时长后执行所述比较至少两个接收完成的所述数据 帧中的数据是否一致的步骤;  If not, the step of comparing whether the data in the data frame in which the at least two receptions are completed is consistent after waiting for the preset duration;
所述比较至少两个接收完成的所述数据帧中的数据是否一致具体为: 比较当前接收完成的所有数据帧中的数据是否一致。  The comparing whether the data in the at least two received data frames is consistent is specifically: comparing whether data in all data frames that are currently received is consistent.
4、 根据权利要求 3所述的方法, 其特征在于,  4. The method of claim 3, wherein
所述比较至少两个接收完成的所述数据帧中的数据是否一致之后包括: 若所述数据一致的数据帧或者所述所有数据帧的 CRC校验都不正确, 则 向所述发送节点返回重发指示信息,所述重发指示信息用于指示所述发送节点 重发所述数据帧。 After comparing the data in the at least two received data frames that are consistent, the method includes: If the data frame that is consistent with the data or the CRC check of the data frame is not correct, returning retransmission indication information to the sending node, where the retransmission indication information is used to indicate that the sending node retransmits the The data frame.
5、 根据权利要求 3所述的方法, 其特征在于,  5. The method of claim 3, wherein
所述对所述数据一致的数据帧进行 CRC校验之后包括:  After performing the CRC check on the data frame that is consistent with the data, the method includes:
若所述数据一致的数据帧的 CRC校验都不正确, 则, 判断所述数据一致 的数据帧的个数是否超过预置的第二门限值, 若是, 则向所述 FIFO传送一个 所述数据一致的数据帧, 若否, 则向所述发送节点返回重发指示信息, 所述重 发指示信息用于指示所述发送节点重发所述数据帧; 若所述所有数据帧的 CRC校验都不正确, 则向所述发送节点返回所述重 发指示信息。  If the CRC check of the data frame in which the data is consistent is not correct, determine whether the number of data frames that are consistent with the data exceeds a preset second threshold, and if yes, transmit a location to the FIFO. And the data frame that is consistent with the data, if not, returning retransmission indication information to the sending node, where the retransmission indication information is used to instruct the sending node to resend the data frame; if the CRC of all the data frames If the verification is not correct, the retransmission indication information is returned to the sending node.
6、 一种接收节点, 其特征在于, 包括:  6. A receiving node, comprising:
接收单元,用于从至少两条通道上同步接收来自发送节点的数据帧,其中, 所述数据帧中携带有循环冗余校验码 CRC, 且所述至少两条通道上传输的所 述数据帧为同一个数据帧;  a receiving unit, configured to synchronously receive data frames from the sending node from the at least two channels, where the data frame carries a cyclic redundancy check code CRC, and the data transmitted on the at least two channels The frame is the same data frame;
比较单元, 用于比较至少两个接收完成的所述数据帧中的数据是否一致; CRC校验单元, 用于当所述比较单元比较出存在数据一致的数据帧时, 对所述数据一致的数据帧进行 CRC校验; 当所述比较单元比较出不存在数据 一致的数据帧时, 对所述比较单元当前比较的所有数据帧进行 CRC校验; 传送单元, 用于当存在所述 CRC校验正确的数据帧时, 向先入先出队列 FIFO中传送一个所述 CRC校验正确的数据帧;  a comparison unit, configured to compare whether data of the at least two received data frames is consistent; and a CRC check unit, configured to: when the comparing unit compares data frames with data consistency, the data is consistent The data frame is subjected to CRC check; when the comparing unit compares the data frame in which the data is consistent, the CRC check is performed on all the data frames currently compared by the comparing unit; and the transmitting unit is configured to: when the CRC is present When the correct data frame is verified, a data frame with the correct CRC check is transmitted to the first in first out queue FIFO;
反馈单元, 用于当所述传送单元触发时, 向所述发送节点返回指示所述数 据帧接收无误的确认信息。  And a feedback unit, configured to: when the transmitting unit triggers, return, to the sending node, confirmation information indicating that the data frame is received without errors.
7、 根据权利要求 6所述的接收节点, 其特征在于,  7. The receiving node according to claim 6, wherein:
所述接收节点还包括: 计算单元, 用于计算当前所述 FIFO的剩余空间; 所述反馈单元反馈的确认信息中携带有存储标识符, 其中, 所述存储标识 符用于指示所述 FIFO的剩余空间。  The receiving node further includes: a calculating unit, configured to calculate a remaining space of the current FIFO; the acknowledgement information fed back by the feedback unit carries a storage identifier, where the storage identifier is used to indicate the FIFO remaining space.
8、 根据权利要求 6或 7所述的接收节点, 其特征在于,  8. The receiving node according to claim 6 or 7, wherein
所述接收节点还包括: 第一判断单元 ,用于判断接收完成的所述数据帧的个数是否超过预置的第 一门限值, 其中, 所述第一门限值大于 2; The receiving node further includes: a first determining unit, configured to determine whether the number of the received data frames exceeds a preset first threshold, where the first threshold is greater than 2;
所述比较单元在所述第一判断单元判断出接收完成的所述数据帧的个数 超过预置的第一门限值时触发, 或者, 在所述第一判断单元判断出接收完成的 所述数据帧的个数不超过预置的第一门限值时, 等待预置时长后触发;  The comparing unit triggers when the first determining unit determines that the number of the received data frames exceeds a preset first threshold, or determines that the receiving is completed in the first determining unit. When the number of data frames does not exceed the preset first threshold, it is triggered after waiting for the preset duration;
所述比较单元具体用于比较当前接收完成的所有数据帧中的数据是否一 致。  The comparing unit is specifically configured to compare whether data in all data frames that are currently received is consistent.
9、 根据权利要求 8所述的接收节点, 其特征在于  9. The receiving node of claim 8 wherein
所述反馈单元还用于当所述数据一致的数据帧或者所述所有数据帧的 CRC校验都不正确时, 向所述发送节点返回重发指示信息, 所述重发指示信 息用于指示所述发送节点重发所述数据帧。  The feedback unit is further configured to: when the data frame that is consistent with the data or the CRC check of the all data frames is incorrect, return retransmission indication information to the sending node, where the retransmission indication information is used to indicate The transmitting node retransmits the data frame.
10、 根据权利要求 8所述的接收节点, 其特征在于,  10. The receiving node according to claim 8, wherein:
所述接收节点还包括:  The receiving node further includes:
第二判断单元, 用于当所述数据一致的数据帧的 CRC校验都不正确时, 判断所述数据一致的数据帧的个数是否超过预置的第二门限值;  a second determining unit, configured to: when the CRC check of the data frame in which the data is consistent is not correct, determine whether the number of data frames that are consistent with the data exceeds a preset second threshold;
所述传送单元还用于在所述第二判断单元的判断结果为是时, 向所述 FIFO传送一个所述数据一致的数据帧;  The transmitting unit is further configured to: when the determination result of the second determining unit is yes, transmit a data frame with the data consistency to the FIFO;
所述反馈单元还用于当所述第二判断单元的判断结果为否时,向所述发送 节点返回重发指示信息,所述重发指示信息用于指示所述发送节点重发所述数 据帧; 当所述所有数据帧的 CRC校验都不正确时, 向所述发送节点返回所述 重发指示信息。  The feedback unit is further configured to: when the determination result of the second determining unit is negative, return retransmission indication information to the sending node, where the retransmission indication information is used to instruct the sending node to resend the data a frame; when the CRC check of all the data frames is incorrect, the retransmission indication information is returned to the sending node.
11、 一种跨节点互联系统, 其特征在于, 包括:  11. A cross-node interconnect system, comprising:
发送节点和接收节点;  a sending node and a receiving node;
所述发送节点用于从至少两条通道上向所述接收节点发送相同的数据帧; 所述接收节点用于从至少两条通道上同步接收来自发送节点的数据帧,其 中, 所述数据帧中携带有循环冗余校验码 CRC, 且所述至少两条通道上传输 的所述数据帧为同一个数据帧;  The sending node is configured to send the same data frame from the at least two channels to the receiving node; the receiving node is configured to synchronously receive data frames from the sending node from the at least two channels, where the data frame Carrying a cyclic redundancy check code CRC, and the data frames transmitted on the at least two channels are the same data frame;
比较至少两个接收完成的所述数据帧中的数据是否一致;  Comparing whether data in at least two of the received data frames is consistent;
若存在数据一致的数据帧, 则对所述数据一致的数据帧进行 CRC校验; 若不存在数据一致的数据帧, 则对当前进行所述比较的所有数据帧进行 CRC 校验; If there is a data frame with consistent data, a CRC check is performed on the data frame that is consistent with the data; if there is no data frame with the same data, the CRC is performed on all data frames currently performing the comparison. check;
若存在所述 CRC校验正确的数据帧, 则:  If there is a data frame with the correct CRC check, then:
向先入先出队列 FIFO中传送一个所述 CRC校验正确的数据帧; 向所述发送节点返回指示所述数据帧接收无误的确认信息。  Transmitting one of the CRC-corrected data frames to the first-in first-out queue FIFO; and returning to the transmitting node an acknowledgement indicating that the data frame is received without errors.
PCT/CN2012/086912 2011-12-19 2012-12-19 Data transmission method, relevant node and system based on multi-channel WO2013091536A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110426422.1A CN102567276B (en) 2011-12-19 2011-12-19 Data transmission method based on multiple channels, related nodes and system
CN201110426422.1 2011-12-19

Publications (1)

Publication Number Publication Date
WO2013091536A1 true WO2013091536A1 (en) 2013-06-27

Family

ID=46412723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086912 WO2013091536A1 (en) 2011-12-19 2012-12-19 Data transmission method, relevant node and system based on multi-channel

Country Status (2)

Country Link
CN (1) CN102567276B (en)
WO (1) WO2013091536A1 (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567276B (en) * 2011-12-19 2014-03-12 华为技术有限公司 Data transmission method based on multiple channels, related nodes and system
CN104901972B (en) * 2015-06-24 2019-02-01 上海文广科技(集团)有限公司 A kind of method of file reception and benefit packet
CN105162551B (en) * 2015-07-29 2018-11-06 中工科安科技有限公司 A kind of computational methods of CRC safety check codes for code device signal processing
CN105262563B (en) * 2015-09-07 2018-02-23 南京科远自动化集团股份有限公司 A kind of redundancy check method and system for improving communication reliability
DE102015218882A1 (en) * 2015-09-30 2017-03-30 Robert Bosch Gmbh Method and device for checking calculation results in a system with several processing units
CN105356982B (en) * 2015-12-08 2018-08-31 上海赛治信息技术有限公司 Node dual-port based on Fibre Channel frame field receives redundancy approach
WO2017195366A1 (en) * 2016-05-13 2017-11-16 富士通株式会社 Communication device, wireless communication system, and wireless communication method
JP2018032934A (en) * 2016-08-23 2018-03-01 ルネサスエレクトロニクス株式会社 Communication device and retransmission control method
CN108876982A (en) * 2018-05-08 2018-11-23 南京思甲宁新材料科技有限公司 A kind of hardware electronic lock system
CN108932828B (en) * 2018-07-27 2020-05-05 江苏盛海智能科技有限公司 Method and terminal for realizing unmanned vehicle remote control
CN111258295A (en) * 2020-01-15 2020-06-09 重庆长安汽车股份有限公司 System and method for verifying big data acquisition and uploading accuracy
CN111885022B (en) * 2020-07-09 2023-06-20 河南信大网御科技有限公司 Mimicry communication method, communication system and terminal equipment based on communication interface
CN113556770A (en) * 2021-07-27 2021-10-26 广东电网有限责任公司 Data verification method, device, terminal and readable storage medium
CN114124858B (en) * 2022-01-29 2022-05-17 飞腾信息技术有限公司 Control method and control device
CN115459881A (en) * 2022-08-23 2022-12-09 大族激光科技产业集团股份有限公司 Data communication method, device, terminal and storage medium
CN118473602B (en) * 2024-07-10 2024-09-06 成都汉度科技有限公司 Multimode converged communication method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5426654A (en) * 1991-12-03 1995-06-20 Fujitsu Limited Channel data CRC systems for use with cross connect equipment
CN1285297A (en) * 1999-07-21 2001-02-28 阿尔斯托姆公司 System for transmitting data among at least two stations
CN1431594A (en) * 2003-01-27 2003-07-23 西安电子科技大学 Method for parallel computing code of CRC in multiple channels and multiple bits
US6741581B1 (en) * 1998-09-22 2004-05-25 Hughes Electronics Corporation System and method for transmitting data in frame format using an R-Rake retransmission technique with blind identification of data frames
US7424664B2 (en) * 2005-10-17 2008-09-09 Faraday Technology Corp. Duplicate detection circuit for receiver
CN101478369A (en) * 2009-01-05 2009-07-08 深圳华为通信技术有限公司 CRC checking method and system, CRC initial value affecting matrix
CN101764669A (en) * 2008-12-21 2010-06-30 重庆川仪自动化股份有限公司 CRC code check method in data receiving process
CN102567276A (en) * 2011-12-19 2012-07-11 华为技术有限公司 Data transmission method based on multiple channels, related nodes and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2341526B (en) * 1997-11-17 2003-01-15 Seagate Technology Method and dedicated frame buffer for loop initialization and responses

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5426654A (en) * 1991-12-03 1995-06-20 Fujitsu Limited Channel data CRC systems for use with cross connect equipment
US6741581B1 (en) * 1998-09-22 2004-05-25 Hughes Electronics Corporation System and method for transmitting data in frame format using an R-Rake retransmission technique with blind identification of data frames
CN1285297A (en) * 1999-07-21 2001-02-28 阿尔斯托姆公司 System for transmitting data among at least two stations
CN1431594A (en) * 2003-01-27 2003-07-23 西安电子科技大学 Method for parallel computing code of CRC in multiple channels and multiple bits
US7424664B2 (en) * 2005-10-17 2008-09-09 Faraday Technology Corp. Duplicate detection circuit for receiver
CN101764669A (en) * 2008-12-21 2010-06-30 重庆川仪自动化股份有限公司 CRC code check method in data receiving process
CN101478369A (en) * 2009-01-05 2009-07-08 深圳华为通信技术有限公司 CRC checking method and system, CRC initial value affecting matrix
CN102567276A (en) * 2011-12-19 2012-07-11 华为技术有限公司 Data transmission method based on multiple channels, related nodes and system

Also Published As

Publication number Publication date
CN102567276A (en) 2012-07-11
CN102567276B (en) 2014-03-12

Similar Documents

Publication Publication Date Title
WO2013091536A1 (en) Data transmission method, relevant node and system based on multi-channel
US20220200897A1 (en) System and method for facilitating efficient management of non-idempotent operations in a network interface controller (nic)
US10148581B2 (en) End-to-end enhanced reliable datagram transport
US9197373B2 (en) Method, apparatus, and system for retransmitting data packet in quick path interconnect system
US8284669B2 (en) Data acknowledgement apparatus and method
US20080225703A1 (en) Congestion reducing reliable transport packet retry engine
KR102046792B1 (en) Method of transporting data from sending node to destination node
CN105162706B (en) Multicast transmission method, apparatus and system
WO2011103836A2 (en) Data retransmission method, apparatus and system
WO2023093879A1 (en) Data transmission method and apparatus, device, and storage medium
WO2011137640A1 (en) File transmission method, file transmission apparatus and file reception apparatus
CN115994048B (en) Chip, communication method, system and storage medium
US20120328038A1 (en) Transmission system, transmission device and method for controlling transmission device
CN114401208B (en) Data transmission method and device, electronic equipment and storage medium
US20120106344A1 (en) Data communication acknowledgement in a network
WO2015031120A1 (en) Wireless networking with flexibly-ordered relayers
WO2022000208A1 (en) Data retransmission method and apparatus
Axer et al. Formal timing analysis of automatic repeat request for switched real-time networks
CN101667897A (en) Method, device and system for implementing retransmission on physical layer
WO2011116577A1 (en) Data retransmission method and apparatus
KR101566640B1 (en) Fault-tolerant dual-can (ft-dcan) device and method to tolerate arbitrary network faults, recording medium for performing the method
WO2018059169A1 (en) Data transmission method and apparatus
JP2012085244A (en) Serial transmitter, information processing apparatus and serial transmission method
US9992034B2 (en) Component multicast protocol
CN112217600A (en) Data frame receiving method and device, and communication method and 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: 12859907

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

Country of ref document: EP

Kind code of ref document: A1