stream_statistics.h
Go to the documentation of this file.
107 * @note The statistic stream is not thread-safe. If the same stream handle is to be used by multiple threads,
118 NT_STATISTICS_READ_CMD_COMPAT_0, //!< Command for backward compatibility - defined in stream_statistics_compat.h
119 NT_STATISTICS_READ_CMD_COMPAT_1, //!< Command for backward compatibility - defined in stream_statistics_compat.h
120 NT_STATISTICS_READ_CMD_COMPAT_2, //!< Command for backward compatibility - defined in stream_statistics_compat.h
131 uint64_t dropEvents; //!< Number of events where packet(s) are dropped by the MAC because they are too small or the MAC has bandwidth issues
135 uint64_t multicastPkts; //!< Number of multicast packets including MAC pause and MAC control packets
137 uint64_t undersizePkts; //!< Number of packets < 64 octets.\n<b>Note:</b> 100G products with Xilinx FPGA drop packets smaller than 64 bytes. Packets < 64 octets are instead counted as dropEvents. The counter undersizePkts is always 0 on these products.\n <b>Note:</b> When packets with a size in the range [17..63] are transmitted on the following 1G adapters: NT4E2-4-PTP, NT4E2-4T-BP, NT4E and NT4E-STD using the segment interface, the packets will silently be padded to a size of 64 bytes, which is the size reported by @ref NtLinkCapabilities_s::minTxPktSize. For this reason they will be registered as 64 octet packets and not as an undersize packets.
138 uint64_t oversizePkts; //!< Number of packets > 1518 octets (and for NT adapters, packets > MAX and packets < 10000) If packets count here they do not count in the packet and octet counters.\n<b>Note:</b> This counter doesn't count in the TX direction for the following products: NT4E CAPTURE, NT4E-STD CAPTURE, NT20E CAPTURE.
139 uint64_t fragments; //!< Number of packets < 64 octets with errors.\n<b>Note:</b> 100G products with Xilinx FPGA drop packets smaller than 64 bytes. Packets < 64 octets are instead counted as dropEvents. The counter fragments is always 0 on these products.\n
140 uint64_t jabbers; //!< Number of packets > MAX with errors - if packets count here they do not count in the packets and octets counters
159 uint64_t pktsHardSliceJabber; //!< Number of bad packets in the range 10001 to 16383 octets and packets > 16383 octets
181 uint64_t pktsGiantUndersize; //!< Number of packets > 63 bytes including tags and =< 63 excluding tags
199 uint64_t pktsMacBandwidth; //!< Number of packets dropped by the MAC because of bandwidth issues and number of packets < 17 octets. This counter is also available in @ref NtRMON1Counters_s::dropEvents.
235 uint64_t ts; //!< Color counter sample time stamp. The format of the timestamp is specified by @ref tsType.
236 enum NtTimestampType_e tsType; //!< Time stamp type - For a description of the time stamp type see "DN-0384 3GD Time-Stamping and Time Synchronization User Guide"
251 uint64_t ipFragTableFirstNoHit; //!< Counts all IPv4/IPv6 first-fragment misses in FPGA IPF-table (first fragment not received)
253 uint64_t ipFragTableMidNoHit; //!< Counts all IPv4/IPv6 mid-fragment misses in FPGA IPF-table (middle fragment not received)
255 uint64_t ipFragTableLastNoHit; //!< Counts all IPv4/IPv6 last-fragment misses in FPGA IPF-table (last fragment not received - e.g. before timeout)
289 uint64_t ts; //!< Port counter sample time stamp. The format of the timestamp is specified by @ref tsType.
290 enum NtTimestampType_e tsType; //!< Time stamp type - For a description of the time stamp type see "DN-0384 3GD Time-Stamping and Time Synchronization User Guide"
299 struct NtColorStatistics_s flush; //!< Number of flushed packets/bytes. Received while the stream-id is inactive
304 struct NtColorStatistics_s flush; //!< Number of flushed packets/bytes. Received while the stream-id is inactive
306 } Unassigned; //!< Statistic for traffic received in a host buffer before it has been assigned to a stream-id.
307 uint64_t ts; //!< Stream statistic sample time stamp. The format of the timestamp is specified by the timestamp setting @ref TimestampFormat in the ini-file.
312 int clear; //!< Clears the statistical information after it has been read. All statistics counters for the current stream will be cleared. Other statistics streams will remain untouched.
322 uint8_t Reserved1[3];
334 uint8_t Reserved1[3];
386 uint8_t reserved[3];
409 uint8_t reserved[3];
441 struct NtStatisticsQuery_v3_s query_v3; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY_V3
442 struct NtStatisticsUsageData_v0_s usageData_v0; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_USAGE_DATA
443 struct NtStatisticsFlowData_v0_s flowData_v0; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_FLOW_V0
444 struct NtStatisticsFlowData_v1_s flowData_v1; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_FLOW_V1
447 struct NtStatisticsQuery_v2_s query_v2; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY_V2
448 struct NtStatisticsQuery_v1_s query_v1; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY_V1
449 struct NtStatisticsQuery_s query; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY