06-08-2014 11:42 PM - edited 03-07-2019 07:40 PM
Hi Experts,
I have a question regarding UDP. I know UDP is a stateless protocol. But what are scenarios where we send data traffic using UDP beacuse using UDP we send keepalives messages/communication protocols use UDP like SNMP/RIP/OSPF but in all cases hello messages are sent continuosly irrespective of expecting retransmission funda like TCP. so what will happen if data is sent by UDP and data is lost in between then as user , I need to send data again or what are scenarios where UDP is used for data transfer ? Also I want to know waht are scenarios where we prefer UDP than TCP and why ?
Solved! Go to Solution.
06-13-2014 10:43 AM
If data is lost using UDP, upper layer protocols need to be able to handle this.
So, the application using UDP to transfer data must handle the errors and recover.
In TCP, this is built in.
The application does not have to specifically handle transmission errors because they will be resolved at the transport layer.
When low latency is required, UDP is preferred.
UDP is smaller, faster, and has less overhead.
Otherwise TCP should be used.
06-14-2014 07:48 AM
Hi,
In addition to what FratianiD (+5) has posted
Have a read at this link.
It explains about error checking and udp usage for time critical apps like voip etc.
http://en.wikipedia.org/wiki/User_Datagram_Protocol
Hope this helps
Regards
Alex
06-13-2014 01:04 AM
no single reply for my thread ? ok thanks.
06-13-2014 10:43 AM
If data is lost using UDP, upper layer protocols need to be able to handle this.
So, the application using UDP to transfer data must handle the errors and recover.
In TCP, this is built in.
The application does not have to specifically handle transmission errors because they will be resolved at the transport layer.
When low latency is required, UDP is preferred.
UDP is smaller, faster, and has less overhead.
Otherwise TCP should be used.
06-14-2014 07:48 AM
Hi,
In addition to what FratianiD (+5) has posted
Have a read at this link.
It explains about error checking and udp usage for time critical apps like voip etc.
http://en.wikipedia.org/wiki/User_Datagram_Protocol
Hope this helps
Regards
Alex
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: