and since that got me bothered like an ingrown nail I re-read the comparison carefully. If A holds a purge and gets from B a non-purge the purge wins per 7.3.16 (assuming same seq# and assuming A assumes again what B says is not a purge since checksum makes it impossible to reason about it) if I remember correctly so databases will try to sync by A flooding the purge. So we can argue I am initially confused but now I ask myself how will this prevent the recurring purge flooding after every compressed CSNP since both nodes will never agree that they hold both a purge not having a lifetime to look at unless we force the checksum to 0 and mandate on receiver to treat a compressed CSNP checksum 0 to indicate a purge which will make them 'agree'. So in a sense I may have been off as to the reason why we need to fake the checksum 0 to mean lifetime = 0 as well but for a different reason it seems we still need this change for correct flooding behavior. Or at minimum we have to say in the draft "if A has a purge and sees same seq# from B it MUST flood stuff back since it cannot reason about lifetime anymore and checksum is not comparable" ?
-- -tony On Wed, Nov 18, 2026 at 11:33 AM Tony Przygienda <[email protected]> wrote: > actually, maybe I need to explain the case I'm concerned with and see why > this is necessary > > So, A holds a purge lifetime 0 at seq# 7 with checksum 1 all fine and > advertises (without suggested change) seq#7,checksum 1 omitting the > lifetime > > now, if we do NOT enforce what I'm showing the following will NOT > synchronize > > B hods seq#7 with lifetime 300 and checkum 2 (or in most crazy case also > 1) > > now since lifetime is omitted and _if_ the checksum is not compared by A > because it says "hey, I have a purge so checksum doesn't matter and I have > no lifetime on the compressed CSNP so let's _assume_ it's the same". With > such both databases are out of sync and may never flood, A will hold valid > LSP, B will hold the purge unless we _assume_ that A's compressed CSNP will > mismatch on the checksum and stuff will heal (unless we have the crazy > case) ? > > Likely, not very but it's a DB synchronization hole (or maybe a half-way > one) which you are always concerned about as well (justifyingly so). > > unless I really missed something here and I am confused which can never be > excluded, the case is delicate ;-) and purges are double delicate as we all > know > > -- tony > > > On Wed, Nov 18, 2026 at 11:20 AM Tony Przygienda <[email protected]> > wrote: > >> actually, reading your stuff it may still be not clear. the fact that you >> do NOT compare the checksum is irrelevant here. >> >> You omit lifetime so saying >> >> a) it MUST be set to 0 on the compressed TLV even if the database holds >> a purge with a _non_ 0 checksum (which is perfectly compliant and may >> easily happen with some open source) >> b) the receiver seeing a checkum 0 on such TLV MUST interpret it as a >> purge and set lifetime to 0 >> >> is what is necessary for this to work. whether the checkum is ignored or >> not on purge is irrelevant here. a CSNP with 0 lifetime and non 0 checksum >> is per all standards spec perfectly valid unless you can quote an opposite >> normative text (which I could not find anywhere). Normative text saying >> that the "checksum must be ignored" does NOT imply by any means taht the >> checksum must be set to 0, be 0 or not being zero is violating anything. >> >> So I hope with that we can close taht little pesky corner >> >> --- tony >> >> On Wed, Nov 18, 2026 at 11:15 AM Tony Przygienda <[email protected]> >> wrote: >> >>> Les, very good, I see we caught up on the issue and I seem not to have >>> been "confused" so the draft needs changing the way I proposed and hence >>> the concern was founded ;-) >>> >>> So, yes, overwrite with 0 in the TLV on purge LSDBs no matter what's in >>> the database when advertising and please emphasize as you suggest that per >>> spec ignoring checksum means also it has to match so the receiver better >>> gets it right. >>> >>> The CSNP here does not accurately reflect what is held in the LSDB but >>> it's a white lie that will hold up. We can just as well add the >>> recommendation that on a purge any implementation SHOULD set the checksum >>> to 0 given lots of implementation realities out there. >>> >>> In terms of intellectual honesty I would also suggest that you add to >>> the draft that not advertising lifetime will violate RFC 8706 section 3.4 >>> last paragraph if used since the restarter has no idea what lifetime to set >>> and hence AFAIS T3 may trigger. Alternatively we can say that during GR >>> those TLVs must not be used. >>> >>> As to the rest of defects I mentioned on the mike (which can be >>> remedied) in the reliable part I'll write an email later this week. >>> >>> Ultimately, as I said, as to compression on average customer database >>> with this I roughly simulated ~ +/- 15% compression in CSNP volume (with >>> further degradation once LSDB skews to large part of the network to nodes >>> with single fragments [which is not that unusual]) which isn't moving the >>> needle much IMO and won't do much to the real problem of the SRM being set >>> on p2p link and overflooding massively before CSNPs can catch up (but >>> that's of course lots implementation stuff we could argue here ;-) and on >>> large databases CSNPs overwhelming restarters and becoming a non >>> neglectable processing burden, especially with lots adjacencies. Basically >>> a bandaid to face a battlefield ;-) >>> >>> --- tony >>> >>> >>> >>> On Wed, Nov 18, 2026 at 7:52 AM Les Ginsberg (ginsberg) <ginsberg= >>> [email protected]> wrote: >>> >>>> To address concerns raised by Tony P regarding >>>> https://datatracker.ietf.org/doc/draft-ginsberg-lsr-reliable-snp/ and >>>> the use of 0 checksum to identify an LSP which is purged... >>>> >>>> >>>> >>>> Calculation of the Fletcher checksum used by IS-IS specified in ISO >>>> 8473 Section C.3. This specifies that a value of 0 is not valid. >>>> >>>> >>>> >>>> In addition ISO 10589 states: >>>> >>>> >>>> >>>> *<snip>* >>>> >>>> *7.3.16.4 LSP expiration synchronisation* >>>> >>>> >>>> >>>> *When the Remaining Lifetime on an LSP in memory becomes zero, the IS >>>> shall* >>>> >>>> >>>> >>>> *a) set all SRMflags for that LSP, and* >>>> >>>> >>>> >>>> *b) retain only the LSP header.* >>>> >>>> >>>> >>>> *c) record the time at which the Remaining Lifetime for this >>>> LSP became zero. When ZeroAgeLifetime has elapsed since the LSP Remaining >>>> Lifetime became zero, the LSP header shall be purged from the database.* >>>> >>>> >>>> >>>> *NOTE 36 A check of the checksum of a zero Remaining Lifetime LSP >>>> succeeds even though the data portion is not present.* >>>> >>>> *<end snip>* >>>> >>>> >>>> >>>> What does this mean? >>>> >>>> It means the checksum for a purged LSP is not significant. >>>> >>>> Why? >>>> >>>> Because the entry in the LSPDB no longer includes the data portion – >>>> meaning that the checksum which was previously received can no longer be >>>> validated because the data in the LSP has been discarded. >>>> >>>> >>>> >>>> This means that if the current entry in the local LSPDB is (for >>>> example): >>>> >>>> >>>> >>>> *AAAAAA.00.01 Sequence #100 Remaining Lifetime 0 Checksum 0xABCD* >>>> >>>> >>>> >>>> And an SNP entry TLV or an actual LSP is received specifying: >>>> >>>> >>>> >>>> *AAAAAA.00.01 Sequence #100 Remaining Lifetime 0 Checksum 0* >>>> >>>> >>>> >>>> that this entry MUST BE considered a match for the entry in the LSPDB. >>>> >>>> >>>> >>>> Any implementation which considers the value of the checksum >>>> significant when comparing a purged LSP is in violation of ISO 10589 and is >>>> not interoperable with conformant implementations. >>>> >>>> >>>> >>>> Therefore, the claim that the proposal in >>>> draft-ginsberg-lsr-reliable-snp to overload the meaning of checksum value >>>> of 0 in a new SNP entry TLV to imply that the LSP has been purged will >>>> break existing implementations is unfounded. >>>> >>>> >>>> >>>> I emphasize that the draft is NOT changing anything related to LSP >>>> generation – it is only proposing an alternative format for a LSP entry >>>> advertised in an SNP PDU. >>>> >>>> >>>> >>>> Les >>>> >>>> >>>> _______________________________________________ >>>> Lsr mailing list -- [email protected] >>>> To unsubscribe send an email to [email protected] >>>> >>>
_______________________________________________ Lsr mailing list -- [email protected] To unsubscribe send an email to [email protected]
