A Discrete-Event Network Simulator
API
first Namespace Reference

Variables

 address = ns.internet.Ipv4AddressHelper()
 
 clientApps = echoClient.Install(nodes.Get(0))
 
 devices = pointToPoint.Install(nodes)
 
 echoClient = ns.applications.UdpEchoClientHelper(interfaces.GetAddress(1), 9)
 
 echoServer = ns.applications.UdpEchoServerHelper(9)
 
 interfaces = address.Assign(devices)
 
 nodes = ns.network.NodeContainer()
 
 pointToPoint = ns.point_to_point.PointToPointHelper()
 
 serverApps = echoServer.Install(nodes.Get(1))
 
 stack = ns.internet.InternetStackHelper()
 

Variable Documentation

first.address = ns.internet.Ipv4AddressHelper()

Definition at line 37 of file first.py.

Referenced by ns3::Ipv4AddressTlvValue.Add(), ns3::Ipv6L3Protocol.AddAutoconfiguredAddress(), ns3::Ipv6L3Protocol.AddMulticastAddress(), ns3::Mac16Address.Allocate(), ns3::Mac64Address.Allocate(), ns3::Mac48Address.Allocate(), ns3::Mac8Address.Allocate(), AodvqRegressionTestSuite.AodvqRegressionTestSuite(), ns3.AsciiToIpv4Host(), ns3.AsciiToIpv6Host(), ns3::LrWpanHelper.AssociateToPan(), ns3::MeshWifiBeacon.BeaconHeader(), ns3::PacketSocket.Bind(), CalculateThroughput(), ns3::VirtualTcpSocketBase.CheckEcnCe(), ns3::TcpSocketBase.CheckEcnCe(), ns3::dsdvq::RoutingTable.Clear(), ns3::dsdv::RoutingTable.Clear(), ClientEmbeddedObjectReceived(), ClientRx(), ns3::PacketSocket.Connect(), ConvertStringToStandard(), ns3::PacketSocketAddress.ConvertTo(), Bug772ChainTest.CreateDevices(), HwmpProactiveRegressionTest.CreateDevices(), FlameRegressionTest.CreateDevices(), HwmpDoRfRegressionTest.CreateDevices(), HwmpSimplestRegressionTest.CreateDevices(), HwmpReactiveRegressionTest.CreateDevices(), ChainRegressionTest.CreateDevices(), ns3::TapBridge.CreateTap(), ns3::SixLowPanNetDevice.DecompressLowPanHc1(), ns3::dsr::DsrRouteCache.DeleteAllRoutesIncludeLink(), ns3::dot11s::HwmpTag.Deserialize(), ns3::olsr::MessageHeader::Hna.Deserialize(), ns3::aodv::RerrHeader.Deserialize(), ns3::aodvq::RerrHeader.Deserialize(), ns3::Rip.DoInitialize(), ns3::RipNg.DoInitialize(), NetworkAllocatorHelperTestCase.DoRun(), WifiMsduAggregatorThroughputTest.DoRun(), WifiAcMappingTest.DoRun(), Ns3WimaxSfCreationTestCase.DoRun(), Ns3TcpNoDelayTestCase.DoRun(), Ns3TcpSocketTestCase1.DoRun(), NscTcpLossTestCase1.DoRun(), ns3::aodv::LoopbackTestCase.DoRun(), ns3::aodvq::LoopbackTestCase.DoRun(), AddressAllocator6TestCase.DoRun(), AddressAllocatorHelperTestCase.DoRun(), AddressAllocatorTestCase.DoRun(), BriteTopologyFunctionTestCase.DoRun(), Ns3TcpInteroperabilityTestCase.DoRun(), ResetAllocatorHelperTestCase.DoRun(), NetworkAndAddress6TestCase.DoRun(), NetworkAndAddressTestCase.DoRun(), Ns3TcpSocketTestCase2.DoRun(), NscTcpLossTestCase2.DoRun(), ExampleAddress6GeneratorTestCase.DoRun(), Ns3TcpCwndTestCase1.DoRun(), ExampleAddressGeneratorTestCase.DoRun(), CsmaStarTestCase.DoRun(), Ns3WimaxSchedulingTestCase.DoRunOnce(), Ns3WimaxSFTypeTestCase.DoRunOnce(), BridgeTest.DoSetup(), TwoBridgeTest.DoSetup(), dstSocketRecv(), ns3::dot11s::HwmpProtocolMac.ForwardPerr(), ns3::VirtualUdpSocketImpl.ForwardUp(), ns3::UdpSocketImpl.ForwardUp(), ns3::PacketSocket.ForwardUp(), ns3::VirtualUdpSocketImpl.ForwardUp6(), ns3::UdpSocketImpl.ForwardUp6(), ns3::dsr::DsrRouting.GetIDfromIP(), ns3::dsr::DsrOptions.GetIDfromIP(), ns3::Ipv4L3Protocol.GetInterfaceForAddress(), ns3::VirtualIpv4L3Protocol.GetInterfaceForAddress(), ns3::Ipv6L3Protocol.GetInterfaceForAddress(), ns3::dsr::DsrRouting.GetIPfromMAC(), ns3::Ipv6InterfaceContainer.GetLinkLocalAddress(), ns3::olsr::RoutingProtocol.GetSize(), ns3::QKDManager.GetSourceNetDevice(), ns3::olsr::OlsrState.GetTwoHopNeighbors(), MyApp.GetTypeId(), ns3::Ping6.HandleRead(), AodvqExample.InstallInternetStack(), AodvExample.InstallInternetStack(), MeshTest.InstallInternetStack(), DsdvqManetExample.InstallInternetStack(), DsdvManetExample.InstallInternetStack(), ns3::QKDHelper.InstallOverlayQKD(), ns3::Ipv4Address.Ipv4Address(), ns3::Ipv6RawSocketImpl.Ipv6JoinGroup(), ns3::UdpSocketImpl.Ipv6JoinGroup(), ns3::VirtualUdpSocketImpl.Ipv6JoinGroup(), ns3::WifiRemoteStationManager.LookupState(), MonitorSniffRx(), ns3::Ipv6AddressHelper.NewAddress(), ns3::Ipv4AddressGeneratorImpl.NextAddress(), ns3::Rip.NotifyInterfaceUp(), ns3::RipNg.NotifyInterfaceUp(), ns3.operator<(), PingRtt(), AnimationInterfaceTestCase.PrepareNetwork(), ns3::Ipv6Address.Print(), RateCallback(), ns3::Ipv4Interface.RemoveAddress(), ns3::Ipv4L3Protocol.RemoveAddress(), ns3::VirtualIpv4L3Protocol.RemoveAddress(), ns3::Ipv6L3Protocol.RemoveAddress(), ns3::Ipv6Interface.RemoveAddress(), ns3::Ipv6L3Protocol.RemoveMulticastAddress(), ns3::dot11s::HwmpProtocol.RequestRoute(), Experiment.Run(), RxDrop(), ns3::dsr::DsrRouting.ScheduleRreqRetry(), SecondBucketTokensTrace(), ns3::DhcpServer.SendAck(), ns3::dsr::DsrRouting.SendErrorRequest(), ns3::dsr::DsrRouting.SendInitialRequest(), ns3::dot11s::HwmpTag.Serialize(), ns3::UanHeaderCommon.Serialize(), ns3::UanHeaderRcCts.Serialize(), ns3::olsr::MessageHeader::Hna.Serialize(), ns3::Ipv4Address.Set(), ns3::WifiMacHeader.SetAddr1(), ns3::WifiMacHeader.SetAddr2(), ns3::WifiMacHeader.SetAddr3(), ns3::dot11s::MeshHeader.SetAddr4(), ns3::WifiMacHeader.SetAddr4(), ns3::dot11s::MeshHeader.SetAddr5(), ns3::dot11s::MeshHeader.SetAddr6(), ns3::Ipv6InterfaceAddress.SetAddress(), ns3::LrWpanMac.SetExtendedAddress(), ns3::Socket.SetIpTos(), ns3::InetSocketAddress.SetIpv4(), ns3::Socket.SetIpv6Tclass(), ns3::Ipv4EndPoint.SetLocalAddress(), ns3::WimaxNetDevice.SetMacAddress(), ns3::Ipv6Interface.SetNsDadUid(), ns3::PbbMessage.SetOriginatorAddress(), ns3::Ipv4EndPoint.SetPeer(), ns3::PacketSocketAddress.SetPhysicalAddress(), ns3::LrWpanMac.SetShortAddress(), ns3::Ipv6Interface.SetState(), ns3::PlanetLabFdNetDeviceHelper.SetTapIpAddress(), ns3::TapFdNetDeviceHelper.SetTapIpv4Address(), ns3::TapFdNetDeviceHelper.SetTapIpv6Address(), MyApp.Setup(), SimpleSource.Setup(), ns3::ApplicationPacketProbe.SetValue(), SinkRx(), SojournTimeTrace(), static_SpectrumModelWifi5180MHz_initializer.static_SpectrumModelWifi5180MHz_initializer(), TraceCwnd(), TraceNextRx(), ns3::ApplicationPacketProbe.TraceSink(), TxCallback(), ns3::QKDManager::addressGroup.~addressGroup(), ns3::PlanetLabFdNetDeviceHelper.~PlanetLabFdNetDeviceHelper(), and ns3::TapFdNetDeviceHelper.~TapFdNetDeviceHelper().

first.devices = pointToPoint.Install(nodes)

Definition at line 32 of file first.py.

Referenced by AodvqRegressionTestSuite.AodvqRegressionTestSuite(), ns3::LrWpanHelper.AssociateToPan(), ClientEmbeddedObjectReceived(), BatteryLifetimeTest.ConstantLoadTest(), Bug772ChainTest.CreateDevices(), ChainRegressionTest.CreateDevices(), WaveNetDeviceExample.CreateWaveNodes(), TestCaseHelper.CreatWaveDevice(), BasicEnergyDepletionTest.DepletionTestCase(), Ns3TcpNoDelayTestCase.DoRun(), Ns3TcpSocketTestCase1.DoRun(), NscTcpLossTestCase1.DoRun(), SpectrumIdealPhyTestCase.DoRun(), ns3::aodv::LoopbackTestCase.DoRun(), ns3::aodvq::LoopbackTestCase.DoRun(), Ns3TcpInteroperabilityTestCase.DoRun(), Ns3TcpSocketTestCase2.DoRun(), NscTcpLossTestCase2.DoRun(), Ns3TcpCwndTestCase1.DoRun(), ChannelRoutingTestCase.DoRun(), CsmaOneSubnetTestCase.DoRun(), experiment(), Experiment.GenerateTraffic(), GenerateTraffic(), ns3::LrWpanHelper.Install(), ns3::WaveformGeneratorHelper.Install(), ns3::AdhocAlohaNoackIdealPhyHelper.Install(), ns3::SpectrumAnalyzerHelper.Install(), ns3::MeshHelper.Install(), ns3::WimaxHelper.Install(), ns3::WaveHelper.Install(), ns3::UanHelper.Install(), ns3::WifiHelper.Install(), ns3::LteSimpleHelper.InstallEnbDevice(), ns3::LteHelper.InstallEnbDevice(), ns3::LteSimpleHelper.InstallUeDevice(), ns3::LteHelper.InstallUeDevice(), PhyStateTrace(), PingRtt(), AnimationInterfaceTestCase.PrepareNetwork(), GlobalPathlossDatabase.Print(), NetAnimExperiment.Run(), Experiment.Run(), RxDrop(), SecondBucketTokensTrace(), WaveNetDeviceExample.SendIpExample(), WaveNetDeviceExample.SendIpPacket(), WaveNetDeviceExample.SendOneWsmpPacket(), WaveNetDeviceExample.SendWsaExample(), WaveNetDeviceExample.SendWsmpExample(), SetupPacketReceive(), SojournTimeTrace(), TotalEnergy(), TotalEnergyHarvested(), TraceNextRx(), BatteryLifetimeTest.VariableLoadTest(), and WifiInterferenceTestCase.WifiSimpleInterference().

first.echoClient = ns.applications.UdpEchoClientHelper(interfaces.GetAddress(1), 9)
first.echoServer = ns.applications.UdpEchoServerHelper(9)
first.nodes = ns.network.NodeContainer()

Definition at line 25 of file first.py.

Referenced by ClientEmbeddedObjectReceived(), Ns2MobilityHelperTest.CreateNodes(), CreateOnOffFlow(), WaveNetDeviceExample.CreateWaveNodes(), TestCaseHelper.CreatWaveDevice(), ns3::CsmaStarHelper.CsmaStarHelper(), PacketSocketAppsTest.DoRun(), RocketfuelTopologyReaderTest.DoRun(), DhcpTestCase.DoRun(), RandomRoomPositionAllocatorTestCase.DoRun(), Ipv6ForwardingTest.DoRun(), Ipv6RipngTest.DoRun(), Ipv4RipTest.DoRun(), ns3::aodv::LoopbackTestCase.DoRun(), ns3::aodvq::LoopbackTestCase.DoRun(), Ipv6RawSocketImplTest.DoRun(), Ipv4RawSocketImplTest.DoRun(), BuildingsHelperOneTestCase.DoRun(), Ns3TcpInteroperabilityTestCase.DoRun(), Ipv4FragmentationTest.DoRun(), SameRoomPositionAllocatorTestCase.DoRun(), Ns3TcpSocketTestCase2.DoRun(), Ns3TcpCwndTestCase1.DoRun(), UdpSocketImplTest.DoRun(), UdpEchoClientSetFillTestCase.DoRun(), Ipv4RipCountToInfinityTest.DoRun(), Ipv6RipngCountToInfinityTest.DoRun(), ns3::TcpGeneralTest.DoRun(), CsmaOneSubnetTestCase.DoRun(), Udp6SocketImplTest.DoRun(), CsmaPacketSocketTestCase.DoRun(), StaWifiMacScanningTestCase.DoRun(), experiment(), ns3::RocketfuelTopologyReader.GenerateFromMapsFile(), ns3::RocketfuelTopologyReader.GenerateFromWeightsFile(), ns3::RocketfuelTopologyReader.Read(), ns3::OrbisTopologyReader.Read(), ns3::InetTopologyReader.Read(), ns3::BsmApplication.ReceiveWavePacket(), RoutingExperiment.Run(), Experiment.Run(), RxDrop(), SecondBucketTokensTrace(), ns3::PyViz.SetNodesOfInterest(), SinkRx(), SojournTimeTrace(), TearDownLink(), and TxCallback().