netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TCP/IP stack interpretation of acceptable packet
@ 2009-02-24 22:59 Oliver Zheng
  2009-02-28 15:50 ` Andi Kleen
  2009-03-19  0:44 ` [PATCH net-next-2.6] " John Dykstra
  0 siblings, 2 replies; 8+ messages in thread
From: Oliver Zheng @ 2009-02-24 22:59 UTC (permalink / raw)
  To: netdev

I was investigating behaviour of the TCP/IP stacks and noticed that
Linux has a peculiarity. When a packet is received with the correct
sequence number but incorrect acknowledgement number (in my tests, it
was higher than the correct acknowledgement number), the stack accepts
the packet as a valid packet and passes the data up to the application
(I do not know whether the ack information is accepted). According to
the list of tests described here in the TCP RFC 793 [1], accepting a
packet requires the packet to satisfy both sequence and
acknowledgement number tests; otherwise, the entirety of the packet
(its data and its acknowledgement information confirming reception of
previous data) should be dropped. Is this intentional, a bug, or am I
misinterpreting something? A nice flow chart that explains this
procedure is here [2].

Not to instigate flame, but Windows does this correctly, or at least
correctly in my interpretation of the spec.

[1] http://tools.ietf.org/html/rfc793#page-69
[2] http://www.medianet.kent.edu/techreports/TR2005-07-22-tcp-EFSM.pdf (page 17)

Cheers,
Oliver

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-23 18:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24 22:59 TCP/IP stack interpretation of acceptable packet Oliver Zheng
2009-02-28 15:50 ` Andi Kleen
2009-03-19  0:44 ` [PATCH net-next-2.6] " John Dykstra
2009-03-19  1:47   ` Oliver Zheng
2009-03-23  4:50   ` David Miller
2009-03-23 12:28     ` Andi Kleen
2009-03-23 15:13       ` John Dykstra
2009-03-23 18:58       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).