A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
openflow-switch Namespace Reference

Variables

ns app = onoff.Install(terminals.Get(0))
 
ns container = ns.NodeContainer()
 
ns controller = ns.ofi.DropController()
 
ns csma = ns.CsmaHelper()
 
ns csmaSwitch = ns.NodeContainer()
 
ns internet = ns.InternetStackHelper()
 
ns ipv4 = ns.Ipv4AddressHelper()
 
ns link = csma.Install(container)
 
ns onoff = ns.OnOffHelper("ns3::UdpSocketFactory", ns.InetSocketAddress(ns.Ipv4Address("10.1.1.2"), port).ConvertTo())
 
int port = 9
 
ns sink
 
ns switchDevices = ns.NetDeviceContainer()
 
ns switchNode = csmaSwitch.Get(0)
 
ns swtch = ns.OpenFlowSwitchHelper()
 
ns terminalDevices = ns.NetDeviceContainer()
 
ns terminals = ns.NodeContainer()
 

Variable Documentation

◆ app

ns openflow-switch.app = onoff.Install(terminals.Get(0))

Definition at line 66 of file openflow-switch.py.

◆ container

ns openflow-switch.container = ns.NodeContainer()

Definition at line 39 of file openflow-switch.py.

◆ controller

ns openflow-switch.controller = ns.ofi.DropController()

Definition at line 48 of file openflow-switch.py.

◆ csma

ns openflow-switch.csma = ns.CsmaHelper()

Definition at line 32 of file openflow-switch.py.

◆ csmaSwitch

ns openflow-switch.csmaSwitch = ns.NodeContainer()

Definition at line 29 of file openflow-switch.py.

◆ internet

ns openflow-switch.internet = ns.InternetStackHelper()

Definition at line 54 of file openflow-switch.py.

◆ ipv4

ns openflow-switch.ipv4 = ns.Ipv4AddressHelper()

Definition at line 57 of file openflow-switch.py.

◆ link

ns openflow-switch.link = csma.Install(container)

Definition at line 42 of file openflow-switch.py.

◆ onoff

ns openflow-switch.onoff = ns.OnOffHelper("ns3::UdpSocketFactory", ns.InetSocketAddress(ns.Ipv4Address("10.1.1.2"), port).ConvertTo())

Definition at line 63 of file openflow-switch.py.

◆ port

int openflow-switch.port = 9

Definition at line 61 of file openflow-switch.py.

◆ sink

ns openflow-switch.sink
Initial value:
1= ns.PacketSinkHelper("ns3::UdpSocketFactory",
2 ns.InetSocketAddress(ns.Ipv4Address.GetAny(), port).ConvertTo())

Definition at line 71 of file openflow-switch.py.

◆ switchDevices

ns openflow-switch.switchDevices = ns.NetDeviceContainer()

Definition at line 37 of file openflow-switch.py.

◆ switchNode

ns openflow-switch.switchNode = csmaSwitch.Get(0)

Definition at line 46 of file openflow-switch.py.

◆ swtch

ns openflow-switch.swtch = ns.OpenFlowSwitchHelper()

Definition at line 47 of file openflow-switch.py.

◆ terminalDevices

ns openflow-switch.terminalDevices = ns.NetDeviceContainer()

Definition at line 36 of file openflow-switch.py.

◆ terminals

ns openflow-switch.terminals = ns.NodeContainer()

Definition at line 26 of file openflow-switch.py.