[go: up one dir, main page]

CN115396532A - Low-cost aviation Ethernet implementation method and system based on Ethernet udp protocol - Google Patents

Low-cost aviation Ethernet implementation method and system based on Ethernet udp protocol Download PDF

Info

Publication number
CN115396532A
CN115396532A CN202210815111.2A CN202210815111A CN115396532A CN 115396532 A CN115396532 A CN 115396532A CN 202210815111 A CN202210815111 A CN 202210815111A CN 115396532 A CN115396532 A CN 115396532A
Authority
CN
China
Prior art keywords
data packet
server
client
response
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210815111.2A
Other languages
Chinese (zh)
Inventor
李莎莎
程金
杨斌斌
王芸
席康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Qianshan Avionics Co Ltd
Original Assignee
Shaanxi Qianshan Avionics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shaanxi Qianshan Avionics Co Ltd filed Critical Shaanxi Qianshan Avionics Co Ltd
Priority to CN202210815111.2A priority Critical patent/CN115396532A/en
Publication of CN115396532A publication Critical patent/CN115396532A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a low-cost aviation Ethernet implementation method and a system based on an Ethernet udp protocol, wherein a response type communication mechanism is adopted by a client and a server, the client sends a data packet to the server and then enters a packet loss retransmission judgment mode, the server waits for a response returned by the server, the client judges the packet loss retransmission mechanism of the returned data packet after receiving the response, and if the current data packet is not lost, the client sends the next data packet to the server; and if the current data packet is lost, the client resends the current data packet to the server. The invention improves the reliability of data transmission based on the Ethernet udp protocol and realizes the purpose that the Ethernet udp protocol can transmit high-capacity, real-time and reliable data.

Description

基于以太网udp协议的低成本航空用以太网实施方法及系统Implementation method and system of low-cost aviation Ethernet based on Ethernet UDP protocol

技术领域technical field

本发明涉及航空用以太网技术领域,具体涉及一种基于以太网udp协议的低成本航空用以太网实施方法及系统。The invention relates to the technical field of aviation Ethernet, in particular to a low-cost aviation Ethernet implementation method and system based on the Ethernet UDP protocol.

背景技术Background technique

以太网是一类作为使用最为广泛的数据总线,其规范简单,维护简便、易于升级拓展。基于以太网的数据传输中,可以通过tcp(Transmission ControlProtocol,传输控制协议)协议的“三次握手、四次挥手”机制为数据传输提供可靠交付服务,此种传输方式因占用过多系统资源不适合实时性、大容量数据的传输。而udp(User Datagram Protocol,用户数据报协议)协议无需建立连接,具有较好的实时性,适合大容量数据传输,但此种传输方式不提供拥塞控制和流量控制,无法保证数据的可靠交付。因此,需要提供一种基于以太网udp协议的低成本航空用以太网实施方法,以保证传输的实时性及可靠性。Ethernet is the most widely used data bus with simple specifications, easy maintenance, and easy upgrade and expansion. In Ethernet-based data transmission, reliable delivery services can be provided for data transmission through the "three-way handshake, four-way handshake" mechanism of the TCP (Transmission Control Protocol, Transmission Control Protocol) protocol. This transmission method is not suitable for taking up too many system resources Real-time, large-capacity data transmission. The udp (User Datagram Protocol, User Datagram Protocol) protocol does not need to establish a connection, has good real-time performance, and is suitable for large-capacity data transmission, but this transmission method does not provide congestion control and flow control, and cannot guarantee reliable delivery of data. Therefore, it is necessary to provide a low-cost aviation ethernet implementation method based on ethernet udp protocol to ensure real-time and reliability of transmission.

发明内容Contents of the invention

有鉴于此,本申请实施例提供一种基于以太网udp协议的低成本航空用以太网实施方法及系统,以达到提高基于以太网udp协议的数据传输的可靠性,实现以太网udp协议可以传输大容量、实时性及可靠性数据的目的。In view of this, the embodiment of the present application provides a low-cost aviation Ethernet implementation method and system based on the Ethernet udp protocol, so as to improve the reliability of data transmission based on the Ethernet udp protocol, and realize that the Ethernet udp protocol can transmit The purpose of large capacity, real-time and reliability data.

本申请实施例提供以下技术方案:一种基于以太网udp协议的低成本航空用以太网实施方法,客户端和服务器端采用应答响应式通信机制,客户端向服务器端发送数据包后进入丢包重发判断模式,并等待服务器端回传应答,客户端收到应答后,对回传的数据包进行丢包重发机制判断,若当前数据包无丢失,则客户端向服务器端发送下一数据包;若当前数据包发生丢失,则客户端向服务器端重新发送当前数据包。The embodiment of the present application provides the following technical solutions: a low-cost aviation Ethernet implementation method based on the Ethernet udp protocol, the client and the server adopt a response-response communication mechanism, and the client sends a data packet to the server and enters packet loss Resend judgment mode, and wait for the server to send back a response. After the client receives the response, it will judge the packet loss and resend mechanism for the returned data packet. If the current data packet is not lost, the client will send the next one to the server. Data packet; if the current data packet is lost, the client resends the current data packet to the server.

根据本申请实施例的一种实施方式,客户端在向服务器端发送数据包前,将待发送数据拆分,并生成带有标识信息的udp数据包。According to an implementation manner of the embodiment of the present application, before sending the data packet to the server, the client splits the data to be sent and generates a udp data packet with identification information.

根据本申请实施例的一种实施方式,所述丢包重发机制包括,所述客户端采用时间阻塞方式判断数据包是否丢失,客户端向服务器端发送udp数据包后等待服务器端回传应答,若客户端在预设时间内未收到服务器端的回传应答,则客户端向服务器端重新发送当前数据包。According to an implementation manner of an embodiment of the present application, the packet loss retransmission mechanism includes that the client uses a time blocking method to determine whether a data packet is lost, and the client sends a udp data packet to the server and waits for the server to return a response , if the client does not receive a response from the server within the preset time, the client resends the current data packet to the server.

根据本申请实施例的一种实施方式,所述服务器端接收到udp数据包后,将当前udp数据包进行拆分,并将当前udp数据包的标识信息进行打包,将打包后的数据包作为所述回传应答发送至所述客户端。According to an implementation manner of the embodiment of the present application, after receiving the udp data packet, the server side splits the current udp data packet, packs the identification information of the current udp data packet, and uses the packed data packet as The return response is sent to the client.

根据本申请实施例的一种实施方式,所述丢包重发机制还包括,所述客户端在接收到所述服务器端的回传应答后,解析并检测当前数据包携带的标识信息,若与当次发送的数据包标识信息不一致,则客户端向服务器端重新发送当前数据包。According to an implementation manner of the embodiment of the present application, the packet loss retransmission mechanism further includes: after the client receives the reply from the server, it parses and detects the identification information carried in the current data packet, and if it is the same as When the identification information of the data packet sent this time is inconsistent, the client resends the current data packet to the server.

根据本申请实施例的一种实施方式,所述udp数据包包括包头部分和payload数据部分,所述包头部分包括总包数、序列号、时间戳、总包长度标识信息。According to an implementation manner of the embodiment of the present application, the udp data packet includes a header part and a payload data part, and the header part includes identification information of total packet number, sequence number, time stamp, and total packet length.

根据本申请实施例的一种实施方式,客户端向服务器端重新发送当前数据包时,若重新发送的次数累计超过预设值,则客户端输出故障信息。According to an implementation manner of the embodiment of the present application, when the client resends the current data packet to the server, if the cumulative number of resends exceeds a preset value, the client outputs a failure message.

本申请还提供一种基于以太网udp协议的低成本航空用以太网实施系统,包括:The application also provides a low-cost aviation Ethernet implementation system based on the Ethernet udp protocol, including:

客户端,所述客户端包括数据包发送模块、应答接收判断模块、数据包重发模块;The client, the client includes a data packet sending module, a response reception judgment module, and a data packet retransmission module;

服务器端,所述服务器端包括数据包接收模块、数据包解析模块、应答包回传模块;The server end, the server end includes a data packet receiving module, a data packet parsing module, and a response packet return module;

所述数据包发送模块用于向服务器端发送数据包,所述数据包接收模块用于等待并接收所述数据包发送模块发送的数据包,所述数据包解析模块用于对接收到的数据包进行解析,所述应答包回传模块用于将解析后的数据包回传至所述应答接收判断模块;所述应答接收判断模块用于对回传的数据包进行丢包重发机制判断,若当前数据包无丢失,则所述数据包发送模块向所述数据包接收模块发送下一数据包;若当前数据包发生丢失,则所述数据包重发模块向所述数据包接收模块重新发送当前数据包。The data packet sending module is used to send a data packet to the server, the data packet receiving module is used to wait for and receive the data packet sent by the data packet sending module, and the data packet parsing module is used to analyze the received data The packet is analyzed, and the response packet return module is used to return the analyzed data packet to the response reception judgment module; the response reception judgment module is used to perform a packet loss retransmission mechanism judgment on the returned data packet , if the current data packet is not lost, the data packet sending module sends the next data packet to the data packet receiving module; if the current data packet is lost, the data packet retransmission module sends the data packet to the data packet receiving module Resend the current packet.

根据本申请实施例的一种实施方式,所述应答接收判断模块进行丢包重发机制判断时,采用时间阻塞方式判断数据包是否丢失,所述数据包发送模块向服务器端发送udp数据包后等待服务器端回传应答,若所述应答接收判断模块在预设时间内未收到服务器端的回传应答,则所述数据包重发模块向服务器端重新发送当前数据包。According to an implementation manner of the embodiment of the present application, when the response receiving and judging module judges the packet loss retransmission mechanism, time blocking is used to judge whether the data packet is lost, and after the data packet sending module sends the udp data packet to the server Waiting for a response from the server, if the response receiving judgment module does not receive a response from the server within a preset time, the data packet retransmission module resends the current data packet to the server.

根据本申请实施例的一种实施方式,所述应答接收判断模块进行丢包重发机制判断时还包括,在采用时间阻塞方式判断数据包是否丢失后,若所述应答接收判断模块在预设时间内收到服务器端的回传应答,则继续将所述服务器端的回传应答进行解析,并检测当前数据包携带的标识信息,若与当次发送的数据包标识信息不一致,则所述数据包重发模块向服务器端重新发送当前数据包。According to an implementation manner of the embodiment of the present application, when the response reception judgment module judges the packet loss retransmission mechanism, it also includes: after using the time blocking method to judge whether the data packet is lost, if the response reception judgment module is within the preset After receiving the return response from the server within the specified time, continue to analyze the return response from the server, and detect the identification information carried in the current data packet. If it is inconsistent with the identification information of the data packet sent this time, the data packet The resending module resends the current data packet to the server.

与现有技术相比,本发明提出的一种基于以太网udp协议的低成本航空用以太网实施方法及系统,基于udp协议,采用自定义丢包重传机制,能够把丢包产生的延迟降到最低,实现以太网udp协议可以传输大容量、实时性及可靠性的数据传输。其有益效果如下:Compared with the prior art, a low-cost aviation Ethernet implementation method and system based on the Ethernet udp protocol proposed by the present invention, based on the udp protocol, adopts a self-defined packet loss retransmission mechanism, which can reduce the delay caused by packet loss Reduce to the minimum, realize the ethernet udp protocol can transmit large capacity, real-time and reliable data transmission. Its beneficial effects are as follows:

1.客户端和服务器端采用应答响应式通信机制,基于udp协议,可确保发送的数据包在应用层的可靠交付及实时传输。1. The client and server adopt a response-response communication mechanism based on the UDP protocol, which can ensure the reliable delivery and real-time transmission of the sent data packets at the application layer.

2.客户端的数据包重传机制触发条件有两条:第一,客户端在阻塞时间内没有收到服务器端应答回传的数据包;第二,客户端收到的应答回传数据包标识信息非当前发送的数据标识包信息。当以上两条发生之一时便触发客户端数据重传,有效保证了数据的正确性。2. There are two triggering conditions for the client’s data packet retransmission mechanism: first, the client does not receive the data packet sent back by the server within the blocking time; second, the reply packet received by the client identifies the The information is not the currently sent data identification packet information. When one of the above two occurs, it will trigger the client data retransmission, which effectively guarantees the correctness of the data.

3.客户端对待发送数据完成拆包发送,并判断udp包是否发送成功,服务器端为透传,仅做数据包标识信息的提取及回传,无须增加任何判断,将数据包丢失判断及重传机制与服务器端解耦,方便该方法的实施。3. The client completes the unpacking and sending of the sent data, and judges whether the udp packet is sent successfully. The server is transparently transmitted, and only extracts and returns the data packet identification information. There is no need to add any judgment, and the data packet loss judgment and retransmission The transmission mechanism is decoupled from the server side to facilitate the implementation of this method.

4.该方法为纯软件的实施方法,无需更改实施系统的硬件及配置,无需新增设备,可与现有系统的网络很好的兼容。4. This method is a pure software implementation method, without changing the hardware and configuration of the implementation system, without adding new equipment, and can be well compatible with the network of the existing system.

5.该系统中网络节点的接入及退出不影响系统及其它节点间交互通信,随时接入、随时退出,易于实现网络拓展。5. The access and exit of network nodes in the system will not affect the interactive communication between the system and other nodes, and can be accessed and exited at any time, which is easy to realize network expansion.

6.该方法和系统基于标准C语言开发,支持主流操作系统Windows、Linux、及VXworks,易于移植,不同操作系统可实现互通,网络节点灵活部署。6. The method and system are developed based on standard C language, support mainstream operating systems Windows, Linux, and VXworks, are easy to transplant, different operating systems can realize intercommunication, and network nodes can be flexibly deployed.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例的方法的工作流程图;Fig. 1 is the work flowchart of the method for the embodiment of the present invention;

图2为本发明实施例的系统结构框图。Fig. 2 is a system structure block diagram of an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本申请实施例进行详细描述。Embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明,对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and embodiments, and the technical solution of the present invention will be clearly and completely described. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例提供了一种基于以太网udp协议的低成本航空用以太网实施方法,客户端和服务器端采用应答响应式通信机制;客户端在向服务器端发送数据包前,先将待发送数据拆分,并生成带有标识信息的udp数据包,客户端向服务器端发送udp数据包后进入丢包重发判断模式,并等待服务器端回传应答,所述服务器端接收到udp数据包后,将当前udp数据包进行拆分,并将当前udp数据包的标识信息进行打包,将打包后的数据包作为所述回传应答发送至所述客户端;客户端收到应答后,对回传的数据包进行丢包重发机制判断,若当前数据包无丢失,则客户端向服务器端发送下一数据包;若当前数据包发生丢失,则客户端向服务器端重新发送当前数据包。客户端向服务器端重新发送当前数据包时,若重新发送的次数累计超过预设值,则客户端输出故障信息。The embodiment of the present invention provides a low-cost aviation Ethernet implementation method based on the Ethernet udp protocol. The client and the server adopt a response-response communication mechanism; The data is split, and a udp data packet with identification information is generated. After the client sends the udp data packet to the server, it enters the packet loss retransmission judgment mode, and waits for the server to send back a response. The server receives the udp data packet Afterwards, the current udp data packet is split, and the identification information of the current udp data packet is packaged, and the packaged data packet is sent to the client as the return response; after the client receives the response, the The returned data packet is judged by the packet loss and resend mechanism. If the current data packet is not lost, the client sends the next data packet to the server; if the current data packet is lost, the client resends the current data packet to the server. . When the client resends the current data packet to the server, if the cumulative number of resends exceeds the preset value, the client will output a fault message.

所述udp数据包包括包头部分和payload数据部分,所述包头部分包括总包数、序列号、时间戳、总包长度标识信息。The udp data packet includes a header part and a payload data part, and the header part includes total packet number, sequence number, time stamp, and total packet length identification information.

所述丢包重发机制包括,所述客户端采用时间阻塞方式判断数据包是否丢失,客户端向服务器端发送udp数据包后等待服务器端回传应答,若客户端在预设时间内未收到服务器端的回传应答,则客户端向服务器端重新发送当前数据包。所述丢包重发机制还包括,所述客户端在接收到所述服务器端的回传应答后,解析并检测当前数据包携带的标识信息,若与当次发送的数据包标识信息不一致,则客户端向服务器端重新发送当前数据包。The packet loss retransmission mechanism includes that the client uses a time blocking method to determine whether the data packet is lost, and the client sends the udp packet to the server and waits for the server to send back a response. If the client does not receive the packet within a preset time If the response is returned to the server, the client resends the current packet to the server. The packet loss retransmission mechanism further includes: after the client receives the response from the server, it parses and detects the identification information carried by the current data packet, and if it is inconsistent with the identification information of the currently sent data packet, then The client resends the current packet to the server.

本发明实施例的客户端和服务器端采用应答式通信机制。客户端数据包发送后等待服务器端回传应答,收到应答后客户端再发送下一包数据;服务器端始终等待客户端发送的数据包,收到数据包后并给客户端应回传表征数据包接收成功,等待接收下一包数据。The client and the server in the embodiment of the present invention adopt a response communication mechanism. After the client sends the data packet, it waits for the server to send back a response. After receiving the response, the client sends the next packet of data; the server always waits for the data packet sent by the client. After receiving the data packet, it returns a response to the client. The data packet is received successfully, waiting to receive the next packet of data.

所述客户端和服务器端均可配置基于udp协议的网路缓冲区大小,以提高通信速率。Both the client and the server can configure the size of the network buffer based on the udp protocol to increase the communication rate.

如图1所示,本发明实施例的以太网实施方法流程具体包括以下步骤:As shown in Figure 1, the Ethernet implementation method process of the embodiment of the present invention specifically includes the following steps:

步骤P1,客户端的数据包封装模块将待发送的总数据包拆分,分割为udp协议支持的最大数据包长度,本实施例分割65535字节,并生成带有标识信息的udp数据包,每个数据包均含有包头和payload数据,包头内容包括标识信息,包含总包数、序列号、时间戳、总包长度;In step P1, the data packet encapsulation module of the client splits the total data packet to be sent into the maximum data packet length supported by the udp protocol. This embodiment divides 65535 bytes and generates a udp data packet with identification information. Each data packet contains header and payload data, and the content of the header includes identification information, including the total number of packets, sequence number, timestamp, and total packet length;

步骤P2,客户端的的数据包发送模块,将封装好的udp数据包,以单包的形式,基于以太网udp协议格式顺次发送;Step P2, the data packet sending module of the client sends the encapsulated udp data packets sequentially based on the Ethernet udp protocol format in the form of a single packet;

步骤P3,服务器端的数据包接收模块持续等待接收udp数据包,并自动接收;Step P3, the data packet receiving module on the server side continues to wait for receiving the udp data packet, and automatically receives it;

步骤P4,服务器端数据包解析模块,将接收到的udp数据包解析出payload数据包和包含标识信息的数据包头,提取当前数据包的标识信息;Step P4, the server-side data packet parsing module parses the received udp data packet out of the payload data packet and the data packet header containing the identification information, and extracts the identification information of the current data packet;

步骤P5,服务器端将udp数据包提取出的payload数据放入预设的存储区,并将标识信息回传,回传后保持等待接收数据状态;Step P5, the server side puts the payload data extracted from the udp data packet into the preset storage area, and returns the identification information, and keeps waiting to receive the data after the return;

步骤P6,客户端的应答接收判断模块判断udp数据包是否丢失,首先采用时间阻塞方式,若发送完数据包在预定时间内未收到服务器端的回传数据包,则判断当前udp数据包已丢失;若客户端在预定时间收到服务器端回传数据包,则解析出回传的标识信息,并检测标识信息是否正确,若与当前发送的数据包标识信息不一致则判断当前udp数据包已丢失,若一致则调用数据包发送模块继续发送下一包;Step P6, the client's response receiving judgment module judges whether the udp data packet is lost, first adopts the time blocking mode, if the return data packet of the server end is not received within the predetermined time after sending the data packet, then it is judged that the current udp data packet is lost; If the client receives the data packet returned by the server at the scheduled time, it will parse out the returned identification information and check whether the identification information is correct. If it is inconsistent with the currently sent data packet identification information, it will be judged that the current udp data packet has been lost. If consistent, call the data packet sending module to continue sending the next packet;

步骤P7,可选的,用于客户端在判断udp数据包丢失的情况下,基于当前udp数据包标识信息,调用数据包重发模块重新发送当前数据包。Step P7, optionally, is used for the client to call the data packet resending module to resend the current data packet based on the identification information of the current udp data packet when judging that the udp data packet is lost.

如图2所示,本发明实施例的基于以太网udp协议的低成本航空用以太网实施系统,客户端51包括:As shown in Figure 2, the low-cost aviation Ethernet implementation system based on the Ethernet udp protocol of the embodiment of the present invention, the client 51 includes:

数据包封装模块21,用于所述客户端51将待发送的总数据包拆分,分割为udp协议数据包支持的最大长度,并生成带有标识信息的udp数据包,每个数据包均含有包头和payload数据,包头内容即为标识信息,包含总包数、序列号、时间戳、总包长度等;The packet encapsulation module 21 is used for the client 51 to split the total packet to be sent into the maximum length supported by the udp protocol packet, and generate a udp packet with identification information, each packet Contains header and payload data, the content of the header is the identification information, including the total number of packets, serial number, timestamp, total packet length, etc.;

数据包发送模块22,用于客户端51将封装好的udp数据包,以单包的形式,基于以太网udp协议格式顺次发送;Packet sending module 22 is used for client 51 to send encapsulated udp packets in the form of a single packet based on the Ethernet udp protocol format;

应答接收判断模块23,用于所述客户端51判断udp数据包是否丢失,首先采用时间阻塞方式,若发送完数据包在预定时间内未收到服务器端52的回传数据包,则判断当前udp数据包已丢失;进一步地,若收到回传数据包,则解析出回传的标识信息,并检测标识信息是否正确,若与当前数据包标识信息不一致则判断当前udp数据包已丢失,若一致则调用数据包发送模块22继续发送下一包;Response reception judging module 23 is used for the client 51 to judge whether the udp data packet is lost, first adopts the time blocking mode, if the return data packet of the server end 52 is not received within the predetermined time after sending the data packet, then judge the current The udp data packet has been lost; further, if the returned data packet is received, the returned identification information is parsed out, and whether the identification information is checked is correct. If it is inconsistent with the current data packet identification information, it is judged that the current udp data packet has been lost. If consistent then call data packet sending module 22 and continue to send next bag;

数据包重发模块24,用于所述客户端51在已判断udp数据包丢失的情况下,重新发送当前数据包。The data packet resending module 24 is used for the client 51 to resend the current data packet when it has been judged that the udp data packet is lost.

本发明实施例的服务器端52包括:The server end 52 of the embodiment of the present invention includes:

数据包接收模块31,用于服务器端52基于udp协议接收数据,所述服务器端52启动后持续等待接收udp数据包,并为自动接收;The packet receiving module 31 is used for the server end 52 to receive data based on the udp protocol, and the server end 52 continues to wait for receiving the udp packet after starting, and is automatically received;

数据包解析模块32,用于所述服务器端52将接收到的udp数据包解析出payload数据包和包含标识信息的数据包头,提取当前数据包的标识信息;The data packet analysis module 32 is used for the server end 52 to parse the received udp data packet out of the payload data packet and the data packet header containing the identification information, and extract the identification information of the current data packet;

应答包回传模块33,用于所述服务器端52将udp数据包提取出的payload数据放入缓存,并将标识信息回传,回传后保持等待接收数据状态。The response packet return module 33 is used for the server 52 to put the payload data extracted from the udp data packet into the cache, and return the identification information, and keep waiting for receiving data after the return.

本发明实施例中:基于客户端51和服务器端52采用应答式通信机制,客户端51的数据包发送模块22发送数据,服务器端52的数据包接收模块31接收数据,服务器端52的应答包回传模块即时回传,客户端51的应答接收判断模块23收到服务器端52的应答回传包,客户端51调用数据包发送模块22或数据包重发模块24。In the embodiment of the present invention: based on the client 51 and the server 52 using a response communication mechanism, the data packet sending module 22 of the client 51 sends data, the data packet receiving module 31 of the server 52 receives data, and the response packet of the server 52 The return module sends back immediately, the response receiving judgment module 23 of the client 51 receives the response return packet of the server 52 , and the client 51 invokes the data packet sending module 22 or the data packet retransmission module 24 .

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the application, but the scope of protection of the application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. All should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (10)

1.一种基于以太网udp协议的低成本航空用以太网实施方法,其特征在于:客户端和服务器端采用应答响应式通信机制,客户端向服务器端发送数据包后进入丢包重发判断模式,并等待服务器端回传应答,客户端收到应答后,对回传的数据包进行丢包重发机制判断,若当前数据包无丢失,则客户端向服务器端发送下一数据包;若当前数据包发生丢失,则客户端向服务器端重新发送当前数据包。1. A low-cost aviation Ethernet implementation method based on the Ethernet udp protocol is characterized in that: the client and the server end adopt a response-response communication mechanism, and the client enters packet loss and retransmission judgment after sending a data packet to the server end mode, and wait for the server to send back a response. After the client receives the response, it will judge the packet loss and retransmission mechanism for the returned data packet. If the current data packet is not lost, the client will send the next data packet to the server; If the current data packet is lost, the client resends the current data packet to the server. 2.根据权利要求1所述的基于以太网udp协议的低成本航空用以太网实施方法,其特征在于:客户端在向服务器端发送数据包前,将待发送数据拆分,并生成带有标识信息的udp数据包。2. the low-cost aviation Ethernet implementation method based on Ethernet udp protocol according to claim 1, is characterized in that: before the client sends data packets to the server end, the data to be sent is split, and the data with A udp packet of identification information. 3.根据权利要求2所述的基于以太网udp协议的低成本航空用以太网实施方法,其特征在于:所述丢包重发机制包括,所述客户端采用时间阻塞方式判断数据包是否丢失,客户端向服务器端发送udp数据包后等待服务器端回传应答,若客户端在预设时间内未收到服务器端的回传应答,则客户端向服务器端重新发送当前数据包。3. the low-cost aviation Ethernet implementation method based on Ethernet udp protocol according to claim 2, is characterized in that: described packet loss retransmission mechanism comprises, described client adopts time blocking mode to judge whether data packet is lost , the client sends a udp data packet to the server and waits for the server to return a response. If the client does not receive the server’s return response within the preset time, the client resends the current data packet to the server. 4.根据权利要求3所述的基于以太网udp协议的低成本航空用以太网实施方法,其特征在于:所述服务器端接收到udp数据包后,将当前udp数据包进行拆分,并将当前udp数据包的标识信息进行打包,将打包后的数据包作为所述回传应答发送至所述客户端。4. the low-cost aviation Ethernet implementation method based on Ethernet udp protocol according to claim 3, is characterized in that: after the server end receives the udp data packet, the current udp data packet is split, and The identification information of the current udp data packet is packaged, and the packaged data packet is sent to the client as the return response. 5.根据权利要求3所述的基于以太网udp协议的低成本航空用以太网实施方法,其特征在于:所述丢包重发机制还包括,所述客户端在接收到所述服务器端的回传应答后,解析并检测当前数据包携带的标识信息,若与当次发送的数据包标识信息不一致,则客户端向服务器端重新发送当前数据包。5. The low-cost aviation Ethernet implementation method based on Ethernet udp protocol according to claim 3, characterized in that: the packet loss retransmission mechanism also includes, when the client receives the reply from the server end After the response is transmitted, the identification information carried by the current data packet is analyzed and detected. If it is inconsistent with the identification information of the currently sent data packet, the client resends the current data packet to the server. 6.根据权利要求2所述的基于以太网udp协议的低成本航空用以太网实施方法,其特征在于:所述udp数据包包括包头部分和payload数据部分,所述包头部分包括总包数、序列号、时间戳、总包长度标识信息。6. the low-cost aviation Ethernet implementation method based on Ethernet udp protocol according to claim 2, is characterized in that: described udp data packet comprises header part and payload data part, and described header part comprises total number of packets, Sequence number, time stamp, total packet length identification information. 7.根据权利要求1所述的基于以太网udp协议的低成本航空用以太网实施方法,其特征在于:客户端向服务器端重新发送当前数据包时,若重新发送的次数累计超过预设值,则客户端输出故障信息。7. the low-cost aviation Ethernet implementation method based on Ethernet udp protocol according to claim 1, is characterized in that: when the client resends the current data packet to the server end, if the number of times of resending exceeds the preset value , the client outputs the fault information. 8.一种基于以太网udp协议的低成本航空用以太网实施系统,其特征在于:包括:8. A low-cost aviation Ethernet implementation system based on Ethernet udp protocol, characterized in that: comprising: 客户端,所述客户端包括数据包发送模块、应答接收判断模块、数据包重发模块;The client, the client includes a data packet sending module, a response reception judgment module, and a data packet retransmission module; 服务器端,所述服务器端包括数据包接收模块、数据包解析模块、应答包回传模块;The server end, the server end includes a data packet receiving module, a data packet parsing module, and a response packet return module; 所述数据包发送模块用于向服务器端发送数据包,所述数据包接收模块用于等待并接收所述数据包发送模块发送的数据包,所述数据包解析模块用于对接收到的数据包进行解析,所述应答包回传模块用于将解析后的数据包回传至所述应答接收判断模块;所述应答接收判断模块用于对回传的数据包进行丢包重发机制判断,若当前数据包无丢失,则所述数据包发送模块向所述数据包接收模块发送下一数据包;若当前数据包发生丢失,则所述数据包重发模块向所述数据包接收模块重新发送当前数据包。The data packet sending module is used to send a data packet to the server, the data packet receiving module is used to wait for and receive the data packet sent by the data packet sending module, and the data packet parsing module is used to analyze the received data The packet is analyzed, and the response packet return module is used to return the analyzed data packet to the response reception judgment module; the response reception judgment module is used to perform a packet loss retransmission mechanism judgment on the returned data packet , if the current data packet is not lost, the data packet sending module sends the next data packet to the data packet receiving module; if the current data packet is lost, the data packet retransmission module sends the data packet to the data packet receiving module Resend the current packet. 9.根据权利要求8所述的基于以太网udp协议的低成本航空用以太网实施系统,其特征在于:所述应答接收判断模块进行丢包重发机制判断时,采用时间阻塞方式判断数据包是否丢失,所述数据包发送模块向服务器端发送udp数据包后等待服务器端回传应答,若所述应答接收判断模块在预设时间内未收到服务器端的回传应答,则所述数据包重发模块向服务器端重新发送当前数据包。9. the low-cost aviation Ethernet implementation system based on Ethernet udp protocol according to claim 8, characterized in that: when the response receiving judgment module judges the packet loss retransmission mechanism, the time blocking mode is used to judge the data packet Whether it is lost, the data packet sending module sends the udp data packet to the server and waits for the server to send back a response. If the response receiving judgment module does not receive the server’s return response within the preset time, the data packet The resending module resends the current data packet to the server. 10.根据权利要求9所述的基于以太网udp协议的低成本航空用以太网实施系统,其特征在于:所述应答接收判断模块进行丢包重发机制判断时还包括,在采用时间阻塞方式判断数据包是否丢失后,若所述应答接收判断模块在预设时间内收到服务器端的回传应答,则继续将所述服务器端的回传应答进行解析,并检测当前数据包携带的标识信息,若与当次发送的数据包标识信息不一致,则所述数据包重发模块向服务器端重新发送当前数据包。10. the low-cost aviation Ethernet implementation system based on Ethernet udp protocol according to claim 9, characterized in that: when the response receiving judgment module performs packet loss and retransmission mechanism judgment, it also includes, when adopting the time blocking mode After judging whether the data packet is lost, if the response reception judgment module receives the return response from the server within the preset time, continue to analyze the return response from the server, and detect the identification information carried by the current data packet, If it is inconsistent with the data packet identification information sent this time, the data packet resending module resends the current data packet to the server.
CN202210815111.2A 2022-07-11 2022-07-11 Low-cost aviation Ethernet implementation method and system based on Ethernet udp protocol Pending CN115396532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210815111.2A CN115396532A (en) 2022-07-11 2022-07-11 Low-cost aviation Ethernet implementation method and system based on Ethernet udp protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210815111.2A CN115396532A (en) 2022-07-11 2022-07-11 Low-cost aviation Ethernet implementation method and system based on Ethernet udp protocol

Publications (1)

Publication Number Publication Date
CN115396532A true CN115396532A (en) 2022-11-25

Family

ID=84116101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210815111.2A Pending CN115396532A (en) 2022-07-11 2022-07-11 Low-cost aviation Ethernet implementation method and system based on Ethernet udp protocol

Country Status (1)

Country Link
CN (1) CN115396532A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116527780A (en) * 2023-03-21 2023-08-01 华鼎国联四川动力电池有限公司 Communication method, device and system based on UDP
CN118093284A (en) * 2024-03-07 2024-05-28 广州航新电子有限公司 A test method and device for airborne intelligent display

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571689A (en) * 2010-12-10 2012-07-11 中兴通讯股份有限公司 Data transmission method and device
WO2021047397A1 (en) * 2019-09-09 2021-03-18 晶晨半导体(深圳)有限公司 Network lost packet retransmission method based on ts format and udp transmission manner
WO2022002043A1 (en) * 2020-06-30 2022-01-06 中兴通讯股份有限公司 Data retransmission method, network device, and computer readable storage medium
CN113965959A (en) * 2021-10-27 2022-01-21 重庆臻链汇物联网科技有限公司 Vehicle-mounted intelligent data connectionless reliable transmission method
CN114143382A (en) * 2021-11-30 2022-03-04 北京天融信网络安全技术有限公司 Method and system for bilateral accelerated data transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571689A (en) * 2010-12-10 2012-07-11 中兴通讯股份有限公司 Data transmission method and device
WO2021047397A1 (en) * 2019-09-09 2021-03-18 晶晨半导体(深圳)有限公司 Network lost packet retransmission method based on ts format and udp transmission manner
WO2022002043A1 (en) * 2020-06-30 2022-01-06 中兴通讯股份有限公司 Data retransmission method, network device, and computer readable storage medium
CN113965959A (en) * 2021-10-27 2022-01-21 重庆臻链汇物联网科技有限公司 Vehicle-mounted intelligent data connectionless reliable transmission method
CN114143382A (en) * 2021-11-30 2022-03-04 北京天融信网络安全技术有限公司 Method and system for bilateral accelerated data transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116527780A (en) * 2023-03-21 2023-08-01 华鼎国联四川动力电池有限公司 Communication method, device and system based on UDP
CN118093284A (en) * 2024-03-07 2024-05-28 广州航新电子有限公司 A test method and device for airborne intelligent display

Similar Documents

Publication Publication Date Title
KR100890978B1 (en) A dual proxy approach to tcp performance improvements over a wireless interface
CN112436994B (en) Data transmission method and electronic equipment
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
US20080170501A1 (en) Enhancing transmission reliability of monitored data
CN111435866B (en) Data transmission method and related device
CN107819539A (en) A kind of device and method for realizing time triggered ethernet side system
CN111711680A (en) File breakpoint continuous transmission method and device based on UDP (user Datagram protocol)
CN115396532A (en) Low-cost aviation Ethernet implementation method and system based on Ethernet udp protocol
CN113542148B (en) Message aggregation method and device, network card and readable storage medium
CN113630326A (en) Gigabit Ethernet flow control device
CN112436998A (en) Data transmission method and electronic equipment
CN107508828B (en) A kind of very-long-range data interaction system and method
CN116962509A (en) Network proxy method and network proxy system based on quic protocol
CN112910909A (en) Data packet processing method based on conversion of CoAP protocol and HTTP protocol
US20240333437A1 (en) Direct Access To Storage Device Via Switch Data Plane
EP3672189A1 (en) Data transmission method, device and system
CN112087290B (en) Control word transmission method and device and computer readable storage medium
CN116017564B (en) Satellite reverse link efficient transmission method, system, equipment and storage medium
RU2715016C1 (en) Transmitting device, method, program and recording medium
CN105611424A (en) Reliable audio and video transmission QOS method and system based on RUDP
US20030139929A1 (en) Data transmission system and method for DSR application over GPRS
CN115065982A (en) Method and system for improving 5G service transmission rate based on satellite link
Chen et al. An improved rudp for data transmission in embedded real-time system
EP4651473A1 (en) Data transmission method and related apparatus
CN112769804A (en) Internet security supervision method, system, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20221125