We can specify that the software provide a 64-bit nanosecond EPOCH timestamp over a port-mirrored packet for family any packets mirrored in ingress and egress directions.
You set the timestamping feature by using the packet-timestamp configuration statement at the [edit forwarding-options port-mirroring] hierarchy level. The port-mirroring destination can be a next-hop group. In this case, every mirrored packet, for each member members of the group, carries the same timestamp.
The timestamp on the mirrored packet is extracted during port-mirror post processing, which executes after the mainline packet is processed. Thus there is a microseconds-worth delay since the mainline packet entered or exited on the corresponding interface. Also, an L2 or L3 feature that depends on the MAC address for forwarding of the mirrored packet might not function as expected, because the MAC header fields are overwritten with the timestamp.
| Product / Application | Software | Introduced Release |
|---|---|---|
| MX301 | Junos OS | 25.4R1 |
| MX304 | Junos OS | 24.2R1 |
| MX10008 | Junos OS | 24.4R1 |
| MX10008 | Junos OS | 24.2R1 |
| MX10016 | Junos OS | 24.4R1 |
| MX10016 | Junos OS | 24.2R1 |