We know that UDP
checksum's pseudo header contains the most important parts of the IP header,
that is, source and destination address, protocol number and data length.
I hope that the concept of IP addresses
is present in the network layer
and the transport layer
is above it, so how does the transport layer
know the IP address
at the sending side because at the sender side, first the transport layer
header is first encapsulated around the data coming from application layer
and then the IP header
is attached. I mean, how does the transport layer
get to know the IP address
when this facility is present at the bottom layer (Network layer
) to make pseudo header
?