This application implements the Serving Gateway Entity (SGW) according to the 3GPP TS 23.401 document. More...
#include "epc-sgw-application.h"
Classes | |
struct | EnbInfo |
EnbInfo structure. More... | |
Public Member Functions | |
EpcSgwApplication (const Ptr< Socket > s1uSocket, Ipv4Address s5Addr, const Ptr< Socket > s5uSocket, const Ptr< Socket > s5cSocket) | |
Constructor that binds callback methods of sockets. More... | |
~EpcSgwApplication () override | |
Destructor. More... | |
void | AddEnb (uint16_t cellId, Ipv4Address enbAddr, Ipv4Address sgwAddr) |
Let the SGW be aware of a new eNB. More... | |
void | AddMme (Ipv4Address mmeS11Addr, Ptr< Socket > s11Socket) |
Let the SGW be aware of an MME. More... | |
void | AddPgw (Ipv4Address pgwAddr) |
Let the SGW be aware of a PGW. More... | |
void | DoDispose () override |
Destructor implementation. More... | |
Public Member Functions inherited from ns3::Application | |
Application () | |
~Application () override | |
Ptr< Node > | GetNode () const |
void | SetNode (Ptr< Node > node) |
void | SetStartTime (Time start) |
Specify application start time. More... | |
void | SetStopTime (Time stop) |
Specify application stop time. More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
~Object () override | |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose () |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized () const |
Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Application | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Private Member Functions | |
void | DoRecvCreateSessionRequest (Ptr< Packet > packet) |
Process GTP-C Create Session Request message. More... | |
void | DoRecvCreateSessionResponse (Ptr< Packet > packet) |
Process GTP-C Create Session Response message. More... | |
void | DoRecvDeleteBearerCommand (Ptr< Packet > packet) |
Process GTP-C Delete Bearer Command message. More... | |
void | DoRecvDeleteBearerRequest (Ptr< Packet > packet) |
Process GTP-C Delete Bearer Request message. More... | |
void | DoRecvDeleteBearerResponse (Ptr< Packet > packet) |
Process GTP-C Delete Bearer Response message. More... | |
void | DoRecvModifyBearerRequest (Ptr< Packet > packet) |
Process GTP-C Modify Bearer Request message. More... | |
void | DoRecvModifyBearerResponse (Ptr< Packet > packet) |
Process GTP-C Modify Bearer Response message. More... | |
void | RecvFromS11Socket (Ptr< Socket > socket) |
Method to be assigned to the recv callback of the S11 socket. More... | |
void | RecvFromS1uSocket (Ptr< Socket > socket) |
Method to be assigned to the recv callback of the S1-U socket. More... | |
void | RecvFromS5cSocket (Ptr< Socket > socket) |
Method to be assigned to the recv callback of the S5-C socket. More... | |
void | RecvFromS5uSocket (Ptr< Socket > socket) |
Method to be assigned to the recv callback of the S5-U socket. More... | |
void | SendToS1uSocket (Ptr< Packet > packet, Ipv4Address enbS1uAddress, uint32_t teid) |
Send a data packet to an eNB via the S1-U interface. More... | |
void | SendToS5uSocket (Ptr< Packet > packet, Ipv4Address pgwAddr, uint32_t teid) |
Send a data packet to the PGW via the S5 interface. More... | |
Private Attributes | |
std::map< uint32_t, Ipv4Address > | m_enbByTeidMap |
Map for eNB address by TEID. More... | |
std::map< uint16_t, EnbInfo > | m_enbInfoByCellId |
Map for eNB info by cell ID. More... | |
uint16_t | m_gtpcUdpPort |
UDP port to be used for GTP-C. More... | |
uint16_t | m_gtpuUdpPort |
UDP port to be used for GTP-U. More... | |
Ipv4Address | m_mmeS11Addr |
MME address in the S11 interface. More... | |
std::map< uint32_t, GtpcHeader::Fteid_t > | m_mmeS11FteidBySgwS5cTeid |
MME S11 FTEID by SGW S5C TEID. More... | |
Ipv4Address | m_pgwAddr |
PGW address in the S5 interface. More... | |
Ptr< Socket > | m_s11Socket |
UDP socket to send/receive control messages to/from the S11 interface. More... | |
Ptr< Socket > | m_s1uSocket |
UDP socket to send/receive GTP-U packets to/from the S1-U interface. More... | |
Ipv4Address | m_s5Addr |
SGW address in the S5 interface. More... | |
Ptr< Socket > | m_s5cSocket |
UDP socket to send/receive GTP-C packets to/from the S5 interface. More... | |
Ptr< Socket > | m_s5uSocket |
UDP socket to send/receive GTP-U packets to/from the S5 interface. More... | |
uint32_t | m_teidCount |
TEID count. More... | |
Additional Inherited Members | |
Public Types inherited from ns3::Application | |
typedef void(* | DelayAddressCallback) (const Time &delay, const Address &from) |
Common callback signature for packet delay and address. More... | |
typedef void(* | StateTransitionCallback) (const std::string &oldState, const std::string &newState) |
Common signature used by callbacks to application's state transition trace source. More... | |
Protected Member Functions inherited from ns3::Application | |
void | DoDispose () override |
Destructor implementation. More... | |
void | DoInitialize () override |
Initialize() implementation. More... | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes inherited from ns3::Application | |
Ptr< Node > | m_node |
The node that this application is installed on. More... | |
EventId | m_startEvent |
The event that will fire at m_startTime to start the application. More... | |
Time | m_startTime |
The simulation time that the application will start. More... | |
EventId | m_stopEvent |
The event that will fire at m_stopTime to end the application. More... | |
Time | m_stopTime |
The simulation time that the application will end. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
This application implements the Serving Gateway Entity (SGW) according to the 3GPP TS 23.401 document.
This Application implements the SGW side of the S5 interface between the SGW node and the PGW node and the SGW side of the S11 interface between the SGW node and the MME node hosts. It supports the following functions and messages:
Others functions enumerated in section 4.4.3.2 of 3GPP TS 23.401 are not supported.
Definition at line 51 of file epc-sgw-application.h.
ns3::EpcSgwApplication::EpcSgwApplication | ( | const Ptr< Socket > | s1uSocket, |
Ipv4Address | s5Addr, | ||
const Ptr< Socket > | s5uSocket, | ||
const Ptr< Socket > | s5cSocket | ||
) |
Constructor that binds callback methods of sockets.
s1uSocket | socket used to send/receive GTP-U packets to/from the eNBs |
s5Addr | IPv4 address of the S5 interface |
s5uSocket | socket used to send/receive GTP-U packets to/from the PGW |
s5cSocket | socket used to send/receive GTP-C packets to/from the PGW |
Definition at line 35 of file epc-sgw-application.cc.
References m_s1uSocket, m_s5cSocket, m_s5uSocket, ns3::MakeCallback(), NS_LOG_FUNCTION, RecvFromS1uSocket(), RecvFromS5cSocket(), RecvFromS5uSocket(), and ns3::Socket::SetRecvCallback().
|
override |
void ns3::EpcSgwApplication::AddEnb | ( | uint16_t | cellId, |
Ipv4Address | enbAddr, | ||
Ipv4Address | sgwAddr | ||
) |
Let the SGW be aware of a new eNB.
cellId | the cell identifier |
enbAddr | the address of the eNB |
sgwAddr | the address of the SGW |
Definition at line 94 of file epc-sgw-application.cc.
References ns3::EpcSgwApplication::EnbInfo::enbAddr, m_enbInfoByCellId, NS_LOG_FUNCTION, and ns3::EpcSgwApplication::EnbInfo::sgwAddr.
void ns3::EpcSgwApplication::AddMme | ( | Ipv4Address | mmeS11Addr, |
Ptr< Socket > | s11Socket | ||
) |
Let the SGW be aware of an MME.
mmeS11Addr | the address of the MME |
s11Socket | the socket to send/receive messages from the MME |
Definition at line 78 of file epc-sgw-application.cc.
References m_mmeS11Addr, m_s11Socket, ns3::MakeCallback(), NS_LOG_FUNCTION, RecvFromS11Socket(), and ns3::Socket::SetRecvCallback().
void ns3::EpcSgwApplication::AddPgw | ( | Ipv4Address | pgwAddr | ) |
Let the SGW be aware of a PGW.
pgwAddr | the address of the PGW |
Definition at line 87 of file epc-sgw-application.cc.
References m_pgwAddr, and NS_LOG_FUNCTION.
|
overridevirtual |
Destructor implementation.
This method is called by Dispose() or by the Object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.
It is safe to call GetObject() from within this method.
Reimplemented from ns3::Object.
Definition at line 59 of file epc-sgw-application.cc.
References m_s1uSocket, m_s5cSocket, m_s5uSocket, ns3::MakeNullCallback(), NS_LOG_FUNCTION, and ns3::Socket::SetRecvCallback().
Process GTP-C Create Session Request message.
packet | the packet containing the message |
Definition at line 228 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpcHeader::Fteid_t::addr, ns3::GtpcCreateSessionRequestMessage::BearerContextToBeCreated::bearerLevelQos, ns3::GtpcHeader::ComputeMessageLength(), ns3::GtpcCreateSessionRequestMessage::BearerContextToBeCreated::epsBearerId, ns3::GtpcCreateSessionRequestMessage::GetBearerContextsToBeCreated(), ns3::GtpcCreateSessionRequestMessage::GetImsi(), ns3::GtpcCreateSessionRequestMessage::GetSenderCpFteid(), ns3::GtpcCreateSessionRequestMessage::GetUliEcgi(), ns3::GtpcHeader::Fteid_t::interfaceType, m_enbByTeidMap, m_enbInfoByCellId, m_gtpcUdpPort, m_mmeS11FteidBySgwS5cTeid, m_pgwAddr, m_s5Addr, m_s5cSocket, m_teidCount, NS_ABORT_IF, NS_ASSERT_MSG, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), ns3::GtpcHeader::S11_MME_GTPC, ns3::GtpcHeader::S5_SGW_GTPC, ns3::GtpcHeader::S5_SGW_GTPU, ns3::Socket::SendTo(), ns3::GtpcCreateSessionRequestMessage::SetBearerContextsToBeCreated(), ns3::GtpcCreateSessionRequestMessage::SetImsi(), ns3::GtpcCreateSessionRequestMessage::SetSenderCpFteid(), ns3::GtpcHeader::SetTeid(), ns3::GtpcCreateSessionRequestMessage::SetUliEcgi(), ns3::GtpcCreateSessionRequestMessage::BearerContextToBeCreated::sgwS5uFteid, ns3::GtpcHeader::Fteid_t::teid, and ns3::GtpcCreateSessionRequestMessage::BearerContextToBeCreated::tft.
Referenced by RecvFromS11Socket().
Process GTP-C Create Session Response message.
packet | the packet containing the message |
Definition at line 396 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpcHeader::Fteid_t::addr, ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::bearerLevelQos, ns3::GtpcHeader::ComputeMessageLength(), ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::epsBearerId, ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::fteid, ns3::GtpcCreateSessionResponseMessage::GetBearerContextsCreated(), ns3::GtpcCreateSessionResponseMessage::GetSenderCpFteid(), ns3::GtpcHeader::GetTeid(), ns3::GtpcHeader::Fteid_t::interfaceType, m_gtpcUdpPort, m_mmeS11FteidBySgwS5cTeid, m_s11Socket, m_s5Addr, NS_ASSERT_MSG, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), ns3::GtpcIes::REQUEST_ACCEPTED, ns3::GtpcHeader::S5_PGW_GTPC, ns3::GtpcHeader::S5_SGW_GTPU, ns3::Socket::SendTo(), ns3::GtpcCreateSessionResponseMessage::SetBearerContextsCreated(), ns3::GtpcCreateSessionResponseMessage::SetCause(), ns3::GtpcHeader::SetTeid(), ns3::GtpcHeader::Fteid_t::teid, and ns3::GtpcCreateSessionResponseMessage::BearerContextCreated::tft.
Referenced by RecvFromS5cSocket().
Process GTP-C Delete Bearer Command message.
packet | the packet containing the message |
Definition at line 346 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpcHeader::ComputeMessageLength(), ns3::GtpcDeleteBearerCommandMessage::GetBearerContexts(), ns3::GtpcHeader::GetTeid(), ns3::GtpcDeleteBearerCommandMessage::BearerContext::m_epsBearerId, m_gtpcUdpPort, m_pgwAddr, m_s5cSocket, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), ns3::Socket::SendTo(), ns3::GtpcDeleteBearerCommandMessage::SetBearerContexts(), and ns3::GtpcHeader::SetTeid().
Referenced by RecvFromS11Socket().
Process GTP-C Delete Bearer Request message.
packet | the packet containing the message |
Definition at line 458 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpcHeader::ComputeMessageLength(), ns3::GtpcDeleteBearerRequestMessage::GetEpsBearerIds(), ns3::GtpcHeader::GetTeid(), m_gtpcUdpPort, m_mmeS11Addr, m_s11Socket, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), ns3::Socket::SendTo(), ns3::GtpcDeleteBearerRequestMessage::SetEpsBearerIds(), and ns3::GtpcHeader::SetTeid().
Referenced by RecvFromS5cSocket().
Process GTP-C Delete Bearer Response message.
packet | the packet containing the message |
Definition at line 374 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpcHeader::ComputeMessageLength(), ns3::GtpcDeleteBearerResponseMessage::GetEpsBearerIds(), ns3::GtpcHeader::GetTeid(), m_gtpcUdpPort, m_pgwAddr, m_s5cSocket, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), ns3::Socket::SendTo(), ns3::GtpcDeleteBearerResponseMessage::SetEpsBearerIds(), and ns3::GtpcHeader::SetTeid().
Referenced by RecvFromS11Socket().
Process GTP-C Modify Bearer Request message.
packet | the packet containing the message |
Definition at line 294 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpcHeader::Fteid_t::addr, ns3::GtpcHeader::ComputeMessageLength(), ns3::GtpcModifyBearerRequestMessage::BearerContextToBeModified::epsBearerId, ns3::GtpcModifyBearerRequestMessage::BearerContextToBeModified::fteid, ns3::GtpcModifyBearerRequestMessage::GetBearerContextsToBeModified(), ns3::GtpcModifyBearerRequestMessage::GetImsi(), ns3::GtpcModifyBearerRequestMessage::GetUliEcgi(), ns3::GtpcHeader::Fteid_t::interfaceType, m_enbByTeidMap, m_enbInfoByCellId, m_gtpcUdpPort, m_pgwAddr, m_s5Addr, m_s5cSocket, NS_ASSERT_MSG, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), ns3::GtpcHeader::S1U_ENB_GTPU, ns3::GtpcHeader::S5_SGW_GTPU, ns3::Socket::SendTo(), ns3::GtpcModifyBearerRequestMessage::SetImsi(), ns3::GtpcHeader::SetTeid(), ns3::GtpcModifyBearerRequestMessage::SetUliEcgi(), and ns3::GtpcHeader::Fteid_t::teid.
Referenced by RecvFromS11Socket().
Process GTP-C Modify Bearer Response message.
packet | the packet containing the message |
Definition at line 439 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpcHeader::ComputeMessageLength(), ns3::GtpcHeader::GetTeid(), m_gtpcUdpPort, m_mmeS11Addr, m_s11Socket, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Packet::RemoveHeader(), ns3::GtpcIes::REQUEST_ACCEPTED, ns3::Socket::SendTo(), ns3::GtpcModifyBearerResponseMessage::SetCause(), and ns3::GtpcHeader::SetTeid().
Referenced by RecvFromS5cSocket().
|
static |
Get the type ID.
Definition at line 71 of file epc-sgw-application.cc.
References ns3::TypeId::SetParent().
Method to be assigned to the recv callback of the S11 socket.
It is called when the SGW receives a control packet from the MME.
socket | pointer to the S11 socket |
Definition at line 104 of file epc-sgw-application.cc.
References ns3::GtpcHeader::CreateSessionRequest, ns3::GtpcHeader::DeleteBearerCommand, ns3::GtpcHeader::DeleteBearerResponse, DoRecvCreateSessionRequest(), DoRecvDeleteBearerCommand(), DoRecvDeleteBearerResponse(), DoRecvModifyBearerRequest(), ns3::GtpcHeader::GetMessageType(), m_s11Socket, ns3::GtpcHeader::ModifyBearerRequest, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::Packet::PeekHeader(), and ns3::Socket::Recv().
Referenced by AddMme().
Method to be assigned to the recv callback of the S1-U socket.
It is called when the SGW receives a data packet from the eNB that is to be forwarded to the PGW.
socket | pointer to the S1-U socket |
Definition at line 183 of file epc-sgw-application.cc.
References ns3::GtpuHeader::GetTeid(), m_pgwAddr, m_s1uSocket, NS_ASSERT, NS_LOG_FUNCTION, ns3::Socket::Recv(), ns3::Packet::RemoveHeader(), and SendToS5uSocket().
Referenced by EpcSgwApplication().
Method to be assigned to the recv callback of the S5-C socket.
It is called when the SGW receives a control packet from the PGW.
socket | pointer to the S5-C socket |
Definition at line 153 of file epc-sgw-application.cc.
References ns3::GtpcHeader::CreateSessionResponse, ns3::GtpcHeader::DeleteBearerRequest, DoRecvCreateSessionResponse(), DoRecvDeleteBearerRequest(), DoRecvModifyBearerResponse(), ns3::GtpcHeader::GetMessageType(), m_s5cSocket, ns3::GtpcHeader::ModifyBearerResponse, NS_ASSERT, NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::Packet::PeekHeader(), and ns3::Socket::Recv().
Referenced by EpcSgwApplication().
Method to be assigned to the recv callback of the S5-U socket.
It is called when the SGW receives a data packet from the PGW that is to be forwarded to an eNB.
socket | pointer to the S5-U socket |
Definition at line 138 of file epc-sgw-application.cc.
References ns3::GtpuHeader::GetTeid(), m_enbByTeidMap, m_s5uSocket, NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Socket::Recv(), ns3::Packet::RemoveHeader(), and SendToS1uSocket().
Referenced by EpcSgwApplication().
|
private |
Send a data packet to an eNB via the S1-U interface.
packet | packet to be sent |
enbS1uAddress | the address of the eNB |
teid | the Tunnel Endpoint Identifier |
Definition at line 196 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpuHeader::GetSerializedSize(), ns3::Packet::GetSize(), m_gtpuUdpPort, m_s1uSocket, NS_LOG_FUNCTION, ns3::Socket::SendTo(), ns3::GtpuHeader::SetLength(), and ns3::GtpuHeader::SetTeid().
Referenced by RecvFromS5uSocket().
|
private |
Send a data packet to the PGW via the S5 interface.
packet | packet to be sent |
pgwAddr | the address of the PGW |
teid | the Tunnel Endpoint Identifier |
Definition at line 210 of file epc-sgw-application.cc.
References ns3::Packet::AddHeader(), ns3::GtpuHeader::GetSerializedSize(), ns3::Packet::GetSize(), m_gtpuUdpPort, m_s5uSocket, NS_LOG_FUNCTION, ns3::Socket::SendTo(), ns3::GtpuHeader::SetLength(), and ns3::GtpuHeader::SetTeid().
Referenced by RecvFromS1uSocket().
|
private |
Map for eNB address by TEID.
Definition at line 265 of file epc-sgw-application.h.
Referenced by DoRecvCreateSessionRequest(), DoRecvModifyBearerRequest(), and RecvFromS5uSocket().
|
private |
Map for eNB info by cell ID.
Definition at line 260 of file epc-sgw-application.h.
Referenced by AddEnb(), DoRecvCreateSessionRequest(), and DoRecvModifyBearerRequest().
|
private |
UDP port to be used for GTP-C.
Definition at line 243 of file epc-sgw-application.h.
Referenced by DoRecvCreateSessionRequest(), DoRecvCreateSessionResponse(), DoRecvDeleteBearerCommand(), DoRecvDeleteBearerRequest(), DoRecvDeleteBearerResponse(), DoRecvModifyBearerRequest(), and DoRecvModifyBearerResponse().
|
private |
UDP port to be used for GTP-U.
Definition at line 238 of file epc-sgw-application.h.
Referenced by SendToS1uSocket(), and SendToS5uSocket().
|
private |
MME address in the S11 interface.
Definition at line 208 of file epc-sgw-application.h.
Referenced by AddMme(), DoRecvDeleteBearerRequest(), and DoRecvModifyBearerResponse().
|
private |
MME S11 FTEID by SGW S5C TEID.
Definition at line 270 of file epc-sgw-application.h.
Referenced by DoRecvCreateSessionRequest(), and DoRecvCreateSessionResponse().
|
private |
PGW address in the S5 interface.
Definition at line 218 of file epc-sgw-application.h.
Referenced by AddPgw(), DoRecvCreateSessionRequest(), DoRecvDeleteBearerCommand(), DoRecvDeleteBearerResponse(), DoRecvModifyBearerRequest(), and RecvFromS1uSocket().
UDP socket to send/receive control messages to/from the S11 interface.
Definition at line 213 of file epc-sgw-application.h.
Referenced by AddMme(), DoRecvCreateSessionResponse(), DoRecvDeleteBearerRequest(), DoRecvModifyBearerResponse(), and RecvFromS11Socket().
UDP socket to send/receive GTP-U packets to/from the S1-U interface.
Definition at line 233 of file epc-sgw-application.h.
Referenced by EpcSgwApplication(), DoDispose(), RecvFromS1uSocket(), and SendToS1uSocket().
|
private |
SGW address in the S5 interface.
Definition at line 203 of file epc-sgw-application.h.
Referenced by DoRecvCreateSessionRequest(), DoRecvCreateSessionResponse(), and DoRecvModifyBearerRequest().
UDP socket to send/receive GTP-C packets to/from the S5 interface.
Definition at line 228 of file epc-sgw-application.h.
Referenced by EpcSgwApplication(), DoDispose(), DoRecvCreateSessionRequest(), DoRecvDeleteBearerCommand(), DoRecvDeleteBearerResponse(), DoRecvModifyBearerRequest(), and RecvFromS5cSocket().
UDP socket to send/receive GTP-U packets to/from the S5 interface.
Definition at line 223 of file epc-sgw-application.h.
Referenced by EpcSgwApplication(), DoDispose(), RecvFromS5uSocket(), and SendToS5uSocket().
|
private |
TEID count.
Definition at line 248 of file epc-sgw-application.h.
Referenced by DoRecvCreateSessionRequest().