1.

Which is the correct expression for the length of UDP datagram?(a) UDP length = IP length – IP header’s length(b) UDP length = UDP length – UDP header’s length(c) UDP length = IP length + IP header’s length(d) UDP length = UDP length + UDP header’s lengthI have been asked this question in my homework.I want to ask this question from UDP topic in portion Transport Layer of Computer Network

Answer»

Correct option is (a) UDP length = IP length – IP header’s length

The best explanation: A USER DATAGRAM is encapsulated in an IP datagram. There is a field in the IP header that DEFINES the total length of the IP packet. There is another field in the IP header that defines the length of the header. So if we subtract the length of the IP header that is encapsulated in the IP packet, we get the length of UDP datagram.



Discussion

No Comment Found

Related InterviewSolutions