|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #include "ns3/simulator.h"
25 #include "ns3/lte-rlc-tm.h"
34 : m_maxTxBufferSize (0),
52 .AddAttribute (
"MaxTxBufferSize",
53 "Maximum Size of the Transmission Buffer (in Bytes)",
56 MakeUintegerChecker<uint32_t> ())
130 " (PDU size: " << packet->
GetSize () <<
")");
183 uint32_t queueSize = 0;
Parameters for LteMacSapProvider::TransmitPdu.
uint8_t harqProcessId
the HARQ process id that was passed by the MAC in the call to NotifyTxOpportunity that generated this...
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
uint32_t retxQueueSize
the current size of the RLC retransmission queue in bytes
uint16_t rnti
the C-RNTI identifying the UE
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
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.
Ptr< Packet > p
the RLC PDU to be received
TracedCallback< uint16_t, uint8_t, uint32_t > m_txPdu
Used to inform of a PDU delivery to the MAC SAP provider.
virtual void DoTransmitPdcpPdu(Ptr< Packet > p)
RLC SAP.
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
virtual void TransmitPdu(TransmitPduParameters params)=0
send an RLC PDU to the MAC for transmission.
static Time Now(void)
Return the current simulation virtual time.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Parameters for LteMacSapUser::NotifyTxOpportunity.
uint32_t m_maxTxBufferSize
maximum transmit buffer size
uint32_t m_txBufferSize
transmit buffer size
virtual void DoDispose()
Destructor implementation.
EventId m_rbsTimer
RBS timer.
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
virtual void DoNotifyTxOpportunity(LteMacSapUser::TxOpportunityParameters txOpParams)
MAC SAP.
Store an incoming (from layer above us) PDU, waiting to transmit it.
static TypeId GetTypeId(void)
Get the type ID.
static EventId Schedule(Time const &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Ptr< Packet > pdu
the RLC PDU
std::vector< TxPdu > m_txBuffer
Transmission buffer.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
uint8_t componentCarrierId
the component carrier id corresponding to the sending Mac istance
virtual void DoDispose()
Destructor implementation.
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE,...
Parameters for LteMacSapProvider::ReportBufferStatus.
uint16_t txQueueHolDelay
the Head Of Line delay of the transmission queue
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
void Cancel(void)
This method is syntactic sugar for the ns3::Simulator::Cancel method.
uint32_t txQueueSize
the current size of the RLC transmission queue
Parameters for LteMacSapUser::ReceivePdu.
uint16_t retxQueueHolDelay
the Head Of Line delay of the retransmission queue
Simulation virtual time values and global simulation resolution.
virtual void DoReceivePdu(LteMacSapUser::ReceivePduParameters rxPduParams)
Receive PDU function.
LteMacSapProvider * m_macSapProvider
MAC SAP provider.
uint8_t harqId
the HARQ ID
uint8_t layer
the layer value that was passed by the MAC in the call to NotifyTxOpportunity that generated this PDU
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
int64_t GetMilliSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
LTE RLC Transparent Mode (TM), see 3GPP TS 36.322.
virtual void ReportBufferStatus(ReportBufferStatusParameters params)=0
Report the RLC buffer status to the MAC.
uint8_t componentCarrierId
the component carrier id
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
void ExpireRbsTimer(void)
Expire RBS timer function.
uint32_t bytes
the number of bytes to transmit
uint16_t rnti
the C-RNTI identifying the UE
Hold an unsigned integer type.
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
LteRlcSapUser * m_rlcSapUser
RLC SAP user.
uint8_t layer
the layer of transmission (MIMO)
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
void DoReportBufferStatus()
Report buffer status.
TracedCallback< uint16_t, uint8_t, uint32_t, uint64_t > m_rxPdu
Used to inform of a PDU reception from the MAC SAP user.
uint16_t statusPduSize
the current size of the pending STATUS RLC PDU message in bytes
virtual void DoNotifyHarqDeliveryFailure()
Notify HARQ deliver failure.