开发者

About checksum of TCP/IP layer

Has anyone tested what will happen if checksum doesn't match?

Will the packet be ignored directly?

Suppos开发者_如何学JAVAe it's HTTP protocal at the application layer.


HTTP will never see the bad packet. Remember that TCP guarantees (best effort) that it will give you an error free contiguous stream of data, which is what HTTP uses.

In TCP, at some point the client will generate a NACK instead of an ACK. Depending on if selective ACK was negotiated, either the bad packet or a subset of the packets received will be retransmitted by the server (in the TCP layer, the HTTP server has no knowledge except for higher latency).

The checksum is discussed in the TCP RFC: http://www.faqs.org/rfcs/rfc793.html Section 3.1 (Page 16)

RFC1071 goes into detail about the checksum.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜