# tcpreplay - 网络流量编辑和重放工具

## tcpreplay简介

[tcpreplay](http://tcpreplay.appneta.com/) 是一个Pcap编辑和重放的工具，可以将通过tcpdump抓包的网络流量重发，以达到性能压测或者排查异常网络故障的功能。

这个工具在排查线上问题，将线上系统网络异常过程在测试环境重现有很大帮助，值得仔细研究。

## 参考

\*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/performance/network/wang-luo-gong-ju/tcpreplay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
