tcp-learner 数据包分析 20240420

输入输出:

数据包分析:

learner和Adapter建立连接。

Learner让Adapter发送RST

Adapter没有从SUT抓到任何回复,于是向learner发送timeout

learner给adapter发送reset命令,让SUT重置。

这是第一次初始化,由于Adapter和SUT之间没有控制信道来传送消息,Adapter和SUT开放的5001端口建立连接。

连接建立后,SUT会监听一个端口,并把端口号告诉Adapter

Learner让Adapter发送PA数据包,SUT返回RST,Adapter把结果告诉learner

Learn让Adapter发送RST给SUT,SUT没有返回任何数据包,Adapter给Learner返回timeout,


Learner给Adapter发送reset,想要重置连接,并给出下一轮需要发送的消息RA。


Adapter给SUT发送reset指令,SUT重新监听一个端口,并把这个端口返回给Adapter

Adapter给SUT发送RA,SUT没有回复,于是Adapter给learner返回timeout

learner让Adapter给SUT发送R,没有收到SUT回复,Adapter给Learner回复RST。

下面一段类似:

  • learner发送reset
  • learner发送吓一条测试数据包FA
  • Adapter给SUT发送reset
  • SUT给Adapter回复端口
  • Adapter发送FA,获得RST
  • Adapter将RST告诉Learner
  • Learner让Adapter发送RST
  • Adapter发送RST,超时,Adapter给learner返回timeout
  • learner发送reset

重复上述过程

RST,timeout

重置

PUSH/ACK,RST

RST,timeout

重置

RST/ACK,timeout

RST,timeout

重置

FIN/ACK,RST

RST,timeout

重置

SYN/ACK,RST

RST,timeout

重置

PUSH/ACK,RST

ACK,RST

RST,timeout

重置

RST/ACK,timeout

ACK,RST

RST,timeout

重置

FIN/ACK,RST

ACK,RST

RST,timeout

重置

SYNACK,RST

ACK,RST

RST,timeout

ACK,RST

PUSH/ACK,RST

感觉不是很合理,为什么会多次出现xx/ACK?

具体的学习顺序是什么?

得去看一下Learner侧的代码

相关推荐
米高梅狮子4 小时前
03.网络类服务实践
linux·运维·服务器·网络·kubernetes·centos·openstack
June`4 小时前
网络编程时内核究竟做了什么???
linux·服务器·网络
原来是猿4 小时前
腾讯云服务器端口开放完全指南
服务器·网络·腾讯云
你的保护色5 小时前
【无标题】
java·服务器·网络
楼兰公子5 小时前
RK3588 + Linux7.0.3 网络工程调试错误速查手册
linux·网络·3588
Elnaij5 小时前
Linux系统与系统编程(9)——自设计shell与基础IO
linux·服务器
IpdataCloud5 小时前
稳定的企业级IP数据接口怎么选?可用性指标+离线库高可用方案
运维·网络·tcp/ip
HMS工业网络5 小时前
如何解决使用TwinCAT时EtherCAT网络出现“Sync Manager Watchdog”报错
网络·网络协议·网络安全
IMPYLH6 小时前
Linux 的 unexpand 命令
linux·运维·服务器·bash
想唱rap6 小时前
IO多路转接之poll
服务器·开发语言·数据库·c++