Explain Principal Differences Between Connection Less And Connection Oriented Communication.
| Feature | Connectionless Communication | Connection-Oriented Communication |
|---|---|---|
| Establishment of Connection | No explicit connection setup phase. Each packet is sent independently. | Connection setup phase precedes data transmission. A logical connection is established. |
| Reliability | No guarantee of reliable delivery. Packets may be lost, duplicated, or delivered out of order. | Reliable delivery ensured through acknowledgment mechanisms. Data integrity is maintained. |
| Overhead | Lower overhead as there is no need for connection setup and teardown processes. | Higher overhead due to the need for connection establishment, maintenance, and termination. |
| Example Protocols | UDP (User Datagram Protocol) is a common example. | TCP (Transmission Control Protocol) is a typical example. |
| State Information | Stateless: Each packet is treated independently without maintaining a session state. | Stateful: Session state information is maintained throughout the communication. |
| Flow Control | No flow control mechanism. Sender transmits packets at its own rate. | Flow control mechanisms exist to prevent congestion, ensuring smooth data flow. |
| Use Cases | Suitable for applications where occasional packet loss is acceptable, such as real-time multimedia streaming. | Ideal for applications that require reliable and ordered delivery, such as file transfers and web browsing. |