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 covers how an organization connects to a service provider, who owns each piece of the path, and where responsibility ends.
The service provider model
Most organizations do not build their own wide area links. They buy a service from a provider. The provider owns the cables, the optical gear, and the core routers. The customer owns the equipment at each site and the traffic that crosses the network.
Two ideas make this model work:
- The provider delivers a handoff at each customer site.
- The customer connects its own router to that handoff and runs its own network behind it.
The terms below name the pieces of this arrangement.
| Term | Full name | Owned by | Role |
|---|---|---|---|
| CE | Customer Edge | Customer | The router at the customer site that connects to the provider |
| PE | Provider Edge | Provider | The provider router that faces the customer |
| P | Provider (core) | Provider | Core router that forwards traffic between PEs and never faces customers directly |
| Demarc | Demarcation point | Boundary | The physical or logical point where provider responsibility ends and customer responsibility begins |
| Local loop | Last mile | Provider or carrier | The access circuit from the customer building to the provider's nearest point of presence |
A point of presence (POP) is a provider facility that houses PE routers and aggregates customer access circuits.
The CE router
The CE router is the customer's gateway to the WAN. It does several jobs:
- It terminates the access circuit with the correct interface type and encapsulation.
- It holds the customer's routing decisions, such as which prefixes to send into the WAN.
- It can apply policy, for example QoS marking, firewalling, or NAT.
The CE can be a router the customer buys and manages, or a router the provider supplies and manages. These are called customer-managed and provider-managed (or managed CE) services. Under a managed service the provider usually keeps the CE configuration. The customer then sees only the LAN side, and routing changes go through the provider's change process.
Customer-managed CE gives you more control and faster changes. Managed CE gives you one party to call when something breaks, but it limits what you can configure and often adds a monthly fee.
The PE router
The PE router sits at the edge of the provider network and is the first provider device that sees customer packets. Its role depends on the service:
- Leased line: the PE terminates a dedicated circuit. It is only the other end of a point-to-point link.
- MPLS Layer 3 VPN: the PE keeps a separate routing table for each customer and exchanges customer routes with the CE. Later chapters cover this in detail.
- Layer 2 services (such as Ethernet WAN): the PE carries Ethernet frames between sites without taking part in the customer's routing.
The service type decides who forms a routing relationship with whom. In a Layer 3 service, the CE and PE are routing neighbors. In a Layer 2 service, the CE routers at different sites are routing neighbors, and the provider is invisible to routing.
The demarcation point
The demarcation point, or demarc, is where the provider's responsibility ends. It is the answer to the question "whose problem is this?"
The demarc can take several forms:
- A physical jack or box installed by the provider, such as a smart jack for a T1 or an optical network terminal (ONT) for fiber.
- An Ethernet handoff port on a provider-owned device, often called a network interface device (NID) or customer premises equipment (CPE) owned by the provider.
- A logical boundary on a managed router, where the provider is responsible up to the LAN interface of its CE.
Everything on the provider side of the demarc is the provider's to fix. Everything on the customer side is yours. The wiring between the demarc and your CE is often the customer's responsibility. This is called the extended demarc when the provider's circuit is carried inside the building to a different room.
Why the demarc matters in troubleshooting
When a link goes down, the first job is to find which side of the demarc the fault is on. A provider will refuse to dispatch a technician until you can show the problem is on their side. Typical checks:
- Look at the interface state on the CE. A line that is down/down usually points at the circuit or the provider handoff.
- Check whether the provider's device shows link lights on its customer port.
- Use a loopback. The provider can loop the circuit at the demarc. If your CE sees its own packets come back, the fault is on the customer side. If not, it is between the demarc and the far end.
A smart jack supports this by letting the provider run a loopback test remotely, without sending someone to your building.
Addressing the handoff
The handoff between CE and PE is a small network of its own. For a point-to-point link, a /30 subnet gives two usable addresses, one for each end. A /31 is also common on modern equipment because it saves addresses.
interface Serial0/0/0
description Leased line to branch
ip address 192.0.2.1 255.255.255.252
encapsulation ppp
no shutdownIn this example the router uses 192.0.2.1 with a /30 mask. The other end of the link would use 192.0.2.2. The addresses 192.0.2.0 (network) and 192.0.2.3 (broadcast) are not assignable.
Who supplies the subnet depends on the service:
- Provider-assigned addressing is common for MPLS and managed services. The provider picks the link subnet from its own space.
- Customer-assigned addressing is more common on leased lines, where the customer treats the link as part of its own network.
If the provider assigns the subnet, make sure the range does not overlap with anything inside your network. Overlap is a common source of confusing routing problems.
Service level agreements
An SLA, or service level agreement, is the contract that defines what the provider promises. It usually states:
- Availability, for example 99.9% per month, which allows about 43 minutes of downtime in a 30-day month.
- Latency, jitter, and loss targets, often measured between PEs.
- Time to repair, the maximum time to restore service after a fault is reported.
Check where the SLA is measured. Many SLAs cover only the provider core, PE to PE. They do not cover the local loop or the CE. A fault in the access circuit may fall outside the guarantee, even though your site is still down.
Access circuit choices affect real availability more than the headline SLA. A single local loop is a single point of failure. Common ways to reduce that risk:
- Use two circuits from two different providers.
- Use two circuits from one provider, but ask for diverse paths, meaning different physical routes into the building and different PE routers.
- Add a backup path over a different technology, such as broadband or cellular.
Common errors
- Assuming the provider can see inside the CE. On customer-managed service, the provider only tests up to the demarc. Prepare CE logs and interface counters before opening a ticket.
- Mismatched encapsulation or interface settings. The CE and the provider handoff must agree on encapsulation, speed, duplex, and framing. A mismatch can leave the interface up but passing no traffic.
- Overlapping address space. Link subnets or site LANs that overlap with provider-assigned ranges cause traffic to take the wrong path.
- Misreading the SLA scope. A PE-to-PE guarantee does not cover your access circuit.
- Skipping diversity. Two links with the same conduit fail together.
Summary
The provider owns the network up to the demarc, and the customer owns the CE and everything behind it. The PE is the provider's edge device. Whether the CE routes with the PE or with a distant CE depends on whether the service is Layer 3 or Layer 2. Knowing where the demarc sits, who manages the CE, and how the SLA is scoped lets you buy the right service and troubleshoot faults without delay.
Exercise
A branch site shows its serial interface as down/down. The provider says its network is healthy up to the demarc. Describe how a loopback at the smart jack helps you decide who should fix the problem.
Show answer
The provider sets a loopback at the demarc so that signals sent from the CE return to the CE. If the CE sees its own traffic come back, the cable between the CE and the demarc, and the CE interface, are working, so the fault is between the demarc and the far end, on the provider side. If nothing returns, the fault lies on the customer side: the CE interface, the cabling to the demarc, or the CE configuration. The test splits the path at the demarc and shows whose side holds the fault.
Exercise
A customer buys a Layer 3 MPLS service from a provider. With which device does the customer's CE form its routing adjacency, and how would this differ with a Layer 2 Ethernet WAN service?
Show answer
In a Layer 3 service, the CE forms its routing adjacency with the provider's PE router. In a Layer 2 Ethernet WAN, the provider only carries frames, so the CE at one site forms its adjacency directly with the CE at the other site, and the provider is invisible to routing.