The Gateway to Computer Science Excellence
+1 vote
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 by Boss (11k points) | 49 views

1 Answer

+1 vote

$\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.

by Boss (19.4k points)
edited by
....plz explain in details??
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.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,833 questions
57,745 answers
108,061 users