Files
geedge-jira/md/OMPUB-1211.md
2025-09-14 22:27:11 +00:00

7.3 KiB
Raw Permalink Blame History

江苏项目并联环境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能够正确注入线路的前提是能够正确获取待注入方向的完整信息包括 ** 链路信息(链路号, vxlanvlanmac等信息 ** 外层封装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

image-2024-04-01-14-54-33-707.png