Skip to content

HLR vs VLR: What Is the Difference in GSM?

HLR vs VLR explained: what each mobile network register stores, how they work together for calls, SMS and roaming, and what replaced them in 4G and 5G.

Updated 20 October 2026

The difference between HLR and VLR: the HLR (Home Location Register) is the mobile operator's central, permanent database of its subscribers, while the VLR (Visitor Location Register) is a temporary database attached to a switching centre that holds data for the subscribers currently in its area. The HLR knows who you are and which VLR serves you now; the VLR knows you are here.

What is HLR and VLR?

Both are databases in GSM and UMTS (2G and 3G) core networks.

  • HLR (Home Location Register): one logical database per operator. It stores each subscriber's permanent profile: IMSI (the SIM identity), MSISDN (the phone number), allowed services, call forwarding and barring settings, and a pointer to the VLR and switching centre currently serving the subscriber. It works with the AuC (Authentication Centre), which holds the secret keys used to authenticate SIMs.
  • VLR (Visitor Location Register): usually built into each MSC (Mobile Switching Centre). When a phone enters that MSC's area, the VLR copies the subscriber's profile from the HLR and records the location area. It serves calls and SMS locally without asking the HLR each time. Data is removed when the phone moves away.

Difference between HLR and VLR

HLRVLR
Type of dataPermanent subscriber profileTemporary copy plus current location area
How manyOne logical HLR per operator (often several physical nodes)One per MSC area
CoversAll of the operator's own subscribers, wherever they areEveryone currently in the area, including roaming visitors
Location detailWhich VLR/MSC serves the subscriberWhich location area the phone is in
Updated whenSubscription changes, or the subscriber moves to a new VLRThe phone registers, moves or switches off
Used byNetwork routing of incoming calls and SMS, roaming partners, HLR lookupsLocal call and SMS handling, paging

How do HLR and VLR work together?

  1. Registration: a phone switches on in an area. The VLR there asks the HLR for the subscriber's profile; the HLR authenticates via the AuC, sends the profile and records which VLR now serves the subscriber.
  2. Roaming: abroad, the visited network's VLR contacts the home HLR over international signalling. The HLR updates the location and the old VLR deletes its copy.
  3. Incoming SMS: the sending SMS centre asks the HLR where to deliver. The HLR answers with the serving MSC, which uses its VLR data to page the phone and deliver the message.
  4. Incoming call: the gateway switch asks the HLR, which asks the serving VLR for a temporary roaming number, and the call is routed there.

What does an HLR VLR lookup show?

A commercial HLR lookup uses the same signalling query an SMS centre makes before delivery. It can return whether the number exists and is active, the home network (as MCC and MNC), whether it has been ported, and sometimes whether it is roaming or which network is serving it. It does not reveal the subscriber's identity or precise location. Senders use it to clean lists and route correctly; see phone number validation API. Because the HLR also tells the network where to send SMS, it plays a part in number portability routing and in operator SMS firewalls, which block suspicious signalling queries.

Do HLR and VLR exist in 4G and 5G?

Their roles continue under new names. In 4G (LTE), the HSS (Home Subscriber Server) takes over the HLR's role, and the MME tracks the phone's location, a role close to the VLR's. In 5G core networks, the UDM (Unified Data Management) holds subscriber data and the AMF handles registration and mobility. Many networks still run HLR functions for 2G and 3G and for SMS delivery, and HLR lookups remain widely available.

SMS routes that reach the right network

Correct routing starts with knowing the subscriber's current network. VoIPMatcher sources A2P SMS routes from its carriers and manages them for you. Request an SMS route.

Frequently asked questions

What is the full form of HLR and VLR?

HLR stands for Home Location Register and VLR stands for Visitor Location Register. Both are databases in GSM and UMTS mobile core networks: the HLR holds permanent subscriber data for the operator, and the VLR holds temporary data for subscribers currently in a switching centre's area.

What is the role of AuC with HLR?

The AuC (Authentication Centre) stores the secret key shared with each SIM and generates the authentication data the network uses to check that a SIM is genuine. It usually works alongside the HLR, which passes this data to the VLR when a subscriber registers.

Where is the VLR located?

The VLR is usually integrated into the Mobile Switching Centre (MSC) it serves, so each MSC area has its own VLR. When a phone moves into a new MSC area, the new VLR registers it and the HLR tells the old VLR to delete its copy.

What is EIR in GSM?

The EIR (Equipment Identity Register) is a database of device IMEI numbers. Operators can use it to block stolen or unapproved handsets. It identifies the device, while the HLR and VLR deal with the subscriber and the SIM. Not every operator uses it in the same way.

Need a route?

Send the destination, route type and target rate. We reply with what we can deliver.

More guides

All guides
A2P SMS What Is SMPP? The SMPP Protocol Explained What the SMPP protocol is, how SMPP binds and PDUs work, what an SMPP server is, and when to use SMPP instead of an HTTP SMS API. A2P SMS SMS Short Codes: How They Work and What They Cost What an SMS short code is, dedicated vs vanity vs shared codes, how US short codes are approved, what short codes cost and when one is worth it. A2P SMS SMS OTP Cost: What Verification SMS Costs What drives the cost of OTP SMS by country, how to calculate the real cost per verification and how to lower it without losing delivery. A2P SMS Toll-Free SMS Verification: Steps and Timelines How US toll-free SMS verification works in 2026: required business details and BRN, opt-in proof, review times and common rejection reasons. A2P SMS WhatsApp vs SMS for OTP and Alerts: Cost, Reach WhatsApp vs SMS for OTP codes and alerts: reach, Meta per-message pricing as of 2026, security, and how to combine both channels by country. A2P SMS What Is an SMS API and How to Integrate One What an SMS API is, how it works from request to delivery report, integration steps, API key security and what to look for in a provider. A2P SMS SMPP Error Codes: Full List and What They Mean SMPP error codes explained: common SMPP 3.4 command_status values such as 0x0B, 0x45 and 0x58, their causes, and which to retry or treat as permanent. A2P SMS SMS Compliance: Opt-In, Opt-Out and Consent Rules SMS compliance basics for senders: opt-in consent, STOP and opt-out rules, regional laws, A2P registration and a practical checklist.