|
ns-3
|
#include <epc-enb-application.h>


Public Member Functions | |
| EpcEnbApplication (Ptr< Socket > lteSocket, Ptr< Socket > s1uSocket, Ipv4Address sgwAddress) | |
| virtual | ~EpcEnbApplication (void) |
| void | ErabSetupRequest (uint32_t teid, uint16_t rnti, uint8_t lcid) |
| void | RecvFromLteSocket (Ptr< Socket > socket) |
| void | RecvFromS1uSocket (Ptr< Socket > socket) |
| void | SendToLteSocket (Ptr< Packet > packet, uint16_t rnti, uint8_t lcid) |
| void | SendToS1uSocket (Ptr< Packet > packet, uint32_t teid) |
Public Member Functions inherited from ns3::Application | |
| void | SetStartTime (Time start) |
| Specify application start time. | |
| void | SetStopTime (Time stop) |
| Specify application stop time. | |
| Ptr< Node > | GetNode () const |
| void | SetNode (Ptr< Node > node) |
Public Member Functions inherited from ns3::Object | |
| virtual TypeId | GetInstanceTypeId (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| void | Dispose (void) |
| void | AggregateObject (Ptr< Object > other) |
| AggregateIterator | GetAggregateIterator (void) const |
| void | Start (void) |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount (const SimpleRefCount &o) | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| void | Ref (void) const |
| void | Unref (void) const |
| uint32_t | GetReferenceCount (void) const |
Public Member Functions inherited from ns3::ObjectBase | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| This method returns the TypeId associated to ns3::Application. | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Application | |
| virtual void | DoDispose (void) |
| virtual void | DoStart (void) |
Protected Member Functions inherited from ns3::Object | |
| virtual void | NotifyNewAggregate (void) |
| Object (const Object &o) | |
Protected Attributes inherited from ns3::Application | |
| Ptr< Node > | m_node |
| Time | m_startTime |
| Time | m_stopTime |
| EventId | m_startEvent |
| EventId | m_stopEvent |
This application is installed inside eNBs and provides the bridge functionality for user data plane packets between the radio interface and the S1-U interface.
| ns3::EpcEnbApplication::EpcEnbApplication | ( | Ptr< Socket > | lteSocket, |
| Ptr< Socket > | s1uSocket, | ||
| Ipv4Address | sgwAddress | ||
| ) |
Constructor
| lteSocket | the socket to be used to send/receive packets to/from the LTE radio interface |
| s1uSocket | the socket to be used to send/receive packets to/from the S1-U interface connected with the SGW |
| sgwAddress | the IPv4 address at which this eNB will be able to reach its SGW |
References ns3::MakeCallback(), NS_LOG_FUNCTION, RecvFromLteSocket(), RecvFromS1uSocket(), and ns3::Socket::SetRecvCallback().
|
virtual |
Destructor
References NS_LOG_FUNCTION.
| void ns3::EpcEnbApplication::ErabSetupRequest | ( | uint32_t | teid, |
| uint16_t | rnti, | ||
| uint8_t | lcid | ||
| ) |
This method is triggered after the eNB received a S1-AP message of type E-RAB Setup Request by the MME and the RadioBearer has already been created
| teid | the Tunnel Endpoint IDentifier of the S1-bearer to be setup. |
| rnti | the unique ID of the UE on this eNB |
| lcid | the Logical Channel ID identifying the Radio Bearer |
References NS_LOG_FUNCTION.
|
static |
This method returns the TypeId associated to ns3::Application.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Application.
References ns3::TypeId::SetParent().
Method to be assigned to the recv callback of the LTE socket. It is called when the eNB receives a data packet from the radio interface that is to be forwarded to the SGW.
| socket | pointer to the LTE socket |
References NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Socket::Recv(), ns3::Packet::RemovePacketTag(), and SendToS1uSocket().
Referenced by EpcEnbApplication().
Method to be assigned to the recv callback of the S1-U socket. It is called when the eNB receives a data packet from the SGW that is to be forwarded to the UE.
| socket | pointer to the S1-U socket |
References NS_ASSERT, NS_LOG_FUNCTION, ns3::Socket::Recv(), ns3::Packet::RemoveHeader(), ns3::Packet::RemovePacketTag(), and SendToLteSocket().
Referenced by EpcEnbApplication().
Send a packet to the UE via the LTE radio interface of the eNB
| packet | t |
| rbid | the Radio Bearer IDentifier |
References ns3::Packet::AddPacketTag(), NS_ASSERT, NS_LOG_FUNCTION, and ns3::Socket::Send().
Referenced by RecvFromS1uSocket().
Send a packet to the SGW via the S1-U interface
| packet | packet to be sent |
| teid | the Tunnel Enpoint IDentifier |
References ns3::Packet::AddHeader(), ns3::GtpuHeader::GetSerializedSize(), ns3::Packet::GetSize(), NS_LOG_FUNCTION, and ns3::Socket::SendTo().
Referenced by RecvFromLteSocket().