IPv4 network-layer rate tracer. More...
#include <ipv4-rate-l3-tracer.h>
Public Member Functions | |
Ipv4RateL3Tracer (boost::shared_ptr< std::ostream > os, Ptr< Node > node) | |
Network layer tracer constructor. | |
void | SetAveragingPeriod (const Time &period) |
virtual void | PrintHeader (std::ostream &os) const |
virtual void | Print (std::ostream &os) const |
virtual void | Rx (Ptr< const Packet >, Ptr< Ipv4 >, uint32_t) |
virtual void | Tx (Ptr< const Packet >, Ptr< Ipv4 >, uint32_t) |
virtual void | Drop (const Ipv4Header &, Ptr< const Packet >, Ipv4L3Protocol::DropReason, Ptr< Ipv4 >, uint32_t) |
Public Member Functions inherited from ns3::Ipv4L3Tracer | |
Ipv4L3Tracer (Ptr< Node > node) | |
void | Connect () |
Static Public Member Functions | |
static boost::tuple < boost::shared_ptr < std::ostream >, std::list < Ptr< Ipv4RateL3Tracer > > > | InstallAll (const std::string &file, Time averagingPeriod=Seconds(0.5)) |
Helper method to install tracers on all simulation nodes. More... | |
static boost::tuple < boost::shared_ptr < std::ostream >, std::list < Ptr< Ipv4RateL3Tracer > > > | Install (const NodeContainer &nodes, const std::string &file, Time averagingPeriod=Seconds(0.5)) |
Helper method to install tracers on the selected simulation nodes. More... | |
static boost::tuple < boost::shared_ptr < std::ostream >, std::list < Ptr< Ipv4RateL3Tracer > > > | Install (Ptr< Node > node, const std::string &file, Time averagingPeriod=Seconds(0.5)) |
Helper method to install tracers on a specific simulation node. More... | |
static Ptr< Ipv4RateL3Tracer > | Install (Ptr< Node > node, boost::shared_ptr< std::ostream > outputStream, Time averagingPeriod=Seconds(0.5)) |
Helper method to install tracers on a specific simulation node. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ns3::Ipv4L3Tracer | |
std::string | m_node |
Ptr< Node > | m_nodePtr |
IPv4 network-layer rate tracer.
Definition at line 40 of file ipv4-rate-l3-tracer.h.
|
static |
Helper method to install tracers on the selected simulation nodes.
nodes | Nodes on which to install tracer |
file | File to which traces will be written. If filename is -, then std::out is used |
averagingPeriod | How often data will be written into the trace file (default, every half second) |
Definition at line 87 of file ipv4-rate-l3-tracer.cc.
|
static |
Helper method to install tracers on a specific simulation node.
nodes | Nodes on which to install tracer |
file | File to which traces will be written. If filename is -, then std::out is used |
averagingPeriod | How often data will be written into the trace file (default, every half second) |
Definition at line 128 of file ipv4-rate-l3-tracer.cc.
|
static |
Helper method to install tracers on a specific simulation node.
nodes | Nodes on which to install tracer |
outputStream | Smart pointer to a stream |
averagingPeriod | How often data will be written into the trace file (default, every half second) |
Definition at line 165 of file ipv4-rate-l3-tracer.cc.
|
static |
Helper method to install tracers on all simulation nodes.
file | File to which traces will be written |
averagingPeriod | Defines averaging period for the rate calculation, as well as how often data will be written into the trace file (default, every half second) |
Definition at line 49 of file ipv4-rate-l3-tracer.cc.