google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.: Transport Layer Protocols

Sunday, May 8, 2016

Transport Layer Protocols

Need of Transport Layer
a. The Internet layer provides unreliable , connectionless service - "best effort" network.
b. The underlying layer (internal layer ) provides the connectionless protocol IP .
c. Datagrams may be lost or reordered .
d. Datagrams can be duplicated or delivered after long delays .
Thus , there is a need for a layer , which takes care of end - to - end delivery.

Features of transport layer
i. True end to end layer .
ii. Takes care of process to process delivery.
iii. Acts as a liaison between the application layer and the underlying internetwork details .
iv. Shields the applications  from  the complexities of the internetwork.
v. Provides a "logical communication " between application processes running on different hosts .

For this purpose ,it performs the following duties:
i. Packetizing : Divides the application data into packets to be sent over the internetwork .
ii. Connection Control : Controls the "logical " connection between applications processes on source and destination hosts .
iii. Addressing: The packets have to be given to the correct application in the destination machine . For this purpose ,the transport layer uses port numbers to identify the application .

Types of Transport Protocols
The end to end applications require transport services of different types.
a. Some applications like file transfer ,remote login,etc. require reliable ,full duplex , data transmission .
b. Applications using client -server communication ,internet  telephony etc. do not need reliable communication but the communication has to be done at high speed.
Hence there are two protocols in the transport layer :
i. Connectionless unreliable service - UDP
ii. Reliable byte -stream service - TCP

i. UDP
User Datagram Protocol
UDP is a connectionless
unreliable protocol.
- No connection is established  between the sender and receiver beforehand.
- "Best effort" i.e. UDP segments may be lost or delivered out of order .
It does not provide flow and error control.
The sender and receiver applications are identified by ports .
It does multiplexing at the source and demultiplexing at the receiver to deliver data segments to the correct application.

Why is UDP used ?
In spite of the fact that is connectionless and unreliable , UDP is used because
i.    It is a very simple protocol.
ii.   Requires minimum overhead.
iii.  Communication is much faster.
iv.   Some applications themselves do flow and error control. For them, UDP is ideal.

UDP Datagram
The various fields of the datagram are as follows:
Source Port Number (16 bits): Port number used by process running on source host.
Destination Port Number (16 bits ) : Port number used by process running  on destination host.
Length (16 bits ) : Total length of datagram.
Checksum (16 bits ): Optional field . Used to detect errors.

UDP Applications:
i.  It is used for one off data transfer applications.
ii.  If a process requires request response communication like DNS ,UDP is used.
iii.  Some processes have internal error and  flow control mechanisms. They can use UDP, which will be faster. Example : Trivial File Transfer Protocol (TFTP).
iv.  Used in multimedia applications where a stream of multimedia data has to be sent from the source to the receiver.
v.   TCP does not support multi casting or broadcasting . Hence ,applications requiring multi casting or broadcasting use UDP.
vi.  Used in router updating protocols for updating router tables
vii. It can also be used for reliable data transfer, if reliability is added at the application layer.
viii.  Used in Network  Management Protocols like SNMP for communication between manager and agent processes .

No comments:

Post a Comment

रामायण

रामायण दशरथ की तीन पत्नियाँ – कौशल्या, सुमित्रा , कैकेयी दशरथ के चार पुत्र – राम,लक्ष्मण,भरत,शत्रुघ्न दशरथ: राम के पिता और कौशल के राजा कौशल...