{"id":13439680,"url":"https://github.com/appneta/tcpreplay","last_synced_at":"2025-05-15T14:06:25.932Z","repository":{"id":11970205,"uuid":"14542959","full_name":"appneta/tcpreplay","owner":"appneta","description":"Pcap editing and replay tools for *NIX and Windows - Users please download source from","archived":false,"fork":false,"pushed_at":"2024-07-12T17:24:12.000Z","size":13391,"stargazers_count":1245,"open_issues_count":58,"forks_count":277,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-07T18:09:43.928Z","etag":null,"topics":["c","flow","netflow","netmap","packet-generator","pcap","performance","performance-testing","replays-pcap-files","tcpreplay","traffic"],"latest_commit_sha":null,"homepage":"http://tcpreplay.appneta.com/wiki/installation.html#downloads","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appneta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-11-20T01:10:53.000Z","updated_at":"2025-04-06T13:55:46.000Z","dependencies_parsed_at":"2024-05-05T03:31:22.815Z","dependency_job_id":"fdea77e6-f246-41bf-a5ec-aa06001ae232","html_url":"https://github.com/appneta/tcpreplay","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Ftcpreplay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Ftcpreplay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Ftcpreplay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appneta%2Ftcpreplay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appneta","download_url":"https://codeload.github.com/appneta/tcpreplay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355335,"owners_count":22057354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","flow","netflow","netmap","packet-generator","pcap","performance","performance-testing","replays-pcap-files","tcpreplay","traffic"],"created_at":"2024-07-31T03:01:16.206Z","updated_at":"2025-05-15T14:06:20.918Z","avatar_url":"https://github.com/appneta.png","language":"C","readme":"Tcpreplay\n=========\n[![Build Status](https://travis-ci.org/appneta/tcpreplay.svg?branch=master)](https://travis-ci.org/appneta/tcpreplay)\n[![Test Status](https://github.com/appneta/tcpreplay/actions/workflows/github-actions-ci.yml/badge.svg)](https://github.com/appneta/tcpreplay/actions/workflows/github-actions-ci.yml)\n[![Coverity Scan Build Status](https://scan.coverity.com/projects/12017/badge.svg)](https://scan.coverity.com/projects/12017)\n[![Website](https://img.shields.io/website-up-down-green-red/http/shields.io.svg)](http://tcpreplay.appneta.com)\n[![CodeQL](https://github.com/appneta/tcpreplay/actions/workflows/codeql.yml/badge.svg)](https://github.com/appneta/tcpreplay/actions/workflows/codeql.yml)\n[![cpp-linter](https://github.com/appneta/tcpreplay/actions/workflows/c-linter.yml/badge.svg)](https://github.com/appneta/tcpreplay/actions/workflows/c-linter.yml)\n\nTcpreplay is a suite of [GPLv3] licensed utilities for UNIX (and Win32 under\n[Cygwin]) operating systems for editing and replaying network traffic which\nwas previously captured by tools like [tcpdump] and [Wireshark]. \nIt allows you to classify traffic as client or server, rewrite Layer 2, 3 and 4 \npackets and finally replay the traffic back onto the network and through other\ndevices such as switches, routers, firewalls, NIDS and IPS's. Tcpreplay supports\nboth single and dual NIC modes for testing both sniffing and in-line devices.\n\nTcpreplay is used by numerous firewall, IDS, IPS, NetFlow and other networking\nvendors, enterprises, universities, labs and open source projects. If your\norganization uses Tcpreplay, please let us know who you are and what you use\nit for so that I can continue to add features which are useful.\n\nTcpreplay is designed to work with network hardware and normally does not\npenetrate deeper than Layer 2. Yazan Siam with sponsorship from [Cisco] developed\n*tcpliveplay* to replay TCP pcap files directly to servers. Use this utility\nif you want to test the entire network stack and into the application.\n\nAs of version 4.0, Tcpreplay has been enhanced to address the complexities of\ntesting and tuning [IP Flow][flow]/[NetFlow] hardware. Enhancements include:\n\n* Support for [netmap] modified network drivers for 10GigE wire-speed performance\n* Increased accuracy for playback speed\n* Increased accuracy of results reporting\n* Flow statistics including Flows Per Second (fps)\n* Flow analysis for analysis and fine tuning of flow expiry timeouts\n* Hundreds of thousands of flows per second (dependent flow sizes in pcap file) \n\nVersion 4.0 is the first version delivered by Fred Klassen and sponsored by \n[AppNeta]. Many thanks to the author of Tcpreplay, Aaron Turner who has supplied\nthe world with a a solid and full-featured test product thus far. The new author\nstrives to take Tcprelay performance to levels normally only seen in commercial\nnetwork test equipment.\n\nDownloads\n=========\n* [![Releases](https://img.shields.io/github/downloads/appneta/tcpreplay/total.svg)](https://github.com/appneta/tcpreplay/releases) [GitHub](https://github.com/appneta/tcpreplay/releases)\n* [![SourceForge](https://img.shields.io/sourceforge/dt/tcpreplay.svg)](https://sourceforge.net/projects/tcpreplay) [SourceForge](https://sourceforge.net/projects/tcpreplay) \n\nProducts\n========\n[![Releases](https://img.shields.io/github/release/appneta/tcpreplay.svg)](https://github.com/appneta/tcpreplay/releases)\n\nThe Tcpreplay suite includes the following tools:\n\nNetwork playback products:\n--------------------------\n* **tcpreplay** - replays pcap files at arbitrary speeds onto the network with an\noption to replay with random IP addresses\n* **tcpreplay-edit** - replays pcap files at arbitrary speeds onto the network with\nnumerous options to modify packets packets on the fly\n* **tcpliveplay** - replays TCP network traffic stored in a pcap file on live\nnetworks in a manner that a remote server will respond to\n\nPcap file editors and utilities:\n--------------------------------\n* **tcpprep** - multi-pass pcap file pre-processor which determines packets as\nclient or server and splits them into creates output files for use by tcpreplay and tcprewrite\n* **tcprewrite** - pcap file editor which rewrites TCP/IP and Layer 2 packet headers\n* **tcpbridge** - bridge two network segments with the power of tcprewrite\n* **tcpcapinfo** - raw pcap file decoder and debugger\n\nInstall package\n===============\nPlease visit our [downloads](http://tcpreplay.appneta.com/wiki/installation.html#downloads)\npage on our [wiki](http://tcpreplay.appneta.com) \nfor detailed download and installation instructions.\n\n\nSimple directions for Unix users:\n---------------------------------\n```\n./configure \nmake\nsudo make install\n```\n\nBuild netmap feature\n--------------------\nThis feature will detect [netmap](http://info.iet.unipi.it/~luigi/netmap/)\ncapable network drivers on Linux and BSD \nsystems. If detected, the network driver is bypassed for the execution \nduration of tcpreplay and tcpreplay-edit, and network buffers will be \nwritten to directly. This will allow you to achieve full line rates on \ncommodity network adapters, similar to rates achieved by commercial network \ntraffic generators.\n\n**Note** that bypassing the network driver will disrupt other applications connected\nthrough the test interface. Don't test on the same interface you ssh'ed into.\n\nDownload latest and install netmap from \u003chttp://info.iet.unipi.it/~luigi/netmap/\u003e\nIf you extracted netmap into **/usr/src/** or **/usr/local/src** you can build normally. Otherwise you \nwill have to specify the netmap source directory, for example:\n```\n./configure --with-netmap=/home/fklassen/git/netmap\nmake\nsudo make install\n```\n\nYou can also find netmap source [here](http://code.google.com/p/netmap/).\n\nDetailed installation instructions are available in the INSTALL document in the tar ball.\n\nInstall Tcpreplay from source code\n------------------------\nDownload the [tar ball](https://github.com/appneta/tcpreplay/tarball/master) or \n[zip](https://github.com/appneta/tcpreplay/zipball/master) file. Optionally clone the git\nrepository:\n\n```\ngit clone git@github.com:appneta/tcpreplay.git\n```\n\nSupport\n=======\nIf you have a question or think you are experiencing a bug, submit them \n[here](https://github.com/appneta/tcpreplay/issues). It is important\nthat you provide enough information for us to help you.\n\nIf your problem has to do with COMPILING tcpreplay:\n* Version of tcpreplay you are trying to compile\n* Platform (Red Hat Linux 9 on x86, Solaris 7 on SPARC, OS X on PPC, etc)\n* Contents of config.status\n* Output from **configure** and **make**\n* Any additional information you think that would be useful.\n\nIf your problem has to do with RUNNING tcpreplay or one of the sub-tools:\n* Version information (output of -V)\n* Command line used (options and arguments)\n* Platform (Red Hat Linux 9 on Intel, Solaris 7 on SPARC, etc)\n* Make \u0026 model of the network card(s) and driver(s) version\n* Error message (if available) and/or description of problem\n* If possible, attach the pcap file used (compressed with bzip2 or gzip preferred)\n* The core dump or backtrace if available\n* Detailed description of your problem or what you are trying to accomplish\n\nNote: The author of tcpreplay primarily uses OS X and Linux; hence, if you're reporting\nan issue on another platform, it is important that you give very detailed\ninformation as I may not be able to reproduce your issue.\n\nYou are also strongly encouraged to read the extensive documentation (man\npages, FAQ, documents in /docs and email list archives) BEFORE posting to the\ntcpreplay-users email list:\n\nhttp://lists.sourceforge.net/lists/listinfo/tcpreplay-users\n\nIf you have a bug to report you can submit it here:\n\nhttps://github.com/appneta/tcpreplay/issues\n\nIf you want to help with development, visit our developers wiki:\n\nhttps://github.com/appneta/tcpreplay/wiki\n\nLastly, please don't email the authors directly with your questions.  Doing so\nprevents others from potentially helping you and your question/answer from\nshowing up in the list archives.\n\nLicense\n=======\nTcpreplay 3.5 is GPLv3 and includes software developed by the University of\nCalifornia, Berkeley, Lawrence Berkeley Laboratory and its contributors.\n\nAuthors and Contributors\n========================\nTcpreplay is authored by Aaron Turner. In 2013 Fred Klassen, Founder and VP Network Technology,\n[AppNeta](http://appneta.com) added performance features and enhancements,\nand ultimately took over the maintenance of Tcpreplay.\n\nThe source code repository has moved to GitHub. You can get a working copy of the repository \nby installing [git] and executing:\n\n```\ngit clone https://github.com/appneta/tcpreplay.git\n```\n\nHow To Contribute\n=================\nIt's easy. Basically you...\n\n* [Set up git][git]\n* [Fork]\n* Edit (we create a branch per issue)\n* [Send a PR][pr]\n\n\u003cbr /\u003e\n\nDetails:\n--------\nYou will find that you will not be able to contribute to the Tcpreplay project directly if you\nuse clone the appneta/tcpreplay repo. If you believe that you may someday contribute to the\nrepository, GitHub provides an innovative approach. Forking the @appneta/tcpreplay repository\nallows you to work on your own copy of the repository and submit code changes without first\nasking permission from the authors. Forking is also considered to be a compliment so fork away:\n   \n* if you haven't already done so, get yourself a free [GitHub](https://github.com) ID and visit @appneta/tcpreplay\n* click the **Fork** button to get your own private copy of the repository\n* on your build system clone your private repository:\n\n```\ngit clone git@github.com:\u003cyour ID\u003e/tcpreplay.git\n```\n\n* we like to keep the **master** branch available for projection ready code so we recommend that you make a \nbranch for each feature or bug fix\n* when you are happy with your work, push it to your GitHub repository\n* on your GitHub repository select your new branch and submit a **Pull Request** to **master**\n* optionally monitor the status of your submission [here](https://github.com/appneta/tcpreplay/network)\n\nWe will review and possibly discuss the changes with you through GitHub services. \nIf we accept the submission, it will instantly be applied to the production **master** branch.\n\nAdditional Information\n======================\nPlease visit our [wiki](http://tcpreplay.appneta.com).\n\nor visit our [developers wiki](https://github.com/appneta/tcpreplay/wiki)\n\n[GPLv3]:    http://www.gnu.org/licenses/gpl-3.0.html\n[netmap]:   http://info.iet.unipi.it/~luigi/netmap/\n[flow]:     http://en.wikipedia.org/wiki/Traffic_flow_%28computer_networking%29\n[NetFlow]:  http://www.cisco.com/go/netflow\n[Cygwin]:   http://www.cygwin.com/\n[Wireshark]: https://www.wireshark.org\n[tcpdump]:  http://www.tcpdump.org\n[Cisco]:    http://www.cisco.com\n[AppNeta]:  http://www.appneta.com\n[git]:      https://help.github.com/articles/set-up-git\n[Fork]:     https://help.github.com/articles/fork-a-repo\n[pr]:       https://help.github.com/articles/using-pull-requests\n","funding_links":[],"categories":["C","Network and Middleware","\u003ca id=\"58b6684347a223e01d4d76d9ca185a88\"\u003e\u003c/a\u003eReplay\u0026\u0026重播","HTTP/HTTPS/gRPC","System","Network"],"sub_categories":["Ethernet and Wireless Networking","Traffic Replay","Network and Middleware"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappneta%2Ftcpreplay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappneta%2Ftcpreplay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappneta%2Ftcpreplay/lists"}