ns-3
|
Class that monitors flows at the IPv4 layer of a Node. More...
#include <ipv4-flow-probe.h>
Public Types | |
enum | DropReason { DROP_NO_ROUTE = 0, DROP_TTL_EXPIRE, DROP_BAD_CHECKSUM, DROP_QUEUE, DROP_INTERFACE_DOWN, DROP_ROUTE_ERROR, DROP_FRAGMENT_TIMEOUT, DROP_INVALID_REASON } |
enumeration of possible reasons why a packet may be dropped More... | |
![]() | |
typedef std::map< FlowId, FlowStats > | Stats |
Public Member Functions | |
Ipv4FlowProbe (Ptr< FlowMonitor > monitor, Ptr< Ipv4FlowClassifier > classifier, Ptr< Node > node) | |
![]() | |
void | AddPacketStats (FlowId flowId, uint32_t packetSize, Time delayFromFirstProbe) |
void | AddPacketDropStats (FlowId flowId, uint32_t packetSize, uint32_t reasonCode) |
Stats | GetStats () const |
void | SerializeToXmlStream (std::ostream &os, int indent, uint32_t index) const |
![]() | |
SimpleRefCount (const SimpleRefCount &o) | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
Additional Inherited Members | |
![]() | |
FlowProbe (Ptr< FlowMonitor > flowMonitor) | |
![]() | |
Ptr< FlowMonitor > | m_flowMonitor |
Stats | m_stats |
Class that monitors flows at the IPv4 layer of a Node.
For each node in the simulation, one instance of the class Ipv4FlowProbe is created to monitor that node. Ipv4FlowProbe accomplishes this by connecting callbacks to trace sources in the Ipv4L3Protocol interface of the node.
enumeration of possible reasons why a packet may be dropped
DROP_NO_ROUTE |
Packet dropped due to missing route to the destination. |
DROP_TTL_EXPIRE |
Packet dropped due to TTL decremented to zero during IPv4 forwarding. |
DROP_BAD_CHECKSUM |
Packet dropped due to invalid checksum in the IPv4 header. |
DROP_QUEUE |
Packet dropped due to queue overflow. Note: only works for NetDevices that provide a TxQueue attribute of type Queue with a Drop trace source. It currently works with Csma and PointToPoint devices, but not with WiFi or WiMax. |
DROP_INTERFACE_DOWN |
Interface is down so can not send packet |
DROP_ROUTE_ERROR |
Route error |
DROP_FRAGMENT_TIMEOUT |
Fragment timeout exceeded |