Professional Documents
Culture Documents
HLR Basics
HLR Basics
The Home Location Register is a database within the Home Public Land Mobile Network.
1. It provides routing information for Mobile Terminated calls and Short Message Service. It is also
responsible for the maintenance of user subscription information.
2. This is distributed to the relevant VLR -Visitor Location Register or SGSN - Serving GPRS
Support Node through the attach process and mobility management procedures such as Location
Area and Routing Area updates.
3. HLR stores and manages all mobile subscriptions belonging to a specific operator. The HLR
is considered the most important database because it stores permanent data about subscribers,
including subscribers supplementary services, location information, and. authentication
parameters buys When a person a subscription, it is registered in the operators HLR.
4. The HLR can be implemented with the MSC/VLR or as a stand-alone database.
5. A HLR contains user information such as account information, account status, user
preferences, features subscribed to by the user, users current location, etc. The data stored in
HLRs for the different types of networks is similar but does differ in some details.
6. HLRs are used by the Mobile Switching Centers (MSCs) to originate and deliver arriving mobile
calls.
HLR Redundancy
When a single HLR fails, all subscribers with records in that HLR will not be able to roam or receive
calls. HLR Redundancy can prevent such a loss of subscriber activity. This feature is achieved by
having an additional HLR node for each HLR node in the network. HLR Redundancy provides
protection against disaster situations such as fire at an HLR site. At the same time, it will give
protection against Signalling failures towards an HLR and will also lower the lack of availability
caused by HLR restarts.
With this feature, the subscriber can make and receive calls even in disastrous situations like an
earthquake with little or no change in network continuity or functionality. The HLR Redundancy
feature, allows failure to be invisible to the network and the subscriber. A mated HLR is introduced
in such a way that subscribers and load are shared in normal operation, and when one HLR fails,
the other picks up all traffic normally routed to the pair.
2. VLR
A VLR is a database, similar to a HLR, which is used by the mobile network to temporarily hold
profiles of roaming users (users outside their home area). This VLR data is based on the user
information retrieved from a HLR. MSCs use a VLR to handle roaming users.
Database contains information about all mobile stations currently located in the MSC service area.
VLR contains temporary subscriber information needed by the MSC to provide service for visiting
subscribers. The VLR can be seen as a distributed HLR. The Ericsson VLR is always integrated in
the MSC. When a mobile station roams into a new MSC service area, the VLR connected to that
MSC requests and stores data about the mobile station from the HLR. If the mobile station makes
a call at another time, the VLR will already have the information needed for call setup.
a. User in Home Area: HLR has the necessary information for initiating, terminating, or receiving a
call.
b. User is Roaming: VLR contacts the users HLR to get the necessary information to set up a
temporary user profile.
The users location is recorded in the HLR, and in case the user roaming, it is also recorded in the
VLR.
Suppose that the user wants to make a call:
a. User in Home Area: MSC contacts the HLR prior setting up the to call.
b. User is Roaming: MSC contacts the VLR prior to setting up the call.
Suppose that there is a call for the user (call goes to the home MSC):
a. User in Home Area: Home MSC delivers the call immediately.
b. User is Roaming: Home MSC contacts the VLR to determine the appropriate switch in the
roaming area to handle the arriving call and then transfers the call to the roaming area MSC.
BS
BC
AVAILABLE
SS
STATUS
FNUM
TIME
SADD
CAW
NOT ACTIVE
CFU
NOT ACTIVE 919702900268
CFB
NOT ACTIVE
CFNRY NOT ACTIVE
CFNRC NOT ACTIVE
LOCATION DATA
VLR ADDRESS
4-919891730001
MSRN
MSC NUMBER
919891730001
LMSID
SGSN NUMBER
4-919891030078
PACKET DATA PROTOCOL CONTEXT DATA
APNID PDPADD
EQOSID VPAA PDPCH
0
1 NO
IPV4 1
1
1 NO
IPV4 2
2
1 NO
IPV4 3
5
1 NO
IPV4 6
PDPTY PDPID
END
<
Displays Permanent Subscriber Data (Network Set):
hgsdp:msisdn=614xxxxxxxx,suda;
Displays Message Waiting Indicator (and message source)
hgmwp:msisdn=9197020900269;
PRINT OUT:
HGMWP: MSISDN =919702900269;
HLR SUBSCRIBER MESSAGE WAITING DATA LIST
MSISDN
IMSI
MCE MNRF
919702900269 405799008027031 NO
MNRG
REACH REACH
SCADD
NONE
END
HLR SUBSCRIBER MESSAGE WAITING DATA LIST
MSISDN
IMSI
MCE MNRF MNRG
61433429052
505060000011555 NO NREACH REACH
SCADD
4-61430004010
END
Network Barring:
hgsdc:msisdn=614xxxxxxxx,sud=obo-1;
OBA = BAR ALL incoming and outgoing calls
OBI = bar ALL incoming calls
OBO = bar ALL outgoing calls
0 = OFF
1 = ON
2 = International Barring
OBR-2 = PLMN country (restricts country via IMSI ie. would not be able to roam internationally)
OBR-1 = Home PLMN (restricts to home network via IMSI ie. would not be able to roam on Voda)
User Barring
Customers are able to activate barring via the handset, if customers are unable to perform this
function via the handset you can enable the customer to be able to perform this function via the
handset.
If customer is not enabled to perform a certain type of barring it will not appear on the list.
Eg. BAIC for SMS (TS20) is not enabled for this customer (below) therefore customer would be
unable to active barring for all incoming SMS if desired
BSG
TS20
SS
STATUS
FNUM
SADD
TIME
Parameters:
BAIC
BAOC
BICRO
BOIC
BOIEXH
TS10
TS20
TS60
BS20
BS30
Voice/Telephony
SMS
Fax
Asynchronous Services (MMS, email, browsing - all IP based)
Synchronous (real time video calls)
fgntp:msisdn=x;
Check msisdn against FNR (Flexible Number Registar). If msisdn is not in the FNR subscriber will
not be able to receive calls, but can make calls.
N Prefix will hold a value if customer has ported out of 3. N Prefix follows CAC values. IMSI will
hold value if subscriber is with 3 network.
Subscriber on 3
<<fgntp:msisdn=61404936629;
FNR SUBSCRIBER NUMBER TRANSLATION DATA
NUMBER DATA
MSISDN
61404936629
IMSI
NPREFIX
505060000001884
SUBTYPE
NUMBER DATA
MSISDN
61412691423
IMSI
NPREFIX
SUBTYPE
1411
OTHER
hgslr:msisdn=x;
Purges location data from the HLR (Home Location Registar) which in turn signals the serving VLR
(Visitor Location Registar) to purge the subscriber location details. The subscriber will need to
powercycle handset to re-attach to the network. This command can also be used to purge
subscribers from roaming carriers such as Vodafone & International carriers.
The VLR address shows the country, carrier, state and VLR location address of where the
subscriber is presently located or the last place the network saw the subscriber.
VLR ADDRESS
4-61430004020
"VODA VLR
Addres s es .txt"
Subscriber on 3 network
LOCATION DATA
VLR ADDRESS
4-61430004020
MSRN
MSC NUMBER
61430004020
LMSID
MSRN
MSC NUMBER
61415011903
LMSID
MSRN
MSC NUMBER
393358807000
LMSID
hgcmp:msisdn=x;
Camel HLR profile is related to the IN. If customer is having difficultities making calls this may be
one think you might like to check is correct.
INCORRECT
<hgcmp:msisdn=61411874299;
HLR CAMEL SUBSCRIPTION DATA
MSISDN
TDPTYPE TDP SK
GSA
DEH CCH I
61411874299
OCTDP
2
2 61430004015
1 2
END
CORRECT
<hgcmp:msisdn=61411874299;
HLR CAMEL SUBSCRIPTION DATA
MSISDN
TDPTYPE TDP SK
GSA
DEH CCH I
61411874299
OCTDP
2
32 61430004015
1 2
END
RESTR
IDLE
LAI
505-06-20202
LAI IMSI carrier code and RNC where subscriber last seen.
STATE Current state of subscriber:
IDLE: Ready to rx/tx calls
NOT REG: Not on VLR
DET: Detached from network (phone turned off)
BUSY: Subscriber on call
IDET: Mobile not turned off manually. Battery ran dead or battery removed.
NB: The CPM Tool Subscriber Status can be used as a shortcut to find subscribers current state. Ie Idle,
Busy etc
mgsre:imsi=x;
;
Purges subscriber from VLR (Visitor Location Registar). This command is similar to
hgslr:msisdn=x; although it purges directly from the serving VLR rather than via signalling from
the HLR. This command does not allow you to purge from roaming carrier VLRs.
mgslp:imsi=x;
Displays subscriber data received from the HLR. MSTAT output displays whether subscriber is
registered at present on the MSC (Mobile services Switching Centre) / VLR.
Subscriber Registered on 3
mgslp:imsi=505060000001884;
MT MOBILE SUBSCRIBER LIST
SUBSCRIBER IDENTITY
IMSI
MSTAT MSISDN
CAT
505060000001884 REG
61404936629
10
CAT
GTRC
34
GTRC
3
If a number range is routing to Nilcom (for international SMS) rather than to a direct roaming
partner there will be a value displayed in the MNS parameter
<c7gsp:tt=0,na=4,np=1,ns=961;
CCITT7 GLOBAL TITLE SERIES DATA
OPERATING
TT NP NA NS
0 1 4 961
MTT MNP MNA MNS
0-338
GTRC
37
END
OPERATING AREA
B-NUMBER
MISCELL F/N
240-0
240-02
240-029
240-0298
240-02987
F=140
M=0-14113
D=4-0
END
ROUTE
CHARGE L
CC=4 L=10
The M value equals the CAC code of the carrier. Ie 1411 = Telstra therefore the number range
02987 is a Telstra native number range.
It is important to check the SMAS as well, as individual numbers in this range may have ported to
other carriers.
Commands
Checking ALEX for commands will display a full description of the command. A brief description of
commonly used standards are listed below:
Commands beginning:
H = HLR commands
M = MSC commands
F = FNR commands
Commands ending:
E = end
P = print (display)
I = initiate
C= change
R = reset
AVAILABLE
BS
BC
TS62 92
SYD
----hgsdp:msisdn=61433135110,all;
HLR SUBSCRIBER DATA
SUBSCRIBER IDENTITY
MSISDN
IMSI
STATE
AUTHD
61433135110
505061000007903 CONNECTED
AMSISDN
61433135113
AVAILABLE
BS
BC
TS62 92
EKI
KIND FSETIND A4IND
AMF
505060000611952 506C542CC30FFF48A26785D561A66EF5 23
0
0
DEFAULT
END
4) Reprovision the msisdn with the correct imsi using the PSC tool.
5) To add an additional msisdn - copy the bc value from the good hlr.
hgami:msisdn=61433135110,AMSISDN=61433135113,bc=92;
7) You may need to enable the bsg (in this case fax)
hgsdc:msisdn=61433135110,sud=ts62-1;
Remove Subscriber/Provisioning
The following commands are used to remove the provisioning for a service, from the HLR and
the FNR. Commands must be run on both Sydney and Melbourne machines.
hgsue:msisdn=x;
Provision Service/Subscriber
In order to provision a service on the HLR, the following commands are used.
hgsui:imsi=x,msisdn=y,profile=z;
HLR subscriber initiate. Where Z is 4 for postpaid services, or 6 for pre-paid services.
hgsdc:msisdn=x,sud=ts21-1;
HLR subscriber change, to add SMS-MT.
hgsdc:msisdn=x,sud=ts22-1;
HLR subscriber change, to add SMS-MO.
hgcmi:msisdn=x,octdp=2,sk=32,gsa=61430004091,deh=1,cch=2;
HLR camel initiate, to add camel profile.
hgldi:msisdn=x,univ;
HLR location services data initiate.
hgpdi:msisdn=x,eqosid=100,apnid=10;
hgpdi:msisdn=x,eqosid=100,apnid=11;
HLR packet data initiate, for 3Services (postpaid & prepaid) and 3NetAccess (postpaid only)
When initially created, postpaid services have inbound and outbound calls barred. Prepaid
services initially have inbound calls barred. The barring will need to be removed using the
following command.
hgsdc:msisdn=x,sud=oba-0;