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

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

DATA_SETS = o([
        ('TCP ledbat',
         {'command': "%s -H %s -t omni -l %d -f m -- -K ledbat,ledbat" % (GLOBAL_COMMAND, HOST, LENGTH),
          'delay': DELAY,
          'units': 'Mbits/s',
          'runner': 'netperf_demo',}),
        ('TCP cubic',
         {'command': "%s -H %s -t omni -l %d -f m -- -K cubic,cubic" % (GLOBAL_COMMAND, HOST, LENGTH),
          '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)',
                  'color': 'red',
                  'axis': 2}]}),
    ('ping_cdf',
     {'description': 'Ping CDF plot',
      'type': 'cdf',
      'series': [{'data': 'Ping (ms) ICMP',
                  'label': 'Ping (ms)'},],
      'cutoff': (DELAY,DELAY)}),
    ])
