Migrating an EPC to a Service-Based Core Without Losing Sessions When a Node Dies
The hard part of leaving a monolithic EPC is moving session state out of the process that owns it. Containerising the code is the easy part. In a vendor appliance, a failed gateway blade is covered by a paired blade that has been mirroring its state all along. In a service-based core that mirroring becomes your job, spread across an SMF fleet, a shared data layer and a set of distributed UPFs. Most of the migration budget pays for moving that state, and each line of it should map to a specific failure the network will survive.
Where the old stack hid its resilience
Chassis redundancy was never free. You paid for it in idle standby capacity and vendor lock, and the bill was folded into the hardware price, so nobody had to defend it. The 3GPP service-based architecture and session management specifications give you the building blocks to replace it: NF sets, NRF discovery and an unstructured data storage function. They deliberately leave replication semantics and consistency guarantees to the implementer. That gap is where your money goes. A shared session store adds a network round trip to every state change on the healthy path, by my estimate a millisecond or two per update on a well placed store. In return you can lose an SMF instance without forcing devices to tear down and re-establish their PDU sessions. If you can't show that trade on a dashboard, the store looks like pure overhead, and it will be the first thing cut.
The part that hurts
The failure that justifies the reconciliation budget is quiet. An SMF instance programs forwarding rules on a UPF over N4, then dies before it commits the updated context to the store. The replacement instance loads the stale record, and the UPF keeps forwarding traffic under rules no live controller knows about. User packets still flow, so no alarm fires, but policy and charging no longer match what is on the wire. A network partition makes it worse: two SMF instances can each believe they own the same session and overwrite each other's rules. The fix is epoch fencing on every store write, plus an audit job that walks the PFCP sessions on each UPF and compares them with the store. By my estimate that tooling takes roughly a fifth of integration effort. That cost buys you a bounded, observable revenue leak instead of an invisible one.
Tuning detection on distributed UPFs
Pushing UPFs to the edge shrinks the blast radius of any single failure, but it multiplies the number of N4 associations the control plane has to watch. The parameter that decides whether failover actually happens is the PFCP heartbeat interval. I set it at 2 s on edge UPFs and leave it longer on central ones. A shorter interval detects a dead UPF faster. On congested or lossy backhaul it also declares healthy nodes dead, and the SMF fleet then reselects and re-anchors thousands of sessions at once. That relocation storm can do more damage than the original fault. Session and service continuity mode matters here: sessions that must keep their IP address need a slower, more conservative interval than sessions that can tolerate a re-anchor, so tune the interval per slice or per DNN rather than globally.
A rule for what to externalise
Put a function's state in the shared store only if peers can't rebuild it before the heartbeat declares the owning node dead, and keep everything else in local memory, because every externalised write adds latency on the healthy path to save time on the failed one.
Technical FAQ: Can the existing PGW keep running while the new core comes up?
Yes. A combined SMF and PGW control plane with N26 interworking lets LTE and 5G sessions share an anchor during the transition. The catch is that the legacy side's state still lives inside its appliance, so a session handed across keeps the old failure behaviour until it re-anchors on a cloud-native UPF. Plan capacity for both resilience models running side by side until the last legacy anchor is retired.