需要帮助理解从Wireshark捕获?

我有我的FTP服务器的问题。

连接,发送和接收有时会失败,并不一致。

我设法捕获和过滤IP数据包,我只需要指示我可以从那里做什么,因为我不完全了解捕获。

这是一个截图

http://i.stack.imgur.com/nvqcj.jpg

这是从服务器失败时的日志

Error: Connection closed by server Error: Connection timed out Error: Could not connect to server Status: Delaying connection for 5 seconds due to previously failed connection attempt... Status: Connecting to xxx.xxx.xxx.xxx:21... Status: Connection established, waiting for welcome message... Error: Connection timed out Error: Could not connect to server Status: Delaying connection for 5 seconds due to previously failed connection attempt... Status: Connecting to xxx.xxx.xxx.xxx:21... Status: Connection established, waiting for welcome message... Error: Connection timed out Error: Could not connect to server 

为了正确理解发生了什么,请看看TCP 3 Way Handshake 。 简而言之,它有点像这样:

 Client 1 >>>>>>SYN>>>>> Client 2 Client 2 >>SYN ACK>>>>> Client 1 Client 1 >>>>>ACK>>>>>> Client 2 

会话现在已build立, Client 1是启动连接的机器/节点。 一旦build立,连接的正确终止就是类似的交换

 Client 1 >>>>>>FIN>>>>> Client 2 Client 2 >>FIN ACK>>>>> Client 1 Client 1 >>>>>ACK>>>>>> Client 2 

虽然这并不总是发生。 我也看到连接是RST ,你可能猜到这是什么意思。 不知道为什么你的连接正在随机重置,但它看起来像是与RST,ACK共鸣的客户端,但您的屏幕截图不显示服务器发送的RST 。 你应该这样做,然后更新你的问题:

  1. 断开与服务器的连接
  2. 清除所有wireshark日志
  3. 基于服务器IP进行过滤
  4. 开始捕捉
  5. 尝试连接
  6. 连接失败后停止捕获
  7. 只显示一个TCPstream

添加新的图片。 如果它更简单,我相信PCAP文件是基于文本的,这意味着你可以在你最喜欢的文本编辑器中打开它,做一个查找/replace你的IP地址,保存它,或者在这里上传,或者链接到pastebin之类的东西。