BEAR: BGP Event Analysis and Reporting

Hanqing Li, Melania Fedeli, Vinay Kolar, Diego Klabjan
6/4/2025
cs.NIcs.AI

No official code found. Best implementation: hanklee97121/BEAR_BGP_EVENT_ANALYSIS (3 stars, MIT, last commit 2025-04-08).

Abstract

The Internet comprises of interconnected, independently managed Autonomous Systems (AS) that rely on the Border Gateway Protocol (BGP) for inter-domain routing. BGP anomalies--such as route leaks and hijacks--can divert traffic through unauthorized or inefficient paths, jeopardizing network reliability and security. Although existing rule-based and machine learning methods can detect these anomalies using structured metrics, they still require experts with in-depth BGP knowledge of, for example, AS relationships and historical incidents, to interpret events and propose remediation. In this paper, we introduce BEAR (BGP Event Analysis and Reporting), a novel framework that leverages large language models (LLMs) to automatically generate comprehensive reports explaining detected BGP anomaly events. BEAR employs a multi-step reasoning process that translates tabular BGP data into detailed textual narratives, enhancing interpretability and analytical precision. To address the limited availability of publicly documented BGP anomalies, we also present a synthetic data generation framework powered by LLMs. Evaluations on both real and synthetic datasets demonstrate that BEAR achieves 100% accuracy, outperforming Chain-of-Thought and in-context learning baselines. This work pioneers an automated approach for explaining BGP anomaly events, offering valuable operational insights for network management.

View on arXivView PDF

Code Implementations(1)

MIT

Use LLM to explain a BGP anomaly event and create a report

30Python, Jupyter NotebookOct 11, 20241 years agoMIT

Similar Papers

Cite this paper

@article{li2025bear,
  title  = {BEAR: BGP Event Analysis and Reporting},
  author = {Hanqing Li and Melania Fedeli and Vinay Kolar and Diego Klabjan},
  year   = {2025},
  eprint = {2506.04514},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.04514v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.04514.svg)](https://codeofpaper.com/paper/2506.04514)

Discussion