Variables | |
address = ns.Ipv4AddressHelper() | |
apDevices = wifi.Install(phy, mac, wifiApNode) | |
channel = ns.YansWifiChannelHelper.Default() | |
clientApps = echoClient.Install(wifiStaNodes.Get(nWifi.value - 1)) | |
cmd = ns.CommandLine(__file__) | |
csma = ns.CsmaHelper() | |
csmaDevices = csma.Install(csmaNodes) | |
csmaInterfaces = address.Assign(csmaDevices) | |
csmaNodes = ns.NodeContainer() | |
echoClient = ns.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) | |
echoServer = ns.UdpEchoServerHelper(9) | |
mac = ns.WifiMacHelper() | |
mobility = ns.MobilityHelper() | |
nCsma = c_int(3) | |
nWifi = c_int(3) | |
p2pDevices = pointToPoint.Install(p2pNodes) | |
p2pInterfaces = address.Assign(p2pDevices) | |
p2pNodes = ns.NodeContainer() | |
phy = ns.YansWifiPhyHelper() | |
pointToPoint = ns.PointToPointHelper() | |
serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) | |
ssid = ns.Ssid("ns-3-ssid") | |
stack = ns.InternetStackHelper() | |
staDevices = wifi.Install(phy, mac, wifiStaNodes) | |
tracing = c_bool(False) | |
verbose = c_bool(True) | |
wifi = ns.WifiHelper() | |
wifiApNode = p2pNodes.Get(0) | |
wifiStaNodes = ns.NodeContainer() | |
third.apDevices = wifi.Install(phy, mac, wifiApNode) |
third.clientApps = echoClient.Install(wifiStaNodes.Get(nWifi.value - 1)) |
third.csmaInterfaces = address.Assign(csmaDevices) |
third.echoClient = ns.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) |
third.p2pInterfaces = address.Assign(p2pDevices) |
third.serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) |
third.staDevices = wifi.Install(phy, mac, wifiStaNodes) |