4 min read

How to Analyze RADIUS, BGP, and OSPF Traffic: A Hands-On Packet Capture Walkthrough

Authentication failures, route flapping, neighbors that won't come up — problems with network devices always end up in a packet capture. Using three real captures, this article shows what to look for in RADIUS, BGP, and OSPF traffic, and how to analyze each one in PcapDecoder.

How to Analyze RADIUS, BGP, and OSPF Traffic: A Hands-On Packet Capture Walkthrough
SummaryKey Points
  • RADIUS: the three authentication states — Accept/Reject/Challenge; the measured sample shows 19 frames, 11 requests, 4 accepts, 2 rejects
  • BGP: OPEN negotiates the ASN, UPDATE propagates routes, NOTIFICATION reports errors; the measured sample shows 9 messages
  • OSPF: Hello builds neighbor adjacencies, LSAs sync the topology; the measured sample shows 31 messages across 3 routers
  • PcapDecoder performs message-level parsing and counting for all three protocols

RADIUS: The Three Authentication States

RADIUS (RFC 2865) is the authentication infrastructure of enterprise networks: Wi-Fi Portal access, VPN dial-in, 802.1X on switches — all of them run on it. It operates over UDP 1812 (authentication) and 1813 (accounting), with an extremely simple request-response model:

NAS (switch/AP)                        RADIUS server
  |---- Access-Request ----------------->|   Username + credentials (password MD5-encrypted)
  |<--- Access-Accept ------------------|   Authentication passed, with authorization attributes
  |<--- Access-Reject ------------------|   Authentication failed
  |<--- Access-Challenge ---------------|   Second credential required (e.g., MFA)

There are only three things to look at in the capture:

  • Code field: 1=Request, 2=Accept, 3=Reject, 11=Challenge — the ratio of requests to accepts to rejects is the health of your authentication system;
  • User-Name attribute: who is authenticating (note that this is a plaintext attribute — handle captures with care);
  • Reply-Message / Error-Cause: the reason for rejection, the most direct clue when troubleshooting.

Measured sample: a FreeRADIUS radtest capture with 19 frames: 11 Access-Requests, 4 Accepts, 2 Rejects, and 2 Challenges — a textbook-perfect set of all three states, and an ideal sample for practicing RADIUS analysis.

BGP: Route Propagation Between Autonomous Systems

BGP (Border Gateway Protocol) is the routing backbone of the internet. It runs on TCP 179 and has exactly four message types:

MessagePurposeWhat to check when troubleshooting
OPENEstablishes the connection, negotiates ASN and Hold TimeAre both ASNs correct? Capability negotiation (MP-BGP, route refresh)
UPDATEAnnounces/withdraws route prefixesNext hop, AS_PATH, MED/Local_Pref attributes
KEEPALIVEKeepaliveIs the peer sending regularly (one third of Hold Time)?
NOTIFICATIONReports an error and drops the connectionThe error code + subcode is the reason for the disconnect

The classic BGP troubleshooting scenarios: neighbor won't come up → look at where the OPEN negotiation stalls; suboptimal routing → look at the AS_PATH length and attributes in UPDATE; periodic session downs → see who sent the first NOTIFICATION and what the error code is.

Measured sample: a BGP capture with 9 messages (a mix of OPEN, UPDATE, KEEPALIVE, and NOTIFICATION) covering the full lifecycle from connection establishment to route propagation; a separate shutdown sample demonstrates a clean NOTIFICATION-driven disconnect.

OSPF: Link State and Neighbors

OSPF is a link-state protocol within an autonomous system: it doesn't advertise routes, it advertises topology — each router describes its own directly connected links, and every router independently computes the shortest-path tree. It runs on IP protocol 89:

  • Hello packets: discover and maintain neighbors (one every 10 seconds; declare failure after 40 seconds without one). If a neighbor won't come up, look at Hello first — area ID mismatches, authentication failures, and MTU inconsistencies all surface here;
  • DD (Database Description): exchanges LSA summaries to sync the topology database;
  • LSR/LSU/LSAck: request, update, and acknowledge specific link states;
  • LSA: the data that actually describes topology (Router-LSA, Network-LSA, etc.).

Troubleshooting takeaway: everything in OSPF starts with the neighbor. If FULL state is never reached, nothing downstream matters. The measured samples cover the full initialization sequence (Loading → Full), another sample shows the Hello exchange with MD5 authentication, and a third mixes HSRP with OSPF in a LAN scenario.

How-to: Analyzing in PcapDecoder

Step 1: Open the file and filter by protocol. PcapDecoder parses and categorizes by protocol — RADIUS/BGP/OSPF messages are directly visible in the protocol column, with one-click filtering to show only your target protocol.

Step 2: Read the message sequence. All three protocols are state-machine driven: RADIUS pairs Request→Accept/Reject, BGP shows the OPEN→UPDATE→KEEPALIVE rhythm, OSPF shows the Hello→DD→LSR→LSU→LSAck sync sequence. Wherever the sequence breaks, that's where the problem is.

Step 3: Use statistics to confirm scale. PcapDecoder's protocol statistics give per-message counts — just like the measured data above, letting you spot at a glance whether "the reject rate has spiked" or "the neighbor has stopped sending Hellos."

!Protocol details

Step 4: Correlate globally before concluding. Routing and authentication failures are never isolated events: could a flood of RADIUS Rejects trigger mass user disconnects? Would a flapping BGP session force traffic onto degraded paths? Pull out the timeline and look for correlations.


Related reading: How to Analyze a TLS 1.3 Handshake: From ClientHello to Application Data, How to Find Network Latency Problems in a Packet Capture: A Four-Step Method.

RADIUSBGPOSPFRouting ProtocolsAAANetwork Devices
Share
Back to home