
A core router is a BGP speaker, a policy engine, an MPLS label swapper and a traffic accountant at once. Every one of those roles is a place where a software defect becomes a network event.
The full table
The first job is to know every prefix on the Internet. A provider-edge router receives the global BGP table from its upstreams and peers, applies import policy, selects a best path per prefix, and advertises a filtered view onward. On a large edge that is around a million IPv4 prefixes and a growing IPv6 table, each with attributes, communities and an AS path.
Holding the table is not the hard part. The hard part is convergence: when a peer withdraws ten thousand prefixes, the router must recompute, re-advertise and do it without dropping packets or exhausting memory. Every optimisation in that path — suppression, dampening, update groups, ORF — is also a place where a stale record can outlive the event that created it.
Policy
BGP without policy is just a rumour protocol. IOS XR expresses policy in RPL — the Routing Policy Language — as route-policies and sets:
prefix-set CUSTOMER-PREFIXES
203.0.113.0/24 le 24,
198.51.100.0/24 le 24
end-set
route-policy PEER-IN
if destination in CUSTOMER-PREFIXES and as-path-length 10 ge then
drop
elseif community matches-any NO-EXPORT then
drop
else
pass
endif
end-policy
Policy decides which prefixes enter the table, which leave, and which get a local preference that bends traffic toward a chosen exit. It is the most consequential configuration on the device, and it is plain text that a privileged user can rewrite in seconds.
MPLS and services
Below BGP sits the transport. IOS XR routers push and swap MPLS labels, terminate L3VPN and EVPN, run segment routing over an IGP, and increasingly act as broadband network gateways for subscriber sessions. Each service adds state: label bindings, pseudowires, subscriber sessions, QoS queues. Each piece of state is allocated, referenced and freed — the exact lifecycle that CWE-664 describes when it goes wrong.
The operational jobs
A core router also does the unglamorous work that keeps a network honest:
- Route reflection. One device re-advertising routes between hundreds of iBGP clients, so the clients do not need a full mesh.
- Flow and interface accounting. NetFlow/IPFIX export, counters, telemetry.
- Timing. SyncE and PTP for mobile backhaul.
- Protection. BFD, fast reroute, TI-LFA, and graceful restart so a failure is measured in milliseconds rather than minutes.
NX-OS is a different job
NX-OS runs the data centre: VXLAN EVPN fabrics, vPC pairs, ACI underlay and the campus core. The control plane is still BGP and OSPF, but the failure domain is smaller and the change cadence is faster. A Nexus bug is usually a tenant outage or a fabric rebuild; an IOS XR bug is a carrier event.
Why the surface is so large
Every role above is implemented in the same closed image and configured through the same CLI. A defect in the access-control layer can reach the policy engine. A defect in a resource lifetime can reach BGP. A defect in an arithmetic path can reach the forwarding queue.
That is the honest way to read a hardening release with three CWE families in it: the product does many things, and a mature internal audit of a large C codebase will find something in each layer. The next part compares the platform with the alternatives operators actually consider.

Next: Part 4 — what you trade for a single vendor: Junos, EOS, SR OS and FRR, compared honestly.

Comments (0)