189k views
1 vote
1. Suppose a process in Host C has a UDP socket with port number 6789. Sup- pose both Host A and Host B each send a UDP segment to Host C with destination port number 6789. Will both of these segments be directed to the same socket at Host C? If so, how will the process at Host C know that these two segments originated from two different hosts?

User Dharma
by
6.9k points

1 Answer

7 votes

Yes. Host A and B have the same destination port numbers and thus, their UDP segments will arrive to the socket at host C. In this case, the UDP sockets are represented by the protocol IP and Port. Host C will be able to differentiate between them by doing a check on the source IP and source port from the UDP header.

User Ximbal
by
6.1k points