A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-tcp.cc File Reference
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/mobility-model.h"
#include "ns3/on-off-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/packet-sink.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/tcp-westwood-plus.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
Include dependency graph for wifi-tcp.cc:

Go to the source code of this file.

Functions

void CalculateThroughput ()
 Calculate the throughput.

Variables

uint64_t lastTotalRx = 0
 The value of the last total received bytes.
Ptr< PacketSinksink
 Pointer to the packet sink application.

Detailed Description

Usage

$ ./ns3 run "wifi-tcp [Program Options]"

Program Options

--payloadSize
Payload size in bytes [1472]
--dataRate
Application data ate [100000000bps]
--tcpVariant
Transport protocol to use: TcpNewReno, TcpHybla, TcpHighSpeed, TcpHtcp, TcpVegas, TcpScalable, TcpVeno, TcpBic, TcpYeah, TcpIllinois, TcpWestwood, TcpWestwoodPlus, TcpLedbat [TcpNewReno]
--phyRate
Physical layer bitrate [HtMcs7]
--simulationTime
Simulation time in seconds [+10s]
--pcap
Enable/disable PCAP Tracing [false]

Definition in file wifi-tcp.cc.

Function Documentation

◆ CalculateThroughput()

void CalculateThroughput ( )

Calculate the throughput.

Definition at line 51 of file wifi-tcp.cc.

References CalculateThroughput(), ns3::Time::GetSeconds(), lastTotalRx, ns3::MilliSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and sink.

Referenced by CalculateThroughput(), ns3::MinstrelHtWifiManager::StatsDump(), and ns3::MinstrelHtWifiManager::UpdateStats().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ lastTotalRx

uint64_t lastTotalRx = 0

The value of the last total received bytes.

Definition at line 45 of file wifi-tcp.cc.

Referenced by CalculateThroughput().

◆ sink

Ptr<PacketSink> sink

Pointer to the packet sink application.

Definition at line 44 of file wifi-tcp.cc.

Referenced by anonymous_namespace{wifi-multirate.cc}::Experiment::ApplicationSetup(), CalculateThroughput(), TracedValueCallbackTestCase::CheckType(), BriteTopologyFunctionTestCase::DoRun(), BulkSendBasicTestCase::DoRun(), BulkSendSeqTsSizeTestCase::DoRun(), CsmaBridgeTestCase::DoRun(), CsmaBroadcastTestCase::DoRun(), CsmaMulticastTestCase::DoRun(), CsmaOneSubnetTestCase::DoRun(), CsmaPacketSocketTestCase::DoRun(), CsmaPingTestCase::DoRun(), CsmaRawIpSocketTestCase::DoRun(), Ns3TcpCubicTestCase::DoRun(), Ns3TcpLossTestCase::DoRun(), Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseCsma::DoRun(), Ns3TcpSocketTestCaseP2P::DoRun(), Ns3TcpStateTestCase::DoRun(), TcpEndPointBug2211Test::DoRun(), experiment(), LteAggregationThroughputScaleTestCase::GetThroughput(), DsdvManetExample::InstallApplications(), InstallPacketSink(), TracedCallbackTypedefTestCase::Checker< Ts >::Invoke(), anonymous_namespace{uan-cw-example.cc}::Experiment::Run(), anonymous_namespace{uan-rc-example.cc}::Experiment::Run(), NeighborCacheExample::Run(), NetAnimExperiment::Run(), RoutingExperiment::Run(), anonymous_namespace{wifi-adhoc.cc}::Experiment::SetupPacketReceive(), anonymous_namespace{wifi-clear-channel-cmu.cc}::Experiment::SetupPacketReceive(), anonymous_namespace{wifi-multirate.cc}::Experiment::SetupPacketReceive(), DsdvManetExample::SetupPacketReceive(), RoutingExperiment::SetupPacketReceive(), and SetupPacketReceive().