What is HLR?

A HLR (Home Location Register) is a database for managing subscribers on 2G and 3G networks. For IoT initiatives, this database helps ensure that only authenticated and authorized users and devices can access their services.

Each 2G and 3G network operator maintains its own Home Location Register: a network database that contains certain details for each client/subscriber. In 4G networks, a master database known as Home Subscriber Service (HSS) performs this function. For 5G, this is managed by a unified database server.

How does an HLR work?

Let's say a device monitor (device A) needs to transmit data to another device (device B) on a 2G network:

The transmission signal from device A is picked up by a local transceptor station and relayed to a base station controller (BSC).

The BSC then relays an access request to the local Mobile Switching Center (MSC), which is essentially a control center to authorize connections between devices.

MSC accesses the HLR to verify that device A is authorized to use the network. If authorized, access is approved.

If device B is on the same network as Device A, MSC will also use the HLR to verify that device B is authorized to connect. If device B is on a different network, MSC will send the request to the MSC of the other network. This network will have its own HLR to verify that device B is authorized to connect.

What information does HLR contain?

The two most important information are the following:

  • IMSI (International Mobile Subscriber Identity): It is the unique identifier of each Identity Module of the Subscriber (SIM) authorized to access the network.
  • MSISDN (Mobile Station International Subscriber Digital Network): The number used to connect with a specific subscriber. Unlike IMSI, an MSIDN is not locked to a specific SIM card.

Each device on an IoT network will have a unique MSISDN. Especially if your devices are used in motion or deployed in several different locations, it makes sense if they can connect to any network that provides the best signal. Therefore, it can make sense to equip your devices with multi-imsi SIM cards, which will allow them to connect to a wide range of networks.

What are the benefits of HLR?

  • Subscriber Management:

Within a single IoT ecosystem, access requirements may vary. See a logistics system, for example. Some employees may need access to limited data readings linked to the condition of the equipment and the fleet. Others may require access to a much larger range of big data across the enterprise to optimize operations. An HLR allows you to configure and manage different levels of access.

Likewise, for a public-oriented system, a customer may have paid for certain services, but not for others. The HLR can differentiate between these different levels and enable access accordingly. If a client (or employee) leaves, they will be removed from the HLR, keeping you in control of network access.

  • Location tracking:

When sending tracking area updates (TAUS), the network can periodically check the last known location of a device. This is then stored in the HLR. This location tracking is useful for establishing a region-based pricing structure.

What are the disadvantages of HLR?

  • security:

An HLR contains confidential subscriber information, such as their location, how they can be contacted and the services they are allowed to access. If threat agents were to gain access to the HLR, the information obtained could be used for a variety of attacks, including financial fraud and identity theft.

You need to ensure that appropriate measures are in place to ensure your IoT network is secure. This can include a firewall to identify and filter malicious messages, a virtual private network (VPN) and authentication measures (for example, username and password combinations) for individual devices.


For more explanations about IoT, visit our glossary.