get_traffic_timeseries
Compute per-interval packet and byte counts from PCAP files to reveal traffic bursts, sustained flows, and periodic patterns.
Instructions
Compute traffic volume over time — packets and bytes per interval.
Uses tshark's io,stat to bucket traffic into fixed-width time windows. Useful for identifying bursts, sustained flows, and periodic patterns.
Args: file_path: Path to the PCAP file interval_seconds: Bucket width in seconds (default: 1.0) display_filter: Optional display filter to restrict which packets are counted (e.g. "tcp", "ip.addr == 10.0.0.1")
Returns: Table of intervals with frame count and byte count per bucket
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| display_filter | No | ||
| interval_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |