16#ifndef FLENT_APPLICATION_H
17#define FLENT_APPLICATION_H
24#include "ns3/address.h"
25#include "ns3/application.h"
26#include "ns3/event-id.h"
27#include "ns3/node-list.h"
218 std::array<Ptr<PacketSink>, 4>
220 std::array<Ptr<PacketSink>, 4>
222 std::array<Ptr<BulkSendApplication>, 4>
224 std::array<Ptr<BulkSendApplication>, 4>
a polymophic address class
std::string GetUtcFormatTime() const
Calculate the Time in UTC time format from the number of seconds.
double m_currTime
Derived epoch anchor in seconds.
~FlentApplication() override
std::array< Ptr< BulkSendApplication >, 4 > m_bulkSendUp
BulkSend Applications for Upload flows (tcp_upload, rrul tests).
void StopApplication() override
Application specific shutdown code.
std::array< uint32_t, 4 > m_bytesReceived
receive data counters
std::string m_imageText
Text to be included in plot.
std::array< Ptr< UdpEchoClient >, 3 > m_udpClient
UdpEchoClient Applications.
Time m_t0
Epoch anchor for output timestamps (see T0 attribute).
std::array< uint32_t, 4 > m_bytesSent
sent data counters
void FillXValues()
Fill x_values parameter in Flent file.
void ProcessRawValues()
Process raw values and add the processed result in the Flent file.
void TraceReceivedUdpPing(std::size_t idx, Ptr< const Packet > packet, const Address &address, const Address &localAddress, const SeqTsEchoHeader &header)
UDP Ping RTT Trace function.
std::array< Ptr< UdpEchoServer >, 3 > m_udpServer
UdpEchoServer Applications.
void TraceSentPacket(std::size_t idx, Ptr< const Packet > packet)
sink for packet transmissions.
bool m_useWallClockT0
Use the wall clock instead of m_t0 (see UseWallClockT0 attribute).
static TypeId GetTypeId()
Get the type ID.
std::unique_ptr< Output > m_output
Opaque JSON output document (defined in the .cc file).
std::array< Ptr< PacketSink >, 4 > m_packetSinkUp
PacketSink Applications for Upload flows (tcp_upload, rrul tests).
Time m_length
Test duration.
Time m_stepSize
Measurement data point step size.
void GoodputSamplingUpload(std::string name, int i)
Goodput calculation for the i-th flow based on the bytes sent.
std::string m_testName
Flent test name.
Address m_hostAddress
Host address.
Address m_localBindAddress
Local bind address.
void TraceReceivedPing(uint16_t seq, Time rtt)
Ping RTT Trace function.
std::array< Ptr< PacketSink >, 4 > m_packetSinkDown
PacketSink Applications for Download flows (tcp_download, rrul tests).
void DoDispose() override
std::string m_outputFilename
Output file path (see OutputFilename attribute).
void DoInitialize() override
In this method, the following tasks are performed: 1) set the host node, which is derived from the ho...
Ptr< Ping > m_ping
Ping Application for latency measurement (ping, rrul tests).
void AddMetadata()
Add Flent metadata to the output document.
Ptr< Node > GetHostNode(Ipv4Address hostAddress) const
Iterates through the node list and finds the node pointer for the given hostAddress.
void TraceReceivedPacket(std::size_t idx, Ptr< const Packet > packet, const Address &address)
sink for packet received.
void StartApplication() override
Application specific startup code.
void GoodputSamplingDownload(std::string name, int i)
Goodput calculation for the i-th flow based on the bytes received.
std::array< Ptr< BulkSendApplication >, 4 > m_bulkSendDown
BulkSend Applications for Download flows (tcp_download, rrul tests).
Ipv4 addresses are stored in host order in this class.
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Flent output document, in JSON format.