22 #include "ns3/simulator.h" 25 #include "ns3/lte-rlc-tm.h" 26 #include "ns3/lte-rlc-tag.h" 35 : m_maxTxBufferSize (0),
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;
153 params.componentCarrierId = componentCarrierId;
196 uint32_t queueSize = 0;
202 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.
Simulation virtual time values and global simulation resolution.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
uint32_t m_txBufferSize
transmit buffer size
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
NS_ASSERT_MSG(false, "Ipv4AddressGenerator::MaskToIndex(): Impossible")
virtual void DoNotifyHarqDeliveryFailure()
Notify HARQ deliver failure.
void ExpireRbsTimer(void)
Expire RBS timer function.
uint32_t GetSize(Ptr< const Packet > packet, const WifiMacHeader *hdr, bool isAmpdu)
Return the total size of the packet after WifiMacHeader and FCS trailer have been added...
Tag to calculate the per-PDU delay from eNb RLC to UE RLC.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
void DoReportBufferStatus()
Report buffer status.
uint32_t retxQueueSize
the current size of the RLC retransmission queue in bytes
uint16_t rnti
the C-RNTI identifying the UE
virtual void DoNotifyTxOpportunity(uint32_t bytes, uint8_t layer, uint8_t harqId, uint8_t componentCarrierId, uint16_t rnti, uint8_t lcid)
MAC SAP.
Parameters for LteMacSapProvider::ReportBufferStatus.
uint16_t txQueueHolDelay
the Head Of Line delay of the transmission queue
LteRlcSapUser * m_rlcSapUser
RLC SAP user.
static EventId Schedule(Time const &delay, MEM mem_ptr, OBJ obj)
Schedule an event to expire after delay.
Hold an unsigned integer type.
virtual void DoTransmitPdcpPdu(Ptr< Packet > p)
RLC SAP.
bool ReplacePacketTag(Tag &tag)
Replace the value of a packet tag.
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()
Destructor implementation.
virtual void DoReceivePdu(Ptr< Packet > p, uint16_t rnti, uint8_t lcid)
Receive PDU function.
LteMacSapProvider * m_macSapProvider
MAC SAP provider.
LTE RLC Transparent Mode (TM), see 3GPP TS 36.322.
EventId m_rbsTimer
RBS timer.
std::vector< Ptr< Packet > > m_txBuffer
Transmission buffer.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
int64_t GetNanoSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
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 virtual time.
NS_LOG_LOGIC("Net device "<< nd<< " is not bridged")
uint16_t statusPduSize
the current size of the pending STATUS RLC PDU message in bytes
void AddPacketTag(const Tag &tag) const
Add a packet tag.
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
int64_t GetMilliSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
bool RemovePacketTag(Tag &tag)
Remove a packet tag.
uint32_t m_maxTxBufferSize
maximum transmit buffer size
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()
Destructor implementation.
TracedCallback< uint16_t, uint8_t, uint32_t, uint64_t > m_rxPdu
Used to inform of a PDU reception from the MAC SAP user.
bool PeekPacketTag(Tag &tag) const
Search a matching tag and call Tag::Deserialize if it is found.
virtual void TransmitPdu(TransmitPduParameters params)=0
send an RLC PDU to the MAC for transmission.
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE...
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Parameters for LteMacSapProvider::TransmitPdu.