Skip to content

Abhisheksinghpawar/DeltaPerf-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ DeltaPerf AI

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.


๐Ÿ” Features

  • ๐Ÿ“ 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 and tabulate 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.

๐Ÿ“ฆ Requirements

  • Python 3.8+
  • pyshark
  • tabulate
  • colorama
  • requests

Install dependencies:

pip install pyshark tabulate colorama requests

๐Ÿ› ๏ธ Usage

  1. Place your .pcap or .pcapng files in the working directory.
  2. Start your local Ollama server (if using AI features).
  3. Run the script:
python delta_perf_ai.py

๐Ÿ“Š Sample Output

๐ŸŽจ Color Legend

Legend: ๐Ÿ”ด >10s ๐ŸŸก >1s ๐ŸŸข โ‰ค1s ๐Ÿ”ต TCP ๐ŸŸฃ UDP โšช Other

๐Ÿ“ File Summary

๐Ÿ“ Available Capture Files: 3

๐Ÿ“ฆ Total Packets Analyzed: 45,320

๐Ÿ”ฅ Latency Events (>1s): 87

๐Ÿงฎ Average Delta Time (s): 0.002345

๐Ÿง  AI Summary (via Ollama)

๐Ÿค– 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.

โš ๏ธ Error Handling

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.

๐Ÿ“ˆ Future Enhancements

  • Export summary to .txt or .csv
  • GUI dashboard with charts
  • Real-time packet stream analysis
  • Integration with cloud-based capture sources

๐Ÿค Contributing

Pull requests and feedback are welcome! Feel free to fork the repo, suggest features, or report bugs.

๐Ÿง  Built With

  • Python
  • PyShark
  • Tabulate
  • Colorama
  • Ollama (for AI summaries)

๐Ÿ“œ License

MIT License โ€” free to use, modify, and share.

About

๐Ÿš€ DeltaPerf AI ๐Ÿ” Analyze. Detect. Summarize

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages