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

Variables

 app = onoff.Install(terminals.Get(0))
 
 container = ns.NodeContainer()
 
 controller = ns.ofi.DropController()
 
 csma = ns.CsmaHelper()
 
 csmaSwitch = ns.NodeContainer()
 
 internet = ns.InternetStackHelper()
 
 ipv4 = ns.Ipv4AddressHelper()
 
 link = csma.Install(container)
 
 onoff
 
int port = 9
 
 sink
 
 switchDevices = ns.NetDeviceContainer()
 
 switchNode = csmaSwitch.Get(0)
 
 swtch = ns.OpenFlowSwitchHelper()
 
 terminalDevices = ns.NetDeviceContainer()
 
 terminals = ns.NodeContainer()
 

Variable Documentation

◆ app

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

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

◆ container

openflow-switch.container = ns.NodeContainer()

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

◆ controller

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

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

◆ csma

openflow-switch.csma = ns.CsmaHelper()

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

◆ csmaSwitch

openflow-switch.csmaSwitch = ns.NodeContainer()

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

◆ internet

openflow-switch.internet = ns.InternetStackHelper()

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

◆ ipv4

openflow-switch.ipv4 = ns.Ipv4AddressHelper()

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

◆ link

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

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

◆ onoff

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

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

◆ port

int openflow-switch.port = 9

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

◆ sink

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

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

◆ switchDevices

openflow-switch.switchDevices = ns.NetDeviceContainer()

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

◆ switchNode

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

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

◆ swtch

openflow-switch.swtch = ns.OpenFlowSwitchHelper()

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

◆ terminalDevices

openflow-switch.terminalDevices = ns.NetDeviceContainer()

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

◆ terminals

openflow-switch.terminals = ns.NodeContainer()

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