クライアント構成例
お客様とお客様のクライアントが使用するエクイニクスPrecision Timeサービスのタイプに応じて、さまざまなPTPおよびNTPクライアント設定が必要です。
エクイニクス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). |
サンプル構成
これらのセクションには、NTP および PTP クライアントのサンプル構成コードが含まれています。値は、デフォルトの Precision Time Service 設定に適用されます。
サンプル構成 - 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
サンプル設定 - ntpd
Network Time Protocol daemon (ntpd)は、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
サンプルコンフィギュレーション - ptpd
同様に、Precision Time Protocolデーモン(ptpd)は、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
サンプルコンフィギュレーション - ptp4l
ptp4l ツールは、Linux 用の PTP を実装したものである。
[global]
twoStepFlag 1
slaveOnly 0
priority1 128
priority2 128
domainNumber 30
logAnnounceInterval 1
logSyncInterval -4
logMinDelayReqInterval -4
tx_timestamp_timeout 100
logging_level 6
サンプル構成 - Arista 7050 バウンダリクロックモードの構成
このArista 7050のツールは、IEEE 1588 PTPをバウンダリクロック用に実装したものです。クライアントネットワーク内でバウンダリクロックモードにArista 7050を使用する場合、このサンプルコンフィグレーションコードを使用することができます。
<< 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
サンプル構成 - Arista 7150バウンダリ・クロック・モード
これは、Arista 7150 用の、同様のツールです。Arista 7150 をクライアントネットワーク内のバウンダリクロックモードで使用する場合、このサンプル設定コードを使用することができます。
<< 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
サンプル・コンフィギュレーション - ネットワーク・エッジを使用した NTP over Anycast ソリューション
ルータ、ファイアウォール、NTP などの Network Edge デバイスを Anycast で設定する方法の詳細については、Anycast ユースケース を参照してください。