tcpdump 抓包中的 win 变化问题

小胡子
  • 75

15:39:01.066209 IP client-ip > server-ip: Flags [S], seq 2676220664, win 65535, options [mss 1460,nop,nop,sackOK,nop,wscale 13], length 0
15:39:01.066247 IP server-ip > client-ip: Flags [S.], seq 3077872679, ack 2676220665, win 29200, options [mss 1460,nop,nop,sackOK,nop,wscale 10], length 0
15:39:01.066316 IP client-ip > server-ip: Flags [.], ack 1, win 5334, length 0
15:39:01.093054 IP client-ip > server-ip: Flags [P.], seq 1:381, ack 1, win 5334, length 380
15:39:01.093086 IP server-ip > client-ip: Flags [.], ack 381, win 30, length 0
15:39:01.093275 IP server-ip > client-ip: Flags [P.], seq 1:130, ack 381, win 30, length 129
15:39:01.093320 IP client-ip > server-ip: Flags [.], ack 130, win 5334, length 0
15:39:01.093354 IP server-ip > client-ip: Flags [P.], seq 130:133, ack 381, win 30, length 3
15:39:01.093395 IP client-ip > server-ip: Flags [.], ack 133, win 5334, length 0
15:39:26.093735 IP server-ip > client-ip: Flags [P.], seq 133:136, ack 381, win 30, length 3

请问下在建立连接时 win 分别是 65535 29200,下面还没有发送大量数据,双方的 win 怎么就变成5334 30 了

回复
阅读 2.5k
1 个回答

TCP窗口扩大选项 wscale 导致的。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏