## -*- mode: python; coding: utf-8 -*-

include("netperf_definitions.inc")
DESCRIPTION="Cubic vs LEDBAT upload streams w/ping"
DEFAULTS={'PLOT': 'totals'}

DATA_SETS = o([
        ('TCP cubic',
         {'command': find_netperf("omni", LENGTH, HOST, extra_test_args="-K cubic,cubic"),
          'delay': DELAY,
          'units': 'Mbits/s',
          'runner': 'netperf_demo',}),
        ('TCP ledbat',
         {'command': find_netperf("omni", LENGTH, HOST, extra_test_args="-K ledbat,ledbat"),
          'delay': DELAY,
          'units': 'Mbits/s',
          'runner': 'netperf_demo',}),
        ('Ping (ms) ICMP',
         {'command': find_ping(IP_VERSION, STEP_SIZE, TOTAL_LENGTH, HOST),
          'units': 'ms',
          'runner': 'ping',}),
        ])


PLOTS = o([
    ('totals',
     {'description': 'Bandwidth and ping plot',
      'type': 'timeseries',
      'dual_axes': True,
      'series': [{'data': 'TCP cubic',
                  'label': 'Cubic'},
                 {'data': 'TCP ledbat',
                  'label': 'LEDBAT'},
                 {'data': 'Ping (ms) ICMP',
                  'label': 'Ping (ms)',
                  'axis': 2}]}),
    ('ping_cdf',
     {'description': 'Ping CDF plot',
      'type': 'cdf',
      'series': [{'data': 'Ping (ms) ICMP',
                  'label': 'Ping (ms)'},],
      'cutoff': (DELAY,DELAY)}),
    ])
