Computer Network Assignment 11

Difference Between Connection-Oriented and Connectionless Services

Introduction

In computer networks, data communication can occur in two main ways: connection-oriented and connectionless services. These services define how data is transmitted between sender and receiver and whether a dedicated connection is established before communication.


1) Connection-Oriented Service

In a connection-oriented service, a connection is established between sender and receiver before data transfer begins.

  • First, a connection is set up (handshake process).
  • Then data is transmitted.
  • After transmission, the connection is terminated.

This service ensures reliable delivery, error checking, and proper sequencing of data packets.

Features:

  • Reliable communication
  • Data arrives in order
  • Error detection and correction
  • Acknowledgement is required

Example:

  • TCP (Transmission Control Protocol)
  • Telephone conversation

2) Connectionless Service

In a connectionless service, no connection is established before sending data.

  • Data is sent directly without prior setup.
  • Each packet is treated independently.
  • No guarantee of delivery or order.

This service is faster but less reliable.

Features:

  • No connection setup
  • Faster transmission
  • No acknowledgement required
  • Packets may arrive out of order

Example:

  • UDP (User Datagram Protocol)
  • Postal service

Comparison Table

FeatureConnection-OrientedConnectionless
Connection SetupRequiredNot required
ReliabilityHighLow
Data OrderMaintainedNot guaranteed
SpeedSlowerFaster
AcknowledgementRequiredNot required
ExampleTCPUDP

Advantages and Disadvantages

Connection-Oriented

Advantages:

  • Reliable communication
  • Error-free data delivery
  • Ordered transmission

Disadvantages:

  • Slower due to setup
  • More overhead

Connectionless

Advantages:

  • Faster communication
  • Less overhead
  • Suitable for real-time applications

Disadvantages:

  • No guarantee of delivery
  • Possible data loss

Conclusion

Connection-oriented service provides reliable and ordered communication but requires connection setup. Connectionless service sends data without establishing a connection, making it faster but less reliable. The choice depends on the application requirement.


Viva Questions with Answers

1. Which service requires connection setup?

Connection-oriented service.

2. Which protocol is connectionless?

UDP.

3. Which service is more reliable?

Connection-oriented service.

4. Is acknowledgement required in connectionless service?

No.

5. Which service is suitable for video streaming?

Connectionless service (UDP).

Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top