GSM Architecture Explained: MSC, BSC, BTS, HLR, VLR, AuC and Call Flow
Follow one fictional GSM subscriber to see how radio access, switching, location records, authentication and incoming-call delivery fit together.
KnowledgeGate Team
Exam prep & CS education

GSM diagrams look like boxes connected by initials, but questions become easy only when you know who carries the radio signal, switches the call, remembers the subscriber, and reacts when the phone moves. A location update changes register ownership; the incoming call then uses that state to find the handset. Use CS Fundamentals for Exams & Placements as the wider Computer Networks study home.
1. GSM architecture at a glance: radio access, switching, and subscriber data
The mobile station MS-17, meaning mobile equipment plus SIM, crosses Um to BTS-B7, Abis to BSC-B2, and the A interface to MSC-B/VLR-B. BSS = BTS + BSC is the radio-access side. The circuit-switched core has MSC, VLR, HLR, AuC, and the gateway function. GMSC is the gateway role for calls entering GSM from an external network.
Element | Primary job | Information it may use | What it does not do |
|---|---|---|---|
BTS | Transmit and receive for one cell | Radio channel and burst data | Switch external calls |
BSC | Control a group of BTSs | Channel and handover state | Store the permanent profile |
MSC | Switch calls and coordinate mobility | Serving and routing state | Transmit radio bursts |
HLR | Keep the home profile and serving pointer | Subscription and serving VLR | Track the idle phone's exact BTS |
VLR | Keep temporary local subscriber state | IMSI, TMSI, location area | Remain the permanent home record |
AuC | Supply authentication material | Long-term secret and generated data | Carry speech or reveal |
BTS and BSC manage radio access. MSC manages switching and mobility. HLR, VLR, and AuC supply state and authentication data. Logical functions can share equipment, especially MSC and VLR, but their roles remain distinct.
The earlier Mobile Technology in Computer Networks connects cellular reuse, multiple-access methods, and handoff. The state traces below instead follow authentication, location update, and incoming-call delivery.

2. BTS and BSC: what happens on the radio side
BTS-B7 sends and receives radio bursts on assigned channels for MS-17, then passes traffic and signalling to BSC-B2. It neither decides the permanent profile, replaces core HLR access, nor switches external calls.
BSC-B2 supervises BTS-B7, BTS-B8, and BTS-B9, allocates and releases radio resources, and can control a B7-to-B8 handover. Both cells are inside LA-2007, so neither the HLR serving-VLR pointer nor the VLR location-area value changes.
B7 -> B8, same BSC: intra-BSC radio handover.B8 -> BTS-C1, another BSC but the same MSC: the MSC participates, whileVLR-Bcan remain the serving VLR.Entry into
LA-3004underMSC-C/VLR-C: a wider location-register update follows.
A cell change does not imply an HLR update.
3. MSC and GMSC: switching is not subscriber storage
MSC-B sets up, routes, controls, and releases circuit-switched calls while coordinating mobility with the BSS and registers. VLR-B supplies temporary subscriber and location information; HLR-H1 remains the home record.
GMSC-G1 receives an external call and asks the HLR where to route it. It is not automatically the serving MSC and does not store the handset's exact cell. Classic GSM call setup and mobility signalling are not TCP or UDP sessions. TCP vs UDP: Transport Layer Explained covers that adjacent concept, not GSM call control.
4. HLR, VLR, and AuC: profile, whereabouts, and trust
Store | State for this subscriber | Boundary |
|---|---|---|
| Permanent profile; serving pointer | No exact idle-handset BTS |
|
| Temporary, local state |
| Long-term secret and authentication material | Does not send |
Classic GSM authentication is a comparison. The network sends fictional RAND 11223344556677889900AABBCCDDEEFF; the SIM returns SRES 89ABCDEF; expected SRES is 89ABCDEF, so the check passes. Fictional Kc 0123456789ABCDEF is the ciphering key. The comparison consumes A3/A8 outputs; it does not reveal either algorithm. Long-term Ki stays inside the SIM and AuC trust domain. It is never sent over Um.
Separate five identifiers: IMSI 404450001234567 identifies the subscription; TMSI 0x7C91E205 is a temporary local identity; MSISDN +91 98100 12345 is the public dialled number; MSRN +91 1170004321 is temporary incoming-call routing data; and IMEI identifies equipment. EIR is the database associated with equipment identity.
5. Worked example: location update after a VLR change
Time | HLR-H1 | VLR-A | VLR-B | Radio and core path |
|---|---|---|---|---|
| Points to | Old | No record |
|
| Points to | Old record exists | Update using old TMSI and old LA context |
|
Procedure and ownership:
VLR-Bidentifies the subscription using the old VLR context or IMSI.VLR-Bobtains authentication data through the home-system path.The network sends the same RAND through
MSC-B,BSC-B2, andBTS-B7.The SIM returns
SRES 89ABCDEF.VLR-Bcompares89ABCDEFwith expected89ABCDEF: equal, so authentication passes.VLR-Bcreates its record and assignsTMSI 0x7C91E205.HLR-H1changes its pointer fromVLR-AtoVLR-B.HLR-H1directs VLR-A to cancel the old record.
Ki crosses no interface. At 09:13, HLR-H1 points to VLR-B; VLR-B stores the IMSI, LA-2007, and new TMSI; VLR-A has no active record. While idle, the handset could be under B7, B8, or B9. Three categories changed: home routing pointer, serving-VLR record, and temporary identity. IMSI and MSISDN did not.

6. Worked example: routing an incoming call
At 09:20, a caller dials MSISDN +91 98100 12345. GMSC-G1 queries HLR-H1, which sees VLR-B, obtains temporary MSRN +91 1170004321 from the serving MSC/VLR side, and returns it. The gateway routes the call to MSC-B. MSRN is routing data, not a replacement for IMSI, TMSI, or MSISDN.
MSC-B knows LA-2007, so it pages through BSC-B2 across B7, B8, and B9. MS-17 answers through B7, BSC-B2 assigns a radio resource, and MSC-B completes setup. Moving B7 to B8 inside the area needs no location update, but paging still covers the area.
This is mobility and call routing. Routing Algorithms: Distance Vector vs Link State explains how packet-network routes are computed. The shared word does not make their state or algorithms interchangeable.
7. GSM architecture question patterns and traps
Common questions ask you to match nodes with jobs, label Um, Abis, and A, trace state across a cell, location-area, or VLR boundary, or identify changes during update, authentication, or call delivery.
Mistake | Consequence | Correction |
|---|---|---|
BTS switches external calls | Radio and switching roles reverse | MSC switches; BTS provides radio access |
BSC stores the permanent subscription | Mobility state is misplaced | HLR is the home record |
HLR tracks the exact BTS | Paging logic disappears | HLR points towards the serving area; VLR holds location-area state |
VLR is permanent | Stale visitor records look valid | VLR data is temporary and serving-area specific |
AuC sends | Authentication becomes insecure | Only challenge and derived responses or keys participate |
Every cell change updates HLR | Signalling is exaggerated | The crossed boundary determines which records change |
Rapid checks:
B7 -> B8insideLA-2007: the radio point changes; HLR pointer and VLR location-area value do not.LA-2007/VLR-B -> LA-3004/VLR-C: VLR-C gains a record, HLR changes its pointer, and VLR-B's active record is cancelled.Received
SRES 76543210, expected89ABCDEF: they are unequal, so authentication fails.
8. GSM architecture in the short version
BTS talks over radio. BSC controls BTSs and radio resources. MSC switches calls and coordinates mobility. HLR keeps the home profile and serving pointer. VLR keeps temporary local subscriber and location-area state. AuC supplies authentication material while protecting Ki.
Redraw both diagrams from memory. Then explain why location update changes VLR-A -> VLR-B, while the incoming call follows MSISDN -> HLR -> MSRN -> MSC-B -> page LA-2007. If ownership is unclear, repeat the section 4 state table.
For the next step, use CS Fundamentals for Placements by Sanchit Sir for core-subject revision that includes Computer Networks.
Keep learning
Mobile Technology in Computer Networks: Cellular Concepts, GSM, CDMA and Handoff with Worked Examples
Build a clear picture of cellular networks, GSM roles, CDMA decoding, handoff and Mobile IP, then test it with two fully worked numericals.
Introduction to Web Services: REST, SOAP and a Worked API Call
Build a clear model of web services, trace a REST request for a library system, calculate cold and reused-connection latency, and compare REST with SOAP.
Recursion in C Tutorial: Base Cases, Call Stacks, and 4 Runnable Examples
Learn a repeatable way to trace recursive C functions through four complete programs: digit printing, factorial, array sum, and Euclid's GCD.
fork() System Call Explained: Return Values, Process Counts and Worked Traces
A practical fork() lesson that follows values and return paths across six processes, then fixes the counting, scheduling, buffering, wait and exec traps.





