In literature, I see UDP datagram format as following:
I cannot understand why it does not include source and destination IP addresses?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Sign up to join this communityIn literature, I see UDP datagram format as following:
I cannot understand why it does not include source and destination IP addresses?
Because you're looking at the UDP Datagram, which is the payload in an IP Datagram. The IP Header has the src/dst IP addresses.
At transmission the psuedoheader is added for the destination and source IP addresses. This might clarify the process a bit more:
By itself, the UDP packet header only contains the source port and destination port of the client/target as well as a checksum and length.
This is a related question asked on StackOverflow: