SolarCapture C Bindings User Guide  SF-115721-CD
Draft 2A
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sc_arista_ts, switch_model=7280, ts_format=48bit

Replace SolarCapture timestamp with timestamp decoded from 48bit timestamp from an Arista 7280 switch.

Detailed Description

This mode is used to decode 48 bit timestamps added by Arista 7280 series switches.

Arguments

Argument Optional? Default Type Description
filter_oui Yes SC_PARAM_STR Assume packets with this OUI in the Ethernet source field do not have a switch timestamp.
strip_ticks Yes 1 SC_PARAM_INT Toggle the option for the node to strip switch timestamps. Set to 0 for off and 1 for on.
ts_src_mac Yes 0 SC_PARAM_INT If set then timestamp is retrieved from source mac address field instead of ethertype layer.
replacement_src_mac Yes SC_PARAM_STR Replace timestamp located in source mac address field by given mac address. Applicable for ts_src_mac=1 only.
switch_model Yes SC_PARAM_STR Passed through from sc_arista_ts, must be either '7280' or unspecified.
ts_format Yes SC_PARAM_STR Passed through from sc_arista_ts, must be either '48bit' or unspecified.

Named Input Links

None

Output Links

Link Default Description
"" free Packets with corrected timestamps
no_timestamp default Packets with no arista 48bit timestamp
lldp no_timestamp Used for LLDP packets

LLDP packets are treated specially because they are not timestamped by the switch, and so it is not possible to give them timestamps with the same clock as other packets.

Exposed Statistics

Arista timestamp statistics that are exposed by the sc_arista_ts node when switch_model=7280, ts_format=48bit.

Name Type Data Type Description
strip_ticks int config 1 if the node is stripping ticks 0 otherwise.
replace_src_mac int config 1 if the node is replacing source mac 0 otherwise.
n_filtered_oui uint64_t pkt_count Number of packets filtered out by OUI.
n_filtered_arista uint64_t pkt_count Number of packets filtered out because of invalid Arista field.
n_filtered_other uint64_t pkt_count Number of packets filtered out for some other reasons.
n_rollover uint64_t pkt_count Number of packets with seconds rollover.