Files
tldr/pages.zh/common/scamper.md

29 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# scamper
> 积极探测互联网以分析拓扑和性能。
> 包括一些以 `sc_` 开头的工具,例如 `sc_warts2text` 或 `sc_ttlexp`。
> 更多信息请访问:<https://www.caida.org/catalog/software/scamper/>.
- 执行标准选项traceroute到一个目标
`scamper -i {{192.0.2.1}}`
- 对两个不同的目标执行两个操作ping 和 traceroute
`scamper -I "{{ping}} {{192.0.2.1}}" -I "{{trace}} {{192.0.2.2}}"`
- 使用 UDP 对多个主机进行 ping第一次 ping 使用特定的端口号,后续 ping 增加端口号:
`scamper -c "{{ping}} -P {{UDP-dport}} -d {{33434}}" -i {{192.0.2.1}} -i {{192.0.2.2}}`
- 使用多路径发现算法MDA确定到目标的负载均衡路径的存在并使用 ICMP 回声数据包进行采样,最多三次尝试,将结果写入 `warts` 文件:
`scamper -O {{warts}} -o {{path/to/output.warts}} -I "{{tracelb}} -P {{ICMP-echo}} -q {{3}} {{192.0.2.1}}"`
- 使用 ICMP 执行巴黎 traceroute 到一个目标,并将结果保存在压缩的 `warts` 文件中:
`scamper -O {{warts.gz}} -o {{path/to/output.warts}} -I "{{trace}} -P {{icmp-paris}} {{2001:db8:dead:beaf::4}}"`
- 记录到达特定 IP 地址并具有特定 ICMP ID 的所有 ICMP 数据包到一个 `warts` 文件:
`scamper -O {{warts}} -o {{path/to/output.warts}} -I "sniff -S {{2001:db8:dead:beef::6}} icmp[icmpid] == {{101}}"`