tcpOpenActiveConnectServerClose.pkt 640 B

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