User Tools

Site Tools


Sidebar

openbach:exploitation:reference_scenarios:complex_scenarios:multicast_dash:json_scenario

Example of scenario

Reminder of the used platform topology :

That scenario monitors multicast ingress traffic on both STs and all the egress traffic on the GW :

Note some equivalences between the names of the nodes of the theoretical topology and the OpenBACH topology :

  • Proxy(1|2|3) == ST(1|2|3)
  • ST(1|2|3)a == ST(1|2|3)_broadband
  • ST(1|2|3)b == ST(1|2|3)_broadcast

{

"description": "",
"constants": {},
"name": "TEST 1",
"arguments": {},
"openbach_functions": [
  {
    "start_job_instance": {
      "dash player&server": {},
      "entity_name": "Server",
      "offset": 0
    },
    "id": 117710682,
    "label": "Server"
  },
  {
    "wait": {
      "finished_ids": [
        65908042
      ]
    },
    "start_job_instance": {
      "entity_name": "ST2",
      "offset": 0,
      "squid": {
        "clean_cache": "True",
        "trans_proxy": "3129",
        "source_addr": "192.168.104.0",
        "path_conf_file": "/home/opensand/squid.conf",
        "input_iface": "ens4",
        "non_transp_proxy": "3122"
      }
    },
    "id": 127782347,
    "label": "ST2 Squid"
  },
  {
    "wait": {
      "finished_ids": [
        65908042
      ]
    },
    "start_job_instance": {
      "entity_name": "Proxy1",
      "offset": 0,
      "iptables": {
        "rule": "'-t nat -A OUTPUT -d 192.168.101.3 -p tcp -m tos ! --tos 0x28 -j REDIRECT --to-port 8080'"
      }
    },
    "id": 140323634,
    "label": "Proxy1 rule"
  },
  {
    "wait": {
      "finished_ids": [
        65908042
      ]
    },
    "start_job_instance": {
      "entity_name": "ST2",
      "offset": 0,
      "iptables": {
        "rule": "'-t nat -A OUTPUT -d 192.168.101.3 -p tcp -m tos ! --tos 0x28 -j REDIRECT --to-port 8080'"
      }
    },
    "id": 86649404,
    "label": "ST2 rule"
  },
  {
    "wait": {
      "finished_ids": [
        65908042
      ]
    },
    "start_job_instance": {
      "entity_name": "GW",
      "offset": 0,
      "squid": {
        "clean_cache": "True",
        "trans_proxy": "3129",
        "source_addr": "192.168.103.0",
        "path_conf_file": "/home/opensand/squid.conf",
        "input_iface": "ens4",
        "non_transp_proxy": "3122"
      }
    },
    "id": 47089061,
    "label": "GW squid"
  },
  {
    "wait": {
      "finished_ids": [
        65908042
      ]
    },
    "start_job_instance": {
      "entity_name": "GW",
      "offset": 0,
      "iptables": {
        "rule": "'-t nat -A PREROUTING -i ens4 -s 192.168.102.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3129'"
      }
    },
    "id": 157091487,
    "label": "GW rule"
  },
  {
    "id": 65908042,
    "start_scenario_instance": {
      "arguments": {},
      "scenario_name": "Delete all iptables"
    },
    "label": "Start Delete Iptables"
  },
  {
    "wait": {
      "launched_ids": [
        65908042
      ],
      "time": 1
    },
    "stop_scenario_instance": {
      "openbach_function_id": 65908042
    },
    "id": 188240932,
    "label": "Stop Delete All Iptables"
  },
  {
    "start_job_instance": {
      "command_shell": {
        "command_line": "/home/opensand/mmt-scripts/scripts/controller_proxy/remove_content.sh"
      },
      "entity_name": "Proxy1",
      "offset": 0
    },
    "id": 237915319,
    "label": "Proxy delete norm content"
  },
  {
    "start_job_instance": {
      "command_shell": {
        "command_line": "/home/opensand/mmt-scripts/scripts/controller_proxy/remove_content.sh"
      },
      "entity_name": "ST2",
      "offset": 0
    },
    "id": 191972997,
    "label": "ST2 delete norm content"
  },
  {
    "start_job_instance": {
      "rate_monitoring": {
        "interval": "1",
        "in_interface": "ens5",
        "chain": "FORWARD"
      },
      "entity_name": "ST1a",
      "offset": 0
    },
    "id": 5668245,
    "label": "ST1a Norm"
  },
  {
    "start_job_instance": {
      "rate_monitoring": {
        "interval": "1",
        "in_interface": "ens5",
        "chain": "INPUT",
        "protocol": "udp"
      },
      "entity_name": "ST2",
      "offset": 0
    },
    "id": 237108082,
    "label": "ST2 Norm"
  },
  {
    "wait": {
      "finished_ids": [
        65908042
      ]
    },
    "start_job_instance": {
      "entity_name": "Proxy1",
      "offset": 0,
      "squid": {
        "clean_cache": "True",
        "trans_proxy": "3129",
        "source_addr": "192.168.100.0",
        "path_conf_file": "/home/opensand/squid.conf",
        "input_iface": "ens5",
        "non_transp_proxy": "3122"
      }
    },
    "id": 216272108,
    "label": "Proxy1 Squid"
  },
  {
    "start_job_instance": {
      "rate_monitoring": {
        "interval": "1",
        "in_interface": "ens4",
        "chain": "INPUT",
        "protocol": "udp"
      },
      "entity_name": "Proxy1",
      "offset": 0
    },
    "id": 251755521,
    "label": "Proxy1 Norm"
  },
  {
    "start_job_instance": {
      "rate_monitoring": {
        "out_interface": "ens4",
        "interval": "1",
        "chain": "OUTPUT"
      },
      "entity_name": "GW",
      "offset": 0
    },
    "id": 209038725,
    "label": "GW All egress"
  }
]

}

openbach/exploitation/reference_scenarios/complex_scenarios/multicast_dash/json_scenario.txt ยท Last modified: 2019/06/11 16:21 (external edit)