in Computer Networks
2,239 views
3 votes
3 votes
Suppose a process in Host C has a UDP socket with port number 6789. Suppose 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?
in Computer Networks
2.2k views

1 comment

the requests for socket connection consist of tupples < ip used, source ip, destination ip,source port number, destination port number>. Since the requests A and B will be directed to same C port 6789 so the requests are differentiated by these tupples.
0
0

1 Answer

2 votes
2 votes

$\mathbf{\underline{Answer :}}$

Yes, both segments has to be directed to the same socket. At the socket interface, for each received segment, the processes will be provided with the IP addresses by the OS to determine the origins of the individual segments.

edited by
by

2 Comments

....plz explain in details??
0
0
Which detail do you want more?

The packets will be directed to the same socket and it will be resolved by the IP addresses provided by the OS, which will help in finding that the two packets were originated from the two different hosts.
2
2

Related questions