NAME

  ErrorInEstab.seq - ERROR chunk is received with Invalid Stream Identifier in ESTABLISHED state


PURPOSE

  To chech that if ERROR chunk is received with Invalid Stream Identifier
  in ESTABLISHED state then the endpoint should report this error.


SYNOPSIS

  ./ErrorInEstab.seq [-tooloption ...] -pkt ./ErrorInEstab.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 data
  in endpoint A such that ERROR chunk is sent with Invalid Stream
  Identifier to endpoint B.


TEST PROCEDURE

  Endpoint A                           Endpoint B                ULP
  (ESTABLISHED)                        (ESTABLISHED)
                <-----------------      DATA
  ERROR         ----------------->
  (with Invalid Stream Identifier)
  SACK          ----------------->
  TEST DESCRIPTION:
  1. Send ERROR chunk from endpoint B to A with invalid stream
     identifier after received DATA message.
  2. Send SACK chunk from endpoint B to A.
  3. Check A: Error is report to ULP.


NOTE

  None


REFERENCE

  RFC 4960
  3.3.10.1.  Invalid Stream Identifier (1)
    Cause of error
    ---------------
    Invalid Stream Identifier: Indicates endpoint received a DATA chunk
    sent to a nonexistent stream.
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |     Cause Code=1              |      Cause Length=8           |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |        Stream Identifier      |         (Reserved)            |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    Stream Identifier: 16 bits (unsigned integer)
      Contains the Stream Identifier of the DATA chunk received in
      error.
    Reserved: 16 bits
      This field is reserved.  It is set to all 0's on transmit and
      ignored on receipt.