Exemples de configurations client
Selon le type de service Equinix Precision Time que vous et vos clients utilisez, différents paramètres de configuration client PTP et NTP sont requis.
Configurations du service Equinix PTP
| Configuration Parameter | Equinix Provided Configurations | Tool Tip |
|---|---|---|
| Domain | 30 | PTP domain is a network, or portion of a network, within which PTP operates. Within this network, all the clocks are in sync. |
| Log Announce Interval | 1 | Logarithmic value that controls the rate of PTP Announce packets from the PTP time server. Default is 1 (1 packet every 2 seconds). |
| Log Delayreq Interval | -4 | Logarithmic value that controls the rate of PTP DelayReq packets. Default is -4 (16 packets per second). |
| Log Sync Interval | -4 | Logarithmic value that controls the rate of PTP Sync packets. Default is -4 (16 packets per second). |
| Priority1 | 128 | Lower value indicates higher priority. |
| Priority2 | 128 | Lower value indicates higher priority. |
| Clock Class | 13 | Value that indicates the timescale which delivers UTC timestamps (set by default). |
| Clock Accuracy | 23 | Value that indicates how accurate the source is to UTC time. Equinix Time sources are accurate up to 1µs from UTC (set by default). |
Exemples de configurations
Ces sections contiennent des exemples de code de configuration pour les clients NTP et PTP. Les valeurs s'appliquent aux paramètres par défaut du service de Precision Time .
Exemple de configuration - chronyd
server 192.168.1.21 iburst prefer
server 192.168.1.22 iburst prefer
driftfile /path/to/chrony/drift
makestep 1 3
rtcsync
logdir /path/to/log/directory
pidfile /path/to/chrony.pid
log measurements statistics tracking
Exemple de configuration - ntpd
Le démon Network Time Protocol (ntpd) est la configuration type utilisée pour les périphériques clients NTP.
driftfile /var/lib/ntp/drift
restrict default nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict ::1
server 192.168.1.21 iburst true
server 192.168.1.22 iburst true
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
disable monitor
Exemple de configuration - ptpd
De même, le démon Precision Time Protocol (ptpd) maintient l'heure du système pour se synchroniser avec les serveurs de temps utilisant le protocole PTP.
ptpengine:preset=slaveonly
ptpengine:domain=30
ptpengine:sync_outlier_filter_enable=y
ptpengine:delay_outlier_filter_enable=y
ptpengine:sync_stat_filter_enable=y
ptpengine:delay_stat_filter_enable=y
ptpengine:log_announce_interval=1
ptpengine:log_sync_interval=-4
ptpengine:log_delayreq_interval=-4
ptpengine:calibration_delay=20
ptpengine:hardware_timestamping=y
clock:allow_step_backwards=y
clock:allow_step_backwards_hw=y
global:log_status=y
global:status_file=/path/to/ptp.status
global:log_file=/path/to/ptp.log
global:log_statistics=y
global:statistics_log_interval=0
global:statistics_timestamp_format=both
global:statistics_update_interval=1
global:statistics_file=/path/to/ptp.statistics
global:lock_file=/path/to/ptp.pid
Exemple de configuration - ptp4l
L'outil ptp4l est une implémentation de PTP pour Linux.
[global]
twoStepFlag 1
slaveOnly 0
priority1 128
priority2 128
domainNumber 30
logAnnounceInterval 1
logSyncInterval -4
logMinDelayReqInterval -4
tx_timestamp_timeout 100
logging_level 6
Exemple de configuration - Configuration du mode d'horloge limite de l'Arista 7050
Cet outil Arista 7050 est une implémentation du PTP IEEE 1588 pour l'horloge limite. Si vous utilisez Arista 7050 pour le mode boundary clock au sein du réseau client, cet exemple de code de configuration peut être utilisé.
<< Enabling Global PTP configurations on the switch >>
ptp mode boundary
ptp domain 30
ptp source ip 172.16.100.9
<< Slave Port Specific Configuration>>
interface Ethernet47
description ECX::EQIX-EPT-SV5-CX-PRI-03
switchport mode trunk
ptp enable
ptp sync-message interval -4
ptp announce interval 0
ptp delay-req interval -4
ptp vlan 111
Exemple de configuration – Mode d'horloge limite Arista 7150
Voici un outil similaire, pour Arista 7150. Si vous utilisez l'Arista 7150 pour le mode d'horloge limite dans le réseau client, cet exemple de code de configuration peut être utilisé.
<< Slave Port Specific Configuration>>
interface Port-Channel13
switchport trunk allowed vlan 13
switchport mode trunk
ptp enable
ptp sync-message interval -4
ptp announce interval 1
ptp delay-req interval -4
ptp vlan 13
interface Ethernet44
description reserved_PTP
switchport trunk allowed vlan 13
switchport mode trunk
channel-group 13 mode active
ptp enable
ptp vlan 13
<< Enabling Global PTP configurations on the switch >>
ptp domain 30
ptp source ip 10.100.1.209
ptp priority1 129
ptp mode boundary
Exemple de configuration - Solution NTP sur Anycast utilisant Network Edge
Consultez le Cas d'utilisation Anycast pour plus de détails sur la configuration des périphériques Network Edge, y compris les routeurs, les pare-feu et NTP, sur Anycast.