What Is SPAN? Security Definition
This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.
On This Page
Quick Definition
SPAN, which stands for Switch Port Analyzer, is a feature on managed network switches that lets you copy network traffic from one port to another port where you can monitor it. It works like a mirror, showing you exactly what data is flowing through a specific connection without stopping or changing that traffic. Network administrators use SPAN to watch for problems, investigate security issues, or record traffic for later analysis.
Commonly Confused With
A network TAP is a hardware device physically inserted between two network devices, creating a full-duplex copy of traffic without involving the switch. SPAN is a software feature built into the switch that uses the switch's own hardware to copy traffic. TAPs are more reliable for critical captures because they do not suffer from oversubscription or CPU interference, but they require physical installation and a power source.
If you need to monitor a link between a router and a switch, you can either insert a TAP between them with two cables, or configure a SPAN session on the switch to copy that traffic. The TAP gives you a hardware-based copy, while SPAN is free but may drop packets under load.
NetFlow is a Cisco protocol that provides summary statistics about traffic flows, such as source/destination IP, port numbers, and byte counts, without sending the actual packet contents. SPAN sends the entire packet, including payload. NetFlow uses less bandwidth and storage but does not allow deep packet inspection.
To see exactly what data a website is sending to a client (like a password or image), use SPAN. To know how much traffic is going to a particular server over time, use NetFlow.
Port aggregation combines multiple physical ports into one logical link to increase bandwidth and provide redundancy. SPAN copies traffic from one or more ports to a monitor port. They are opposite functions: aggregation bundles ports together, while SPAN isolates traffic from one port for analysis.
If you want to increase throughput between two switches, you configure LACP to bond four 1 Gbps ports into a 4 Gbps link. If you want to watch traffic on one of those ports, you use a SPAN session, which will reflect only the traffic on that specific port, not the aggregated link.
Must Know for Exams
SPAN appears frequently in CCNA, CompTIA Network+, and other network certification exams because it is a fundamental network monitoring tool that every network professional should understand. In the CCNA exam (200-301), SPAN is covered under Network Access topics, specifically in the context of troubleshooting and monitoring. Candidates need to know how to configure SPAN on Cisco switches, the difference between local SPAN, RSPAN, and ERSPAN, and the limitations such as destination port oversubscription. Exam questions often require you to interpret a configuration snippet and determine which port is the source, which is the destination, and what traffic will be captured.
For CompTIA Network+ (N10-008 or N10-009), SPAN appears under network operations and network troubleshooting. The exam expects you to understand port mirroring as a method for traffic capture without disrupting service. You may be asked to identify the appropriate tool for a given scenario, such as using SPAN to connect an IDS compared to using a TAP. Network+ also covers the difference between SPAN and other monitoring methods like NetFlow or SNMP, where SPAN provides full packet-level visibility while the others provide summary statistics.
In the Cisco CCNP Enterprise (ENCOR 350-401), SPAN is covered more deeply, including RSPAN and ERSPAN configuration, SPAN filtering with ACLs, and advanced troubleshooting. CCNP-level questions may require you to plan a SPAN deployment in a complex network with multiple switches and VLANs. You may need to know how to configure a SPAN session to capture traffic from a specific VLAN while excluding certain ports, or how to verify that a SPAN session is actively forwarding mirrored traffic.
Exam questions about SPAN often test your understanding of its non-intrusive nature. A typical multiple-choice question might ask: Which technology allows you to capture network traffic without affecting the flow of data? The correct answer is port mirroring (SPAN). Another question might show a switch configuration and ask what traffic will be seen on a monitor port. You must analyze which source interfaces and direction are configured. Trap questions may include SPAN sessions configured with the wrong encapsulation or with the destination port still configured as a normal access port, which would prevent the monitoring tool from receiving proper frames.
Simple Meaning
Imagine you are a librarian who needs to see every book being checked out from a busy library desk, but you cannot stand right there because you would get in the way. You could set up a mirror that reflects the checkout counter, but you need a way to see that reflection without disturbing the librarian. In a computer network, SPAN is exactly that mirror. It copies all the data packets coming and going on a particular switch port and sends that copy to another port where you have a monitoring computer or a recording device.
A network switch is like a smart post office inside a building. It knows which room each letter belongs to and delivers it only to that room. Normally, the switch does not let anyone else see those letters. But sometimes you need to check if there are problems or if someone is sending bad letters. SPAN lets you watch the letters without opening them or stopping delivery.
SPAN copies traffic from a source port (the one you want to watch) to a destination port (the one with your monitoring tool). This copy is a perfect duplicate of the original traffic, including all the headers and data. The original traffic continues undisturbed to its intended destination. The monitoring tool can be a packet analyzer like Wireshark, an intrusion detection system, or a network performance monitor. SPAN can also copy traffic from a VLAN instead of a single port, which is useful for watching an entire group of devices at once.
SPAN does its work entirely inside the switch hardware, so it does not slow down the network. The switch simply makes an extra copy of each packet as it passes through and sends that copy out the monitoring port. This is different from a hub, which sends all traffic to every port and slows everything down. SPAN is efficient and targeted.
Full Technical Definition
SPAN, or Switch Port Analyzer, is a Cisco-proprietary feature originally developed for Catalyst switches, now widely implemented by many vendors under names like port mirroring, RSPAN (Remote SPAN), or monitor session. SPAN performs packet duplication at the hardware layer of a switch, allowing an administrator to capture ingress, egress, or both directions of traffic on one or more source interfaces and forward the copied frames to a destination interface for analysis by a network analyzer, intrusion detection system, or recording appliance.
SPAN operates at Layer 2 of the OSI model. When a switch receives a frame on a source port configured as a SPAN source, the switch's ASIC (Application-Specific Integrated Circuit) creates a copy of that frame in hardware before any switching decisions are made. The copy is then encapsulated or forwarded directly to the SPAN destination port. The original frame continues through the normal switching process without modification or delay. This process is non-intrusive and does not affect the performance of the source ports, though the monitoring port can become oversubscribed if the aggregate traffic exceeds its line rate.
There are several types of SPAN sessions. Local SPAN copies traffic to a destination port on the same switch. Remote SPAN (RSPAN) extends monitoring across multiple switches using a dedicated RSPAN VLAN to carry mirrored traffic between switches. Encapsulated Remote SPAN (ERSPAN) uses Generic Routing Encapsulation (GRE) to transport mirrored traffic over a routed IP network, enabling monitoring across Layer 3 boundaries. Each type has specific configuration requirements and limitations. For example, RSPAN requires all intermediate switches to support the RSPAN VLAN, and ERSPAN adds IP header overhead, which can affect the maximum frame size.
Common configuration parameters for SPAN include source interfaces (individual ports, port channels, or VLANs), direction (ingress only, egress only, or both), destination interface (a single port or a port channel), and encapsulation options (whether to preserve original VLAN tags). Some switches also support features like SPAN filtering, which restricts which packets are mirrored based on access control lists or VLAN membership, reducing the load on the monitoring tool. SPAN sessions can be configured via CLI, SNMP, or network management platforms, and they typically support multiple simultaneous sessions, though the exact number depends on the switch model and ASIC capabilities.
Limitations of SPAN include the potential for packet dropping on the destination port if the mirrored traffic exceeds the port's bandwidth. Also, SPAN does not copy control plane traffic generated by the switch itself, such as STP BPDUs or CDP frames, unless specifically configured. In some implementations, SPAN cannot mirror traffic from certain ports like uplinks or management ports. Understanding these constraints is critical for accurate traffic analysis and exam questions that test troubleshooting of monitoring setups.
Real-Life Example
Think about a busy hotel front desk. Guests come and go, checking in and checking out. The desk staff handle each guest individually, taking their information, giving keys, and answering questions. Now imagine the hotel manager wants to review how the staff are interacting with guests to improve training. The manager cannot stand right next to the clerk because it would make guests uncomfortable, and the manager needs to see every interaction, not just the ones happening while they are present.
A good solution is to install a security camera pointed at the front desk. The camera records everything the clerk does and says with each guest. It does not interrupt the check-in process. Guests are not delayed. The manager can later watch the recording to see exactly what happened. The camera is like the SPAN destination port, and the front desk area is like the source port.
Now, suppose there are two front desks in different parts of the hotel, and the manager wants to watch both from a single office. One camera alone cannot cover both desks. The manager could set up two separate cameras and run wires to the office, or use a wireless system. That is similar to Remote SPAN, where traffic from switches in different parts of a building is sent over a special network to a central monitoring point.
In this analogy, the camera's recording does not change the guests' experience. They still get handled efficiently. The manager gets a perfect copy of the interaction without any interference. That is exactly what SPAN does for network traffic. It gives network administrators a perfect copy of data flowing through a port without slowing down or altering the network.
Why This Term Matters
SPAN is an essential tool for network troubleshooting, security monitoring, and performance analysis. Without SPAN, administrators would have to use hubs or inline taps to capture traffic, both of which introduce disruption or additional points of failure. A hub forces all ports to share the same collision domain, reducing performance and causing collisions. An inline tap must be physically inserted between devices, requiring downtime and potential misconfiguration. SPAN solves these problems by using the switch's existing hardware to create a non-disruptive copy of traffic.
In practice, SPAN is used to connect intrusion detection systems (IDS) that analyze traffic for malicious patterns without placing the IDS inline, which could slow down or block legitimate traffic if the IDS fails. SPAN also feeds network performance monitors that measure latency, packet loss, and jitter between endpoints. For troubleshooting, when a user reports slow application response, an administrator can set up a SPAN session on the user's switch port, capture the traffic with Wireshark, and analyze the handshake timings, retransmissions, and application-layer delays.
SPAN also supports compliance requirements. In sectors like finance and healthcare, regulations may require recording all network communications relevant to transactions or patient data. SPAN provides a reliable method to capture that data for archival purposes. SPAN is used in forensic investigations after a security incident. Administrators can replay captured traffic to understand the attack vector, lateral movement, and data exfiltration attempts.
One practical limitation administrators must manage is the oversubscription of the destination port. If a source port is operating at 1 Gbps and the destination port is 1 Gbps, and you mirror two 1 Gbps source ports, the destination port can only carry 1 Gbps total, causing packet drops. This matters because dropped packets mean incomplete analysis. Understanding this limitation is part of designing a monitoring network properly, often by using dedicated monitor ports or port channels for high-volume captures.
How It Appears in Exam Questions
Questions about SPAN in certification exams typically fall into three patterns: scenario-based, configuration, and troubleshooting. In scenario-based questions, you are given a situation where a network administrator needs to capture traffic to diagnose a problem or connect a security appliance. You must recommend the correct method. For example: An administrator is troubleshooting slow application performance for users in the Sales VLAN. Which configuration should be implemented? The correct answer is to configure a SPAN session that mirrors the Sales VLAN to a destination port connected to a packet analyzer.
Configuration questions provide a partial switch configuration or CLI output and ask about its effect. For instance: Switch(config)# monitor session 1 source interface GigabitEthernet0/1 both Switch(config)# monitor session 1 destination interface GigabitEthernet0/20 What traffic will be seen on interface Gi0/20? The answer is both incoming and outgoing traffic on Gi0/1. A more advanced question might include SPAN filtering: monitor session 1 filter access-list MYLIST. You would need to know that only packets matching the ACL will be copied.
Troubleshooting questions present a problem where the monitoring tool is not seeing traffic. A common cause is that the destination port is still configured as an access port in a VLAN, so the monitoring device cannot receive the mirrored packets because the switch drops them. Another cause is that the source interface is a trunk port and the SPAN session is not configured to preserve VLAN tags. You may be asked to identify the misconfiguration. For example: An engineer configures a SPAN session but notices that the monitoring workstation receives no packets. What is the most likely cause? The answer could be that the destination port is in the wrong VLAN or that the SPAN session is in shutdown state.
Exam questions also compare SPAN with other capture methods. You might see: Which of the following provides complete packet-level visibility without injecting into the data path? Options: NetFlow, SPAN, SNMP, syslog. SPAN is correct because it copies packets without affecting the original flow. Also, questions on RSPAN and ERSPAN test your understanding of their respective use cases, such as sending mirrored traffic across a routed network (ERSPAN) vs. a Layer 2 network (RSPAN).
Practise SPAN Questions
Test your understanding with exam-style practice questions.
Example Scenario
You are a network administrator at a medium-sized company. Employees in the finance department have been complaining that their accounting software is extremely slow, especially during the end-of-month closing period. Other departments are not experiencing similar issues. You suspect the finance department's network segment might be congested or there is a problematic device generating broadcast traffic. You need to capture the traffic going to and from the finance department's switch port to analyze it with Wireshark.
You walk into the server room and locate the switch that connects the finance team. The finance department's access switch has port Gi0/5 connected to their floor switch, and you want to monitor both directions of traffic on that port. You have a laptop with Wireshark installed, and you connect it to port Gi0/24 on the same switch. You configure a local SPAN session on the switch using the CLI: monitor session 1 source interface GigabitEthernet0/5 both and monitor session 1 destination interface GigabitEthernet0/24.
After the configuration, you start Wireshark on your laptop. You immediately see packets flowing. You notice that the traffic is mostly normal, but there is an unusually high number of broadcast frames from a specific workstation on the finance VLAN. You identify the MAC address and trace it to an old printer that is generating excessive Address Resolution Protocol (ARP) requests. You disconnect the printer and the accounting software speeds up noticeably. The SPAN session allowed you to capture the exact traffic and diagnose the problem without interfering with the finance team's network connectivity.
This scenario demonstrates the core value of SPAN: non-disruptive, targeted traffic capture for troubleshooting. Without SPAN, you would have had to physically place a hub between the finance switch and their floor switch, which would have caused a minor outage, or you would have had to deploy a network TAP, which requires installation planning. SPAN made the diagnosis quick and painless.
Common Mistakes
Thinking SPAN can be used to capture control plane traffic like STP BPDUs by default.
SPAN only copies data plane traffic that traverses the switch's forwarding hardware. Control plane traffic generated or consumed by the switch CPU is not copied by default unless explicitly configured with specific commands like 'monitor session source cpu' on some platforms.
Understand that SPAN mirrors user traffic passing through the ports, not the switch's own management or protocol frames. For control plane capture, use features like 'debug spanning-tree events' or a dedicated management port mirror.
Assuming the destination port for a SPAN session can still function as a normal switch port.
Once a port is configured as a SPAN destination, it stops normal switching operations. It no longer forwards or receives traffic as part of its original VLAN. It becomes a dedicated monitor-only port.
Always verify that the destination port is not used for any other purpose. Configure it specifically for monitoring and ensure the connected device is set to receive packets in promiscuous mode.
Believing that SPAN can capture traffic from a source interface that is already a SPAN destination.
Most switches do not allow a port to be both a SPAN source and a SPAN destination simultaneously. This creates a loop or configuration conflict. The switch will reject the configuration or cause unpredictable behavior.
Use separate ports for source and destination. If needed, configure multiple SPAN sessions with different source and destination pairs.
Expecting SPAN to copy traffic at wire rate without any packet loss on the destination port when the aggregated source traffic exceeds the destination port bandwidth.
If you mirror two 1 Gbps source ports to a single 1 Gbps destination port, the destination port is oversubscribed. The switch will drop packets that cannot be transmitted, leading to an incomplete capture.
Plan monitoring sessions carefully. Use a destination port with higher bandwidth (e.g., 10 Gbps) or limit the number of source ports per session. Use SPAN filtering to capture only relevant traffic if bandwidth is a concern.
Exam Trap — Don't Get Fooled
{"trap":"A question asks: 'Which port mirroring technology can send mirrored traffic across a routed network between two different subnets?' The available options are Local SPAN, RSPAN, ERSPAN, and a network TAP.","why_learners_choose_it":"Learners often pick RSPAN because 'Remote' implies it works over any distance.
They forget that RSPAN requires a dedicated RSPAN VLAN that must exist across all switches in Layer 2, which cannot cross a router or a Layer 3 boundary.","how_to_avoid_it":"Remember that RSPAN is for Layer 2 remote monitoring within a switched network. ERSPAN (Encapsulated Remote SPAN) uses GRE encapsulation to tunnel mirrored traffic over an IP network, making it the correct choice for crossing Layer 3 boundaries.
ERSPAN is the only SPAN variant that can route across different subnets."
Step-by-Step Breakdown
Identify the Source Traffic
Determine which port, ports, or VLAN you need to monitor. This decision is based on the troubleshooting goal, such as monitoring a single user's workstation port or an entire department's VLAN. The source can be an ingress port, egress port, or both directions. Choose carefully because mirroring both directions doubles the traffic at the destination.
Select the Destination Port
Choose a port on the same switch that will connect to your monitoring device. That port is dedicated to receiving the mirrored traffic. It must not be used for any normal data traffic. Ensure the port's speed matches or exceeds the expected mirrored traffic volume to avoid packet drops.
Access the Switch CLI or Management Interface
Connect to the switch via SSH, Telnet, or console cable. Enter privileged EXEC mode and then global configuration mode. On Cisco switches, the command 'configure terminal' enters the configuration mode where SPAN sessions are defined.
Configure the SPAN Session
Create a monitor session and specify the source interface and direction. For example: 'monitor session 1 source interface GigabitEthernet0/1 both'. Then specify the destination: 'monitor session 1 destination interface GigabitEthernet0/24'. Some switches allow multiple source interfaces and even source VLANs in a single session.
Verify the Configuration
Use the command 'show monitor session 1' to verify that the session is active and correctly configured. Check that the source and destination are listed correctly and that the session status is 'Up'. Optionally, use 'show monitor session 1 detail' for more information.
Start Capturing on the Monitoring Device
Connect your network analyzer (like Wireshark, tcpdump, or a dedicated IDS) to the destination port. Ensure the monitoring device is set to promiscuous mode so it can receive all mirrored frames. Start the capture and observe the incoming traffic. If no traffic appears, reconfirm the SPAN configuration and check for physical connectivity issues.
Practical Mini-Lesson
SPAN is one of the most used features for network troubleshooting, but professionals must understand its limitations to avoid incomplete or misleading captures. The biggest practical issue is destination port oversubscription. If you mirror a 1 Gbps full-duplex port, the actual traffic in both directions can be up to 2 Gbps (1 Gbps inbound and 1 Gbps outbound). If your destination port is only 1 Gbps, you will drop half the traffic under full load. Always try to use a higher-speed destination port or limit the number of source ports. You can also use SPAN filtering to capture only specific protocols, reducing the load.
Another practical consideration is that SPAN copies packets after the switch has already processed them. This means that any packets that are dropped due to errors or ACLs on the source port are not mirrored. The monitor sees only the traffic that was successfully forwarded. Also, SPAN does not copy frames that are switched entirely in hardware if the frame is destined for a port on a different ASIC, but modern switches handle this transparently. However, it is worth knowing that the exact behavior can vary between switch models.
When configuring SPAN in a production environment, always perform the configuration during a maintenance window or on a test port first. Misconfiguring a SPAN session can accidentally shut down the source port or cause a loop if the destination port is incorrectly set. Some switches automatically disable the source port if the destination port fails, so ensure your monitoring device is always powered on.
For advanced use, professionals employ RSPAN to centralize monitoring across multiple switches. Setting up RSPAN requires creating a dedicated RSPAN VLAN on all switches involved, then configuring source sessions on each access switch that sends mirrored traffic into the RSPAN VLAN, and a destination session on the core switch that copies the RSPAN VLAN to a local monitor port. ERSPAN is even more flexible but requires more overhead and is only available on higher-end switches or routers.
Finally, always verify your SPAN configuration with packet captures. If your monitoring device sees duplicate frames, check whether you are mirroring both directions and your analyzer is interpreting them correctly. Duplicate frames can be normal in some troubleshooting scenarios, but they can also indicate a misconfiguration. Knowing how to interpret what you see on the wire is the true skill that turns SPAN from a simple tool into a powerful diagnostic instrument.
Memory Tip
SPAN = Switch Port Analyzer: It 'spans' a copy of traffic from one port to another, like a bridge spanning a river, allowing you to see the traffic without getting wet.
Covered in These Exams
Current Exam Context
Current exam versions that test this topic — use these objectives when studying.
N10-009CompTIA Network+ →200-301Cisco CCNA →220-1102CompTIA A+ Core 2 →SC-900SC-900 →SOA-C02SOA-C02 →CDLGoogle CDL →ISC2 CCISC2 CC →Legacy Exam Context
Older materials may mention these exam versions, but learners should use the current objectives for their target exam.
N10-008N10-009(current version)Related Glossary Terms
802.1Q is the networking standard that allows multiple virtual LANs (VLANs) to share a single physical network link by tagging Ethernet frames with VLAN identification information.
AAA (Authentication, Authorization, and Accounting) is a security framework that controls who can access a network, what they are allowed to do, and tracks what they did.
802.1X is a network access control standard that authenticates devices before they are allowed to connect to a wired or wireless network.
Frequently Asked Questions
Does SPAN slow down the network?
No, SPAN creates a copy of the packet in hardware using the switch's ASIC without processing delays. The original traffic is unaffected. However, the destination port can become overloaded if the mirrored traffic exceeds its bandwidth.
Can I use SPAN to capture traffic on a trunk port?
Yes, you can configure a SPAN session with a trunk port as the source. By default, SPAN preserves the 802.1Q VLAN tags on the mirrored packets, so your analysis tool can see which VLAN the traffic belongs to.
What is the difference between SPAN and port mirroring?
SPAN is Cisco's term for port mirroring. Other manufacturers call it port mirroring, port monitoring, or RAP (Remote Analysis Port). The concepts are essentially the same: copying packets from one port to another for analysis.
Can I configure multiple SPAN sessions on the same switch?
Yes, most managed switches support multiple SPAN sessions, but the number is limited by the switch model and ASIC capabilities. For example, a typical Cisco Catalyst 2960 supports up to two local SPAN sessions and one RSPAN source session.
What does 'both' mean in a SPAN configuration?
When configuring a SPAN session, the 'both' keyword means the switch will copy both incoming (ingress) and outgoing (egress) traffic on the source port. You can also specify 'rx' for ingress only or 'tx' for egress only.
Is SPAN supported on all switch ports?
Not necessarily. Some switches cannot mirror traffic on certain ports, such as uplink ports or ports used for stacking. The destination port must be a physical port and cannot be a VLAN interface or a routed port in some implementations.
Summary
SPAN, or Switch Port Analyzer, is a foundational network monitoring feature that allows administrators to copy traffic from one or more switch ports to a dedicated monitoring port without disrupting the original data flow. It is a non-intrusive diagnostic tool used for troubleshooting, security analysis, and performance monitoring. Understanding SPAN is critical for certification exams like CCNA and Network+, where it appears in scenario, configuration, and troubleshooting questions.
Professionals must remember that SPAN has limitations: destination port oversubscription, inability to capture control plane traffic by default, and the need for careful planning to avoid misconfiguration. The different variants of SPAN, including local SPAN, RSPAN, and ERSPAN, extend its utility across Layer 2 and Layer 3 networks, each with specific use cases and prerequisites. The key exam takeaway is that SPAN provides packet-level visibility without introducing a point of failure in the data path, making it a preferred method for connecting IDS and packet analyzers in production networks. Mastery of SPAN configuration and troubleshooting will serve any network professional well in real-world operations and certification assessments.