SERDES-based data stability transmission method and device

By dividing data packets in SERDES transmission and coding error code, the problem of error code during transmission is solved, the system stability is improved and the cost is reduced, and the impact of anti-code error is achieved.

CN118784152APending Publication Date: 2024-10-15SHENZHEN LIDING PHOTOELECTRIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410929446.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

SERDES is susceptible to interference or power fluctuations during transmission, resulting in code errors, which leads to system control failure. The existing technology requires high time, labor and PCB costs to improve reliability.

Method used

Divide the data to be transmitted into the same data packets, and insert the packet gap data between the data packets to perform error correction code encoding, generate fixed frame-length error correction code data, transmit according to the preset transmission encoding method, and use error correction code Recover the frame header and end of the frame, predict the start and end positions of the frame, and correct other errors.

Benefits of technology

Through error correction code and fixed-cycle data packet structure, the stability of the system is improved, the error data can be effectively recovered, the incidence of system control failures is reduced, and the cost is relatively low.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784152A_ABST
    Figure CN118784152A_ABST
Patent Text Reader

Abstract

The invention relates to a data stability transmission method and device based on SERDES. The method comprises the following steps: dividing to-be-transmitted data in the SERDES into n to-be-transmitted data packets with the same data size; generating (n-1) pieces of packet gap data with the same data size according to the n to-be-transmitted data packets, and inserting each piece of packet gap data between two to-be-transmitted data packets; performing error correction code coding on the n to-be-transmitted data packets to generate error correction code data with a fixed frame length; and transmitting the error correction code data with the fixed frame length and the packet gap data according to a preset transmission coding mode. According to the method, the start position and the end position of a frame can be pre-judged by using an error correction code and a special data packet structure with a fixed period in a mode of transmitting control commands and parameters through SERDES, then a frame header and a frame tail can be recovered by virtue of the error correction capability of the error correction code, correct data can be recovered for errors in other places, and the error correction efficiency is improved. And the influence of error codes of SERDES transmission is resisted, so that the stability of the whole system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a method and device for data stability transmission based on SERDES. Background Art

[0002] At present, in the development process of X200, SERDES is usually used to transmit control commands / parameters, and control commands and parameters are sensitive to bit errors. During the transmission process, SERDES is easily affected by interference or power fluctuations, which can cause bit errors. If an error occurs, it is easy to cause system control failure, resulting in system control failure.

[0003] Currently, the technology for improving the reliability of SERDES usually relies on circuits, which requires high time costs, labor costs and PCB costs.

[0004] Therefore, people in this field are in urgent need of finding a new technical solution to solve the above problems. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present invention discloses a data stability transmission method and device based on SERDES.

[0006] According to a first aspect of an embodiment disclosed in the present invention, a data stability transmission method based on SERDES is provided, the method comprising:

[0007] Divide the data to be transmitted in the SERDES into n data packets to be transmitted with the same data volume;

[0008] Generate (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and insert each packet gap data between two data packets to be transmitted;

[0009] Performing error correction code encoding on the n data packets to be transmitted to generate error correction code data with a fixed frame length;

[0010] The error correction code data and packet gap data of the fixed frame length are transmitted according to a preset transmission coding method.

[0011] Optionally, dividing the data to be transmitted in the SERDES into n data packets to be transmitted with the same data volume includes:

[0012] The data to be transmitted in 7 cycles is regarded as a data transmission unit;

[0013] Each data packet to be transmitted contains 64*7 cycles of data to be transmitted, and n data packets to be transmitted with the same data volume are obtained.

[0014] Optionally, generating (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and inserting each packet gap data between two data packets to be transmitted, respectively, includes:

[0015] Each packet gap data contains the data amount of one data transmission unit;

[0016] Each inter-packet gap data is inserted between every two data packets to be transmitted.

[0017] Optionally, performing error correction code encoding on the n data packets to be transmitted to generate error correction code data with a fixed frame length includes:

[0018] For each data packet to be transmitted, error correction code encoding is performed on the data in each data transmission unit to generate error correction code data with a fixed frame length.

[0019] Optionally, the method further includes:

[0020] Let the amount of data contained in each cycle be 64 bits;

[0021] The first three high-bit data bits in each cycle are set as data indication bits, and the data indication bits include: data valid indication, command start and command end.

[0022] According to a second aspect of the disclosed embodiment of the present invention, a data stability transmission device based on SERDES is provided, the device comprising:

[0023] The module for acquiring data packets to be transmitted divides the data to be transmitted in the SERDES into n data packets to be transmitted with the same data volume;

[0024] a packet gap data acquisition module, connected to the data packet acquisition module to be transmitted, generating (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and inserting each packet gap data between two data packets to be transmitted;

[0025] An error correction code encoding module, connected to the packet gap data acquisition module, performs error correction code encoding on the n data packets to be transmitted to generate error correction code data with a fixed frame length;

[0026] The data transmission module is connected to the error correction code encoding module and transmits the error correction code data and packet gap data of the fixed frame length according to a preset transmission encoding method.

[0027] Optionally, the module for acquiring data packets to be transmitted includes:

[0028] A data transmission unit determination unit, which regards 7 cycles of data to be transmitted as a data transmission unit;

[0029] The unit for acquiring data packets to be transmitted is connected to the data transmission unit determination unit, and acquires n data packets to be transmitted with the same data volume from each data packet to be transmitted containing 64*7 cycles of data to be transmitted.

[0030] Optionally, the packet gap data acquisition module includes:

[0031] A data volume determination unit, which makes each packet gap data contain the data volume of a data transmission unit;

[0032] The packet gap insertion unit is connected to the data amount determination unit and inserts each packet gap data between every two data packets to be transmitted.

[0033] Optionally, the error correction code encoding module includes:

[0034] For each data packet to be transmitted, error correction code encoding is performed on the data in each data transmission unit to generate error correction code data with a fixed frame length.

[0035] Optionally, the device further comprises:

[0036] Let the amount of data contained in each cycle be 64 bits;

[0037] The first three high-bit data bits in each cycle are set as data indication bits, and the data indication bits include: data valid indication, command start and command end.

[0038] In summary, the present invention discloses a data stability transmission method and device based on SERDES, the method comprising: dividing the data to be transmitted in SERDES into n data packets to be transmitted with the same data volume; generating (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and inserting each packet gap data between two data packets to be transmitted; encoding the n data packets to be transmitted with error correction codes to generate error correction code data with a fixed frame length; transmitting the error correction code data with a fixed frame length and the packet gap data according to a preset transmission coding method. A method of transmitting control commands and parameters through SERDES: that is, using error correction codes and a special data packet structure with a fixed period, the start and end positions of the frame can be predicted, and then the error correction capability of the error correction code can be used to recover the frame header and frame tail, and the correct data can be recovered for errors in other places to counter the influence of the error code transmitted by SERDES, thereby improving the stability of the entire system.

[0039] Other features and advantages disclosed in the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0041] Figure 1 is a flow chart of a data stability transmission method based on SERDES according to an exemplary embodiment;

[0042] Figure 2 is based on Figure 1 A schematic diagram of a data packet to be transmitted and packet gap data is shown;

[0043] Figure 3 is based on Figure 1 A schematic diagram showing a method of transmitting 64-bit data in each cycle;

[0044] Figure 4 is a structural block diagram of a data stability transmission device based on SERDES according to an exemplary embodiment;

[0045] Figure 5 is based on Figure 4 A structural block diagram of a module for acquiring data packets to be transmitted is shown;

[0046] Figure 6 is based on Figure 4 A structural block diagram of a module for acquiring data packets to be transmitted is shown. DETAILED DESCRIPTION

[0047] The specific embodiments disclosed in the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure.

[0048] SERDES is the abbreviation of SERializer / DESerializer, which is currently a mainstream time division multiplexing (TDM) and point-to-point (P2P) serial communication technology. That is, multiple low-speed parallel signals are converted into high-speed serial signals at the sending end, and then passed through the transmission media (optical cable or copper wire), and finally the high-speed serial signals are converted back into low-speed parallel signals at the receiving end. This point-to-point serial communication technology makes full use of the channel capacity of the transmission media, reduces the number of transmission channels and device pins required, and increases the transmission speed of the signal, thereby greatly reducing the communication cost.

[0049] When using SERDES to transmit control commands / parameters, it is easy to be affected by interference or power fluctuations during the transmission process, which greatly increases the bit error rate. If an error occurs during the transmission process, it is easy to cause system control failure, thereby causing control failure of the entire system.

[0050] In the disclosed embodiment of the present invention, the method of using the SERDES transmission control command and parameter of the FPGA is used: that is, using error correction code and a special data packet structure with a fixed period to counter the influence of the error code of the SERDES transmission, thereby improving the stability of the entire system. Nowadays, with the widespread application of the SERDES interface, many high-end FPGAs are embedded with SERDES interface hard cores. The SERDES hard core embedded in the FPGA can greatly expand the data throughput of the FPGA, save power consumption, and improve performance, so that the FPGA plays an increasingly important role in high-speed system design.

[0051] Figure 1 is a flow chart of a data stability transmission method based on SERDES according to an exemplary embodiment. Figure 1 As shown, the method includes:

[0052] In step 101, the data to be transmitted in the SERDES is divided into n data packets to be transmitted with the same data volume.

[0053] For example, the data to be transmitted in the SERDES is divided into n data packets to be transmitted with the same data volume, so that the data packets to be transmitted can be transmitted according to a fixed frame length and a fixed period.

[0054] Specifically, 7 cycles of data to be transmitted are taken as a data transmission unit; each data packet to be transmitted contains 64*7 cycles of data to be transmitted, and n data packets to be transmitted with the same data volume are obtained.

[0055] For example, the amount of data contained in each data packet to be transmitted is the same and is a multiple of 7 cycles. The preferred embodiment disclosed in the present invention is that each data packet to be transmitted contains 64*7 cycles of data.

[0056] It should be noted that 7 cycles of data to be transmitted are used as a data transmission unit, and the amount of data contained in each data packet to be transmitted is set to be a multiple of 7 cycles in order to facilitate the subsequent error correction code encoding of the data packets to be transmitted.

[0057] In step 102, (n-1) inter-packet data with the same data volume are generated according to n data packets to be transmitted, and each inter-packet data is inserted between two data packets to be transmitted.

[0058] For example, a packet gap data is inserted between every two data packets to be transmitted. It can be understood that n data packets to be transmitted correspond to (n-1) packet gap data.

[0059] Specifically, each inter-packet data contains a data volume of a data transmission unit; and each inter-packet data is inserted between every two data packets to be transmitted.

[0060] Figure 2 is based on Figure 1 A schematic diagram of a data packet to be transmitted and packet gap data is shown, such as Figure 2 As shown in the figure, each inter-packet data contains the amount of data for one data transmission unit, that is, 7 cycles. In this way, the data to be transmitted consists of 64*7 cycles of data packets to be transmitted + 7 cycles of inter-packet data + data packets to be transmitted + 7 cycles of inter-packet data + 64*7 cycles of data packets to be transmitted + 7 cycles of inter-packet data + ... + 64*7 cycles of data packets to be transmitted. The inter-packet data between data packets is 7 cycles, which allows the data to be transmitted and the inter-packet data to add up to a multiple of 7 during the transmission process, so that the cycle is fixed. Data is transmitted during the idle period, and it is generally agreed that 0x070707070707070707 is transmitted, indicating the idle state.

[0061] In step 103, error correction code encoding is performed on n data packets to be transmitted to generate error correction code data with a fixed frame length.

[0062] For example, after obtaining n data packets to be transmitted and (n-1) inter-packet data, the n data packets to be transmitted are encoded with error correction codes to obtain error correction code data. It can be understood that the period and frame length of the error correction code data are fixed.

[0063] Specifically, for each data packet to be transmitted, error correction code encoding is performed on the data in each data transmission unit to generate error correction code data with a fixed frame length.

[0064] For example, the error correction code encoding method in the disclosed embodiment of the present invention includes: 64B66B encoding or 8B10B encoding. Taking the (7, 4) Hamming code in the 64B66B encoding as an example, the (7, 4) Hamming code indicates that the length of the codeword is 7 bits. Among these 7 bits, 4 bits are the original message, and the remaining 3 bits are added for detecting and correcting errors, which are called redundant bits. In the data packet to be transmitted of the present invention, in the data of each 7 cycles, the 64 bits of the first 4 cycles are all data, and the last 3 64 bits are all checks. Through a fixed period, some frame positioning errors caused by bit errors can be avoided. We can predict (pre-sense) the start and end of the data packet based on the periodic frame structure, and even if there is a bit error, it is easy to judge. When a bit error occurs in the header of the data packet to be transmitted, it can be corrected according to the prediction result.

[0065] It should be noted that when using 64B66B encoding, the XGMII frame header or frame tail is prone to bit errors, which can easily lead to packet loss due to misjudgment. However, we use a fixed period of data packet length to be transmitted and a fixed frame interval (packet gap data) to predict the start and end positions of the frame, and then use the error correction capability of the error correction code to restore the frame header and frame tail. For errors in other places, the XGMII decoder outputs 0xFE. At this time, with the help of the error correction code, the correct data can also be restored. In addition, some random errors can also be recovered with the help of error correction codes. Through this fixed normal + fixed period + error correction code structure, the control commands and parameters of the X200 can be transmitted more reliably.

[0066] If the length of the data packet is not a multiple of 4, we can pad it to a multiple of 4, and invalid data can be easily resolved through the structure of the data packet, such as adding a valid byte indication to the packet, or using a data valid bit indication.

[0067] In step 104, the error correction code data and packet gap data of the fixed frame length are transmitted according to a preset transmission coding method.

[0068] For example, after the data packet to be transmitted is encoded with an error correction code, n segments of error correction code data with a fixed frame length and (n-1) packet gap data are obtained, and the error correction code data and packet gap data are transmitted according to the transmission encoding method of the error correction code.

[0069] It should be noted that after using error correction code for encoding and data transmission, the loss of communication rate will increase. At present, this structure loses about 50% of bandwidth. Because this is a control channel, and SERDES is generally above 3Gbps. This loss is acceptable for the control channel.

[0070] In addition, the method also includes: setting the amount of data contained in each cycle to 64 bits; setting the first three high-bit data bits in each cycle as data indicator bits, and the data indicator bits include: data valid indication, command start and command end.

[0071] For example, there is no one-to-one correspondence between commands and data packets. Figure 3 As shown, each cycle transmits 64 bits of data, where the high bit data bits are used as data indicators, and the low bit data bits represent the data content. Preferably, the first three high bit data bits are selected and set as data indicator bits. For example, bit63 indicates data validity indication, bit63=1, indicating frame valid data, bit63=0 indicates invalid data; Bit62 indicates command start, bit62=1 indicates command start, otherwise not; bit61 indicates command end, otherwise not.

[0072] Figure 4 is a structural block diagram of a data stability transmission device based on SERDES according to an exemplary embodiment. Figure 4 As shown, the device 400 includes:

[0073] The data packet acquisition module 410 divides the data to be transmitted in the SERDES into n data packets to be transmitted with the same data volume;

[0074] A packet gap data acquisition module 420 is connected to the to-be-transmitted data packet acquisition module 410, and generates (n-1) packet gap data with the same data volume according to the n to-be-transmitted data packets, and inserts each packet gap data between two to-be-transmitted data packets;

[0075] The error correction code encoding module 430 is connected to the packet gap data acquisition module 420, and performs error correction code encoding on the n data packets to be transmitted to generate error correction code data with a fixed frame length;

[0076] The data transmission module 440 is connected to the error correction code encoding module 430, and transmits the error correction code data of the fixed frame length and the packet gap data according to a preset transmission encoding method.

[0077] Figure 5 is based on Figure 4 A structural block diagram of a module for acquiring data packets to be transmitted is shown in FIG. Figure 5 As shown, the module 410 for acquiring data packets to be transmitted includes:

[0078] A data transmission unit determining unit 411, which takes 7 cycles of data to be transmitted as a data transmission unit;

[0079] The data packet acquisition unit 412 is connected to the data transmission unit determination unit 411, and acquires n data packets to be transmitted with the same data volume from each data packet to be transmitted containing 64*7 cycles of data to be transmitted.

[0080] Figure 6 is based on Figure 4 A structural block diagram of a module for acquiring data packets to be transmitted is shown in FIG. Figure 6 As shown, the packet gap data acquisition module 420 includes:

[0081] The data amount determining unit 421 determines that each packet gap data contains a data amount of a data transmission unit;

[0082] The packet gap inserting unit 422 is connected to the data amount determining unit 421, and inserts each packet gap data between every two data packets to be transmitted.

[0083] Optionally, the error correction code encoding module 430 includes:

[0084] For each data packet to be transmitted, error correction code encoding is performed on the data in each data transmission unit to generate error correction code data with a fixed frame length.

[0085] Optionally, the device further comprises:

[0086] Let the amount of data contained in each cycle be 64 bits;

[0087] The first three high-bit data bits in each cycle are set as data indication bits, which include: data valid indication, command start and command end.

[0088] In summary, the present invention discloses a data stability transmission method and device based on SERDES, the method comprising: dividing the data to be transmitted in SERDES into n data packets to be transmitted with the same data volume; generating (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and inserting each packet gap data between two data packets to be transmitted; encoding the n data packets to be transmitted with error correction codes to generate error correction code data with a fixed frame length; transmitting the error correction code data with a fixed frame length and the packet gap data according to a preset transmission coding method. A method of transmitting control commands and parameters through SERDES: that is, using error correction codes and a special data packet structure with a fixed period, the start and end positions of the frame can be predicted, and then the error correction capability of the error correction code can be used to recover the frame header and frame tail, and the correct data can be recovered for errors in other places to counter the influence of the error code transmitted by SERDES, thereby improving the stability of the entire system.

[0089] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0090] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0091] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A data stability transmission method based on SERDES, characterized in that: The method comprises: Divide the data to be transmitted in the SERDES into n data packets to be transmitted with the same data volume; Generate (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and insert each packet gap data between two data packets to be transmitted; Performing error correction code encoding on the n data packets to be transmitted to generate error correction code data with a fixed frame length; The error correction code data and packet gap data of the fixed frame length are transmitted according to a preset transmission coding method.

2. The data stability transmission method based on SERDES according to claim 1, characterized in that: The step of dividing the data to be transmitted in the SERDES into n data packets to be transmitted with the same data volume includes: The data to be transmitted in 7 cycles is regarded as a data transmission unit; Each data packet to be transmitted contains 64*7 cycles of data to be transmitted, and n data packets to be transmitted with the same data volume are obtained.

3. The data stability transmission method based on SERDES according to claim 2, characterized in that: The step of generating (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and inserting each packet gap data between two data packets to be transmitted, comprises: Each packet gap data contains the data amount of one data transmission unit; Each inter-packet gap data is inserted between every two data packets to be transmitted.

4. The data stability transmission method based on SERDES according to claim 2, characterized in that: The step of encoding the n data packets to be transmitted with error correction codes to generate error correction code data with a fixed frame length includes: For each data packet to be transmitted, error correction code encoding is performed on the data in each data transmission unit to generate error correction code data with a fixed frame length.

5. The data stability transmission method based on SERDES according to claim 1, characterized in that: The method further comprises: Let the amount of data contained in each cycle be 64 bits; The first three high-bit data bits in each cycle are set as data indication bits, and the data indication bits include: data valid indication, command start and command end.

6. A data stability transmission device based on SERDES, characterized in that: The device comprises: The module for acquiring data packets to be transmitted divides the data to be transmitted in the SERDES into n data packets to be transmitted with the same data volume; a packet gap data acquisition module, connected to the data packet acquisition module to be transmitted, generating (n-1) packet gap data with the same data volume according to the n data packets to be transmitted, and inserting each packet gap data between two data packets to be transmitted; An error correction code encoding module, connected to the packet gap data acquisition module, performs error correction code encoding on the n data packets to be transmitted to generate error correction code data with a fixed frame length; The data transmission module is connected to the error correction code encoding module and transmits the error correction code data and packet gap data of the fixed frame length according to a preset transmission encoding method.

7. The data stability transmission device based on SERDES according to claim 6, characterized in that: The module for acquiring data packets to be transmitted comprises: A data transmission unit determination unit, which regards 7 cycles of data to be transmitted as a data transmission unit; The unit for acquiring data packets to be transmitted is connected to the data transmission unit determination unit, and acquires n data packets to be transmitted with the same data volume from each data packet to be transmitted containing 64*7 cycles of data to be transmitted.

8. The data stability transmission device based on SERDES according to claim 7, characterized in that: The packet gap data acquisition module includes: A data volume determination unit, which makes each packet gap data contain the data volume of a data transmission unit; The packet gap insertion unit is connected to the data amount determination unit and inserts each packet gap data between every two data packets to be transmitted.

9. The data stability transmission device based on SERDES according to claim 7, characterized in that: The error correction code encoding module comprises: For each data packet to be transmitted, error correction code encoding is performed on the data in each data transmission unit to generate error correction code data with a fixed frame length.

10. The data stability transmission device based on SERDES according to claim 6, characterized in that: The device also includes: Let the amount of data contained in each cycle be 64 bits; The first three high-bit data bits in each cycle are set as data indication bits, and the data indication bits include: data valid indication, command start and command end.