What is the effect of the pseudo header in UDP?

475 Views Asked by At

I know the pseudo header is used to compute the checksum of UDP.But I don't know why.

1

There are 1 best solutions below

2
On BEST ANSWER

The reason is that the checksum has to be in the UDP packet before it's given to the IP layer (which adds its own IP header). The pseudo header contains only a few parts of the information that would be in the IP header, and calculates the checksum out of these parts and the UDP content.

After the checksum is calculated, the pseudo header is discarded, it is not transferred!

The client then receives the full IP packet and can validate the checksum with the UDP packet contents and the full IP header.