CatapultServer  v0.5.0.1 (Elephant)
catapult::timesync::filters Namespace Reference

Classes

class  AggregateSynchronizationFilter
 Aggregate synchronization filter. More...
 

Typedefs

using SynchronizationFilter = predicate< const TimeSynchronizationSample &, NodeAge >
 Signature of a synchronization filter. More...
 

Functions

SynchronizationFilter CreateClampingFilter ()
 Creates a filter that filters out out samples that have a non tolerable high time offset. More...
 
SynchronizationFilter CreateResponseDelayDetectionFilter ()
 Creates a filter that filters out samples that indicate an unexpected delay in the response. More...
 
SynchronizationFilter CreateReversedTimestampsFilter ()
 Creates a filter that filters out samples where send and receive timestamps don't have proper order. More...
 

Variables

constexpr auto Tolerated_Deviation_Start = utils::TimeSpan::FromMinutes(120)
 Start value for the maximum tolerated deviation in ms. More...
 
constexpr auto Tolerated_Deviation_Minimum = utils::TimeSpan::FromMinutes(1)
 Minimum value for the maximum tolerated deviation in ms. More...
 
constexpr int64_t Start_Decay_After_Round = 5
 Value that indicates after which round the decay starts. More...
 
constexpr double Decay_Strength = 0.3
 Value that indicates the speed of the decay. More...
 
constexpr double Alpha = 0.4
 Value that indicates the percentage of the samples is discarded. More...
 
constexpr int64_t Tolerated_Duration_Maximum = 1000
 Maximum time in ms that a response to a time sync request may take. More...
 

Typedef Documentation

◆ SynchronizationFilter

Signature of a synchronization filter.

Function Documentation

◆ CreateClampingFilter()

SynchronizationFilter catapult::timesync::filters::CreateClampingFilter ( )

Creates a filter that filters out out samples that have a non tolerable high time offset.

Here is the call graph for this function:

◆ CreateResponseDelayDetectionFilter()

SynchronizationFilter catapult::timesync::filters::CreateResponseDelayDetectionFilter ( )

Creates a filter that filters out samples that indicate an unexpected delay in the response.

◆ CreateReversedTimestampsFilter()

SynchronizationFilter catapult::timesync::filters::CreateReversedTimestampsFilter ( )

Creates a filter that filters out samples where send and receive timestamps don't have proper order.

Variable Documentation

◆ Alpha

constexpr double catapult::timesync::filters::Alpha = 0.4
constexpr

Value that indicates the percentage of the samples is discarded.

◆ Decay_Strength

constexpr double catapult::timesync::filters::Decay_Strength = 0.3
constexpr

Value that indicates the speed of the decay.

◆ Start_Decay_After_Round

constexpr int64_t catapult::timesync::filters::Start_Decay_After_Round = 5
constexpr

Value that indicates after which round the decay starts.

◆ Tolerated_Deviation_Minimum

constexpr auto catapult::timesync::filters::Tolerated_Deviation_Minimum = utils::TimeSpan::FromMinutes(1)
constexpr

Minimum value for the maximum tolerated deviation in ms.

◆ Tolerated_Deviation_Start

constexpr auto catapult::timesync::filters::Tolerated_Deviation_Start = utils::TimeSpan::FromMinutes(120)
constexpr

Start value for the maximum tolerated deviation in ms.

◆ Tolerated_Duration_Maximum

constexpr int64_t catapult::timesync::filters::Tolerated_Duration_Maximum = 1000
constexpr

Maximum time in ms that a response to a time sync request may take.