Skip to content

Commit 9187697

Browse files
Merge pull request #303162 from DeCohen/WI434696-vlan-detection-over-erspan
VLAN Detection over ERSPAN
2 parents bee72fb + f3a0366 commit 9187697

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

articles/defender-for-iot/organizations/best-practices/traffic-mirroring-methods.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Choose a traffic mirroring methods - Microsoft Defender for IoT
33
description: This article describes traffic mirroring methods for OT monitoring with Microsoft Defender for IoT.
4-
ms.date: 07/04/2023
4+
ms.date: 07/23/2025
55
ms.topic: install-set-up-deploy
66
---
77

@@ -13,7 +13,7 @@ This article is one in a series of articles describing the [deployment path](../
1313

1414
The decision as to which traffic mirroring method to use depends on your network configuration and the needs of your organization.
1515

16-
To ensure that Defender for IoT only analyzes the traffic that you want to monitor, we recommend that you configure traffic mirroring on a switch or a terminal access point (TAP) that includes only industrial ICS and SCADA traffic.
16+
To make sure Defender for IoT only analyzes the traffic that you want to monitor, we recommend that you configure traffic mirroring on a switch or a terminal access point (TAP) that includes only industrial ICS and SCADA traffic.
1717

1818
> [!NOTE]
1919
> SPAN and RSPAN are Cisco terminology. Other brands of switches have similar functionality but might use different terminology.
@@ -23,7 +23,7 @@ To ensure that Defender for IoT only analyzes the traffic that you want to monit
2323

2424
We recommend configuring your traffic mirroring from all of your switch's ports, even if no data is connected to them. If you don't, rogue devices can later be connected to an unmonitored port, and those devices won't be detected by the Defender for IoT network sensors.
2525

26-
For OT networks that use broadcast or multicast messaging, configure traffic mirroring only for RX (*Receive*) transmissions. Multicast messages will be repeated for any relevant active ports, and you'll be using more bandwidth unnecessarily.
26+
For OT networks that use broadcast or multicast messaging, configure traffic mirroring only for RX (*Receive*) transmissions. Multicast messages are repeated for any relevant active ports, and you'll be using more bandwidth unnecessarily.
2727

2828
## Compare supported traffic mirroring methods
2929

@@ -66,13 +66,13 @@ Some TAPs aggregate both *Receive* and *Transmit*, depending on the switch confi
6666

6767
We recommend TAPs especially when traffic mirroring for forensic purposes. Advantages of mirroring traffic with TAPs include:
6868

69-
- TAPs are hardware-based and can't be compromised
69+
- TAPs are hardware-based and can't be compromised.
7070

71-
- TAPs pass all traffic, even damaged messages that are often dropped by the switches
71+
- TAPs pass all traffic, even damaged messages that are often dropped by the switches.
7272

7373
- TAPs aren't processor-sensitive, which means that packet timing is exact. In contrast, switches handle mirroring functionality as a low-priority task, which can affect the timing of the mirrored packets.
7474

75-
You can also use a TAP aggregator to monitor your traffic ports. However, TAP aggregators aren't processor-based, and aren't as intrinsically secure as hardware TAPs. TAP aggregators may not reflect exact packet timing.
75+
You can also use a TAP aggregator to monitor your traffic ports. However, TAP aggregators aren't processor-based, and aren't as intrinsically secure as hardware TAPs. TAP aggregators might not reflect exact packet timing.
7676

7777
### Common TAP models
7878

@@ -99,7 +99,7 @@ The sensor's monitoring interface is a promiscuous interface and doesn't have a
9999
Use ERSPAN encapsulation when there's a need to extend monitored traffic across Layer 3 domains. ERSPAN is a Cisco proprietary feature and is available only on specific routers and switches. For more information, see the [Cisco documentation](https://learningnetwork.cisco.com/s/article/span-rspan-erspan).
100100

101101
> [!NOTE]
102-
> This article provides high-level guidance for configuring traffic mirroring with ERSPAN. Specific implementation details will vary depending on your equipment vendor.
102+
> This article provides high-level guidance for configuring traffic mirroring with ERSPAN. Specific implementation details vary depending on your equipment vendor.
103103
>
104104
105105
### ERSPAN architecture
@@ -124,6 +124,17 @@ ERSPAN source options include elements such as:
124124

125125
For more information, see [Update a sensor's monitoring interfaces (configure ERSPAN)](../how-to-manage-individual-sensors.md#update-a-sensors-monitoring-interfaces-configure-erspan).
126126

127+
### VLAN ID considerations for ERSPAN
128+
129+
When you set up ERSPAN, consider how VLAN IDs are handled based on the type of mirrored port:
130+
131+
- **Tagged VLANs** exist in packets from trunk mirrored ports and remain intact within the packet's payload during encapsulation. The Defender for IoT sensor supports tagged VLANs.
132+
- **Untagged VLANs** originate from access mirrored ports. Untagged VLANs are stripped from the payload during decapsulation, and as a result the VLANs are lost. The Microsoft Defender for IoT sensor doesn't support untagged VLANs.
133+
134+
To ensure accurate VLAN detection, configure your network and ERSPAN router so that all mirrored ports use tagged VLANs, where mirror ports are configured as trunk ports. With this setup, VLAN information remains in the packet payload throughout the ERSPAN process and provides full visibility for the Defender for IoT sensor monitoring.
135+
136+
137+
127138
## Traffic mirroring with virtual switches
128139

129140
While a virtual switch doesn't have mirroring capabilities, you can use *Promiscuous mode* in a virtual switch environment as a workaround for configuring a monitoring port, similar to a [SPAN port](../traffic-mirroring/configure-mirror-span.md). A SPAN port on your switch mirrors local traffic from interfaces on the switch to a different interface on the same switch.

0 commit comments

Comments
 (0)