SatPacketClassifier is responsible of classifying packets into certain flow identifier. More...
#include "satellite-packet-classifier.h"
Public Member Functions | |
SatPacketClassifier () | |
Default constructor. More... | |
virtual | ~SatPacketClassifier () |
Destructor for SatPacketClassifier. More... | |
uint8_t | Classify (const Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) const |
Classify a packet based on IP header DSCP to a lower layer flow id. More... | |
uint8_t | Classify (SatControlMsgTag::SatControlMsgType_t type, const Address &dest) const |
Classify control message. More... | |
SatPacketClassifier is responsible of classifying packets into certain flow identifier.
Classification is done based on IP header DSCP field value. Control -> flow index 0 (Note, that this is not using IP header DSCP field) Default (0) -> flow index 3 Assured forwarding -> flow index 2 Expedited forwarding -> flow index 1
Definition at line 48 of file satellite-packet-classifier.h.
ns3::SatPacketClassifier::SatPacketClassifier | ( | ) |
Default constructor.
Definition at line 35 of file satellite-packet-classifier.cc.
|
virtual |
Destructor for SatPacketClassifier.
Definition at line 39 of file satellite-packet-classifier.cc.
uint8_t ns3::SatPacketClassifier::Classify | ( | const Ptr< Packet > | packet, |
const Address & | dest, | ||
uint16_t | protocolNumber | ||
) | const |
Classify a packet based on IP header DSCP to a lower layer flow id.
packet | Packet to be classified |
dest | Destination address |
protocolNumber | Protocol number |
Definition at line 62 of file satellite-packet-classifier.cc.
References ns3::SatEnums::AF_FID, ns3::SatEnums::BE_FID, and ns3::SatEnums::EF_FID.
uint8_t ns3::SatPacketClassifier::Classify | ( | SatControlMsgTag::SatControlMsgType_t | type, |
const Address & | dest | ||
) | const |
Classify control message.
type | Control msg type |
dest | Destination address |
Definition at line 44 of file satellite-packet-classifier.cc.
References ns3::SatEnums::BE_FID, ns3::SatEnums::CONTROL_FID, and ns3::SatControlMsgTag::SAT_ARQ_ACK.