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
121 NT_STATISTICS_READ_CMD_COMPAT_3, //!< Command for backward compatibility - defined in stream_statistics_compat.h
133 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
137 uint64_t multicastPkts; //!< Number of multicast packets including MAC pause and MAC control packets
139 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.
140 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.
141 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
142 uint64_t jabbers; //!< Number of packets > MAX with errors - if packets count here they do not count in the packets and octets counters
161 uint64_t pktsHardSliceJabber; //!< Number of bad packets in the range 10001 to 16383 octets and packets > 16383 octets
183 uint64_t pktsGiantUndersize; //!< Number of packets > 63 bytes including tags and =< 63 excluding tags
201 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.
203 uint64_t pktsOverflow; //!< Number of packets dropped because the associated SDRAM and host buffers are full
204 uint64_t octetsOverflow; //!< Number of octets dropped because the associated SDRAM and host buffers are full
237 uint64_t ts; //!< Color counter sample time stamp. The format of the timestamp is specified by @ref tsType.
238 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"
271 uint32_t bip; //!< BIP count: This counts the number of alignment markers seen which contain BIP errors.
297 uint64_t ipFragTableFirstNoHit; //!< Counts all IPv4/IPv6 first-fragment misses in FPGA IPF-table (first fragment not received)
299 uint64_t ipFragTableMidNoHit; //!< Counts all IPv4/IPv6 mid-fragment misses in FPGA IPF-table (middle fragment not received)
301 uint64_t ipFragTableLastNoHit; //!< Counts all IPv4/IPv6 last-fragment misses in FPGA IPF-table (last fragment not received - e.g. before timeout)
339 uint64_t ts; //!< Port counter sample time stamp. The format of the timestamp is specified by @ref tsType.
340 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"
349 struct NtColorStatistics_s flush; //!< Number of flushed packets/bytes. Received while the stream-id is inactive
354 struct NtColorStatistics_s flush; //!< Number of flushed packets/bytes. Received while the stream-id is inactive
356 } Unassigned; //!< Statistic for traffic received in a host buffer before it has been assigned to a stream-id.
357 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.
362 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.
372 uint8_t Reserved1[3];
384 uint8_t Reserved1[3];
436 uint8_t reserved[3];
459 uint8_t reserved[3];
483 uint8_t reserved[3];
531 struct NtStatisticsQuery_v4_s query_v4; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY_V4
532 struct NtStatisticsUsageData_v0_s usageData_v0; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_USAGE_DATA
533 struct NtStatisticsFlowData_v0_s flowData_v0; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_FLOW_V0
534 struct NtStatisticsFlowData_v1_s flowData_v1; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_FLOW_V1
535 struct NtStatisticsFlowData_v2_s flowData_v2; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_FLOW_V2
538 struct NtStatisticsQuery_v3_s query_v3; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY_V3
539 struct NtStatisticsQuery_v2_s query_v2; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY_V2
540 struct NtStatisticsQuery_v1_s query_v1; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY_V1
541 struct NtStatisticsQuery_s query; //!< The structure to use for @ref NtStatistics_s::cmd==NT_STATISTICS_READ_CMD_QUERY