Method and device for receiving data message
A data message and receiving method technology, applied in the electronic field, can solve the problems of repeated data retransmission, waste of network resources, unstable use, etc., to reduce interaction, avoid packet loss, and improve efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] This embodiment provides a data sending method. like figure 1 As shown, the data sending method includes the following steps (S101-S105):
[0043] S101. Obtain a message to be transmitted, where the message to be transmitted consists of N data packets;
[0044] In this embodiment, the message to be transmitted may be a TCP / IP protocol message, or may be a User Datagram Protocol (User Datagram Protocol, UDP for short) message. Wherein, the message to be transmitted may be divided into N data packets, where N is a positive integer.
[0045] Among the existing UDP transmission protocols, the UDP protocol is a connectionless transport layer protocol in the Open System Interconnection (OSI) reference model, which provides simple and unreliable information transmission services. It is used to process UDP data packets in the same way as TCP / IP protocol in the network. However, UDP does not provide data packet grouping, assembly, and cannot sort data packets. That is to say...
Embodiment 2
[0067] This embodiment provides a method for receiving data packets. The data packet receiving method corresponds to the data sending method provided in Embodiment 1. like Figure 5 As shown, the data message receiving method includes the following steps (S201-S205):
[0068] S201. Set S cache units in advance, and sequentially number the S cache units, wherein one cache unit is used to store one data packet;
[0069] In this implementation, in order to store N data packets of the message to be transmitted in Embodiment 1, the receiving end presets S buffer units, where S is a positive integer and should be greater than or equal to N. The receiving end sequentially numbers the S cache units 1, 2, ... S in advance, and the numbers of the first N cache units in the S cache units correspond to the numbers of the N data packets one by one, and one cache unit is used to store a The data packet, and the data packet can only be stored in the cache unit corresponding to its number....
Embodiment 3
[0090] This embodiment also provides a data transmission system. like Image 6 As shown, the system includes a data sending device and a data message receiving device, wherein the data sending device can be applied to the data sending method of Embodiment 1, and the specific structure is as follows Figure 7 As shown, the data message receiving device can be applied to the data message receiving method of Embodiment 2, and the specific structure is as follows Figure 8 shown. For the specific functions of the data sending device and the receiving device, refer to the specific descriptions in Embodiments 1 and 2. This embodiment is only briefly described.
[0091] like Figure 7 As shown, the data sending device includes:
[0092] The obtaining module is used to obtain the message to be transmitted, and the message to be transmitted is composed of N data packets;
[0093] The data packet processing module is used to number the N data packets sequentially, and perform check ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


