Communication data processing method, device, terminal and storage medium

Through the collaborative work of the processor and FPGA, key information of data packets is generated and processed, which solves the problem that traditional processors cannot meet the data packet processing speed of high-throughput devices, achieves faster data packet processing, and reduces latency.

CN114554546BActive Publication Date: 2024-10-15THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210105942.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2024-10-15
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

Traditional processors are difficult to meet the packet processing speed requirements of high-throughput devices in wireless communications, resulting in increased packet delay and unable to meet the requirements of high-throughput devices.

Method used

The processor and FPGA in the processing system are combined. The processor generates key information of the data packet and sends it to the FPGA. The FPGA reads and processes the data packet based on this information. It uses the fast reading capability of the FPGA and the flexibility of the processor to improve Packet processing speed.

Benefits of technology

By combining the advantages of the processor and FPGA, the processing speed of communication data is significantly improved, meeting the needs of high-throughput devices and reducing the delay of data packets in the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114554546B_ABST
    Figure CN114554546B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, terminal and storage medium for processing communication data. The method comprises: an FPGA acquires data to be processed in real time, and sends key information of a data packet of the data to be processed as first key information of a data packet to a processor; the processor generates key information of a data packet of processed data based on the first key information of the data packet, and sends the key information of the data packet of the processed data to the FPGA as second key information of a data packet; the FPGA reads the data to be processed based on the second key information of the data packet to obtain the processed data. The present invention uses a processor in a processing system to generate key information of a data packet, and uses an FPGA to read data. The present invention combines the advantages of fast reading speed of the FPGA and high flexibility of the processor, and can improve the processing speed of communication data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, terminal and storage medium for processing communication data. Background Art

[0002] A large amount of data is transmitted during wireless communication. The link layer must not only adapt to the physical layer to disassemble the data time slot, but also interact with external devices to send and receive data. The processing of a large number of data packets places extremely high demands on the performance of the processor. Using traditional processors (such as T3, PowerPC, etc.) for business processing can only achieve a business throughput rate of about 10Mbps-100Mbps. It cannot meet the increasingly high business processing requirements of wireless communication. When using traditional processors for business processing and adapting to the physical layer for business disassembly, the processor response interrupt time is generally more than hundreds of microseconds, which is equivalent to increasing the delay of the data packet in the device and cannot meet the requirements of high-throughput devices.

[0003] In some scalable processing platforms, programmable logic FPGA (Field Programmable Gate Array) and serial processor ARM (Advanced RISC Machine) are integrated. FPGA and ARM can communicate at high speed through AXI bus and jointly process data packets. At present, such processing platforms can improve the processing speed of data packets to a certain extent, but the processing speed still needs to be improved. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, terminal and storage medium for processing communication data to solve the problem that the processing speed of data packets is difficult to meet the requirements of equipment.

[0005] In a first aspect, an embodiment of the present invention provides a method for processing communication data, the processing method is applied to a processing system, the processing system includes a processor and an FPGA;

[0006] The FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the key information of the first data packet to the processor;

[0007] The processor generates data packet key information of processed data based on the first data packet key information, and sends the data packet key information of the processed data as second data packet key information to the FPGA;

[0008] The FPGA reads the data to be processed based on the key information of the second data packet to obtain processed data.

[0009] In a possible implementation, the data to be processed includes data to be packaged; the key information of the first data packet includes the address and packet type of the data to be packaged; the processed data includes at least one packaged data packet; the key information of the data packet of the processed data includes the header, length and address of the packaged data packet;

[0010] The processor generates data packet key information of the processed data based on the first data packet key information, including:

[0011] When the processor obtains the coding sequence number, it determines the length of the assembled data packet based on the coding sequence number, generates the header of each assembled data packet based on the packet type, the coding sequence number and the length of the assembled data packet, and determines the address of each assembled data packet based on the address of the data to be assembled and the length of the assembled data packet.

[0012] In a possible implementation, the FPGA reads the data to be processed based on the key information of the second data packet to obtain the processed data, including:

[0013] For each assembled data packet, the FPGA reads the packet header of the assembled data packet, and reads the data to be assembled based on the length and address of the assembled data packet to obtain the data packets of each assembled data packet.

[0014] In a possible implementation, before the processor generates the key information of the data packet of the processed data based on the key information of the first data packet, the method further includes:

[0015] The FPGA obtains the coding sequence number sent by the physical layer in real time, and after obtaining the packet sending instruction, sends the coding sequence number to the processor.

[0016] In a possible implementation, the data to be processed includes at least one received data packet; the key information of the first data packet includes the header, length and address of the received data packet; the processed data includes the reassembled data packet; the key information of the data packet of the processed data includes the header, length and address of the reassembled data packet;

[0017] The processor generates data packet key information of the processed data based on the first data packet key information, including:

[0018] The processor reassembles the addresses of each received data packet based on the headers of each received data packet to obtain the addresses of the reassembled data packets, calculates the length of the reassembled data packet based on the headers and lengths of each received data packet, and generates the header of the reassembled data packet based on the length of the reassembled data packet.

[0019] In a possible implementation, the FPGA reads the data to be processed based on the key information of the second data packet to obtain the processed data, including:

[0020] The FPGA reads the header of the reassembled data packet, and reads each received data packet based on the address and length of the reassembled data packet to obtain the reassembled data packet.

[0021] In a possible implementation, the FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the key information of the first data packet to the processor, including:

[0022] The FPGA acquires the decoded data sent by the decoder in real time, and unpacks the decoded data according to the data stream based on the packet header of the decoded data to obtain at least one received data packet, and performs CRC check on the decoded data. If the check passes, the key information of all received data packets is sent to the processor as the key information of the first data packet.

[0023] In a second aspect, an embodiment of the present invention provides a communication data processing device, the processing device is applied to a processing system, the processing system includes a processor and an FPGA;

[0024] The processing device comprises:

[0025] An acquisition module, used for acquiring the data to be processed in real time, and sending the key information of the data packet of the data to be processed as the key information of the first data packet to the processor;

[0026] An information generation module, configured to generate key information of a data packet of processed data based on the key information of the first data packet, and send the key information of the data packet of processed data as the key information of the second data packet to the FPGA;

[0027] The reading module is used to read the data to be processed based on the key information of the second data packet to obtain the processed data.

[0028] In a third aspect, an embodiment of the present invention provides a system for processing communication data, including a processor and an FPGA, wherein the processor and the FPGA implement the steps of the method shown in the first aspect or any possible implementation of the first aspect when executing a computer program.

[0029] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the method shown in the first aspect or any possible implementation of the first aspect.

[0030] The embodiment of the present invention provides a method, device, terminal and storage medium for processing communication data. The processing method is applied to a processing system, and the processing system includes a processor and an FPGA; the processing method includes: the FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the first data packet key information to the processor; the processor generates the key information of the data packet of the processed data based on the first data packet key information, and sends the key information of the data packet of the processed data to the FPGA as the second data packet key information; the FPGA reads the data to be processed based on the second data packet key information to obtain the processed data. The present invention uses the processor in the processing system to generate the key information of the data packet and uses the FPGA to read the data. The present invention combines the advantages of the fast reading speed of the FPGA and the high flexibility of the processor, and can improve the processing speed of the communication data. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0032] Figure 1 is an application scenario diagram of the communication data processing method provided by an embodiment of the present invention;

[0033] Figure 2 is a flow chart of an implementation method of a communication data processing method provided by an embodiment of the present invention;

[0034] Figure 3 is a schematic diagram of the structure of a communication data processing device provided by an embodiment of the present invention;

[0035] Figure 4 It is a schematic diagram of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0037] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0038] Figure 1 This is an application scenario diagram of the communication data processing method provided by an embodiment of the present invention. Figure 1 As shown, the present invention is applied to a processing system, which works at a data link layer. The system may be composed of a PS (Processing System) end, a PL (Progarmmable Logic) end, a control register, a DDR3 (Double Data Rate) memory, an AXI_HP (Advanced eXtensible Interface_High Pressure) interface, and an IRQ (Interrupt Request). Among them, the PL end is an FPGA, the PS end is a processor, the AXI interface is a channel for transmitting packet address information and packet headers between the PL end and the PS end, and the master end is the PL end. DDR3 and the control register are channels for transmitting control quantities, the number of slices, and clearing interrupts between the PL end and the PS end, and the master end is the PS end; IRQ is an active interrupt signal sent by the PL end.

[0039] See also Figure 2 , which shows a flow chart of the implementation of the method for processing communication data provided by an embodiment of the present invention, which is described in detail as follows:

[0040] Step 201, the FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the first data packet key information to the processor.

[0041] In this embodiment, the data to be processed is in the format of a data packet, which may be data that the link layer needs to send to the physical layer, or data received by the link layer. The key information of the data packet may include the header, packet type, length, and address of the data packet. After obtaining the key information of the data packet, the processor or FPGA may read the data packet according to the key information of the data packet.

[0042] Step 202: The processor generates key information of the data packet of the processed data based on the key information of the first data packet, and sends the key information of the data packet of the processed data as the second key information of the data packet to the FPGA.

[0043] In this embodiment, the processor and the FPGA share a memory, and the storage address of the data in the memory remains unchanged during the data processing. The processor and the FPGA only need to transfer the key information of the data packet to determine the corresponding data packet in the memory, and directly process the data to be processed, thereby saving the communication time between the two processors.

[0044] Step 203: The FPGA reads the data to be processed based on the key information of the second data packet to obtain processed data.

[0045] In this embodiment, the key information of the data packet includes the header, length and address of the data packet. After determining the key information of a data packet, the FPGA can read the header first in the correct order, and then read the data of the corresponding length at the corresponding address to complete the reading of the data packet. At the same time, the data packet can be sent to the physical layer or network layer in the form of a data stream during the reading process.

[0046] In some embodiments, the data to be processed includes data to be packaged; the key information of the first data packet includes the address and packet type of the data to be packaged; the processed data includes at least one packaged data packet; the key information of the data packet of the processed data includes the header, length and address of the packaged data packet;

[0047] The processor generates data packet key information of the processed data based on the first data packet key information, including:

[0048] When the processor obtains the coding sequence number, it determines the length of the assembled data packet based on the coding sequence number, generates the header of each assembled data packet based on the packet type, the coding sequence number and the length of the assembled data packet, and determines the address of each assembled data packet based on the address of the data to be assembled and the length of the assembled data packet.

[0049] In this embodiment, during the packetization process, it is necessary to first determine the fragment length, that is, the length of the packet after packetization, and then divide the address of the data to be packetized into multiple addresses, each address corresponds to a packet after packetization, and generate a packet header corresponding to each packet after packetization. This process requires processing the packet header, length and address, and the amount of data processed is small, but the type is complex, so using a processor with higher flexibility can achieve higher efficiency and improve the processing speed in packetization.

[0050] In some embodiments, the FPGA reads the data to be processed based on the key information of the second data packet to obtain the processed data, including:

[0051] For each assembled data packet, the FPGA reads the packet header of the assembled data packet, and reads the data to be assembled based on the length and address of the assembled data packet to obtain the data packets of each assembled data packet.

[0052] In this embodiment, the FPGA can read the data packets in multi-threaded manner, and the reading speed is faster than that of the processor. Therefore, the FPGA is used to read the data packets to improve the processing speed in reading.

[0053] In some embodiments, before the processor generates the data packet key information of the processed data based on the first data packet key information, the method further includes:

[0054] The FPGA obtains the coding sequence number sent by the physical layer in real time, and after obtaining the packet sending instruction, sends the coding sequence number to the processor.

[0055] In this embodiment, the processor does not communicate directly with the physical layer. After receiving the coding number sent by the physical layer, the FPGA stores the coding number in the memory and notifies the processor when packet assembly is required, thereby increasing the speed of storing the coding number and reducing latency.

[0056] In some embodiments, the data to be processed includes at least one received data packet; the key information of the first data packet includes the header, length and address of the received data packet; the processed data includes the reassembled data packet; the key information of the data packet of the processed data includes the header, length and address of the reassembled data packet;

[0057] The processor generates data packet key information of the processed data based on the first data packet key information, including:

[0058] The processor reassembles the addresses of each received data packet based on the headers of each received data packet to obtain the addresses of the reassembled data packets, calculates the length of the reassembled data packet based on the headers and lengths of each received data packet, and generates the header of the reassembled data packet based on the length of the reassembled data packet.

[0059] In this embodiment, after the processor analyzes the packet headers of each received data packet, it can identify whether there is a correlation between the received data packets based on the sequence number in the packet header, and confirm whether there is a data packet lost. If a data packet is lost, wait for the data packet to be retransmitted. If no data packet is lost, reorganize the addresses of the received data packets in the correct order to obtain the addresses of the reorganized data packets.

[0060] In some embodiments, the FPGA reads the data to be processed based on the key information of the second data packet to obtain the processed data, including:

[0061] The FPGA reads the header of the reassembled data packet, and reads each received data packet based on the address and length of the reassembled data packet to obtain the reassembled data packet.

[0062] In this embodiment, the FPGA reads the data in the reassembled data packet in the correct order to obtain the reassembled data packet, so as to send the data packet to the corresponding data interface for further processing of the data.

[0063] In some embodiments, the FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the first key information of the data packet to the processor, including:

[0064] The FPGA acquires the decoded data sent by the decoder in real time, and unpacks the decoded data according to the data stream based on the packet header of the decoded data to obtain at least one received data packet, and performs CRC check on the decoded data. If the check passes, the key information of all received data packets is sent to the processor as the key information of the first data packet.

[0065] In this embodiment, the decoder is part of the physical layer. After acquiring the decoded data, the FPGA first caches the data in the FIFO for CRC check, and then writes the data into the memory after the check, thereby improving the reading and writing speed.

[0066] In a specific embodiment, Figure 1 When the system shown is used as a transmitter, the data packet processing process is as follows:

[0067] (1) The PL receives the data to be processed and writes it into the DDR3 cache of the PL. The data to be processed includes network port, voice data and link control information. At the same time, the key information of the data packet to be processed (packet type, packet storage address, packet length, etc.) is written into the DDR3 of the PS through AXI, and the PS is informed through interrupt 0. After the PS responds to the interrupt, it clears the interrupt through control register 0.

[0068] (2) After the PL side receives the packet sending instruction from the physical layer, it writes the coded sequence number sent by the physical layer into the DDR3 of the PS side and notifies the PS through interrupt 1. After the PS responds to the interrupt, it writes control register 1 to clear the interrupt.

[0069] (3) After the PS responds to interrupt 1, it obtains the length of the packet to be assembled according to the coding sequence number. It addresses and segments the data to be processed, numbers it, and generates a packet header for packet assembly. It writes the assembled data packet header, segment length, segment address and other control information into the DDR3 of the PS, and informs the PL end to assemble the packet by writing control register 2.

[0070] (4) After receiving the control register 2, the PL receives the data packet header, length and position information, reads out each assembled data packet in sequence, adds the 24-bit CRC check result, and sends the assembled data packet to the physical layer for encoding.

[0071] Figure 1 When the system shown is used as a receiving end, the processing process of the data packet is as follows:

[0072] (1) After the PL receives the decoded data sent by the decoder, it unpacks the data according to the length information of the packet header and caches the received data packet in the local FIFO (First Input First Output). Wait until the data stream is completely unpacked and check the verification result. If the verification fails, the data cache is cleared. If the verification passes, the cache in the FIFO is written to DDR3. The key information of the packet, such as the packet header, address and length, is written to another area in the DDR3 of the PS side, and the PS side is informed through interrupt 3.

[0073] (2) After the PS responds to interrupt 3, it clears the interrupt through control register 3, analyzes the sequence number in the packet header, and reassembles the packet address according to the sequence number. After obtaining the address of the reassembled packet, the packet key information of the reassembled packet is written to DDR3, and the PL is notified through control register 4. If a packet is lost in the middle, wait for the packet to be retransmitted before writing the packet key information of the reassembled packet to DDR3.

[0074] (3) After receiving the control register 4, the PL terminal reads out the instruction in the corresponding area, reads out the data packet according to the address and length, and sends it to the corresponding data interface.

[0075] The communication data processing method provided by the embodiment of the present invention includes: the FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the first data packet key information to the processor; the processor generates the key information of the data packet of the processed data based on the first data packet key information, and sends the key information of the data packet of the processed data as the second data packet key information to the FPGA; the FPGA reads the data to be processed based on the second data packet key information to obtain the processed data. The present invention uses the processor in the processing system to generate the key information of the data packet and uses the FPGA to read the data. The present invention combines the advantages of the fast reading speed of the FPGA and the high flexibility of the processor, and can improve the processing speed of the communication data.

[0076] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0077] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0078] Figure 3 A schematic diagram of the structure of a communication data processing device provided by an embodiment of the present invention is shown. For ease of description, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:

[0079] like Figure 3 As shown, the communication data processing device 3 includes:

[0080] An acquisition module 31 is used to acquire the data to be processed in real time, and send the key information of the data packet of the data to be processed as the first data packet key information to the processor;

[0081] An information generating module 32, configured to generate key information of a data packet of processed data based on the key information of the first data packet, and send the key information of the data packet of processed data as the key information of the second data packet to the FPGA;

[0082] The reading module 33 is used to read the data to be processed based on the key information of the second data packet to obtain processed data.

[0083] In some embodiments, the data to be processed includes data to be packaged; the key information of the first data packet includes the address and packet type of the data to be packaged; the processed data includes at least one packaged data packet; the key information of the data packet of the processed data includes the header, length and address of the packaged data packet;

[0084] The information generation module 32 is specifically used for:

[0085] When the coding number is obtained, the length of the assembled data packet is determined based on the coding number, the header of each assembled data packet is generated based on the packet type, the coding number and the length of the assembled data packet, and the address of each assembled data packet is determined based on the address of the data to be assembled and the length of the assembled data packet.

[0086] In some embodiments, the reading module 33 is specifically used for:

[0087] For each assembled data packet, the packet header of the assembled data packet is read, and the data to be assembled is read based on the length and address of the assembled data packet to obtain the data packets of each assembled data packet.

[0088] In some embodiments, the communication data processing device 3 further includes:

[0089] The sending module is used to obtain the coding sequence number sent by the physical layer in real time before generating the data packet key information of the processed data based on the first data packet key information, and send the coding sequence number to the processor after obtaining the packet sending indication.

[0090] In some embodiments, the data to be processed includes at least one received data packet; the key information of the first data packet includes the header, length and address of the received data packet; the processed data includes the reassembled data packet; the key information of the data packet of the processed data includes the header, length and address of the reassembled data packet;

[0091] The information generation module 32 is specifically used for:

[0092] The addresses of each received data packet are reorganized based on the packet headers of each received data packet to obtain the addresses of the reorganized data packets, the length of the reorganized data packet is calculated based on the packet headers and lengths of each received data packet, and the packet header of the reorganized data packet is generated based on the length of the reorganized data packet.

[0093] In some embodiments, the reading module 33 is specifically used for:

[0094] The packet header of the reassembled data packet is read, and each received data packet is read based on the address and length of the reassembled data packet to obtain the reassembled data packet.

[0095] In some embodiments, the acquisition module 31 is specifically used for:

[0096] The decoded data sent by the decoder is acquired in real time, and the decoded data is unpacked according to the data stream based on the packet header of the decoded data to obtain at least one received data packet, and a CRC check is performed on the decoded data. If the check passes, the data packet key information of all received data packets is sent to the processor as the first data packet key information.

[0097] The communication data processing device provided by the embodiment of the present invention includes: an acquisition module, which is used to acquire the data to be processed in real time, and send the key information of the data packet of the data to be processed as the first data packet key information to the processor; an information generation module, which is used to generate the key information of the data packet of the processed data based on the first data packet key information, and send the key information of the data packet of the processed data as the second data packet key information to the FPGA; a reading module, which is used to read the data to be processed based on the second data packet key information to obtain the processed data. The present invention uses the processor in the processing system to generate the key information of the data packet and uses the FPGA to read the data. The present invention combines the advantages of the fast reading speed of the FPGA and the high flexibility of the processor, and can improve the processing speed of the communication data.

[0098] Figure 4 Schematic diagram of a computer-readable storage medium provided by an embodiment of the present invention. Figure 4 As shown, the computer-readable storage medium of this embodiment is set in the terminal 4, and the terminal 4 includes: a processor 40, a computer-readable storage medium 41, and a computer program 42 stored in the computer-readable storage medium 41 and executable on the processor 40. When the processor 40 executes the computer program 42, the steps in the above-mentioned various communication data processing method embodiments are implemented. Alternatively, when the processor 40 executes the computer program 42, the functions of the modules in the above-mentioned various device embodiments are implemented.

[0099] Exemplarily, the computer program 42 may be divided into one or more modules, which are stored in the computer-readable storage medium 41 and executed by the processor 40 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 42 in the terminal 4.

[0100] The terminal 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 4 may include, but is not limited to, a processor 40 and a computer-readable storage medium 41. Those skilled in the art will appreciate that Figure 4 It is only an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0101] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0102] The computer-readable storage medium 41 may be an internal storage unit of the terminal 4, such as a hard disk or memory of the terminal 4. The computer-readable storage medium 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal 4. Further, the computer-readable storage medium 41 may also include both an internal storage unit of the terminal 4 and an external storage device. The computer-readable storage medium 41 is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium 41 may also be used to temporarily store data that has been output or is to be output.

[0103] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0104] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0105] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0106] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0108] 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-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0109] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various communication data processing method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0110] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for processing communication data, characterized in that: The processing method is applied to a processing system, wherein the processing system includes a processor and an FPGA; The processing method comprises: The FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the first key information of the data packet to the processor; The processor generates data packet key information of processed data based on the first data packet key information, and sends the data packet key information of the processed data as second data packet key information to the FPGA; The FPGA reads the data to be processed based on the key information of the second data packet to obtain processed data; The data to be processed includes data to be packaged; the key information of the first data packet includes the address and packet type of the data to be packaged; the processed data includes at least one packaged data packet; the key information of the data packet of the processed data includes the header, length and address of the packaged data packet; The processor generates data packet key information of processed data based on the first data packet key information, including: When the processor obtains the coding sequence number, it determines the length of the assembled data packet based on the coding sequence number, generates a header of each assembled data packet based on the packet type, the coding sequence number and the length of the assembled data packet, and determines the address of each assembled data packet based on the address of the data to be assembled and the length of the assembled data packet; The data to be processed includes at least one received data packet; the key information of the first data packet includes the header, length and address of the received data packet; the processed data includes the reassembled data packet; the key information of the data packet of the processed data includes the header, length and address of the reassembled data packet; The processor generates data packet key information of processed data based on the first data packet key information, including: The processor reorganizes the addresses of each received data packet based on the headers of each received data packet to obtain the addresses of the reorganized data packets, calculates the length of the reorganized data packet based on the headers and lengths of each received data packet, and generates the header of the reorganized data packet based on the length of the reorganized data packet.

2. The method for processing communication data according to claim 1, characterized in that: The FPGA reads the data to be processed based on the key information of the second data packet to obtain processed data, including: For each assembled data packet, the FPGA reads the packet header of the assembled data packet, and reads the data to be assembled based on the length and address of the assembled data packet to obtain the data packets of each assembled data packet.

3. The method for processing communication data according to claim 1, characterized in that: Before the processor generates data packet key information of processed data based on the first data packet key information, the method further includes: The FPGA acquires the coding sequence number sent by the physical layer in real time, and after acquiring the packet sending indication, sends the coding sequence number to the processor.

4. The method for processing communication data according to claim 1, characterized in that: The FPGA reads the data to be processed based on the key information of the second data packet to obtain processed data, including: The FPGA reads the packet header of the reassembled data packet, and reads each received data packet based on the address and length of the reassembled data packet to obtain the reassembled data packet.

5. The method for processing communication data according to claim 1, characterized in that: The FPGA acquires the data to be processed in real time, and sends the key information of the data packet of the data to be processed as the key information of the first data packet to the processor, including: The FPGA acquires the decoded data sent by the decoder in real time, and unpacks the decoded data according to the data stream based on the packet header of the decoded data to obtain at least one received data packet, and performs CRC check on the decoded data. If the check passes, the data packet key information of all received data packets is sent to the processor as the first data packet key information.

6. A communication data processing device, characterized in that: The processing device is applied to a processing system, and the processing system includes a processor and an FPGA; The processing device comprises: An acquisition module, used for acquiring the data to be processed in real time, and sending the key information of the data packet of the data to be processed as the first key information of the data packet to the processor; An information generating module, configured to generate key information of a data packet of processed data based on the first key information of the data packet, and send the key information of the data packet of processed data as second key information of the data packet to the FPGA; A reading module, used for reading the data to be processed based on the key information of the second data packet to obtain processed data; The data to be processed includes data to be packaged; the key information of the first data packet includes the address and packet type of the data to be packaged; the processed data includes at least one packaged data packet; the key information of the data packet of the processed data includes the header, length and address of the packaged data packet; The information generation module is specifically used for: When the processor obtains the coding sequence number, it determines the length of the assembled data packet based on the coding sequence number, generates a header of each assembled data packet based on the packet type, the coding sequence number and the length of the assembled data packet, and determines the address of each assembled data packet based on the address of the data to be assembled and the length of the assembled data packet; The data to be processed includes at least one received data packet; the key information of the first data packet includes the header, length and address of the received data packet; the processed data includes the reassembled data packet; the key information of the data packet of the processed data includes the header, length and address of the reassembled data packet; The information generation module is specifically used for: The processor reorganizes the addresses of each received data packet based on the headers of each received data packet to obtain the addresses of the reorganized data packets, calculates the length of the reorganized data packet based on the headers and lengths of each received data packet, and generates the header of the reorganized data packet based on the length of the reorganized data packet.

7. A communication data processing system, comprising a processor and an FPGA, characterized in that: When the processor and the FPGA execute the computer program, the steps of the method for processing communication data as described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for processing communication data as described in any one of claims 1 to 5 are implemented.