> For the complete documentation index, see [llms.txt](https://aviznetworks.gitbook.io/apb-r2.10/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aviznetworks.gitbook.io/apb-r2.10/cli-configuration-guide/configure-packet-timestamping.md).

# Configure Packet Timestamping

Timestamping packets is crucial in networking, Accurately recording time references for packets as they travel through the network. This technology aids in performance monitoring, latency analysis, network troubleshooting, and system synchronization. Precise timestamps help pinpoint delays, identify network bottlenecks, optimize routing, and ensure adherence to service-level agreements.

Timestamps are also crucial for coordinating distributed systems by maintaining a consistent time reference across geographically dispersed components. To do this, Specialized hardware or software captures and records these timestamps. Protocols like Precision Time Protocol (PTP) or Network Time Protocol (NTP), facilitate high-precision synchronization.&#x20;

Timestamping feature is needed for below major use-cases:

1. Detecting the congestion point on the path of a flow
2. Path Tracing
3. Real-time performance monitoring
4. Arrival sequence validation

{% hint style="warning" %}
This feature is only supported on Broadcom TD3 platforms, specifically  EC7326, and EC7726.
{% endhint %}

{% hint style="info" %}
Enabling the packet timestamping feature on APB devices requires configuration at both the global and interface levels.
{% endhint %}

## Enable Timestamping Globally

You can configure the Timestamping globally using the following command:

#### Reference

<table data-header-hidden><thead><tr><th width="266"></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td>Command</td><td>[no] timestamping [enable ]</td><td></td></tr><tr><td>Description</td><td>APB Packet Timestamping</td><td></td></tr><tr><td>Parameters</td><td>enable or disable</td><td></td></tr><tr><td>Mode</td><td>CONFIG</td><td></td></tr></tbody></table>

#### Example

```
pbnoscli# configure terminal
pbnoscli(config)# timestamping
  enable                enable/disable the OPB Packet Timestamping
pbnoscli(config)# timestamping enable
pbnoscli(config)#

#Disable#
pbnoscli# configure terminal
pbnoscli(config)# timestamping
  enable                enable/disable the OPB Packet Timestamping
pbnoscli(config)#no timestamping enable
pbnoscli(config)#
```

```sh
pbnoscli# show running-config
configure terminal
!
timestamping enable
!
!
pbnoscli#
```

## Enable Timestamp Per-Interface

To Configure Timestamping per interface, use the below command:

#### Reference

<table data-header-hidden><thead><tr><th width="279"></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td>Command</td><td>[no] timestamp {enable} stage {ingress | egress} source-id &#x3C;23-bit value></td><td></td></tr><tr><td>Description</td><td>Timestamp configuration</td><td></td></tr><tr><td>Parameters</td><td>enable/disable, stage, source-id</td><td></td></tr><tr><td>Mode</td><td>INTERFACE</td><td></td></tr></tbody></table>

#### Example

```
pbnoscli# configure terminal
pbnoscli(config)# interface ethernet Ethernet1/1
pbnoscli(config-if)# timestamp
  enable                Enable timestamp
pbnoscli(config-if)# timestamp enable 
pbnoscli(config-if)# timestamp enable stage
  egress                Egress
  ingress               Ingress
pbnoscli(config-if)# timestamp enable stage egress
  source-id             Specify source id
pbnoscli(config-if)# timestamp enable stage egress source-id 0x8233
pbnoscli(config-if)#end
pbnoscli#


#Disable#
pbnoscli(config-if)# no timestamp enable stage egress source-id 0x8233
```

```sh
pbnoscli# show running-config
configure terminal
interface ethernet Ethernet1/1
mtu 9100
speed 25000
timestamp enable stage egress source-id 0x8233
!
timestamping enable
!
!
pbnoscli#
```
