Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE) PDF Download

Introduction

Multiplexing and Demultiplexing services are provided in almost every protocol architecture ever designed. UDP and TCP perform the demultiplexing and multiplexing jobs by including two special fields in the segment headers: the source port number field and the destination port number field. 

  • Multiplexing: Gathering data from multiple application processes of the sender, enveloping that data with a header, and sending them as a whole to the intended receiver is called multiplexing. 
  • Demultiplexing: Delivering received segments at the receiver side to the correct app layer processes is called demultiplexing.

Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE)

Figure: Abstract view of multiplexing and demultiplexing
Multiplexing and demultiplexing are the services facilitated by the transport layer of the OSI model.
Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE)

Figure: Transport layer- junction for multiplexing and demultiplexing
There are two types of multiplexing and Demultiplexing : 

  • Connectionless Multiplexing and Demultiplexing
  • Connection-Oriented Multiplexing and Demultiplexing

How Multiplexing and Demultiplexing is done
For sending data from an application on the sender side to an application at the destination side, the sender must know the IP address of the destination and port number of the application (at the destination side) to which he wants to transfer the data. Block diagram is shown below:
Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE)

Figure: Transfer of packet between applications of sender and receiver

  • Let us consider two messaging apps that are widely used nowadays viz. Hike and WhatsApp. Suppose A is the sender and B is the receiver. Both sender and receiver have these applications installed in their system (say smartphone). Suppose A wants to send messages to B in WhatsApp and hike both. In order to do so, A must mention the IP address of B and destination port number of the WhatsApp while sending the message through the WhatsApp application. Similarly, for the latter case, A must mention the IP address of B and the destination port number of the hike while sending the message.
  • Now the messages from both the apps will be wrapped up along with appropriate headers(viz. source IP address, destination IP address, source port no, destination port number) and sent as a single message to the receiver. This process is called multiplexing. At the destination, the received message is unwrapped and constituent messages (viz messages from a hike and WhatsApp application) are sent to the appropriate application by looking to the destination the port number. This process is called demultiplexing. Similarly, B can also transfer the messages to A.
    Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE)

Figure: Message transfer using WhatsApp and hike messaging application

The document Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Computer Networks.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
21 videos|113 docs|66 tests

Top Courses for Computer Science Engineering (CSE)

21 videos|113 docs|66 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Free

,

shortcuts and tricks

,

study material

,

MCQs

,

Previous Year Questions with Solutions

,

Sample Paper

,

Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE)

,

Extra Questions

,

ppt

,

Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE)

,

Exam

,

Objective type Questions

,

practice quizzes

,

Summary

,

Multiplexing & Demultiplexing | Computer Networks - Computer Science Engineering (CSE)

,

mock tests for examination

,

Important questions

,

Viva Questions

,

video lectures

,

Semester Notes

,

past year papers

,

pdf

;