Mechanism for mapping IP addresses to identifiers