What if two computers send a UDP packet to one computer on the same port? How does the computer distinguish between the two packets?
Example:

    Requires Free Membership to View

 ( 128.9.0.32, 1184 )->( 128.10.2.3, 53 ) and
 ( 128.2.254.139, 1184 )- > ( 128.10.2.3, 53)

In UDP level the datagrams will have the same identifier because the identifier in UDP is the ports numbers. (1184,53)?
It depends on what you mean by "distinguish."

In general, are they handled the same way at Layer 4? Certainly. Any host sending to the same target host at the same port should get the same response at that level. However, assuming that UDP is built on top of IP (Layer 3), the source address for the UDP packets from two different hosts will be present and different. Thus the packets are distinguishable.

In addition, there are probably other headers and protocols present that would further distinguish the packets.

This was first published in April 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: