From: Chandrasekhar V <Cha...@wi...> - 2003-11-26 09:18:21
|
I have seen this with a SCTP protocol tester, which deliberately sends stale cookie error in one of the tests. -Thanks, Chandu -----Original Message----- From: lks...@li... [mailto:lks...@li...] On Behalf Of Sridhar Samudrala Sent: Tuesday, November 25, 2003 4:29 AM To: Chandrasekhar V Cc: lks...@li... Subject: Re: [Lksctp-developers] INIT transmission in response to state cookie err This could be a problem. Are you seeing this issue with lksctp when interacting with other implementations? In lksctp, a cookie preservative parameter is sent with INIT suggesting a cookie-life span in response to a stale cookie error. This should prevent future stale-cookie errors. But of course this will not help if the peer doesn't honor the cookie preservative parameters. So i don't expect to see this problem between 2 lksctp peers. Do you have a solution to fix this problem? Thanks Sridhar On Fri, 21 Nov 2003, Chandrasekhar V wrote: > Hello All, > > Function sctp_sf_do_5_2_6_stale() from sm_statesfuns.c sends an INIT , > starts SCTP_EVENT_TIMEOUT_T1_INIT timer and increments init error > counter. > > This function exits after max init attempts > code excerpts from sctp_sf_do_5_2_6_stale() : > ========= > attempts = asoc->counters[SCTP_COUNTER_INIT_ERROR] + 1; > > if (attempts >= asoc->max_init_attempts) { > sctp_add_cmd_sf(commands, SCTP_CMD_INIT_FAILED, > SCTP_U32(SCTP_ERROR_STALE_COOKIE)); > return SCTP_DISPOSITION_DELETE_TCB; > } > .. > ...... > .... > sctp_add_cmd_sf(commands, SCTP_CMD_COUNTER_INC, > SCTP_COUNTER(SCTP_COUNTER_INIT_ERROR)); > > =========== > > However, if an INIT_ACK arrives then asoc's SCTP_COUNTER_INIT_ERROR is > reset by function sctp_sf_do_5_1C_ack() > > sctp_add_cmd_sf(commands, SCTP_CMD_COUNTER_RESET, > SCTP_COUNTER(SCTP_COUNTER_INIT_ERROR)); > > =========== > > > Does this leave a problem of indefinite loop if stale cooke error is > persistent? Can this problem appear in practical ? > > Thanks for your time, > Chandu > > > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Lksctp-developers mailing list Lks...@li... https://lists.sourceforge.net/lists/listinfo/lksctp-developers |