GEN_StaleCookieError.seq - Generation of error cause Stale Cookie Error
To check that if a COOKIE-ECHO chunk is received with state cookie expired, the endpoint should send ERROR message with cause Stale Cookie Error.
./GEN_StaleCookieError.seq [-tooloption ...] -pkt ./GEN_StaleCookieError.def -tooloption : v6eval tool option See Also: ../common/STD_PKT_COMMON.def ../common/SCTP_COMMON.def
Association is not established between endpoint A and B. Arrange data in endpoint A such that COOKIE-ECHO chunk with stale cookie expired is sent to endpoint B.
Endpoint A Endpoint B ULP (COOKIE-ECHOED) (CLOSED)
COOKIE-ECHO -----------------> (with State Cookie expired) <----------------- ERROR (Stale Cookie Error)
TEST DESCRIPTION:
1. Send COOKIE-ECHO chunk from endpoint A to B with stale cookie expired. 2. Check A: ERROR chunk should be received at endpoint A. 3. Check B: Error cause in ERROR chunk is set to "Stale Cookie Error".
None
RFC 4960
3.3.10.3. Stale Cookie Error (3)
Cause of error --------------
Stale Cookie Error: Indicates the receipt of a valid State Cookie that has expired.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Cause Code=3 | Cause Length=8 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Measure of Staleness (usec.) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Measure of Staleness: 32 bits (unsigned integer)
This field contains the difference, in microseconds, between the current time and the time the State Cookie expired.
The sender of this error cause MAY choose to report how long past expiration the State Cookie is by including a non-zero value in the Measure of Staleness field. If the sender does not wish to provide this information, it should set the Measure of Staleness field to the value of zero.