Variables | |
ns | address = ns.internet.Ipv4AddressHelper() |
ns | clientApps = echoClient.Install(p2pNodes.Get(0)) |
ns | cmd = ns.CommandLine(__file__) |
ns | csma = ns.csma.CsmaHelper() |
ns | csmaDevices = csma.Install(csmaNodes) |
ns | csmaInterfaces = address.Assign(csmaDevices) |
ns | csmaNodes = ns.network.NodeContainer() |
ns | echoClient = ns.applications.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) |
ns | echoServer = ns.applications.UdpEchoServerHelper(9) |
c_int | nCsma = c_int(3) |
ns | p2pDevices = pointToPoint.Install(p2pNodes) |
ns | p2pInterfaces = address.Assign(p2pDevices) |
ns | p2pNodes = ns.network.NodeContainer() |
ns | pointToPoint = ns.point_to_point.PointToPointHelper() |
ns | serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) |
ns | stack = ns.internet.InternetStackHelper() |
value | |
c_bool | verbose = c_bool(True) |
ns second.csmaInterfaces = address.Assign(csmaDevices) |
ns second.echoClient = ns.applications.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) |
ns second.echoServer = ns.applications.UdpEchoServerHelper(9) |
ns second.p2pInterfaces = address.Assign(p2pDevices) |
ns second.pointToPoint = ns.point_to_point.PointToPointHelper() |
ns second.serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) |