How a carrier network is built end to end — access, aggregation, core and edge — and the MPLS/BGP control plane that ties subscribers to the global Internet.
A service-provider network exists to do one thing at massive scale: take a packet from a subscriber and deliver it to anywhere on the Internet (and back), while keeping thousands of customers isolated, billed, and inside their SLA. Almost every SP interview question maps onto one of two planes, so keep them apart:
The forwarding plane is a hierarchy of tiers — access, aggregation, core, edge — each with a different job, speed and radius. The control plane is a small, stable stack: an IGP (IS-IS) for loopback reachability, MPLS/SR for label transport, and BGP (iBGP with route reflectors + MP-BGP) for both Internet routes and VPN services. The core stays dumb and fast; all intelligence lives at the edge.
Read left to right: a subscriber's traffic climbs the hierarchy, is aggregated with thousands of others, crosses a fast dumb core, and exits at the edge toward peers, transit and other customers.
SUBSCRIBER / ACCESS AGGREGATION / CORE / EDGE /
CPE METRO BACKBONE PEERING
┌────────┐ ┌───────────┐ ┌───────────┐ ┌──────────┐ ┌────────────┐
│ Home │ │ OLT/GPON │ │ Metro │ │ │ │ PE router │──▶ L3VPN/L2VPN
│ router │───▶│ DSLAM │───────▶│ ring │───▶│ P │────▶│ │ customers
│ (RG) │ │ (L2 back- │ │ (EVPN/ │ │ routers │ │ │
└────────┘ │ haul) │ │ VPLS) │ │ │ │ ┌────────┐ │
┌────────┐ └───────────┘ └───────────┘ │ MPLS │ │ │ Peering│ │──▶ IXP / private
│ Business│ ┌───────────┐ ┌───────────┐ │ core │ │ │ router │ │ peers (settlement-free)
│ CPE │──▶│ BNG / │───────▶│ Agg │───▶│ over │────▶│ └────────┘ │
└────────┘ │ BRAS │ │ router │ │ DWDM │ │ ┌────────┐ │
┌────────┐ │(PPPoE/IPoE│ │ (L3, ECMP)│ │ │ │ │ Transit│ │──▶ Upstream / Tier-1
│ Mobile │ │ subscr. │ └───────────┘ │ │ │ │ router │ │ (paid) ──▶ INTERNET
│ eNB/gNB│──▶ │ mgmt,QoS)│ └──────────┘ │ └────────┘ │
└────────┘ └───────────┘ └────────────┘
L2/L3 CPE Subscriber Metro transport P = "provider" PE = "provider
termination (label switching) label-switch edge" — services
+ policy + service edge core only live here
| Tier | Job | Typical devices | Radius / scale |
|---|---|---|---|
| Access | Physically terminate subscribers; authenticate, address and police them. | OLT/GPON, DSLAM, BNG/BRAS, cell-site router, CMTS | Street cabinet / exchange; 1000s of subs per node. |
| Aggregation / Metro | Collect many access nodes onto rings; hand off to the core. | Aggregation routers, metro switches | City / region; rings for resilience. |
| Core / Backbone | Move labeled packets fast between metros; no per-customer state. | P (provider) routers, DWDM/optical | National / continental; 100G–800G links. |
| Edge / PE | Attach customer services and connect to other networks. | PE routers, peering/border routers | PoPs, data centres, IXPs. |
The access layer is the messiest and most operationally intense tier: it faces physical media (fibre, copper, coax, radio) and must turn an anonymous port into an authenticated, addressed, rate-limited subscriber session.
The Broadband Network Gateway (BNG, formerly BRAS) is the single most important box in consumer broadband. It is the first IP hop for the subscriber and the point of policy enforcement.
PPPoE (a PPP session over Ethernet — explicit
login, per-session state) or IPoE (DHCP-based, no PPP — simpler, common in modern fibre).| Technology | Medium | Access node | Notes |
|---|---|---|---|
| GPON / XGS-PON | Fibre (PON) | OLT ↔ ONT/ONU | Passive splitters share a fibre tree; 2.5/10G down. Dominant FTTH tech. |
| DSL (VDSL2/G.fast) | Copper pair | DSLAM / MSAN | Legacy; DSLAM backhauls to the BNG over Ethernet/MPLS. |
| DOCSIS | Coax (HFC) | CMTS / CCAP | Cable operators; shared coax segment. |
| Mobile | Radio | eNB/gNB ↔ cell-site router | RAN backhaul into the SP; UPF/EPC handles the mobile core. |
The access node's job below the BNG is usually L2 backhaul: carry each subscriber's frames
(often VLAN-per-service or Q-in-Q, S-VLAN/C-VLAN) up to the BNG where the IP session terminates.
Aggregation collects dozens of access nodes and funnels them toward a handful of core PoPs. Because a fibre cut anywhere must not black-hole a whole town, the metro is usually built as rings with sub-50 ms protection.
ERPS (G.8032) or, increasingly,
EVPN/VPLS to emulate a multipoint LAN across the ring while avoiding classic spanning-tree.ECMP load-sharing, and fast reroute everywhere.The core exists to move packets between metros as fast and as cheaply-per-bit as possible. Its defining property is that it holds no per-customer state — it only label-switches.
Scaling. The Internet routing table and all VPN/customer state live only on PE routers, which are far fewer per-flow than the traffic they aggregate. Core P routers forward on a tiny label FIB at line rate. This separation is the entire reason MPLS won in carriers: customer complexity is pushed to the edge and hidden from the core behind a label.
The Provider Edge (PE) is where the network earns money. Two distinct roles usually live at the edge, sometimes on separate routers:
VRFs for
L3VPN, the bridge domains for L2VPN/EVPN, and the residential subscriber routes. This is where MP-BGP
service routes originate.The SP control plane is a deliberately small, layered stack. Each layer solves exactly one problem, and the layers compose. This is the section interviewers probe hardest.
| Layer | Protocol | What it provides |
|---|---|---|
| 1. Reachability | IGP — IS-IS (sometimes OSPF) | Every router learns every loopback and the topology. Nothing else. Loopbacks are the anchors for everything above. |
| 2. Transport | MPLS: LDP or Segment Routing | Label-switched paths between loopbacks so packets cross the core without core routers knowing BGP. |
| 3. Reachability at scale | iBGP + Route Reflectors | Distribute Internet + service routes among edge routers without a full mesh. |
| 4. Services | MP-BGP (VPNv4/v6, EVPN, L2VPN) | Carry per-VRF customer routes with route targets, tunnelled over the label transport. |
Carriers overwhelmingly run IS-IS in the core. It runs directly on L2 (not inside IP, so it's harder to attack), scales to large single areas, is address-family agnostic (IPv4 + IPv6 in one instance), and carries the traffic-engineering / SR extensions cleanly. The IGP's only job here is to make every loopback reachable and to feed the SPF topology that MPLS/SR builds paths on — customer routes never touch the IGP. See IS-IS Theory.
iBGP requires a full mesh (iBGP learned routes aren't re-advertised to other iBGP peers to
prevent loops). In a network with hundreds of PEs, a full mesh is n(n-1)/2 sessions — unmanageable.
Route Reflectors (RRs) solve this: PEs peer only with a pair of RRs, which re-reflect routes.
Practical patterns:
See MP-BGP Theory.
Multiprotocol BGP carries the service routes on top of the label transport. Each VRF's routes are tagged with route targets (RTs) that control import/export between sites, and a route distinguisher (RD) makes overlapping customer prefixes unique on the wire.
| Service | BGP AFI/SAFI | Delivers |
|---|---|---|
| L3VPN | VPNv4 / VPNv6 | Per-customer routed VPN (RFC 4364) — each site in a VRF. |
| L2VPN (E-Line/E-LAN) | L2VPN / EVPN | Point-to-point pseudowires or multipoint LAN across the WAN. |
| EVPN | EVPN (25) | MAC/IP learning in BGP; multihoming, all-active links; replaces VPLS. |
An SP reaches the rest of the Internet through two fundamentally different relationships:
| Transit | Peering | |
|---|---|---|
| What you get | Reachability to the entire Internet | Reachability to that peer's customers only |
| Money | You pay the upstream (per Mbps / 95th percentile) | Usually settlement-free (each carries own cost) |
| Routes advertised | Upstream sends you a full table; you send your customers | Each sends only own + customer routes, never transit |
| Where | Upstream's border | IXP (public fabric) or PNI (private cross-connect) |
| Tier | Definition | Buys transit? |
|---|---|---|
| Tier 1 | Reaches the entire Internet purely through settlement-free peering — the "default-free zone" without buying anyone's transit. | No |
| Tier 2 | Peers where it can but buys some transit to reach the whole Internet. Most national/regional ISPs. | Yes (partial) |
| Tier 3 | Buys all its connectivity as transit; little or no peering. | Yes (all) |
Policy is how an SP steers money and traffic. The essential tools, in the order BGP evaluates them:
65000:100) used to trigger policy —
"prepend for me", "don't export to peers", geo/relationship tagging. The glue of scalable SP policy.| Service | Customer | How it's delivered |
|---|---|---|
| Consumer broadband | Residential | PPPoE/IPoE on the BNG, CGNAT for IPv4, DHCPv6-PD for IPv6, HQoS per sub. |
| Business L3VPN | Enterprise multi-site | MPLS L3VPN (VPNv4/v6) — SP routes between the customer's sites in a VRF. |
| Business L2VPN | Enterprise / DC interconnect | E-Line pseudowire or E-LAN via EVPN — customer runs their own L3. |
| Mobile backhaul | Own/other mobile core | Cell-site router into the metro/MPLS; strict timing (PTP/SyncE) and low latency. |
| Wholesale / transit | Other ISPs | Sell IP transit or bitstream/L2 access to smaller providers. |
Carrier networks are engineered for "five nines" and for graceful behaviour under failure. The recurring themes:
100.64.0.0/10 space): shares scarce
public IPv4 across many subscribers. Adds state, logging obligations, and breaks some inbound apps — a key
driver for IPv6 deployment.