NAME

  InitWithCookiePre2.seq - INIT chunk is received with cookie preservative parameter (cookie life time not expire)


PURPOSE

  To check that if INIT chunk is received with cookie preservative parameter
  then the endpoint should increment the life-span of the State Cookie in
  milliseconds.


SYNOPSIS

  ./InitWithCookiePre2.seq [-tooloption ...] -pkt ./InitWithCookiePre2.def
    -tooloption : v6eval tool option
  See Also: ../common/STD_PKT_COMMON.def
            ../common/SCTP_COMMON.def


PRE-TEST CONDITION

  Association is not established between endpoint A and B. Arrange 
  data in endpoint A such that INIT chunk with Cookie Preservative
  Parameter is sent to endpoint B.


TEST PROCEDURE

  Endpoint A                           Endpoint B                ULP
  (CLOSED)                             (CLOSED)
  INIT          ----------------->
  (with Cookie Preservative Parameter)
                <-----------------      INIT-ACK
  COOKIE-ECHO   ----------------->
  (life time not expire)
                <-----------------      COOKIE-ACK
  TEST DESCRIPTION:
  1. Attempt to make an association from endpoint A to endpoint B. Send 
     INIT message Cookie Preservative Parameter. 
  2. Check A: INIT message is accepted and INIT-ACK is sent from endpoint B. 
  3. Check B: The life-span of the State Cookie at endpoint B is incremented
     in milliseconds.


NOTE

  None


REFERENCE

  RFC 4960
  3.3.2.1.  Optional/Variable-Length Parameters in INIT
    Cookie Preservative (9)
    The sender of the INIT shall use this parameter to suggest to the
    receiver of the INIT for a longer life-span of the State Cookie.
        0                   1                   2                   3
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |          Type = 9             |          Length = 8           |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |         Suggested Cookie Life-Span Increment (msec.)          |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    Suggested Cookie Life-Span Increment: 32 bits (unsigned integer)
      This parameter indicates to the receiver how much increment in
      milliseconds the sender wishes the receiver to add to its default
      cookie life-span.
      This optional parameter should be added to the INIT chunk by the
      sender when it reattempts establishing an association with a peer
      to which its previous attempt of establishing the association
      failed due to a stale cookie operation error.  The receiver MAY
      choose to ignore the suggested cookie life-span increase for its
      own security reasons.