Overview of MoD

Overview of MoD


Mirror on Drop (MoD) can monitor the packet loss occurs in the switch during the packets forwarding process. When MoD monitors that packets are dropped, the switch reports the collected information to the remote collector. The collected information includes the packet drop type, the packet drop reason, and packet characteristics. In this way, you can analyze the collected information and diagnose the network faults in time, making sure that the business works normally.

To report the collected information to the remote collector, the switch provides the following two methods:

  • Encapsulates the collected information in UDP packets and forwards them to the remote collector through the destination routing.

  • Reports the collected information to the remote collector through the enabled gRPC agent function. To reduce the CPU utilization, you need to use this method when business traffic is heavy.

Terminology

  • Collectors

The devices that receive the collected information, such as AmpCon and the third-party devices. You can view and manage the collected information through the collector.

  • Flow

A set of packets that share the same quintuple. You can analyze and manage data based on the flow.

  • gRPC

Telemetry is a remote data collection technology for monitoring device performance and faults. The Telemetry technology uses the gRPC protocol to push data from the network device to a collector in the network management system. For details, see Configuring gNMI-gRPC Based Telemetry Technology.

  • MoD mode

MoD supports two modes: Unware-flow mode and ware-flow mode.

  • Unware-flow mode: Samples all dropped packets. The Trident4-X9, Tomahawk4, and Tomahawk5 platforms support this mode.

  • Ware-flow mode: Samples the dropped packets that match specified quintuples. Only the Trident4-X9 platform supports this mode.

Working Mechanism

Figure 1. Working Mechanism of MoD

image-20250801-085455.png

When monitoring that packets are dropped, the switch collects the information of the packet drop type, the packet drop reason, and packet characteristics, and then reports them to the remote collector. The detailed working mechanism is shown below:

  • After you configure the flow with the specified quintuple and bind the flow with the drop group, the switch can monitor the dropped packets matching the flow and the drop group. For details of drop group, see Predefined Drop Groups and Reasons.

  • When MoD monitors that the packets are dropped, the switch reports the collected information to the remote collector through the destination routing or gRPC.

Predefined Drop Groups and Reasons

By default, predefined drop groups with reasons are provided, as shown in Table 1. You can use the set telemetry mod drop-group user-defined command to customize drop groups based on the following predefined drop reasons.

Table 1. Description of Predefined Reasons

Group

Group Description

Reason

Reason Description

default-ingress-l2-group

The chip processes the related discards of Layer 2 forwarding in the inbound direction.

ingress-l2-src-static-move-drop

When the source MAC address of packets matches the switch's MAC address table, but the MAC address is sent from another port, the packets are dropped.

ingress-l2-src-discard

When the BCM_L2_DISCARD_SRC flag is configured in the MAC address table, packets from this source MAC address are dropped.

ingress-l2-dst-lookup-miss

When the switch cannot find the port corresponding to the destination MAC address in the MAC address table, the unknown unicast packets are dropped if the VLAN is configured with BCM_VLAN_UNKNOWN_UCAST_DROP.

ingress-l2-dst-discard

When a destination MAC address matches the MAC table, and the matched entry is configured with the BCM_L2_DISCARD_DST flag, packets sent to this destination MAC address are dropped.

default-ingress-l3-group

The chip processes the related discards of Layer 3 forwarding in the inbound direction. 

ingress-l3-dst-lookup-miss

When the next hop corresponding to the destination IP address is not found in the Layer 3 forwarding table (such as the routing table or host table), the packets are dropped.

ingress-l3-dst-discard

When a destination IP address matches the routing table and the route entry is configured with the BCM_L3DST_DISCARD flag, packets sent to this destination IP address are dropped.

ingress-l3-header-err

If the headers of Layer 3 packets appear error, such as invalid IP version, checksum error, or length mismatch, the packets are dropped.

ingress-l3-ttl-err

If the Time to Live (TTL) value of packets is 0 or 1, the packets are dropped. When the TTL value is 1, the packets may be dropped by the downstream devices.

NOTEs:

  • The platforms of Tomahawk4 and Tomahawk5 don’t support the ingress-l2-dst-lookup-miss reason.

  • Currently, reasons of ingress-l2-src-static-move-drop, ingress-l2-src-discard, ingress-l2-dst-lookup-miss, ingress-l2-dst-discard, and ingress-l3-dst-discard are only available for the technical support personnel.

 

Copyright © 2026 Pica8 Inc. All Rights Reserved.