Home > Back-end >  Why I use tcpdump to grab bag is different with others, what the hell is this
Why I use tcpdump to grab bag is different with others, what the hell is this

Time:01-20

Write their own socket example is the simple connection is established, and then sent a message, tcpdump caught bag is
 
# three-way handshake
15:08:16. 001864 IP localhost. 58230 & gt; Localhost. 5555: Flags [S], seq 3665500164, 14600, win the options (1460 MSS, sackOK, TS val 2628198544 ecr 0, nop, wscale 7], length 0
15:08:16. 001899 IP localhost. 5555 & gt; Localhost. 58230: Flags [S], seq 2400661591, ack, 3665500165, 28960, win the options (1460 MSS, sackOK, TS val 2974450587 ecr 2628198544, nop, wscale 7], length 0
15:08:16. 002055 IP localhost. 58230 & gt; Localhost. 5555: Flags [.], ack 1, win 115, options [nop, nop, TS val 2628198544 ecr 2974450587], length 0
# to send data
15:08:16. 002130 IP localhost. 5555 & gt; Localhost. 58230: Flags [P], seq 1:13, ack 1, win 227, options [nop, nop, TS val 2974450588 ecr 2628198544], length of 12
# 4 times wave
15:08:16. 002152 IP localhost. 5555 & gt; Localhost. 58230: Flags [F], seq 13, ack 1, win 227, options [nop, nop, TS val 2974450588 ecr 2628198544], length 0
15:08:16. 002254 IP localhost. 58230 & gt; Localhost. 5555: Flags [.], ack 13, 115, win the options [nop, nop, TS val 2628198544 ecr 2974450588], length 0
15:08:16. 002346 IP localhost. 58230 & gt; Localhost. 5555: Flags [F], seq 1, ack 14, 115, win the options [nop, nop, TS val 2628198544 ecr 2974450588], length 0
15:08:16. 002355 IP localhost. 5555 & gt; Localhost. 58230: Flags [.], ack 2, 227, win the options [nop, nop, TS val 2974450588 ecr 2628198544], length 0

1. Why the three-way handshake, ack for the third time they became 1 ah, should not be 3665500165 + 1? How make?
2. Send the number also did not see the corresponding ack, direct wave?
  • Related