22 #include "ns3/simulator.h"
25 #include "ns3/lte-rlc-tm.h"
26 #include "ns3/lte-rlc-tag.h"
36 : m_maxTxBufferSize (0),
52 .AddConstructor<LteRlcTm> ()
53 .AddAttribute (
"MaxTxBufferSize",
54 "Maximum Size of the Transmission Buffer (in Bytes)",
57 MakeUintegerChecker<uint32_t> ())
132 if (bytes < packet->GetSize ())
134 NS_LOG_WARN (
"TX opportunity too small = " << bytes <<
" (PDU size: " << packet->
GetSize () <<
")");
151 params.layer = layer;
152 params.harqProcessId = harqId;
196 uint32_t queueSize = 0;
201 m_txBuffer.front ()->PeekPacketTag (holTimeTag);
TracedCallback< uint16_t, uint8_t, uint32_t > m_txPdu
Used to inform of a PDU delivery to the MAC SAP provider.
bool FindFirstMatchingByteTag(Tag &tag) const
NS_LOG_COMPONENT_DEFINE("LteRlcTm")
keep track of time values and allow control of global simulation resolution
#define NS_LOG_FUNCTION(parameters)
virtual void DoNotifyHarqDeliveryFailure()
void ExpireRbsTimer(void)
void AddPacketTag(const Tag &tag) const
Add a packet tag.
Tag to calculate the per-PDU delay from eNb RLC to UE RLC.
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
void DoReportBufferStatus()
uint32_t GetSize(void) const
uint32_t retxQueueSize
the current size of the RLC retransmission queue in bytes
static EventId Schedule(Time const &time, MEM mem_ptr, OBJ obj)
Schedule an event to expire at the relative time "time" is reached.
uint16_t rnti
the C-RNTI identifying the UE
Parameters for LteMacSapProvider::ReportBufferStatus.
uint16_t txQueueHolDelay
the Head Of Line delay of the transmission queue
LteRlcSapUser * m_rlcSapUser
Hold an unsigned integer type.
virtual void DoTransmitPdcpPdu(Ptr< Packet > p)
RLC SAP.
virtual void ReceivePdcpPdu(Ptr< Packet > p)=0
Called by the RLC entity to notify the PDCP entity of the reception of a new PDCP PDU...
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
LteMacSapProvider * m_macSapProvider
#define NS_LOG_LOGIC(msg)
Ptr< Packet > Copy(void) const
std::vector< Ptr< Packet > > m_txBuffer
static TypeId GetTypeId(void)
Time GetSenderTimestamp(void) const
Get the instant when the RLC delivers the PDU to the MAC SAP provider.
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
uint32_t txQueueSize
the current size of the RLC transmission queue
static Time Now(void)
Return the "current simulation time".
int64_t GetNanoSeconds(void) const
virtual void DoReceivePdu(Ptr< Packet > p)
uint16_t statusPduSize
the current size of the pending STATUS RLC PDU message in bytes
uint32_t m_maxTxBufferSize
uint16_t retxQueueHolDelay
the Head Of Line delay of the retransmission queue
Ptr< Packet > pdu
the RLC PDU
void Cancel(void)
This method is syntactic sugar for the ns3::Simulator::cancel method.
virtual void ReportBufferStatus(ReportBufferStatusParameters params)=0
Report the RLC buffer status to the MAC.
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
TracedCallback< uint16_t, uint8_t, uint32_t, uint64_t > m_rxPdu
Used to inform of a PDU reception from the MAC SAP user.
virtual void TransmitPdu(TransmitPduParameters params)=0
send an RLC PDU to the MAC for transmission.
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE...
a unique identifier for an interface.
int64_t GetMilliSeconds(void) const
TypeId SetParent(TypeId tid)
void AddByteTag(const Tag &tag) const
Tag each byte included in this packet with a new byte tag.
virtual void DoNotifyTxOpportunity(uint32_t bytes, uint8_t layer, uint8_t harqId)
MAC SAP.
Parameters for LteMacSapProvider::TransmitPdu.