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

◆ address

first.address = ns.internet.Ipv4AddressHelper()

Definition at line 37 of file first.py.

Referenced by ns3::Ipv4AddressTlvValue.Add(), StackHelper.AddAddress(), ns3::Ipv4L3Protocol.AddAddress(), ns3::Ipv6L3Protocol.AddAddress(), ns3::WifiRemoteStationManager.AddAllSupportedMcs(), ns3::WifiRemoteStationManager.AddAllSupportedModes(), ns3::Ipv6L3Protocol.AddAutoconfiguredAddress(), ns3::dsdv::RoutingTable.AddIpv4Event(), ns3::Ipv6L3Protocol.AddMulticastAddress(), ns3::Address.Address(), ns3::WifiRemoteStationManager.AddSupportedErpSlotTime(), ns3::WifiRemoteStationManager.AddSupportedMcs(), ns3::WifiRemoteStationManager.AddSupportedMode(), ns3::WifiRemoteStationManager.AddSupportedPlcpPreamble(), ns3::Mac16Address.Allocate(), ns3::Mac64Address.Allocate(), ns3::Mac48Address.Allocate(), ns3::UdpL4Protocol.Allocate(), ns3::NscTcpL4Protocol.Allocate(), ns3::Mac8Address.Allocate(), ns3::Ipv6EndPointDemux.Allocate(), ns3::Ipv4EndPointDemux.Allocate(), ns3::TcpL4Protocol.Allocate(), ns3::UdpL4Protocol.Allocate6(), ns3::TcpL4Protocol.Allocate6(), ns3::dsdv::RoutingTable.AnyRunningEvent(), AsciiToIpv4(), ns3.AsciiToIpv4Host(), ns3.AsciiToIpv6Host(), ns3::PointToPointStarHelper.AssignIpv4Addresses(), ns3::CsmaStarHelper.AssignIpv4Addresses(), ns3::BriteTopologyHelper.AssignIpv4Addresses(), ns3::BriteTopologyHelper.AssignIpv6Addresses(), ns3::LrWpanHelper.AssociateToPan(), ns3::Ipv4RawSocketImpl.Bind(), ns3::NscTcpSocketImpl.Bind(), ns3::Ipv6RawSocketImpl.Bind(), ns3::UdpSocketImpl.Bind(), ns3::PacketSocket.Bind(), ns3::TcpSocketBase.Bind(), ns3::BulkSendHelper.BulkSendHelper(), ClientRx(), ns3::Ipv4RawSocketImpl.Connect(), ns3::NscTcpSocketImpl.Connect(), ns3::UdpSocketImpl.Connect(), ns3::Ipv6RawSocketImpl.Connect(), ns3::PacketSocket.Connect(), ns3::TcpSocketBase.Connect(), ns3::ThreeGppHttpServer.ConnectionRequestCallback(), ns3::Mac8Address.ConvertFrom(), ns3::Mac16Address.ConvertFrom(), ns3::Mac64Address.ConvertFrom(), ns3::Mac48Address.ConvertFrom(), ns3::PacketSocketAddress.ConvertFrom(), ns3::InetSocketAddress.ConvertFrom(), ns3::Ipv4Address.ConvertFrom(), ns3::Ipv6Address.ConvertFrom(), ns3::PacketSocketAddress.ConvertTo(), Bug772ChainTest.CreateDevices(), HwmpProactiveRegressionTest.CreateDevices(), FlameRegressionTest.CreateDevices(), HwmpDoRfRegressionTest.CreateDevices(), HwmpSimplestRegressionTest.CreateDevices(), HwmpReactiveRegressionTest.CreateDevices(), ChainRegressionTest.CreateDevices(), ns3::MeshWifiBeacon.CreateHeader(), ns3::TapBridge.CreateTap(), ns3::SixLowPanNetDevice.DecompressLowPanHc1(), ns3::dot11s::IePerr.DeleteAddressUnit(), ns3::dsr::DsrRouteCache.DeleteAllRoutesIncludeLink(), ns3::dsdv::RoutingTable.DeleteIpv4Event(), ns3::dot11s::HwmpTag.Deserialize(), ns3::olsr::MessageHeader::Hna.Deserialize(), ns3::aodv::RerrHeader.Deserialize(), ns3::PacketSocket.DoBind(), ns3::Rip.DoInitialize(), ns3::RipNg.DoInitialize(), NetworkAllocatorHelperTestCase.DoRun(), WifiMsduAggregatorThroughputTest.DoRun(), Ns3WimaxSfCreationTestCase.DoRun(), WifiAcMappingTest.DoRun(), Ns3TcpNoDelayTestCase.DoRun(), Ns3TcpSocketTestCase1.DoRun(), NscTcpLossTestCase1.DoRun(), ns3::aodv::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(), IcmpTimeExceedTestCase.DoRun(), IcmpV6TimeExceedTestCase.DoRun(), CsmaStarTestCase.DoRun(), Ns3WimaxSchedulingTestCase.DoRunOnce(), Ns3WimaxSFTypeTestCase.DoRunOnce(), BridgeTest.DoSetup(), TwoBridgeTest.DoSetup(), dstSocketRecv(), ns3::olsr::RoutingProtocol.DupTupleTimerExpire(), experiment(), ns3::dsdv::RoutingTable.ForceDeleteIpv4Event(), ns3::dot11s::HwmpProtocolMac.ForwardPerr(), ns3::UdpSocketImpl.ForwardUp(), ns3::PacketSocket.ForwardUp(), ns3::UdpSocketImpl.ForwardUp6(), ns3::QosTxop.GetBaAgreementEstablished(), ns3::QosTxop.GetBaBufferSize(), ns3::QosTxop.GetBaStartingSequence(), ns3::WifiRemoteStationManager.GetChannelWidthSupported(), ns3::WifiRemoteStationManager.GetDataTxVector(), ns3::dsdv::RoutingTable.GetEventId(), ns3::WifiRemoteStationManager.GetFragmentOffset(), ns3::WifiRemoteStationManager.GetFragmentSize(), ns3::WifiRemoteStationManager.GetGreenfieldSupported(), ns3::WifiRemoteStationManager.GetHeSupported(), ns3::WifiRemoteStationManager.GetHtSupported(), ns3::dsr::DsrRouting.GetIDfromIP(), ns3::dsr::DsrOptions.GetIDfromIP(), ns3::WifiRemoteStationManager.GetInfo(), ns3::Ipv4L3Protocol.GetInterfaceForAddress(), ns3::Ipv6L3Protocol.GetInterfaceForAddress(), ns3::Ipv4L3Protocol.GetInterfaceForPrefix(), ns3::Ipv6L3Protocol.GetInterfaceForPrefix(), ns3::dsr::DsrRouting.GetIPfromMAC(), ns3::Ipv6InterfaceContainer.GetLinkLocalAddress(), ns3::WifiRemoteStationManager.GetNMcsSupported(), ns3::WifiRemoteStationManager.GetNumberOfSupportedStreams(), ns3::Ipv4RawSocketImpl.GetPeerName(), ns3::NscTcpSocketImpl.GetPeerName(), ns3::Ipv6RawSocketImpl.GetPeerName(), ns3::UdpSocketImpl.GetPeerName(), ns3::PacketSocket.GetPeerName(), ns3::TcpSocketBase.GetPeerName(), ns3::WifiRemoteStationManager.GetQosSupported(), ns3::WifiRemoteStationManager.GetRtsTxVector(), ns3::dsdv::RoutingProtocol.GetSettlingTime(), ns3::WifiRemoteStationManager.GetShortGuardIntervalSupported(), ns3::WifiRemoteStationManager.GetShortPreambleSupported(), ns3::WifiRemoteStationManager.GetShortSlotTimeSupported(), ns3::Ipv4RawSocketImpl.GetSockName(), ns3::Ipv6RawSocketImpl.GetSockName(), ns3::NscTcpSocketImpl.GetSockName(), ns3::UdpSocketImpl.GetSockName(), ns3::PacketSocket.GetSockName(), ns3::TcpSocketBase.GetSockName(), ns3::WifiRemoteStationManager.GetVhtSupported(), ns3::Ping6.HandleRead(), TracerouteExample.InstallInternetStack(), AodvExample.InstallInternetStack(), MeshTest.InstallInternetStack(), DsdvManetExample.InstallInternetStack(), ns3::Ipv4Address.Ipv4Address(), ns3::Ipv4AddressHelper.Ipv4AddressHelper(), ns3::Ipv4EndPoint.Ipv4EndPoint(), ns3::Ipv6Address.Ipv6Address(), ns3::Ipv6InterfaceAddress.Ipv6InterfaceAddress(), ns3::Ipv6RawSocketImpl.Ipv6JoinGroup(), ns3::UdpSocketImpl.Ipv6JoinGroup(), ns3::Socket.Ipv6JoinGroup(), ns3::Ipv4AddressGeneratorImpl.IsAddressAllocated(), ns3::WifiRemoteStationManager.IsAssociated(), ns3::WifiRemoteStationManager.IsBrandNew(), ns3::Ipv4L3Protocol.IsDestinationAddress(), ns3::WifiRemoteStationManager.IsLastFragment(), ns3::Mac8Address.IsMatchingType(), ns3::Mac16Address.IsMatchingType(), ns3::Mac64Address.IsMatchingType(), ns3::Mac48Address.IsMatchingType(), ns3::InetSocketAddress.IsMatchingType(), ns3::PacketSocketAddress.IsMatchingType(), ns3::Ipv4Address.IsMatchingType(), ns3::Ipv6Address.IsMatchingType(), ns3::Ipv6L3Protocol.IsRegisteredMulticastAddress(), ns3::Ipv6Interface.IsSolicitedMulticastAddress(), ns3::WifiRemoteStationManager.IsWaitAssocTxOk(), ns3::WifiRemoteStationManager.Lookup(), ns3::WifiRemoteStationManager.LookupState(), ns3::WifiRemoteStationManager.NeedFragmentation(), ns3::WifiRemoteStationManager.NeedRetransmission(), ns3::WifiRemoteStationManager.NeedRts(), ns3::Ipv6AddressHelper.NewAddress(), ns3::ThreeGppHttpServer.NewConnectionCreatedCallback(), ns3::aodv::RoutingProtocol.NotifyAddAddress(), ns3::Ipv4StaticRouting.NotifyAddAddress(), ns3::dsdv::RoutingProtocol.NotifyAddAddress(), ns3::Ipv4ListRouting.NotifyAddAddress(), ns3::Ipv6ListRouting.NotifyAddAddress(), ns3::Ipv4GlobalRouting.NotifyAddAddress(), ns3::Rip.NotifyAddAddress(), ns3::RipNg.NotifyAddAddress(), ns3::Ipv6StaticRouting.NotifyAddAddress(), ns3::Rip.NotifyInterfaceUp(), ns3::RipNg.NotifyInterfaceUp(), ns3::aodv::RoutingProtocol.NotifyRemoveAddress(), ns3::Ipv4StaticRouting.NotifyRemoveAddress(), ns3::dsdv::RoutingProtocol.NotifyRemoveAddress(), ns3::Ipv4ListRouting.NotifyRemoveAddress(), ns3::Ipv6ListRouting.NotifyRemoveAddress(), ns3::Ipv4GlobalRouting.NotifyRemoveAddress(), ns3::Rip.NotifyRemoveAddress(), ns3::RipNg.NotifyRemoveAddress(), ns3::Ipv6StaticRouting.NotifyRemoveAddress(), ns3::OnOffHelper.OnOffHelper(), ns3.operator<<(), ns3::Address.operator=(), ns3.operator>>(), ns3::PacketSinkHelper.PacketSinkHelper(), ns3::WifiRemoteStationManager.PrepareForQueue(), AnimationInterfaceTestCase.PrepareNetwork(), ns3::Ipv6Address.Print(), ns3::WifiRemoteStationManager.RecordDisassociated(), ns3::WifiRemoteStationManager.RecordGotAssocTxFailed(), ns3::WifiRemoteStationManager.RecordGotAssocTxOk(), ns3::WifiRemoteStationManager.RecordWaitAssocTxOk(), ns3::Ipv4Interface.RemoveAddress(), ns3::Ipv4L3Protocol.RemoveAddress(), ns3::Ipv6L3Protocol.RemoveAddress(), ns3::Ipv6Interface.RemoveAddress(), ns3::WifiRemoteStationManager.RemoveAllSupportedMcs(), ns3::BlockAckManager.RemoveFromRetryQueue(), ns3::Ipv6L3Protocol.RemoveMulticastAddress(), ns3::WifiRemoteStationManager.ReportAmpduTxStatus(), ns3::WifiRemoteStationManager.ReportDataFailed(), ns3::WifiRemoteStationManager.ReportDataOk(), ns3::WifiRemoteStationManager.ReportFinalDataFailed(), ns3::WifiRemoteStationManager.ReportFinalRtsFailed(), ns3::WifiRemoteStationManager.ReportRtsFailed(), ns3::WifiRemoteStationManager.ReportRtsOk(), ns3::WifiRemoteStationManager.ReportRxOk(), ns3::dot11s::HwmpProtocol.RequestRoute(), ns3::dsr::DsrRouting.RouteRequestTimerExpire(), Experiment.Run(), ns3::dsr::DsrRouting.ScheduleRreqRetry(), ns3::DhcpServer.SendAck(), ns3::dsr::DsrRouting.SendErrorRequest(), ns3::dsr::DsrRouting.SendInitialRequest(), ns3::NscTcpSocketImpl.SendTo(), ns3::UdpSocketImpl.SendTo(), ns3::PacketSocket.SendTo(), ns3::TcpSocketBase.SendTo(), ns3::dot11s::HwmpTag.Serialize(), ns3::UanHeaderCommon.Serialize(), ns3::UanHeaderRcCts.Serialize(), ns3::olsr::MessageHeader::Hna.Serialize(), ns3::Ipv4Address.Set(), ns3::Ipv6Address.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::AdhocWifiMac.SetAddress(), ns3::LoopbackNetDevice.SetAddress(), ns3::LteNetDevice.SetAddress(), ns3::SixLowPanNetDevice.SetAddress(), ns3::ApWifiMac.SetAddress(), ns3::Ipv6InterfaceAddress.SetAddress(), ns3::BridgeNetDevice.SetAddress(), ns3::SimpleNetDevice.SetAddress(), ns3::WifiNetDevice.SetAddress(), ns3::LrWpanNetDevice.SetAddress(), ns3::UanNetDevice.SetAddress(), ns3::FdNetDevice.SetAddress(), ns3::PointToPointNetDevice.SetAddress(), ns3::RegularWifiMac.SetAddress(), ns3::AlohaNoackNetDevice.SetAddress(), ns3::TapBridge.SetAddress(), ns3::CsmaNetDevice.SetAddress(), ns3::WimaxNetDevice.SetAddress(), ns3::WaveNetDevice.SetAddress(), ns3::Ipv4AddressHelper.SetBase(), 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(), ns3::ApplicationPacketProbe.SetValueByPath(), ns3::ThreeGppHttpClientHelper.ThreeGppHttpClientHelper(), ns3::ThreeGppHttpServerHelper.ThreeGppHttpServerHelper(), ns3::ApplicationPacketProbe.TraceSink(), ns3::AthstatsWifiTraceSink.TxDataFailedTrace(), ns3::AthstatsWifiTraceSink.TxFinalDataFailedTrace(), ns3::AthstatsWifiTraceSink.TxFinalRtsFailedTrace(), ns3::AthstatsWifiTraceSink.TxRtsFailedTrace(), ns3::UdpClientHelper.UdpClientHelper(), ns3::UdpEchoClientHelper.UdpEchoClientHelper(), and ns3::UdpTraceClientHelper.UdpTraceClientHelper().

◆ clientApps

◆ devices

first.devices = pointToPoint.Install(nodes)

Definition at line 32 of file first.py.

Referenced by ns3::LrWpanHelper.AssociateToPan(), BatteryLifetimeTest.ConstantLoadTest(), Bug772ChainTest.CreateDevices(), ChainRegressionTest.CreateDevices(), WaveNetDeviceExample.CreateWaveNodes(), TestCaseHelper.CreatWaveDevice(), BasicEnergyDepletionTest.DepletionTestCase(), Ns3TcpNoDelayTestCase.DoRun(), Ns3TcpSocketTestCase1.DoRun(), NscTcpLossTestCase1.DoRun(), SpectrumIdealPhyTestCase.DoRun(), ns3::aodv::LoopbackTestCase.DoRun(), Ns3TcpInteroperabilityTestCase.DoRun(), Ipv4DeduplicationTest.DoRun(), Ns3TcpSocketTestCase2.DoRun(), NscTcpLossTestCase2.DoRun(), Ns3TcpCwndTestCase1.DoRun(), IcmpTimeExceedTestCase.DoRun(), ChannelRoutingTestCase.DoRun(), CsmaOneSubnetTestCase.DoRun(), IcmpV6TimeExceedTestCase.DoRun(), Ipv4DeduplicationPerformanceTest.DoRun(), experiment(), 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(), AnimationInterfaceTestCase.PrepareNetwork(), NetAnimExperiment.Run(), Experiment.Run(), WaveNetDeviceExample.SendIpExample(), WaveNetDeviceExample.SendIpPacket(), WaveNetDeviceExample.SendOneWsmpPacket(), WaveNetDeviceExample.SendWsaExample(), WaveNetDeviceExample.SendWsmpExample(), BatteryLifetimeTest.VariableLoadTest(), and WifiInterferenceTestCase.WifiSimpleInterference().

◆ echoClient

first.echoClient = ns.applications.UdpEchoClientHelper(interfaces.GetAddress(1), 9)

◆ echoServer

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

◆ interfaces

◆ nodes

first.nodes = ns.network.NodeContainer()

Definition at line 25 of file first.py.

Referenced by Ns2MobilityHelperTest.CreateNodes(), 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(), Ipv6RawSocketImplTest.DoRun(), Ipv4RawSocketImplTest.DoRun(), BuildingsHelperOneTestCase.DoRun(), Ns3TcpInteroperabilityTestCase.DoRun(), Ipv4FragmentationTest.DoRun(), Ipv4DeduplicationTest.DoRun(), SameRoomPositionAllocatorTestCase.DoRun(), Ns3TcpSocketTestCase2.DoRun(), Ns3TcpCwndTestCase1.DoRun(), UdpSocketImplTest.DoRun(), UdpEchoClientSetFillTestCase.DoRun(), Ipv4RipCountToInfinityTest.DoRun(), Ipv6RipngCountToInfinityTest.DoRun(), ns3::TcpGeneralTest.DoRun(), CsmaOneSubnetTestCase.DoRun(), Udp6SocketImplTest.DoRun(), Ipv4DeduplicationPerformanceTest.DoRun(), CsmaPacketSocketTestCase.DoRun(), StaWifiMacScanningTestCase.DoRun(), experiment(), ns3::RocketfuelTopologyReader.GenerateFromMapsFile(), ns3::RocketfuelTopologyReader.GenerateFromWeightsFile(), ns3::FlowMonitorHelper.Install(), ns3::DsrMainHelper.Install(), ns3::RocketfuelTopologyReader.Read(), ns3::OrbisTopologyReader.Read(), ns3::InetTopologyReader.Read(), ns3::BsmApplication.ReceiveWavePacket(), RoutingExperiment.Run(), Experiment.Run(), ns3::PyViz.SetNodesOfInterest(), NetAnimExperiment.UpdatePositions(), and Experiment.UpdatePositions().

◆ pointToPoint

◆ serverApps

◆ stack