5G-LENA nr-v3.3-161-gad18933f
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
ns3::NrEpcTft Class Reference

#include "nr-epc-tft.h"

+ Inheritance diagram for ns3::NrEpcTft:
+ Collaboration diagram for ns3::NrEpcTft:

Classes

struct  PacketFilter
 

Public Types

enum  Direction { DOWNLINK = 1 , UPLINK = 2 , BIDIRECTIONAL = 3 }
 

Public Member Functions

uint8_t Add (PacketFilter f)
 
std::list< PacketFilterGetPacketFilters () const
 
bool Matches (Direction direction, Ipv4Address remoteAddress, Ipv4Address localAddress, uint16_t remotePort, uint16_t localPort, uint8_t typeOfService)
 
bool Matches (Direction direction, Ipv6Address remoteAddress, Ipv6Address localAddress, uint16_t remotePort, uint16_t localPort, uint8_t typeOfService)
 

Static Public Member Functions

static Ptr< NrEpcTftDefault ()
 

Detailed Description

This class implements the EPS bearer Traffic Flow Template (TFT), which is the set of all packet filters associated with an EPS bearer.

Definition at line 24 of file nr-epc-tft.h.

Member Enumeration Documentation

◆ Direction

Indicates the direction of the traffic that is to be classified.

Definition at line 37 of file nr-epc-tft.h.

Constructor & Destructor Documentation

◆ NrEpcTft()

ns3::NrEpcTft::NrEpcTft ( )

Definition at line 224 of file nr-epc-tft.cc.

Member Function Documentation

◆ Add()

uint8_t ns3::NrEpcTft::Add ( PacketFilter  f)

add a PacketFilter to the Traffic Flow Template

Parameters
fthe PacketFilter to be added
Returns
the id( 0 <= id < 16) of the newly added filter, if the addition was successful. Will fail if you try to add more than 15 filters. This is to be compliant with TS 24.008.

Definition at line 231 of file nr-epc-tft.cc.

References ns3::NrEpcTft::PacketFilter::precedence.

◆ Default()

Ptr< NrEpcTft > ns3::NrEpcTft::Default ( )
static

creates a TFT matching any traffic

Returns
a newly created TFT that will match any traffic

Definition at line 216 of file nr-epc-tft.cc.

Referenced by ns3::NrHelper::AttachToGnb().

+ Here is the caller graph for this function:

◆ GetPacketFilters()

std::list< NrEpcTft::PacketFilter > ns3::NrEpcTft::GetPacketFilters ( ) const

Get the packet filters

Returns
a container of packet filters

Definition at line 296 of file nr-epc-tft.cc.

◆ Matches() [1/2]

bool ns3::NrEpcTft::Matches ( Direction  direction,
Ipv4Address  remoteAddress,
Ipv4Address  localAddress,
uint16_t  remotePort,
uint16_t  localPort,
uint8_t  typeOfService 
)
Parameters
direction
remoteAddress
localAddress
remotePort
localPort
typeOfService
Returns
true if any PacketFilter in the TFT matches with the parameters, false otherwise.

Definition at line 246 of file nr-epc-tft.cc.

◆ Matches() [2/2]

bool ns3::NrEpcTft::Matches ( Direction  direction,
Ipv6Address  remoteAddress,
Ipv6Address  localAddress,
uint16_t  remotePort,
uint16_t  localPort,
uint8_t  typeOfService 
)
Parameters
direction
remoteAddress
localAddress
remotePort
localPort
typeOfService
Returns
true if any PacketFilter in the TFT matches with the parameters, false otherwise.

Definition at line 271 of file nr-epc-tft.cc.


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