Quantum: plans are a product catalogue the BNG enforces
Quantum treats a plan the way an ISP does: as a named product, defined once
and sold to many subscribers. The plan library, the subscriber records that
point at it and the data plane that enforces it are all on the box, so a
change to any of them reaches the wire without another system.
A plan is a named product, defined once. A plan is a name and eight
numbers: a committed rate (CIR) and a peak rate (PIR) in each direction, each
with a burst size. The committed rate is what the customer bought; the peak
rate is how far they may burst above it. The library has one home, the BNG's
configuration, and the console's Plans page lists every plan with the number
of live subscribers on it. A plan carries speed only. Timers, static
addresses, allowances and account status belong to the subscriber record and
the data-cap policy, so one Gold plan serves every Gold customer, whatever else
differs between them. A subscriber who needs a one-off speed is given a custom
rate on their record, which the console turns into an ad-hoc plan named from
the rate. Everyone given the same custom speed shares that plan, and changing
one customer's speed moves them to another ad-hoc plan rather than editing
anyone else's.
Assignment: one field on the subscriber record. The record's plan_name
assigns the plan. The record's status, and any data-cap overlay, decide what
the subscriber actually runs at:
| Subscriber state | Admission | Rate enforced |
|---|---|---|
active |
Admitted | The record's plan, else the operator's default plan |
active, over cap, throttle policy |
Admitted | The cap policy's floor plan; the record is unchanged |
active, over cap, captive policy |
Walled garden | The captive rate; the plan is remembered for restore |
suspended |
Walled garden | The captive rate; the plan is remembered for restore |
terminated |
Refused | — |
| No record | Walled garden or refused | The operator's unknown-line policy |
Plans are assigned from the console's subscriber page, a bulk CSV or Excel
upload of up to 10,000 rows, a voucher, or the API. A bulk load that names a
plan not in the library is rejected whole, before anything is written, and the
health page flags any record or policy that points at a plan that no longer
exists.
Enforcement: one two-rate policer each way, in the data plane. At admission
the BNG converts the plan into the data plane's units and installs the
subscriber's session in the VPP data plane with a two-rate, three-colour marker
(RFC 2698) in each direction. Every packet, up and down, is metered against
the subscriber's own committed and peak rate:
| Colour | Traffic | What happens |
|---|---|---|
| Green | At or under the committed rate | Forwarded and counted |
| Yellow | Between the committed and the peak rate | Forwarded and counted; optionally DSCP-marked |
| Red | Above the peak rate | Dropped at the edge, before it reaches transit, and counted |
Upstream and downstream use the same mechanism, so a plan means the same thing
in both directions. Each session keeps twelve 64-bit counters — octets and
packets, in and out, in each colour — which flow into the accounting record
and the on-box billing ledger. An optional DSCP marking policy, set on the
console's Dataplane page and off by default, stamps in-contract and burst
traffic with different codepoints, so the ISP's own routers can shed burst
traffic first under congestion. Traffic from an address the BNG did not assign
is dropped in the data plane, so nothing passes without a session and a plan
behind it. The BNG records the rates the data plane is enforcing, so a restart
of either brings every subscriber back at exactly the rate they had.
Measured, not claimed. BlueDot's release validation drove 480 subscribers
on a plan of 20/25 Mbps down and 10/12 Mbps up (committed/peak) through the
policer in both directions, at multi-gigabit load, on 2013-era hardware:
| Measurement | Result |
|---|---|
| Subscribers within contract | 480 of 480 |
| Silent or unresolved subscribers | 0 / 0 |
| Downstream median, against a 25 Mbps peak | 22.14 Mbps |
| Upstream median, against a 12 Mbps peak | 10.93 Mbps |
| Downstream colour split, about 11 Gbps | 72.8% green · 18.0% yellow · 9.1% red, dropped |
| Upstream colour split, about 8 Gbps | 64.7% green · 33.6% yellow · 1.6% red, dropped |
About a quarter of the downstream traffic and a third of the upstream was
deliberately over plan, and the policer classified every bit of it.
Live change: edit the plan, or the record. Editing a plan changes the
product for everyone on it at once. Before the edit is saved, the console shows
how many live subscribers it will touch; the BNG then re-programs both
policers of every connected session on that plan in place, and reports how many
it re-rated and how many failed. Moving one customer to another plan is one
write to their record, and the live session follows in the same pass. Neither
change reconnects anyone or changes their address, and the colour counters
carry on, so one billing record spans the change. Nothing restarts, and no
other subscriber is touched.
Collections: suspended means walled garden. A suspended subscriber stays
connected but is held in the walled garden. Their DNS answers point at the
portal, and the data plane passes only traffic to the portal, on ports 80 and
443 and any extra ports the operator opens; everything else is dropped. Their
plan is kept, so when they pay — at the portal, with a voucher, or by the
operator restoring the record — the BNG lifts the garden and re-applies the
plan to the live session. A line with no account lands in the same garden to
sign up, or is refused, at the operator's choice.
Fair use: data caps with a floor plan. The operator gives a plan a monthly
allowance and a consequence: throttle to a named floor plan, or send to the
portal for a top-up. A billing-cycle day and a warning threshold (80% by
default) apply box-wide, and any subscriber can be given their own allowance,
their own cycle day or an exemption. Top-ups are grants recorded with who gave
them and why, and can never be edited or deleted. The console measures usage
from the ledger every 30 seconds. When a subscriber runs out, it re-rates their
live sessions to the floor plan, or gates them, without touching their record,
and it lifts the consequence when the cycle rolls over or a top-up lands.
Webhooks fire at the warning, on enforcement and on clearing, each carrying the
subscriber's billing reference, and alerts fire if cap evaluation stops or a
consequence cannot be applied.
Prepaid and per-subscriber settings. Vouchers are single-use codes tied to
a plan, with an optional expiry, so prepaid and guest products need no billing
integration. Each record can also carry its own session timeout, idle timeout
(one hour by default) and accounting interval, and a static address for
business plans.
What Release 1.0 does not do. Plans carry speed only: there are no
time-of-day plans and no per-plan access lists. Enforcement is policing —
traffic above the peak rate is dropped, not queued — and there is no
hierarchical or application-aware queueing. The data plane serves IPv4
subscribers; IPv6 subscriber service is not in this release. A cap on
concurrent sessions per account is enforced by the operator from the account's
session list, not at admission.