game-network-troubleshooting

Game network troubleshooting: use Wireshark/tshark for end-to-end capture and analysis of game stutter, teleportation, disconnects, high latency and packet loss. Identify client, game server, accelerator nodes, direct vs. tunneled routing; measure TCP retransmission, fast retransmission, lost segments, duplicate ACKs, out-of-order, and zero window; analyze UDP tunnel sequence/ack bitmaps for specific versions; and use tcping/psping, path comparison and dual-end captures to locate faults in home networks, ISPs, accelerators or servers. When the user provides .pcap/.pcapng, game address, accelerator nodes and event times, it can produce troubleshooting recommendations or export a page-verified Chinese PDF diagnostic report.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "game-network-troubleshooting" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-dd7918bd7bbef01b6f16b31fcf0815b0c8176db5b042f49b05b2f230803e3f90. Verify the upstream source and version against https://skillhub.cn/skills/user_e8bbe154/game-network-troubleshooting before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Game network troubleshooting: use Wireshark/tshark for end-to-end capture and analysis of game stutter, teleportation, disconnects, high latency and packet loss. Identify client, game server, accelerator nodes, direct vs. tunneled routing; measure TCP retransmission, fast retransmission, lost segments, duplicate ACKs, out-of-order, and zero window; analyze UDP tunnel sequence/ack bitmaps for specific versions; and use tcping/psping, path comparison and dual-end captures to locate faults in home networks, ISPs, accelerators or servers. When the user provides .pcap/.pcapng, game address, accelerator nodes and event times, it can produce troubleshooting recommendations or export a page-verified Chinese PDF diagnostic report.

0 Downloads

Introduction source: third_party · user_e8bbe154 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: game-network-troubleshooting
description: 使用 Wireshark/tshark 对游戏卡顿、瞬移、掉线、高延迟和丢包抓包进行端到端排障;识别客户端、游戏服务器、UU等加速器节点、直连与隧道分流,统计 TCP Retransmission、Fast Retransmission、Lost Segment、Dup ACK、Out-of-Order、Zero Window,分析特定版本的 UDP 隧道序号/确认位图,并通过 tcping/psping、路径对照和双点抓包定位家庭网络、运营商、加速器或服务器故障;支持将分析过程、证据、结论和排障建议导出为经过逐页校验的中文 PDF 诊断报告。用于用户提供 .pcap/.pcapng、游戏地址、加速节点、卡顿时间,要求分析游戏网络链路、生成排障建议或导出诊断报告时。

游戏网络排障

目标

先给出可证实的故障范围,再说明尚不能区分的链路段。区分“应用慢”“抓包推断异常”“真实传输丢包”,避免把任一 Wireshark 标记直接等同为故障点。

运行依赖

  • 抓包分析需要 Wireshark/tshark;Windows 脚本会尝试常见安装路径,也可传入 -TsharkPath。
  • PDF 生成与校验需要 Python 3.10+,依赖见 requirements.txt。优先使用隔离环境安装,不修改用户的全局 Python。

标准流程

  1. 确认抓包文件、客户端 IP、时区、卡顿时间、游戏名称、是否使用加速器。
  2. 确认抓包接口是物理网卡、虚拟网卡还是路由器镜像口。
  3. 对 .pcap/.pcapng 先运行:
.\scripts\analyze-game-pcap.ps1 -PcapPath <抓包路径>

已知业务地址时追加:

.\scripts\analyze-game-pcap.ps1 `
  -PcapPath <抓包路径> `
  -ClientIp <客户端IP> `
  -TargetIp <游戏或业务IP> `
  -TunnelIp <加速节点IP>
  1. 根据 DNS、TLS SNI、HTTP Host、端口、连接时间和流量方向识别业务,不只依赖端口名。
  2. 分别分析:
    • 游戏实时流;
    • 加速器隧道;
    • 登录/认证/反作弊;
    • 补丁、对象存储和 CDN;
    • 无关后台流量。
  3. 对关键 TCP 流统计异常方向、时间聚集、RTT、窗口状态和连接生命周期。
  4. 对加速器流判断外层目的 IP。若物理网卡上直接出现 客户端IP ↔ 目标IP 的完整握手和 ACK,该流存在直连;若外层仅为 客户端IP ↔ 加速节点IP,业务可能封装在隧道内。
  5. 需要分析已验证的 UU 隧道头时运行:
.\scripts\analyze-uu-ack.ps1 `
  -PcapPath <抓包路径> `
  -ClientIp <客户端IP> `
  -RelayIp <UU节点IP> `
  -ClientPort <本地UDP端口> `
  -RelayPort <节点UDP端口>
  1. 用时间重合验证相关性:异常必须覆盖用户实际卡顿时间。启动阶段的 CDN 下载异常不能自动解释对战卡顿。
  2. 输出结论、证据、故障范围、验证方法和升级材料。
  3. 用户要求“诊断报告”“导出报告”或“PDF”时,读取 references/pdf-report-export.md,先将证据整理为结构化 JSON,再运行:
python .\scripts\build-diagnostic-pdf.py `
  --input <分析结果.json> `
  --output <诊断报告.pdf>

python .\scripts\verify-diagnostic-pdf.py `
  --pdf <诊断报告.pdf> `
  --render-dir <逐页检查目录>

生成后必须检查页数、可检索文本、空白页和异常字符,并把所有页面渲染为图片做视觉检查;发现文字遮挡、表格溢出、乱码或分页不合理时,修正并重新生成。

归因规则

  • Dup ACK 由接收方发送,表示接收方向发现序号缺口或乱序;它不能证明发送服务器本身故障。
  • Lost Segment 是抓包点根据序号推断的缺口,需与重传、Dup ACK、乱序和抓包完整性共同判断。
  • Fast Retransmission 与 Retransmission 可能同时标记同一帧,分类数量不可直接相加。
  • Zero Window 指向接收端缓冲或应用读取问题;没有 Zero Window 不能排除网络丢包。
  • TCP 端口连通率不等于已建立业务流的真实丢包率。
  • 对端禁 ICMP 时使用实际 TCP 端口探测;UDP 隧道不能用普通 tcping 证明质量。
  • 客户端单点抓包只能定位到“抓包点之后、对端之前”。区分家庭路由器、运营商、云网络和服务器出口需要双点抓包或对照测试。
  • Wireshark 按知名端口显示的协议名可能只是启发式识别。必须结合域名、证书、载荷特征和上下文复核。
  • 若多个独立目的地址在同一秒异常,优先调查公共路径;若只有单一目的异常,调查目的路由或服务器出口。

读取参考

输出格式

按以下顺序回答:

  1. 结论:故障方向与最小可证实范围。
  2. 关键证据:五元组、时间、异常计数、RTT、域名/证书、直连或隧道证据。
  3. 不能确定的部分:说明还缺哪个观察点。
  4. 下一步:最多给 3–5 项按优先级排序的验证动作。

不要把 IP 地理库位置写成精确机房位置;只描述 ASN、注册网段和城市级近似位置。

若导出 PDF,最终回复先概括最小可证实结论,再提供可点击的绝对路径文件链接;不要只返回生成日志。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供端到端游戏网络排障能力,覆盖卡顿、瞬移、掉线、高延迟和丢包等核心痛点
  • 支持 Wireshark/tshark 抓包分析、加速器识别、双点定位及 PDF 诊断报告导出,实用性强
Trigger Precision90/100

Highlights

  • 触发条件明确:用户提供 .pcap/.pcapng、游戏地址、加速节点、卡顿时间,要求分析链路或导出报告
  • 边界清晰,不易与其他 Skill 重叠
Structure and Standards95/100

Highlights

  • 结构完整,含目标、依赖、标准流程、归因规则、参考文档和输出格式
  • 提供端到端命令示例,frontmatter 完整,文档长度适中
Execution Reliability90/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 引用了 references/pdf-report-export.md、diagnostic-playbook.md、tshark-recipes.md、uu-tunnel-analysis.md,但未传入这些文件,可能导致用户无法获取完整指导。

    Recommendation: 请补充 references 目录下所有被引用的 .md 文件,确保用户可完整执行流程。

Highlights

  • 工具来源明确(Wireshark/tshark、Python),参数正确
  • 覆盖主要异常场景并提供归因规则,PDF 生成有逐页校验机制
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.