Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2014-12-10
ALIBABA (CHINA) CO LTD
View PDF1 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] However, in the prior art, the above two transmission methods have certain defects, specifically: for TCP transmission, its speed is slow, the establishment of a connection requires more overhead (time, system resources), and the real-time performance is poor
For UDP transmission, the transmission is unreliable, it is easy to lose packets in the case of network congestion, the data packets are out of order, and the retransmission rate is high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Reliable transmission method based on UDP
  • Reliable transmission method based on UDP
  • Reliable transmission method based on UDP

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Disclosed is a reliable transmission method based on UDP. The transmission features of TCP is combined during UDP transmission, the connection is established through handshake for 3 times and is remained through heart beats, the connection can be broke actively or when the heart beats cannot be received, and a reliable transmission channel for data transmission is established; during data transmission, data are transmitted in a manner of maximum efficiency through a sliding window and a retransmission mechanism. By the aid of the method, the data transmission is more flexible, parameters can be adjusted dynamically so as to be adaptive to different network environments; the adaption range is wider, and the method is adaptive to the P2P network; various network environments adaptive to UPD applicant occasions are optimized greatly, the UDP transmission efficiency is improved, the retransmission rate is decreased, and data redundancy is reduced; when network abnormality occurs, a series of measures are performed, and the quality of network transmission is guaranteed.

Description

technical field [0001] The present application relates to a network transmission method, in particular to a reliable transmission method based on UDP and combined with TCP transmission characteristics. Background technique [0002] At present, when designing network data transmission schemes, TCP (Transmission Control Protocol) transmission mode and UDP (User Datagram Protocol) transmission mode are commonly used. [0003] TCP transmission [0004] TCP is a connection-based protocol. Before data communication, the communication parties need to establish a connection, open up a channel for the data to be sent in advance, and then send the data. [0005] The TCP protocol stipulates class flow control to ensure that the communication data reaches the destination reliably and in sequence, so there is a requirement for a three-way handshake. According to the requirements of the protocol specification, the implemented routing device provides corresponding support, and tries not...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
Inventor 石杰张士波杨敬宇姚键潘柏宇卢述奇
Owner ALIBABA (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products