traffic-analysis

Capture and analyze network packets using tcpdump, tshark, iftop, and nethogs.

50|13|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/chaterm/terminal-skills --skill traffic-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: traffic-analysis
Source: https://github.com/chaterm/terminal-skills/tree/main/network/traffic-analysis
Command: npx skills add https://github.com/chaterm/terminal-skills --skill traffic-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you understand and diagnose network issues by capturing, analyzing, and interpreting network traffic data.

Core Features & Use Cases

  • Packet Capture: Use tcpdump to capture network packets on any interface.
  • Traffic Analysis: Employ tshark (Wireshark CLI) for deep packet inspection and statistical analysis.
  • Real-time Monitoring: Utilize iftop and nethogs to monitor bandwidth usage by connection and process.
  • Use Case: Troubleshoot slow website loading by capturing HTTP traffic, identifying large requests, and analyzing DNS resolution times.

Quick Start

Capture all TCP traffic on port 80 and save it to a file named capture.pcap.

Frequently Asked Questions about traffic-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture network packets on a specific port using tcpdump?

Capture network packets on a specific port using tcpdump by applying port filters to isolate traffic, such as port 80 for HTTP. This allows you to save the filtered packet capture to a pcap file for historical analysis and troubleshooting connectivity issues.

What's the best way to monitor bandwidth consumption by process in real-time?

Monitor bandwidth consumption by process in real-time using command-line utilities like iftop and nethogs. These tools provide live network traffic inspection, allowing you to identify which specific connections or processes are consuming bandwidth and causing performance bottlenecks.

Can I use tshark for deep packet inspection without the Wireshark GUI?

Yes, you can use tshark for deep packet inspection without the Wireshark GUI. Tshark operates as a command-line utility, enabling statistical analysis and detailed examination of network traffic data directly from the terminal for diagnosing performance issues.

How does packet capture help troubleshoot slow website loading?

Packet capture helps troubleshoot slow website loading by recording HTTP traffic to identify large requests and analyzing DNS resolution times. This process highlights network delays and performance bottlenecks affecting connectivity, allowing targeted diagnosis of the connectivity issue.

Do I need root privileges to run network traffic analysis tools like ngrep?

Running network traffic analysis tools like ngrep, tcpdump, and tshark typically requires root privileges or elevated permissions. Access to raw network interfaces for packet capture and real-time data inspection is restricted to authorized users for security reasons.