atom

Longest Prefix Match

Longest Prefix Match (LPM)

💡 The Core Idea

When forwarding a packet, the router finds the entry in the routing table that shares the longest common sequence of bits with the packet’s destination address.

🧠 Context

With CIDR (Classless Inter-Domain Routing), multiple entries might match a single IP.

Why is this hard?

🔗 Connections