Technical Architecture & Protocol Mechanics

How W3C Network Error Logging Works

Browser-native network observability operating inside client socket engines. Understand pre-render failure capture, protocol RFC invariants, and eyeball transit triangulation.

Protocol Architecture

The "Pre-JS" Blind Spot vs Browser-Native W3C NEL

Why traditional JavaScript APMs have a 100% blind spot for pre-render network drops, and how browser-native Network Error Logging captures socket-level failures without client-side code.

Traditional Monitoring: The "Pre-JS" Blind Spot

Client-Side JS SDK

JavaScript APMs (Datadog, Sentry, New Relic) require the browser to download HTML, parse <script> tags, and initialize the JS engine. When authoritative DNS fails, TLS handshakes abort, or CDNs return initial 502/504 errors, no JavaScript ever loads or executes. Synthetic monitors only test from cloud datacenters, leaving real-world end-user failures completely invisible.

✕dns.name_not_resolved
→ Browser cannot resolve IP (0 incidents logged)
✕tcp.timed_out
→ Socket never connects (0 incidents logged)
✕tls.cert.date_invalid
→ Browser security block screen (0 JS runs)
✕http 502 Bad Gateway
→ Initial HTML fails to load (0 JS runs)

W3C NEL: Native Browser Socket Telemetry

0KB JavaScript Footprint

W3C Network Error Logging operates inside the browser user agent's native C++ socket stack. Once cached via response headers, any subsequent network failure across DNS, TCP, TLS, or HTTP is buffered in browser memory and dispatched out-of-band to NELSink asynchronously with zero JavaScript execution.

✓dns.name_not_resolved
→ Native stack buffers & dispatches out-of-band
✓tcp.timed_out
→ Records SYN drop with target IP & latency stats
✓tls.cert.date_invalid
→ Reports expired cert, cipher suite & SAN mismatch
✓Zero Client Overhead
→ 0KB bundle, 0 CPU cycles, 0 INP/LCP degradation
Native Browser Lifecycle

The 4-Step Network Error Logging Lifecycle

Standardized in W3C NEL and Reporting API specifications, error telemetry runs out-of-band directly within Chromium, Firefox, and Safari engines.

STEP 01HTTP Headers

Policy Advertisement

Origin servers or edge CDNs inject standard NEL and Reporting-Endpoints headers on HTTPS responses, defining collector endpoints and reporting ratios.

STEP 02Client Cache

User-Agent Storage

The browser stores the domain policy in local memory for the duration specified by max_age, surviving navigation across sessions and application restarts.

STEP 03Socket Engine

Native Socket Capture

When any request encounters DNS timeout, TCP connection reset, or TLS certificate failure, the browser socket stack captures error codes before HTML parsing or JavaScript execution begins.

STEP 04Out-of-Band

Async Ingestion Dispatch

The browser queues reports in memory and delivers them out-of-band via application/reports+json POST requests to NELSink collector endpoints with zero impact on page load speed.

Layer Invariants & SRE Triage

4-Phase Failure Taxonomy & Remediation Playbooks

Every failure maps to a strict network layer: DNS, TCP, TLS, or HTTP. Physical invariants guarantee data fidelity, isolating origin incidents from transit anomalies.

4-Phase Failure Taxonomy

Network Failure Phases & Operational Playbooks

W3C NEL partitions connection failures into 4 orthogonal layers. Explore error codes, physical invariants, and triage playbooks for each layer.

DNS Resolution

Evaluates name resolution latency and failure prior to socket connection initiation. A DNS failure is a complete reachability blackout.

phase: dns
W3C Error Codes
dns.name_not_resolved
dns.timed_out
dns.unreachable
dns.failed
Physical Invariants
  • •server_ip must be empty (no IP was resolved)
  • •status_code must be 0 (no HTTP exchange occurred)
  • •protocol is not negotiated
Real-World Triggers
  • !Authoritative nameserver DDoS or anycast BGP blackholing
  • !DNSSEC validation failure (expired RRSIG, broken DS record chain)
  • !Missing apex domain A/AAAA records or broken CNAME chains
  • !Regional consumer ISP recursive resolver cache poisoning
Operational Triage Playbook
  1. 1Trace delegation chain with 'dig +trace example.com' to isolate nameserver latency
  2. 2Validate DNSSEC chain signatures at the TLD parent registrar
  3. 3Verify redundant anycast prefixes across multiple upstream transit providers
Transit Corroboration

Eyeball Autonomous System Triangulation

Distinguish last-mile ISP fiber cuts from global origin reachability incidents before initiating emergency rollbacks.

Eyeball ASN Triangulation: Origin Outages vs Last-Mile Peering Flaps

Why client Autonomous System Numbers (ASNs) eliminate false on-call emergency rollbacks.

Last-Mile Transit / ISP Degradation

When 90%+ of failures are concentrated in a single ASN (e.g., AS7922 Comcast or AS7018 AT&T) while other eyeball carriers show normal connectivity, origin servers are healthy. The cause is an external consumer ISP fiber cut, regional IXP congestion, or resolver outage.

→ Action: Do not roll back origin code. Post status update for affected carrier subscribers.
Global Origin / Ingress Outage

When failures are distributed uniformly across dozens of diverse ASNs globally (Comcast, Deutsche Telekom, Cloudflare, SoftBank, etc.), the issue is on your edge or origin infrastructure (e.g. expired TLS cert, Anycast BGP drop, or backend crash).

→ Action: Page infrastructure on-call immediately for emergency origin rollback.
Anti-Poisoning & Signal Verification

Report Authenticity & Confidence Classification

Automated multi-carrier corroboration, authoritative routing verification, and protocol invariant validation isolate uncorroborated bursts from genuine outages.

Multi-Factor Report Authenticity & Signal Verification

Protecting operational visibility from anomalous signals, uncorroborated bursts, and synthetic noise.

Pillar 1Autonomous Network Validation
Multi-Carrier Corroboration

Validates that detected reachability anomalies are observed across multiple independent eyeball networks and transit backbones, distinguishing true edge incidents from localized ISP degradation.

Pillar 2Routing Verification
Infrastructure Alignment

Cross-references client-reported destination IP addresses against authoritative DNS routing for the domain, automatically identifying routing anomalies and unroutable addresses.

Pillar 3Transport Verification
Protocol Invariant Validation

Applies automated protocol validation across DNS, TCP/QUIC, TLS, and HTTP phases, isolating contradictions and out-of-order state transitions before telemetry ingestion.

Ready to Inspect Real-World Failure Telemetry?

Explore live error scenarios across DNS, TCP, TLS, and HTTP phases in our interactive console demo, or speak with our systems engineering team.