Reliable transmission method based on UDP
A transmission method and reliable technology, applied in the field of network transmission, can solve problems such as unreliable transmission, out-of-order data packets, poor real-time performance, etc., and achieve the effects of wide adaptability, efficiency improvement, and quality assurance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Establish a connection: UDP-based transmission does not need to establish a connection. In order to establish a reliable transmission channel, the dual transmission can simulate the 3-way handshake of TCP to establish a connection.
[0043] Maintain connection: tell the other party that you are active by sending heartbeat packets to the other party regularly.
[0044] Disconnection: Disconnection includes two situations, one is that the transmission party actively disconnects; the other is that the heartbeat of the other party cannot be waited for a long time, and the connection is disconnected.
[0045] Specifically, it includes the following aspects.
[0046] Establish connection: The traditional UDP transmission method does not need to establish a connection. In order to establish a reliable connection between the two transmission parties, the 3-way handshake of TCP transmission is simulated. see figure 1 , shows a sequence diagram of establishing a connection of the...
Embodiment 2
[0054] Data transmission: Each client can be either a sender or a receiver, so during data transmission, a send buffer and a receive buffer need to be allocated to store sent and received data respectively. The data from the application layer is first placed in the sending buffer, and the data in the buffer is sent out one by one through scheduling, and the receiving end will reply the corresponding ack packet after receiving it, indicating that the data of this packet has been received, and the next data packet can be sent After receiving the ack, the sender can send the next data packet, and at the same time free up the old buffer for new data, and so on to achieve communication between the two parties. In the case of packet loss, the timer judges that the data packets that have not received ack for a long time are resent. For the specific implementation process (taking 4 windows as an example), see figure 2 A sequence diagram of data transmission according to a UDP-based ...
Embodiment 3
[0061] Data packet loss: Since packet loss may occur when UDP is used to transmit data, when this happens, it is necessary to be able to resend the discarded data packets to the receiving end through data retransmission.
[0062] see image 3 , shows an exemplary sequence diagram of retransmission of data packet loss in the UDP-based reliable transmission method according to a specific embodiment of the present invention. Among them, ack2 indicates that data packet 1 has been received and data packet 2 needs to be received. Ack2 and sack3 indicate that the following data packet 3 has been received, and data packet 2 needs to be received, that is, ack indicates that the data packet in front of the sequence has been received, and the subsequent data packet is required, and sack indicates that the data packet located behind the sequence has been received. Through the combination of ack and sack, when using UDP network transmission, it is possible to clearly know what data packet...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com