User Tools

Site Tools


Sidebar

openbach:exploitation:reference_scenarios:network:rate:simple_scenario

Simple rate Scenario

This scenario allows to compare the traffic measured by the active jobs with respect to a passive job. You can find below two examples of scenario in UDP mode and TCP mode during 45s

TCP mode

The json format for the TCP test is available below. You can import it to your project via the HMI OpenBACH (you need to change the name “Client1”/“Proxy1” in the .json for the name of your client/server entities).

rate_metrology_tcp.json
{
  "description": "",
  "openbach_functions": [
    {
      "id": 139724458,
      "label": "server",
      "start_job_instance": {
        "iperf3": {
          "server_mode": "True",
          "exit": "True",
          "port": "2500"
        },
        "offset": 0,
        "entity_name": "Server1"
      }
    },
    {
      "wait": {
        "time": 11,
        "launched_ids": [
          139724458
        ]
      },
      "id": 44711595,
      "label": "client",
      "start_job_instance": {
        "iperf3": {
          "time": "45",
          "port": "2500",
          "client_mode_server_ip": "172.20.34.26",
          "interval": "1"
        },
        "offset": 0,
        "entity_name": "Client1"
      }
    },
    {
      "wait": {
        "launched_ids": [
          44711595
        ]
      },
      "id": 109991227,
      "label": "rate",
      "start_job_instance": {
        "rate_monitoring": {
          "protocol": "tcp",
          "destination_port": "2500",
          "chain": "INPUT",
          "interval": "1"
        },
        "offset": 0,
        "entity_name": "Server1"
      }
    },
    {
      "wait": {
        "finished_ids": [
          44711595
        ]
      },
      "id": 7144480,
      "stop_job_instances": {
        "openbach_function_ids": [
          109991227
        ]
      },
      "label": "stop_rate"
    }
  ],
  "constants": {},
  "name": "iperf3",
  "arguments": {}
}

UDP mode

The json format for the UDP (at a rate of 2Mb/s) test is available below.

rate_metrology_udp.json
{
  "description": "",
  "openbach_functions": [
    {
      "id": 139724458,
      "label": "server",
      "start_job_instance": {
        "iperf3": {
          "server_mode": "True",
          "exit": "True",
          "port": "2500"
        },
        "offset": 0,
        "entity_name": "Server1"
      }
    },
    {
      "wait": {
        "time": 11,
        "launched_ids": [
          139724458
        ]
      },
      "id": 44711595,
      "label": "client",
      "start_job_instance": {
        "iperf3": {
          "time": "45",
          "port": "2500",
          "interval": "1",
          "udp": "True",
          "client_mode_server_ip": "172.20.34.26",
          "bandwidth": "2M"
        },
        "offset": 0,
        "entity_name": "Client1"
      }
    },
    {
      "wait": {
        "launched_ids": [
          44711595
        ]
      },
      "id": 109991227,
      "label": "rate",
      "start_job_instance": {
        "rate_monitoring": {
          "protocol": "udp",
          "destination_port": "2500",
          "chain": "INPUT",
          "interval": "1"
        },
        "offset": 0,
        "entity_name": "Server1"
      }
    },
    {
      "wait": {
        "finished_ids": [
          44711595
        ]
      },
      "id": 7144480,
      "stop_job_instances": {
        "openbach_function_ids": [
          109991227
        ]
      },
      "label": "stop_rate"
    }
  ],
  "constants": {},
  "name": "iperf3",
  "arguments": {}
}
openbach/exploitation/reference_scenarios/network/rate/simple_scenario.txt · Last modified: 2019/06/11 16:21 (external edit)