ns-3
ns3::EpcEnbApplication Class Reference

#include <epc-enb-application.h>

Inheritance diagram for ns3::EpcEnbApplication:
Collaboration diagram for ns3::EpcEnbApplication:

List of all members.

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< NodeGetNode () 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)
SimpleRefCountoperator= (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< Nodem_node
Time m_startTime
Time m_stopTime
EventId m_startEvent
EventId m_stopEvent

Detailed Description

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.


Constructor & Destructor Documentation

ns3::EpcEnbApplication::EpcEnbApplication ( Ptr< Socket lteSocket,
Ptr< Socket s1uSocket,
Ipv4Address  sgwAddress 
)

Constructor

Parameters:
lteSocketthe socket to be used to send/receive packets to/from the LTE radio interface
s1uSocketthe socket to be used to send/receive packets to/from the S1-U interface connected with the SGW
sgwAddressthe 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().

ns3::EpcEnbApplication::~EpcEnbApplication ( void  )
virtual

Destructor

References NS_LOG_FUNCTION.


Member Function Documentation

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

Parameters:
teidthe Tunnel Endpoint IDentifier of the S1-bearer to be setup.
rntithe unique ID of the UE on this eNB
lcidthe Logical Channel ID identifying the Radio Bearer

References NS_LOG_FUNCTION.

TypeId ns3::EpcEnbApplication::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::Application.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/ApplicationList/[i]

Attributes defined for this type:

  • StartTime: Time at which the application will start
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +0.0ns
    • Flags: construct write read
  • StopTime: Time at which the application will stop
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +0.0ns
    • Flags: construct write read

No TraceSources defined for this type.

Reimplemented from ns3::Application.

References ns3::TypeId::SetParent().

void ns3::EpcEnbApplication::RecvFromLteSocket ( Ptr< Socket socket)

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.

Parameters:
socketpointer to the LTE socket

References NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Socket::Recv(), ns3::Packet::RemovePacketTag(), and SendToS1uSocket().

Referenced by EpcEnbApplication().

void ns3::EpcEnbApplication::RecvFromS1uSocket ( Ptr< Socket socket)

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.

Parameters:
socketpointer 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().

void ns3::EpcEnbApplication::SendToLteSocket ( Ptr< Packet packet,
uint16_t  rnti,
uint8_t  lcid 
)

Send a packet to the UE via the LTE radio interface of the eNB

Parameters:
packett
rbidthe Radio Bearer IDentifier

References ns3::Packet::AddPacketTag(), NS_ASSERT, NS_LOG_FUNCTION, and ns3::Socket::Send().

Referenced by RecvFromS1uSocket().

void ns3::EpcEnbApplication::SendToS1uSocket ( Ptr< Packet packet,
uint32_t  teid 
)

Send a packet to the SGW via the S1-U interface

Parameters:
packetpacket to be sent
teidthe Tunnel Enpoint IDentifier

References ns3::Packet::AddHeader(), ns3::GtpuHeader::GetSerializedSize(), ns3::Packet::GetSize(), NS_LOG_FUNCTION, and ns3::Socket::SendTo().

Referenced by RecvFromLteSocket().


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