Re: Stupid checksum and next LSA begining question

"Naidu, Venkata" <Venkata.Naidu@MARCONI.COM> Thu, 18 September 2003 15:07 UTC

Received: from cherry.ease.lsoft.com (cherry.ease.lsoft.com [209.119.0.109]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA16762 for <ospf-archive@LISTS.IETF.ORG>; Thu, 18 Sep 2003 11:07:44 -0400 (EDT)
Received: from PEAR.EASE.LSOFT.COM (209.119.0.19) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <15.00BA90B1@cherry.ease.lsoft.com>; Thu, 18 Sep 2003 11:07:48 -0400
Received: from PEACH.EASE.LSOFT.COM by PEACH.EASE.LSOFT.COM (LISTSERV-TCP/IP release 1.8e) with spool id 55323903 for OSPF@PEACH.EASE.LSOFT.COM; Thu, 18 Sep 2003 11:07:46 -0400
Received: from 169.144.68.6 by WALNUT.EASE.LSOFT.COM (SMTPL release 1.0i) with TCP; Thu, 18 Sep 2003 11:07:45 -0400
Received: from mailman.pit.comms.marconi.com (mailman.pit.comms.marconi.com [169.144.2.12]) by mailgate.pit.comms.marconi.com (8.9.3/8.9.3) with ESMTP id LAA10947 for <OSPF@PEACH.EASE.LSOFT.COM>; Thu, 18 Sep 2003 11:07:44 -0400 (EDT)
Received: from uspitsmsgrtr01.pit.comms.marconi.com (uspitsmsgrtr01.pit.comms.marconi.com [169.144.2.221]) by mailman.pit.comms.marconi.com (8.9.3/8.9.3) with ESMTP id LAA11139 for <OSPF@PEACH.EASE.LSOFT.COM>; Thu, 18 Sep 2003 11:07:44 -0400 (EDT)
Received: by uspitsmsgrtr01.pit.comms.marconi.com with Internet Mail Service (5.5.2653.19) id <S6M3NNAA>; Thu, 18 Sep 2003 11:07:44 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain; charset="iso-8859-1"
Message-ID: <39469E08BD83D411A3D900204840EC55FB704A@vie-msgusr-01.dc.fore.com>
Date: Thu, 18 Sep 2003 11:07:43 -0400
Reply-To: Mailing List <OSPF@PEACH.EASE.LSOFT.COM>
Sender: Mailing List <OSPF@PEACH.EASE.LSOFT.COM>
From: "Naidu, Venkata" <Venkata.Naidu@MARCONI.COM>
Subject: Re: Stupid checksum and next LSA begining question
To: OSPF@PEACH.EASE.LSOFT.COM
Precedence: list

Erblich,

->         When given a "update packet with say 5 LSAs", and the
->         1st LSA in this packet has a checksum error, should
->         the rest of the LSAs in the update be attempted to be
->         processed?

  1. If you are talking about LSA checksum (which is Fletcher
     checksum).

     RFC 2328 page 142 section 13 says:
     . . .
     (1) Validate the LSA's LS checksum.  If the checksum turns out
         to be invalid, discard the LSA and get the next one from
         the Link State Update packet.
     . . .

  2. If you are talking about OSPF packet checksum

     RFC 2328 page 61 section 8.2 says:
     . . .
         The authentication procedure may also
         verify the checksum field in the OSPF packet header (which,
         when used, is set to the standard IP 16-bit one's complement
         checksum of the OSPF packet's contents after excluding the
         64-bit authentication field).  If the authentication
         procedure fails, the packet should be discarded.
     . . .

->         Note: If we have a checksum error, this means that the
->         length and the start of the next LSA COULD be wrong.
->
->         We could assume that checking the type of the next LSA
->         could be within a valid LSA type range, and still not
->         have the correct begining of the 2nd or 3rd ... LSAs.

  In such a case, OSPF packet checksum could be wrong. So, the
  whole OSPF packet will be discarded.

Venkata.