PTP Simulator

PTP Simulator

usage: simulate [-h] [-N NUM_ITER] [-t SIM_STEP] [-s] [-f FILE] [--verbose]
                [--rtc-clk-freq RTC_CLK_FREQ]
                [--rtc-resolution RTC_RESOLUTION] [--sync-rate SYNC_RATE]
                [--freq-tolerance FREQ_TOLERANCE] [--freq-rw FREQ_RW]
                [--phase-rw PHASE_RW] [--pdv-distr {Gamma,Gaussian}]
                [--gamma-shape GAMMA_SHAPE] [--gamma-scale GAMMA_SCALE]
                [--no-ts-quantization]

Named Arguments

-N, --num-iter

Number of iterations.

Default: 10

-t, --sim-step

Simulation time step in seconds.

Default: 1e-09

-s, --save

Save dataset generated by the PTP simulation.

Default: False

-f, --file

File containing simulation data to load.

--verbose, -v

Verbosity (logging) level

Default: 1

Simulation parameters

--rtc-clk-freq

RTC’s driving clock frequency in Hz

Default: 125000000.0

--rtc-resolution

Fixed-point representation resolution in ns of the RTC’s increment value

Default: 0

--sync-rate

Sync transmission rate in packets per second

Default: 16

--freq-tolerance

Slave RTC’s frequency tolerance in ppb

Default: 60

--freq-rw

Normalized variance of the slave RTC’s random-walk in frequency (set 0 to disable this source of phase noise)

Default: 1e-18

--phase-rw

Normalized variance of the slave RTC’s random-walk in phase, a.k.a. white noise in frequency (set 0 to disable this source of phase noise)

Default: 1e-12

--pdv-distr

Possible choices: Gamma, Gaussian

Distribution of the PDV experienced by PTP messages in the simulation (Gamma or Gaussian)

Default: “Gamma”

--gamma-shape

Shape parameter of the Gamma distribution

--gamma-scale

Scale parameter of the Gamma distribution

--no-ts-quantization

Disables the quantization of the time scale

Default: False