All
Articles 174,232Blog Posts 163,914Tech Tutorials 46,438Research Papers 34,131News 21,989
⚡ AI Lessons

Dev.to · pathvector-dev
🔧 Backend Engineering
⚡ AI Lesson
1mo ago
Which router wins the segment? Read the election, not the docs
OSPF's DR/BDR election on a broadcast segment is a filter, a max(), and a tie-break — read it as three lines of Python instead of a bullet list.

Dev.to · pathvector-dev
🔧 Backend Engineering
⚡ AI Lesson
1mo ago
A Hello does not make a neighbor Full — the code says so in two stages
OSPF's neighbor state machine reads as two separate gates in code: Hello-phase booleans decide Init/2-Way/ExStart, and database-exchange inputs decide Loading/F

Dev.to · pathvector-dev
🔧 Backend Engineering
⚡ AI Lesson
1mo ago
An OSPF Hello has to match before it can mean anything
Reading OSPF's Hello check as code: the five fields that must match before a neighbor relationship can even begin, and why seeing your own router ID changes eve

Dev.to · pathvector-dev
🔧 Backend Engineering
⚡ AI Lesson
1mo ago
A BGP speaker is just state plus three event handlers
Fourteen sessions of BGP logic collapse into one small Python object: six pieces of state, three methods, and one three-line rhythm repeated in each of them.

Dev.to · pathvector-dev
🔐 Cybersecurity
⚡ AI Lesson
1mo ago
Announce, withdraw, and peer down are three different code paths
Reading a BGP event dispatcher as code: why announce gates the peer, withdraw skips the gate, and peer-down is the only branch that can touch many prefixes at o

Dev.to · pathvector-dev
🔐 Cybersecurity
⚡ AI Lesson
1mo ago
When Loc-RIB changes, every peer needs a different answer
Reading BGP export refresh as code: how one Loc-RIB change turns into an advertise for one peer, a withdraw for another, and silence for a third.

Dev.to · pathvector-dev
🔧 Backend Engineering
⚡ AI Lesson
1mo ago
Established is not a status label — it's a write permission
In BGP, whether a route reaches Adj-RIB-In comes down to the placement of a single if. Read the session-state gate as code.

Dev.to · pathvector-dev
🔐 Cybersecurity
⚡ AI Lesson
1mo ago
One route, one function chain: reading a BGP pipeline as code
Trace a single received BGP route end to end through validation, import policy, best-path, and export — and watch nine sessions of isolated snippets turn into o

Dev.to · pathvector-dev
🔐 Cybersecurity
⚡ AI Lesson
1mo ago
When a BGP peer disappears, one session loss becomes many route decisions
Reading BGP peer loss as code: why a single session going down triggers a set of withdrawals plus a per-prefix best-path recomputation, and why some prefixes su

Dev.to · pathvector-dev
🔧 Backend Engineering
⚡ AI Lesson
1mo ago
Import policy rewrites the route before best-path ever sees it
Reading BGP import policy as code: the candidate that enters best-path selection is not always the one the peer sent.

Dev.to · pathvector-dev
🔐 Cybersecurity
⚡ AI Lesson
1mo ago
Validation State Doesn't Act By Itself
RPKI tells you a route is invalid — it does not tell the router to drop it. Read the BGP policy layer as code and see why validation and policy are separate.

Dev.to · pathvector-dev
🔐 Cybersecurity
⚡ AI Lesson
1mo ago
Origin validation is a separate decision from best path
BGP picking a best path doesn't mean the origin AS is authorized — read RPKI origin validation as code and see why valid, invalid, and not_found are three disti
DeepCamp AI