🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Bgp Analysis

by @vahagn-madatyan

BGP protocol analysis with peer state diagnosis, path selection verification, route filtering validation, and convergence assessment. Multi-vendor coverage f...

Versionv0.1.1
Installs1
⚑ When to Use
TriggerAction
- Suspected route leak β€” prefixes appearing in tables where they should not
- Path selection not matching expectations after policy changes
- Convergence too slow after planned maintenance or unplanned failover
- Post-change verification of BGP configuration (new peers, policy updates, community changes)
- Capacity planning for prefix table growth or session scaling
- Investigating asymmetric routing caused by inconsistent BGP attributes
βš™οΈ Configuration

  • SSH or console access to the router (read-only privilege sufficient)
  • BGP process running on the device with at least one configured peer
  • Knowledge of expected peer topology: which neighbors should be up, expected
  • prefix counts per peer, intended path selection outcomes
  • Awareness of configured routing policy: route-maps, prefix-lists, community
  • filters, AS-path access lists, and local-preference assignments
  • For iBGP: understanding of the route-reflector or full-mesh topology
  • πŸ“‹ Tips & Best Practices

    Session Flapping

    Peer cycles between Established and Idle/Active repeatedly. Common causes: unstable underlying transport (IGP flap, link errors), aggressive hold timers on congested control planes, or MTU issues on the path causing fragmented keepalives to be dropped. Check last reset reason and correlate with interface or IGP events at the same timestamps.

    Route Oscillation

    The same prefix alternates between two or more paths. Caused by inconsistent MED comparison across route reflectors, or deterministic-MED not enabled when multiple exit points exist to the same neighbor AS. Enable always-compare-med and deterministic-med to stabilize.

    Memory Pressure from Full Table

    Full Internet table (~950K IPv4 prefixes) requires 1–2 GB of RIB memory depending on path diversity. Symptoms: slow convergence, peer resets during table reload. Mitigate with soft-reconfiguration inbound (trades memory for stability) or ORF (Outbound Route Filtering) to reduce inbound load.

    Community Stripping

    Routes arrive without expected communities. Check each transit AS in the path β€” many providers strip non-standard communities by default. Use large communities (RFC 8092) for end-to-end propagation across providers that strip standard communities.

    JunOS Default Export Policy

    JunOS sends no routes to a peer without an explicit export policy. If a peer shows Established with zero prefixes sent, add an export policy. This is the most common JunOS-specific BGP issue and does not occur on Cisco or EOS.

    View on ClawHub
    TERMINAL
    clawhub install bgp-analysis

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’