Connection-less protocol/ UDP

- The user datagram protocol (UDP) is called as connection-less, unreliable transport protocol.
- It provides process to process communication instead of host to host communication.
- UDP is very simple protocol using minimum of overhead.
- If a process wants to send a message without the care of reliability then it uses UDP.
- UDP takes much less interaction between sender and receiver than using TCP and SCTP.
- UDP packets called as user data gram having the fixed size header of 8 bytes. Following figure shows the UDP header.
user datagram format, computer networking
1) Source port number
This is the port number used by the process running on the source host. Basically it is 16 bit long, means that it's range is from 0 to 65, 535. If the source host is the client, then most cases, port number is an ephemeral port number, means it lasts for very short time. If the source host is the server, then the port number in most cases is very well known port number.

2) Destination port number
This is the port number used by the process running on the destination host. Again it is 16 bit long. If the destination host is the client then most cases, the port number is very well known port number. If the destination host is server then the port number is an ephemeral port number.

3) Length
This is 16 bit field that defines the total length of the user datagram

4) Checksum
This field is used to detect errors over the entire user datagram.





Comments

Popular posts from this blog

Articulation point of graph / Biconnected components and DFS traversal

Brief shortnote on Requirement elicitation and requirement analysis

Requirement Engineering