tcpOpenPassiveAcceptClientClose.pkt 626 B

12345678910111213141516171819202122
  1. // SUT is server. It accepts a connection. The peer closes the connection.
  2. 0.000 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
  3. 0.000 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
  4. 0.000 bind(3, ..., ...) = 0
  5. 0.000 listen(3, 1) = 0
  6. 0.100 < S 0:0(0) win 32792 <mss 1460,nop,wscale 7,nop,nop,sackOK>
  7. 0.100 > S. 0:0(0) ack 1 <mss 1460,nop,wscale 6,nop,nop,sackOK>
  8. 0.200 < . 1:1(0) ack 1 win 257
  9. 0.200 accept(3, ..., ...) = 4
  10. // Client 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. // Server 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