A method for clustering together network IP addresses is disclosed. A
number of IP addresses are received and processed to determine which IP
addresses share a longest prefix matching. The longest prefix matching
process is performed according to radix encoded trie which facilitates
on-line clustering of the IP addresses. Client and/or server IP addresses
may be clustered in accordance with the teachings herein.