Black Friday: 50% off every workbook with code . Ends Nov 30, 23:59 ET. Buy Now

Last day: 50% off every workbook ends tonight at 23:59 ET. Code Buy Now

Skip to main content
advanced Free with email

Free OSPF and MPLS LDP PDF: The 47-Page Service Provider Best Practices Guide

Reviewed 2026-08-16

Direct answer
This is a free 47-page PDF written by a working service provider network engineer, not a vendor marketing team. Every recommendation comes with the actual configuration, and most come in all three flavours: IOS, IOS-XE and IOS-XR side by side. If you're building an MPLS core, prepping for CCNP Service Provider, or you inherited a network someone else tuned badly, this is the reference you keep open in a second tab.

Download a free OSPF and MPLS LDP PDF. 47 pages of service provider best practices, with copy-paste config templates for IOS, IOS-XE and IOS-XR. Covers OSPF tuning, LDP session protection, IGP sync, BFD, NSF/NSR and SNMP. Instant, no cost.

Here’s the short version. This is a free 47-page PDF written by a working service provider network engineer, not a vendor marketing team. Every recommendation comes with the actual configuration, and most come in all three flavours: IOS, IOS-XE and IOS-XR side by side. If you’re building an MPLS core, prepping for CCNP Service Provider, or you inherited a network someone else tuned badly, this is the reference you keep open in a second tab.

One file. One free download. Every config template, ready to paste.

What this PDF is

It’s a design and operations reference, not a textbook. The structure follows how you’d actually build a core: get the IGP right, get the label protocol right, add redundancy, add management, then lock it down.

The part most guides skip is the “why”. This one explains why loopbacks should be /32 and passive, why Ethernet core links should be point-to-point instead of broadcast, and what breaks when LDP and the IGP fall out of sync. Then it gives you the command.

Every section closes with a numbered recommendations list. Those lists alone are worth the download. They read like a change-request checklist.

OSPF Neighbor States, From Down to Full

OSPF doesn’t go from zero to routing in one step. Two routers climb through eight states before they’re fully adjacent, and most real-world OSPF problems show up as a neighbor stuck partway through this list, per Cisco’s own OSPF neighbor states guide.

Paper-craft diorama of a row of flags rising in height, the tallest and final flag in teal reading FULL
Eight states. The last one is the only one that routes traffic.
StateWhat’s happening
DownNo hello received from the neighbor yet
AttemptHello sent to a manually configured neighbor, no reply yet (NBMA only)
InitA hello was received, but it doesn’t list this router yet
2-WayBoth routers see each other in their hello packets, bidirectional
ExStartRouters negotiate master/slave and the starting sequence number
ExchangeDatabase Description packets swap, summarizing each router’s LSAs
LoadingLink-State Request packets pull the full LSAs still missing
FullFully adjacent, databases match, SPF runs

Stuck in ExStart or Exchange almost always means an MTU mismatch between the two interfaces. Stuck in Init usually means the hello is only making it one direction, check for an ACL or a mismatched hello/dead timer before anything else.

What’s inside

  • OSPF process design – area 0 layout, /32 loopbacks generated internally, passive interfaces, and log-adjacency-changes as a troubleshooting habit
  • Router-id and reference bandwidth – why you pin the router-id manually, and the auto-cost reference-bandwidth value that keeps 1G/10G/100G costs sane
  • Point-to-point network type – killing DR/BDR election on Ethernet core links to cut Type 2 LSAs and speed up adjacency
  • SPF and LSA throttle timers – the full timers throttle spf, timers throttle lsa, lsa arrival and pacing flood set, with the IOS-XR syntax difference called out
  • OSPF authentication – MD5 message-digest at the area level, both platforms
  • Max-metric on startup and flood reduction – stopping a rebooting router from black-holing traffic, plus DoNotAge LSAs
  • LDP fundamentals – label protocol selection, per-interface enablement, and why the router-id must be a logical interface
  • LDP session protection – Basic vs Extended Discovery, targeted hellos, and keeping label bindings alive through a link flap
  • LDP and IGP synchronization – the two packet-loss scenarios it prevents, and the one-line fix
  • Label advertisement and allocation – advertise-label, host-route allocation, and the warning about breaking services with it
  • TTL propagation – hiding the MPLS core from customer traceroutes while keeping your own troubleshooting intact
  • High availability at three levels – SSO, NSF/Graceful Restart and NSR at the device level; BFD, carrier-delay and RIB purge at the link level; HSRP, VRRP and LLDP at the service level
  • BFD in depth – asynchronous vs echo mode, the timer negotiation, and per-interface OSPF BFD config
  • Network management – full SNMP trap lists for IOS and IOS-XR (OSPF, LDP, L3VPN, BFD, entity redundancy) and a syslog structure that survives a reboot
  • Device hardening – 16 services to disable or pin down, VTY access lists, SSHv2, AAA accounting, NTP authentication and Management Plane Protection
  • Miscellaneous operational wins – login and exec banners, a single management loopback as source interface for everything, duplicate-IP conflict policy, and TCP path MTU discovery

Config blocks are shown for IOS / IOS-XE / IOS-XR throughout. Where the syntax diverges, both versions are printed.

Why OSPF and MPLS LDP Have to Agree

OSPF and LDP solve two different problems, and the PDF’s own LDP-IGP synchronization section exists because of what happens when they disagree.

OSPF builds the routing table, the shortest path to every destination inside the AS. LDP rides on top of that path and hands out a label for each hop, so routers can forward by a short label lookup instead of a full IP lookup. The label-switched path LDP builds only works if it follows the exact path OSPF has already calculated.

The failure mode is specific: a link comes back up, OSPF reconverges and starts forwarding over it immediately, but LDP hasn’t finished exchanging labels on that link yet. Traffic gets routed over a path with no label binding, and packets drop until LDP catches up. The fix is one line, mpls ldp sync, which tells OSPF to hold a link’s cost artificially high until LDP confirms it has a working session.

Go deeper

This PDF gets your core designed right. The CCIE Enterprise Infrastructure Lab Workbook gives you 120 EVE-NG labs to actually build and break OSPF, MPLS and the rest of the blueprint until it’s second nature.See the CCIE Enterprise Workbook →

High Availability at Three Levels

Keeping an MPLS core up isn’t one feature, it’s three layers working together: device, link and service.

Paper-craft diorama of three stacked plaques reading SERVICE, LINK, and DEVICE
Three layers. Miss one and the other two don’t save you.
LevelWhat protects itWhat it’s for
DeviceSSO, NSF/Graceful Restart, NSRKeeps forwarding during a route processor failover or software restart
LinkBFD, carrier-delay, RIB purgeDetects a dead link in milliseconds instead of waiting on IGP timers
ServiceHSRP, VRRP, LLDPKeeps the first-hop and topology visibility intact for the services riding on top

Most outages trace back to only one of these three being configured. BFD without NSR still drops traffic during a route processor switchover. NSR without BFD still takes seconds to notice a dead link. The PDF treats all three as one checklist, not three separate features.

Hiding the Core: TTL Propagation

One operational detail the PDF covers that most guides skip: should a customer’s traceroute see your core routers?

Paper-craft diorama of a cloud labelled MPLS CORE with an envelope passing through a tunnel cut into it
From the customer’s side, the whole core looks like one hop.

By default, MPLS copies the IP TTL into the label, so a customer traceroute can show every P router in your core, hop by hop. Turning no mpls ip propagate-ttl forwarded on at the edge keeps the label TTL internal and makes the whole core look like a single hop from the customer’s side. Your own troubleshooting traceroutes, run from inside the core, still see every hop normally, since the command only hides TTL for forwarded (transit) traffic.

Who it’s for

  • Service provider and carrier engineers designing or standardising an MPLS core
  • CCNP Service Provider (SPCOR 350-501) candidates – the exam covers OSPF, MPLS with LDP, VPN services and high availability directly (Cisco Press)
  • CCNP Enterprise ENARSI (300-410) students – MPLS operations, LSR, LDP, label switching and LSP sit in the VPN Technologies domain, worth 20% of the exam
  • Enterprise engineers running MPLS in a large campus or WAN core
  • Anyone who inherited a network and needs a baseline to audit the running config against

This one’s advanced. If OSPF areas and label switching are new to you, start with the free BGP PDF or the free EIGRP cheat sheet first.

Frequently asked questions

Is this OSPF and MPLS LDP PDF really free?
Yes. Enter your email and the download link arrives right away. No card, no paywall.
What's in the file and how long is it?
47 pages. OSPF process design, LDP fundamentals and session protection, LDP-IGP sync, TTL propagation, high availability at three levels, BFD, SNMP and syslog, and 16 device-hardening recommendations, with IOS, IOS-XE and IOS-XR config for each.
Do I need real service provider hardware to use this?
No. Every config template works in a lab too, EVE-NG or GNS3 with IOS/IOS-XE/IOS-XR images. The commands are the same ones you'd push to production gear.
Does this cover the CCNP Service Provider exam?
Yes. SPCOR 350-501 covers OSPF, MPLS with LDP, VPN services and high availability directly. ENARSI 300-410 candidates will also find the LDP and label-switching sections useful, that's part of the VPN Technologies domain.
What's the difference between NSF and NSR?
NSF (Graceful Restart) needs the neighboring router to cooperate and hold routes steady while the restarting router recovers. NSR avoids that dependency entirely by keeping state synchronized between active and standby route processors, so neighbors never see a restart happen at all.
Why does OSPF need to know about LDP with mpls ldp sync?
Without it, OSPF can start forwarding over a link the instant it comes up, before LDP has finished building a label binding for that link. Packets get routed with no label to follow and drop until LDP catches up. The sync command holds the link's OSPF cost high until LDP confirms its session is ready.

Questions about this PDF

No questions yet. Ask the first one.

Ask a question

Your email address won't be published. We review every question before it appears. How we handle your data. Required fields are marked

Reviewed by

CCDE/CCIE

How to cite this resource

SMEnode Labs (2026). Free OSPF and MPLS LDP PDF: The 47-Page Service Provider Best Practices Guide. SMEnode Labs. https://smenode-labs.com/free-pdf/networking/free-ospf-and-mpls-ldp-pdf-the-47-page-service-provider-best-practices-guide/

APA

SMEnode Labs. (2026). Free OSPF and MPLS LDP PDF: The 47-Page Service Provider Best Practices Guide. SMEnode Labs. https://smenode-labs.com/free-pdf/networking/free-ospf-and-mpls-ldp-pdf-the-47-page-service-provider-best-practices-guide/

BibTeX

@misc{smenodelabs2026,
  title = {Free OSPF and MPLS LDP PDF: The 47-Page Service Provider Best Practices Guide},
  author = {{SMEnode Labs}},
  year = {2026},
  url = {https://smenode-labs.com/free-pdf/networking/free-ospf-and-mpls-ldp-pdf-the-47-page-service-provider-best-practices-guide/},
  note = {SMEnode Labs}
}