A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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)
 
str 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 39 of file brite-generic-example.py.

◆ asciiTrace

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

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

◆ bth

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

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

◆ client

brite-generic-example.client = ns.NodeContainer()

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

◆ clientApps

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

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

◆ clientInterfaces

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

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

◆ confFile

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

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

◆ echoClient

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

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

◆ echoServer

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

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

◆ nixRouting

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

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

◆ numLeafNodesInAsOne

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

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

◆ numLeafNodesInAsZero

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

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

◆ p2p

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

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

◆ p2pClientDevices

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

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

◆ p2pServerDevices

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

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

◆ server

brite-generic-example.server = ns.NodeContainer()

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

◆ serverApps

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

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

◆ serverInterfaces

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

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

◆ stack

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

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