Octet

What is the difference between SPAN, RSPAN and ERSPAN, and when would you use each?

Show the answer

Say this first

All three copy traffic from source ports or VLANs to an analyzer. Local SPAN sends the copy to another port on the same switch. RSPAN carries the copy across layer 2 trunks in a dedicated remote-span VLAN to a port on another switch. ERSPAN wraps the copy in GRE and routes it over IP to a collector anywhere. I use SPAN when I can plug in at the switch, RSPAN inside one layer 2 campus, and ERSPAN across routed networks or into a central capture appliance.

Go deeper

Local SPANRSPANERSPAN
Copy goes toa port on the same switcha port on another switchan IP address
Transportinside the switcha remote-span VLAN on trunksGRE over IP
Needsnothing extrathe RSPAN VLAN allowed on every trunk in betweenIP reachability and MTU headroom
Typical usequick capture in a closetcentral analyzer in a campusdata center, remote sites, capture appliances
Cisco IOS
SW1(config)# monitor session 1 source interface GigabitEthernet1/0/5 both
SW1(config)# monitor session 1 destination interface GigabitEthernet1/0/48

Limits to know before you trust a capture

  • SPAN is best effort. Mirroring both directions of a busy 1G port into one 1G destination can exceed the destination's speed, and the extra copies are dropped silently. Gaps in the capture may be SPAN loss, not network loss.
  • Errored frames are usually not copied. A frame that fails CRC is dropped on ingress, so SPAN will not show physical-layer damage. Counters show it.
  • The destination port is no longer a normal port. By default it does not forward normal traffic.
  • Platforms limit the number of sessions and sometimes the source types.
  • A network TAP copies at the physical layer and does not drop under load, which makes it better evidence than SPAN for a dispute.

Traps

  • Treating a SPAN capture as lossless proof.
  • Forgetting to allow the RSPAN VLAN on every trunk between source and destination.
How did you do?