[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TCP checksum recalculation



On Tue, 20 Jul 1999, Robert Moskowitz wrote:
> The way I see it, each router decrements the TTL, but will not recompute
> the checksum, as the next protocol is NOT TCP.

The TCP checksum doesn't cover the TTL.  It does cover some fields of the
IP header, but only selected ones, and the TTL is not among them.

The IP checksum, which covers the whole IP header, does need to be updated
when the TTL changes.  (And people have devised assorted clever ways of
doing that without full recomputation.)  The TCP checksum doesn't; it is
deliberately an end-to-end check, not something updated at each hop.

> Oh with MIKE, consider that at each IKE SA boundary, the addresses are
> altered at each point (shades of RSIP), so then TCP checksum would really
> be broken and partial recalculation would be different (not just TTL, but
> whole IP).

Yes, messing with the *addresses* is a much stickier problem.

                                                          Henry Spencer
                                                       henry@spsystems.net
                                                     (henry@zoo.toronto.edu)



References: