struct tapi_trex_report

Overview

TRex information from the stdout. More…

#include <tapi_trex.h>

struct tapi_trex_report {
    // fields

    double avg_tx;
    double avg_rx;
    double avg_cps;
    uint64_t tx_pkts;
    uint64_t rx_pkts;
    double m_traff_dur_cl;
    double m_traff_dur_srv;
    uint64_t total_tx_bytes;
    uint64_t total_rx_bytes;
    uint64_t latency_tx_pkts;
    uint64_t latency_rx_pkts;
    uint64_t latency_avg_usec;
    uint64_t latency_max_usec;
    tapi_trex_opt_flt_vals* opt_flts_vals;
    tapi_trex_per_port_stat per_port_stat;
    tapi_trex_global_stat* global_stat;
};

Detailed Documentation

TRex information from the stdout.

Fields

double avg_tx

Average Tx per second, bps.

double avg_rx

Average Rx per second, bps.

double avg_cps

Average connections per second, cps.

uint64_t tx_pkts

Total tx packets.

uint64_t rx_pkts

Total rx packets.

double m_traff_dur_cl

Diration of client traffic, sec.

double m_traff_dur_srv

Diration of server traffic, sec.

uint64_t total_tx_bytes

Total bytes sent.

uint64_t total_rx_bytes

Total bytes received.

uint64_t latency_tx_pkts

Latency probe packets sent during the run, summed over all interfaces. Populated only when tapi_trex_opt::latency_pps is set; 0 otherwise.

uint64_t latency_rx_pkts

Latency probe packets received back, summed over all interfaces. Populated only when tapi_trex_opt::latency_pps is set; 0 otherwise.

Comparing this to latency_tx_pkts tells whether latency probing actually worked: 0 received while latency_tx_pkts is nonzero means no probe ever came back, which is a broken measurement rather than a genuine zero latency result.

uint64_t latency_avg_usec

Average latency of the probe packets over the whole run, in microseconds, as reported by TRex’s “average-latency” line. Meaningless (0) unless latency_tx_pkts is nonzero.

uint64_t latency_max_usec

Maximum latency of the probe packets over the whole run, in microseconds, as reported by TRex’s “maximum-latency” line. Meaningless (0) unless latency_tx_pkts is nonzero.

tapi_trex_opt_flt_vals* opt_flts_vals

Optional filter values.

tapi_trex_per_port_stat per_port_stat

Per port statistics.

tapi_trex_global_stat* global_stat

Global statistics