A Discrete-Event Network Simulator
API
brite-generic-example Namespace Reference

Variables

 address = ns.Ipv4AddressHelper()
 
 asciiTrace = ns.AsciiTraceHelper()
 
 bth = ns.BriteTopologyHelper(confFile)
 
 client = ns.NodeContainer()
 
 clientApps = echoClient.Install(client.Get(0))
 
 clientInterfaces = address.Assign(p2pClientDevices)
 
string confFile = "src/brite/examples/conf_files/TD_ASBarabasi_RTWaxman.conf"
 
 echoClient = ns.UdpEchoClientHelper(serverInterfaces.GetAddress(0).ConvertTo(), 9)
 
 echoServer = ns.UdpEchoServerHelper(9)
 
 nixRouting = ns.Ipv4NixVectorHelper()
 
 numLeafNodesInAsOne = bth.GetNLeafNodesForAs(1)
 
 numLeafNodesInAsZero = bth.GetNLeafNodesForAs(0)
 
 p2p = ns.PointToPointHelper()
 
 p2pClientDevices = p2p.Install(client)
 
 p2pServerDevices = p2p.Install(server)
 
 server = ns.NodeContainer()
 
 serverApps = echoServer.Install(server.Get(0))
 
 serverInterfaces = ns.Ipv4InterfaceContainer()
 
 stack = ns.InternetStackHelper()
 

Variable Documentation

◆ address

brite-generic-example.address = ns.Ipv4AddressHelper()

Definition at line 50 of file brite-generic-example.py.

◆ asciiTrace

brite-generic-example.asciiTrace = ns.AsciiTraceHelper()

Definition at line 105 of file brite-generic-example.py.

◆ bth

brite-generic-example.bth = ns.BriteTopologyHelper(confFile)

Definition at line 40 of file brite-generic-example.py.

Referenced by BriteTopologyFunctionTestCase.DoRun().

◆ client

◆ clientApps

brite-generic-example.clientApps = echoClient.Install(client.Get(0))

Definition at line 101 of file brite-generic-example.py.

◆ clientInterfaces

brite-generic-example.clientInterfaces = address.Assign(p2pClientDevices)

Definition at line 85 of file brite-generic-example.py.

◆ confFile

string brite-generic-example.confFile = "src/brite/examples/conf_files/TD_ASBarabasi_RTWaxman.conf"

◆ echoClient

brite-generic-example.echoClient = ns.UdpEchoClientHelper(serverInterfaces.GetAddress(0).ConvertTo(), 9)

Definition at line 96 of file brite-generic-example.py.

◆ echoServer

brite-generic-example.echoServer = ns.UdpEchoServerHelper(9)

Definition at line 91 of file brite-generic-example.py.

◆ nixRouting

brite-generic-example.nixRouting = ns.Ipv4NixVectorHelper()

Definition at line 47 of file brite-generic-example.py.

◆ numLeafNodesInAsOne

brite-generic-example.numLeafNodesInAsOne = bth.GetNLeafNodesForAs(1)

Definition at line 75 of file brite-generic-example.py.

◆ numLeafNodesInAsZero

brite-generic-example.numLeafNodesInAsZero = bth.GetNLeafNodesForAs(0)

Definition at line 68 of file brite-generic-example.py.

◆ p2p

brite-generic-example.p2p = ns.PointToPointHelper()

◆ p2pClientDevices

brite-generic-example.p2pClientDevices = p2p.Install(client)

Definition at line 81 of file brite-generic-example.py.

◆ p2pServerDevices

brite-generic-example.p2pServerDevices = p2p.Install(server)

Definition at line 82 of file brite-generic-example.py.

◆ server

◆ serverApps

brite-generic-example.serverApps = echoServer.Install(server.Get(0))

Definition at line 92 of file brite-generic-example.py.

◆ serverInterfaces

brite-generic-example.serverInterfaces = ns.Ipv4InterfaceContainer()

Definition at line 88 of file brite-generic-example.py.

◆ stack

brite-generic-example.stack = ns.InternetStackHelper()

Definition at line 45 of file brite-generic-example.py.