Understanding the Architecture of Wi-Fi Calling (VoWiFi)

The Core Challenge of Wi-Fi Calling Architecture

The fundamental problem at the heart of Wi-Fi Calling (VoWiFi) architecture is a complex integration challenge: How can a mobile network operator (MNO) securely and reliably route real-time, high-priority voice and SMS traffic from a subscriber’s device over an inherently untrusted, public internet connection back into the carrier’s highly regulated, proprietary core network?

Furthermore, the architecture must resolve inherent ambiguities regarding Quality of Service (QoS), latency, and seamless mobility. It must ensure that a user transitioning from a strong Wi-Fi signal to a weak cellular signal (or vice versa) experiences no dropped calls, all while authenticating the user via the SIM card without requiring a separate application login.

To solve this, 3GPP (the standards body for mobile telecommunications) defined a specialized architecture that treats Wi-Fi as an “untrusted non-3GPP access network.” The following is a comprehensive, expert-level breakdown of how this architecture operates, from the silicon in the smartphone to the core of the carrier’s IP Multimedia Subsystem (IMS).

1. High-Level Architectural Overview

Wi-Fi Calling is not simply routing voice over an IP connection (like Skype or WhatsApp). It is a carrier-grade extension of the cellular network. It utilizes the exact same IP Multimedia Subsystem (IMS) core that handles VoLTE (Voice over LTE) and VoNR (Voice over 5G).

The primary architectural goal is to create a secure, encrypted tunnel from the smartphone through the public internet directly to the carrier’s core, effectively trickling the phone into believing it is connected to a cellular tower.

The Three Pillars of VoWiFi

  1. Security: Encrypting traffic over untrusted Wi-Fi using IPsec.
  2. Continuity: Seamlessly handoff active calls between Wi-Fi and Cellular (VoLTE/VoNR) without dropping the session.
  3. Authentication: Leveraging the physical SIM/eSIM for network access using EAP-AKA protocols.

2. Core Architectural Components

The Wi-Fi Calling architecture is divided into three main domains: the User Equipment (UE), the Untrusted Non-3GPP Access Network, and the Evolved Packet Core (EPC) / IMS.

A. User Equipment (UE)

The smartphone requires specialized hardware and software stacks to support VoWiFi natively.

  • IMS Client: The software stack responsible for SIP (Session Initiation Protocol) signaling and media handling.
  • IPsec Stack: Built into the device’s operating system to handle IKEv2 (Internet Key Exchange) tunnel establishment.
  • ePDG Client: The logical entity within the UE that manages the connection to the carrier’s security gateway.

B. The Untrusted Non-3GPP Access Network

This comprises the local Wi-Fi router, the ISP’s broadband network, and the public internet. The carrier has no control over this network, which is why it is classified as “untrusted.” It can suffer from NAT (Network Address Translation) traversal issues, packet loss, and latency spikes.

C. The Evolved Packet Data Gateway (ePDG)

The ePDG is the most critical architectural component specific to VoWiFi. It acts as the security gateway and the bridge between the untrusted internet and the trusted carrier core.

  • Tunnel Termination: It terminates the IPsec tunnels originating from millions of smartphones.
  • Traffic Routing: It decrypts the payload and routes the SIP signaling to the IMS Core and the user plane (voice data) to the Packet Data Network Gateway (PGW).
  • NAT Traversal: It handles the complexities of routing traffic through home and enterprise routers.

D. The IP Multimedia Subsystem (IMS) Core

The brain of the operation. Once the ePDG decrypts the traffic, the IMS handles the actual call logic.

  • P-CSCF (Proxy-Call Session Control Function): The first point of contact for SIP signaling. It compresses headers (SigComp) to save bandwidth and enforces QoS policies.
  • S-CSCF (Serving-CSCF): Handles user registration, session routing, and triggers services (like call forwarding).
  • TAS (Telephony Application Server): Manages supplementary services like voicemail, call waiting, and conference calling.

3. The Signaling and Data Flow: Step-by-Step

Understanding the architecture requires tracing the lifecycle of a VoWiFi connection, from the moment Wi-Fi is toggled on to the moment a call is placed.

Step 1: ePDG Discovery via DNS

When the device connects to Wi-Fi and attempts to register for Wi-Fi Calling, it must find the carrier’s ePDG. It does this via a highly specific DNS lookup.

  • The UE constructs a Fully Qualified Domain Name (FQDN) based on the SIM card’s PLMN (Public Land Mobile Network) identity: epdg.epc.mnc<MNC>.mcc<MCC>.pub.3gppnetwork.org
  • The DNS server resolves this to the IP address of the nearest ePDG.

Step 2: IPsec Tunnel Establishment (IKEv2)

Before any SIP signaling can occur, a secure tunnel must be built.

  1. The UE initiates an IKEv2 (Internet Key Exchange version 2) handshake with the ePDG.
  2. The ePDG challenges the UE to prove its identity.
  3. The UE uses the SIM card to perform EAP-AKA (Extensible Authentication Protocol – Authentication and Key Agreement).
  4. The ePDG proxies this authentication request to the carrier’s AAA (Authentication, Authorization, and Accounting) server / HSS (Home Subscriber Server).
  5. Upon success, cryptographic keys are generated, and an IPsec ESP (Encapsulating Security Payload) tunnel is established.

Step 3: IMS Registration

Once the tunnel is active, the UE is virtually “inside” the carrier’s network.

  • The UE sends a SIP REGISTER message through the IPsec tunnel to the P-CSCF.
  • The IMS core registers the device’s current IP address and marks the device as available for VoWiFi routing.

Step 4: Call Setup and Media Path

When a user dials a number:

  • Control Plane: A SIP INVITE is sent through the IPsec tunnel to the IMS core to set up the call.
  • User Plane (Media): The actual voice audio is encoded (usually via AMR-WB or EVS codecs), packetized into RTP (Real-time Transport Protocol), encrypted via SRTP, and sent through the IPsec tunnel to the ePDG, which decrypts and routes it to the PSTN or the recipient’s device.

4. Protocol Stack Comparison

To appreciate the expert depth of the architecture, it is useful to view the protocol stack required to transport a single packet of voice from the microphone to the ePDG.

LayerProtocol / TechnologyFunction in VoWiFi Architecture
ApplicationAudio Codec (EVS/AMR)Encodes analog voice into digital packets.
TransportRTP / SRTPReal-time transport with Secure encryption for media.
SignalingSIP / SDPSession Initiation Protocol for call setup and teardown.
SecurityIPsec (ESP/IKEv2)Encrypts and encapsulates all traffic over untrusted Wi-Fi.
NetworkIPv4 / IPv6IP routing through the public internet to the ePDG.
Data LinkIEEE 802.11 (Wi-Fi)Local wireless transmission to the Access Point.

5. Mobility and Voice Call Continuity (VCC)

A major architectural triumph of VoWiFi is its ability to hand over an active call to the cellular network (VoLTE) if the user walks out of their house, without dropping the call. This is known as Voice Call Continuity (VCC) or Domain Selection.

  1. The Trigger: The UE’s radio resource management (RRM) detects that the Wi-Fi RSSI (Received Signal Strength Indicator) is dropping below a carrier-defined threshold, while LTE/5G signal strength is increasing.
  2. The SIP Re-INVITE: The UE sends a SIP UPDATE or Re-INVITE message to the IMS Core via the LTE radio bearer, indicating it wants to switch access networks.
  3. Media Path Switch: The IMS Core (specifically the SCC AS – Service Centralization and Continuity Application Server) orchestrates the switch. It instructs the remote party’s media gateway to route the RTP stream to the UE’s new cellular IP address instead of the IPsec tunnel IP address.
  4. Tunnel Teardown: Once the media is flowing over LTE, the UE tears down the ePDG IPsec tunnel to save battery.

Note: In legacy 2G/3G networks, a similar process called eSRVCC (Enhanced Single Radio Voice Call Continuity) was used, requiring complex circuit-switched core integration. Modern VoLTE/VoWiFi relies entirely on SIP-based domain transfer within the IMS.

6. The 5G Evolution: ePDG vs. N3IWF

As mobile networks transition from 4G EPC (Evolved Packet Core) to 5G SA (Standalone) Service-Based Architecture (SBA), the VoWiFi architecture evolves. The ePDG is replaced by the N3IWF (Non-3GPP InterWorking Function).

Architectural Differences: 4G vs 5G Wi-Fi Calling

Feature4G LTE VoWiFi (EPC)5G SA VoWiFi (5G Core)
Gateway NodeePDG (Evolved Packet Data Gateway)N3IWF (Non-3GPP InterWorking Function)
Tunnel ProtocolIPsec (IKEv2)IPsec (IKEv2)
Core InterfaceS2b (Connects to PGW/SGW)N2 (Control Plane to AMF) / N3 (User Plane to UPF)
AuthenticationEAP-AKA / EAP-AKA’5G-AKA / EAP-AKA’
QoS HandlingBearer-based (QCI)QoS Flow-based (5QI)

In 5G, the N3IWF integrates directly with the AMF (Access and Mobility Management Function) and UPF (User Plane Function), allowing Wi-Fi calling to benefit from advanced 5G network slicing, theoretically guaranteeing bandwidth and latency for voice traffic even over the public internet.

7. Conclusion

The architecture of Wi-Fi Calling is a masterclass in network convergence. By treating the public internet as a hostile, untrusted entity and utilizing the ePDG/N3IWF as a cryptographic airlock, mobile operators successfully extend their proprietary IMS networks into homes and offices worldwide.

While over-the-top (OTT) applications like WhatsApp and FaceTime rely on simple end-to-end internet routing, VoWiFi’s reliance on deep 3GPP integration, SIM-based EAP-AKA authentication, and SIP domain-selection handovers ensures carrier-grade reliability, lawful intercept capabilities, and seamless mobility that consumer apps cannot currently match. As 5G Standalone deployments mature, the transition from ePDG to N3IWF will further integrate Wi-Fi into the cellular fabric, blurring the line between “Wi-Fi” and “Cellular” until the distinction becomes entirely irrelevant to the end user.


1) High-Level Architectural Overview: A Macro Perspective

To truly understand the architecture of Wi-Fi Calling (VoWiFi), one must look beyond the individual protocols and examine the macro-level design philosophy established by the 3GPP (3rd Generation Partnership Project). At its highest level, the VoWiFi architecture is not merely a method for routing voice over IP; it is a sophisticated framework designed to achieve Access Agnosticism.

This means the carrier’s core network is engineered to deliver identical services, quality, and security regardless of whether the user is connected via a multi-million-dollar cellular tower or a consumer-grade Wi-Fi router.

Below is an expanded, expert-level analysis of the high-level architectural paradigms that govern Wi-Fi Calling.

1. The Core Design Philosophy: Access Agnosticism

Historically, mobile networks were tightly coupled with their physical radio access networks (RAN). The transition to 4G LTE and 5G introduced the IP Multimedia Subsystem (IMS), which decoupled service delivery from the underlying transport.

In this high-level architecture, the IMS core acts as the “great unifier.” It does not inherently care if the IP packets carrying voice traffic originate from an LTE eNodeB, a 5G gNodeB, or a Wi-Fi Access Point. Its only requirements are that the packets arrive securely, are properly authenticated, and meet specific Quality of Service (QoS) parameters. Wi-Fi Calling is simply the implementation of this agnostic design over an unlicensed spectrum.

2. The “Trusted” vs. “Untrusted” Paradigm

The most critical high-level architectural decision in Wi-Fi Calling is the classification of the access network. 3GPP standards divide non-3GPP (non-cellular) networks into two distinct categories, which dictate the entire security and routing topology.

A. Trusted Non-3GPP Access

  • Definition: A Wi-Fi network owned, operated, and strictly controlled by the Mobile Network Operator (MNO). Examples include carrier-branded hotspots in airports or stadiums.
  • Architecture: Because the carrier controls the physical security and the network edge, traffic from these networks can route directly into the Evolved Packet Core (EPC) or 5G Core (5GC) without passing through an extra security gateway.

B. Untrusted Non-3GPP Access (The VoWiFi Standard)

  • Definition: Any Wi-Fi network outside the direct physical and administrative control of the MNO. This includes residential home networks, enterprise corporate Wi-Fi, and public coffee shop hotspots.
  • Architecture: Because the carrier cannot guarantee the security of the local network (it could be compromised, sniffed, or malicious), the architecture mandates an airlock. All traffic must be encrypted at the device and tunneled through a specialized security gateway (the ePDG in 4G, or N3IWF in 5G) before it is allowed to touch the core network. Commercial Wi-Fi Calling relies almost exclusively on the Untrusted model.

3. Logical Topology: The Four Macro-Domains

At a macro level, the VoWiFi architecture is divided into four distinct logical domains. Understanding the boundaries and the standardized 3GPP interfaces between these domains is essential for network architects.

Logical DomainPrimary ComponentsArchitectural FunctionKey 3GPP Interfaces (4G/5G)
1. User Equipment (UE)Smartphone, IMS Client, IPsec StackActs as the intelligent edge. Encodes voice, initiates SIP signaling, and establishes the encrypted tunnel.SWu (4G) / N1 (5G) – Logical interface to the core.
2. Untrusted AccessWi-Fi AP, ISP Broadband, Public InternetThe transport medium. Provides IP connectivity but offers no inherent security or QoS guarantees for voice.N/A (Standard IP routing)
3. The Security PerimeterePDG (4G) or N3IWF (5G)The “Airlock.” Terminates IPsec tunnels, decrypts traffic, authenticates the SIM, and enforces security policies.SWm (to AAA), S2b (to PGW) / N2 (to AMF), N3 (to UPF).
4. The Core NetworkEPC/5GC, IMS Core, HSS/UDMThe “Brain.” Handles call routing, subscriber database lookups, supplementary services, and PSTN interconnection.Internal core interfaces (e.g., S5, S11, N4, N9).

4. The “Airlock” Concept: Bridging the Divide

To visualize the high-level architecture, network engineers often use the “Airlock” analogy for the ePDG (Evolved Packet Data Gateway) or N3IWF (Non-3GPP InterWorking Function).

  1. The Outside (Untrusted Zone): The user’s voice data is encapsulated in an IPsec tunnel. To the public internet, this looks like gibberish. It traverses the user’s home router and the ISP’s network completely opaque.
  2. The Airlock (ePDG/N3IWF): The tunnel terminates at this node, which sits in the carrier’s Demilitarized Zone (DMZ). The airlock verifies the cryptographic keys (using the SIM credentials), checks for malicious payloads, and strips away the IPsec encapsulation.
  3. The Inside (Trusted Zone): Once decrypted, the raw SIP signaling and RTP voice packets are injected into the carrier’s internal, highly secure IP backbone, where they are treated exactly as if they had arrived from a cellular tower.

This architecture ensures that the internal core network is never directly exposed to the public internet, mitigating DDoS attacks and unauthorized access.

5. Control Plane vs. User Plane Architecture (CUPS)

A fundamental principle of modern telecom architecture is the Separation of Control and User Plane (CUPS). While these planes are logically distinct, their physical handling in Wi-Fi Calling features a unique architectural nuance.

  • The Control Plane (Signaling): Carries SIP messages (REGISTER, INVITE, BYE). This plane requires high reliability but low bandwidth. It dictates how the call is set up.
  • The User Plane (Media): Carries the actual RTP voice audio. This plane requires high bandwidth, low latency, and strict jitter control, but can tolerate minor packet loss.

The VoWiFi Nuance: Multiplexing

In a purely trusted cellular environment (like VoLTE), the Control Plane and User Plane are often routed over different physical bearers with different QoS priorities.

However, in the Untrusted Wi-Fi Calling architecture, both the Control Plane (SIP) and the User Plane (RTP) are typically multiplexed into the exact same IPsec tunnel.

  • Why? Traversing consumer-grade NAT (Network Address Translation) routers and firewalls is notoriously difficult. Maintaining a single, continuous IPsec tunnel for both signaling and media ensures that if the tunnel is open for SIP, it is inherently open for RTP, drastically reducing call setup failures caused by aggressive home firewalls. Once the traffic passes through the ePDG/N3IWF airlock, the core network separates them again for internal routing.

6. Strategic Architectural Drivers

Why did 3GPP and mobile operators invest billions into this specific, complex architecture rather than simply adopting consumer VoIP (like Skype or WhatsApp)? The high-level design is driven by three strategic imperatives:

  1. Spectrum Offload and CAPEX Reduction: By architecting a seamless way to route traffic over unlicensed Wi-Fi spectrum, operators offload massive amounts of indoor voice traffic from their licensed, macro-cellular spectrum. This delays the need to build expensive new cell towers (Small Cells) for indoor coverage.
  2. Service Parity and Identity Retention: The architecture ensures the user retains their native MSISDN (phone number). Because the IMS core handles the routing, features like Wi-Fi Calling, VoLTE, SMS, and Voicemail operate identically. The user does not need a separate app or a secondary identity.
  3. Regulatory Compliance (Lawful Intercept and E911): Consumer VoIP apps struggle with strict telecom regulations. The VoWiFi architecture integrates deeply with the carrier’s core, ensuring that emergency services (E911/NG911) receive accurate location data and that Lawful Intercept (LI) mandates can be executed seamlessly by the core network, regardless of the access technology.

7. Summary Matrix: Architectural Evolution

As the industry moves from 4G to 5G Standalone (SA), the high-level architecture evolves to support network slicing and edge computing, though the fundamental “Untrusted Access” paradigm remains.

Architectural Aspect4G LTE VoWiFi (EPC Architecture)5G SA VoWiFi (Service-Based Architecture)
Core ParadigmHardware-centric, point-to-point interfaces.Software-centric, Service-Based Architecture (SBA) via HTTP/2.
Security GatewayePDG (Evolved Packet Data Gateway).N3IWF (Non-3GPP InterWorking Function).
Mobility AnchorPGW (Packet Data Network Gateway).UPF (User Plane Function).
Session ManagementMME (Mobility Management Entity).AMF (Access and Mobility Management Function).
QoS ArchitectureEPS Bearers (QCI – QoS Class Identifier).QoS Flows (5QI – 5G QoS Identifier) allowing for granular Network Slicing.
AuthenticationEAP-AKA (Relies on 3G/4G SIM credentials).5G-AKA / EAP-AKA’ (Supports enhanced 5G SIM security features).

By abstracting the physical radio layer and treating Wi-Fi as a secure, tunneled extension of the core, the high-level architecture of Wi-Fi Calling represents one of the most successful implementations of fixed-mobile convergence in modern telecommunications.


2) Core Architectural Components of Wi-Fi Calling

To transition from a high-level conceptual understanding to an engineering-grade blueprint, we must dissect the specific Network Elements (NEs) and Virtualized Network Functions (VNFs) that constitute the Wi-Fi Calling (VoWiFi) architecture.

In modern telecommunications, these components are rarely physical hardware boxes; they are highly scalable, containerized software instances running in the operator’s Telco Cloud. The architecture relies on a precise orchestration of the User Equipment (UE), the Edge Security Gateway, the Authentication Subsystem, and the IP Multimedia Subsystem (IMS).

Below is a breakdown of the core architectural components that power VoWiFi in both 4G Evolved Packet Core (EPC) and 5G Standalone (SA) environments.

1. The User Equipment (UE) Subsystem

The smartphone is not merely a client; it is a highly complex node containing multiple protocol stacks that must operate in perfect synchronization to establish a VoWiFi session.

A. The Identity Modules (USIM and ISIM)

While the USIM (Universal Subscriber Identity Module) handles standard cellular access (LTE/5G) and basic authentication, VoWiFi heavily relies on the ISIM (IP Multimedia Services Identity Module).

  • Function: The ISIM is a dedicated application on the UICC (the physical SIM or eSIM chip) that stores IMS-specific credentials, such as the IMPI (IP Multimedia Private Identity) and IMPU (IP Multimedia Public Identity).
  • Expert Detail: If a device lacks an ISIM, the IMS stack will attempt to derive IMS credentials from the USIM (using the IMSI), but native ISIM support is required for advanced VoWiFi features and seamless 5G integration.

B. The IPsec/IKEv2 State Machine

Built directly into the mobile operating system (iOS, Android), this daemon manages the “SWu” interface (in 4G) or “NWu” interface (in 5G).

  • Function: It handles the cryptographic handshake with the carrier’s security gateway. It manages Security Associations (SAs), negotiates encryption algorithms (e.g., AES-256-GCM), and handles Dead Peer Detection (DPD) to monitor tunnel health.

C. The IMS Client Stack

This is the application-layer software responsible for SIP (Session Initiation Protocol) signaling.

  • SigComp Integration: Because IPsec adds significant header overhead, SIP messages can exceed the standard 1500-byte MTU of Wi-Fi networks, causing fragmentation and dropped calls. The UE’s IMS client utilizes SigComp (Signaling Compression) to compress SIP headers before encrypting them, ensuring packets traverse the internet cleanly.

2. The Edge Security & Interworking Gateways

This is the “Airlock” of the architecture. It sits at the edge of the carrier’s network, exposed to the public internet, and is responsible for terminating millions of encrypted tunnels.

A. The ePDG (Evolved Packet Data Gateway) – 4G LTE Architecture

The ePDG is the cornerstone of 4G VoWiFi. It acts as a bridge between the untrusted internet and the trusted EPC.

  • Tunnel Termination: It terminates the IPsec tunnels originating from the UE.
  • Protocol Translation: It maps the IPsec traffic into GTP (GPRS Tunneling Protocol). It encapsulates the user’s IP packets into GTP-U tunnels and routes them to the PGW (Packet Data Network Gateway).
  • SWm Interface: It connects to the AAA server via the Diameter protocol to proxy the EAP-AKA authentication requests.

B. The N3IWF (Non-3GPP InterWorking Function) – 5G SA Architecture

In 5G Standalone, the ePDG is replaced by the N3IWF, which is designed for a Service-Based Architecture (SBA).

  • Control/User Plane Separation (CUPS): Unlike the monolithic 4G ePDG, the 5G N3IWF strictly separates signaling from media.
  • N2 Interface (Control Plane): It translates IPsec-encapsulated NAS (Non-Access Stratum) signaling into NG-AP protocol messages and routes them to the 5G AMF (Access and Mobility Management Function).
  • N3 Interface (User Plane): It decrypts the RTP voice media and encapsulates it into GTP-U tunnels, routing it directly to the 5G UPF (User Plane Function).

3. Authentication and Subscriber Management

Because VoWiFi operates over untrusted networks, the authentication mechanism must be ironclad, ensuring that only legitimate subscribers with valid SIM cards can access the core network.

A. The AAA Server (Authentication, Authorization, and Accounting)

  • Function: The AAA server acts as the central clearinghouse for non-3GPP access. When the ePDG/N3IWF receives an IKEv2 authentication request from the phone, it forwards it to the AAA server.
  • Protocol: It typically uses the Diameter protocol (specifically the SWm application) to communicate with the subscriber database. It also handles the accounting (tracking data usage over Wi-Fi for billing or fair-use policies).

B. HSS (4G) / UDM (5G)

  • HSS (Home Subscriber Server): The master 4G database containing user profiles, service triggers, and the cryptographic root keys (KiKi​).
  • UDM (Unified Data Management): The 5G equivalent of the HSS.
  • The EAP-AKA Flow: When the AAA server queries the HSS/UDM, the HSS generates an authentication vector (RAND, AUTN, XRES, CK, IK). The AAA passes this to the ePDG, which challenges the phone. The phone’s SIM calculates the response (RES) using its secret key. If RES matches XRES, the IPsec tunnel is authorized.

4. The IP Multimedia Subsystem (IMS) Core

Once the traffic passes the security gateway, it enters the IMS Core. This is the “Brain” that actually processes the phone call, independent of the transport network.

A. P-CSCF (Proxy-Call Session Control Function)

The P-CSCF is the very first point of contact within the IMS core for the UE’s SIP signaling.

  • Security Gateway Function: It establishes a secondary layer of security (IPsec-3GPP) with the UE to protect SIP signaling inside the carrier network.
  • Policy Enforcement: It acts as the AF (Application Function) in the policy framework, requesting dedicated bearers for the voice call from the PCRF/PCF.

B. I-CSCF and S-CSCF (Interrogating and Serving CSCFs)

  • I-CSCF: The “hidden” gateway to the IMS core. It queries the HSS/UDM to find out which S-CSCF is currently serving the user and routes the SIP REGISTER message accordingly.
  • S-CSCF: The central routing node. It downloads the user’s profile from the HSS, executes initial Filter Criteria (iFC) to trigger services (like forwarding to voicemail), and routes the SIP INVITE to the destination network.

C. SCC AS (Service Centralization and Continuity Application Server)

  • The Handover Engine: The SCC AS is the most critical component for Voice Call Continuity (VCC). It acts as a SIP Back-to-Back User Agent (B2BUA) and anchors the SIP session in the core network.
  • Domain Transfer: When a user walks out of their house and the phone switches from Wi-Fi to LTE, the SCC AS seamlessly updates the media path (the IP addresses and ports for the RTP voice stream) without dropping the active call leg to the remote party.

D. TAS (Telephony Application Server)

Hosts the supplementary services. If a user activates Call Waiting, Call Forwarding, or Multi-Party Conferencing while on a VoWiFi call, the S-CSCF routes the SIP signaling to the TAS to execute these logic flows.

5. Policy and Charging Control (PCC)

A major architectural challenge in VoWiFi is Quality of Service (QoS). Unlike cellular networks, the carrier cannot enforce QoS (like WMM/802.11e prioritization) on a user’s home Wi-Fi router. Therefore, the PCC architecture focuses on what the carrier can control.

A. PCRF (4G) / PCF (5G)

  • Function: The Policy and Charging Rules Function (or Policy Control Function in 5G) dictates how the network handles the VoWiFi traffic once it exits the ePDG/N3IWF.
  • Dedicated Bearers: When the P-CSCF detects a SIP INVITE for a voice call, it notifies the PCRF/PCF. The PCRF then instructs the PGW/UPF to establish a Dedicated Bearer (a virtual pipeline with guaranteed bit rate and low latency) specifically for the RTP voice packets.
  • Pre-conditions: The PCRF ensures that the phone does not start “ringing” until this dedicated, high-priority bearer is fully established across the core network, preventing “ghost rings” or immediate call drops upon answering.

6. Component Mapping Matrix: 4G vs. 5G VoWiFi

To synthesize these components, the following table maps the specific network elements across the two dominant architectural generations currently deployed by Mobile Network Operators.

Architectural Domain4G LTE VoWiFi Component5G SA VoWiFi ComponentPrimary VoWiFi Function
Device IdentityUSIM / ISIMUSIM / ISIM / 5G-EIDStores cryptographic keys and IMS identities.
Edge SecurityePDGN3IWFTerminates IPsec tunnels; acts as the cryptographic airlock.
Authentication Proxy3GPP AAA ServerAUSF (via SEPP)Proxies EAP-AKA authentication to the subscriber database.
Subscriber DatabaseHSSUDM / UDRStores user profiles, iFC triggers, and secret keys (KiKi​/KK).
IMS Edge NodeP-CSCFP-CSCFFirst point of SIP contact; handles SigComp and local policy.
Session RoutingS-CSCFS-CSCFDownloads profiles, routes SIP, triggers TAS.
Mobility AnchorSCC ASSCC ASAnchors the SIP session to enable seamless Wi-Fi-to-Cellular handovers.
Policy ControlPCRFPCFAuthorizes QoS and establishes dedicated bearers for voice media.
User Plane AnchorPGW (PDN Gateway)UPF (User Plane Function)Routes decrypted RTP traffic to the PSTN or remote IMS user.

7. Summary

The core architecture of Wi-Fi Calling is a masterclass in protocol translation and security encapsulation. By utilizing the ePDG/N3IWF to neutralize the threats of the public internet, the AAA/HSS to enforce SIM-based zero-trust authentication, and the IMS Core (specifically the SCC AS and P-CSCF) to maintain session continuity and service parity, mobile operators successfully transform a best-effort Wi-Fi connection into a carrier-grade, regulated telecommunications link.


3) The Signaling and Data Flow: A Step-by-Step Engineering Breakdown

To truly master the architecture of Wi-Fi Calling (VoWiFi), one must trace the lifecycle of a session from the moment the user toggles the feature on, through the cryptographic handshakes, to the precise millisecond an active call is handed over to a cellular tower.

Unlike Over-The-Top (OTT) applications like WhatsApp, which simply open a UDP socket and start sending audio, VoWiFi relies on a highly choreographed, state-machine-driven sequence governed by 3GPP specifications (specifically TS 23.402 and TS 24.302). This flow ensures security, guarantees Quality of Service (QoS), and maintains regulatory compliance.

Below is the step-by-step signaling and data flow of a VoWiFi session.

Phase 1: Network Discovery and IPsec Tunnel Establishment

Before the phone can even attempt to register with the IMS core, it must build a secure, encrypted tunnel through the public internet to the carrier’s security gateway (the ePDG in 4G, or N3IWF in 5G).

1. ePDG Discovery via DNS

The UE (User Equipment) must find the IP address of the carrier’s ePDG. It does not use a hardcoded IP; it constructs a Fully Qualified Domain Name (FQDN) based on the PLMN (Public Land Mobile Network) identity stored on the SIM card.

  • The FQDN Formula: epdg.epc.mnc<MNC>.mcc<MCC>.pub.3gppnetwork.org
  • The Process: The UE queries its local DNS server. If the carrier supports VoWiFi, the DNS resolves this FQDN to the IP address of the nearest, most optimal ePDG node.

2. IKEv2 Handshake and EAP-AKA Authentication

The UE initiates an IKEv2 (Internet Key Exchange version 2) handshake with the ePDG over UDP port 4500 (specifically chosen to traverse NAT/firewalls).

  • IKE_SA_INIT: The UE and ePDG negotiate cryptographic algorithms (e.g., AES-256 for encryption, SHA-256 for integrity) and perform a Diffie-Hellman key exchange.
  • EAP-AKA Challenge: The ePDG requests authentication. It proxies an Extensible Authentication Protocol (EAP) request to the carrier’s AAA server, which fetches an authentication vector from the HSS/UDM.
  • SIM Computation: The challenge (RAND and AUTN) is passed to the phone’s UICC (SIM). The SIM uses its hidden, unextractable root key (Ki) to compute a response (RES) and session keys (CK, IK).
  • Tunnel Creation: The ePDG verifies the RES. If it matches, the IPsec ESP (Encapsulating Security Payload) tunnel is established. The UE is assigned an “Inner IP Address” (Tunnel IP) by the ePDG.

Expert Note on Encapsulation: From this point forward, every packet the phone sends to the carrier features two IP headers. The Outer IP Header routes the packet from the phone’s public Wi-Fi IP to the ePDG’s public IP. The Inner IP Header routes the decrypted payload from the UE’s Tunnel IP to the PGW/UPF inside the core network.

Phase 2: IMS Registration (Joining the Core)

With the IPsec tunnel active, the UE is virtually plugged into the carrier’s internal network. It must now register its SIP identity to receive incoming calls.

1. The Initial SIP REGISTER

The UE’s IMS client generates a SIP REGISTER message. Because SIP headers are large and IPsec adds overhead, the UE uses SigComp (Signaling Compression) to compress the payload. The message is encrypted and sent through the IPsec tunnel to the P-CSCF.

2. The IMS AKA Challenge (Dual Authentication)

3GPP mandates a second layer of authentication for the application layer, known as IMS AKA.

  • The P-CSCF forwards the REGISTER to the I-CSCF, which queries the HSS to find the assigned S-CSCF.
  • The S-CSCF challenges the UE by returning a 401 Unauthorized SIP response, containing a new cryptographic nonce.
  • The UE’s ISIM application calculates the response and sends a second SIP REGISTER.
  • Upon success, the S-CSCF returns a 200 OK. The UE is now fully registered on the IMS core and ready to route calls.

Phase 3: Call Setup and “SIP Pre-conditions”

This is where VoWiFi diverges sharply from consumer VoIP. To ensure a call doesn’t drop the moment it is answered due to lack of bandwidth, 3GPP utilizes SIP Pre-conditions (RFC 3312). The phone will not “ring” until the core network guarantees a dedicated, high-priority pipeline for the voice media.

Step-by-Step Originating Call Flow

StepDirectionProtocol / MessageArchitectural Action
1UE →→ P-CSCFSIP INVITEUE requests a call, including SDP (Session Description Protocol) detailing desired audio codecs (e.g., EVS, AMR-WB) and IP/Ports.
2P-CSCF →→ PCRF/PCFDiameter Rx / HTTP N5P-CSCF extracts media requirements and asks the Policy Server to reserve bandwidth (QoS).
3PCRF →→ PGW/UPFGx / N4 InterfacePolicy server commands the User Plane gateway to establish a Dedicated Bearer (a guaranteed bit-rate pipeline) for the upcoming RTP stream.
4P-CSCF →→ UE183 Session ProgressP-CSCF sends a provisional response back to the UE with the SDP “answer”, confirming the core network is ready.
5UE InternalResource ReservationThe phone’s OS reserves local Wi-Fi resources (WMM/QoS tags) for the audio stream.
6UE →→ P-CSCFSIP UPDATEUE confirms local resources are ready. The call is now cleared to ring the remote party.
7Remote →→ UE180 RingingThe remote party’s phone begins to ring.
8Remote →→ UE200 OKThe remote party answers the call.
9UE →→ RemoteSIP ACKUE acknowledges. The Control Plane setup is complete.

Phase 4: The Active Call (User Plane Media Flow)

Once the SIP ACK is sent, the Control Plane steps back, and the User Plane takes over. The actual voice audio begins to flow.

  1. Encoding: The microphone captures analog audio. The UE’s DSP (Digital Signal Processor) encodes it using a 3GPP-mandated codec like EVS (Enhanced Voice Services) for HD/UHD audio.
  2. RTP & SRTP: The audio frames are packetized into RTP (Real-time Transport Protocol). They are then encrypted using SRTP (Secure RTP) with keys derived during the IMS AKA phase.
  3. IPsec Encapsulation: The SRTP packets are encrypted again via the IPsec ESP tunnel.
  4. Transit: The packets traverse the home Wi-Fi router, the ISP, and the public internet to the ePDG/N3IWF.
  5. Decapsulation: The ePDG strips the IPsec wrapper, decrypts the payload, and maps the inner IP packet into a GTP-U tunnel.
  6. Core Routing: The PGW/UPF routes the GTP-U packet to the remote party (either to the PSTN via a Media Gateway, or to another IMS user).

The NAT Keep-Alive Problem: Home routers aggressively close idle UDP ports to save memory. If a user is on a long call but pauses speaking, the router might drop the IPsec mapping. To prevent this, the UE sends microscopic, encrypted NAT Keep-Alive (DPD) packets every 15 to 30 seconds to keep the router’s state table open.

Phase 5: Voice Call Continuity (VCC) and Handover

The ultimate test of the VoWiFi architecture is mobility. If a user walks out of their house while on a Wi-Fi call, the phone must seamlessly transfer the call to the LTE/5G cellular network without the remote party hearing a drop or a pause. This is orchestrated by the SCC AS (Service Centralization and Continuity Application Server).

The Domain Transfer Sequence

  1. Trigger Detection: The UE’s Radio Resource Management (RRM) detects that Wi-Fi RSSI (signal strength) is dropping below a carrier-defined threshold (e.g., -75 dBm), while LTE/5G RSRP is strong.
  2. Cellular Attach: The UE silently establishes a VoLTE/VoNR bearer on the cellular network in the background.
  3. SIP Re-INVITE (Domain Transfer): The UE sends a SIP INVITE (or UPDATE) over the new cellular connection to the SCC AS. Crucially, this message contains a specific header: Access-Transfer: Cellular.
  4. Media Path Update: The SCC AS, acting as a Back-to-Back User Agent (B2BUA), intercepts this. It sends a Re-INVITE to the remote party, instructing them to send their RTP media stream to the UE’s new cellular IP address instead of the ePDG tunnel IP.
  5. Tunnel Teardown: Once the media is flowing flawlessly over the cellular network, the UE gracefully tears down the IPsec tunnel to the ePDG to save battery and network resources.

Note: The entire handover process must complete in under 300 milliseconds to remain imperceptible to the human ear.

Phase 6: Call Teardown

When either party ends the call, the teardown sequence ensures all network resources are freed.

  1. SIP BYE: The terminating device sends a SIP BYE message.
  2. Resource Release: The P-CSCF detects the BYE and sends a teardown command to the PCRF/PCF.
  3. Bearer Deactivation: The PCRF instructs the PGW/UPF to delete the Dedicated Bearer, freeing up core network bandwidth.
  4. Session Clearance: The S-CSCF updates the user’s state, and the UE returns to the idle, registered state, maintaining the IPsec tunnel for future incoming calls or SMS over Wi-Fi.

Summary: The Protocol Stack in Motion

To visualize the sheer density of protocols operating simultaneously during an active VoWiFi call, consider the encapsulation of a single voice packet leaving the smartphone:

Encapsulation LayerProtocolPurpose in the Flow
PayloadPCM AudioRaw microphone input.
CodecEVS / AMR-WBCompresses audio to 12.65 kbps – 24.4 kbps.
TransportRTPAdds sequence numbers and timestamps for jitter buffering.
Media SecuritySRTPEncrypts the audio payload (End-to-End within the core).
Network (Inner)IPv4 / IPv6Inner IP header (Tunnel IP to PGW).
Tunnel SecurityIPsec ESPEncrypts the entire inner packet (Airlock security).
Network (Outer)IPv4 / IPv6Outer IP header (Public Wi-Fi IP to ePDG Public IP).
TransportUDP (Port 4500)Carries the IPsec payload; enables NAT traversal.
Data Link802.11 (Wi-Fi)MAC layer framing for transmission to the local Access Point.

This intricate, multi-layered flow is what allows Wi-Fi Calling to masquerade as a native cellular connection, delivering carrier-grade reliability over the chaotic, unmanaged infrastructure of the public internet.


4) Protocol Stack Comparison: The DNA of Voice Transport

To fully appreciate the engineering rigor of Wi-Fi Calling (VoWiFi), we must examine the protocol stack—the layered sequence of protocols that encapsulate, secure, and transport a user’s voice from the microphone to the carrier core.

In telecommunications, the protocol stack dictates everything from latency and security to battery consumption and interoperability. While consumer applications rely on simplified, internet-native stacks, VoWiFi utilizes a dense, highly regulated 3GPP-defined stack designed to traverse hostile networks while maintaining strict carrier-grade compliance.

Below is an expert-level deconstruction of the VoWiFi protocol stack, followed by a rigorous comparative analysis against its closest architectural relatives: Native Cellular Voice (VoLTE/VoNR) and Over-The-Top (OTT) VoIP (e.g., WhatsApp, FaceTime, WebRTC).

1. Deep Dive: The VoWiFi Protocol Stack (Layer-by-Layer)

The VoWiFi stack is uniquely characterized by its dual-IP encapsulation and network-layer security. Because the access network (Wi-Fi) is classified as “untrusted,” the stack must build a cryptographic tunnel before any application-layer signaling can occur.

Layer 1 & 2: Physical and Data Link (The Local Access)

  • Protocol: IEEE 802.11 (Wi-Fi 5/6/7).
  • VoWiFi Specifics: While standard Wi-Fi treats all data equally, VoWiFi relies on WMM (Wi-Fi Multimedia), an 802.11e certification. WMM maps the 3GPP QoS Class Identifiers (QCIs) to Wi-Fi Access Categories (Voice, Video, Best Effort, Background). This ensures that if the local Wi-Fi network is congested, the router prioritizes the VoWiFi packets over a background Netflix download.

Layer 3: Network (The Dual-IP Paradigm)

  • Protocol: IPv4 / IPv6.
  • VoWiFi Specifics: VoWiFi utilizes a tunneling architecture requiring two IP headers:
    1. Outer IP Header: Routes the encrypted packet from the UE’s local Wi-Fi IP address to the public IP address of the carrier’s ePDG/N3IWF.
    2. Inner IP Header: Assigned by the ePDG via IKEv2. This is the UE’s “virtual” IP address inside the carrier’s trusted core network.

Layer 3.5: Security (The Airlock)

  • Control Plane Protocol: IKEv2 (Internet Key Exchange v2 – RFC 7296). Handles the initial handshake, SIM-based authentication (EAP-AKA), and Security Association (SA) negotiation.
  • User Plane Protocol: IPsec ESP (Encapsulating Security Payload – RFC 4303). Encrypts and encapsulates the inner IP packets.
  • NAT Traversal: UDP Encapsulation (Port 4500). Because enterprise and home firewalls frequently block raw IPsec (Protocol 50), VoWiFi wraps the IPsec ESP packets inside standard UDP packets to ensure they traverse NAT boundaries seamlessly.

Layer 4: Transport

  • Protocol: UDP (primarily) and TCP.
  • VoWiFi Specifics: Voice media (RTP) strictly uses UDP for low latency. SIP signaling can use TCP or UDP, but because the entire payload is already secured by IPsec, the transport layer’s built-in security (like TLS) is often bypassed to save processing overhead and battery life.

Layer 5 & 6: Session and Signaling

  • Protocol: SIP (Session Initiation Protocol – RFC 3261) and SDP (Session Description Protocol).
  • VoWiFi Specifics: SIP handles call setup, teardown, and mobility (handovers). To combat the “header bloat” caused by SIP and IPsec, the stack mandates SigComp (Signaling Compression – RFC 3320) to compress SIP messages, preventing IP fragmentation over standard 1500-byte MTU Wi-Fi networks.

Layer 7: Application (Media)

  • Protocol: RTP (Real-time Transport Protocol) wrapped in SRTP (Secure RTP).
  • Codecs: EVS (Enhanced Voice Services) for 5G/UHD voice, or AMR-WB (Adaptive Multi-Rate Wideband) for 4G HD voice.
  • VoWiFi Specifics: The media is encrypted end-to-end between the UE and the core network media gateway using keys derived during the IMS AKA authentication phase.

2. Comparative Analysis: VoWiFi vs. VoLTE/VoNR (The Cellular Sibling)

The most critical architectural comparison is between VoWiFi and native cellular voice (VoLTE for 4G, VoNR for 5G). Both rely on the exact same IMS core, but their protocol stacks diverge sharply at the Access Stratum (AS).

The Divergence: Access Stratum vs. Non-Access Stratum

3GPP architecture divides the protocol stack into the Access Stratum (radio-specific) and the Non-Access Stratum (core-specific).

  • VoLTE/VoNR Stack (Trusted Access): The UE communicates directly with the cell tower (eNodeB/gNodeB) using highly specialized, low-latency radio protocols: RRC (Radio Resource Control), PDCP (Packet Data Convergence Protocol), RLC (Radio Link Control), and MAC. Security is handled at the PDCP layer using AES/SNOW 3G encryption.
  • VoWiFi Stack (Untrusted Access): The UE replaces the 3GPP radio stack with commercial 802.11 Wi-Fi and IPsec.

The Convergence: The IMS Core

Despite the different physical transports, the stacks converge at the NAS (Non-Access Stratum) and IMS layers. Whether the packet arrived via a PDCP radio bearer (VoLTE) or an IPsec GTP tunnel (VoWiFi), the P-CSCF and S-CSCF process the SIP and RTP payloads identically. This protocol convergence is what enables seamless Voice Call Continuity (VCC) handovers.

3. Comparative Analysis: VoWiFi vs. OTT VoIP (The Internet Competitor)

Comparing VoWiFi to Over-The-Top (OTT) applications like WhatsApp, Skype, or WebRTC-based browser calls highlights the difference between carrier-grade telecom architecture and best-effort internet architecture.

A. Security Architecture: IPsec vs. TLS/DTLS

  • OTT VoIP: Typically uses TLS (Transport Layer Security) to secure the TCP-based signaling, and DTLS-SRTP to secure the UDP-based media. Security is tied to the application layer.
  • VoWiFi: Uses IPsec, which operates at the Network Layer (Layer 3).
    • The Expert Advantage: Because IPsec operates below the transport layer, it creates a transparent, secure tunnel. The IMS client (SIP/RTP) doesn’t even know it’s being encrypted. This allows the carrier to secure all traffic (including SMS over IP and background keep-alives) with a single cryptographic SA, whereas OTT apps must manage multiple TLS/DTLS sessions.

B. Identity and Authentication: SIM vs. OAuth

  • OTT VoIP: Relies on application-layer identity (email, username) and authentication (OAuth, SMS OTP, passwords). If a phone is stolen and unlocked, the OTT app is compromised.
  • VoWiFi: Relies on hardware-rooted EAP-AKA / 5G-AKA authentication. The cryptographic keys are stored in the tamper-resistant UICC (SIM/eSIM). The network authenticates the subscriber identity module, not the software application, providing vastly superior anti-spoofing and anti-fraud protection.

C. Quality of Service (QoS): Dedicated Bearers vs. Best Effort

  • OTT VoIP: Operates on a “Best Effort” internet model. If the network congests, the app must rely on adaptive jitter buffers or aggressive codec downgrading to survive.
  • VoWiFi: Utilizes the PCRF/PCF to establish Dedicated Bearers (QCI 1 for 4G, 5QI 1 for 5G). While the carrier cannot control the user’s home Wi-Fi router, they can guarantee that once the VoWiFi packets exit the ePDG and enter the carrier’s backbone, they are placed in a high-priority, zero-drop queue, ensuring pristine audio quality on the core network side.

4. Matrix: Protocol Stack Side-by-Side Comparison

The following table provides a comprehensive, layer-by-layer comparison of the three dominant voice transport architectures in use today.

Protocol LayerVoWiFi (Untrusted Non-3GPP)VoLTE / VoNR (Trusted 3GPP)OTT VoIP (WhatsApp / WebRTC)
Application (Media)EVS / AMR-WBEVS / AMR-WBOpus / SILK / Proprietary
Media TransportRTP / SRTPRTP / SRTPRTP / SRTP (via DTLS)
Signaling / SessionSIP / SDP (with SigComp)SIP / SDPProprietary JSON / WebRTC
Transport LayerUDP (Port 4500 for NAT-T)N/A (Handled by PDCP/RLC)TCP / UDP
Security (Tunneling)IPsec ESP / IKEv2PDCP Encryption (AES/SNOW3G)TLS (Signaling) / DTLS (Media)
Network LayerDual-Stack IPv4/IPv6 (Tunneled)IPv4/IPv6 (GTP-U Tunnels)Standard Public IPv4/IPv6
Data Link / AccessIEEE 802.11 (Wi-Fi) + WMM3GPP LTE/NR Uu (OFDMA, MAC, RLC)IEEE 802.11 / 802.3 / Cellular
AuthenticationEAP-AKA / 5G-AKA (via SIM)EPS-AKA / 5G-AKA (via SIM)OAuth 2.0 / Phone Number OTP
Identity AnchorISIM / USIM (Hardware)USIM (Hardware)Software / Cloud Database
Core NetworkIMS (via ePDG / N3IWF)IMS (via MME / AMF)Proprietary Cloud Servers

5. The 5G Evolution: How the Stack Changes in 5G Standalone (SA)

As operators migrate from 4G EPC to 5G Standalone (SA) Service-Based Architecture (SBA), the VoWiFi protocol stack undergoes specific, highly technical modifications to support network slicing and edge computing.

  1. NAS over IPsec: In 4G VoWiFi, the ePDG primarily translates IPsec to GTP. In 5G SA, the N3IWF requires the UE to encapsulate actual 5G NAS (Non-Access Stratum) messages inside the IKEv2/IPsec tunnel. This allows the 5G AMF to manage the Wi-Fi connection exactly as if it were a 5G cell tower.
  2. EAP-AKA’ to 5G-AKA: The authentication protocol upgrades to 5G-AKA, which introduces the SUCI (Subscription Concealed Identifier). Unlike 4G, where the IMSI is sent in cleartext during the initial attach (making it vulnerable to IMSI catchers/Stingrays), 5G VoWiFi encrypts the subscriber identity using the carrier’s public key before it even traverses the Wi-Fi network.
  3. HTTP/2 and JSON: While the UE-to-N3IWF link remains SIP/IPsec, the internal IMS core transitions to HTTP/2 and JSON for service-based interfaces (SBI), allowing VoWiFi services to integrate seamlessly with cloud-native microservices and edge computing nodes.

6. Summary

The protocol stack of Wi-Fi Calling is a masterclass in defensive engineering. By wrapping standard telecom protocols (SIP/RTP) inside a network-layer cryptographic vault (IPsec/IKEv2), and anchoring the authentication to physical hardware (the SIM), the architecture successfully bridges the gap between the chaotic, unmanaged public internet and the highly regulated, deterministic environment of the mobile core.

While OTT applications offer convenience through lightweight, application-layer stacks, they lack the deep QoS integration, hardware-backed identity, and seamless mobility protocols that define the VoWiFi stack. As 5G SA matures, this stack will only become more sophisticated, further blurring the lines between local Wi-Fi and wide-area cellular networks.


5) Mobility and Voice Call Continuity (VCC): The Engineering of Seamless Handovers

The ultimate test of any mobile telecommunications architecture is mobility. In the context of Wi-Fi Calling (VoWiFi), mobility dictates that a subscriber can initiate a call on their home Wi-Fi network, walk out the front door, traverse a cellular dead zone, and enter a legacy 3G coverage area—all without the call dropping, the audio clipping, or the remote party experiencing a disruption.

This capability is governed by Voice Call Continuity (VCC) and Single Radio Voice Call Continuity (SRVCC). Unlike Over-The-Top (OTT) applications that simply drop and reconnect when the network changes, the 3GPP architecture for VoWiFi utilizes a sophisticated, network-anchored signaling framework to maintain session state across entirely different physical and logical access networks.

Below is an expert-level, comprehensive breakdown of the mobility architecture, handover triggers, and signaling flows that power VoWiFi continuity.

1. The Architectural Anchor: SCC AS and Domain Selection

To understand VCC, one must understand the concept of Session Anchoring. If a smartphone were to communicate directly with the remote party’s phone during a VoWiFi call, changing the IP address (moving from Wi-Fi to LTE) would instantly break the RTP media stream and the SIP session.

To prevent this, the IMS Core utilizes the SCC AS (Service Centralization and Continuity Application Server).

The Role of the SCC AS

Defined in 3GPP TS 23.237, the SCC AS acts as a Back-to-Back User Agent (B2BUA) for the duration of the voice session.

  • Signaling Anchor: When a VoWiFi call is established, the SCC AS intercepts the SIP signaling. It splits the call into two distinct “legs”: the Access Leg (between the UE and the SCC AS) and the Remote Leg (between the SCC AS and the destination).
  • Domain Selection (DomSel): The SCC AS maintains the logic that dictates which access network (Wi-Fi, LTE, 5G NR, or Circuit-Switched) should be used for originating and terminating calls based on user preferences, network policies, and current radio conditions.
  • Seamless Transfer: When a handover is required, the UE only needs to update the Access Leg with the SCC AS. The Remote Leg remains completely untouched and unaware that the user has changed networks.

2. Handover Triggers: The Decision Engine

The smartphone does not arbitrarily decide to switch networks. The decision is driven by the device’s Radio Resource Management (RRM) layer, guided by policies pushed from the carrier’s core network.

A. Radio Metrics and Thresholds

The UE continuously monitors the physical layer metrics of both the active and available networks.

  • Wi-Fi Metrics: RSSI (Received Signal Strength Indicator), SNR (Signal-to-Noise Ratio), and packet loss rates.
  • Cellular Metrics: RSRP (Reference Signal Received Power), RSRQ (Reference Signal Received Quality), and SINR (Signal-to-Interference-plus-Noise Ratio) for LTE/5G.

B. Hysteresis and Time-to-Trigger (TTT)

To prevent “ping-pong” handovers (where the device rapidly switches back and forth between Wi-Fi and LTE at the edge of a coverage boundary), the architecture employs hysteresis. The LTE signal must not only exceed the Wi-Fi signal but must remain superior for a specific Time-to-Trigger (TTT) window (e.g., 2 to 5 seconds) before the handover is executed.

C. Network-Assisted Policies: ANDSF and URSP

Carriers do not rely solely on the device’s local logic; they push strict routing policies to the UE.

  • 4G ANDSF (Access Network Discovery and Selection Function): An EPC node that pushes ISMP (Inter-System Mobility Policy) and ISRP (Inter-System Routing Policy) to the UE via OMA-DM or ANDSF protocols, dictating rules like “Prefer Wi-Fi if RSSI > -75dBm; otherwise use LTE.”
  • 5G URSP (UE Route Selection Policy): In 5G Standalone, ANDSF is replaced by URSP, which is delivered via the 5G PCF (Policy Control Function). URSP allows for highly granular, slice-aware routing rules (e.g., “Route IMS Voice traffic via 5G slice A; route background data via Wi-Fi”).

3. The Handover Execution: Step-by-Step Signaling Flow (Wi-Fi to LTE)

The most common VCC scenario is a VoWiFi to VoLTE Handover. Because the UE is moving between two IP-based networks that both connect to the same IMS core, this is an IMS-to-IMS transfer.

Modern smartphones utilize a “Make-Before-Break” paradigm at the IP layer to ensure zero audio loss.

StepActionProtocol / InterfaceArchitectural Detail
1. Trigger & AttachUE detects Wi-Fi degradation; LTE signal is strong.RRM / NASUE silently performs an LTE Attach (or Tracking Area Update) in the background while maintaining the active Wi-Fi call.
2. Bearer SetupNetwork establishes a dedicated voice pipeline on LTE.SIP / Diameter RxThe UE sends a SIP Re-INVITE over LTE. The P-CSCF requests a QCI 1 Dedicated Bearer from the PCRF/PGW.
3. SIP TransferUE requests the session transfer to the new IP.SIP INVITEThe UE sends a SIP INVITE to the SCC AS over the new LTE bearer. Crucially, it includes the Access-Transfer: Cellular header.
4. Remote Leg UpdateSCC AS updates the media path for the remote party.SIP Re-INVITEThe SCC AS correlates the request to the anchored session and sends a Re-INVITE to the remote party, updating the SDP (IP/Ports) to the UE’s new LTE IP.
5. Audio SwitchMedia flows over LTE; Wi-Fi is dropped.RTP / IPsecThe UE switches its local DSP audio path to the LTE modem. Once media is confirmed flowing, the UE sends an IKEv2 DELETE to tear down the Wi-Fi IPsec tunnel.

Note: During the brief milliseconds of the transition, the UE’s jitter buffer absorbs any minor packet misalignment, rendering the handover imperceptible to the human ear.


4. Legacy Interworking: eSRVCC (Wi-Fi to 2G/3G CS)

The true complexity of 3GPP mobility architecture is revealed when a user walks out of Wi-Fi and LTE coverage and enters an area served only by legacy 2G (GSM) or 3G (UMTS) Circuit-Switched (CS) networks. Because legacy networks do not support IP-based SIP/RTP voice, the call must be fundamentally translated from a packet-switched IMS session to a circuit-switched TDM voice channel.

This is governed by eSRVCC (Enhanced Single Radio Voice Call Continuity), defined in 3GPP TS 23.216.

The eSRVCC Architecture

  1. The Trigger: The LTE eNodeB detects that the UE is leaving LTE coverage and only 2G/3G CS coverage is available. It sends a Handover Required message to the MME (Mobility Management Entity).
  2. The Sv Interface: The MME recognizes this is an active voice call and triggers the SRVCC procedure, communicating with the legacy MSC (Mobile Switching Center) over the Sv interface.
  3. The STN-SR (Session Transfer Number for Single Radio): The MME passes a special routing number (STN-SR) to the MSC. The MSC uses this number to route a legacy ISUP/BICC call setup message into the IMS core.
  4. The ATCF (Access Transfer Control Function): Working in tandem with the SCC AS, the ATCF intercepts this legacy call setup. It anchors the media at the IMS Media Gateway (IM-MGW), converting the RTP packets from the remote party into TDM circuit-switched audio for the legacy 2G/3G radio network.
  5. The Handover: The UE tunes its single radio to the 2G/3G frequency and seamlessly takes over the circuit-switched voice channel.

5. The Single-Radio Constraint

A critical physical limitation in smartphone design dictates the complexity of VCC: The Single Radio Constraint.

Most mobile devices possess only one active RF transmit chain for cellular and Wi-Fi combined. They cannot physically transmit on a Wi-Fi frequency and an LTE/5G frequency at the exact same millisecond.

  • The Implication: A true, simultaneous “Make-Before-Break” at the physical radio layer is impossible on single-radio devices.
  • The Solution: The architecture relies on fast-tuning and lower-layer buffering. The device pre-establishes the LTE signaling context (Make), rapidly tunes the radio away from Wi-Fi to transmit the crucial SIP/RTP packets on LTE, and then drops the Wi-Fi connection (Break). The IMS core and the UE’s DSP utilize advanced jitter buffers and Forward Error Correction (FEC) to mask the micro-interruptions caused by the radio tuning process.

(Note: Some ultra-premium flagship devices now feature dual-active RF chains, allowing true simultaneous transmission, which drastically simplifies the VCC signaling flow and reduces latency.)

6. 5G Standalone (SA) and the Evolution of VCC

As operators deploy 5G Standalone (SA) cores, the VCC architecture evolves to support VoNR (Voice over New Radio) and advanced network slicing.

  • Interworking with EPC (N26 Interface): If a 5G SA user on VoWiFi moves into an area with only 4G LTE coverage, the 5G AMF and 4G MME must communicate via the N26 interface to transfer the session context seamlessly.
  • EPS Fallback: In many early 5G SA deployments, the network does not support VoNR. If a user on VoWiFi moves to 5G coverage, the network triggers EPS Fallback, intentionally dropping the device to 4G LTE to utilize the mature VoLTE architecture, before eventually handing over to VoNR as the 5G core matures.
  • Slice-Based Continuity: In 5G, VCC is tied to the 5QI (5G QoS Identifier). The network ensures that the specific Network Slice dedicated to IMS Voice (typically Slice/Service Type 1 or a custom enterprise slice) is maintained or appropriately mapped during the handover from Wi-Fi (via N3IWF) to 5G NR.

7. Summary Matrix: Handover Scenarios

The following matrix summarizes the architectural pathways for the three primary mobility scenarios encountered in Wi-Fi Calling.

Handover ScenarioSource NetworkTarget NetworkCore Anchor NodeKey 3GPP Protocol / InterfaceComplexity Level
Standard VCCVoWiFi (Untrusted)VoLTE / VoNR (Trusted IP)SCC ASSIP Re-INVITE (Access-Transfer)Moderate (IP-to-IP transfer)
eSRVCCVoWiFi / VoLTE2G / 3G (Circuit Switched)ATCF & SCC ASSv Interface (MME to MSC), STN-SR routingExtremely High (IP-to-TDM translation)
Reverse VCCVoLTE / VoNRVoWiFi (Untrusted)SCC ASSIP Re-INVITE, IKEv2 Tunnel Re-establishmentModerate (Requires rapid IPsec setup)
Wi-Fi RoamingHome Wi-FiEnterprise / Public Wi-FiP-CSCF / S-CSCFIPsec Keep-Alives, NAT TraversalLow (No core domain transfer required)

8. Conclusion

Mobility and Voice Call Continuity represent the pinnacle of the Wi-Fi Calling architecture. By decoupling the session logic from the physical transport layer via the SCC AS, and by engineering complex translation gateways like the ATCF for legacy interworking, 3GPP has created a framework where the underlying access network becomes entirely abstracted to the end user.

Whether the voice packets are traveling over a fiber-backed home router, a macro-cellular LTE tower, or a legacy 3G copper line, the IMS core maintains the unbroken chain of the conversation. This seamless domain selection and transfer capability is precisely what elevates VoWiFi from a simple internet utility to a critical, carrier-grade telecommunications service.


6) The 5G Evolution: ePDG vs. N3IWF

The transition from 4G LTE to 5G Standalone (SA) represents the most significant architectural paradigm shift in the history of mobile telecommunications. While 4G introduced the IP Multimedia Subsystem (IMS) to decouple services from the radio access network, the underlying Evolved Packet Core (EPC) remained largely hardware-centric and reliant on rigid, point-to-point signaling.

With 5G SA, the 3GPP introduced the Service-Based Architecture (SBA)—a cloud-native, microservices-driven framework built on standard web technologies (HTTP/2, JSON).

At the exact intersection of this evolution sits the Wi-Fi Calling gateway. In 4G, this “cryptographic airlock” is the ePDG (Evolved Packet Data Gateway). In 5G, it is replaced by the N3IWF (Non-3GPP InterWorking Function). While both serve the same fundamental purpose—securing untrusted Wi-Fi traffic and injecting it into the carrier core—their underlying engineering, signaling paradigms, and capabilities are vastly different.

Below is an expert-level comparative analysis of the ePDG and the N3IWF, detailing how the architecture of Wi-Fi Calling evolves in the 5G era.

1. The 4G Anchor: The ePDG (Evolved Packet Data Gateway)

The ePDG was designed in the late 2000s as a bolt-on solution to the 4G EPC. Because the EPC was originally designed strictly for cellular radio access (LTE), integrating untrusted Wi-Fi required a specialized, monolithic gateway.

Architectural Characteristics of the ePDG

  • Monolithic Design: The ePDG typically handles both the Control Plane (authentication, tunnel management) and the User Plane (routing encrypted voice media) within the same physical or virtualized appliance.
  • Point-to-Point Interfaces: It relies on legacy telecom protocols. It uses the SWm interface (running the Diameter protocol) to communicate with the 3GPP AAA server for authentication, and the S2b interface (running GTP or PMIP) to route user traffic to the PGW (Packet Data Network Gateway).
  • Authentication Termination: The ePDG actively terminates the authentication process. It extracts the EAP-AKA (Extensible Authentication Protocol) payload from the IKEv2 handshake and proxies it to the AAA server. The ePDG acts as the authenticator.
  • Limitations:
    • Lack of Slicing: The 4G EPC utilizes QCI (QoS Class Identifiers) to prioritize traffic, but it cannot partition the network into isolated, end-to-end logical networks (slices).
    • Furthermore, because it relies on Diameter, scaling the control plane requires complex routing configurations (Diameter Routing Agents – DRAs), making it rigid compared to modern web architectures.

2. The 5G Paradigm Shift: The N3IWF (Non-3GPP InterWorking Function)

The N3IWF is not merely an “ePDG with a new name.” It is a fundamentally re-imagined gateway built natively for the 5G Service-Based Architecture (SBA). It is designed to treat untrusted Wi-Fi exactly like a 5G cellular cell tower (gNodeB).

Architectural Characteristics of the N3IWF

  • Strict CUPS (Control and User Plane Separation): The N3IWF strictly separates signaling from media.
    • The Control Plane connects to the 5G AMF (Access and Mobility Management Function) via the N2 interface using the NGAP protocol.
    • The User Plane connects to the 5G UPF (User Plane Function) via the N3 interface using GTP-U.
  • The NAS Relay Paradigm: Unlike the ePDG, the N3IWF does not terminate authentication. Instead, the UE encapsulates its 5G NAS (Non-Access Stratum) signaling messages directly inside the IPsec tunnel. The N3IWF simply decrypts the outer shell and relays the NAS payload directly to the AMF. The AMF and AUSF (Authentication Server Function) handle the actual authentication logic.
  • HTTP/2 and Microservices: While the UE-to-N3IWF link still uses IPsec/IKEv2, the N3IWF’s internal communication with the 5G core utilizes HTTP/2 RESTful APIs, allowing it to seamlessly integrate into Kubernetes-based telco clouds.

3. Key Architectural Differences: The “Versus” Analysis

To understand the engineering leap from 4G VoWiFi to 5G VoWiFi, we must examine four critical domains where the ePDG and N3IWF diverge.

A. Identity and Security: IMSI vs. SUCI

  • 4G ePDG: During the initial IKEv2/EAP-AKA handshake, the UE often transmits its IMSI (International Mobile Subscriber Identity) in cleartext to the ePDG. This makes 4G VoWiFi theoretically vulnerable to IMSI-catchers (Stingrays) on the local Wi-Fi network.
  • 5G N3IWF: 5G introduces the SUCI (Subscription Concealed Identifier). Before the UE sends its identity over the untrusted Wi-Fi network, it encrypts its permanent identifier (SUPI) using the home network’s public key. The N3IWF only ever sees the anonymized SUCI, ensuring absolute privacy even on compromised public Wi-Fi hotspots.

B. Quality of Service: Bearers vs. QoS Flows

  • 4G ePDG: QoS is managed via EPS Bearers (using QCI – QoS Class Identifiers). A VoWiFi call is mapped to a dedicated bearer (QCI 1). However, the EPC struggles to differentiate between multiple simultaneous services on the same bearer.
  • 5G N3IWF: 5G abandons rigid bearers in favor of PDU Sessions and granular QoS Flows (using 5QI – 5G QoS Identifiers). A single PDU session established through the N3IWF can contain multiple QoS flows, allowing the network to apply distinct latency and bandwidth policies to the SIP signaling, the RTP voice media, and background app data simultaneously.

C. Network Slicing

  • 4G ePDG: Slicing does not exist in 4G. All VoWiFi traffic is dumped into a generic “Internet” or “IMS” APN (Access Point Name).
  • 5G N3IWF: The N3IWF is slice-aware. When a UE connects via Wi-Fi, it can request a specific S-NSSAI (Single Network Slice Selection Assistance Information). The N3IWF routes the VoWiFi traffic directly into a dedicated IMS Voice Network Slice, guaranteeing isolated, enterprise-grade SLAs for voice traffic, even if the broader 5G core is congested.

D. The Ultimate Mobility Evolution: ATSSS

While 4G relies on complex SIP-level handovers (VCC) to move a call between Wi-Fi and LTE, 5G introduces ATSSS (Access Traffic Steering, Switching, and Splitting) at the transport layer. Through the N3IWF, a 5G device can establish a Multi-Access PDU (MA-PDU) Session. This allows the smartphone to maintain simultaneous connections over 5G NR (cellular) and N3IWF (Wi-Fi). The network can dynamically “split” the traffic—sending mission-critical SIP signaling over the highly reliable 5G radio, while offloading heavy media or background data over Wi-Fi—without requiring a disruptive SIP Re-INVITE handover.

4. Protocol Flow Comparison: Tunnel Establishment

The step-by-step process of connecting to the network highlights the shift from AAA-proxying to NAS-relaying.

4G ePDG Connection Flow

  1. UE connects to Wi-Fi and discovers ePDG via DNS.
  2. UE initiates IKEv2 handshake with ePDG.
  3. ePDG requests identity; UE sends IMSI.
  4. ePDG sends Diameter EAP-Request to 3GPP AAA Server.
  5. AAA Server queries HSS, generates challenge, and sends it to ePDG.
  6. ePDG forwards challenge to UE.
  7. UE SIM computes response; ePDG verifies via AAA/HSS.
  8. IPsec tunnel established; ePDG sets up GTP tunnel to PGW.

5G N3IWF Connection Flow

  1. UE connects to Wi-Fi and discovers N3IWF via DNS.
  2. UE initiates IKEv2 handshake with N3IWF (Authentication is deferred to NAS).
  3. UE encrypts its identity into a SUCI and encapsulates a 5G NAS Registration Request inside the IKEv2/IPsec payload.
  4. N3IWF decrypts the payload and forwards the NAS message directly to the AMF over the N2 interface.
  5. AMF routes authentication to the AUSF/UDM.
  6. AUSF generates a 5G-AKA challenge and sends it back via AMF to N3IWF.
  7. N3IWF blindly relays the NAS challenge to the UE via IPsec.
  8. UE SIM computes response; AMF/AUSF verifies.
  9. IPsec tunnel established; N3IWF sets up N3 GTP-U tunnel to the UPF based on AMF/SMF instructions.

5. Summary Matrix: ePDG vs. N3IWF

The following matrix provides a definitive, publication-ready comparison of the two architectural gateways.

Feature / Capability4G ePDG (Evolved Packet Data Gateway)5G N3IWF (Non-3GPP InterWorking Function)
Core Architecture4G Evolved Packet Core (EPC)5G Standalone Service-Based Architecture (SBA)
Design ParadigmMonolithic (Coupled Control/User Plane)Cloud-Native Microservices (Strict CUPS)
UE-to-Gateway InterfaceSWu (IPsec / IKEv2)NWu (IPsec / IKEv2)
Control Plane InterfaceSWm (Diameter to 3GPP AAA Server)N2 (NGAP protocol to 5G AMF)
User Plane InterfaceS2b (GTP/PMIP to PGW)N3 (GTP-U to 5G UPF)
Authentication RoleActs as an EAP Authenticator / ProxyActs as a blind NAS Relay to the AMF/AUSF
Authentication ProtocolEAP-AKA / EAP-SIM5G-AKA / EAP-AKA’
Subscriber IdentityIMSI (Often sent in cleartext initially)SUCI (Cryptographically concealed)
QoS MechanismEPS Bearers (QCI)PDU Sessions & QoS Flows (5QI)
Network SlicingNot SupportedFully Supported (S-NSSAI routing)
Advanced MobilitySIP-based VCC / eSRVCCATSSS (Traffic Steering, Switching, Splitting)
Signaling ProtocolDiameter / GTP-CHTTP/2 / JSON (internally) / NGAP

6. The Migration Challenge: NSA vs. SA Interworking

For Mobile Network Operators (MNOs), the transition from ePDG to N3IWF is not a simple “flip the switch” upgrade. It requires managing a complex hybrid environment during the multi-year migration to 5G Standalone.

The 5G Non-Standalone (NSA) Reality

Most early “5G” Wi-Fi Calling deployments were actually 5G NSA (Option 3x). In this architecture, the 5G radio (gNodeB) is anchored to the legacy 4G EPC.

  • The Implication: Because the core network is still 4G, the network still uses the ePDG for Wi-Fi Calling. The N3IWF cannot be utilized until the operator deploys a true 5G SA core (Option 2).

Interworking via the N26 Interface

When an operator finally launches 5G SA, they face a massive interoperability challenge: What happens when a user on a 5G SA VoWiFi call (anchored by the N3IWF and 5GC) walks into a building that only has 4G LTE coverage?

  • To prevent dropped calls, the 5G AMF and the 4G MME must communicate via the N26 interface.
  • The N26 interface allows the 5G core to translate the 5G PDU session and QoS flows back into 4G EPS bearers, seamlessly handing the session over to the legacy ePDG and EPC.
  • Expert Note: Many operators initially chose not to implement the N26 interface to save CAPEX, relying instead on EPS Fallback or forcing devices to drop to 4G and re-register, which caused brief call interruptions during the transition phase.

7. Conclusion: The Path to Ultimate Convergence

The evolution from the ePDG to the N3IWF represents the maturation of Wi-Fi Calling from a “bolted-on” utility to a fully integrated, first-class citizen of the mobile core network.

By adopting cloud-native principles, enforcing strict Control and User Plane Separation, and introducing the N3IWF as a seamless NAS relay, 5G Standalone effectively erases the architectural boundary between cellular towers and Wi-Fi routers. When combined with advanced features like Network Slicing and ATSSS, the 5G architecture ensures that future voice communications will not merely “handover” between networks, but will dynamically and invisibly utilize every available radio frequency simultaneously to guarantee pristine, unbroken connectivity.


One thought on “Understanding the Architecture of Wi-Fi Calling (VoWiFi)”

  1. Good walkthrough — the untrusted-transit point is exactly where most VoWiFi deployments get misdiagnosed. Worth adding that the radio side has its own failure mode: a handset holding a weak ePDG tunnel on a marginal Wi-Fi link will blame the IPsec path when the real problem is antenna gain and placement. We see this constantly on 3.5 GHz CPE installs — a sector antenna swap at the router end fixes “mysterious” VoWiFi dropouts more often than any ALG setting. Thanks for the clear ALG breakdown.

Leave a Reply