DeltaPerf AI is a Python-powered tool for analyzing .pcap
and .pcapng
network capture files with a focus on latency detection, protocol behavior, and AI-powered summarization. Whether you're a network engineer, security analyst, or curious hacker, DeltaPerf AI transforms raw packet data into actionable insights.
- ๐ Multi-file PCAP Analysis โ Automatically scans and processes all capture files in a directory.
- ๐ฅ Latency Detection โ Flags high-latency events (>1s) and extreme spikes (>10s).
- ๐จ Color-Coded CLI Dashboard โ Uses
colorama
andtabulate
for clean, readable summaries. - ๐ค AI-Powered Summaries โ Integrates with Ollama to generate expert-level insights.
โ ๏ธ Anomaly Detection โ Optional deep dive into suspicious patterns and performance issues.- ๐ง Interactive Prompts โ Choose when to trigger AI analysis or skip it.
- Python 3.8+
- pyshark
- tabulate
- colorama
- requests
Install dependencies:
pip install pyshark tabulate colorama requests
- Place your
.pcap
or.pcapng
files in the working directory. - Start your local Ollama server (if using AI features).
- Run the script:
python delta_perf_ai.py
Legend: ๐ด >10s ๐ก >1s ๐ข โค1s ๐ต TCP ๐ฃ UDP โช Other
๐ Available Capture Files: 3
๐ฆ Total Packets Analyzed: 45,320
๐ฅ Latency Events (>1s): 87
๐งฎ Average Delta Time (s): 0.002345
๐ค Model: tinyllama:1.1b
๐ Generated: 2025-08-08 15:04 CDT
๐ Events Analyzed: 1,204
Summary:
- Latency spikes observed in TCP traffic between 192.168.1.10 and 192.168.1.20.
- UDP traffic remained stable with minimal delay.
- No retransmissions or suspicious behavior detected.
If a file is missing or unreadable:
โ Error processing file ./captures/fuzz-2006-06-26-2594.pcap: [Errno 2] No such file or directory
If Ollama is not running:
โ Ollama is not running. Please start Ollama server to use AI features.
- Export summary to
.txt
or.csv
- GUI dashboard with charts
- Real-time packet stream analysis
- Integration with cloud-based capture sources
Pull requests and feedback are welcome! Feel free to fork the repo, suggest features, or report bugs.
- Python
- PyShark
- Tabulate
- Colorama
- Ollama (for AI summaries)
MIT License โ free to use, modify, and share.