A Discrete-Event Network Simulator
API
second Namespace Reference

Variables

 address = ns.internet.Ipv4AddressHelper()
 
 clientApps = echoClient.Install(p2pNodes.Get(0))
 
 cmd = ns.core.CommandLine()
 
 csma = ns.csma.CsmaHelper()
 
 csmaDevices = csma.Install(csmaNodes)
 
 csmaInterfaces = address.Assign(csmaDevices)
 
 csmaNodes = ns.network.NodeContainer()
 
 echoClient = ns.applications.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma), 9)
 
 echoServer = ns.applications.UdpEchoServerHelper(9)
 
 nCsma = int(cmd.nCsma)
 
 p2pDevices = pointToPoint.Install(p2pNodes)
 
 p2pInterfaces = address.Assign(p2pDevices)
 
 p2pNodes = ns.network.NodeContainer()
 
 pointToPoint = ns.point_to_point.PointToPointHelper()
 
 serverApps = echoServer.Install(csmaNodes.Get(nCsma))
 
 stack = ns.internet.InternetStackHelper()
 
 verbose = cmd.verbose
 

Variable Documentation

◆ address

second.address = ns.internet.Ipv4AddressHelper()

Definition at line 73 of file second.py.

◆ clientApps

second.clientApps = echoClient.Install(p2pNodes.Get(0))

Definition at line 91 of file second.py.

◆ cmd

◆ csma

◆ csmaDevices

second.csmaDevices = csma.Install(csmaNodes)

Definition at line 67 of file second.py.

◆ csmaInterfaces

second.csmaInterfaces = address.Assign(csmaDevices)

Definition at line 78 of file second.py.

◆ csmaNodes

second.csmaNodes = ns.network.NodeContainer()

Definition at line 53 of file second.py.

◆ echoClient

second.echoClient = ns.applications.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma), 9)

Definition at line 86 of file second.py.

◆ echoServer

second.echoServer = ns.applications.UdpEchoServerHelper(9)

Definition at line 80 of file second.py.

◆ nCsma

int second.nCsma = int(cmd.nCsma)

Definition at line 36 of file second.py.

◆ p2pDevices

second.p2pDevices = pointToPoint.Install(p2pNodes)

Definition at line 61 of file second.py.

◆ p2pInterfaces

second.p2pInterfaces = address.Assign(p2pDevices)

Definition at line 75 of file second.py.

◆ p2pNodes

second.p2pNodes = ns.network.NodeContainer()

Definition at line 50 of file second.py.

◆ pointToPoint

second.pointToPoint = ns.point_to_point.PointToPointHelper()

Definition at line 57 of file second.py.

◆ serverApps

second.serverApps = echoServer.Install(csmaNodes.Get(nCsma))

Definition at line 82 of file second.py.

◆ stack

second.stack = ns.internet.InternetStackHelper()

Definition at line 69 of file second.py.

◆ verbose

second.verbose = cmd.verbose

Definition at line 37 of file second.py.