1.1.1.1.1.3.1.4. yardstick.benchmark.scenarios.networking package

1.1.1.1.1.3.1.4.1. Submodules

1.1.1.1.1.3.1.4.2. yardstick.benchmark.scenarios.networking.iperf3 module

class yardstick.benchmark.scenarios.networking.iperf3.Iperf(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute iperf3 between two hosts

By default TCP is used but UDP can also be configured. For more info see http://software.es.net/iperf

Parameters
bytes - number of bytes to transmit
only valid with a non duration runner, mutually exclusive with blockcount
type: int unit: bytes default: 56
udp - use UDP rather than TCP
type: bool unit: na default: false
nodelay - set TCP no delay, disabling Nagle’s Algorithm
type: bool unit: na default: false
blockcount - number of blocks (packets) to transmit,
only valid with a non duration runner, mutually exclusive with bytes
type: int unit: bytes default: -
run(result)[source]

execute the benchmark

setup()[source]
teardown()[source]

1.1.1.1.1.3.1.4.3. yardstick.benchmark.scenarios.networking.netperf module

class yardstick.benchmark.scenarios.networking.netperf.Netperf(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute netperf between two hosts

Parameters:
  • - to specify the test you wish to perform. (testname) –
  • valid testnames are TCP_STREAM, TCP_RR, UDP_STREAM, UDP_RR (the) – type: string unit: na default: TCP_STREAM
  • - value set the local send size to value bytes. (send_msg_size) – type: int unit: bytes default: na
  • - setting the receive size for the remote system. (recv_msg_size) – type: int unit: bytes default: na
  • - set the request and/or response sizes based on sizespec. (req_rsp_size) – type: string unit: na default: na
  • - duration of the test (duration) – type: int unit: seconds default: 20
  • link below for more netperf args description (read) –
  • http – //www.netperf.org/netperf/training/Netperf.html
TARGET_SCRIPT = 'netperf_benchmark.bash'
run(result)[source]

execute the benchmark

setup()[source]

scenario setup

1.1.1.1.1.3.1.4.4. yardstick.benchmark.scenarios.networking.ping module

class yardstick.benchmark.scenarios.networking.ping.Ping(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute ping between two hosts

Parameters:- number of data bytes to send (packetsize) – type: int unit: bytes default: 56
TARGET_SCRIPT = 'ping_benchmark.bash'
run(result)[source]

execute the benchmark

1.1.1.1.1.3.1.4.5. yardstick.benchmark.scenarios.networking.ping6 module

class yardstick.benchmark.scenarios.networking.ping6.Ping6(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute ping6 between two hosts

read link below for more ipv6 info description: http://wiki.opnfv.org/ipv6_opnfv_project

FIND_HOST_SCRIPT = 'ping6_find_host.bash'
METADATA_SCRIPT = 'ping6_metadata.txt'
POST_TEARDOWN_SCRIPT = 'ping6_post_teardown.bash'
PRE_SETUP_SCRIPT = 'ping6_pre_setup.bash'
RADVD_SCRIPT = 'ping6_radvd.conf'
SETUP_ODL_SCRIPT = 'ping6_setup_with_odl.bash'
SETUP_SCRIPT = 'ping6_setup.bash'
TARGET_SCRIPT = 'ping6_benchmark.bash'
TEARDOWN_SCRIPT = 'ping6_teardown.bash'
run(result)[source]

execute the benchmark

setup()[source]

scenario setup

teardown()[source]

teardown the benchmark

1.1.1.1.1.3.1.4.6. yardstick.benchmark.scenarios.networking.pktgen module

class yardstick.benchmark.scenarios.networking.pktgen.Pktgen(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute pktgen between two hosts

Parameters:
  • - packet size in bytes without the CRC (packetsize) – type: int unit: bytes default: 60
  • - number of UDP ports to test (number_of_ports) – type: int unit: na default: 10
  • - duration of the test (duration) – type: int unit: seconds default: 20
TARGET_SCRIPT = 'pktgen_benchmark.bash'
run(result)[source]

execute the benchmark

setup()[source]

scenario setup

1.1.1.1.1.3.1.4.7. yardstick.benchmark.scenarios.networking.sfc module

class yardstick.benchmark.scenarios.networking.sfc.Sfc(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

SFC scenario class

PRE_SETUP_SCRIPT = 'sfc_pre_setup.bash'
SERVER_SCRIPT = 'sfc_server.bash'
TACKER_SCRIPT = 'sfc_tacker.bash'
TEARDOWN_SCRIPT = 'sfc_teardown.bash'
run(result)[source]

Creating client and server VMs to perform the test

setup()[source]

scenario setup

teardown()[source]

for scenario teardown remove tacker VNFs, chains and classifiers

1.1.1.1.1.3.1.4.8. yardstick.benchmark.scenarios.networking.vtc_instantiation_validation module

class yardstick.benchmark.scenarios.networking.vtc_instantiation_validation.VtcInstantiationValidation(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute Instantiation Validation TC on the vTC

run(result)[source]

execute test

setup()[source]

scenario setup

1.1.1.1.1.3.1.4.9. yardstick.benchmark.scenarios.networking.vtc_instantiation_validation_noisy module

class yardstick.benchmark.scenarios.networking.vtc_instantiation_validation_noisy.VtcInstantiationValidationNoisy(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute Instantiation Validation TC on the vTC

run(result)[source]

execute test

setup()[source]

scenario setup

1.1.1.1.1.3.1.4.10. yardstick.benchmark.scenarios.networking.vtc_throughput module

class yardstick.benchmark.scenarios.networking.vtc_throughput.VtcThroughput(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute Instantiation Validation TC on the vTC

run(result)[source]

execute test

setup()[source]

scenario setup

1.1.1.1.1.3.1.4.11. yardstick.benchmark.scenarios.networking.vtc_throughput_noisy module

class yardstick.benchmark.scenarios.networking.vtc_throughput_noisy.VtcThroughputNoisy(scenario_cfg, context_cfg)[source]

Bases: yardstick.benchmark.scenarios.base.Scenario

Execute Instantiation Validation TC on the vTC

run(result)[source]

execute test

setup()[source]

scenario setup

1.1.1.1.1.3.1.4.12. Module contents