Connection based communication and Datagram based communication
What is the difference between 'conne开发者_StackOverflowction based communication' and 'Datagram based communication'?
Though i have gone through this i am not clear.
Connection-based protocols such as TCP give you reliability and ordering assurances. They let you know if the packets you are sending actually reached their destination through an acknowledgment arrangement with the recipient. If any packets in a sequence don't make it through, the sender can be asked to resend the missing ones.
Connectionless, datagram-based protocols such as UDP don't give you reliability or ordering guarantees, but because there's "less to do" in the protocol it can be faster. Another major difference is that datagram-based protocols can usually support a broadcast of packets where multiple recipients get the same data delivered to them. With something like TCP, that's not possible because it's inherently point-to-point.
The Wikipedia pages on TCP and UDP are pretty good sources for learning more about the details.
精彩评论