8.2.4.3.15.3. TX Statistics
8.2.4.3.15.3.1. Clear Counter
Clear all the transmit statistics for a port. The byte and packet counts will restart at zero.
Corresponding low-level API class: PT_CLEAR
# TX Statistics - Clear Counter
await port.statistics.tx.clear.set()
8.2.4.3.15.3.2. Total Counter
Obtains statistics concerning all the packets transmitted on a port.
Corresponding low-level API class: PT_TOTAL
# TX Statistics - Total Counter
resp = await port.statistics.tx.total.get()
resp.byte_count_since_cleared
resp.packet_count_since_cleared
resp.bit_count_last_sec
resp.packet_count_last_sec
8.2.4.3.15.3.3. Non-TPLD Counter
Obtains statistics concerning the packets without a test payload transmitted on a port.
Corresponding low-level API class: PT_NOTPLD
# TX Statistics - Non-TPLD Counter
resp = await port.statistics.tx.no_tpld.get()
resp.byte_count_since_cleared
resp.packet_count_since_cleared
resp.bit_count_last_sec
resp.packet_count_last_sec
8.2.4.3.15.3.4. Extra Counter
Obtains additional statistics for packets transmitted on a port.
Corresponding low-level API class: PT_EXTRA
# TX Statistics - Extra Counter
resp = await port.statistics.tx.extra.get()
resp.tx_arp_req_count
8.2.4.3.15.3.5. Stream Counter
Obtains statistics concerning the packets of a specific stream transmitted on a port.
Corresponding low-level API class: PT_STREAM
# TX Statistics - Stream Counter
resp = await port.statistics.tx.obtain_from_stream(stream=0).get()
resp.byte_count_since_cleared
resp.packet_count_since_cleared
resp.bit_count_last_sec
resp.packet_count_last_sec