How does a monitoring port (SPAN port) feed an IDS, and what is its main limitation?
The switch copies the traffic of other ports to the monitoring port where the IDS listens; but that port has only its own bandwidth, so it overflows and drops copies when the mirrored ports are busy.
* The switch copies traffic to the monitor port, which can carry no more than its own bandwidth. *
Port mirroring (Cisco calls it SPAN, Switched Port Analyzer) is the most common way to deploy a NIDS. You configure the switch to replicate traffic from chosen ports or VLANs onto one monitoring port, and plug the IDS into it. The production traffic is not delayed, because the IDS only gets copies.
The catch is capacity. The monitoring port can forward no more than its own link speed. If it has the same speed as the other ports, it overloads quickly. Two mirrored ports each running at more than 50 % of line rate already add up to more than one port can carry, and the switch silently drops the excess copies. The IDS then has gaps exactly when the network is busiest, which can be when an attack is happening. Mirroring also has lower priority in the switch than real forwarding.
Go deeper:
Netzwerkanalyse mit SPANs und TAPs (IT-Administrator) — adds that a switch drops defective frames before mirroring, one reason SPAN suits ad-hoc analysis best.
TAP vs. SPAN: Which Option is Right for You? (Gigamon) — SPAN oversubscription and why mirrored traffic gets the lowest priority in the switch.
Port mirroring (Wikipedia) — the general mechanism, including Cisco SPAN and remote SPAN.