NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::Ipv4RateL3Tracer Class Reference

IPv4 network-layer rate tracer. More...

#include <ipv4-rate-l3-tracer.h>

Inheritance diagram for ns3::Ipv4RateL3Tracer:
Collaboration diagram for ns3::Ipv4RateL3Tracer:

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< Ipv4RateL3TracerInstall (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
 

Detailed Description

IPv4 network-layer rate tracer.

Definition at line 40 of file ipv4-rate-l3-tracer.h.

Member Function Documentation

boost::tuple< boost::shared_ptr< std::ostream >, std::list< Ptr< Ipv4RateL3Tracer > > > ns3::Ipv4RateL3Tracer::Install ( const NodeContainer &  nodes,
const std::string &  file,
Time  averagingPeriod = Seconds (0.5) 
)
static

Helper method to install tracers on the selected simulation nodes.

Parameters
nodesNodes on which to install tracer
fileFile to which traces will be written. If filename is -, then std::out is used
averagingPeriodHow often data will be written into the trace file (default, every half second)
Returns
a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable

Definition at line 87 of file ipv4-rate-l3-tracer.cc.

boost::tuple< boost::shared_ptr< std::ostream >, std::list< Ptr< Ipv4RateL3Tracer > > > ns3::Ipv4RateL3Tracer::Install ( Ptr< Node >  node,
const std::string &  file,
Time  averagingPeriod = Seconds (0.5) 
)
static

Helper method to install tracers on a specific simulation node.

Parameters
nodesNodes on which to install tracer
fileFile to which traces will be written. If filename is -, then std::out is used
averagingPeriodHow often data will be written into the trace file (default, every half second)
Returns
a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable

Definition at line 128 of file ipv4-rate-l3-tracer.cc.

Ptr< Ipv4RateL3Tracer > ns3::Ipv4RateL3Tracer::Install ( Ptr< Node >  node,
boost::shared_ptr< std::ostream >  outputStream,
Time  averagingPeriod = Seconds (0.5) 
)
static

Helper method to install tracers on a specific simulation node.

Parameters
nodesNodes on which to install tracer
outputStreamSmart pointer to a stream
averagingPeriodHow often data will be written into the trace file (default, every half second)
Returns
a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable

Definition at line 165 of file ipv4-rate-l3-tracer.cc.

boost::tuple< boost::shared_ptr< std::ostream >, std::list< Ptr< Ipv4RateL3Tracer > > > ns3::Ipv4RateL3Tracer::InstallAll ( const std::string &  file,
Time  averagingPeriod = Seconds (0.5) 
)
static

Helper method to install tracers on all simulation nodes.

Parameters
fileFile to which traces will be written
averagingPeriodDefines averaging period for the rate calculation, as well as how often data will be written into the trace file (default, every half second)
Returns
a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable

Definition at line 49 of file ipv4-rate-l3-tracer.cc.


The documentation for this class was generated from the following files: