Default PTP Config:
# PTP Config example #- protocol: ptp #domain: 0 #serve_unicast: true #max_unicast_subscribers: 0 #serve_multicast: true #server_only: true #announce_interval: 1 #sync_interval: 0 #delayrequest_interval: 0 #unicast_master_table: ['1.2.3.4','2.3.4.5', '3.4.5.6'] #delay_strategy: e2e # other options which can be used are: 'p2p' #hybrid_e2e: false # Send delay requests as unicast (enterprise profile) #priority1: 128 #priority2: 128 #monitor_only: false #use_layer2: false # Use ptp over ethernet instead of IP/UDP #interface: enp2s0 #profile: 'G.8275.2' # other options which can be used are: 'G.8275.1', 'G.8265.1' and 'enterprise-draft' #logsource: 'Grandmaster Clock in NY4' # configurable name for source included in all logging records for source #asymmetry_compensation: 0 # In nanoseconds. Static compensation for know asymmetry (+/- as the case maybe) #max_packets_per_second: 0 # If inbound packet rate exceeds this a WRED algorithm is used
To configure the PTP packet/transaction rate, modify the below lines:
announce_interval: 1
sync_interval: 0
delayrequest_interval: 0
(recommended to use 0 up to -4 for sync and delay request, announce recommended to be 0)
Packet/transaction rates are as follows:
7 | 0.0078125 pkt/s (1 pkts every 128 seconds) |
6 | 0.015625 pkt/s (1 pkts every 64 seconds) |
5 | 0.03125 pkt/s (1 pkts every 32 seconds) |
4 | 0.0625 pkt/s (1 pkts every 16 seconds) |
3 | 0.125 pkt/s (1 pkts every 8 seconds) |
2 | 0.25 pkt/s (1 pkts every 4 seconds) |
1 | 0.5 pkt/s (1 pkts every 2 seconds) |
0 | 1 pkt/s |
-1 | 2 pkt/s |
-2 | 4 pkt/s |
-3 | 8 pkt/s |
-4 | 16 pkt/s |
-5 | 32 pkt/s |
-6 | 64 pkt/s |
-7 | 128 pkt/s |