search the web

Monday, May 30, 2016

Connectionless and Connection-Oriented Services

Connection-less and Connection-Oriented Services

When an application uses the connection-oriented service, the client and the
server send control packets to each other before sending packets with real
data (such as e-mail messages). This so-called handshaking procedure
alerts the client and server, allowing them to prepare for flowing of packets.
Once the handshaking procedure is finished, a "connection" is said to be
established between the two end systems.
Example: TCP

TCP three-way handshake

TCP three-way handshake
TCP three-way handshake

Connectionless Service

There is no handshaking with the Internet's connectionless service.
When one side of an application wants to send packets to another side
of an application, the sending application simply sends the packets.
Since there is no handshaking procedure prior to the transmission of
the packets, data can be delivered faster.
UDP (User Datagram Protocol)
But there are no acknowledgments either, so a source never knows for
sure which packets arrive at the destination.


No comments: