summaryrefslogtreecommitdiffstats
path: root/vstf/vstf/controller/sw_perf/README
blob: 02844a3e03e972ab6d78ce8d7c0ea15e29c3b069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Tree

|--- flow_producer.py
|--- model.py
|--- performance.py
|--- perf_provider.py
|--- raw_data.py

Entry:
    performance.py
        usage: performance.py [-h] [-case CASE]
                          [-tool {pktgen,netperf,qperf,iperf,netmap}]
                          [-protocol {tcp,udp}] [-profile {rdp,fastlink,l2switch}]
                          [-type {throughput,latency,frameloss}] [-sizes SIZES]
                          [--monitor MONITOR]

        optional arguments:
          -h, --help            show this help message and exit
          -case CASE            test case like Ti-1, Tn-1, Tnv-1, Tu-1...
          -tool {pktgen,netperf,qperf,iperf,netmap}
          -protocol {tcp,udp}
          -profile {rdp,fastlink,l2switch}
          -type {throughput,latency,frameloss}
          -sizes SIZES          test size list "64 128"
          --monitor MONITOR     which ip to be monitored

Interface:
    usage:
        conn = Server(host=args.monitor)
        flows_settings = FlowsSettings()
        tool_settings = ToolSettings()
        tester_settings = TesterSettings()
        flow_producer = FlowsProducer(conn, flows_settings)
        provider = PerfProvider(flows_settings.settings, tool_settings.settings, tester_settings.settings)
        perf = Performance(conn, provider)
        flow_producer.create(scenario, case)
        LOG.info(flows_settings.settings())
        result = perf.run(tool, protocol, type, sizes)