Guide
Network monitoring: NetFlow, SPAN and IP SLA (CCNP ENCOR)
Use flow records to describe traffic, SPAN to copy packets for inspection, and IP SLA to measure service health and drive route failover.
2 parts · 20 practice questions
Flexible NetFlow and packet mirroring
Flexible NetFlow separates the definition of a flow from its export. A flow record says which fields identify a flow and which extra values to collect. Match keys can include IPv4 source and destination addresses, IP protocol, and transport source and destination ports. Collect fields can include byte or packet counters and timestamps. A flow exporter specifies the collector destination and export transport. UDP is the customary transport for these exports. A flow monitor associates a flow record with a cache and is applied to an interface in the input or output direction. A flow exporter is optional; when configured, it can be assigned to the monitor.
- NetFlow export port
- UDP destination port 2055
- IPFIX export port
- 4739
- GRE protocol number
- 47
- ERSPAN GRE protocol type
- 0x88BE
Cisco Catalyst IOS XE Flexible NetFlow examples use UDP destination port 2055 for NetFlow exports and 4739 for IPFIX. These are example configuration values, not universal defaults; configure the port to match the collector. Cisco FNF can export using NetFlow v9 or IPFIX depending on platform and configuration. IPFIX uses templates to describe fields and is an IETF standard based on NetFlow v9.
SPAN copies selected interface or VLAN traffic to an analyzer. A local SPAN destination is dedicated to monitoring: while active, incoming traffic is disabled and the port does not forward ordinary traffic. Device congestion or an oversubscribed destination can lose mirrored packets even while original traffic forwards normally. RSPAN carries copies between switches over a dedicated Layer 2 RSPAN VLAN. On platforms that support RSPAN, define the VLAN with remote-span; no MAC address learning occurs in that VLAN, which is dedicated to mirrored traffic. Reserve RSPAN VLANs for this use and do not assign access ports to them.
ERSPAN carries mirrored frames between switches over a routed IP network in GRE-encapsulated traffic. Source and destination sessions use a matching ERSPAN ID to identify the stream. GRE is IP protocol number 47, and the GRE protocol type for ERSPAN is 0x88BE. RSPAN is Layer 2 transport over its dedicated VLAN; ERSPAN is routable Layer 3 transport.
flow record FLOW-REC
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
collect counter bytes long
flow exporter FLOW-EXP
destination 192.0.2.20
transport udp 2055
flow monitor FLOW-MON
record FLOW-REC
exporter FLOW-EXP
interface GigabitEthernet1/0/1
ip flow monitor FLOW-MON input
vlan 901
remote-spanReferences (7)
- Cisco IOS XE 17 Flexible NetFlow Configuration Guide
- Cisco Catalyst 3850 Flexible NetFlow Configuration Guide
- Cisco IOS XE 17 Catalyst Switch Port Analyzer Guide
- Cisco Catalyst 3650 IOS XE SPAN and RSPAN Configuration Guide
- Cisco Catalyst 9600 IOS XE SPAN and RSPAN Configuration Guide
- Cisco Catalyst 9500 IOS XE ERSPAN Configuration Guide
- Cisco Catalyst 9500 IOS XE ERSPAN Configuration Guide, Release 17.18
IP SLA probes and tracked route failover
An IP SLA operation actively sends synthetic traffic and records whether a target responds and how the path performs. The udp-jitter operation sends a sequence of UDP packets to an IP SLA Responder. It measures round-trip delay, one-way delay, one-way jitter, one-way packet loss, and connectivity. One-way delay needs synchronized clocks, typically through NTP, on source and responder. Without clock synchronization, one-way delay is reported as zero; jitter and packet-loss measurements remain available.
- Clock synchronization
- typically through NTP
- Unsynchronized one-way delay
- reported as zero
- HTTP success code
- 200
For UDP jitter, enable the IP SLA responder on the target Cisco device. It timestamps a probe when it arrives and again when it leaves; the target processing time between those timestamps is subtracted from the overall round-trip time. The timestamps also support one-way delay, jitter, and directional packet-loss measurements. One-way jitter does not require clock synchronization; one-way delay measurements require synchronized clocks on the source and target.
An IP SLA HTTP operation measures the time to retrieve a web page. Its reported components include DNS lookup round-trip time, TCP connection round-trip time, and HTTP transaction round-trip time; it can also report time to first byte. Its measured HTTP transaction is the request and response for the home HTML page. In the documented HTTP operation, total time is the sum of DNS, TCP connect, and HTTP transaction time. HTTP errors do not necessarily make the operation down: the documented operation is considered down when the returned HTTP code is not 200, or when it cannot establish a TCP connection or receive an HTTP response. The measurement helps distinguish name-resolution, connection, and server response delays.
Object tracking can tie an IPv4 static route to probe reachability. Configure a track object with track <id> ip sla <operation> reachability, then add track <id> to the IPv4 static route command with its destination network, mask, and next hop. When the probe is down, the tracked route is withdrawn from the active routing table (RIB), allowing a less-preferred floating static route to become active if one is configured. Check both the SLA operation and show track when troubleshooting failover: confirm the operation is scheduled, the target responds, the track object follows the intended operation, and the route references that same track number.
ip sla 1
udp-jitter 192.0.2.2 5000
frequency 30
ip sla schedule 1 life forever start-time now
track 10 ip sla 1 reachability
ip route 0.0.0.0 0.0.0.0 192.0.2.1 track 10
ip route 0.0.0.0 0.0.0.0 192.0.2.5 200
ip sla responder
show ip sla statistics
show track 10Check your understanding
Network monitoring: NetFlow, SPAN and IP SLA (CCNP ENCOR)
All 2 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.