-1

Suppose a process in Host C has a UDP socket with port number 12345. Suppose both Host A and Host B each sends a UDP segment to Host C with destination port number 12345. Will both of these segments be directed to the same socket at Host C? Why?

I would think yes they would be since it doesnt matter that their two different segments as long as they're running on the same port of 12345 .

Is this true? Why?

mfinni
  • 36,144
  • 4
  • 53
  • 86
Hi There
  • 1
  • 1

1 Answers1

2

Correct; because that's how listening sockets work.

mgorven
  • 30,615
  • 7
  • 79
  • 122
  • It's how *UDP* listening sockets work. (Because UDP is connectionless, both datagrams are being sent to the same endpoint.) – David Schwartz Apr 27 '12 at 19:43