March 28, 2026 MOBITELSMS Engineering 13 min read

Every mobile phone call, every SMS message, and every data session begins with a query to the Home Location Register. The HLR is the authoritative database that knows which subscribers belong to a network, what services they are entitled to, and -- crucially -- where they are right now. For anyone working in telecommunications, whether building SMS platforms, implementing fraud detection, or optimizing message delivery, understanding the HLR is essential.

What Is the Home Location Register?

The HLR is a centralized database maintained by every mobile network operator. It stores the permanent subscriber record for every SIM card (subscriber) that belongs to that network. When you buy a SIM card from an operator, a record is created in that operator's HLR. That record remains in the HLR for as long as you are a subscriber, regardless of where you physically are in the world.

The HLR is "home" in the sense that it belongs to the subscriber's home network -- the operator they have a contract with. Even when a subscriber roams to another country and connects to a visited network, the home HLR remains the authoritative source of information about that subscriber.

What Data Does the HLR Store?

The HLR maintains several categories of subscriber information:

HLR vs. VLR vs. AuC vs. EIR

The HLR is part of a family of databases in the GSM architecture, each with a specific role:

In practice, modern implementations often combine HLR, AuC, and sometimes EIR into a single physical platform. Vendors like Ericsson, Nokia, and Huawei sell these as integrated subscriber data management systems.

MAP Operations: How Applications Talk to the HLR

The Mobile Application Part (MAP) protocol, running over SS7's TCAP and SCCP layers, defines the operations used to query and update the HLR. The most important MAP operations for SMS and telecom service providers:

SRI-SM (Send Routing Info for Short Message)

This is the operation that makes SMS delivery work. When an SMSC needs to deliver an SMS, it sends an SRI-SM to the recipient's HLR. The request contains the recipient's MSISDN. The HLR responds with:

This operation is the foundation of SS7-based SMS routing. Without SRI-SM, an SMSC would have no way to find the recipient's current location.

ATI (AnyTimeInterrogation)

ATI queries the HLR for the subscriber's current location (cell ID, geographic coordinates if available) and subscriber state (idle, busy, not reachable). This operation is used for location-based services and fleet management. It is also the operation most commonly exploited in SS7 surveillance attacks, which is why many operators now restrict ATI access to authorized sources only.

SAI (Send Authentication Info)

SAI requests authentication vectors from the HLR/AuC. The VLR uses these vectors to authenticate the subscriber during network attachment and at periodic intervals. In GSM (2G), the response contains authentication triplets (RAND, SRES, Kc). In UMTS (3G), it contains authentication quintets (RAND, XRES, CK, IK, AUTN).

Update Location / Cancel Location

When a subscriber moves to a new VLR area, the new VLR sends an UpdateLocation to the HLR, registering itself as the current serving VLR. The HLR then sends a CancelLocation to the old VLR, instructing it to delete its copy of the subscriber record. This handover process ensures that only one VLR holds the subscriber's data at any time.

Insert Subscriber Data / Delete Subscriber Data

When the HLR needs to update the subscriber's profile in the serving VLR (e.g., a service change, a roaming restriction update), it sends InsertSubscriberData to push the new data. DeleteSubscriberData removes specific profile elements.

HLR Lookup as a Service

HLR lookup has become a widely available commercial service, used by businesses for number validation, delivery optimization, and fraud prevention. A commercial HLR lookup queries the operator's HLR (via SS7 SRI-SM or proprietary interfaces) and returns information about the number:

Use Cases for HLR Lookup

HLR in 4G and 5G: The Evolution to HSS and UDM

As mobile networks evolved beyond GSM/3G, the HLR concept was extended and eventually replaced:

HSS (Home Subscriber Server) -- 4G LTE

In 4G LTE networks, the HSS replaces the HLR. The HSS combines the functions of the HLR and AuC into a single database, accessed via the Diameter protocol (specifically the Cx, Dx, Sh, and S6a interfaces) rather than MAP over SS7. The HSS stores the same categories of subscriber data as the HLR (IMSI, MSISDN, service profile, authentication keys, location) but adds LTE-specific data like APN configurations, QoS profiles, and EPS security contexts.

Most operators run the HSS alongside a legacy HLR, with synchronization between the two databases to support subscribers on both 4G and 2G/3G networks simultaneously. The HLR and HSS often run on the same physical platform.

UDM/UDR (Unified Data Management / Unified Data Repository) -- 5G

In 5G Standalone (SA) networks, the subscriber database function is split into two components:

This separation of logic (UDM) and storage (UDR) is a deliberate architectural choice that enables cloud-native deployment, independent scaling, and multi-vendor interoperability. The UDR can store not just subscriber data but also policy data (previously handled by PCRF/PCF) and application-specific data.

Commercial HLR Lookup APIs

For businesses that need HLR lookup capabilities without operating their own SS7 infrastructure, several options exist:

API Response Fields

A typical HLR lookup API response includes:

{
  "msisdn": "+447700900123",
  "mcc": "234",
  "mnc": "15",
  "network": "Vodafone UK",
  "country": "GB",
  "status": "DELIVERED",
  "ported": true,
  "original_network": "EE",
  "roaming": false,
  "imsi": "234150123456789",
  "subscriber_status": "CONNECTED"
}

The ported field is particularly valuable for SMS routing. If a number has been ported, routing through the original network will fail or incur forwarding charges. Knowing the current serving network enables direct routing.

HLR Lookup for Fraud Prevention

HLR lookups are increasingly used as a fraud signal in multi-factor authentication and financial services:

The HLR has been the backbone of mobile subscriber management since GSM launched in 1991. While its implementation has evolved from standalone physical hardware to virtualized cloud-native microservices, the fundamental concept remains the same: a central source of truth that knows who every subscriber is, what they are authorized to do, and where they are right now. For anyone building services that touch the mobile network -- SMS, voice, authentication, or fraud detection -- the HLR is where the answers are.