Blame ptp4l.8

Packit Service d8d8ac
.TH PTP4l 8 "April 2018" "linuxptp"
Packit Service d8d8ac
.SH NAME
Packit Service d8d8ac
ptp4l - PTP Boundary/Ordinary/Transparent Clock
Packit Service d8d8ac
Packit Service d8d8ac
.SH SYNOPSIS
Packit Service d8d8ac
.B ptp4l
Packit Service d8d8ac
[
Packit Service d8d8ac
.B \-AEP246HSLmqsv
Packit Service d8d8ac
] [
Packit Service d8d8ac
.BI \-f " config"
Packit Service d8d8ac
] [
Packit Service d8d8ac
.BI \-p " phc-device"
Packit Service d8d8ac
] [
Packit Service d8d8ac
.BI \-l " print-level"
Packit Service d8d8ac
]
Packit Service d8d8ac
[
Packit Service d8d8ac
.BI \-i " interface"
Packit Service d8d8ac
] [
Packit Service d8d8ac
.I long-options
Packit Service d8d8ac
]
Packit Service d8d8ac
.I .\|.\|.
Packit Service d8d8ac
Packit Service d8d8ac
.SH DESCRIPTION
Packit Service d8d8ac
.B ptp4l
Packit Service d8d8ac
is an implementation of the Precision Time Protocol (PTP) according to IEEE
Packit Service d8d8ac
standard 1588 for Linux. It implements Boundary Clock (BC), Ordinary Clock
Packit Service d8d8ac
(OC), and Transparent Clock (TC).
Packit Service d8d8ac
Packit Service d8d8ac
.SH OPTIONS
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-A
Packit Service d8d8ac
Select the delay mechanism automatically. Start with E2E and switch to P2P when
Packit Service d8d8ac
a peer delay request is received.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-E
Packit Service d8d8ac
Select the delay request-response (E2E) mechanism. This is the default
Packit Service d8d8ac
mechanism. All clocks on single PTP communication path must use the same
Packit Service d8d8ac
mechanism. A warning will be printed when a peer delay request is received on
Packit Service d8d8ac
port using the E2E mechanism.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-P
Packit Service d8d8ac
Select the peer delay (P2P) mechanism. A warning will be printed when a delay
Packit Service d8d8ac
request is received on port using the P2P mechanism.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-2
Packit Service d8d8ac
Select the IEEE 802.3 network transport.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-4
Packit Service d8d8ac
Select the UDP IPv4 network transport. This is the default transport.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-6
Packit Service d8d8ac
Select the UDP IPv6 network transport.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-H
Packit Service d8d8ac
Select the hardware time stamping. All ports specified by the
Packit Service d8d8ac
.B \-i
Packit Service d8d8ac
option and in the configuration file must be attached to the same PTP hardware
Packit Service d8d8ac
clock (PHC). This is the default time stamping.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-S
Packit Service d8d8ac
Select the software time stamping.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-L
Packit Service d8d8ac
Select the legacy hardware time stamping.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.BI \-f " config"
Packit Service d8d8ac
Read configuration from the specified file. No configuration file is read by
Packit Service d8d8ac
default.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.BI \-i " interface"
Packit Service d8d8ac
Specify a PTP port, it may be used multiple times. At least one port must be
Packit Service d8d8ac
specified by this option or in the configuration file.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.BI \-p " phc-device"
Packit Service d8d8ac
(This option is deprecated.)
Packit Service d8d8ac
Before Linux kernel v3.5 there was no way to discover the PHC device
Packit Service d8d8ac
associated with a network interface.  This option specifies the PHC
Packit Service d8d8ac
device (e.g. /dev/ptp0) to be used when running on legacy kernels.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-s
Packit Service d8d8ac
Enable the slaveOnly mode.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.BI \-l " print-level"
Packit Service d8d8ac
Set the maximum syslog level of messages which should be printed or sent to
Packit Service d8d8ac
the system logger. The default is 6 (LOG_INFO).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-m
Packit Service d8d8ac
Print messages to the standard output.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-q
Packit Service d8d8ac
Don't send messages to the system logger.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B \-v
Packit Service d8d8ac
Prints the software version and exits.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.BI \-h
Packit Service d8d8ac
Display a help message.
Packit Service d8d8ac
Packit Service d8d8ac
.SH LONG OPTIONS
Packit Service d8d8ac
Packit Service d8d8ac
Each and every configuration file option (see below) may also appear
Packit Service d8d8ac
as a "long" style command line argument.  For example, the slaveOnly
Packit Service d8d8ac
option may be set using either of these two forms.
Packit Service d8d8ac
Packit Service d8d8ac
.RS
Packit Service d8d8ac
\f(CW\-\-slaveOnly 1   \-\-slaveOnly=1\fP
Packit Service d8d8ac
.RE
Packit Service d8d8ac
Packit Service d8d8ac
Option values given on the command line override values in the global
Packit Service d8d8ac
section of the configuration file.
Packit Service d8d8ac
Packit Service d8d8ac
.SH CONFIGURATION FILE
Packit Service d8d8ac
Packit Service d8d8ac
The configuration file is divided into sections. Each section starts with a
Packit Service d8d8ac
line containing its name enclosed in brackets and it follows with settings.
Packit Service d8d8ac
Each setting is placed on a separate line, it contains the name of the
Packit Service d8d8ac
option and the value separated by whitespace characters. Empty lines and lines
Packit Service d8d8ac
starting with # are ignored.
Packit Service d8d8ac
Packit Service d8d8ac
There are three different section types.
Packit Service d8d8ac
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B 1.
Packit Service d8d8ac
The global section (indicated as
Packit Service d8d8ac
.BR [global] )
Packit Service d8d8ac
sets the program options, clock options and default port options. Other
Packit Service d8d8ac
sections are port specific sections and they override the default port options.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B 2.
Packit Service d8d8ac
Port sections give the name of the configured port (e.g.
Packit Service d8d8ac
.BR [eth0] ).
Packit Service d8d8ac
Ports specified in the configuration file don't need to be
Packit Service d8d8ac
specified by the
Packit Service d8d8ac
.B \-i
Packit Service d8d8ac
option. An empty port section can be used to replace the command line option.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B 3.
Packit Service d8d8ac
Tables for configuring unicast discovery begin with
Packit Service d8d8ac
.B \%[unicast_master_table].
Packit Service d8d8ac
Packit Service d8d8ac
See UNICAST DISCOVERY OPTIONS, below.
Packit Service d8d8ac
Packit Service d8d8ac
.SH PORT OPTIONS
Packit Service d8d8ac
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B delayAsymmetry
Packit Service d8d8ac
The time difference in nanoseconds of the transmit and receive
Packit Service d8d8ac
paths. This value should be positive when the master-to-slave
Packit Service d8d8ac
propagation time is longer and negative when the slave-to-master time
Packit Service d8d8ac
is longer. The default is 0 nanoseconds.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B logAnnounceInterval
Packit Service d8d8ac
The mean time interval between Announce messages. A shorter interval makes
Packit Service d8d8ac
ptp4l react faster to the changes in the master-slave hierarchy. The interval
Packit Service d8d8ac
should be the same in the whole domain. It's specified as a power of two in
Packit Service d8d8ac
seconds.
Packit Service d8d8ac
The default is 1 (2 seconds).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B logSyncInterval
Packit Service d8d8ac
The mean time interval between Sync messages. A shorter interval may improve
Packit Service d8d8ac
accuracy of the local clock. It's specified as a power of two in seconds.
Packit Service d8d8ac
The default is 0 (1 second).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B logMinDelayReqInterval
Packit Service d8d8ac
The minimum permitted mean time interval between Delay_Req messages. A shorter
Packit Service d8d8ac
interval makes ptp4l react faster to the changes in the path delay. It's
Packit Service d8d8ac
specified as a power of two in seconds.
Packit Service d8d8ac
The default is 0 (1 second).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B logMinPdelayReqInterval
Packit Service d8d8ac
The minimum permitted mean time interval between Pdelay_Req messages. It's
Packit Service d8d8ac
specified as a power of two in seconds.
Packit Service d8d8ac
The default is 0 (1 second).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B announceReceiptTimeout
Packit Service d8d8ac
The number of missed Announce messages before the last Announce messages
Packit Service d8d8ac
expires.
Packit Service d8d8ac
The default is 3.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B syncReceiptTimeout
Packit Service d8d8ac
The number of sync/follow up messages that may go missing before
Packit Service d8d8ac
triggering a Best Master Clock election. This option is used for
Packit Service d8d8ac
running in gPTP mode according to the 802.1AS-2011 standard. Setting
Packit Service d8d8ac
this option to zero will disable the sync message timeout.
Packit Service d8d8ac
The default is 0 or disabled.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B transportSpecific
Packit Service d8d8ac
The transport specific field. Must be in the range 0 to 255.
Packit Service d8d8ac
The default is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B ignore_transport_specific
Packit Service d8d8ac
By default, incoming messages are dropped if their transportSpecific
Packit Service d8d8ac
field does not match the configured value.  However, many of
Packit Service d8d8ac
transports specified in the 1588 standard mandate ignoring this field.
Packit Service d8d8ac
Moreover, some equipment is known to set the reserved bits.
Packit Service d8d8ac
Configuring this option as 1 causes this field to be ignored
Packit Service d8d8ac
completely on receive.  The default is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B path_trace_enabled
Packit Service d8d8ac
Enable the mechanism used to trace the route of the Announce messages.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B follow_up_info
Packit Service d8d8ac
Include the 802.1AS data in the Follow_Up messages if enabled.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B fault_reset_interval
Packit Service d8d8ac
The time in seconds between the detection of a port's fault and the fault
Packit Service d8d8ac
being reset. This value is expressed as a power of two. Setting this
Packit Service d8d8ac
value to \-128 or to the special key word "ASAP" will let the fault be
Packit Service d8d8ac
reset immediately.
Packit Service d8d8ac
The default is 4 (16 seconds).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B fault_badpeernet_interval
Packit Service d8d8ac
The time in seconds between the detection of a peer network misconfiguration
Packit Service d8d8ac
and the fault being reset. The port is disabled for the duration of the
Packit Service d8d8ac
interval. The value is in seconds and the special key word ASAP will let
Packit Service d8d8ac
the fault be reset immediately.
Packit Service d8d8ac
The default is 16 seconds.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B delay_mechanism
Packit Service d8d8ac
Select the delay mechanism. Possible values are E2E, P2P and Auto.
Packit Service d8d8ac
The default is E2E.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B hybrid_e2e
Packit Service d8d8ac
Enables the "hybrid" delay mechanism from the draft Enterprise
Packit Service d8d8ac
Profile. When enabled, ports in the slave state send their delay
Packit Service d8d8ac
request messages to the unicast address taken from the master's
Packit Service d8d8ac
announce message. Ports in the master state will reply to unicast
Packit Service d8d8ac
delay requests using unicast delay responses. This option has no
Packit Service d8d8ac
effect if the delay_mechanism is set to P2P.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B inhibit_multicast_service
Packit Service d8d8ac
Some unicast mode profiles insist that no multicast message are ever
Packit Service d8d8ac
transmitted.  Setting this option inhibits multicast transmission.
Packit Service d8d8ac
The default is 0 (mutlicast enabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B net_sync_monitor
Packit Service d8d8ac
Enables the NetSync Monitor (NSM) protocol. The NSM protocol allows a
Packit Service d8d8ac
station to measure how well another node is synchronized. The monitor
Packit Service d8d8ac
sends a unicast delay request to the node, which replies
Packit Service d8d8ac
unconditionally with unicast delay response, sync, and follow up
Packit Service d8d8ac
messages. If the monitor is synchronized to the GM, it can use the
Packit Service d8d8ac
time stamps in the message to estimate the node's offset.  This option
Packit Service d8d8ac
requires that the 'hybrid_e2e' option be enabled as well.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B unicast_listen
Packit Service d8d8ac
When enabled, this option allows the port to grant unicast message
Packit Service d8d8ac
contracts.  Incoming requests for will be granted limited only by the
Packit Service d8d8ac
amount of memory available.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B unicast_master_table
Packit Service d8d8ac
When set to a positive integer, this option specifies the table id to
Packit Service d8d8ac
be used for unicast discovery.  Each table lives in its own section
Packit Service d8d8ac
and has a unique, positive numerical ID.  Entries in the table are a
Packit Service d8d8ac
pair of transport type and protocol address.  Tables may not be shared
Packit Service d8d8ac
between ports, but nothing prevents table entries from appearing in
Packit Service d8d8ac
more than table.
Packit Service d8d8ac
The default is 0 (unicast discovery disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B unicast_req_duration
Packit Service d8d8ac
The service time in seconds to be requested during unicast discovery.
Packit Service d8d8ac
Note that the remote node is free to grant a different duration.
Packit Service d8d8ac
The default is 3600 seconds or one hour.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B ptp_dst_mac
Packit Service d8d8ac
The MAC address to which PTP messages should be sent.
Packit Service d8d8ac
Relevant only with L2 transport. The default is 01:1B:19:00:00:00.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B p2p_dst_mac
Packit Service d8d8ac
The MAC address to which peer delay messages should be sent.
Packit Service d8d8ac
Relevant only with L2 transport. The default is 01:80:C2:00:00:0E.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B network_transport
Packit Service d8d8ac
Select the network transport. Possible values are UDPv4, UDPv6 and L2.
Packit Service d8d8ac
The default is UDPv4.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B neighborPropDelayThresh
Packit Service d8d8ac
Upper limit for peer delay in nanoseconds. If the estimated peer delay is
Packit Service d8d8ac
greater than this value the port is marked as not 802.1AS capable.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B masterOnly
Packit Service d8d8ac
Setting this option to one (1) prevents the port from entering the
Packit Service d8d8ac
SLAVE state. In addition, the local clock will ignore Announce
Packit Service d8d8ac
messages received on this port. This option's intended use is to
Packit Service d8d8ac
support the Telecom Profiles according to ITU-T G.8265.1, G.8275.1,
Packit Service d8d8ac
and G.8275.2. The default value is zero or false.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B G.8275.portDS.localPriority
Packit Service d8d8ac
The Telecom Profiles (ITU-T G.8275.1 and G.8275.2) specify an
Packit Service d8d8ac
alternate Best Master Clock Algorithm (BMCA) with a unique data set
Packit Service d8d8ac
comparison algorithm.  The value of this option is associated with
Packit Service d8d8ac
Announce messages arriving on a particular port and is used as a tie
Packit Service d8d8ac
breaker whenever clockClass, clockAccuracy, offsetScaledLogVariance,
Packit Service d8d8ac
and priority2 are equal. This option is only used when
Packit Service d8d8ac
"dataset_comparison" is set to "telecom".
Packit Service d8d8ac
The default value is 128.
Packit Service d8d8ac
Packit Service d8d8ac
Warning: the BMCA is guaranteed to produce a spanning tree (that is, a
Packit Service d8d8ac
timing network without loops) only when using the default values of
Packit Service d8d8ac
G.8275.defaultDS.localPriority and G.8275.portDS.localPriority.
Packit Service d8d8ac
Careful network engineering is needed when using non-default values.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B min_neighbor_prop_delay
Packit Service d8d8ac
Lower limit for peer delay in nanoseconds. If the estimated peer delay is
Packit Service d8d8ac
smaller than this value the port is marked as not 802.1AS capable.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B tsproc_mode
Packit Service d8d8ac
Select the time stamp processing mode used to calculate offset and delay.
Packit Service d8d8ac
Possible values are filter, raw, filter_weight, raw_weight. Raw modes perform
Packit Service d8d8ac
well when the rate of sync messages (logSyncInterval) is similar to the rate of
Packit Service d8d8ac
delay messages (logMinDelayReqInterval or logMinPdelayReqInterval). Weighting
Packit Service d8d8ac
is useful with larger network jitters (e.g. software time stamping).
Packit Service d8d8ac
The default is filter.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B delay_filter
Packit Service d8d8ac
Select the algorithm used to filter the measured delay and peer delay. Possible
Packit Service d8d8ac
values are moving_average and moving_median.
Packit Service d8d8ac
The default is moving_median.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B delay_filter_length
Packit Service d8d8ac
The length of the delay filter in samples.
Packit Service d8d8ac
The default is 10.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B egressLatency
Packit Service d8d8ac
Specifies the difference in nanoseconds between the actual transmission
Packit Service d8d8ac
time at the reference plane and the reported transmit time stamp. This
Packit Service d8d8ac
value will be added to egress time stamps obtained from the hardware.
Packit Service d8d8ac
The default is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B ingressLatency
Packit Service d8d8ac
Specifies the difference in nanoseconds between the reported receive
Packit Service d8d8ac
time stamp and the actual reception time at reference plane. This value
Packit Service d8d8ac
will be subtracted from ingress time stamps obtained from the hardware.
Packit Service d8d8ac
The default is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B boundary_clock_jbod
Packit Service d8d8ac
When running as a boundary clock (that is, when more than one network
Packit Service d8d8ac
interface is configured), ptp4l performs a sanity check to make sure
Packit Service d8d8ac
that all of the ports share the same hardware clock device. This
Packit Service d8d8ac
option allows ptp4l to work as a boundary clock using "just a bunch of
Packit Service d8d8ac
devices" that are not synchronized to each other. For this mode, the
Packit Service d8d8ac
collection of clocks must be synchronized by an external program, for
Packit Service d8d8ac
example phc2sys(8) in "automatic" mode.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B udp_ttl
Packit Service d8d8ac
Specifies the Time to live (TTL) value for IPv4 multicast messages and the hop
Packit Service d8d8ac
limit for IPv6 multicast messages. This option is only relevant with the IPv4
Packit Service d8d8ac
and IPv6 UDP transports. The default is 1 to restrict the messages sent by
Packit Service d8d8ac
.B ptp4l
Packit Service d8d8ac
to the same subnet.
Packit Service d8d8ac
Packit Service d8d8ac
.SH PROGRAM AND CLOCK OPTIONS
Packit Service d8d8ac
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B twoStepFlag
Packit Service d8d8ac
Enable two-step mode for sync messages. One-step mode can be used only with
Packit Service d8d8ac
hardware time stamping.
Packit Service d8d8ac
The default is 1 (enabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B slaveOnly
Packit Service d8d8ac
The local clock is a slave-only clock if enabled.
Packit Service d8d8ac
This option is only for use with 1588 clocks and should not be enabled
Packit Service d8d8ac
for 802.1AS clocks.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B gmCapable
Packit Service d8d8ac
If this option is enabled, then the local clock is able to become grand master.
Packit Service d8d8ac
This is only for use with 802.1AS clocks and has no effect on 1588 clocks.
Packit Service d8d8ac
The default is 1 (enabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B priority1
Packit Service d8d8ac
The priority1 attribute of the local clock. It is used in the best master
Packit Service d8d8ac
selection algorithm, lower values take precedence. Must be in the range 0 to
Packit Service d8d8ac
255.
Packit Service d8d8ac
The default is 128.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B priority2
Packit Service d8d8ac
The priority2 attribute of the local clock. It is used in the best master
Packit Service d8d8ac
selection algorithm, lower values take precedence. Must be in the range 0 to
Packit Service d8d8ac
255.
Packit Service d8d8ac
The default is 128.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B clockClass
Packit Service d8d8ac
The clockClass attribute of the local clock. It denotes the traceability of the
Packit Service d8d8ac
time distributed by the grandmaster clock.
Packit Service d8d8ac
The default is 248.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B clockAccuracy
Packit Service d8d8ac
The clockAccuracy attribute of the local clock. It is used in the best master
Packit Service d8d8ac
selection algorithm.
Packit Service d8d8ac
The default is 0xFE.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B offsetScaledLogVariance
Packit Service d8d8ac
The offsetScaledLogVariance attribute of the local clock. It characterizes the
Packit Service d8d8ac
stability of the clock.
Packit Service d8d8ac
The default is 0xFFFF.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B G.8275.defaultDS.localPriority
Packit Service d8d8ac
The Telecom Profiles (ITU-T G.8275.1 and G.8275.2) specify an
Packit Service d8d8ac
alternate Best Master Clock Algorithm (BMCA) with a unique data set
Packit Service d8d8ac
comparison algorithm.  The value of this option is associated with the
Packit Service d8d8ac
local clock and is used as a tie breaker whenever clockClass,
Packit Service d8d8ac
clockAccuracy, offsetScaledLogVariance, and priority2 are equal. This
Packit Service d8d8ac
option is only used when "dataset_comparison" is set to "telecom".
Packit Service d8d8ac
The default value is 128.
Packit Service d8d8ac
Packit Service d8d8ac
Warning: the BMCA is guaranteed to produce a spanning tree (that is, a
Packit Service d8d8ac
timing network without loops) only when using the default values of
Packit Service d8d8ac
G.8275.defaultDS.localPriority and G.8275.portDS.localPriority.
Packit Service d8d8ac
Careful network engineering is needed when using non-default values.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B domainNumber
Packit Service d8d8ac
The domain attribute of the local clock.
Packit Service d8d8ac
The default is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B utc_offset
Packit Service d8d8ac
The current offset between TAI and UTC.
Packit Service d8d8ac
The default is 37.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B free_running
Packit Service d8d8ac
Don't adjust the local clock if enabled.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B freq_est_interval
Packit Service d8d8ac
The time interval over which is estimated the ratio of the local and
Packit Service d8d8ac
peer clock frequencies. It is specified as a power of two in seconds.
Packit Service d8d8ac
The default is 1 (2 seconds).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B assume_two_step
Packit Service d8d8ac
Treat one-step responses as two-step if enabled. It is used to work around
Packit Service d8d8ac
buggy 802.1AS switches.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B tc_spanning_tree
Packit Service d8d8ac
When running as a Transparent Clock, increment the "stepsRemoved"
Packit Service d8d8ac
field of Announce messages that pass through the switch.  Enabling
Packit Service d8d8ac
this option ensures that PTP message loops never form, provided the
Packit Service d8d8ac
switches all implement this option together with the BMCA.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B tx_timestamp_timeout
Packit Service d8d8ac
The number of milliseconds to poll waiting for the tx time stamp from the kernel
Packit Service d8d8ac
when a message has recently been sent.
Packit Service d8d8ac
The default is 1.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B check_fup_sync
Packit Service d8d8ac
Because of packet reordering that can occur in the network, in the
Packit Service d8d8ac
hardware, or in the networking stack, a follow up message can appear
Packit Service d8d8ac
to arrive in the application before the matching sync message. As this
Packit Service d8d8ac
is a normal occurrence, and the sequenceID message field ensures
Packit Service d8d8ac
proper matching, the ptp4l program accepts out of order packets. This
Packit Service d8d8ac
option adds an additional check using the software time stamps from
Packit Service d8d8ac
the networking stack to verify that the sync message did arrive
Packit Service d8d8ac
first. This option is only useful if you do not trust the sequence IDs
Packit Service d8d8ac
generated by the master.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B clock_servo
Packit Service d8d8ac
The servo which is used to synchronize the local clock. Valid values
Packit Service d8d8ac
are "pi" for a PI controller, "linreg" for an adaptive controller
Packit Service d8d8ac
using linear regression, "ntpshm" for the NTP SHM reference clock to
Packit Service d8d8ac
allow another process to synchronize the local clock (the SHM segment
Packit Service d8d8ac
number is set to the domain number), and "nullf" for a servo that
Packit Service d8d8ac
always dials frequency offset zero (for use in SyncE nodes).
Packit Service d8d8ac
The default is "pi."
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B clock_type
Packit Service d8d8ac
Specifies the kind of PTP clock.  Valid values are "OC" for ordinary
Packit Service d8d8ac
clock, "BC" for boundary clock, "P2P_TC" for peer to peer transparent
Packit Service d8d8ac
clock, and "E2E_TC" for end to end transparent clock.  An multi-port
Packit Service d8d8ac
ordinary clock will automatically be configured as a boundary clock.
Packit Service d8d8ac
The default is "OC".
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_proportional_const
Packit Service d8d8ac
The proportional constant of the PI controller. When set to 0.0, the
Packit Service d8d8ac
proportional constant will be set by the following formula from the current
Packit Service d8d8ac
sync interval.
Packit Service d8d8ac
The default is 0.0.
Packit Service d8d8ac
Packit Service d8d8ac
kp = min(kp_scale * sync^kp_exponent, kp_norm_max / sync)
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_integral_const
Packit Service d8d8ac
The integral constant of the PI controller. When set to 0.0, the
Packit Service d8d8ac
integral constant will be set by the following formula from the current
Packit Service d8d8ac
sync interval.
Packit Service d8d8ac
The default is 0.0.
Packit Service d8d8ac
Packit Service d8d8ac
ki = min(ki_scale * sync^ki_exponent, ki_norm_max / sync)
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_proportional_scale
Packit Service d8d8ac
The kp_scale constant in the formula used to set the proportional constant of
Packit Service d8d8ac
the PI controller from the sync interval. When set to 0.0, the value will be
Packit Service d8d8ac
selected from 0.7 and 0.1 for the hardware and software time stamping
Packit Service d8d8ac
respectively.
Packit Service d8d8ac
The default is 0.0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_proportional_exponent
Packit Service d8d8ac
The kp_exponent constant in the formula used to set the proportional constant of
Packit Service d8d8ac
the PI controller from the sync interval.
Packit Service d8d8ac
The default is \-0.3.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_proportional_norm_max
Packit Service d8d8ac
The kp_norm_max constant in the formula used to set the proportional constant of
Packit Service d8d8ac
the PI controller from the sync interval.
Packit Service d8d8ac
The default is 0.7
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_integral_scale
Packit Service d8d8ac
The ki_scale constant in the formula used to set the integral constant of
Packit Service d8d8ac
the PI controller from the sync interval. When set to 0.0, the value will be
Packit Service d8d8ac
selected from 0.3 and 0.001 for the hardware and software time stamping
Packit Service d8d8ac
respectively.
Packit Service d8d8ac
The default is 0.0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_integral_exponent
Packit Service d8d8ac
The ki_exponent constant in the formula used to set the integral constant of
Packit Service d8d8ac
the PI controller from the sync interval.
Packit Service d8d8ac
The default is 0.4.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B pi_integral_norm_max
Packit Service d8d8ac
The ki_norm_max constant in the formula used to set the integral constant of
Packit Service d8d8ac
the PI controller from the sync interval.
Packit Service d8d8ac
The default is 0.3.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B step_threshold
Packit Service d8d8ac
The maximum offset the servo will correct by changing the clock
Packit Service d8d8ac
frequency instead of stepping the clock. When set to 0.0, the servo will
Packit Service d8d8ac
never step the clock except on start. It's specified in seconds.
Packit Service d8d8ac
The default is 0.0.
Packit Service d8d8ac
This option used to be called
Packit Service d8d8ac
.BR pi_offset_const .
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B first_step_threshold
Packit Service d8d8ac
The maximum offset the servo will correct by changing the clock
Packit Service d8d8ac
frequency instead of stepping the clock. This is only applied on the first
Packit Service d8d8ac
update. It's specified in seconds. When set to 0.0, the servo won't step
Packit Service d8d8ac
the clock on start.
Packit Service d8d8ac
The default is 0.00002 (20 microseconds).
Packit Service d8d8ac
This option used to be called
Packit Service d8d8ac
.BR pi_f_offset_const .
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B max_frequency
Packit Service d8d8ac
The maximum allowed frequency adjustment of the clock in parts per billion
Packit Service d8d8ac
(ppb). This is an additional limit to the maximum allowed by the hardware. When
Packit Service d8d8ac
set to 0, the hardware limit will be used.
Packit Service d8d8ac
The default is 900000000 (90%).
Packit Service d8d8ac
This option used to be called
Packit Service d8d8ac
.BR pi_max_frequency .
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B sanity_freq_limit
Packit Service d8d8ac
The maximum allowed frequency offset between uncorrected clock and the system
Packit Service d8d8ac
monotonic clock in parts per billion (ppb). This is used as a sanity check of
Packit Service d8d8ac
the synchronized clock. When a larger offset is measured, a warning message
Packit Service d8d8ac
will be printed and the servo will be reset. When set to 0, the sanity check is
Packit Service d8d8ac
disabled. The default is 200000000 (20%).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B initial_delay
Packit Service d8d8ac
The initial path delay of the clock in nanoseconds used for synchronization of
Packit Service d8d8ac
the clock before the delay is measured using the E2E or P2P delay mechanism. If
Packit Service d8d8ac
set to 0, the clock will not be updated until the delay is measured.
Packit Service d8d8ac
The default is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B ntpshm_segment
Packit Service d8d8ac
The number of the SHM segment used by ntpshm servo.
Packit Service d8d8ac
The default is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B udp6_scope
Packit Service d8d8ac
Specifies the desired scope for the IPv6 multicast messages.  This
Packit Service d8d8ac
will be used as the second byte of the primary address.  This option
Packit Service d8d8ac
is only relevant with IPv6 transport.  See RFC 4291.  The default is
Packit Service d8d8ac
0x0E for the global scope.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B uds_address
Packit Service d8d8ac
Specifies the address of the UNIX domain socket for receiving local
Packit Service d8d8ac
management messages. The default is /var/run/ptp4l.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B dscp_event
Packit Service d8d8ac
Defines the Differentiated Services Codepoint (DSCP) to be used for PTP
Packit Service d8d8ac
event messages. Must be a value between 0 and 63. There are several media
Packit Service d8d8ac
streaming standards out there that require specific values for this option.
Packit Service d8d8ac
For example 46 (EF PHB) in AES67 or 48 (CS6 PHB) in RAVENNA. The default
Packit Service d8d8ac
is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B dscp_general
Packit Service d8d8ac
Defines the Differentiated Services Codepoint (DSCP) to be used for PTP
Packit Service d8d8ac
general messages. Must be a value between 0 and 63. There are several media
Packit Service d8d8ac
streaming standards out there that recommend specific values for this option.
Packit Service d8d8ac
For example 34 (AF41 PHB) in AES67 or 46 (EF PHB) in RAVENNA. The default
Packit Service d8d8ac
is 0.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B dataset_comparison
Packit Service d8d8ac
Specifies the method to be used when comparing data sets during the
Packit Service d8d8ac
Best Master Clock Algorithm.  The possible values are "ieee1588" and
Packit Service d8d8ac
"G.8275.x".  The default is "ieee1588".
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B logging_level
Packit Service d8d8ac
The maximum logging level of messages which should be printed.
Packit Service d8d8ac
The default is 6 (LOG_INFO).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B message_tag
Packit Service d8d8ac
The tag which is added to all messages printed to the standard output or system
Packit Service d8d8ac
log.
Packit Service d8d8ac
The default is an empty string (which cannot be set in the configuration file
Packit Service d8d8ac
as the option requires an argument).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B verbose
Packit Service d8d8ac
Print messages to the standard output if enabled.
Packit Service d8d8ac
The default is 0 (disabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B use_syslog
Packit Service d8d8ac
Print messages to the system log if enabled.
Packit Service d8d8ac
The default is 1 (enabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B summary_interval
Packit Service d8d8ac
The time interval in which are printed summary statistics of the clock. It is
Packit Service d8d8ac
specified as a power of two in seconds. The statistics include offset root mean
Packit Service d8d8ac
square (RMS), maximum absolute offset, frequency offset mean and standard
Packit Service d8d8ac
deviation, and path delay mean and standard deviation. The units are
Packit Service d8d8ac
nanoseconds and parts per billion (ppb). If there is only one clock update in
Packit Service d8d8ac
the interval, the sample will be printed instead of the statistics. The
Packit Service d8d8ac
messages are printed at the LOG_INFO level.
Packit Service d8d8ac
The default is 0 (1 second).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B time_stamping
Packit Service d8d8ac
The time stamping method. The allowed values are hardware, software and legacy.
Packit Service d8d8ac
The default is hardware.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B productDescription
Packit Service d8d8ac
The product description string. Allowed values must be of the form
Packit Service d8d8ac
manufacturerName;modelNumber;instanceIdentifier and contain at most 64
Packit Service d8d8ac
utf8 symbols. The default is ";;".
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B revisionData
Packit Service d8d8ac
The revision description string which contains the revisions for node
Packit Service d8d8ac
hardware (HW), firmware (FW), and software (SW). Allowed values are of
Packit Service d8d8ac
the form HW;FW;SW and contain at most 32 utf8 symbols. The default is
Packit Service d8d8ac
an ";;".
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B userDescription
Packit Service d8d8ac
The user description string. Allowed values are of the form
Packit Service d8d8ac
name;location and contain at most 128 utf8 symbols. The default is an
Packit Service d8d8ac
empty string.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B manufacturerIdentity
Packit Service d8d8ac
The manufacturer id which should be an OUI owned by the manufacturer.
Packit Service d8d8ac
The default is 00:00:00.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B kernel_leap
Packit Service d8d8ac
When a leap second is announced, let the kernel apply it by stepping the clock
Packit Service d8d8ac
instead of correcting the one-second offset with servo, which would correct the
Packit Service d8d8ac
one-second offset slowly by changing the clock frequency (unless the
Packit Service d8d8ac
.B step_threshold
Packit Service d8d8ac
option is set to correct such offset by stepping).
Packit Service d8d8ac
Relevant only with software time stamping. The default is 1 (enabled).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B timeSource
Packit Service d8d8ac
The time source is a single byte code that gives an idea of the kind
Packit Service d8d8ac
of local clock in use. The value is purely informational, having no
Packit Service d8d8ac
effect on the outcome of the Best Master Clock algorithm, and is
Packit Service d8d8ac
advertised when the clock becomes grand master.
Packit Service d8d8ac
Packit Service d8d8ac
.SH UNICAST DISCOVERY OPTIONS
Packit Service d8d8ac
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B table_id
Packit Service d8d8ac
Each table must begin with a unique, positive table ID.  The port that
Packit Service d8d8ac
claims a given table does so by including the ID as the value of
Packit Service d8d8ac
its 'unicast_master_table' option.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B logQueryInterval
Packit Service d8d8ac
This option configures the time to wait between unicast negotiation
Packit Service d8d8ac
attempts.  It is specified as a power of two in seconds.
Packit Service d8d8ac
The default is 0 (1 second).
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B peer_address
Packit Service d8d8ac
This option specifies the unicast address of the peer for use with the
Packit Service d8d8ac
peer to peer delay mechanism.  If specified, the port owning the table
Packit Service d8d8ac
will negotiate unicast peer delay responses from the machine at the
Packit Service d8d8ac
given remote address, otherwise the port will send multicast peer
Packit Service d8d8ac
delay requests.
Packit Service d8d8ac
.TP
Packit Service d8d8ac
.B L2|UDPv4
Packit Service d8d8ac
Each table entry specifies the transport type and network address of a
Packit Service d8d8ac
potential remote master.  If multiple masters are specified, then
Packit Service d8d8ac
unicast negotiation will be performed with each if them.
Packit Service d8d8ac
Packit Service d8d8ac
.SH TIME SCALE USAGE
Packit Service d8d8ac
Packit Service d8d8ac
.B ptp4l
Packit Service d8d8ac
as domain master either uses PTP or UTC time scale depending on time stamping
Packit Service d8d8ac
mode.  In software and legacy time stamping modes it announces Arbitrary time
Packit Service d8d8ac
scale mode, which is effectively UTC here, in hardware time stamping mode it
Packit Service d8d8ac
announces use of PTP time scale.
Packit Service d8d8ac
Packit Service d8d8ac
When
Packit Service d8d8ac
.B ptp4l
Packit Service d8d8ac
is the domain master using hardware time stamping, it is up to
Packit Service d8d8ac
.B phc2sys
Packit Service d8d8ac
to maintain the correct offset between UTC and PTP times. See
Packit Service d8d8ac
.BR phc2sys (8)
Packit Service d8d8ac
manual page for more details.
Packit Service d8d8ac
Packit Service d8d8ac
.SH SEE ALSO
Packit Service d8d8ac
.BR pmc (8),
Packit Service d8d8ac
.BR phc2sys (8)