TCP/IP networks, and in particular the Internet, provide two types of services
to end-system applications: connectionless service and connection-oriented service . A developer creating an
Internet application must design the application to use one of these two services.
- Connection-Oriented Service
The Internet's connection-oriented service comes bundled with several other
services, including reliable data transfer, flow control, and congestion control. By reliable data transfer we mean
that an application can rely on the connection to deliver all of its data without error and in the proper order. Flow control
makes sure that neither side of a connection overwhelms the other side by sending too many packets too fast. The Internet's
congestion-control service hellps prevent the INternet from entering a state of gridlock. When a packet switch becomes
congested, its buffers can overflow and packet loss can occur. The Internet's connection-oriented service has a name--Transmission
Control Protocol (TCP).
- Connectionless Service
When one side of an application wants to send packets to the other side of
the application, the sending program simply sends the packets. Since there is no handshaking procedure prior to data packet
transmission, data can be delivered sooner. This makes connectionless service ideal for simple transaction-oriented applications.
But there is no reliable data transfer either, so a source never knows for sure which packets have arrived at the destination.
The Internet's connectionless service is called User Datagram Protocol (UDP).
|