← Interview Prep

ISP / Service-Provider Network Architecture

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.

The big picture — tiers end to end

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
TierJobTypical devicesRadius / scale
AccessPhysically terminate subscribers; authenticate, address and police them.OLT/GPON, DSLAM, BNG/BRAS, cell-site router, CMTSStreet cabinet / exchange; 1000s of subs per node.
Aggregation / MetroCollect many access nodes onto rings; hand off to the core.Aggregation routers, metro switchesCity / region; rings for resilience.
Core / BackboneMove labeled packets fast between metros; no per-customer state.P (provider) routers, DWDM/opticalNational / continental; 100G–800G links.
Edge / PEAttach customer services and connect to other networks.PE routers, peering/border routersPoPs, data centres, IXPs.

Access layer — where subscribers terminate

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 BNG/BRAS — the subscriber edge

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.

Fixed-access technologies

TechnologyMediumAccess nodeNotes
GPON / XGS-PONFibre (PON)OLT ↔ ONT/ONUPassive splitters share a fibre tree; 2.5/10G down. Dominant FTTH tech.
DSL (VDSL2/G.fast)Copper pairDSLAM / MSANLegacy; DSLAM backhauls to the BNG over Ethernet/MPLS.
DOCSISCoax (HFC)CMTS / CCAPCable operators; shared coax segment.
MobileRadioeNB/gNB ↔ cell-site routerRAN 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 / metro layer

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.

Core / backbone

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.

Why a "dumb core, smart edge"?

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.

Edge / PE — where services and the Internet attach

The Provider Edge (PE) is where the network earns money. Two distinct roles usually live at the edge, sometimes on separate routers:

Control plane — IGP, MPLS/SR, and BGP

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.

LayerProtocolWhat it provides
1. ReachabilityIGP — IS-IS (sometimes OSPF)Every router learns every loopback and the topology. Nothing else. Loopbacks are the anchors for everything above.
2. TransportMPLS: LDP or Segment RoutingLabel-switched paths between loopbacks so packets cross the core without core routers knowing BGP.
3. Reachability at scaleiBGP + Route ReflectorsDistribute Internet + service routes among edge routers without a full mesh.
4. ServicesMP-BGP (VPNv4/v6, EVPN, L2VPN)Carry per-VRF customer routes with route targets, tunnelled over the label transport.

IGP — IS-IS for loopback reachability

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.

MPLS transport — LDP vs Segment Routing

See Segment Routing Theory.

iBGP and Route Reflectors

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.

MP-BGP services

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.

ServiceBGP AFI/SAFIDelivers
L3VPNVPNv4 / VPNv6Per-customer routed VPN (RFC 4364) — each site in a VRF.
L2VPN (E-Line/E-LAN)L2VPN / EVPNPoint-to-point pseudowires or multipoint LAN across the WAN.
EVPNEVPN (25)MAC/IP learning in BGP; multihoming, all-active links; replaces VPLS.

Internet connectivity — peering, transit, and tiers

An SP reaches the rest of the Internet through two fundamentally different relationships:

TransitPeering
What you getReachability to the entire InternetReachability to that peer's customers only
MoneyYou pay the upstream (per Mbps / 95th percentile)Usually settlement-free (each carries own cost)
Routes advertisedUpstream sends you a full table; you send your customersEach sends only own + customer routes, never transit
WhereUpstream's borderIXP (public fabric) or PNI (private cross-connect)

ISP tiers

TierDefinitionBuys transit?
Tier 1Reaches the entire Internet purely through settlement-free peering — the "default-free zone" without buying anyone's transit.No
Tier 2Peers where it can but buys some transit to reach the whole Internet. Most national/regional ISPs.Yes (partial)
Tier 3Buys all its connectivity as transit; little or no peering.Yes (all)

BGP policy — the levers

Policy is how an SP steers money and traffic. The essential tools, in the order BGP evaluates them:

Hot-potato vs cold-potato routing

Services — what the SP actually sells

ServiceCustomerHow it's delivered
Consumer broadbandResidentialPPPoE/IPoE on the BNG, CGNAT for IPv4, DHCPv6-PD for IPv6, HQoS per sub.
Business L3VPNEnterprise multi-siteMPLS L3VPN (VPNv4/v6) — SP routes between the customer's sites in a VRF.
Business L2VPNEnterprise / DC interconnectE-Line pseudowire or E-LAN via EVPN — customer runs their own L3.
Mobile backhaulOwn/other mobile coreCell-site router into the metro/MPLS; strict timing (PTP/SyncE) and low latency.
Wholesale / transitOther ISPsSell IP transit or bitstream/L2 access to smaller providers.

Scale & resilience

Carrier networks are engineered for "five nines" and for graceful behaviour under failure. The recurring themes:

Fast convergence & load-sharing

Control-plane scaling

Address exhaustion & security

Observability

Likely follow-up questions

Related: IS-IS Theory · Segment Routing Theory · MP-BGP Theory.