Sub topic 2
Buying WAN Service: CE, PE, and the Demarcation Point
This chapter assumes you can read basic router configuration, understand IPv4 subnetting, and know the difference between static and dynamic routing. It explains who owns which device and cable when you buy a WAN service, and why that boundary matters when something breaks.
The service provider model
Most organizations do not build their own long-distance links. They buy a service from a service provider (SP), which owns the cables, switches, and core routers. You get connectivity and usually a service level agreement (SLA). The SLA states targets such as availability, latency, and time to repair.
Three terms describe the boundary between you and the provider:
- CE (customer edge) is the router at your site. You own it, configure it, and monitor it. In a managed service, the provider may own and configure it instead.
- PE (provider edge) is the provider's router that your CE connects to. The provider owns and configures it.
- P (provider core) routers sit inside the provider network and only connect to other provider routers. Customers never connect to them directly.
The demarcation point, or demarc, is the physical place where the provider's responsibility ends and yours begins. It is often a network interface unit (NIU) or a patch panel in a wiring closet. The provider is responsible for everything on its side. You are responsible for the CE, the cabling to the demarc, and the LAN.
Why the boundary matters
When a site goes down, you need to know which side of the demarc has the fault. If you can show that the CE and the cable to the demarc are healthy, the provider has to investigate. If the CE interface is down because of a bad cable on your side, a provider ticket wastes time.
A typical first check is the interface state on the CE:
- Check the physical state. If the interface is down/down, test the cable and the demarc.
- If the line is up but the protocol is down, suspect an encapsulation or addressing mismatch with the PE.
- If the interface is up/up but traffic fails, check routing between the CE and PE.
The CE-PE link
The link between CE and PE needs an IP address on each side, usually from a small subnet. The CE-PE link also decides how routes are exchanged:
| Method | How routes are learned | Typical use |
|---|---|---|
| Static route | You point a route at the PE address by hand | One site, one link, few prefixes |
| Dynamic IGP (OSPF, EIGRP) | The CE and PE exchange routes | Some providers, mainly for simple designs |
| eBGP | The CE peers with the PE using a different AS number | Most MPLS VPN services, multihoming |
For a leased line, the CE-PE link is often a /30 point-to-point subnet. The example below shows the CE side. The provider configures the other address, 192.0.2.2.
interface Serial0/0/0
description Leased line to branch
ip address 192.0.2.1 255.255.255.252
encapsulation ppp
no shutdownThe description line records which circuit this is. This helps when you open a ticket and the provider asks for the circuit ID.
Common mistakes
- Assuming the provider will fix a fault on the customer side of the demarc.
- Leaving the CE-PE link subnet undocumented, so nobody knows the PE address during an outage.
- Forgetting that a provider-managed CE limits what routing changes you can make yourself.
Exercise
A branch router shows its serial interface as "up, line protocol down". The cable to the demarc tests fine. Is this more likely to be a physical fault on your side of the demarc, or a mismatch with the PE, and why?
Show answer
A mismatch with the PE is more likely. "Up" means the physical layer is working, and the cable tests fine. "Line protocol down" means the Layer 2 exchange with the PE is failing, which often comes from a different encapsulation setting, such as PPP on one side and HDLC on the other, or from a fault on the provider side. Compare the encapsulation with the provider's settings and, if they match, open a ticket with the circuit ID.