Communication Networks · Visualized

Flooding

Routing

How routers choose paths — flooding everything, computing shortest-path trees, or exchanging distance tables.

3 interactive subtopics — each one animated, step-through and explained.

Flooding

Routing

Flooding is the brute-force routing strategy: forward every incoming packet out of every other interface. The first copy to arrive is guaranteed to have taken the shortest path — but without controls the network drowns in duplicates. Hop limits and remembering seen packets tame the storm.

How Flooding Works

  1. Source sends one copy of the packet to all neighbours.
  2. Every receiving router forwards copies out of all interfaces except the arrival one.
  3. Duplicates soon arrive at routers that already saw that packet — they are discarded.
  4. A hop-count/TTL field decrements per hop and kills packets that wander too long.
  5. Result: fastest delivery possible, at the cost of massive redundant traffic.

Flooding Worked Example

Try it: Play — watch copies spread hop by hop; red ✕ marks discarded duplicates; the TTL counter stops stragglers.

By hop 2 nearly every router already holds a copy; the remaining frames show pure duplication being pruned. Great robustness, terrible efficiency — which is exactly why it survives only inside OSPF link-state announcements.

ABCDEF
newly flooded duplicate ✕ destination reached
Stage 1 / 5
A floods one copy out of EVERY interface — no lookup, no decision.

Flooding: Key Facts to Remember

Guaranteea copy arrives via every possible path — extremely robust
Costmessage complexity explodes exponentially without duplicate suppression
Modern roleused inside link-state protocols to spread topology updates (LSAs)

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.