3.1 Introduction of Transport Layer Service
3.1 Introduction of Transport Layer Service
3.1 Introduction of Transport Layer Service
Transport layer
More than one transport layer protocol available to network application. For example the internet has two
protocols TCP and UDP
Multiplexing
The job of gathering data chunk with header information to create segment, and passing the segments to
the network layer called multiplexing
Demultiplexing.
This job of delivering the data in a transport layer segment to the socket is called demultiplexing.
32 Bit
Source port# Dest port#
When UDP socket is created in this manner, the transport layer automatically assigns a port
number to the socket. The transport layer assign a port number in the range 1024 to65535 that is
currently not being used by any other UDP port in the host.
It is important to note that a UDP socket is fully identified by a two-tuple consisting of
destination IP address and destination port number.
If two UDP segment have different source IP address and or source port number, but have the
same destination IP address and destination port number.
Connection- oriented multiplexing and demultiplexing
UDP USE:
Streaming multimedia apps
DNS
SNMP
Reliable transfer over UDP:
Add reliability at application layer
Application-specific error recovery
length Checksum
Application data (payload)
3.3.2 UDP Checksum
The UDP checksum provide for error detection. The checksum is used to determine whether bit
within the UDP segment have been altered it moved from source to distination.
For example TCP is reliable data transfer protocol implemented on the top of an unreliable (IP) end to
end network layer.