TCP UPD performance test

Report TCP or UDP performance

Get the performance statistics of TCP UDP traffic and report it.

  1. Configure Rx checksum offload on IUT interface if specified

  2. Configure GRO on IUT interface if specified

  3. Configure HW VLAN stripping on IUT interface if specified

  4. Configure Tx checksum offload on IUT interface if specified

  5. Configure GSO offload on IUT interface if specified

  6. Configure TSO offload on IUT interface if specified

  7. Configure HW VLAN insertion on IUT interface if specified

  8. If rx_coalesce_usecs or rx_max_coalesced_frames is not -1, configure Rx coalesce on IUT interface.

    • Disable use_adaptive_rx_coalesce on IUT interface.

    • If rx_coalesce_usecs is not -1, configure it IUT interface.

    • If rx_max_coalesced_frames is not -1, configure it IUT interface.

  9. Set Rx ring size according to rx_ring on IUT interface.

  10. Set Tx ring size according to tx_ring on IUT interface.

  11. Set number of combined channels on IUT interface according to channels.

  12. If rx_vlan_strip or tx_vlan_insert is not default, create VLANs, assign addresses and use it for traffic checks below.

  13. Set default perf options

  14. Set test specific perf options

  15. Allocate server ports for perf applications

  16. Start server and client perf applications

  17. Wait for perf report to be ready

Igor Romanov Igor.Romanov@oktetlabs.ru

Parameters:

perf_bench

Performance benchmark type

dual_mode

Run benchmark in bidirectional mode

protocol

Use TCP or UDP protocol

n_perf_insts

Number of performance apps to run

n_streams

Number of parallel streams to run

bandwidth

Target bandwidth in Mbps, negative means some internal tool value for UDP, unlimited for TCP

rx_csum

Enable, disable Rx checksum offload or preserve default

rx_gro

Enable, disable Rx GRO offload or preserve default

rx_vlan_strip

Enable, disable Rx VLAN stripping offload or preserve default

tx_csum

Enable, disable Tx checksum offload or preserve default

tx_gso

Enable, disable Tx GSO offload or preserve default

tso

Enable, disable TSO offload or preserve default

tx_vlan_insert

Enable, disable Tx VLAN insertion offload or preserve default

rx_coalesce_usecs

Value to set for rx_coalesce_usecs:

  • -1 (keep default settings)

  • 0 (interrupt moderation is disabled)

  • 30

  • 150

rx_max_coalesced_frames

Value to set rx_max_coalesced_frames:

  • -1 (keep default settings)

  • 0 (do not coalesce based on it)

  • 1 (interrupt moderation is disabled)

rx_ring

Rx rings size:

  • -1 (keep default)

  • 0 (maximum)

  • 64

  • 512

  • 1024

tx_ring

Tx rings size:

  • -1 (keep default)

  • 0 (maximum)

  • 64

  • 512

  • 1024

channels

Number of combined channels to use:

  • -1 (keep default)

  • 1

  • 2

  • 4