tcpOpenActiveConnectClientClose.pkt 633 B

123456789101112131415161718
  1. // SUT is a client, i.e. it opens a socket and connects to the peer.
  2. // Afterwards it closes the connection.
  3. // Create a socket and set it to non-blocking.
  4. 0.000 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3 // 0
  5. // Establish connection
  6. 0.100 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress) // 1
  7. 0.100 > S 0:0(0) <mss 1460, nop, wscale 6, nop, nop, sackOK> // 2
  8. 0.200 < S. 0:0(0) ack 1 win 5792 <mss 1460, nop, wscale 6, nop, nop, sackOK> // 3
  9. 0.200 > . 1:1(0) ack 1 <...> // 4
  10. // Client closes the connection
  11. 0.300 close(4) = 0
  12. +0 > F. 1:1(0) ack 1
  13. +0 < F. 1:1(0) ack 2
  14. +0 > . 2:2(0) ack 2