What the session table makes possible
The practical argument is a chain. Each property of the session table unlocks a
capability, and each capability has a commercial consequence.
| Session-table property | Capability it unlocks | On VyOS | What it is worth |
|---|---|---|---|
One persisted record keyed by framed_ip |
The session outlives a control-plane restart and stays addressable for its whole life | A record in daemon memory; any commit to the IPoE server ends every session | Re-rate, gate or disconnect one subscriber at any moment, without touching the rest |
| A data-plane handle to the entry the packet path reads | The record and the forwarding state are one lookup apart | The record sits beside a netdev, qdiscs and a route that the packet path walks instead | Throughput readable at any cadence, with no RADIUS round trip and no interface polling |
subscriber_id on the session |
Sessions roll up to an account | Interface + MAC in local mode; whatever RADIUS returns otherwise |
Multi-device accounts; a CPE swap keeps the customer |
plan_name and its eight policer settings together |
What was sold sits beside what was programmed | One rate per direction, in config or a RADIUS attribute | A tier change is a one-field write, not a commit |
| 12 band counters per session | Usage split by conformance colour | Four totals on the netdev; drops only in qdisc statistics | Conformance billing, burst billing and upsell signals |
| Counters belong to the session, not the policer | A re-rate or a VPP restart leaves the full usage picture continuous | Totals survive a CoA; drop counts do not, because the qdiscs are re-installed | Cycle-to-date usage, drops included, stays right through a plan change |
| 64-bit end to end | No 32-bit wrap, no gigawords arithmetic | 64-bit in the kernel; 32-bit + gigawords on the RADIUS wire | Multi-terabyte subscribers bill correctly |
acct_session_id as idempotency key |
At-least-once delivery is safe | Acct-Session-Id on RADIUS; durability is the server's job |
Billing can retry a failed drain without double-counting |
| A boot generation on every record | The reboot generation is visible | accel-ppp can send Accounting-On; reconciliation is up to the server | Sessions a restart orphaned are sealed, not silently lost |
Per-session interim_interval |
Accounting cadence is a per-subscriber decision | Per session via RADIUS; no accounting at all in local mode |
Sample a business account at 60 s and the residential base at 600 s |
A session state machine with a CAPTIVE state |
Non-payment is a state, not a disconnect | start · active · finish; no captive state |
Dunning and self-serve top-up without losing the session |
| Absolute deadlines on the record | Timers are data, not process state | Timers live in the daemon, and end with it | A control-plane restart rebuilds every deadline exactly |