What is a network TAP, and when would you use it instead of a monitoring port?
A TAP is a dedicated device placed in a cable that copies all the traffic flowing through it to the IDS; use it when no switch with a configurable monitoring port is available, or when you need a complete copy.
* The TAP sits in the cable and copies both directions to the sensor, independent of the switch. *
A TAP (Test Access Point) is inserted into a link between two devices. Traffic flows through it unchanged, and the TAP hands an exact copy of both directions to the monitoring port where the IDS listens.
Compared to a SPAN port:
- It does not depend on the switch: no configuration, and it works where the switch has no mirroring feature.
- It copies everything on that cable, including errors, and is not affected by switch load or mirroring priorities.
- It is passive and invisible on the network.
The requirement is bandwidth: the TAP and the IDS must handle at least the full bandwidth of the tapped link. Note that a full-duplex link carries traffic in both directions at once, which can mean up to twice the line rate for the monitoring side. The cost is an extra device per monitored link.
Go deeper:
Netzwerkanalyse mit SPANs und TAPs (IT-Administrator) — how a TAP splits a full-duplex link into two streams, and how it keeps the link up if the TAP fails.
Network tap (Wikipedia) — the full-duplex arithmetic and passive versus active taps.
BSI-Leitfaden: Technische Basisarchitektur — the catch: a TAP cannot inject packets, so it rules out active responses such as TCP resets.