System and method for enhancing reliability of Ethernet non-connection protocol data transmission
By performing CRC checksum and destination MAC address determination in the Ethernet data receiving module, and adding a UDP protocol response module, ARP, and ICMP protocols, the reliability problem of Ethernet connectionless protocol data transmission is solved, and stable data packet transmission and network status monitoring are achieved.
Patent Information
- Application Number
- CN202511224726.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-29
- Publication Date
- 2026-01-06
AI Technical Summary
Existing Ethernet connectionless protocol data transmission suffers from insufficient reliability when transmitting important data, with problems such as frame loss, duplication, or out-of-order transmission, especially unstable data transmission in aircraft, missile, and rocket experiments.
By performing CRC checksum and destination MAC address determination in the Ethernet data receiving module, and by adding a UDP protocol response module, ARP and ICMP protocols, a strict application layer data format is defined, thereby enhancing the reliability of data transmission.
It improves the stability of data transmission, ensures that data packets are correctly transmitted to the target device, provides network status reports, and enhances the reliability of Ethernet connectionless protocols.
Smart Images

Figure CN121283579A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Ethernet data transmission technology, specifically to a system and method for enhancing the reliability of Ethernet connectionless protocol data transmission. Background Technology
[0002] Ethernet, as a widely used local area network (LAN) technology, plays a crucial role in data transmission. The main function of the Ethernet data processing logic at the receiving end is to process Ethernet packets sent from the sending end through the PHY interface of the PHY chip. PHY chips can be of various speeds, including 100M, 1000M, and 10Gbit / s. Different speeds correspond to different PHY interfaces: 100Mbit / s corresponds to the MII interface, 1000Mbit / s to the RMII interface, and 10Gbit / s to the XGMII interface. The only difference between the interfaces is the data width. Ethernet packet data is transmitted by encapsulating each layer of the protocol layer. User data is packaged in the UDP protocol, which is based on the IP protocol, and the IP protocol is sent through the MAC layer. In terms of inclusion: the data segments in a MAC frame are IP datagrams, the data segments in an IP packet are UDP packets, and the data segments in a UDP packet contain the data content that the user wants to transmit. In other words, user data is transmitted via the UDP protocol. UDP (User Datagram Protocol), also known as Ethernet Unreliable Datagram Protocol, is a connectionless protocol where the sending and receiving ends do not establish a logical connection during data transmission. Simply put, when one computer sends data to another, the sender does not confirm the existence of the receiver before sending the data, and similarly, the receiver does not send feedback to the sender upon receiving the data. Data packets are received by the PHY chip via a physical medium (such as a network cable). The PHY chip is responsible for converting physical signals into digital signals, performing signal recovery and initial processing. The received digital signals are reassembled into Ethernet frames and subjected to integrity checks (such as CRC checks) to ensure the data is not corrupted. Data that passes the check is temporarily stored in a buffer for subsequent processing. The system determines the protocol type in the frame (e.g., distinguishing between IP, ARP, etc.) and splits the protocol header according to the protocol type, extracting the encapsulated data. The processed data re-enters the buffer, awaiting further processing. If the data needs to be forwarded, the system will encapsulate it into frames, adding the appropriate Ethernet header and other information. The encapsulated data is buffered again, ready for transmission. The buffered data is retrieved, converted into physical signals by the PHY chip, and sent to the network medium.
[0003] The existing Ethernet connectionless protocol data transmission logic mainly consists of an Ethernet data receiving module, a receive RAM buffer module, a UDP protocol processing module, a UDP data FIFO buffer module, a UDP data reply module, a transmit RAM buffer module, and an Ethernet data sending module. However, the existing technology has obvious drawbacks: Simply relying on CRC check to ensure data transmission reliability is insufficient for transmitting important data such as aircraft flight parameter data and critical data from missile and rocket experiments. Ethernet connectionless protocols are connectionless protocols that do not establish connections, do not guarantee data delivery, and suffer from problems such as frame loss, duplication, or out-of-order delivery.
[0004] Therefore, in view of the above situation, there is an urgent need to provide a system and method for enhancing the reliability of Ethernet connectionless protocol data transmission in order to overcome the shortcomings in current practical applications. Summary of the Invention
[0005] The purpose of this invention is to provide a system and method for enhancing the reliability of Ethernet connectionless protocol data transmission, effectively solving the problems mentioned in the background art.
[0006] This invention is implemented as follows: a system for enhancing the reliability of Ethernet connectionless protocol data transmission, the system comprising: Ethernet data receiving module, used to receive Ethernet packet data and perform CRC check and destination MAC address determination; The receive RAM buffer module is used to buffer the data output by the Ethernet data receiving module; The protocol determination module is used to determine the protocol type and parse the data; The ARP table cache update module is used to store the source MAC address and source IP address. The UDP application layer protocol processing module and the UDP protocol response module are used to process UDP data and implement response replies; ARP, ICMP, and UDP data FIFO caching modules are used to cache intermediate data. The protocol arbitration response module is used to determine the response protocol based on the response command or data length. The transmit RAM buffer module is used to buffer the protocol data to be transmitted; Ethernet data transmission module, used to send Ethernet data to the network.
[0007] As a further aspect of the present invention: when the Ethernet data receiving module performs CRC verification, it first extracts the preamble and the start-of-frame delimiter, then verifies the subsequent data, and outputs an error flag after the verification is completed. If the error flag is 1, the data packet is discarded and the packet data is received again.
[0008] As a further aspect of the present invention: the receiving RAM cache module is an asynchronous RAM with different read and write clocks to achieve cross-clock domain data transmission.
[0009] As a further aspect of the present invention: when the protocol judgment module processes UDP protocol data, it only outputs the UDP protocol data to the UDP application layer protocol processing module, which then processes the application layer protocol.
[0010] As a further aspect of the present invention: when there is no reply command, the protocol arbitration reply module determines the reply protocol based on the length of data already cached in the ARP, ICMP, and UDP data FIFO cache modules.
[0011] As a further aspect of the present invention: the Ethernet data transmission module pads the data when the length is less than 46 bytes and adds a CRC check value.
[0012] A method for enhancing the reliability of Ethernet connectionless protocol data transmission, employing the system described above, includes the following steps: The received Ethernet packet data enters the Ethernet data receiving module; After the Ethernet data receiving module finishes processing, the data is cached in the RAM cache module. The protocol determination module retrieves data from RAM, determines different protocols, and outputs the results to a FIFO buffer. The protocol arbitration response module retrieves data from the FIFO based on the data length in the FIFO and the command from the UDP protocol response module, and outputs it to the transmission RAM module. The Ethernet data transmission module will send the data cached in the RAM buffer module in Ethernet format.
[0013] As a further aspect of the present invention: after receiving Ethernet packet data, the Ethernet data receiving module performs CRC check and destination MAC address judgment on it simultaneously. If the CRC check fails, the data packet is discarded and received again. If the CRC check passes and the destination MAC address matches, a RAM write address, write enable, and 8-bit write data are generated and output to the receiving RAM buffer module. At the same time, a packet reception end flag is output to the protocol judgment module.
[0014] As a further aspect of the present invention: the application layer data format of the data sent by the Ethernet data transmission module includes a frame header, a command, a length, and data, wherein the frame header is a fixed value 0xbb11bb11, occupying 4 bytes; the command occupies 1 byte and is used to indicate the content of this frame; the length occupies 2 bytes and is used to indicate the length of the subsequent data field; and the data is the data payload.
[0015] As a further aspect of the present invention, the method further includes the following steps: The ARP table cache update module receives the latest source MAC address and source IP address output by the protocol judgment module and stores them in the register accordingly; The UDP application layer protocol processing module processes the input UDP protocol data. After receiving the UDP data reception completion flag, the UDP protocol response module integrates the data into the register according to the response protocol agreed upon by both communicating parties, outputs the integrated data to the UDP_FIFO buffer module, and simultaneously outputs a response command to the protocol arbitration response module. The ARP, ICMP, and UDP data FIFO caching modules cache intermediate data for the ARP, ICMP, and UDP protocols respectively, and output the length of the cached data to the protocol arbitration response module.
[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention, based on CRC data verification, adds a UDP protocol response module. Upon receiving non-connection-specific protocol data from the sender, this module replies with data indicating whether the data packet has been successfully received. The sender can then retransmit lost data packets based on the response message, improving data transmission stability. Furthermore, it incorporates ARP and ICMP protocols. ARP maps IP addresses to MAC addresses, ensuring data packets are correctly delivered to the target device. ICMP reports network errors and status information, such as destination unreachable or timeout, allowing users to easily monitor network connection status. Finally, it defines a strict data format at the application layer for error control. The method disclosed in this invention can greatly enhance the reliability of Ethernet connectionless protocol data transmission. Attached Figure Description
[0017] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 This is a block diagram of Ethernet data transmission in the prior art; Figure 2 This is a schematic diagram of the Ethernet packet data format in the prior art; Figure 3 This is a flowchart of Ethernet packet data processing in existing technology; Figure 4 This is a logical RTL diagram of Ethernet connectionless protocol data transmission in the prior art; Figure 5 This is the overall logic RTL diagram for enhancing the reliability of Ethernet connectionless protocol data transmission in this invention. Detailed Implementation
[0019] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] The present invention will be further explained below with reference to specific embodiments.
[0021] Please see Figure 5 This invention provides an Ethernet connectionless protocol data transmission reliability enhancement system, which includes an Ethernet data receiving module, a receiving RAM cache module, a protocol judgment module, an ARP table cache update module, a UDP application layer protocol processing module and a UDP protocol response module, an ARP, ICMP, and UDP data FIFO cache module, a protocol arbitration response module, a sending RAM cache module, and an Ethernet data sending module.
[0022] In this embodiment, the received Ethernet packet data enters the Ethernet data receiving module. After processing, the Ethernet data receiving module enters the RAM buffer. The protocol judgment module retrieves the data from the RAM, judges different protocols, and outputs it to the FIFO buffer. The protocol arbitration response module retrieves the data from the FIFO according to the data length in the FIFO and the command from the UDP protocol acknowledgment module, and outputs it to the sending RAM module. The Ethernet data sending module sends the data according to the Ethernet format, using the Ethernet UDP protocol. The UDP protocol has advantages such as fast transmission speed and simple implementation, but it has the problems of connectionless and unreliable transmission. To address this shortcoming, in addition to CRC check, UDP acknowledgment and integrated ARP and ICMP protocols are added. Strict data format is defined at the application layer for error control, thereby enhancing the reliability of Ethernet connectionless protocol data transmission.
[0023] Please see Figure 5 This invention also provides a method for enhancing the reliability of Ethernet connectionless protocol data transmission. This method is implemented using the aforementioned system and includes: 1. The Ethernet data receiving module performs CRC check and determines the destination MAC address simultaneously on the packet data. During CRC check, the preamble and start-of-frame delimiter are extracted first to check the subsequent data. After checking a packet, an error flag is output. If the error flag is 1, the packet is discarded and received again. Determining the destination MAC address ensures accurate data reception without the sending end broadcasting every time. After determining the destination MAC address, a RAM write address is generated, write enable is enabled, 8 bits of write data are output to the receive RAM buffer module, and a packet reception end flag is output to the protocol determination module. 2. The receiving RAM cache module caches the data output by the Ethernet data receiving module. The receiving RAM cache module is an asynchronous RAM. Asynchronous means that the read and write clocks are different, which can handle cross-clock domain problems well, ensure correct data transmission, and the RAM can read data at will according to the address, ensuring flexibility when retrieving data. 3. The protocol judgment module waits for the packet reception end flag to go high, then retrieves the source MAC address and source IP address from RAM and outputs them to the address data update module. It retrieves the protocol type data from RAM, determines whether it is ARP, UDP, or ICMP, and then parses it according to the respective protocol format. After parsing, if it is ARP or ICMP, it encapsulates the packet according to the respective protocol format and outputs the encapsulated packet data to different FIFOs. If it is UDP, the UDP data is output to the UDP application layer protocol processing module, and a UDP data reception completion flag is generated and output to the UDP protocol acknowledgment module. 4. The ARP table cache update module receives the latest source MAC address and source IP address, and stores them in the register accordingly; 5. UDP Application Layer Protocol Processing Module and UDP Protocol Reply Module: These modules work together to implement UDP protocol response. The output UDP data enters the UDP Application Layer Protocol Processing Module, which processes the application layer protocol and raises the UDP data reception completion flag. The UDP Protocol Reply Module is responsible for waiting for the UDP data reception completion flag to go high. After it goes high, it integrates the reply protocol content agreed upon by both communicating parties into the register, outputs it to the UDP_FIFO buffer, and simultaneously outputs a reply command to the protocol arbitration reply module for response. 6. The ARP, ICMP, and UDP data FIFO caching modules cache intermediate data for the ARP, ICMP, and UDP protocols respectively, and output the length of the cached data to the protocol arbitration response module; 7. The protocol arbitration response module receives response commands in real time and receives the data length from the ARP, ICMP, and UDP data FIFO buffer module. It determines which protocol to respond to based on the response command or data length, with the response command having the highest priority. Once the response command is activated, regardless of whether the data length in the FIFO has reached the threshold, only the protocol content from the non-connection response module is responded to. For ARP, ICMP, and UDP, the response protocol is determined based on the data length in the FIFO. Simultaneously, the received source MAC address and source IP address are treated as the destination MAC address and destination IP address of this device and encapsulated in the response content. The response content is then output to the transmit RAM buffer module. The data length in the FIFO is saved to a register and output to the Ethernet transmit module. 8. Send protocol data cached by the RAM buffer module and wait for the Ethernet transmission module to retrieve the data; 9. The Ethernet transmitting module determines whether the received data length is sufficient, since the minimum Ethernet data transmission length is 46 bytes. If not, it pads the data to 46 bytes and converts it to Ethernet format before transmission. At the end of the data transmission, it sends a 4-byte checksum generated by the CRC check module.
[0024] In this embodiment, the present invention adds a UDP protocol response module to the CRC data verification. Upon receiving non-connection protocol data from the sender, the module replies with certain data to inform the sender whether the data packet has been successfully received. The sender can retransmit lost data packets based on the response message, improving the stability of data transmission. ARP and ICMP protocols are also added. ARP enables mapping between IP addresses and MAC addresses, ensuring that data packets are correctly transmitted to the target device. ICMP reports network errors and status information, such as target unreachable or timeout, facilitating user monitoring of network connection status. Simultaneously, strict data formats are defined at the application layer for error control, as shown in Table 1-1. The method disclosed in this invention can significantly enhance the reliability of Ethernet connectionless protocol data transmission.
[0025] Table 1-1 Application Layer Data Format
[0026] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An Ethernet non-connection protocol data transmission reliability enhancement system, characterized in that, The system comprises: Ethernet data receiving module, for receiving Ethernet packet data and performing CRC check and destination MAC address judgment; Receiving RAM cache module, for caching data output by the Ethernet data receiving module; Protocol judgment module, for judging protocol type and analyzing data; ARP table cache update module, for storing source MAC address and source IP address; UDP application layer protocol processing module and UDP protocol reply module, for processing UDP data and implementing reply; ARP, ICMP, UDP data FIFO cache module, for caching intermediate data; Protocol arbitration reply module, for determining reply protocol according to reply command or data length; Sending RAM cache module, for caching protocol data to be sent; Ethernet data sending module, for sending Ethernet data to the network.
2. The Ethernet non-connectivity protocol data transmission reliability enhancement system of claim 1, wherein, When the Ethernet data receiving module performs CRC check, the preamble and frame start delimiter are extracted first, and then the subsequent data is checked. After the check is completed, an error flag is output. If the error flag is 1, the data packet is discarded, and the packet data is received again.
3. The Ethernet non-connected protocol data transmission reliability enhancement system of claim 1, wherein, The receiving RAM cache module is an asynchronous RAM, and the read and write clocks are different, so as to realize cross-clock domain data transmission.
4. The Ethernet non-connected protocol data transmission reliability enhancement system of claim 1, wherein, When the protocol judgment module processes UDP protocol data, the UDP protocol data is only output to the UDP application layer protocol processing module, and the application layer protocol is processed by the UDP application layer protocol processing module.
5. The Ethernet non-connection protocol data transmission reliability enhancement system of claim 4, wherein, When there is no reply command, the protocol arbitration reply module determines the reply protocol according to the data length of the data cached in the ARP, ICMP, UDP data FIFO cache module.
6. The Ethernet non-connected protocol data transmission reliability enhancement system of claim 1, wherein, The Ethernet data sending module supplements the data length when the data length is less than 46 bytes, and adds a CRC check value.
7. A method for reliability enhancement of Ethernet non-connection protocol data transmission, using the system according to any one of claims 1-6, characterized in that, The method comprises the following steps: The received Ethernet packet data enters the Ethernet data receiving module; After the Ethernet data receiving module is processed, it enters the RAM cache module for caching; The protocol judgment module takes out data from the RAM, judges different protocols, and outputs to the FIFO cache; The protocol arbitration reply module takes out data from the FIFO according to the data length in the FIFO and the command of the UDP protocol reply module, and outputs the data to the sending RAM module; The Ethernet data sending module sends the data cached in the sending RAM cache module in the Ethernet format.
8. The method for reliability enhancement of Ethernet non-connection protocol data transmission according to claim 7, characterized in that, After the Ethernet data receiving module receives the Ethernet packet data, it performs CRC check and destination MAC address judgment on the data simultaneously. If the CRC check is incorrect, the data packet is discarded and received again. If the CRC check is correct and the destination MAC address matches, a RAM write address, a write enable, and 8-bit write data are generated and output to the receiving RAM cache module, and a packet reception end flag is output to the protocol judgment module.
9. The method for reliability enhancement of Ethernet connectionless protocol data transmission of claim 7, wherein, The application layer data format of the data sent by the Ethernet data sending module includes a frame header, a command, a length, and data. The frame header is a fixed value 0xbb11bb11, occupying 4 bytes; the command occupies 1 byte, indicating the content of the frame; the length occupies 2 bytes, indicating the length of the subsequent data field; and the data is the data load.
10. The method for reliability enhancement of Ethernet non-connection protocol data transmission according to claim 8, characterized in that, The method further comprises the following steps: The ARP table cache updating module receives the latest source MAC address and source IP address output by the protocol judging module and stores them in the register correspondingly; The UDP application layer protocol processing module processes the application layer protocol of the input UDP protocol data; The UDP protocol reply module integrates data in the register according to the reply protocol content agreed by the communication parties after receiving the UDP data receiving completion flag, outputs the integrated data to the UDP_FIFO cache module, and outputs a reply command to the protocol arbitration reply module; The ARP, ICMP and UDP data FIFO cache modules cache the intermediate data of the ARP, ICMP and UDP protocols respectively and output the data length cached to the protocol arbitration reply module.
Citation Information
Cited By
Baseband data transmission method, device and system based on collaborative cache architecture
CN121711412A