IP Route Lookups as String Matching
Austin Donnelly and Tim Deegan
Proc. 25th IEEE LCN, pp. 598-585, November 2000.

An IP route lookup can be considered as a string matching problem on the destination address. Finite State Automata (FSA) are a flexible and efficient way to match strings. This paper describes how a routing table can be encoded as an FSA and how, through a process of state reduction, we can obtain an optimal representation. This gives insights into the basic properties of the longest-prefix match problem.

[PDF]