A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-eht-network.cc File Reference
#include "ns3/boolean.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/eht-phy.h"
#include "ns3/enum.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/multi-model-spectrum-channel.h"
#include "ns3/on-off-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/packet-sink.h"
#include "ns3/spectrum-wifi-helper.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/udp-client-server-helper.h"
#include "ns3/udp-server.h"
#include "ns3/uinteger.h"
#include "ns3/wifi-acknowledgment.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
#include <array>
#include <functional>
#include <numeric>
+ Include dependency graph for wifi-eht-network.cc:

Go to the source code of this file.

Functions

std::vector< uint64_t > GetRxBytes (bool udp, const ApplicationContainer &serverApp, uint32_t payloadSize)
 
void PrintIntermediateTput (std::vector< uint64_t > &rxBytes, bool udp, const ApplicationContainer &serverApp, uint32_t payloadSize, Time tputInterval, Time simulationTime)
 Print average throughput over an intermediate time interval.
 

Function Documentation

◆ GetRxBytes()

std::vector< uint64_t > GetRxBytes ( bool udp,
const ApplicationContainer & serverApp,
uint32_t payloadSize )
Parameters
udptrue if UDP is used, false if TCP is used
serverAppa container of server applications
payloadSizethe size in bytes of the packets
Returns
the bytes received by each server application

Definition at line 66 of file wifi-eht-network.cc.

References ns3::DynamicCast(), ns3::ApplicationContainer::Get(), and ns3::ApplicationContainer::GetN().

Referenced by PrintIntermediateTput().

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

◆ PrintIntermediateTput()

void PrintIntermediateTput ( std::vector< uint64_t > & rxBytes,
bool udp,
const ApplicationContainer & serverApp,
uint32_t payloadSize,
Time tputInterval,
Time simulationTime )

Print average throughput over an intermediate time interval.

Parameters
rxBytesa vector of the amount of bytes received by each server application
udptrue if UDP is used, false if TCP is used
serverAppa container of server applications
payloadSizethe size in bytes of the packets
tputIntervalthe duration of an intermediate time interval
simulationTimethe simulation time in seconds

Definition at line 96 of file wifi-eht-network.cc.

References ns3::Time::As(), ns3::Time::GetMicroSeconds(), GetRxBytes(), Min, ns3::NanoSeconds(), ns3::Simulator::Now(), PrintIntermediateTput(), ns3::Time::S, and ns3::Simulator::Schedule().

Referenced by PrintIntermediateTput().

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