Blog

What is an ePDG? How Wi-⁠Fi calling reaches the core

A subscriber is in a basement gym with no mobile signal. Their phone shows one word next to the operator's name: Wi-⁠Fi. They call home, and the call works. The gym's Wi-⁠Fi is not the operator's network, so something had to carry that call safely into the operator's core.

A white Wi-Fi access point mounted on a steel beam under the glass roof of an airport terminal.

What is ePDG?

An ePDG (evolved Packet Data Gateway) is the mobile core function that lets a phone on untrusted Wi-⁠Fi reach the operator's network securely. The phone builds an IPsec tunnel to the ePDG using IKEv2, authenticates with its SIM through the operator's AAA server, and the ePDG forwards traffic to the packet core. It powers Wi-⁠Fi calling.

"Untrusted" doesn't mean unsafe. It means the operator doesn't run that Wi-⁠Fi network, so it treats it like the open internet and protects the traffic itself.

How the ePDG in LTE works

Finding the ePDG

The phone builds a domain name from its home operator's network codes and looks it up in DNS. The answer is the address of the nearest suitable ePDG.

The IPsec tunnel

The phone and the ePDG set up an IPsec tunnel using IKEv2. Everything the phone sends to the operator, voice included, travels inside that tunnel across the gym's Wi-⁠Fi and the internet.

Authentication through AAA

Inside the IKEv2 exchange, the phone proves its identity with its SIM using EAP-⁠AKA. The ePDG passes that exchange to the operator's AAA server over the SWm interface (Diameter), and the AAA server checks it with the HSS. Once the AAA server says yes, the tunnel comes up.

Into the packet core

The ePDG connects to the packet gateway over the S2b interface. From there, the session looks like any other mobile data session to the rest of the core.

ePDG and Wi-⁠Fi calling: what is VoWiFi?

VoWiFi (voice over Wi-⁠Fi) is the standard name for Wi-⁠Fi calling. It uses the same IMS voice service as voice over LTE; only the access path changes.

  1. The phone sees weak mobile signal and a usable Wi-⁠Fi network.

  2. It finds the ePDG, builds the IPsec tunnel and authenticates with its SIM through AAA.

  3. It registers with the IMS core through the tunnel, exactly as it would over LTE.

  4. The call is placed. Voice travels phone to ePDG to packet gateway to IMS.

  5. If the subscriber walks out into mobile coverage, the call can hand over to LTE where the network supports it.

ePDG vs TWAG vs N3IWF

ItemePDGTWAGN3IWF
Generation4G4G5G
Wi-⁠Fi typeUntrusted (not run by the operator)Trusted (run by the operator or a partner)Untrusted
TunnelIPsec from the phoneNo tunnel from the phoneIPsec from the phone
Core interfaceS2b to the packet gatewayS2a to the packet gatewayN2 and N3 to the 5G core
Typical useWi-⁠Fi calling over any Wi-⁠FiCarrier Wi-⁠Fi with SIM loginWi-⁠Fi access to the 5G core

ePDG and Wi-⁠Fi offloading

Wi-⁠Fi calling and Wi-⁠Fi offload are related but different.

  • Wi-⁠Fi calling sends voice into the operator's core through the ePDG.

  • Wi-⁠Fi offload moves a subscriber's data onto Wi-⁠Fi, often with SIM-⁠based login on carrier hotspots, so it doesn't load the mobile radio network. Most offloaded data goes straight to the internet.

Both rely on AAA. For offload, a RADIUS server for Wi-⁠Fi handles the SIM login from the access points using EAP-⁠SIM or EAP-⁠AKA. For calling, the AAA server handles the ePDG's requests over Diameter. Running both on one AAA platform gives one subscriber record and one place to look when Wi-⁠Fi login fails.

Common questions

What does ePDG stand for?

Evolved Packet Data Gateway.

What is the difference between ePDG and TWAG?

The ePDG serves untrusted Wi-⁠Fi with an IPsec tunnel from the phone; the TWAG serves trusted, operator-⁠run Wi-⁠Fi without one.

What replaces the ePDG in 5G?

The N3IWF (non-⁠3GPP interworking function) for untrusted Wi-⁠Fi access to the 5G core.

Does the ePDG use an AAA server?

Yes. It authenticates the phone through the AAA server over SWm, a Diameter interface.

How does a phone find the ePDG?

Through a DNS lookup of a name built from its home operator's network codes.

Is VoWiFi the same as Wi-⁠Fi calling?

Yes, in practice. VoWiFi is the technical name.

What is an ePDG? How Wi-⁠Fi calling reaches the core

Alepo Wi-⁠Fi Offload, Calling and Hotspots, in production, runs offload and Wi-⁠Fi calling on the same AAA used for fixed and mobile broadband, with one policy and usage record.