In: Computer Science
Discuss how demultiplexing is carried out using TCP and UDP.
Please make a table, one side FULLY explaining how demultiplexing is carried out using TCP and the other side FULLY explaining how demultiplexing is carried out using UDP.
Answer:
Demultiplexing in a network:
Transport layer gathers chunks of data it receives from different sockets and encapsulate them with transport headers. Passing these resulting segments to the network layer is called multiplexing. The reverse process which is delivering data to the correct socket by the transport layer is called demultiplexing.
Demultiplexing at TCP (Transmission Control Protocol ) |
Demultiplexing at UDP (User Datagram Protocol) |
As TCP is a connection oriented protocol, In TCP, the receiver host uses all of source IP, source port, destination IP and destination port to direct datagram to appropriate socket. | UDP is a connectionless protocol, so in UDP, the receiver only checks destination port number to direct the datagram. |
In TCP the data is transmitted in a particular sequence which means that packets arrive in-order at the receiver.Retransmission of data packets is possible in TCP in case packet get lost or need to resend. | On other hand there is no sequencing of data in UDP in order to implement ordering it has to be managed by the application layer.On other hand retransmission of packets is not possible in UDP. |
Hope this will be helpful for you............Thanks.