Chapter 5

IP Services

CCNP Enterprise Core (350-401 ENCOR) Study GuideDomain 3.0 · Infrastructure · 30% of the exam (with Chapters 3–4) · 4 objectives

Domain 3.0 — Infrastructure (30%), continued. Objectives 3.3.a–3.3.d: NTP and PTP; NAT/PAT; first-hop redundancy protocols (HSRP, VRRP); multicast — RPF check, PIM, IGMP, SSM, bidir, MSDP. Four services sit underneath almost every enterprise conversation, and the exam tests all four the way an operator meets them: as output to interpret, as configuration to produce, and as failures to explain.

Time first — because logs, certificates, and authentication all lie when clocks disagree. Then address translation, the gateway protocols that keep a subnet alive when its router dies, and finally multicast, the one forwarding model in this book that is built on receivers asking rather than senders pushing. Chapter 1 placed first-hop redundancy at the architecture level; this chapter is its configuration home: the commands, the timers, the arithmetic, and the show output.

5.1 Network time: NTP and PTP

5.1.1 The NTP hierarchy

NTP organises time in strata. Stratum 0 is the reference clock itself (atomic clock, GPS). Stratum 1 servers sync to stratum 0; stratum 2 syncs to stratum 1; and so on down to stratum 15. Stratum 16 is the reserved value a device reports when it has no synchronisation source at all — Clock is unsynchronized, stratum 16 in show ntp status means "I have no time source", not "I am sixteen levels deep".

Figure 5.1 — The NTP stratum hierarchy
Figure 5.1 — The NTP stratum hierarchy. Stratum 16 means unsynchronised.

5.1.2 NTP modes — who asks, who answers

ModeBehaviour
Client / serverClient polls a server; the common enterprise shape
Peer (symmetric active/passive)Two servers exchange time with each other
Broadcast / multicastServer pushes time to listeners; clients do not poll

5.1.3 Authentication and access control

NTP without authentication trusts any time source that answers — an attacker can shift a network's clock and break certificates, Kerberos, and log correlation in one move. Authenticate NTP with a shared key (ntp authenticate, ntp trusted-key, ntp server … key), and restrict who may query with access lists. A device that will not synchronise despite a reachable server usually has an authentication mismatch or an ACL blocking UDP 123.

5.1.4 PTP — a different protocol for a different problem

PTP (Precision Time Protocol, IEEE 1588) is not "NTP but better". NTP gives millisecond accuracy for general use; PTP gives sub-microsecond accuracy for systems that need it — broadcast studios, financial trading, industrial control — using hardware timestamping and a master/slave clock hierarchy with a best-master-clock election. The exam tests the distinction: if the requirement is sub-microsecond, the answer is PTP; if it is "keep the logs correlatable", the answer is NTP. Reading the output is the same skill in both: show ntp status and show ntp associations tell you the stratum, the selected peer, and whether the clock is synchronised.

PropertyNTPPTP
AccuracyMillisecondsSub-microsecond (hardware timestamping)
UseGeneral enterprise timeStudios, trading, industrial control
HierarchyStrata 0–15 (16 = unsynchronised)Grandmaster / master / slave, best-master election
Check yourself

A switch shows Clock is unsynchronized, stratum 16 in show ntp status, yet it can ping its configured NTP server. What does stratum 16 tell you, and what should you check next?

Answer: Stratum 16 means the device has no synchronisation source — it is not syncing at all. Reachability is fine, so check authentication (trusted key mismatch) and access lists blocking NTP, then whether the server itself is synchronised.

5.2 NAT and PAT

5.2.1 The four addresses — NAT's 2×2 vocabulary

TermMeaning
Inside localThe host's real address, as seen from inside
Inside globalThe host's address as seen from outside (the translated address)
Outside localThe outside host's address, as seen from inside
Outside globalThe outside host's real address

The exam tests this vocabulary directly: given a translation table, name each address. Inside local is the private address; inside global is what the internet sees. The other two describe the far end from each side's point of view.

5.2.2 The three translation flavours

Static NAT maps one inside address to one outside address, permanently — used for servers that must be reachable from outside. Dynamic NAT maps inside addresses to a pool of outside addresses on demand — one-to-one while the session lasts, then the address returns to the pool. PAT (overload) maps many inside addresses to one outside address, distinguished by source port: the router tracks a table of (inside address, inside port) → (outside address, outside port). PAT is what a branch edge does for all its users with a single public address.

5.2.3 Order of operations — where NAT sits among routing and ACLs

For outbound traffic, routing happens before NAT: the router decides where the packet goes, then translates it on the way out. For inbound traffic, NAT happens before routing: the packet is translated first, then routed to its inside destination. ACLs complicate the picture — an outbound ACL on the inside interface sees the packet before translation; an ACL on the outside interface sees it after. The exam's order-of-operations question always reduces to: which address does this device see at this point?

5.2.4 Reading the table — show ip nat translations and statistics

show ip nat translations is the table itself: protocol, inside global, inside local, outside local, outside global. show ip nat statistics is the health summary: hits, misses, pool exhaustion. A PAT table that grows without bound is a session leak; a pool that exhausts is a capacity problem — the fix is a bigger pool or PAT overload, not a bigger router.

5.2.5 The failure catalogue

SymptomCauseFix
No translations appearInterfaces not marked ip nat inside / ip nat outsideMark the interfaces
Translations appear but return traffic failsOutside route to the inside global is missingAdvertise the outside address range
Pool exhausts under loadDynamic NAT pool too small for concurrent sessionsUse PAT overload or enlarge the pool
One host works, the rest do notStatic NAT entry shadows the PAT rangeRemove the overlapping static entry

5.3 First-hop redundancy: HSRP, VRRP, GLBP

5.3.1 HSRP — roles, states, and election

HSRP gives a group of routers one virtual IP and one virtual MAC. One router is active, one is standby, the rest listen. Election is by priority (default 100, higher wins), then by highest IP address; preempt decides whether a recovered higher-priority router takes the role back. States walk Initial → Learn → Listen → Speak → Standby → Active. Tracking decrements priority when a tracked object fails — and the decrement must exceed the priority gap, or nothing changes hands.

5.3.2 Versions, virtual MACs, and the arithmetic the exam loves

PropertyHSRPv1HSRPv2
Multicast address224.0.0.2224.0.0.102
Virtual MAC0000.0c07.acXX (XX = group, hex)0000.0c9f.fXXX (XXX = group, hex)
Group numbers0–2550–4095
Timers (default)Hello 3 s, hold 10 sHello 3 s, hold 10 s

The virtual-MAC arithmetic is a favourite exam question: group 45 (0x2D) in HSRPv1 gives 0000.0c07.ac2d; group 45 in VRRP gives 0000.5e00.012d. Learn to read the group number out of the MAC — and to spot a VRRP MAC (0000.5e00.01XX) offered as an HSRP answer.

5.3.3 VRRP — the standards-track twin

VRRP (RFC 5798) is the open-standard equivalent of HSRP: one virtual IP, one master, backups behind it. Virtual MAC 0000.5e00.01XX, multicast 224.0.0.18, default priority 100, and preemption is on by default (unlike HSRP, where it must be configured). The exam's VRRP question is usually a comparison: which protocol, given a mixed-vendor requirement? VRRP — because it is the standard.

5.3.4 GLBP — the one that shares the work

GLBP is the third protocol and the only one that load-balances by design. One virtual IP, but the AVG (Active Virtual Gateway) hands out different virtual MACs (0007.b400.XXYY) to different hosts, so traffic spreads across multiple AVFs (Active Virtual Forwarders). HSRP and VRRP leave the standby idle; GLBP puts it to work. The cost is complexity: more state to understand, more to go wrong.

PropertyHSRPVRRPGLBP
StandardCiscoIETF RFC 5798Cisco
Load balancingNo (standby idle)No (backups idle)Yes — multiple AVFs
Virtual MAC0000.0c07.acXX0000.5e00.01XX0007.b400.XXYY
PreemptOff by defaultOn by defaultOn by default (AVG)
Check yourself

Two routers run HSRP group 45. The active router's uplink fails, its priority drops by 20 — but the standby's priority is only 10 lower, and preempt is configured. Does the gateway move?

Answer: Yes. The active router's priority falls below the standby's (a 20-point decrement against a 10-point gap), and with preempt configured the standby takes the active role. The design lesson from Chapter 1 holds: size the decrement larger than the gap, or the tracking does nothing.

5.4 Multicast

5.4.1 Multicast addressing — and the 32-to-1 mapping

Multicast group addresses live in 224.0.0.0/4 (224.0.0.0–239.255.255.255). A group address maps onto an Ethernet multicast MAC starting 01:00:5e, using the low 23 bits of the group address — which means 32 different group addresses map to the same MAC. Switches that forward on MAC alone deliver traffic to hosts that never joined the group; IGMP snooping (listening to IGMP joins) is what stops that waste.

5.4.2 IGMP — how receivers speak

IGMP is how hosts tell their local router "I want this group". IGMPv2: membership reports, queries, and leave messages, with a group-specific query on leave. IGMPv3 adds source filtering — a host can say "I want group G, but only from source S" — which is what makes Source-Specific Multicast (SSM) possible. The querier is the router that asks; the rest listen. The exam tests versions by their capabilities: source filtering is the v3 feature.

PropertyIGMPv2IGMPv3
JoinGroup only (*, G)Group, optionally with source (S, G)
LeaveLeave message + group-specific querySame, plus source lists
Source filteringNoYes — enables SSM

5.4.3 PIM sparse mode — trees, the RP, and two kinds of state

PIM-SM builds distribution trees only where receivers asked. Two kinds of state: the shared tree (*, G), rooted at the Rendezvous Point (RP), which receivers join first; and the source tree (S, G), the shortest path from the source, which the last-hop router switches to (SPT switchover) once traffic flows. The first packet from a new source reaches the RP through the register process: the first-hop router encapsulates it in a PIM register message to the RP, which then joins the source tree and tells the sender to stop registering. That first-packet dance is the exam's favourite PIM question.

Figure 5.2 — Shared tree and source tree for the same group
Figure 5.2 — Shared tree (*, G) and source tree (S, G) for the same group. PIM-SM starts shared, then switches to source.

5.4.4 The RPF check — multicast's loop prevention

Definition

RPF (Reverse Path Forwarding) check. A multicast packet is accepted only if it arrived on the interface the router would use to reach the source — the reverse path. A packet arriving on any other interface is dropped. The RPF check is multicast's loop prevention: without it, flooded multicast would loop forever, because multicast has no TTL-based loop protection of its own.

The RPF check reads the unicast routing table. If unicast routing to the source is wrong, multicast fails — and the symptom is "receivers get nothing, and nothing is obviously broken", because the multicast configuration is correct and the unicast table is not. When multicast fails, check unicast first.

5.4.5 SSM and bidirectional PIM — two different answers to "too many sources"

SSM (Source-Specific Multicast) removes the RP entirely: receivers join (S, G) directly, using IGMPv3 source filtering. No shared tree, no register process, no RP to find. Bidirectional PIM keeps the shared tree but removes the source tree: traffic flows up to the RP and back down the same shared tree, which suits many-to-many applications (like financial data feeds) where every participant is both source and receiver. SSM answers "one source, many receivers"; bidir answers "many sources, many receivers, one tree".

5.4.6 MSDP — carrying source knowledge between domains

MSDP (Multicast Source Discovery Protocol) connects PIM-SM domains: each domain's RP tells the others about its active sources through MSDP peering, so a receiver in one domain can join a source in another. Without MSDP, inter-domain multicast cannot discover sources across the boundary. Anycast RP — the same RP address on several routers, advertised via unicast routing — is the companion design for RP redundancy inside one domain.

Deep Dive — the stream's journey, and the one interface where it died

The chapter's Deep Dive follows one multicast stream — CertCrack.com's live training broadcast — from source to receivers across three routers, and finds the one interface where it died: a link whose unicast route to the source pointed the wrong way, so the RPF check dropped every packet. The multicast configuration was correct on all three routers. The unicast table was not. The lesson is the chapter's refrain: multicast failures are usually unicast failures wearing a multicast costume.

Configuration Workshop — the workshop branch

  1. NTP. Configure two NTP servers with authentication, then break the key on one and read show ntp associations to see the device refuse it. Note the stratum before and after.
  2. PAT. Configure PAT overload on a branch edge with one public address. Open sessions from three inside hosts and read the translation table — one outside address, three different outside ports.
  3. HSRP with tracking. Build an HSRP pair for VLAN 10 with priority 110/100, preempt, and uplink tracking with a decrement of 20. Fail the uplink and watch the gateway move; restore it and watch preempt move it back.
  4. Multicast end to end. Configure PIM-SM with a static RP, join a receiver with IGMP, and verify the (*, G) then (S, G) state with show ip mroute. Then break the unicast route to the source and watch the RPF check drop the stream.

Common mistakes and exam traps — IP Services

TrapTruth
Stratum 16 is the deepest NTP levelStratum 16 means unsynchronised — no source at all.
Inside global is the host's private addressInside global is the translated address as seen from outside; inside local is the private one.
HSRPv1 and VRRP virtual MACs are interchangeableHSRPv1 is 0000.0c07.acXX; VRRP is 0000.5e00.01XX. Read the group from the MAC.
Multicast fails — check PIM firstCheck unicast routing to the source first: the RPF check reads the unicast table.
SSM needs an RPSSM has no RP — receivers join (S, G) directly with IGMPv3.

End-of-chapter check questions (multiple choice)

Answer these without looking back, then check against the key. Each question has one correct answer. These questions are written fresh for this guide — they are not the book's mock-test questions.

1

Which stratum value proves a device has no time source at all?

A) Stratum 0 B) Stratum 1 C) Stratum 15 D) Stratum 16

2

Which time protocol should you recommend when an application needs sub-microsecond accuracy with hardware timestamping?

A) NTP B) PTP C) SNTP D) NTP with a stratum 1 server

3

An inside host 10.1.1.10 reaches the internet through a PAT translation to 203.0.113.5. What is 203.0.113.5?

A) The inside local address B) The inside global address C) The outside local address D) The outside global address

4

Three inside hosts share one public address through PAT. What distinguishes their sessions in the translation table?

A) Each host gets its own public address B) The source port — each session has a different outside port C) Each host gets its own VRF D) The destination address

5

For outbound traffic, in which order do routing and NAT happen?

A) NAT first, then routing B) Routing first, then NAT C) They happen simultaneously D) ACLs decide the order per packet

6

An engineer reads the virtual MAC 0000.5e00.012d from a show standby brief output. Which protocol and group does it identify?

A) HSRPv1, group 45 B) VRRP, group 45 C) HSRPv2, group 45 D) GLBP, group 45

7

What is the key difference between VRRP and HSRP regarding preemption?

A) Neither supports preemption B) HSRP preempts by default; VRRP does not C) VRRP preempts by default; HSRP requires preempt to be configured D) Preemption is not configurable on either

8

Which FHRP load-balances across multiple forwarders by design?

A) HSRP B) VRRP C) GLBP — the AVG hands out different virtual MACs to different hosts D) None of them

9

A multicast packet arrives on an interface that is not the interface the router would use to reach the source. What happens?

A) It is forwarded anyway B) It is flooded to all interfaces C) The RPF check fails and the packet is dropped D) It is sent to the RP for a decision

10

Which multicast mode has no Rendezvous Point, because receivers join (S, G) directly using IGMPv3 source filtering?

A) PIM sparse mode B) PIM dense mode C) Source-Specific Multicast (SSM) D) Bidirectional PIM

Answer key

Q1: D — Stratum 16 is the reserved value for "unsynchronised — no source".
Q2: B — PTP, with hardware timestamping, is the sub-microsecond protocol.
Q3: B — 203.0.113.5 is the inside global address: the host as seen from outside.
Q4: B — PAT distinguishes sessions by source port on the shared outside address.
Q5: B — Outbound: routing first, then NAT. (Inbound is the reverse.)
Q6: B — 0000.5e00.01XX is the VRRP virtual MAC; 0x2d is group 45. HSRPv1 would be 0000.0c07.ac2d.
Q7: C — VRRP preempts by default; HSRP needs preempt configured.
Q8: C — GLBP, via the AVG and multiple AVFs.
Q9: C — The RPF check fails; the packet is dropped. That is multicast loop prevention.
Q10: C — SSM: receivers join (S, G) directly, no RP.

Chapter 5 — based on the Cisco 350-401 ENCOR v1.2 exam objectives for Domain 3.0 (objective 3.3). Unofficial study material — not affiliated with or endorsed by Cisco Systems, Inc.

Want the full CCNP Enterprise Core (350-401 ENCOR) package?

Read this guide free. Then prove you're ready with 900 original practice questions, instant explanations, 36 interactive PBQ labs, and 3 months of online access — plus the downloadable PDF of this guidebook.

Get CCNP ENCOR Full Access — $10