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
 
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()
 
 try :
 

Variable Documentation

◆ app

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

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

◆ container

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

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

◆ controller

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

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

◆ csma

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

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

◆ csmaSwitch

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

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

◆ internet

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

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

◆ ipv4

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

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

◆ link

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

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

◆ onoff

ns 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 70 of file openflow-switch.py.

◆ port

int openflow-switch.port = 9

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

◆ sink

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

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

◆ switchDevices

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

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

◆ switchNode

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

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

◆ swtch

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

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

◆ terminalDevices

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

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

◆ terminals

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

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

◆ try

openflow-switch.try :

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