7.3 KiB
江苏项目:并联环境rst包发送失败
| ID | Creation Date | Assignee | Status |
|---|---|---|---|
| OMPUB-1211 | 2024-04-01T14:54:46.000+0800 | 杨威 | 已解决 |
版本:TSG v24.02 描述: 现场测试发现无效果,查看sapp日志(sysinfo.log)发现rst包全部发送失败。经排查发现调整汇聚分流后全部为单向流,修改sapp配置(单向流发rst)后,大部分rst包发送成功,仍有一小部分rst包发送失败。 !image-2024-04-01-14-54-33-707.png|thumbnail! yangwei commented on 2024-04-01T15:25:15.110+0800:
背景
- 至24.02版本,TSGOS上与流量接入环境(并联/串联, vxlan/vlan/mac flipping)相关的设置都由marsio接管,对于sapp而言,统一运行在inline模式
- 对于inline模式,通常是在接入链路上直接发送,保证构造的数据包(如rst, http 404)能够正确注入线路的前提,是能够正确获取待注入方向的完整信息,包括: ** 链路信息(链路号, vxlan,vlan,mac等信息) ** 外层封装(MPLP, GTP TEID等信息,同一会话的两个方向可能不一样)
- sapp默认在会话上的注包模式,要求处理并记录过待注入方向的数据包,从而保证链路信息正确 ** 例如默认模式下只有TCP SYN,注入S2C侧的RST会失败 ** 仅有TCP C2S侧的HTTP request流量,注入S2C侧的RST也会失败
问题
- 对于接入为镜像模式下构造的注入数据包,实际上是通过额外的网络接口,以路由的方式,到达流量通信的双方,因此对于接入链路的信息无要求
- 对于单向流的镜像接入环境,如果使用sapp默认的注包模式,发送RST包将因为缺乏链路信息而失败。而实际上对于路由注入数据包的场景,单侧的流量,已经具备构造包的所有信息
解决方案
- 修改sapp的参数,清空./etc/asymmetric_addr_layer.conf文件,放宽对注包地址的要求,仅有单侧信息也支持注入
yangwei commented on 2024-04-01T15:26:33.148+0800:
对于issue中少部分RST发送失败的现象,原因为在执行TCP RST补救时,未判断注包地址要求,已hotfix更新修复
gitlab commented on 2024-04-02T09:06:09.305+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a merge request|https://git.mesalab.cn/MESA_Platform/sapp/-/merge_requests/387] of [MESA Platform / sapp|https://git.mesalab.cn/MESA_Platform/sapp] on branch [Fix-sapp_rawpkt_ntop|https://git.mesalab.cn/MESA_Platform/sapp/-/tree/Fix-sapp_rawpkt_ntop]:{quote}Fix sapp rawpkt ntop{quote}
gitlab commented on 2024-04-03T16:56:06.498+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a commit|ab97068ee8] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2402-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2402-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T16:57:09.736+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a merge request|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/merge_requests/2333] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2402-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2402-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T17:00:57.001+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a commit|d80981e22e] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2404-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2404-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T17:01:21.190+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a merge request|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/merge_requests/2335] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2404-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2404-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T17:32:31.621+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a commit|fef6edaf97] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2403-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2403-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T17:33:09.547+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a merge request|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/merge_requests/2340] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2403-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2403-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T18:39:53.117+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a commit|ec3b887b7c] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2402-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2402-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T18:42:36.829+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a commit|63b0abe08b] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2403-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2403-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
gitlab commented on 2024-04-03T18:44:12.983+0800:
[杨威|https://git.mesalab.cn/yangwei] mentioned this issue in [a commit|e8d084c0ec] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [Update-2404-sapp-stellar-c-stratum|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/Update-2404-sapp-stellar-c-stratum]:{quote}🎈 perf(sapp,stellar-c,stratum): performance improve{quote}
Attachments
Attachment: image-2024-04-01-14-54-33-707.png
