Os and networking Lab programs

June 4, 2010

TCP communication

Filed under: Networking — osandnetworkingcslab @ 10:51 am

UDP is known as user datagram protocol. It is a connection less protocol. TCP is known as transmission control protocol and it is a connection oriented protocol. Both protocols are used for the communication between two ends. TCP has following advantages over UDP. (1) TCP gives guarantee that a packet will reach on the destination without any duplication and the order of data will be same. On the other hand UDP does not give guarantee that data will reach on destination. it does not gives guarantee that data will be in the same order and it also does not give guarantee that data will reached on destination without any duplication. (2) TCP is a reliable protocol but UDP is unreliable protocol. (3) Data transmission is more dependable on TCP than UDP. (4) As TCP is connection oriented protocol, it means that connection must be open between two ends before sending data. So both ends know all the things between a session as when the connection is closed and when it is opened. But in UDP when you send the data from one end then we cannot know whether data is reaching on the other end or not. As we just hope that it will reach on destination.

Blog at WordPress.com.