NAME

  ShutInShutSend.seq - SHUTDOWN chunk is received in SHUTDOWN-SENT State


PURPOSE

  To check that if an endpoint is in the SHUTDOWN-SENT state and receives
  a SHUTDOWN chunk from its peer, the endpoint shall respond immediately
  with a SHUTDOWN-ACK to its peer.


SYNOPSIS

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


PRE-TEST CONDITION

  Association is established between endpoint A and B. Arrange the
  data in endpoint B such that terminate primitive is received from
  ULP to terminate the association. Arrange data in endpoint A such
  that SHUTDOWN message is sent to endpoint B.


TEST PROCEDURE

  Endpoint A                           Endpoint B                ULP
  (ESTABLISHED)                        (ESTABLISHED)
                                                <-------- Terminate
                    <----------------   SHUTDOWN
  SHUTDOWN          ---------------->
                    <----------------   SHUTDOWN-ACK
  SHUTDOWN-COMPLETE ---------------->
  TEST DESCRIPTION:
  1. Try to terminate the association between endpoint A and B by sending
     terminate primitive from ULP. While endpoint B is in SHUTDOWN-SENT
     state, send SHUTDOWN message from endpoint A.
  2. Check A: SHUTDOWN-ACK message is sent in response to the SHUTDOWN
     message.


NOTE

  None


REFERENCE

  RFC 4960
  9.2.  Shutdown of an Association
    If a SHUTDOWN is received in the COOKIE-WAIT or COOKIE ECHOED state,
    the SHUTDOWN chunk SHOULD be silently discarded.
    If an endpoint is in the SHUTDOWN-SENT state and receives a SHUTDOWN
    chunk from its peer, the endpoint shall respond immediately with a
    SHUTDOWN ACK to its peer, and move into the SHUTDOWN-ACK-SENT state
    restarting its T2-shutdown timer.
    If an endpoint is in the SHUTDOWN-ACK-SENT state and receives a
    SHUTDOWN ACK, it shall stop the T2-shutdown timer, send a SHUTDOWN
    COMPLETE chunk to its peer, and remove all record of the association.