Provides a method to translate raw packet data into abstract flow identifier
and packet identifier
parameters.
More...
#include "flow-classifier.h"
Public Member Functions | |
FlowClassifier () | |
FlowClassifier (const FlowClassifier &)=delete | |
virtual | ~FlowClassifier () |
FlowClassifier & | operator= (const FlowClassifier &)=delete |
virtual void | SerializeToXmlStream (std::ostream &os, uint16_t indent) const =0 |
Serializes the results to an std::ostream in XML format. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< FlowClassifier > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Protected Member Functions | |
FlowId | GetNewFlowId () |
Returns a new, unique Flow Identifier. More... | |
void | Indent (std::ostream &os, uint16_t level) const |
Add a number of spaces for indentation purposes. More... | |
Private Attributes | |
FlowId | m_lastNewFlowId |
Last known Flow ID. More... | |
Provides a method to translate raw packet data into abstract flow identifier
and packet identifier
parameters.
These identifiers are unsigned 32-bit integers that uniquely identify a flow and a packet within that flow, respectively, for the whole simulation, regardless of the point in which the packet was captured. These abstract identifiers are used in the communication between FlowProbe and FlowMonitor, and all collected statistics reference only those abstract identifiers in order to keep the core architecture generic and not tied down to any particular flow capture method or classification system.
Definition at line 53 of file flow-classifier.h.
ns3::FlowClassifier::FlowClassifier | ( | ) |
Definition at line 25 of file flow-classifier.cc.
|
virtual |
Definition at line 30 of file flow-classifier.cc.
|
delete |
|
protected |
Returns a new, unique Flow Identifier.
Definition at line 35 of file flow-classifier.cc.
References m_lastNewFlowId.
Referenced by ns3::Ipv4FlowClassifier::Classify(), and ns3::Ipv6FlowClassifier::Classify().
|
inlineprotected |
Add a number of spaces for indentation purposes.
os | The stream to write to. |
level | The number of spaces to add. |
Definition at line 84 of file flow-classifier.h.
Referenced by ns3::Ipv4FlowClassifier::SerializeToXmlStream(), and ns3::Ipv6FlowClassifier::SerializeToXmlStream().
|
delete |
|
pure virtual |
Serializes the results to an std::ostream in XML format.
os | the output stream |
indent | number of spaces to use as base indentation level |
Implemented in ns3::Ipv6FlowClassifier, and ns3::Ipv4FlowClassifier.
|
private |