Skip to content
Blog

How we know a service is down, and whose fault it is

Nick Pratley

Anyone who has reported an nbn fault knows how it goes. The customer notices first and rings. A script asks them to restart the router. A ticket joins a queue, someone runs nbn's automated check, it says the service is up, and the fault waits for the customer to prove it again.

The ISP had the other end of that connection the whole time. Its BNG knew the session had ended, and roughly when. Nobody was listening.

Since 8 November, we've watched for that moment on every service whose session ends on our network. When a session ends and doesn't come back, we know within about 8 minutes on IPoE and 4 on PPPoE. We check it against known outages, ask nbn's tests what they see, and decide whose it is: the premises, nbn, our wholesale provider or us. The account hears by API, webhook and email, and the totals are public on status.underlay.au.

This is how it works, and what it got wrong the first time we tested it on a real service.

Three signals

RADIUS accounting. Every service on our BNG is a RADIUS session, and when one ends the BNG sends an Accounting Stop with a cause. Our RADIUS server writes a down signal for the service in the same write as the session's row, so a Stop can't be recorded without one. A Start writes an up. Only sessions that carry a service count: IPoE and PPPoE subscribers that were actually up, not the dynamic VLAN session each one runs on, DHCPv6 children or refused logins.

The BNG's own subscriber list. A Stop can go missing: if our RADIUS server can't take it, the BNG retries for a few seconds and gives up. So every 2 minutes a reconciler logs in to the BNG on a login that can only run show commands, reads its DHCP and PPPoE subscriber tables over NETCONF, and compares them with the sessions we hold open:

  • A session we hold open that's missing from the list two polls running gets a Stop of our own, dated to the first poll that missed it.
  • A session we closed that the list still has is reopened, and any outage its close started is cancelled.
  • A subscriber we have no session for (its Start went missing) brings its service back.
  • A read that fails, times out, returns an error or stops short fails whole. A partial list never makes a session missing.

The same check stands between a mass closure and an outage. An Accounting-On usually means the BNG restarted and every session on it is gone, but ours also sends one on some configuration changes, with every session still up. So when one arrives, that BNG's sessions close as one mass closure, and nothing opens until the reconciler has read the router. What it still has is reopened. Only the rest become outages, under one incident. Testing for 100,000 services shows the detector and the reconciler holding up when every service on every BNG drops at once.

Our wholesale provider's outage notices. It has no push, so we poll: its national list every 5 minutes, open records that touch our services for their updates, every service's own list every 6 hours, and a service's own list straight away when it goes down. It all comes out of one budget shared by every copy of our API. The provider allows 10 outage reads a minute, and we use at most 8.

A record matches a service when the provider lists the service or its POI. A match by area alone never tells anyone their service is down until the service's own session says so. And we never pass the provider's text on. Titles and updates are ours, written from codes, such as "Outage · nbn · FTTN · NSW" and "Expected back 6:00pm", and a fault in the provider's own network is "Upstream network", never nbn.

Stopevery 2 minlost StopsoutagenoyesOur BNGRADIUS server:a down signalwith the sessionReconciler:the BNG's ownsubscriber listDetector3 min graceWholesaleprovider'snotices, polledCovered? Plannedwork, a knownoutage, a clusternbn tests,then rulesVerdict: account,status page
The bold path is a service going down: the BNG's Stop, a signal written with the session, 3 minutes of grace, a check for anything that already explains it, then nbn's tests and our rules. The reconciler catches Stops that never arrive.

A dead router is quiet

PPPoE has keepalives built in. Our BNG sends an LCP echo every 10 seconds, and a router that misses 3 is gone, so a dead PPPoE router is found 30 to 40 seconds after it dies.

IPoE has nothing like that. A router that loses power just goes quiet, and DHCP won't notice until its lease runs out. So the BNG checks for itself, with ARP. Ours is a Juniper MX204, and every routing instance with IPoE subscribers has this:

[edit routing-instances <instance> system services dhcp-local-server dual-stack-group <group>]
liveness-detection method layer2-liveness-detection transmit-interval 300
liveness-detection method layer2-liveness-detection max-consecutive-retries 3
liveness-detection failure-action clear-binding

Nothing we read said how late that makes a Stop, so on 8 November I measured it. On a fibre service at my house, I shut the port on my router that faces the NTD, twice:

FirstSecond
Port shut4:06:07 am6:02:58 am
Stop from the BNG4:11:20 am6:08:17 am
Late by313 s319 s

If the BNG probed on a fixed 300-second clock, a router could die anywhere in it, and Stops would come anywhere from about 13 to 315 seconds late. Both of ours came at the top, 6 seconds apart. The BNG probes a router once it has heard nothing from it for 300 seconds, then clears it after 3 unanswered retries. A router in use when it dies is found about 315 seconds late, every time. One already idle can be found sooner.

That's where an outage's start time comes from. For a Stop from a liveness failure, we put the death 315 seconds before it, and no earlier than 330 or later than 10 seconds before. The account and our staff see the estimate. Public availability counts from the earliest bound, so an estimate can't flatter us.

We had it wrong twice before that. The first model put a death 350 to 650 seconds before the Stop: it said my first unplug happened at 4:03, and even its latest possible time was 37 seconds before I touched the port. The second took the middle of the 300-second cycle, and said 6:05 for the second unplug, at 6:02. At 315 seconds, both estimates are within 4 seconds of the truth.

NAS-Request means two things

Every Stop carries a cause, Acct-Terminate-Cause. You'd hope a router dying reads as Lost-Carrier. It doesn't.

On 7 November the power went out at my house. At 8:47:29 am the BNG ended my service's session with NAS-Request, and the dynamic VLAN session it ran on with Admin-Reset. Neither said Lost-Carrier.

The BNG's terminate codes for DHCP subscribers explain it. There are five:

DHCP reason on the BNGAcct-Terminate-Cause
client-request1, User-Request
lost-carrier2, Lost-Carrier
no-offers4, Idle-Timeout
nas-logout10, NAS-Request
nak15, Service-Unavailable

None is for a liveness failure, so one goes out as nas-logout: NAS-Request, the cause the BNG also sends when we end a session ourselves with a RADIUS Disconnect. The cause alone can't tell "the router died" from "we hung up on it".

So the software does. Every Disconnect we send is logged against the session's Acct-Session-Id, and a Stop with one of ours logged in the 10 seconds before it is ours. The VLAN's Admin-Reset isn't anyone's doing either: the BNG removes a VLAN once no subscriber is left on it, so detection reads the subscriber session alone.

PPPoE can be fixed on the BNG. Since 8 November, a keepalive failure reports Lost-Carrier:

set access terminate-code ppp lcp keepalive-failure radius 2

There's no equivalent for DHCP, so on IPoE the join to our own log stays. Together, a Stop reads like this:

The StopIt meansDown from
Any cause, with our Disconnect logged just beforeWe ended itThe Stop
User-RequestThe router hung upThe Stop
Admin-Reset on the subscriberSomeone cleared it on the BNGThe Stop
IPoE, NAS-Request, nothing of ours loggedThe router went quietAbout 315 s before the Stop
PPPoE, Lost-CarrierKeepalives failedAbout 35 s before the Stop

Down means 3 minutes without a session

A Stop isn't an outage. Routers reboot, and we reconnect sessions ourselves to apply some changes. A service is down when its session has ended and no new IPoE or PPPoE session has started 3 minutes later. A new one inside those 3 minutes, and nothing opens.

  • A Stop while the service has another session up, such as a router swap or a second DHCP client, isn't a drop.
  • A service that's cancelled, suspended or not yet connected never opens an outage.
  • The first new session brings it back, and the outage closes after 15 minutes stable. A drop inside those 15 minutes is the same outage again.
  • 3 Stops in an hour, or 6 in a day, counting ones absorbed by the grace period, make one outage marked flapping, not one per drop.
Stopnew session3 min, nonew sessionnew session15 minstableStop: sameoutage againUpSuspecta Stop, in3 min graceDownan outageRecoveringa new session,not yet 15 min
The bold path is an outage: a Stop, 3 minutes with no new session, then a new session that stays up for 15 minutes.

For a dead IPoE router, that's about 8 minutes from the moment it dies to an open outage: 315 seconds for the BNG to notice, then 3 minutes of grace. It's the 8 minutes in how we fixed our support desk, between shutting my router's WAN port and a conversation opening on my service.

Is it just this service?

Before anyone is bothered, each new outage is checked, in order, for something that already explains it:

  1. Planned work by nbn, our wholesale provider or us, from 15 minutes before its window to 30 minutes after.
  2. An outage we already know about, theirs or ours, that matches the service.
  3. A cluster of services that dropped with it.
  4. The service's own outage list at the provider, read once, straight away.

A match covers the outage. It's attached to that event, it isn't tested, and what the account hears names the event.

A cluster is drops within 10 minutes that share something: the BNG, the NNI and S-VLAN, the POI, the CSA, the state, or delivery through our CGNAT. It takes at least 3, or 5% of the active services on that key if that's more. It becomes an incident on the status page straight away, cause unknown, and only 2 of its services are tested, so a POI going dark doesn't spend a hundred nbn tests on one answer. The provider's notice, when it comes, gives the incident its cause. Two drops on one key go to staff even below the threshold, and a service whose own test puts the fault at the premises leaves the cluster.

What's wrong, and whose it is

An outage nothing covers gets nbn's tests, straight after the account has been told it's down. Service Health first, on every technology, then the tests for its access that don't drop the service:

TechnologyAfter Service Health
FTTPNTD Status, then UNI-D Status
HFCNTD Status
FTTCDPU Port Status, then DPU Status
FTTN, FTTBCopper sync state
Fixed wireless, satelliteNothing more

A test that drops the service never runs automatically; that needs the customer to press Confirm. Automatic tests run one at a time across our network.

Then rules decide, first match wins:

EvidenceWhat we say
Planned work covers itPlanned work
A known outage or a cluster covers itThat outage
Our own Disconnect, or a clear on the BNGFault in our network
The router keeps asking to log in, and we refuse it or don't answerFault in our network
A critical alert on one of our systems it uses, or a change of ours to its routing in the last 30 minutesFault in our network
Service Health says down, with an nbn outage, red optics or no syncFault in nbn's network
The NTD is down, and nbn is otherwise greennbn box not responding
No carrier on the UNI-D with the NTD up (FTTP), or no sync with nbn green (FTTN, FTTB)Router not connected to the nbn box
Everything green, still no sessionCause not found yet

Each comes with a next step in the same plain words, such as "Check the nbn box has power". A router still asking to log in proves the router and nbn's path work, so that one is ours.

An escalated outage goes to the top of our staff's queue with its evidence: anything that's ours or nbn's, a business service down, anything down over an hour, a service that keeps dropping, several dropping together. A premises verdict never escalates; the message tells the customer what to check.

Our wholesale provider has no API for faults, so lodging with nbn stays with a person, from a panel the outage page fills in: the fault type, the Service Health test's id that every ticket needs, the other tests, a description from the evidence and the contact.

The first test blamed us

The first time I shut my router's port, the tests were right and the verdict was wrong. Within 3 minutes of the outage opening, nbn had answered all three:

Service Health   Green    Service Online - No CPE Detected (UNI-D)
                          service state Up, NTD port UNI-D3 Down, no current outage
NTD Status       Passed   operational state UP
UNI-D Status     Failed   port 3 DOWN, No Carrier detected

That's an unplugged router, as plainly as nbn can say it. Service Health's condition is Green and the service state Up; only its connectivity light is amber. Its advice says a fault ticket "will most likely result in No Fault Found", and it's right: there's nothing for nbn to fix. What matters is which port, and that it's dark.

The verdict should have been "Router not connected to the nbn box". It was "Fault in our network", escalated, and the email to me said so. Between 15 and 25 minutes earlier, I'd committed a change on the BNG: the show-only login the reconciler uses. The rules saw a commit inside 30 minutes, couldn't tell what it touched, and blamed it.

Two rules changed that morning:

  • A test beats a commit's timing. A finished test reading the customer's own port is direct evidence. A commit nearby is circumstantial.
  • A change typed on the BNG counts only with company. Its scope is unknown, so it counts only when several services on that BNG drop together. One service dropping alone is its own fault far more often.

Every verdict names the version of the rules that made it, and these made it 2026-11-08.1.

A staff re-check hours later blamed us again. It read evidence up to the re-check, not the outage's end, and found a PPPoE login my router had sent long after: it sends one whenever its port comes up, though the service runs on IPoE. RADIUS accepted it and no session followed, which is what the BNG refusing a session looks like. An ended outage's evidence now stops when it ended.

What the account hears

The account hears before any test runs: a service.down webhook the moment grace ends, then service.test.completed, service.outage.updated as the verdict changes, service.up and service.outage.resolved, each with our verdict. The business API has the same outages. A business using its own services also gets an email, and a support conversation it can carry on by text: how we fixed our support desk covers that part.

status.underlay.au

What isn't one customer's business is on status.underlay.au.

The top of status.underlay.au on 23 November: 100% online, 99.96% availability and 1.66% premises-side over 30 days, 0% offline for every cause, and the first of our 7 systems.
The top of status.underlay.au on 23 November: 100% online, 99.96% availability and 1.66% premises-side over 30 days, 0% offline for every cause, and the first of our 7 systems.
  • Online now: the share of services with a session up, and the offline share by cause: premises, nbn, upstream network, our network, planned work, unknown.
  • Availability over 30 days, from service-minutes, counted from each outage's earliest possible start. Premises-side minutes sit beside it, not in it: a router switched off at someone's house isn't network downtime, and it isn't hidden either.
  • Systems: our 7, from the core network and BNG to billing, with 90 days of uptime from the alerts that fire on them, not a state someone typed in. The portals and API are also probed every minute from inside our network, and the page says so.
  • Incidents and planned work: ours, and the nbn and provider events that touch our services, each with a page and a timeline, corrections marked.
  • By state and POI: online now and 30-day availability, and each day's share of services with an outage, by cause.

It shows percentages, never counts. A POI with fewer than 20 active services counts only in its state, and a state with fewer than 20 only nationally. Every percentage is cut down, never rounded up, so online reads 100% only when every service is.

The page is a small Node service on our own Kubernetes cluster, not a hosted status product. Underlay's API pushes it a snapshot within 5 seconds of a change, and every 60 seconds regardless. If the snapshot is over 3 minutes old, the page says when it was last updated and shows "No data" for what it can't measure itself, never a green it can't vouch for. A break-glass token lets us post an incident straight to it if our API is down. If the cluster is down, so is the page; it's built to move off the cluster without a rewrite.

What it doesn't catch

  • Slow isn't down. A service that's up but losing packets or crawling isn't an outage here. Latency monitoring covers that, from both our edges.
  • Layer 2 services. Their sessions end on your BNG, not ours, so we can't see them drop. nbn's and the provider's outages still match them and reach you.
  • Blips. An nbn drop that's over before liveness fails never reaches RADIUS, so it never becomes an outage.
  • NTD power-off is inferred. Router-off is a real capture now. The NTD-down reading still comes from nbn's indicator rules until we capture one.

If you run your own BNG

Most of this works on any BNG:

  • Read your terminate codes (show network-access aaa terminate-code dhcp detail on Junos). If a liveness failure reads as NAS-Request, join your own Disconnects to the Stops by Acct-Session-Id.
  • Time your liveness by shutting a router's port, and bound your outage start times from what you measure.
  • Reconcile against the BNG's subscriber table on a show-only login, and never act on a partial read.
  • Don't take Accounting-On at its word. Read the router before you call every session on it down.
  • Correlate before you ticket. One POI going dark is one incident, not a hundred tickets.

For the show-only login on Junos, deny-commands ".*" also refused the NETCONF session's own start, so our class is view-only with an allow list:

set system login class readonly permissions view
set system login class readonly allow-commands "(^show )|(^xml-mode netconf )"

All of it runs on every service whose session ends on our network, Business nbn and wholesale alike.

Get in touch

Send an enquiry, email or call. An engineer picks it up.