Scroll to navigation

man(8) synce4l man page man(8)

NAME

synce4l - Synchronous Ethernet (SyncE) controller application

SYNOPSIS

synce4l -f [file] [-l <num>] [-m] [-q] [-v] [-h]

DESCRIPTION

synce4l is an implementation of the Synchronous Ethernet (SyncE) protocol according to ITU-T Rec. G.8264. The design goal is to provide logic to supported hardware by processing Ethernet Synchronization Messaging Channel (ESMC) and control Ethernet Equipment Clock (EEC) on Network Card Interface (NIC).

Application can operate in two mutually exclusive modes: line or external.

If `synce4l` is configured to run in external input mode then EEC needs to have external 1PPS source attached (GPS or other generator). In this scenario `synce4l` always broadcasts clock quality level (QL) defined in configuration file. Additionally, for external input mode incoming SyncE frames do not participate in best source selection algorithm for EEC.

In line input mode incoming SyncE frames are processed and best clock source is extracted from the link having the best quality level. `synce4l` configures such "best quality" port as a source to recover clock for EEC. The recovered QL is broadcasted to all other interfaces then. An external clock source cannot be used in this mode.

OPTIONS

read configuration from 'file' (config file takes precedence over command line arguments)
set the logging level to 'num' (0: least detailed, 7: most detailed)
print messages to stdout
do not print messages to the syslog
print synce4l version and exit
print this message and exit

CONFIGURATION FILE

Configuration file contains three sections:

-
global,
-
device,
-
port.

Global section

This section starts with `[global]` keyword. It sets the logging options.

Available options:
Minimum log level required to appear in a log.

Defaults to 6, valid values are 0 - 7
Tag reported in a log.
Set to 1 if `syslog` should be used.

Defaults to 1, valid values are 0 or 1
Set to 1 to log extra information.

Defaults to 0, valid values are 0 or 1

Device section

This section specifies the configuration of a one logical device e.g. 'synce1'. The name is defined by the user. The name has no impact for any functionality except traces. The name must be enclosed in extra angle bracket when defining new device section e.g. [<synce1>]. All ports defined by port sections after the device section will create one SyncE device (until next device section).

Available options:
Set to "line" to enable line input mode, set "external" for external input mode.

Defaults to "line", valid values are "line" or "external"
Quality Level (QL) for "external input" mode.

Valid values specified in ITU-T Recommendations
Extended Quality Level for "external input" mode.

Valid values specified in ITU-T Recommendations
Set to 1 to enable extended QL.

Defaults to 0, valid values are 0 or 1
Network option according to T-REC-G.8264. All devices in SyncE domain should have the same option configured.

Defaults to 1, valid values are 1 or 2
Seconds indicating the minimum time to recover from the QL-failed state on the port.

Defaults to 60, valid values are 10 - 720
Defines a shell command which will be executed by synce4l to acquire current state of a SyncE EEC on the device. Separated command must be provided by the user for each device confgured for frequency synchronization. The command shall output current state of EEC to stdout, expected values are defined (also by the user) with following configuration items: eec_holdover_value, eec_locked_ho_value, eec_locked_value, eec_freerun_value, eec_invalid_value.
Defines a string value expected on stdout stream when EEC is in HOLDOVER state.

Defines a string value expected on stdout stream when EEC is in LOCKED HOLDOVER state.

Defines a string value expected on stdout stream when EEC is in LOCKED state.

Defines a string value expected on stdout stream when EEC is in FREERUN state.

Defines a string value expected on stdout stream when EEC is in INVALID state.

Port section

Any other section not starting with `<` (e.g. [eth0]) is the port section. Multiple port sections are allowed. Each port participates in SyncE communication.

Available options:
Interval between consecutive SyncE frame transmissions (1000ms recommended).

Defaults to 1000, valid values are 100 - 3000
Interval between consecutive SyncE socket polls (frame receive).

Defaults to 50, valid values are 10 - 500
A shell command which enables PHY port pointed by this Port section as a source of frequency for the SyncE EEC on this device (required only in "internal input" mode).
A shell command which disables PHY port pointed by this Port section as a source of frequency for the SyncE EEC on this device (required only in "internal input" mode).
List of integers containing allowed SSM QLs separated by comma (`,`), other received ones would be discarded. If parameter is not provided, all QLs will be accepted.
List of integers containing allowed extended SSM QLs separated by comma (`,`), other received ones would be discarded. If parameter is not provided, all QLs will be accepted.

BUGS

No known bugs.

AUTHOR

Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>

Michal Michalik <michal.michalik@intel.com>

27 Oct 2022 1.0