Network Analyzers

tcpflow – TCP stream reconstruction tool

tcpflow is a network analysis utility that captures TCP traffic and reconstructs the byte streams exchanged between communicating hosts. Unlike packet analyzers that present traffic primarily as individual network packets, tcpflow reorganises the captured data into continuous streams that can be inspected as files. This makes it useful for examining application protocols, investigating network incidents and recovering information from recorded TCP conversations.

The program can operate on live network interfaces or process packet captures created by other tools. It identifies TCP connections and maintains separate output for each direction of communication, allowing requests and responses to be examined independently. TCP sequence numbers are used to reconstruct data in the correct order rather than preserving the order in which packets happened to arrive. tcpflow also includes facilities for analysing selected application content and generating reports. Its output can be inspected using conventional text editors, binary analysis utilities or forensic processing tools.

This is free and open source software.

Key Features

  • Capture TCP traffic from live network interfaces.
  • Process previously recorded packet capture files.
  • Reconstruct TCP byte streams from individual packets.
  • Reorder out-of-sequence TCP segments.
  • Handle retransmitted TCP data during stream reconstruction.
  • Save each direction of a TCP connection to a separate file.
  • Identify connections using source and destination addresses and ports.
  • Apply packet capture filters to restrict analysed traffic.
  • Preserve application data for subsequent forensic analysis.
  • Support for processing HTTP conversations and selected application content.
  • Generate reports about captured network activity.
  • Analyse traffic without requiring access to the originating applications.
  • Support IPv4 and IPv6 traffic.
  • Command-line operation for integration with forensic workflows and scripts.
  • Export reconstructed streams for inspection by external applications.

Website: github.com/simsong/tcpflow
Support:
Developer: Simson L. Garfinkel and contributors
License: GNU General Public License v3.0

tcpflow is written in C++. Learn C++ with our recommended free books and free tutorials.


Related Software

Network Analyzers
WiresharkNetwork protocol analyzer with a rich and powerful feature set
SniffnetVisualise live network traffic with a friendly interface
KismetWireless network and device detector, sniffer, wardriving tool
EttercapComprehensive suite for man in the middle attacks
IPTraf-ngFeature-laden network statistic monitoring tool
ZeekNetwork security monitoring with deep traffic insight
netsniff-ngSwiss army knife for daily Linux network plumbing
KyanosNetworking analysis tool using eBPF
ArkimeIndexes full packet captures for rapid, large-scale traffic investigation
EtherApeGraphical network monitor
darkstatCaptures network traffic, calculates usage statistics, and serves reports
justnifferNetwork TCP packet sniffer with reliable TCP flow rebuilding
tcpflowTCP/IP packet demultiplexer
tcpdumpPowerful and hugely respected command-line packet analyzer
sniffgluePacket sniffer written in Rust
sniffer Alternative network traffic sniffer
RustNetTerminal monitor for connections and bandwidth
MalcolmTraffic analysis suite for capture, hunting and forensics
dsniffCollection of tools for network auditing and penetration testing
ngrepgrep applied to the network layer
Network MonitorRreal-time network connection monitoring tool
sniffitCORBA based sniffer system with ncurses interactive mode
JomonNetwork forensics and sniffer tool

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted