ns3::SatPacketClassifier Class Reference

SatPacketClassifier is responsible of classifying packets into certain flow identifier. More...

#include "satellite-packet-classifier.h"

+ Inheritance diagram for ns3::SatPacketClassifier:
+ Collaboration diagram for ns3::SatPacketClassifier:

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...
 

Detailed Description

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 46 of file satellite-packet-classifier.h.

Constructor & Destructor Documentation

◆ SatPacketClassifier()

ns3::SatPacketClassifier::SatPacketClassifier ( )

Default constructor.

Definition at line 35 of file satellite-packet-classifier.cc.

◆ ~SatPacketClassifier()

ns3::SatPacketClassifier::~SatPacketClassifier ( )
virtual

Destructor for SatPacketClassifier.

Definition at line 39 of file satellite-packet-classifier.cc.

Member Function Documentation

◆ Classify() [1/2]

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.

Parameters
packetPacket to be classified
destDestination address
protocolNumberProtocol number
Returns
uint8_t Flow identifier

Definition at line 62 of file satellite-packet-classifier.cc.

References ns3::SatEnums::AF_FID, ns3::SatEnums::BE_FID, and ns3::SatEnums::EF_FID.

◆ Classify() [2/2]

uint8_t ns3::SatPacketClassifier::Classify ( SatControlMsgTag::SatControlMsgType_t  type,
const Address &  dest 
) const

Classify control message.

Parameters
typeControl msg type
destDestination address
Returns
uint8_t Flow identifier

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.


The documentation for this class was generated from the following files: