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

#include "nr-eps-bearer-tag.h"

+ Inheritance diagram for ns3::NrEpsBearerTag:
+ Collaboration diagram for ns3::NrEpsBearerTag:

Public Member Functions

 NrEpsBearerTag ()
 
 NrEpsBearerTag (uint16_t rnti, uint8_t bid)
 
void Deserialize (TagBuffer i) override
 
uint8_t GetBid () const
 
TypeId GetInstanceTypeId () const override
 
uint16_t GetRnti () const
 
uint32_t GetSerializedSize () const override
 
void Print (std::ostream &os) const override
 
void Serialize (TagBuffer i) const override
 
void SetBid (uint8_t bid)
 
void SetRnti (uint16_t rnti)
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type ID.
 

Detailed Description

Tag used to define the RNTI and EPS bearer ID for packets interchanged between the NrEpcGnbApplication and the NrGnbNetDevice

Introspection did not find any typical Config paths.

Attributes

  • rnti: The rnti that indicates the UE which packet belongs
    • Set with class: ns3::UintegerValue
    • Underlying type: uint16_t 0:65535
    • Flags: read
  • bid: The EPS bearer id within the UE to which the packet belongs
    • Set with class: ns3::UintegerValue
    • Underlying type: uint8_t 0:255
    • Flags: read

No TraceSources are defined for this type.
Size of this type is 16 bytes (on a 64-bit architecture).

Definition at line 23 of file nr-eps-bearer-tag.h.

Constructor & Destructor Documentation

◆ NrEpsBearerTag() [1/2]

ns3::NrEpsBearerTag::NrEpsBearerTag ( )

Create an empty NrEpsBearerTag

Definition at line 45 of file nr-eps-bearer-tag.cc.

◆ NrEpsBearerTag() [2/2]

ns3::NrEpsBearerTag::NrEpsBearerTag ( uint16_t  rnti,
uint8_t  bid 
)

Create a NrEpsBearerTag with the given RNTI and bearer id

Parameters
rntithe value of the RNTI to set
bidthe value of the Bearer Id to set

Definition at line 51 of file nr-eps-bearer-tag.cc.

Member Function Documentation

◆ Deserialize()

void ns3::NrEpsBearerTag::Deserialize ( TagBuffer  i)
override

Definition at line 83 of file nr-eps-bearer-tag.cc.

◆ GetBid()

uint8_t ns3::NrEpsBearerTag::GetBid ( ) const

Get Bearer Id function

Returns
the Bearer Id

Definition at line 96 of file nr-eps-bearer-tag.cc.

Referenced by GetTypeId(), ns3::NrEpcGnbApplication::RecvFromNrSocket(), and ns3::NrGnbRrc::SendData().

+ Here is the caller graph for this function:

◆ GetInstanceTypeId()

TypeId ns3::NrEpsBearerTag::GetInstanceTypeId ( ) const
override

Definition at line 40 of file nr-eps-bearer-tag.cc.

◆ GetRnti()

uint16_t ns3::NrEpsBearerTag::GetRnti ( ) const

Get RNTI function

Returns
the RNTI

Definition at line 90 of file nr-eps-bearer-tag.cc.

Referenced by GetTypeId(), ns3::NrEpcGnbApplication::RecvFromNrSocket(), and ns3::NrGnbRrc::SendData().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::NrEpsBearerTag::GetSerializedSize ( ) const
override

Definition at line 70 of file nr-eps-bearer-tag.cc.

◆ GetTypeId()

TypeId ns3::NrEpsBearerTag::GetTypeId ( )
static

Get the type ID.

Returns
the object TypeId

Definition at line 19 of file nr-eps-bearer-tag.cc.

References GetBid(), and GetRnti().

+ Here is the call graph for this function:

◆ Print()

void ns3::NrEpsBearerTag::Print ( std::ostream &  os) const
override

Definition at line 102 of file nr-eps-bearer-tag.cc.

◆ Serialize()

void ns3::NrEpsBearerTag::Serialize ( TagBuffer  i) const
override

Definition at line 76 of file nr-eps-bearer-tag.cc.

◆ SetBid()

void ns3::NrEpsBearerTag::SetBid ( uint8_t  bid)

Set the bearer id to the given value.

Parameters
bidthe value of the Bearer Id to set

Definition at line 64 of file nr-eps-bearer-tag.cc.

Referenced by ns3::NrUeManager::DoReceivePdcpSdu().

+ Here is the caller graph for this function:

◆ SetRnti()

void ns3::NrEpsBearerTag::SetRnti ( uint16_t  rnti)

Set the RNTI to the given value.

Parameters
rntithe value of the RNTI to set

Definition at line 58 of file nr-eps-bearer-tag.cc.

Referenced by ns3::NrUeManager::DoReceivePdcpSdu().

+ Here is the caller graph for this function:

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