Skip to content

Commit 94dd2c5

Browse files
authored
Merge pull request #65252 from aireilly/OCPBUGS-14832-ptp-ref-config
OCPBUGS-14832 - update PTP ref config
2 parents 8943376 + 51c6b55 commit 94dd2c5

7 files changed

+388
-395
lines changed

modules/nw-ptp-configuring-linuxptp-services-as-boundary-clock.adoc

Lines changed: 2 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -28,136 +28,10 @@ See "Configuring the PTP fast event notifications publisher" for more informatio
2828

2929
. Create the following `PtpConfig` CR, and then save the YAML in the `boundary-clock-ptp-config.yaml` file.
3030
+
31-
.Recommended PTP boundary clock configuration
31+
.Example PTP boundary clock configuration
3232
[source,yaml]
3333
----
34-
---
35-
apiVersion: ptp.openshift.io/v1
36-
kind: PtpConfig
37-
metadata:
38-
name: boundary-clock-ptp-config
39-
namespace: openshift-ptp
40-
spec:
41-
profile:
42-
- name: boundary-clock
43-
phc2sysOpts: "-a -r -n 24"
44-
ptp4lOpts: "-2"
45-
ptpSchedulingPolicy: SCHED_FIFO
46-
ptpSchedulingPriority: 10
47-
ptp4lConf: |
48-
[<interface_1>]
49-
masterOnly 0
50-
[<interface_2>]
51-
masterOnly 1
52-
[<interface_3>]
53-
masterOnly 1
54-
[<interface_4>]
55-
masterOnly 1
56-
[global]
57-
#
58-
# Default Data Set
59-
#
60-
twoStepFlag 1
61-
slaveOnly 0
62-
priority1 128
63-
priority2 128
64-
domainNumber 24
65-
clockClass 248
66-
clockAccuracy 0xFE
67-
offsetScaledLogVariance 0xFFFF
68-
free_running 0
69-
freq_est_interval 1
70-
dscp_event 0
71-
dscp_general 0
72-
dataset_comparison G.8275.x
73-
G.8275.defaultDS.localPriority 128
74-
#
75-
# Port Data Set
76-
#
77-
logAnnounceInterval -3
78-
logSyncInterval -4
79-
logMinDelayReqInterval -4
80-
logMinPdelayReqInterval -4
81-
announceReceiptTimeout 3
82-
syncReceiptTimeout 0
83-
delayAsymmetry 0
84-
fault_reset_interval 4
85-
neighborPropDelayThresh 20000000
86-
masterOnly 0
87-
G.8275.portDS.localPriority 128
88-
#
89-
# Run time options
90-
#
91-
assume_two_step 0
92-
logging_level 6
93-
path_trace_enabled 0
94-
follow_up_info 0
95-
hybrid_e2e 0
96-
inhibit_multicast_service 0
97-
net_sync_monitor 0
98-
tc_spanning_tree 0
99-
tx_timestamp_timeout 50
100-
unicast_listen 0
101-
unicast_master_table 0
102-
unicast_req_duration 3600
103-
use_syslog 1
104-
verbose 0
105-
summary_interval 0
106-
kernel_leap 1
107-
check_fup_sync 0
108-
#
109-
# Servo Options
110-
#
111-
pi_proportional_const 0.0
112-
pi_integral_const 0.0
113-
pi_proportional_scale 0.0
114-
pi_proportional_exponent -0.3
115-
pi_proportional_norm_max 0.7
116-
pi_integral_scale 0.0
117-
pi_integral_exponent 0.4
118-
pi_integral_norm_max 0.3
119-
step_threshold 2.0
120-
first_step_threshold 0.00002
121-
max_frequency 900000000
122-
clock_servo pi
123-
sanity_freq_limit 200000000
124-
ntpshm_segment 0
125-
#
126-
# Transport options
127-
#
128-
transportSpecific 0x0
129-
ptp_dst_mac 01:1B:19:00:00:00
130-
p2p_dst_mac 01:80:C2:00:00:0E
131-
udp_ttl 1
132-
udp6_scope 0x0E
133-
uds_address /var/run/ptp4l
134-
#
135-
# Default interface options
136-
#
137-
clock_type BC
138-
network_transport L2
139-
delay_mechanism E2E
140-
time_stamping hardware
141-
tsproc_mode filter
142-
delay_filter moving_median
143-
delay_filter_length 10
144-
egressLatency 0
145-
ingressLatency 0
146-
boundary_clock_jbod 0
147-
#
148-
# Clock description
149-
#
150-
productDescription ;;
151-
revisionData ;;
152-
manufacturerIdentity 00:00:00
153-
userDescription ;
154-
timeSource 0xA0
155-
recommend:
156-
- profile: boundary-clock
157-
priority: 4
158-
match:
159-
- nodeLabel: node-role.kubernetes.io/master
160-
nodeName: <nodename>
34+
include::snippets/ptp_PtpConfigBoundary.yaml[]
16135
----
16236
+
16337
.PTP boundary clock CR configuration options

modules/nw-ptp-configuring-linuxptp-services-as-grandmaster-clock.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ See "Configuring the PTP fast event notifications publisher" for more informatio
3434

3535
.. Save the following YAML in the `grandmaster-clock-ptp-config.yaml` file:
3636
+
37-
include::snippets/grandmaster-clock-ptp-config.adoc[]
37+
.Example PTP grandmaster clock configuration
38+
[source,yaml]
39+
----
40+
include::snippets/ptp_PtpConfigMaster.yaml[]
41+
----
3842

3943
.. Create the CR by running the following command:
4044
+

modules/nw-ptp-configuring-linuxptp-services-as-ordinary-clock.adoc

Lines changed: 2 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -27,128 +27,10 @@ See "Configuring the PTP fast event notifications publisher" for more informatio
2727
. Create the following `PtpConfig` CR, and then save the YAML in the `ordinary-clock-ptp-config.yaml` file.
2828
+
2929
[[ptp-ordinary-clock]]
30-
.Recommended PTP ordinary clock configuration
30+
.Example PTP ordinary clock configuration
3131
[source,yaml]
3232
----
33-
apiVersion: ptp.openshift.io/v1
34-
kind: PtpConfig
35-
metadata:
36-
name: ordinary-clock-ptp-config
37-
namespace: openshift-ptp
38-
spec:
39-
profile:
40-
- name: ordinary-clock
41-
interface: "<interface_name>"
42-
phc2sysOpts: "-a -r -n 24"
43-
ptp4lOpts: "-2 -s"
44-
ptpSchedulingPolicy: SCHED_FIFO
45-
ptpSchedulingPriority: 10
46-
ptp4lConf: |
47-
[global]
48-
#
49-
# Default Data Set
50-
#
51-
twoStepFlag 1
52-
slaveOnly 1
53-
priority1 128
54-
priority2 128
55-
domainNumber 24
56-
clockClass 255
57-
clockAccuracy 0xFE
58-
offsetScaledLogVariance 0xFFFF
59-
free_running 0
60-
freq_est_interval 1
61-
dscp_event 0
62-
dscp_general 0
63-
dataset_comparison G.8275.x
64-
G.8275.defaultDS.localPriority 128
65-
#
66-
# Port Data Set
67-
#
68-
logAnnounceInterval -3
69-
logSyncInterval -4
70-
logMinDelayReqInterval -4
71-
logMinPdelayReqInterval -4
72-
announceReceiptTimeout 3
73-
syncReceiptTimeout 0
74-
delayAsymmetry 0
75-
fault_reset_interval 4
76-
neighborPropDelayThresh 20000000
77-
masterOnly 0
78-
G.8275.portDS.localPriority 128
79-
#
80-
# Run time options
81-
#
82-
assume_two_step 0
83-
logging_level 6
84-
path_trace_enabled 0
85-
follow_up_info 0
86-
hybrid_e2e 0
87-
inhibit_multicast_service 0
88-
net_sync_monitor 0
89-
tc_spanning_tree 0
90-
tx_timestamp_timeout 50
91-
unicast_listen 0
92-
unicast_master_table 0
93-
unicast_req_duration 3600
94-
use_syslog 1
95-
verbose 0
96-
summary_interval 0
97-
kernel_leap 1
98-
check_fup_sync 0
99-
#
100-
# Servo Options
101-
#
102-
pi_proportional_const 0.0
103-
pi_integral_const 0.0
104-
pi_proportional_scale 0.0
105-
pi_proportional_exponent -0.3
106-
pi_proportional_norm_max 0.7
107-
pi_integral_scale 0.0
108-
pi_integral_exponent 0.4
109-
pi_integral_norm_max 0.3
110-
step_threshold 2.0
111-
first_step_threshold 0.00002
112-
max_frequency 900000000
113-
clock_servo pi
114-
sanity_freq_limit 200000000
115-
ntpshm_segment 0
116-
#
117-
# Transport options
118-
#
119-
transportSpecific 0x0
120-
ptp_dst_mac 01:1B:19:00:00:00
121-
p2p_dst_mac 01:80:C2:00:00:0E
122-
udp_ttl 1
123-
udp6_scope 0x0E
124-
uds_address /var/run/ptp4l
125-
#
126-
# Default interface options
127-
#
128-
clock_type OC
129-
network_transport L2
130-
delay_mechanism E2E
131-
time_stamping hardware
132-
tsproc_mode filter
133-
delay_filter moving_median
134-
delay_filter_length 10
135-
egressLatency 0
136-
ingressLatency 0
137-
boundary_clock_jbod 0
138-
#
139-
# Clock description
140-
#
141-
productDescription ;;
142-
revisionData ;;
143-
manufacturerIdentity 00:00:00
144-
userDescription ;
145-
timeSource 0xA0
146-
recommend:
147-
- profile: ordinary-clock
148-
priority: 4
149-
match:
150-
- nodeLabel: "node-role.kubernetes.io/worker"
151-
nodeName: "<node_name>"
33+
include::snippets/ptp_PtpConfigOrdinaryClock.yaml[]
15234
----
15335
+
15436
.PTP ordinary clock CR configuration options

0 commit comments

Comments
 (0)