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. | |
Public Member Functions inherited from ns3::SimpleRefCount< FlowClassifier > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Protected Member Functions | |
FlowId | GetNewFlowId () |
Returns a new, unique Flow Identifier. | |
void | Indent (std::ostream &os, uint16_t level) const |
Add a number of spaces for indentation purposes. | |
Private Attributes | |
FlowId | m_lastNewFlowId |
Last known Flow ID. | |
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.
|
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::Ipv4FlowClassifier, and ns3::Ipv6FlowClassifier.
|
private |