ORIONOS 7.11 · BNGCLUSTER FULL-CGNAT HIGH AVAILABILITY · DECEMBER 2026
NEW OrionOS 7.11 · bngcluster
One BNG fails. Nobody redials.Sessions, public IP:port and routes move to the peer.
bngcluster joins two or more OrionOS BNGs into one subscriber edge. Each box carries its own subscribers and keeps a live copy of its peer's. When a box loses power, its PPPoE and IPoE sessions come up on the surviving box: the subscriber does not dial again, keeps the same addresses, and, with full-CGNAT, keeps the same public IP and port for connections that are already open. The routes to those subscribers follow them. In the lab, the moved sessions were running on the peer about 10 seconds after the power was cut.1
A hard failover at a glance · one cluster member powered off · lab measurement1
~7 suntil the cluster declares the silent box dead
~10 suntil its sessions run on the peer (median traffic pause 9.5 s)
0redials: no subscriber had to log in again
100 %of tested open connections kept the same public IP:port
1,900–2,500 /s
PPPoE sessions brought up on the peer at takeover, up to 10× the previous build
800–1,200 /s
IPoE sessions brought up on the peer at takeover, up to 5× the previous build
0 refused
at failback: every subscriber group moved home, 0 flaps
8 million
NAT translations: scale the connection-copy engine was tested to
00What your company gets with bngcluster
A failed BNG is usually a phone storm: thousands of subscribers redial at once, video calls drop, gamers reconnect, VPNs re-key and the support line lights up. bngcluster turns that event into a short pause that most subscribers will never connect to an outage.
No redial storm
The sessions of a failed box come up on its peer as they were. The CPE does not dial again, and RADIUS does not see a wave of new logins.
Connections survive
With full-CGNAT, the subscriber's public IP and port move too. A connection that was open keeps the same public IP:port on the other box.
Routes follow by themselves
The surviving box announces the public address ranges it took over. Return traffic finds the subscriber again without a manual route change.
Billing stays clean
A moved session is not closed and reopened. In the lab, no Accounting-Stop was sent for a moved session, so no false logout reaches billing.
Maintenance without a window
Move every subscriber off one box, upgrade it, and move them back. The cluster software itself restarts and upgrades without a takeover.
Commodity servers
The same x86 servers and the same OrionOS image you run today. A peer is a second BNG, not a dormant chassis waiting for a failure.
01How a cluster is built
Every subscriber belongs to one of 256 groups. Each group has one owner that carries its sessions and one standby that holds a live copy of them. Both boxes work: each owns its share of the groups and stands by for the other's share.
A two-member bngcluster
by design
full-CGNAT BNG and its BGP announcementshot standby copies and the state channelmanagement
The gateway moves, not the subscriber
Each group of subscribers talks to its own gateway MAC address. On a takeover that MAC comes up on the peer, so the CPE keeps talking to "its" gateway and has no reason to dial again.
Copies that stay current
The standby keeps a copy of every session of the groups it protects and, in full-CGNAT, of their NAT state and open translations. It is ready before anything fails.
Both boxes earn their keep
There is no idle backup. Both members carry subscribers every day; size them so that one can carry the whole load if the other fails.
02Watch a failover, step by step
BNG A loses power with its subscribers online. Follow what the cluster does, and what the subscriber sees. Click a step, or let it play.
Hard failover: power lost on one member
times measured
What the subscriber notices: a pause in traffic of about ten seconds. The PPPoE or IPoE session is never torn down, the addresses do not change, and connections that were open are still there on the same public IP:port when traffic resumes. Compare that with a classic failover, where every subscriber of the failed box must dial in again, gets a new public address, and every application has to reconnect.
03Your subscriber's public IP:port moves with them
In full-CGNAT mode the NAT runs inside the traffic engine of each BNG. bngcluster copies each group's NAT address block and its open translations to the standby, so the survivor rebuilds the same mapping: the same public IP, the same public port, for the same connection.
One open connection through a hard failover
by design
Open connections that kept their public IP:port
measured
Share of long-lived test connections, checked at the far end, that kept their public IP:port through a hard failover. Every tested connection did, in every drill.
Why it matters to your subscribers
outcome
Application
Classic failover
bngcluster
Video call
call drops, rejoin
short freeze, same call
Online game
kicked from the match
same server connection
Remote desktop, VPN
reconnect, log in again
same tunnel endpoint
IP-bound logins
new IP, new checks
same public IP
Whether an application rides through a ten-second pause depends on its own timers. What bngcluster guarantees is that the connection is still valid on the network side.
Good to know. A translation is copied once it has been open for 30 s; very short exchanges such as DNS lookups are simply repeated. The standby takes connection copies only while it has at least 2 GiB of free memory; below that it refuses them cleanly, and sessions still move with their public address block. In the lab, keeping 8 million translations in step cost about 300 ns per entry to scan.1
04IPv6 subscribers and delegated prefixes move too
A dual-stack subscriber is one session with an IPv4 address, an IPv6 address and often a delegated prefix for the home network. bngcluster moves that session as one record, so the CPE's whole LAN keeps its IPv6 addressing.
One session record, carried whole
by design
No new prefix
The delegated prefix travels inside the session. Devices in the home do not renumber, and firewall rules or port openings built on the prefix keep working.
No address clash
Before a moved session comes up, the importing box checks its IPv4 address, IPv6 prefix and delegated prefix against every session it holds. A duplicate is refused cleanly, never brought up twice.
Planned moves forward traffic
When a subscriber is moved on purpose, the old box forwards its public IPv4 /32 and its IPv6 /64s to the new box for a short hold, so download traffic still in flight is delivered while routing settles.
05BGP routes follow the subscribers
The cluster's CGNAT pool is cut into 256 slices, one for each subscriber group. Every box announces by BGP the slices it owns. When groups change owner, the new owner announces their slices, so traffic from the Internet goes straight to the box that now serves those subscribers.
Who announces which public slice
by design
Standard BGP, your routers
Each box announces its slices from its own routing daemon. Your upstream routers need nothing special: they see a normal route move from one next hop to another.
Never a black hole on hand-over
In a planned move, the old owner keeps announcing a slice and forwards its traffic to the new owner. It withdraws only after it has seen the new owner's announcement and the hold time (60 s by default) has passed.
Checked, not assumed
Before NAT protection is switched on, the cluster proves it can see each peer's slices in the BGP table. If a new owner's announcement is not confirmed in time, it raises a critical alarm and the old owner keeps forwarding.
06Failback: when the box returns
A box that comes back does not grab its subscribers back. It first rejoins as a standby, refreshes its copies, and only then are the groups moved back, by an operator or automatically after a stable period you choose.
From power-on to carrying subscribers again
by design
Automatic failback is off by default, so the operator chooses the moment. When it is on, a box must be stable for 10 minutes or more (configurable up to 24 hours) before its groups go back. A planned failback uses the same live move as maintenance: sessions keep running, the old owner forwards in-flight traffic, and the routes follow.
07Access-link failover: the cable is pulled, the box stays up
A box can be alive and still useless to its subscribers: a cut fibre, a dead optic, a switch port gone. bngcluster watches the access links too. When a box loses its access side, it hands its groups to the peer itself, NAT state first, then the sessions.
Cable pull on the access link
measured
Why the hold is there
A NIC firmware reset can take both legs of a bond down for about 15 seconds and then recover by itself. Moving thousands of subscribers for that would cause more disruption than it saves, so the cluster waits out the hold first. About 85 % of the hand-over time is this deliberate wait.
When the link returns
The original box sees its link back and clears its out-of-date copies of the moved sessions by itself. The peer keeps carrying them; nothing is sent to billing, and nobody is disconnected.
08Zero-downtime upgrades of cluster members
A cluster changes how you do maintenance. Each OrionOS component already updates live on its own box; with bngcluster you can also empty a box completely, work on it, and bring its subscribers back, without a maintenance window.
Maintenance modeThe box stops taking new logins; its existing subscribers stay. One member at a time.
Evacuate liveIts groups move to the peer with their sessions, NAT state and routes, the same way as a failback.
Upgrade or repairImage, hardware, optics, anything. The peer carries the subscribers meanwhile.
Rejoin and returnThe box rejoins as a standby, then its groups move back live. Repeat for the next member.
Live updates on a running member: no takeover needed
measured
09Why the takeover is fast: sessions imported in one batch
At takeover, the surviving box brings up the protected sessions from its copies. 7.11 hands them to the session service as one batch per protocol instead of one by one, so the import itself is now a fraction of a second of the total.
Session import rate at takeover (sessions per second)
measured
Mixed PPPoE and IPoE load; the box holding about half the subscribers was powered off. Ranges span the final 7.11 builds. Earlier builds imported each session separately. With batches, PPPoE goes first, then IPoE, and the import is the last 0.5–0.9 s of the takeover; the rest is detecting the failure and taking over the groups.1
10Measured in the lab
Outcomes and rates from repeated hard-failover drills on a lab cluster running the OrionOS 7.11 release candidate.1
How we measuredmethod
A two-member cluster of virtual machines on a shared lab host, in full-CGNAT mode, with emulated PPPoE and IPoE subscribers carrying long-lived test connections. In each drill one member was hard powered off (no warning, no clean shutdown); the drill was repeated across the 7.11 release candidate and its immediate predecessors. Times are taken from the power-off on the cluster's own event log, at 1 s resolution (±1 s). Every drill on the 7.11 candidate also checked the NIC driver and kernel: no page-pool errors, no soft lockups.
11What a cluster needs
Full-CGNAT mode
bngcluster runs on BNGs in full-CGNAT XDP mode, where NAT lives in the traffic engine and can be copied and moved per subscriber group.
Shared access, one operator
Members belong to the same operator, see the same access VLANs and are fully interconnected. The cluster is set up and switched on from NOC2.
N+1 headroom
Size the members so that the survivor can carry its peer's subscribers too. A planned drill only starts when the headroom is there.
A protected interconnect
Peers authenticate every message with a strong shared key; session copies travel over an encrypted channel; the cluster ports are filtered to the peers only.
Memory for connection copies
The standby keeps open-connection copies while it has at least 2 GiB free. Below that it declines them, and subscribers still move with their sessions and public address blocks.
Drills you can run
One command evacuates a member and, optionally, fails it back, with a measured report and a pass or fail verdict. Prove the failover on your network before you need it.
We can run a hard-failover drill on a lab cluster while you watch your own test sessions move, and size a cluster for your subscriber base, access layout and upstream routing.
Figures marked measured come from a BNGSOFT lab cluster of two virtual machines on a shared, busy host (paravirtual NICs, full-CGNAT mode), with emulated PPPoE and IPoE subscribers from a BNG traffic generator, in November and December 2026, on the OrionOS 7.11 release candidate and its immediate predecessors. Event times have a 1 s resolution, so each time is ±1 s. Dedicated hardware is expected to do as well or better, but that is not yet measured, and failover at large subscriber counts has not yet been measured. The 8 million figure is a synthetic scale test of the connection-copy engine, not a live failover. Figures marked by design describe how the software works.