Quantum: AAA built into the BNG

Quantum's AAA has two halves, and both are on the box. The BNG makes every AAA
decision in-process, on the subscriber's first DHCP packet. The QuantumTouch
console holds the subscriber base, the billing ledger and the policies the
operator sets, and keeps the BNG in step with them. No part of the decision
waits on another system.

Authentication: a line is matched to an account. A subscriber is an
account with an operator-assigned subscriber_id. The record lists the
locators that identify the subscriber's line or device: an Option 82
circuit-id (or remote-id) and a MAC address. The BNG matches the locators on
each DHCP DISCOVER to an account, line first and then device, from an index
held in memory. Several locators can point at one account, which covers a
multi-device household or a hotel room with no second code path. A locator
is never the identity, so replacing the CPE on a provisioned line keeps the
same account. A line with no record either goes to the captive portal to sign
up, or is refused, at the operator's choice.

Authorisation: the record decides, and the plan comes with it. The
record's status sets the outcome:

Record status Outcome What the subscriber gets
active Accept The record's plan, resolved against the plan library into the policer settings the data plane enforces
suspended Captive The walled garden, for dunning or top-up. The plan is kept, so paying restores it
terminated Reject Nothing; a hard bar
No record Captive or reject The operator's unknown-line policy: self-service sign-up, or strict admission

The record also carries a static IP address (the local equivalent of RADIUS
Framed-IP-Address), and per-subscriber session timeout, idle timeout and
accounting interval. A data cap can throttle an active subscriber to a floor
plan or send them to the portal, without touching the record itself. For
flat-rate networks, an open source accepts every line at a default plan.

Accounting: billing-grade records that outlive a restart. The BNG writes a
start, interim and stop record for every session into an on-box spool, a
database of its own that is kept apart from the BNG's own state. Each
record carries the acct_session_id, the subscriber_id and a
subscription-level correlation id, the framed IP, the session time and, on
stop, one of seven standard terminate causes. Usage is four 64-bit totals
(octets and packets, in and out), each split into green, yellow and red: in
contract, burst, and dropped. The spool keeps the latest record of every
session, so its size follows the live subscriber count rather than the number
of records sent. After an unclean restart, any session left open is closed
with a NAS-Reboot stop carrying its last known usage, so the billing side
never holds a session that silently ended.

QuantumTouch drains that spool every 30 seconds into a durable ledger on the
same box. It acknowledges a batch only after the batch is committed, because
the acknowledgement is what lets the BNG prune it. A crash between the two
costs a harmless re-read; the reverse order could lose a bill. The ledger keeps
immutable records of finished sessions, a live row for every open session, and
daily usage per subscriber, for 13 months — a year plus a billing cycle, so a
late annual dispute still has records behind it. It exports as CSV or JSON,
on demand or on a schedule, and each record carries a billing reference that
joins it to the ISP's billing system.

Live change: edit the record, and the session follows. A plan or status
change is one write to the subscriber's record, and the BNG applies it to the
live session in the same pass. The write reports what it did: re-rated,
gated to captive, disconnected, activated, or deferred to the next DHCP
exchange for an address change. There is no second system to keep in step and
no separate session command to send. The console loads or replaces up to
10,000 subscribers in one all-or-nothing batch from a CSV or Excel file, with
a diff to approve before anything is written. Every change carries an audit
trail of who made it and why.

Self-service: the captive portal is part of the product. A portal service
runs on the box. It carries the ISP's brand and activates a subscriber in one
of three ways: by the operator, by a prepaid voucher, or by handing off to the
ISP's own web portal. Vouchers are single-use codes tied to a plan, with an
expiry. The walled garden can open extra ports for portal-side services. A
short captive lease means a device that has just been activated picks up its
full service settings within about two minutes, with no reboot.

Data caps: policy in, enforcement out. The operator gives a plan a monthly
allowance, a billing-cycle day, a warning threshold and a consequence:
throttle to a floor plan, or send to the portal. A subscriber can be given an
override, an exemption or a top-up. The console measures usage from the
ledger, applies the consequence when the allowance runs out, and lifts it when
the cycle rolls over or a top-up lands. It raises a webhook at the warning,
on enforcement and on clearing, each carrying the subscriber's billing
reference, so the ISP's billing or notification system can act on it.

What Release 1.0 does not do. Release 1.0 runs its own AAA and does not
connect to an external RADIUS server or billing platform; its RADIUS surface is
deliberately inert. A connector — subscribers in, records out, for FreeRADIUS,
Splynx, Sonar, UISP and Powercode — is planned as an optional add-on. Two
smaller limits: a cap on concurrent sessions per account is enforced by the
operator from the account's session list rather than at admission, and usage
history is kept by day, not by hour.