21 #ifndef EPC_SGW_APPLICATION_H    22 #define EPC_SGW_APPLICATION_H    24 #include "ns3/application.h"    25 #include "ns3/address.h"    26 #include "ns3/socket.h"    27 #include "ns3/epc-gtpc-header.h"   277 #endif // EPC_SGW_APPLICATION_H This application implements the Serving Gateway Entity (SGW) according to the 3GPP TS 23...
Ptr< Socket > m_s5cSocket
UDP socket to send/receive GTP-C packets to/from the S5 interface. 
void AddMme(Ipv4Address mmeS11Addr, Ptr< Socket > s11Socket)
Let the SGW be aware of an MME. 
void RecvFromS1uSocket(Ptr< Socket > socket)
Method to be assigned to the recv callback of the S1-U socket. 
uint32_t m_teidCount
TEID count. 
Ptr< Socket > m_s5uSocket
UDP socket to send/receive GTP-U packets to/from the S5 interface. 
static TypeId GetTypeId(void)
Get the type ID. 
std::map< uint32_t, Ipv4Address > m_enbByTeidMap
Map for eNB address by TEID. 
void DoRecvModifyBearerResponse(Ptr< Packet > packet)
Process GTP-C Modify Bearer Response message. 
void DoRecvDeleteBearerRequest(Ptr< Packet > packet)
Process GTP-C Delete Bearer Request message. 
Ptr< Socket > m_s11Socket
UDP socket to send/receive control messages to/from the S11 interface. 
The base class for all ns3 applications. 
void SendToS5uSocket(Ptr< Packet > packet, Ipv4Address pgwAddr, uint32_t teid)
Send a data packet to the PGW via the S5 interface. 
virtual void DoDispose()
Destructor implementation. 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
Ipv4Address m_s5Addr
SGW address in the S5 interface. 
void AddPgw(Ipv4Address pgwAddr)
Let the SGW be aware of a PGW. 
Ipv4Address sgwAddr
SGW address. 
uint16_t m_gtpcUdpPort
UDP port to be used for GTP-C. 
Ptr< Socket > m_s1uSocket
UDP socket to send/receive GTP-U packets to/from the S1-U interface. 
Ipv4Address m_pgwAddr
PGW address in the S5 interface. 
void DoRecvCreateSessionRequest(Ptr< Packet > packet)
Process GTP-C Create Session Request message. 
void AddEnb(uint16_t cellId, Ipv4Address enbAddr, Ipv4Address sgwAddr)
Let the SGW be aware of a new eNB. 
void DoRecvModifyBearerRequest(Ptr< Packet > packet)
Process GTP-C Modify Bearer Request message. 
std::map< uint32_t, GtpcHeader::Fteid_t > m_mmeS11FteidBySgwS5cTeid
MME S11 FTEID by SGW S5C TEID. 
void DoRecvDeleteBearerResponse(Ptr< Packet > packet)
Process GTP-C Delete Bearer Response message. 
void DoRecvCreateSessionResponse(Ptr< Packet > packet)
Process GTP-C Create Session Response message. 
Ipv4 addresses are stored in host order in this class. 
void SendToS1uSocket(Ptr< Packet > packet, Ipv4Address enbS1uAddress, uint32_t teid)
Send a data packet to an eNB via the S1-U interface. 
void RecvFromS5uSocket(Ptr< Socket > socket)
Method to be assigned to the recv callback of the S5-U socket. 
Ipv4Address m_mmeS11Addr
MME address in the S11 interface. 
void DoRecvDeleteBearerCommand(Ptr< Packet > packet)
Process GTP-C Delete Bearer Command message. 
virtual ~EpcSgwApplication(void)
Destructor. 
void RecvFromS5cSocket(Ptr< Socket > socket)
Method to be assigned to the recv callback of the S5-C socket. 
a unique identifier for an interface. 
void RecvFromS11Socket(Ptr< Socket > socket)
Method to be assigned to the recv callback of the S11 socket. 
EpcSgwApplication(const Ptr< Socket > s1uSocket, Ipv4Address s5Addr, const Ptr< Socket > s5uSocket, const Ptr< Socket > s5cSocket)
Constructor that binds callback methods of sockets. 
std::map< uint16_t, EnbInfo > m_enbInfoByCellId
Map for eNB info by cell ID. 
Ipv4Address enbAddr
eNB address 
uint16_t m_gtpuUdpPort
UDP port to be used for GTP-U.