On Wed, May 4, 2011 at 9:52 PM, Lieven Moors <lievenmoors(a)gmail.com> wrote:
On Wed, May
04, 2011 at 09:53:59AM -0400, Paul Davis wrote:
> you have no idea which one actually came first unless you simply don't
> use a reliable transport layer. in that case, the one that arrived
> first is the response to the earlier request. but now you've got an
> unreliable transport layer.
I'm reading this again...
Wouldn't this apply to UDP then?
(as unreliable transport layer)
if you use UDP, and you send two identical queries and get two
responses, then the first response will correspond to the first query.
but if you use UDP, you may only get one response (or even none).
if you use TCP, and you send two identical queries, and get two
responses, you don't know (without more information) which response
corresponds to which query. you will, however, always get two
responses (assuming that the receiver/server stays up etc, and if it
doesn't you will find that out too).