answersLogoWhite

0

How can you make udp reliable?

Updated: 12/20/2022
User Avatar

Wiki User

11y ago

Best Answer

Reliable UDP is impelemented much like how TCP is implemented. With each packet you have assign it an id. That id tells you its sequence with respect to the stream, and acts as a unique identifier if it gets dropped.

On the reciver side you recive these packets. After a set wait period (calculated based upon latency and other factors) you send the sender the packet ids which you have recived. You can''t send the packets you haven''t recived becuase you dont know if either there weren''t any packets sent or they all got dropped, so you send the ones which you have recived. Of course its possible this ack packet could be loss, if so then on the senders side, a complete resend will occur. So assuming the ack is not lost, the sender recived the list of sent packets. It then sends packets which were loss. That''s the gist of it.

If you use this reliable UDP stream with respect to packet boundaries, you can ignore the stream consistency and use the packets as they arrive. It will give you lower transcational latency with respect to packet loss. If not then you will suffer the same behavior which TCP streams have when there is loss, high latency. That is if you want to use the reliable UDP like a data stream, the sequenece must be complete before you can send it to the application. That means waiting on packet resends. If that is the case, might as well go with TCP. However if you know that the packets are independent of each other, and can be processed as they come in, you don''t need to wait on resends.

Good Luck

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you make udp reliable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is it possible for application to enjoy reliable data transfer even when the application runs over UDP?

It is possible for an application to enjoy reliable data transfer over UDP. UDP uses checksum to learn whether data reached is true or not. You can also ensure reliability by creating a private protocol built on UDP.


What is the most significant difference between the Layer 4 TCP and the Layer 4 UDP?

the main difference between UDP and TCP is that UDP is not a reliable protocol.


Why would you use UDP but not Tcp in real time application?

UDP is alot faster than TCP. So if its realtime obviously it has to be fast, thus UDP. The only problem is UDP isn't as reliable or as secure as TCP. But it does have the speed advantage.


IS TCP is unreliable Protocol?

No TCP a reliable protocol whereas UDP is unreliable.


What is the Difference between the TCP and UDP in computer networking?

An important difference is that TCP includes mechanisms for reliable data communication (lost parts of the communication are re-sent), UDP doesn't. TCP is used when such a reliable communication is important. When speed is more important than reliability, UDP is used instead. This is the case with phone or video communication over the Internet.An important difference is that TCP includes mechanisms for reliable data communication (lost parts of the communication are re-sent), UDP doesn't. TCP is used when such a reliable communication is important. When speed is more important than reliability, UDP is used instead. This is the case with phone or video communication over the Internet.An important difference is that TCP includes mechanisms for reliable data communication (lost parts of the communication are re-sent), UDP doesn't. TCP is used when such a reliable communication is important. When speed is more important than reliability, UDP is used instead. This is the case with phone or video communication over the Internet.An important difference is that TCP includes mechanisms for reliable data communication (lost parts of the communication are re-sent), UDP doesn't. TCP is used when such a reliable communication is important. When speed is more important than reliability, UDP is used instead. This is the case with phone or video communication over the Internet.


What application layer protocol is commonly used to support for the file transfers between client and server?

You can use either TCP or UDP. If you need reliable connection use TCP otherwise UDP.


Is a UDP packet smaller than a TCP packet?

In general, yes, using UDP transport will use a smaller packet than TCP. UDP generally assumes that the complete message will fit within a single packet, unlike TCP which will segment or break apart a message into multiple packets for guaranteed reliable delivery. UDP has no such requirement to deliver anything within a reliable framework and would like to keep the entire message within a single packet and eliminate the segmentation and reassembly process.


Are both UDP and IP unreliable to the same degree?

When IP sends a packet, it receives a confirmation for each packet and, if needed, rebroadcast the packet. This makes it reliable. UDP does not get confirmation. It broadcast each packet only once and assumes that it get to you. This makes it less reliable then IP because it does not check for problems or rebroadcast.


Which Transport layer protocol provides low overhead andwould be used for applications which do not require reliable data delivery?

UDP


Which transport layer protocol provides low overhead and would be used for applications which do not require reliable data delivery?

UDP


Why is that the tcp's rfc has more pages and is more complex than udp's rfc?

Because TCP does far more things than UDP. UDP does not do flow control or congestion control or guarantee in-order and reliable packet delivery. TCP does all those things therefore it needs more functionality.


Why do v use udp instead of tcp for transmiting video signals?

UDP does not have the overhead of providing a reliable connection. That makes it more appropriate for applications where quick responses are more important than a guaranteed delivery of every packet.