sctpOpenClose.pkt 699 B

12345678910111213
  1. //SUT is a client, i.e. it opens a socket and connects to the server.
  2. //When the association is established, it calls Shutdown.
  3. +0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3
  4. +0 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress)
  5. +0 > sctp: INIT[flgs=0, tag=..., a_rwnd=..., os=..., is=..., tsn=1, ...]
  6. +0.05 < sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=1500, os=1, is=1, tsn=1, STATE_COOKIE[len=4, val=...]]
  7. +0 > sctp: COOKIE_ECHO[flgs=0, len=4, val=...]
  8. +0.05 < sctp: COOKIE_ACK[flgs=0]
  9. +1 close(3) = 0
  10. +0 > sctp: SHUTDOWN[flgs=0, cum_tsn=0]
  11. +0.05 < sctp: SHUTDOWN_ACK[flgs=0]
  12. +0 > sctp: SHUTDOWN_COMPLETE[flgs=0] // Other flags allowed: T, Is SHUTDOWN_COMPLETE[] allowed?