A Discrete-Event Network Simulator
API
ns3::EpcSgwPgwApplication::UeInfo Class Reference

store info for each UE connected to this SGW More...

+ Inheritance diagram for ns3::EpcSgwPgwApplication::UeInfo:
+ Collaboration diagram for ns3::EpcSgwPgwApplication::UeInfo:

Public Member Functions

 UeInfo ()
 
void AddBearer (Ptr< EpcTft > tft, uint8_t epsBearerId, uint32_t teid)
 
uint32_t Classify (Ptr< Packet > p)
 
Ipv4Address GetEnbAddr ()
 
Ipv4Address GetUeAddr ()
 
void RemoveBearer (uint8_t bearerId)
 Function, deletes contexts of bearer on SGW and PGW side. More...
 
void SetEnbAddr (Ipv4Address addr)
 set the address of the eNB to which the UE is connected More...
 
void SetUeAddr (Ipv4Address addr)
 set the address of the UE More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< UeInfo >
 SimpleRefCount ()
 Constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Attributes

Ipv4Address m_enbAddr
 
std::map< uint8_t, uint32_t > m_teidByBearerIdMap
 
EpcTftClassifier m_tftClassifier
 
Ipv4Address m_ueAddr
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::SimpleRefCount< UeInfo >
static void Cleanup (void)
 Noop. More...
 

Detailed Description

store info for each UE connected to this SGW

Definition at line 166 of file epc-sgw-pgw-application.h.

Constructor & Destructor Documentation

ns3::EpcSgwPgwApplication::UeInfo::UeInfo ( )

Definition at line 40 of file epc-sgw-pgw-application.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

void ns3::EpcSgwPgwApplication::UeInfo::AddBearer ( Ptr< EpcTft tft,
uint8_t  epsBearerId,
uint32_t  teid 
)
Parameters
tftthe Traffic Flow Template of the new bearer to be added
epsBearerIdthe ID of the EPS Bearer to be activated
teidthe TEID of the new bearer

Definition at line 46 of file epc-sgw-pgw-application.cc.

References NS_LOG_FUNCTION.

uint32_t ns3::EpcSgwPgwApplication::UeInfo::Classify ( Ptr< Packet p)
Parameters
pthe IP packet from the internet to be classified
Returns
the corresponding bearer ID > 0 identifying the bearer among all the bearers of this UE; returns 0 if no bearers matches with the previously declared TFTs

Definition at line 61 of file epc-sgw-pgw-application.cc.

References ns3::EpcTft::DOWNLINK, and NS_LOG_FUNCTION.

Ipv4Address ns3::EpcSgwPgwApplication::UeInfo::GetEnbAddr ( )
Returns
the address of the eNB to which the UE is connected

Definition at line 71 of file epc-sgw-pgw-application.cc.

Ipv4Address ns3::EpcSgwPgwApplication::UeInfo::GetUeAddr ( )
Returns
the address of the UE

Definition at line 83 of file epc-sgw-pgw-application.cc.

void ns3::EpcSgwPgwApplication::UeInfo::RemoveBearer ( uint8_t  bearerId)

Function, deletes contexts of bearer on SGW and PGW side.

Parameters
bearerId,theBearer Id whose contexts to be removed

Definition at line 54 of file epc-sgw-pgw-application.cc.

References NS_LOG_FUNCTION.

void ns3::EpcSgwPgwApplication::UeInfo::SetEnbAddr ( Ipv4Address  addr)

set the address of the eNB to which the UE is connected

Parameters
addrthe address of the eNB

Definition at line 77 of file epc-sgw-pgw-application.cc.

void ns3::EpcSgwPgwApplication::UeInfo::SetUeAddr ( Ipv4Address  addr)

set the address of the UE

Parameters
addrthe address of the UE

Definition at line 89 of file epc-sgw-pgw-application.cc.

Member Data Documentation

Ipv4Address ns3::EpcSgwPgwApplication::UeInfo::m_enbAddr
private

Definition at line 223 of file epc-sgw-pgw-application.h.

std::map<uint8_t, uint32_t> ns3::EpcSgwPgwApplication::UeInfo::m_teidByBearerIdMap
private

Definition at line 225 of file epc-sgw-pgw-application.h.

EpcTftClassifier ns3::EpcSgwPgwApplication::UeInfo::m_tftClassifier
private

Definition at line 222 of file epc-sgw-pgw-application.h.

Ipv4Address ns3::EpcSgwPgwApplication::UeInfo::m_ueAddr
private

Definition at line 224 of file epc-sgw-pgw-application.h.


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