#include "ns3/ampdu-subframe-header.h"
#include "ns3/application-container.h"
#include "ns3/boolean.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/gnuplot.h"
#include "ns3/integer.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/node-list.h"
#include "ns3/packet-socket-client.h"
#include "ns3/packet-socket-helper.h"
#include "ns3/packet-socket-server.h"
#include "ns3/propagation-delay-model.h"
#include "ns3/propagation-loss-model.h"
#include "ns3/queue-size.h"
#include "ns3/rng-seed-manager.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/uinteger.h"
#include "ns3/wifi-mac-header.h"
#include "ns3/wifi-mac.h"
#include "ns3/wifi-net-device.h"
#include "ns3/yans-wifi-helper.h"
#include <fstream>
Go to the source code of this file.
Classes | |
class | Experiment |
WiFi adhoc experiment class. More... | |
Macros | |
#define | PI 3.1415926535 |
Avoid std::numbers::pi because it's C++20. More... | |
Functions | |
void | AssociationLog (std::string context, Mac48Address address) |
Association log trace. More... | |
void | BackoffTrace (std::string context, uint32_t newVal, uint8_t) |
Backoff trace. More... | |
Mac48Address | ContextToMac (std::string context) |
Parse context strings of the form "/NodeList/x/DeviceList/x/..." and fetch the Mac address. More... | |
uint32_t | ContextToNodeId (std::string context) |
Parse context strings of the form "/NodeList/x/DeviceList/x/..." to extract the NodeId integer. More... | |
void | CwTrace (std::string context, uint32_t cw, uint8_t) |
Contention window trace. More... | |
void | DisassociationLog (std::string context, Mac48Address address) |
Deassociation log trace. More... | |
uint64_t | GetCount (const std::map< Mac48Address, uint64_t > &counter, Mac48Address addr) |
Get the Counter associated with a MAC address. More... | |
void | IncrementCounter (std::map< Mac48Address, uint64_t > &counter, Mac48Address addr, uint64_t increment=1) |
Incremement the counter for a given address. More... | |
void | MacRxTrace (std::string context, Ptr< const Packet > p) |
MAC RX trace. More... | |
void | MacTxTrace (std::string context, Ptr< const Packet > p) |
MAC TX trace. More... | |
void | PhyRxDoneTrace (std::string context, Ptr< const Packet > p) |
PHY RX end trace. More... | |
void | PhyRxDropTrace (std::string context, Ptr< const Packet > p, WifiPhyRxfailureReason reason) |
PHY Drop trace. More... | |
void | PhyRxErrorTrace (std::string context, Ptr< const Packet > p, double snr) |
PHY RX error trace. More... | |
void | PhyRxOkTrace (std::string context, Ptr< const Packet > p, double snr, WifiMode mode, WifiPreamble preamble) |
PHY successful RX trace. More... | |
void | PhyRxPayloadTrace (std::string context, WifiTxVector txVector, Time psduDuration) |
PHY Rx trace. More... | |
void | PhyRxTrace (std::string context, Ptr< const Packet > p, RxPowerWattPerChannelBand power) |
PHY Rx trace. More... | |
void | PhyTxDoneTrace (std::string context, Ptr< const Packet > p) |
PHY TX end trace. More... | |
void | PhyTxTrace (std::string context, Ptr< const Packet > p, double txPowerW) |
PHY TX trace. More... | |
void | RestartCalc () |
Reset the stats. More... | |
void | SocketSendTrace (std::string context, Ptr< const Packet > p, const Address &addr) |
Socket send trace. More... | |
void | TracePacketReception (std::string context, Ptr< const Packet > p, uint16_t channelFreqMhz, WifiTxVector txVector, MpduInfo aMpdu, SignalNoiseDbm signalNoise, uint16_t staId) |
Trace a packet reception. More... | |
Variables | |
std::set< uint32_t > | associated |
Contains the IDs of the STAs that successfully associated to the access point (in infrastructure mode only) More... | |
std::ofstream | backoffTraceFile |
File that traces backoff over time. More... | |
std::map< std::string, std::map< unsigned int, double > > | bianchiResultsDifs |
Table of the expected values for DIFS. More... | |
std::map< std::string, std::map< unsigned int, double > > | bianchiResultsEifs |
Table of the expected values for EIFS. More... | |
std::map< Mac48Address, uint64_t > | bytesReceived |
Map that stores the total bytes received per STA (and addressed to that STA) More... | |
std::ofstream | cwTraceFile |
File that traces CW over time. More... | |
std::ofstream | macRxTraceFile |
File that traces MAC receptions over time. More... | |
std::ofstream | macTxTraceFile |
File that traces MAC transmissions over time. More... | |
uint8_t | maxMpdus = 0 |
The maximum number of MPDUs in A-MPDUs (0 to disable MPDU aggregation) More... | |
std::map< Mac48Address, uint64_t > | packetsReceived |
Map that stores the total packets received per STA (and addressed to that STA) More... | |
std::map< Mac48Address, uint64_t > | packetsTransmitted |
Map that stores the total packets transmitted per STA. More... | |
std::map< Mac48Address, uint64_t > | phyHeaderFailed |
Map that stores the total number of unsuccessfuly received PHY headers per STA. More... | |
std::ofstream | phyTxTraceFile |
File that traces PHY transmissions over time. More... | |
uint32_t | pktSize = 1500 |
packet size used for the simulation (in bytes) More... | |
std::map< Mac48Address, uint64_t > | psduFailed |
Map that stores the total number of unsuccessfuly received PSDUS (for which the PHY header was successfully received) per STA (including PSDUs not addressed to that STA) More... | |
std::map< Mac48Address, uint64_t > | psduSucceeded |
Map that stores the total number of successfully received PSDUs per STA (including PSDUs not addressed to that STA) More... | |
std::map< Mac48Address, uint64_t > | rxEventAbortedByTx |
Map that stores the number of reception events aborted per STA because the PHY has started to transmit. More... | |
std::map< Mac48Address, uint64_t > | rxEventWhileDecodingPreamble |
Map that stores the number of reception events per STA that occurred while PHY was already decoding a preamble. More... | |
std::map< Mac48Address, uint64_t > | rxEventWhileRxing |
Map that stores the number of reception events per STA that occurred while PHY was already receiving a PPDU. More... | |
std::map< Mac48Address, uint64_t > | rxEventWhileTxing |
Map that stores the number of reception events per STA that occurred while PHY was already transmitting a PPDU. More... | |
std::ofstream | socketSendTraceFile |
File that traces packets transmitted by the application over time. More... | |
std::map< Mac48Address, Time > | timeFirstReceived |
Map that stores the time at which the first packet was received per STA (and the packet is addressed to that STA) More... | |
std::map< Mac48Address, Time > | timeFirstTransmitted |
Map that stores the time at which the first packet was transmitted per STA. More... | |
std::map< Mac48Address, Time > | timeLastReceived |
Map that stores the time at which the last packet was received per STA (and the packet is addressed to that STA) More... | |
std::map< Mac48Address, Time > | timeLastTransmitted |
Map that stores the time at which the last packet was transmitted per STA. More... | |
bool | tracing = false |
Flag to enable/disable generation of tracing files. More... | |
#define PI 3.1415926535 |
Avoid std::numbers::pi because it's C++20.
Definition at line 58 of file wifi-bianchi.cc.
void AssociationLog | ( | std::string | context, |
Mac48Address | address | ||
) |
Association log trace.
context | The context. |
address | The MAC address. |
Definition at line 2340 of file wifi-bianchi.cc.
References associated, ContextToNodeId(), ns3::Simulator::Now(), NS_FATAL_ERROR, and NS_LOG_DEBUG.
Referenced by Experiment::Run().
void BackoffTrace | ( | std::string | context, |
uint32_t | newVal, | ||
uint8_t | |||
) |
Backoff trace.
context | The context. |
newVal | The backoff value. |
Definition at line 2053 of file wifi-bianchi.cc.
References backoffTraceFile, ContextToNodeId(), ns3::Time::GetSeconds(), ns3::Simulator::Now(), NS_LOG_INFO, and tracing.
Referenced by Experiment::Run().
Mac48Address ContextToMac | ( | std::string | context | ) |
Parse context strings of the form "/NodeList/x/DeviceList/x/..." and fetch the Mac address.
context | The context to parse. |
Definition at line 1927 of file wifi-bianchi.cc.
References ns3::Mac48Address::ConvertFrom(), ns3::WifiNetDevice::GetAddress(), ns3::Node::GetDevice(), ns3::Node::GetNDevices(), and ns3::NodeList::GetNode().
Referenced by PhyRxDropTrace(), PhyRxErrorTrace(), PhyRxOkTrace(), PhyTxTrace(), and TracePacketReception().
uint32_t ContextToNodeId | ( | std::string | context | ) |
Parse context strings of the form "/NodeList/x/DeviceList/x/..." to extract the NodeId integer.
context | The context to parse. |
Definition at line 1913 of file wifi-bianchi.cc.
Referenced by AssociationLog(), BackoffTrace(), CwTrace(), DisassociationLog(), MacRxTrace(), MacTxTrace(), PhyRxDoneTrace(), PhyRxDropTrace(), PhyRxErrorTrace(), PhyRxOkTrace(), PhyRxPayloadTrace(), PhyRxTrace(), PhyTxDoneTrace(), PhyTxTrace(), and SocketSendTrace().
void CwTrace | ( | std::string | context, |
uint32_t | cw, | ||
uint8_t | |||
) |
Contention window trace.
context | The context. |
cw | The contention window. |
Definition at line 2035 of file wifi-bianchi.cc.
References ContextToNodeId(), cwTraceFile, ns3::Time::GetSeconds(), ns3::Simulator::Now(), NS_LOG_INFO, and tracing.
Referenced by Experiment::Run().
void DisassociationLog | ( | std::string | context, |
Mac48Address | address | ||
) |
Deassociation log trace.
context | The context. |
address | The MAC address. |
Definition at line 2362 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Simulator::Now(), NS_FATAL_ERROR, and NS_LOG_DEBUG.
Referenced by Experiment::Run().
uint64_t GetCount | ( | const std::map< Mac48Address, uint64_t > & | counter, |
Mac48Address | addr | ||
) |
Get the Counter associated with a MAC address.
counter | The map of counters to inspect. |
addr | The MAC address. |
Definition at line 2675 of file wifi-bianchi.cc.
void IncrementCounter | ( | std::map< Mac48Address, uint64_t > & | counter, |
Mac48Address | addr, | ||
uint64_t | increment = 1 |
||
) |
Incremement the counter for a given address.
[out] | counter | The counter to increment. |
addr | The address to incremement the counter for. | |
increment | The incremement (1 if omitted). |
Definition at line 1955 of file wifi-bianchi.cc.
Referenced by PhyRxDropTrace(), PhyRxErrorTrace(), PhyRxOkTrace(), PhyTxTrace(), and TracePacketReception().
MAC RX trace.
context | The context. |
p | The packet. |
Definition at line 2307 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Time::GetSeconds(), ns3::Packet::GetSize(), macRxTraceFile, ns3::Simulator::Now(), and tracing.
Referenced by Experiment::Run().
MAC TX trace.
context | The context. |
p | The packet. |
Definition at line 2291 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Time::GetSeconds(), ns3::Packet::GetSize(), macTxTraceFile, ns3::Simulator::Now(), and tracing.
Referenced by Experiment::Run().
PHY RX end trace.
context | The context. |
p | The packet. |
Definition at line 2183 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Packet::GetSize(), ns3::Simulator::Now(), and NS_LOG_INFO.
Referenced by Experiment::Run().
void PhyRxDropTrace | ( | std::string | context, |
Ptr< const Packet > | p, | ||
WifiPhyRxfailureReason | reason | ||
) |
PHY Drop trace.
context | The context. |
p | The packet. |
reason | The drop reason. |
Definition at line 2101 of file wifi-bianchi.cc.
References ns3::BUSY_DECODING_PREAMBLE, ns3::CHANNEL_SWITCHING, ContextToMac(), ContextToNodeId(), ns3::FRAME_CAPTURE_PACKET_SWITCH, ns3::Packet::GetSize(), ns3::HT_SIG_FAILURE, IncrementCounter(), ns3::L_SIG_FAILURE, ns3::Simulator::Now(), NS_FATAL_ERROR, NS_LOG_INFO, ns3::OBSS_PD_CCA_RESET, phyHeaderFailed, pktSize, ns3::PREAMBLE_DETECT_FAILURE, ns3::PREAMBLE_DETECTION_PACKET_SWITCH, ns3::RECEPTION_ABORTED_BY_TX, rxEventAbortedByTx, rxEventWhileDecodingPreamble, rxEventWhileRxing, rxEventWhileTxing, ns3::RXING, ns3::SIG_A_FAILURE, ns3::SIG_B_FAILURE, ns3::SLEEPING, ns3::TXING, ns3::UNKNOWN, and ns3::UNSUPPORTED_SETTINGS.
Referenced by Experiment::Run().
PHY RX error trace.
context | The context. |
p | The packet. |
snr | The SNR. |
Definition at line 2236 of file wifi-bianchi.cc.
References ContextToMac(), ContextToNodeId(), ns3::Packet::GetSize(), IncrementCounter(), ns3::Simulator::Now(), NS_LOG_INFO, pktSize, and psduFailed.
Referenced by Experiment::Run().
void PhyRxOkTrace | ( | std::string | context, |
Ptr< const Packet > | p, | ||
double | snr, | ||
WifiMode | mode, | ||
WifiPreamble | preamble | ||
) |
PHY successful RX trace.
context | The context. |
p | The packet. |
snr | The SNR. |
mode | The WiFi mode. |
preamble | The preamble. |
Definition at line 2199 of file wifi-bianchi.cc.
References ContextToMac(), ContextToNodeId(), ns3::Packet::GetSize(), IncrementCounter(), maxMpdus, ns3::Simulator::Now(), NS_FATAL_ERROR, NS_LOG_INFO, NS_LOG_WARN, pktSize, psduSucceeded, and ns3::Time::S.
Referenced by Experiment::Run().
void PhyRxPayloadTrace | ( | std::string | context, |
WifiTxVector | txVector, | ||
Time | psduDuration | ||
) |
PHY Rx trace.
context | The context. |
txVector | The TX vector. |
psduDuration | The PDSU diration. |
Definition at line 2086 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Simulator::Now(), and NS_LOG_INFO.
Referenced by Experiment::Run().
void PhyRxTrace | ( | std::string | context, |
Ptr< const Packet > | p, | ||
RxPowerWattPerChannelBand | power | ||
) |
PHY Rx trace.
context | The context. |
p | The packet. |
power | The Rx power. |
Definition at line 2072 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Packet::GetSize(), ns3::Simulator::Now(), and NS_LOG_INFO.
Referenced by Experiment::Run().
PHY TX end trace.
context | The context. |
p | The packet. |
Definition at line 2278 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Packet::GetSize(), ns3::Simulator::Now(), and NS_LOG_INFO.
Referenced by Experiment::Run().
PHY TX trace.
context | The context. |
p | The packet. |
txPowerW | The TX power. |
Definition at line 2255 of file wifi-bianchi.cc.
References ContextToMac(), ContextToNodeId(), ns3::Time::GetSeconds(), ns3::Packet::GetSize(), IncrementCounter(), ns3::Simulator::Now(), NS_LOG_INFO, packetsTransmitted, phyTxTraceFile, pktSize, and tracing.
Referenced by Experiment::Run().
void RestartCalc | ( | ) |
Reset the stats.
Definition at line 2373 of file wifi-bianchi.cc.
References bytesReceived, packetsReceived, packetsTransmitted, phyHeaderFailed, psduFailed, psduSucceeded, rxEventAbortedByTx, rxEventWhileDecodingPreamble, rxEventWhileRxing, rxEventWhileTxing, timeFirstReceived, and timeLastReceived.
Referenced by Experiment::Run().
Socket send trace.
context | The context. |
p | The packet. |
addr | destination address. |
Definition at line 2324 of file wifi-bianchi.cc.
References ContextToNodeId(), ns3::Time::GetSeconds(), ns3::Packet::GetSize(), ns3::Simulator::Now(), socketSendTraceFile, and tracing.
Referenced by Experiment::Run().
void TracePacketReception | ( | std::string | context, |
Ptr< const Packet > | p, | ||
uint16_t | channelFreqMhz, | ||
WifiTxVector | txVector, | ||
MpduInfo | aMpdu, | ||
SignalNoiseDbm | signalNoise, | ||
uint16_t | staId | ||
) |
Trace a packet reception.
context | The context. |
p | The packet. |
channelFreqMhz | The channel frequqncy. |
txVector | The TX vector. |
aMpdu | The AMPDU. |
signalNoise | The signal and noise dBm. |
staId | The STA ID. |
Definition at line 1982 of file wifi-bianchi.cc.
References bytesReceived, ContextToMac(), ns3::Packet::Copy(), ns3::Packet::CreateFragment(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetAddr2(), ns3::AmpduSubframeHeader::GetLength(), ns3::Packet::GetSize(), IncrementCounter(), ns3::WifiTxVector::IsAggregation(), ns3::Simulator::Now(), packetsReceived, ns3::Packet::PeekHeader(), pktSize, ns3::Packet::RemoveHeader(), timeFirstReceived, and timeLastReceived.
Referenced by Experiment::Run().
std::set<uint32_t> associated |
Contains the IDs of the STAs that successfully associated to the access point (in infrastructure mode only)
Definition at line 111 of file wifi-bianchi.cc.
Referenced by AssociationLog().
std::ofstream backoffTraceFile |
File that traces backoff over time.
Definition at line 65 of file wifi-bianchi.cc.
Referenced by BackoffTrace(), and Experiment::Run().
std::map<std::string , std::map<unsigned int , double > > bianchiResultsDifs |
Table of the expected values for DIFS.
Definition at line 1015 of file wifi-bianchi.cc.
std::map<std::string , std::map<unsigned int , double > > bianchiResultsEifs |
Table of the expected values for EIFS.
Definition at line 121 of file wifi-bianchi.cc.
std::map<Mac48Address, uint64_t> bytesReceived |
Map that stores the total bytes received per STA (and addressed to that STA)
Definition at line 75 of file wifi-bianchi.cc.
Referenced by RestartCalc(), and TracePacketReception().
std::ofstream cwTraceFile |
File that traces CW over time.
Definition at line 64 of file wifi-bianchi.cc.
Referenced by CwTrace(), and Experiment::Run().
std::ofstream macRxTraceFile |
File that traces MAC receptions over time.
Definition at line 68 of file wifi-bianchi.cc.
Referenced by MacRxTrace(), and Experiment::Run().
std::ofstream macTxTraceFile |
File that traces MAC transmissions over time.
Definition at line 67 of file wifi-bianchi.cc.
Referenced by MacTxTrace(), and Experiment::Run().
uint8_t maxMpdus = 0 |
The maximum number of MPDUs in A-MPDUs (0 to disable MPDU aggregation)
Definition at line 116 of file wifi-bianchi.cc.
Referenced by PhyRxOkTrace(), and Experiment::Run().
std::map<Mac48Address, uint64_t> packetsReceived |
Map that stores the total packets received per STA (and addressed to that STA)
Definition at line 72 of file wifi-bianchi.cc.
Referenced by RoutingExperiment::CheckThroughput(), RoutingExperiment::ReceivePacket(), RestartCalc(), and TracePacketReception().
std::map<Mac48Address, uint64_t> packetsTransmitted |
Map that stores the total packets transmitted per STA.
Definition at line 77 of file wifi-bianchi.cc.
Referenced by PhyTxTrace(), and RestartCalc().
std::map<Mac48Address, uint64_t> phyHeaderFailed |
Map that stores the total number of unsuccessfuly received PHY headers per STA.
Definition at line 85 of file wifi-bianchi.cc.
Referenced by PhyRxDropTrace(), and RestartCalc().
std::ofstream phyTxTraceFile |
File that traces PHY transmissions over time.
Definition at line 66 of file wifi-bianchi.cc.
Referenced by PhyTxTrace(), and Experiment::Run().
uint32_t pktSize = 1500 |
packet size used for the simulation (in bytes)
Definition at line 115 of file wifi-bianchi.cc.
Referenced by ns3::TcpRxBuffer::Add(), CreateBulkFlow(), ns3::TcpTxBuffer::DiscardUpTo(), ns3::TbfQueueDisc::DoDequeue(), ns3::SubscriberStationNetDevice::DoReceive(), SpectrumIdealPhyTestCase::DoRun(), CobaltQueueDiscBasicEnqueueDequeue::DoRun(), CobaltQueueDiscMarkTest::DoRun(), CobaltQueueDiscCeThresholdTest::DoRun(), CobaltQueueDiscEnhancedBlueTest::DoRun(), CoDelQueueDiscBasicEnqueueDequeue::DoRun(), CoDelQueueDiscBasicOverflow::DoRun(), CoDelQueueDiscBasicDrop::DoRun(), CoDelQueueDiscBasicMark::DoRun(), FifoQueueDiscTestCase::DoRunFifoTest(), ns3::SixLowPanNetDevice::DoSend(), ns3::TcpRxBuffer::Extract(), ns3::TapBridge::Filter(), GenerateTraffic(), Experiment::GenerateTraffic(), MultiLinkOperationsTestBase::GetApplication(), EmlsrOperationsTestBase::GetApplication(), TestInterBssConstantObssPdAlgo::NotifyPhyRxDrop(), TestInterBssConstantObssPdAlgo::NotifyPhyRxEnd(), TestInterBssConstantObssPdAlgo::NotifyPhyTxBegin(), PhyRxDropTrace(), PhyRxErrorTrace(), PhyRxOkTrace(), PhyTxTrace(), Experiment::Run(), AredQueueDiscTestCase::RunAredDiscTest(), CobaltQueueDiscDropTest::RunDropTest(), FifoQueueDiscTestCase::RunFifoTest(), PieQueueDiscTestCase::RunPieTest(), RedQueueDiscTestCase::RunRedTest(), TbfQueueDiscTestCase::RunTbfTest(), SendPacket(), ns3::TcpGeneralTest::SendPacket(), ns3::Ipv4RawSocketImpl::SendTo(), ns3::Ipv6RawSocketImpl::SendTo(), ns3::PacketSocket::SendTo(), ns3::TcpGeneralTest::SetAppPktSize(), TracePacketReception(), and ns3::TcpTxBuffer::Update().
std::map<Mac48Address, uint64_t> psduFailed |
Map that stores the total number of unsuccessfuly received PSDUS (for which the PHY header was successfully received) per STA (including PSDUs not addressed to that STA)
Definition at line 79 of file wifi-bianchi.cc.
Referenced by PhyRxErrorTrace(), and RestartCalc().
std::map<Mac48Address, uint64_t> psduSucceeded |
Map that stores the total number of successfully received PSDUs per STA (including PSDUs not addressed to that STA)
Definition at line 83 of file wifi-bianchi.cc.
Referenced by PhyRxOkTrace(), and RestartCalc().
std::map<Mac48Address, uint64_t> rxEventAbortedByTx |
Map that stores the number of reception events aborted per STA because the PHY has started to transmit.
Definition at line 97 of file wifi-bianchi.cc.
Referenced by PhyRxDropTrace(), and RestartCalc().
std::map<Mac48Address, uint64_t> rxEventWhileDecodingPreamble |
Map that stores the number of reception events per STA that occurred while PHY was already decoding a preamble.
Definition at line 94 of file wifi-bianchi.cc.
Referenced by PhyRxDropTrace(), and RestartCalc().
std::map<Mac48Address, uint64_t> rxEventWhileRxing |
Map that stores the number of reception events per STA that occurred while PHY was already receiving a PPDU.
Definition at line 91 of file wifi-bianchi.cc.
Referenced by PhyRxDropTrace(), and RestartCalc().
std::map<Mac48Address, uint64_t> rxEventWhileTxing |
Map that stores the number of reception events per STA that occurred while PHY was already transmitting a PPDU.
Definition at line 88 of file wifi-bianchi.cc.
Referenced by PhyRxDropTrace(), and RestartCalc().
std::ofstream socketSendTraceFile |
File that traces packets transmitted by the application over time.
Definition at line 70 of file wifi-bianchi.cc.
Referenced by Experiment::Run(), and SocketSendTrace().
std::map<Mac48Address, Time> timeFirstReceived |
Map that stores the time at which the first packet was received per STA (and the packet is addressed to that STA)
Definition at line 101 of file wifi-bianchi.cc.
Referenced by RestartCalc(), and TracePacketReception().
std::map<Mac48Address, Time> timeFirstTransmitted |
Map that stores the time at which the first packet was transmitted per STA.
Definition at line 106 of file wifi-bianchi.cc.
std::map<Mac48Address, Time> timeLastReceived |
Map that stores the time at which the last packet was received per STA (and the packet is addressed to that STA)
Definition at line 104 of file wifi-bianchi.cc.
Referenced by RestartCalc(), and TracePacketReception().
std::map<Mac48Address, Time> timeLastTransmitted |
Map that stores the time at which the last packet was transmitted per STA.
Definition at line 108 of file wifi-bianchi.cc.
bool tracing = false |
Flag to enable/disable generation of tracing files.
Definition at line 114 of file wifi-bianchi.cc.
Referenced by BackoffTrace(), CwTrace(), MacRxTrace(), MacTxTrace(), PhyTxTrace(), Experiment::Run(), and SocketSendTrace().