- play_arrow Configure Kubernetes and Contrail
- play_arrow CN2 Apstra Integration
- play_arrow CN2 Security
- play_arrow Advanced Virtual Networking
- Create an Isolated Namespace
- Configure Allowed Address Pairs
- Enable Packet-Based Forwarding on Virtual Interfaces
- Configure Reverse Path Forwarding on Virtual Interfaces
- Configure Fast Convergence
- Configure Graceful Restart and Long-Lived Graceful Restart
- vRouter Interface Health Check
- Kubernetes Ingress Support
- Deploy VirtualNetworkRouter in Cloud-Native Contrail Networking
- Configure Inter-Virtual Network Routing Through Route Targets
- Configure IPAM for Pod Networking
- Enable VLAN Subinterface Support on Virtual Interfaces
- EVPN Networking Support
- Customize Virtual Networks for Pod Deployments, Services, and Namespaces
- Deploy Kubevirt DPDK Dataplane Support for VMs
- Pull Kubevirt Images and Deploy Kubevirt Using a Local Registry
- Static Routes
- VPC to CN2 Communication in AWS EKS
- Stickiness for Load-Balanced Flows
- Configure BFD Health Check for BGPaaS Sessions
- Configure a Service Account to Assume an IAM role
- play_arrow Configure DPDK
- play_arrow Configure Services
ON THIS PAGE
Flow-Based Mirroring
SUMMARY Juniper® Cloud-Native Contrail Networking (CN2) Release 23.2 in a Kubernetes-orchestrated environment supports flow-based network traffic mirroring.
Overview
The flow-based mirroring feature is an extension to the current Port-Based Mirroring feature. CN2 can selectively mirror network traffic on the basis of flow when vRouter is in the flow mode. In flow mode, CN2 has port-based mirroring capability as well as flow-based mirroring capability.
With this feature, user can mirror any flow, which is specified by the security policy and sends it to the network analyzer that monitors and analyzes the data. The network analyzer is specified with mirrorDestination resource. It also supports mirrorDestination resource present outside the cluster.
In CN2, the flow-based mirroring feature,
- Uses an existing mirroring functionality of Contrail Networking vRouter to
forward the mirrored traffic. There are two cases related to traffic
forwarding:
- If
juniperHeader
is enabled, the analyzer or destination IP address and UDP port is used to forward the mirrored traffic. - If
juniperHeader
is not enabled, the analyzer or destination mac address should be reachable from the source VMIs VRF. To lookup the destination mac address, L2 lookup is performed in the source VMIs VRF.
- If
- Adjusts the configuration server settings of CN2 to align with anticipated configuration requirements of vRouter agent.
- Uses contrail security policies to select the network traffic flow to be mirrored.
- Is applicable at the policy level or rule level. In case of rule level, the network traffic flow matching the first rule is removed out of two rules.
Configure Flow-Based Mirroring
To configure flow-based mirroring, you need to create a security policy,
configure the security policy with MirrorDestination
resource
that selects the analyzer pod, and create an analyzer pod with the label same as
MirrorDestination
.
If you are using custom network to configure flow-based mirroring, then there is a need to create a Virtual Network Router (VNR) between the custom network and ip-fabric network.