RE: TCP Checksum Interoperability

Michael Smith <msmith@corp.iready.com> Fri, 05 April 2002 18:30 UTC

Message-ID: <034670D62D19D31180990090277A37B7021214C1@mercury.corp.iready.com>
From: Michael Smith <msmith@corp.iready.com>
To: Robin Uyeshiro <ruyeshiro@iready.com>, "'l.wood@eim.surrey.ac.uk'" <l.wood@eim.surrey.ac.uk>, "'mankin@isi.edu'" <mankin@ISI.EDU>, tcp-impl@grc.nasa.gov, "'tcp-impl@egroups.com'" <tcp-impl@egroups.com>
Cc: Michael Smith <msmith@corp.iready.com>
Subject: RE: TCP Checksum Interoperability
Date: Fri, 5 Apr 2002 10:30:48 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1DCD0.021EB640"
Sender: owner-tcp-impl@grc.nasa.gov
Precedence: bulk
Status: RO
Content-Length: 10502
Lines: 297

Lloyd: your comment is interesting.

I know there hasn't been much activity on tcp-impl, but it's still there.
Allison sent an email a while back encouraging it's use, but I can't find
that just now.

To subscribe (or unsubscribe) to the tcp-impl mailing list, send mail to
majordomo@grc.nasa.gov with one of the following in the body of the message.


subscribe tcp-impl 

unsubscribe tcp-impl 

There's also http://groups.yahoo.com/group/tcp-impl/ but activity there
stopped about July 2001. I never understood how the two mailing lists
related, but I posted your mail (below) to both, I hope you don't mind.

Aloha

Mike Smith
CTO, iReady

-----Original Message-----
From: Lloyd Wood [mailto:l.wood@eim.surrey.ac.uk]
Sent: Friday, April 05, 2002 4:43 AM
To: Chris Trobridge
Cc: ietf@ietf.org
Subject: Re: TCP Checksum Interoperability


See sections 3-5 of RFC1624 for discussion of the one's complement
problem for the IP header checksum. I presume similar applies for TCP,
although I don't know offhand if it's written down anywhere.

L.


On Fri, 5 Apr 2002, Chris Trobridge wrote:

> I writing to this list because the TCP workgroup was shutdown a while ago.
>
> We have a compatibility problem between two third party implementations of
> the TCP checksum.
>
> The problem concerns the representation of zero, which has two 1-s
> complement representations (0000 and ffff).
>
> We don't have source to either stack but I managed to deduce the problem
> from looking at a packet trace.  The receiver drops all datagrams
containing
> a TCP with a TCP checksum of ffff.
>
> The receiver appears to be following the checksum procedure in the RFC
> literally - ie zero checksum, recalculate and check that the result is the
> complement of what the sender sent.  The problem is that the sender and
> receiver don't agree about zero and hence the datagram is dropped
silently.
>
> My view is that the receiver is in error; it should be checking the
special
> case of 0.
>
> All the receiver code I have seen doesn't work this way.  The normal
> approach is to calculate the1-s complement sum with checksum in place and
> check that this is zero.  The methods I konw always return just one
> representation for zero, hence there is no special case.
>
> Any thoughts?
>
> Thanks,
> Chris
>


stupid autoappended signatures below.

>
>
----------------------------------------------------------------------------
-------------------------------------
> The information contained in this message is confidential and is intended
> for the addressee(s) only.  If you have received this message in error or
> there are any problems please notify the originator immediately.  The
> unauthorized use, disclosure, copying or alteration of this message is
> strictly forbidden. Baltimore Technologies plc will not be liable for
direct,
> special, indirect or consequential damages arising from alteration of the
> contents of this message by a third party or as a result of any virus
being
> passed on.
>
> In addition, certain Marketing collateral may be added from time to time
to
> promote Baltimore Technologies products, services, Global e-Security or
> appearance at trade shows and conferences.
>
> This footnote confirms that this email message has been swept by
> Baltimore MIMEsweeper for Content Security threats, including
> computer viruses.
>
>

<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>


-
This message was passed through ietf_censored@carmen.ipv6.cselt.it, which
is a sublist of ietf@ietf.org. Not all messages are passed.
Decisions on what to pass are made solely by Raffaele D'Albenzio.