Research Article

[Retracted] Vulnerability Digging for Software-Defined Network Controller Using Event Flow Graph Analysis

Algorithm 7

Data plane network construction algorithm.
Inputs: target file path: f_path network setup parameters:controllerOpts, switchOpts, hostOpts, linkOpts
Outputs: target network script: f_path
(1)f = open(f_path)
(2)f.write(imported files)
(3)f.write(“net.addController(controllerOpts)”)
(4)for switch_opt in switchOpts:
(5) f.write(“net.addSwitch(switch_opt)”)
(6)for host_opt in hostOpts:
(7) f.write(“net.addHost(host_opt)”)
(8)for link_opt in linkOpts:
(9) f.write(“net.addLink(host_opt)”)
(10)f.write(“net.build()”)
(11)for switch_name, switch_cmd in switchOpts:
(12) f.write(“switch_name.cmd(switch_cmd)”)
(13)for host_name, host_cmd in hostOpts:
(14) f.write(“host_name.cmd(host_cmd)”)
(15)f.write(“net.stop()”)
(16)f.close()