#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>
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. | |
std::vector< uint64_t > GetRxBytes | ( | bool | udp, |
const ApplicationContainer & | serverApp, | ||
uint32_t | payloadSize ) |
udp | true if UDP is used, false if TCP is used |
serverApp | a container of server applications |
payloadSize | the size in bytes of the packets |
Definition at line 66 of file wifi-eht-network.cc.
References ns3::DynamicCast(), ns3::ApplicationContainer::Get(), and ns3::ApplicationContainer::GetN().
Referenced by 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.
rxBytes | a vector of the amount of bytes received by each server application |
udp | true if UDP is used, false if TCP is used |
serverApp | a container of server applications |
payloadSize | the size in bytes of the packets |
tputInterval | the duration of an intermediate time interval |
simulationTime | the 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().