A two-tier location management mechanism for IMS