On routing platforms that contain an Internet Processor II ASIC, you can send a copy of any incoming packet from the routing platform to an external host address or a packet analyzer for analysis. This is known as port mirroring.
Beginning with JUNOS Release 9.3, MX-series routers support port mirroring for Layer 2 bridging traffic. Layer 2 port mirroring enables you to specify the manner in which incoming and outgoing packets at specified ports in a bridging environment are monitored and sampled and the manner in which copies of the sampled packet are forwarded to another destination, where the packets can be analyzed.
MX-series routers support Layer 2 port mirroring by performing flow monitoring functions using a class-of-service (CoS) architecture that is similar in concept, but different in particulars, from other routing platforms. For general information about packet flow within MX-series platforms and other routing platforms, see the JUNOS Class of Service Configuration Guide.
In a Layer 2 environment, MX-series routers support port mirroring of VPLS (family bridge or family vpls) traffic. MX-series routers also support port mirroring for Layer 2 VPNs (L2 VPNs) with family ccc. In a Layer 3 environment, MX-series routers support port mirroring of IPv4 (family inet) and IPv6 (family inet6) traffic. Like the M120 and M320 routers, MX-series routers support port mirroring of IPv4, IPv6, and VPLS packets simultaneously.
This chapter describes port mirroring of Layer 2 bridging traffic that passes through an MX-series router. For information about Layer 3 port mirroring, see the JUNOS Policy Framework Configuration Guide.