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_INVALID_REASON } |
enumeration of possible reasons why a packet may be dropped More... | |
Public Member Functions | |
Ipv4FlowProbe (Ptr< FlowMonitor > monitor, Ptr< Ipv4FlowClassifier > classifier, Ptr< Node > node) |
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 |