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

Go to the source code of this file.

Functions

void CalculateThroughput ()
 

Variables

uint64_t lastTotalRx = 0
 
Ptr< PacketSinksink
 

Detailed Description

Usage

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

Program Options

–payloadSize
Payload size in bytes [1472]
–dataRate
Application data ate [100Mbps]
–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 [10]
–pcap
Enable/disable PCAP Tracing [false]

Definition in file wifi-tcp.cc.

Function Documentation

◆ CalculateThroughput()

void CalculateThroughput ( )

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

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

+ Here is the call graph for this function:

Variable Documentation

◆ lastTotalRx

uint64_t lastTotalRx = 0

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

Referenced by CalculateThroughput().

◆ sink

Ptr<PacketSink> sink

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

Referenced by Experiment::ApplicationSetup(), CalculateThroughput(), TracedValueCallbackTestCase::CheckType(), TcpEndPointBug2211Test::DoRun(), BulkSendBasicTestCase::DoRun(), BulkSendSeqTsSizeTestCase::DoRun(), BriteTopologyFunctionTestCase::DoRun(), CsmaBridgeTestCase::DoRun(), CsmaBroadcastTestCase::DoRun(), CsmaMulticastTestCase::DoRun(), CsmaOneSubnetTestCase::DoRun(), CsmaPacketSocketTestCase::DoRun(), CsmaPingTestCase::DoRun(), CsmaRawIpSocketTestCase::DoRun(), Ns3TcpCwndTestCase2::DoRun(), Ns3TcpLossTestCase::DoRun(), Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), Ns3TcpStateTestCase::DoRun(), NscTcpLossTestCase1::DoRun(), NscTcpLossTestCase2::DoRun(), experiment(), LteAggregationThroughputScaleTestCase::GetThroughput(), DsdvManetExample::InstallApplications(), InstallPacketSink(), TracedCallbackTypedefTestCase::Checker< T1, T2, T3, T4, T5 >::Invoke(), TracedCallbackTypedefTestCase::Checker< T1, T2, T3, T4, empty >::Invoke(), TracedCallbackTypedefTestCase::Checker< T1, T2, T3, empty, empty >::Invoke(), TracedCallbackTypedefTestCase::Checker< T1, T2, empty, empty, empty >::Invoke(), TracedCallbackTypedefTestCase::Checker< T1, empty, empty, empty, empty >::Invoke(), RoutingExperiment::Run(), NetAnimExperiment::Run(), Experiment::Run(), RoutingExperiment::SetupPacketReceive(), DsdvManetExample::SetupPacketReceive(), Experiment::SetupPacketReceive(), SetupPacketReceive(), RoutingHelper::SetupRoutingMessages(), and RoutingHelper::SetupRoutingPacketReceive().