Re: TCP question



David Kerber wrote:

No, it does not guarantee the order; just that they will be received intact. Consecutive packets can even take different routes from sender to receiver, which can easily change the receipt order. If one is lost or damaged en route, it will request a resend of that particular packet, and that can change the order as well.

I think the only time you can expect the order to be correct is if there are no routers between the source and the destination, and I'm not even sure if it's guaranteed even then.


You are mistaken.
The packets may be out of order at some lower network level, but they
will be straightened out first *or they will never reach the TCP level*
at your end.

Therefore through the use TCP you actually do get that guarantee.

Your mistake is thinking you should even /care/ what goes on at levels
lower than the one you're currently concerned with.


Bob
--
.



Relevant Pages

  • Re: TCP question
    ... the code you have for receiving the packets ... Consecutive packets can even take different routes from sender ... which can easily change the receipt order. ...
    (microsoft.public.vb.general.discussion)
  • Re: Traffic Load sharing
    ... the timing differences between the routes ... sending packets via alternating interfaces can lead to different ... alternating interfaces is seldom as effective as load distribution ... distribution rather than per-packet load distribution. ...
    (comp.dcom.sys.cisco)
  • RE: Multiple routes to the same destination
    ... why not alter routes in a script, you are not going to send packets belonging to the same session in multiple routes would ya? ... Multiple routes to the same destination ... round robin is really not what you want with IP packets. ...
    (freebsd-net)
  • Re: Two NIC cards => Possible to Configure Two Default Routes?
    ... >> since if eth0 receives traffic, then response would be sent back ... >> this topic from past posts, where folks have achieved this using ... Transmitted packets are ... It has two default routes, ...
    (comp.os.linux.networking)
  • Re: Socket : how to read multiline
    ... SMTP goes over IP. ... IP can drop packets, leading to retransmissions at ... the TCP level. ...
    (comp.lang.tcl)