26#include "ns3/config.h"
29#include "ns3/packet-burst.h"
30#include "ns3/pointer.h"
31#include "ns3/simulator.h"
32#include "ns3/trace-source-accessor.h"
53 TypeId(
"ns3::SubscriberStationNetDevice")
56 .SetGroupName(
"Wimax")
60 .AddAttribute(
"BasicConnection",
66 .AddAttribute(
"PrimaryConnection",
72 .AddAttribute(
"LostDlMapInterval",
73 "Time since last received DL-MAP message before downlink synchronization "
74 "is considered lost. Maximum is 600ms",
80 .AddAttribute(
"LostUlMapInterval",
81 "Time since last received UL-MAP before uplink synchronization is "
82 "considered lost, maximum is 600.",
88 .AddAttribute(
"MaxDcdInterval",
89 "Maximum time between transmission of DCD messages. Maximum is 10s",
95 .AddAttribute(
"MaxUcdInterval",
96 "Maximum time between transmission of UCD messages. Maximum is 10s",
102 .AddAttribute(
"IntervalT1",
103 "Wait for DCD timeout. Maximum is 5*maxDcdInterval",
109 .AddAttribute(
"IntervalT2",
110 "Wait for broadcast ranging timeout, i.e., wait for initial ranging "
111 "opportunity. Maximum is 5*Ranging interval",
117 .AddAttribute(
"IntervalT3",
118 "ranging Response reception timeout following the transmission of a "
119 "ranging request. Maximum is 200ms",
125 .AddAttribute(
"IntervalT7",
126 "wait for DSA/DSC/DSD Response timeout. Maximum is 1s",
132 .AddAttribute(
"IntervalT12",
133 "Wait for UCD descriptor.Maximum is 5*MaxUcdInterval",
141 "Time the SS searches for preambles on a given channel. Minimum is 2 MAC frames",
147 .AddAttribute(
"IntervalT21",
148 "time the SS searches for (decodable) DL-MAP on a given channel",
155 "MaxContentionRangingRetries",
156 "Number of retries on contention Ranging Requests",
162 .AddAttribute(
"SSScheduler",
163 "The ss scheduler attached to this device.",
169 .AddAttribute(
"LinkManager",
170 "The ss link manager attached to this device.",
176 .AddAttribute(
"Classifier",
177 "The ss classifier attached to this device.",
185 "A packet has been dropped in the MAC layer before being queued for transmission.",
187 "ns3::Packet::TracedCallback")
191 "A packet has been received by this device, has been passed up from the physical "
193 "and is being forwarded up the local protocol stack. This is a promiscuous trace,",
195 "ns3::Packet::TracedCallback")
197 .AddTraceSource(
"SSRx",
198 "A packet has been received by this device, has been passed up from "
199 "the physical layer "
200 "and is being forwarded up the local protocol stack. This is a "
201 "non-promiscuous trace,",
203 "ns3::Packet::TracedCallback")
205 .AddTraceSource(
"SSRxDrop",
206 "A packet has been dropped in the MAC layer after it has been passed "
207 "up from the physical "
210 "ns3::Packet::TracedCallback");
445 std::ostringstream oss;
446 oss <<
"/NodeList/" << nodeId <<
"/DeviceList/" << ifaceId
447 <<
"/$ns3::SubscriberStationNetDevice/BasicConnection/TxQueue/Enqueue";
452 std::ostringstream oss;
453 oss <<
"/NodeList/" << nodeId <<
"/DeviceList/" << ifaceId
454 <<
"/$ns3::SubscriberStationNetDevice/BasicConnection/TxQueue/Dequeue";
459 std::ostringstream oss;
460 oss <<
"/NodeList/" << nodeId <<
"/DeviceList/" << ifaceId
461 <<
"/$ns3::SubscriberStationNetDevice/BasicConnection/TxQueue/Drop";
482 std::ostringstream oss;
483 oss <<
"/NodeList/" << nodeId <<
"/DeviceList/" << ifaceId
484 <<
"/$ns3::SubscriberStationNetDevice/PrimaryConnection/TxQueue/Enqueue";
489 std::ostringstream oss;
490 oss <<
"/NodeList/" << nodeId <<
"/DeviceList/" << ifaceId
491 <<
"/$ns3::SubscriberStationNetDevice/PrimaryConnection/TxQueue/Dequeue";
496 std::ostringstream oss;
497 oss <<
"/NodeList/" << nodeId <<
"/DeviceList/" << ifaceId
498 <<
"/$ns3::SubscriberStationNetDevice/PrimaryConnection/TxQueue/Drop";
535 bool areManagementConnectionsAllocated)
617 GetPhy()->SetPhyParameters();
647 uint16_t protocolNumber)
652 NS_LOG_INFO(
"\t\tPacket Size: " << packet->GetSize());
664 NS_LOG_INFO(
"\tCan't send packet! (NotRegistered with the network)");
668 NS_LOG_DEBUG(
"packet to send, size : " << packet->GetSize() <<
", destination : " << dest);
672 NS_LOG_INFO(
"\tCan't send packet! (No service Flow)");
676 if (protocolNumber == 2048)
682 if ((protocolNumber != 2048) || (serviceFlow ==
nullptr))
685 NS_LOG_INFO(
"\tNo service flows matches...using the default one.");
688 NS_LOG_INFO(
"\tPacket classified in the service flow SFID = "
689 << serviceFlow->
GetSfid() <<
" CID = " << serviceFlow->
GetCid());
705 NS_LOG_INFO(
"Error!! The Service Flow is not enabled");
719 "SS: Can not enqueue the packet: the selected connection is nor initialized");
726 hdr.
SetCid(connection->GetCid());
734 "Error while enqueuing packet: incorrect header type");
737 grantMgmntSubhdr.
SetPm(1);
738 packet->AddHeader(grantMgmntSubhdr);
741 NS_LOG_INFO(
"ServiceFlowManager: enqueuing packet");
742 return connection->Enqueue(packet, hdrType, hdr);
763 m_scheduler->Schedule(nrSymbols, modulationType, packetType, connection);
765 if (burst->GetNPackets() == 0)
786 <<
", SFID: " << connection->GetServiceFlow()->GetSfid() <<
", pkts sent: "
805 packet->RemoveHeader(gnrcMacHdr);
807 bool fragmentation =
false;
819 cid = gnrcMacHdr.
GetCid();
822 uint8_t type = gnrcMacHdr.
GetType();
826 uint8_t tmpType = type;
827 if (((tmpType >> 2) & 1) == 1)
830 fragmentation =
true;
831 NS_LOG_INFO(
"SS DoReceive -> the packet is a fragment" << std::endl);
837 packet->RemoveHeader(msgType);
877 packet->RemoveHeader(dlmap);
892 packet->RemoveHeader(ulmap);
928 packet->RemoveHeader(dcd);
938 packet->RemoveHeader(ucd);
976 packet->RemoveHeader(msgType);
984 "SS: Error while receiving a ranging response message: SS state "
985 "should be at least SS_STATE_WAITING_REG_RANG_INTRVL");
986 packet->RemoveHeader(rngrsp);
996 packet->RemoveHeader(msgType);
1004 "SS: Error while receiving a ranging response message: SS state "
1005 "should be SS_STATE_WAITING_RNG_RSP");
1006 packet->RemoveHeader(rngrsp);
1016 packet->RemoveHeader(msgType);
1030 packet->RemoveHeader(dsaRsp);
1060 NS_LOG_INFO(
"FRAG_DEBUG: SS DoReceive, the Packet is a fragment" << std::endl);
1061 packet->RemoveHeader(fragSubhdr);
1063 NS_LOG_INFO(
"\t fragment size = " << packet->GetSize() << std::endl);
1069 NS_LOG_INFO(
"\t Received the latest fragment" << std::endl);
1078 NS_LOG_INFO(
"\t SS PACKET DEFRAGMENTATION" << std::endl);
1079 for (
auto iter = fragmentsQueue.begin(); iter != fragmentsQueue.end(); ++iter)
1082 fullPacket->AddAtEnd(*iter);
1085 NS_LOG_INFO(
"\t fullPacket size = " << fullPacket->GetSize() << std::endl);
1096 NS_LOG_INFO(
"\t Received the first or the middle fragment" << std::endl);
1134 for (
auto iter = dlMapElements.begin(); iter != dlMapElements.end(); ++iter)
1151 uint8_t temp = iter->GetDiuc ();
1152 temp = iter->GetPreamblePresent ();
1153 temp = iter->GetStartTime ();
1167 for (
auto iter = ulMapElements.begin(); iter != ulMapElements.end(); ++iter)
1195 "SS: Error while processing UL MAP: SS state should be "
1196 "SS_STATE_WAITING_INV_RANG_INTRVL");
1232 if (
GetCurrentUcd().GetChannelEncodings().GetRangReqOppSize() != 0)
1268 for (
auto iter = dlBurstProfiles.begin(); iter != dlBurstProfiles.end(); ++iter)
1303 for (
auto iter = ulBurstProfiles.begin(); iter != ulBurstProfiles.end(); ++iter)
1329 Time timeToUlSubframe =
1332 return timeToUlSubframe + deferTime;
void SendBandwidthRequest(uint8_t uiuc, uint16_t allocationSize)
Send bandwidth request.
void Nullify()
Discard the implementation, set it to null.
bool IsNull() const
Check for null implementation.
uint16_t GetEirxPIrMax() const
Get EIRX IR MAX field.
uint16_t GetBsEirp() const
Get BS EIRP field.
void SetBsEirp(uint16_t bs_eirp)
Set BS EIRP field.
This class implements Downlink channel descriptor as described by "IEEE Standard forLocal and metropo...
void SetNrDlBurstProfiles(uint8_t nrDlBurstProfiles)
Set number DL burst profile field.
std::vector< OfdmDlBurstProfile > GetDlBurstProfiles() const
Get DL burst profile field.
OfdmDcdChannelEncodings GetChannelEncodings() const
Get channel encodings field.
uint8_t GetConfigurationChangeCount() const
Get configuration change count field.
This class implements DL-MAP as described by "IEEE Standard forLocal and metropolitan area networks P...
Mac48Address GetBaseStationId() const
Get base station ID field.
std::list< OfdmDlMapIe > GetDlMapElements() const
Get DL Map elements field.
uint8_t GetDcdCount() const
Get DCD count field.
This class implements the DSA-RSP message described by "IEEE Standard forLocal and metropolitan area ...
An identifier for simulation events.
bool IsPending() const
This method is syntactic sugar for !IsExpired().
Mac Management messages Section 6.3.2.3 MAC Management messages page 42, Table 14 page 43.
uint8_t GetType() const
Get type field.
This class implements the OFDM DCD channel encodings as described by "IEEE Standard forLocal and metr...
uint8_t GetFrameDurationCode() const
Get frame duration code field.
This class implements the OFDM Downlink burst profile descriptor as described by "IEEE Standardfor Lo...
uint8_t GetFecCodeType() const
void SetFecCodeType(uint8_t fecCodeType)
Set FEC code type.
void SetDiuc(uint8_t diuc)
Set DIUC field.
This class implements the OFDM UCD channel encodings as described by "IEEE Standard forLocal and metr...
This class implements the UL burst profile as described by "IEEE Standard forLocal and metropolitan a...
void SetUiuc(uint8_t uiuc)
Set UIUC.
void SetFecCodeType(uint8_t fecCodeType)
Set FEC code type.
uint8_t GetFecCodeType() const
Get FEC code type.
uint8_t GetUiuc() const
Get UIUC.
This class implements the UL-MAP_IE message as described by "IEEE Standard forLocal and metropolitan ...
uint16_t GetDuration() const
Get duration.
Cid GetCid() const
Get CID.
uint8_t GetUiuc() const
Get UIUC.
uint16_t GetStartTime() const
Get start time.
AttributeValue implementation for Pointer.
Smart pointer class similar to boost::intrusive_ptr.
This class implements the ranging response message described by "IEEE Standard forLocal and metropoli...
void SendRangingRequest(uint8_t uiuc, uint16_t allocationSize)
Send ranging request.
void StartScanning(SubscriberStationNetDevice::EventType type, bool deleteParameters)
Start scanning.
This class implements service flows as described by the IEEE-802.16 standard.
uint32_t GetSfid() const
Get SFID.
uint16_t GetCid() const
Get CID.
bool GetIsEnabled() const
Get is enabled flag.
ServiceFlowRecord * GetRecord() const
Get service flow record.
Ptr< WimaxConnection > GetConnection() const
Can return a null connection is this service flow has not been associated yet to a connection.
this class implements a structure to manage some parameters and statistics related to a service flow
uint32_t GetPktsSent() const
void UpdateBytesRcvd(uint32_t bytesRcvd)
update the number of received bytes by adding bytesRcvd
void UpdatePktsSent(uint32_t pktsSent)
update the number of sent packets by adding pktsSent
void UpdateBytesSent(uint32_t bytesSent)
update the number of sent bytes by adding bytesSent
uint32_t GetBytesRcvd() const
uint32_t GetBytesSent() const
void UpdatePktsRcvd(uint32_t pktsRcvd)
update the number of received packets by adding pktsRcvd
uint32_t GetPktsRcvd() const
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
static void Cancel(const EventId &id)
Set the cancel bit on this event: the event's associated function will not be invoked when it expires...
static Time Now()
Return the current simulation virtual time.
static EventId ScheduleNow(FUNC f, Ts &&... args)
Schedule an event to expire Now.
SubscriberStationNetDevice subclass of WimaxNetDevice.
~SubscriberStationNetDevice() override
Time GetMaxDcdInterval() const
void Start() override
Start the device.
uint8_t m_ucdCount
UCD count.
Time m_intervalT2
in seconds, wait for broadcast ranging timeout, i.e., wait for initial ranging opportunity
Time m_lostDlMapInterval
in milliseconds, time since last received DL-MAP before downlink synchronization is considered lost,...
bool HasServiceFlows() const
Time m_lostUlMapInterval
in milliseconds, time since last received UL-MAP before uplink synchronization is considered lost,...
void DoReceive(Ptr< Packet > packet) override
Receive a packet.
Ptr< SSLinkManager > m_linkManager
link manager
Ptr< WimaxConnection > m_primaryConnection
primary connection
void SetAsciiTxQueueDropCallback(AsciiTraceCallback cb)
Set the Drop callback for ASCII tracing.
TracedCallback< Ptr< const Packet > > m_ssPromiscRxTrace
The trace source fired for packets successfully received by the device immediately before being forwa...
double m_allocationStartTime
allocation start time
EventId m_dcdWaitTimeoutEvent
DCD wait timeout event.
Cid GetPrimaryCid() const
void SetIntervalT21(Time interval21)
OfdmUlBurstProfile * m_ulBurstProfile
UL burst profile.
void SetIntervalT20(Time interval20)
Ptr< SSScheduler > m_scheduler
the scheduler
void SetIpcsPacketClassifier(Ptr< IpcsClassifier > classifier)
Sets the packet classifier to be used.
void SetIntervalT1(Time interval1)
void AddServiceFlow(ServiceFlow *sf) const
adds a new service flow
Time m_intervalT21
in seconds, time the SS searches for (decodable) DL-MAP on a given channel
Time GetLostDlMapInterval() const
void SetMaxDcdInterval(Time maxDcdInterval)
void SetAreManagementConnectionsAllocated(bool areManagementConnectionsAllocated)
Ptr< IpcsClassifier > m_classifier
the classifier
uint32_t m_nrUlMapRecvd
number UL map received
AsciiTraceCallback m_asciiTxQueueDropCb
Bound callback to perform ASCII logging for Drop events.
WimaxPhy::ModulationType m_modulationType
modulation type
uint8_t GetMaxContentionRangingRetries() const
bool GetAreServiceFlowsAllocated() const
uint32_t m_nrDcdRecvd
number DCD received
void SetAsciiTxQueueDequeueCallback(AsciiTraceCallback cb)
Set the Dequeue callback for ASCII tracing.
void SetScheduler(Ptr< SSScheduler > ssScheduler)
AsciiTraceCallback m_asciiTxQueueEnqueueCb
Bound callback to perform ASCII logging for Enqueue events.
bool DoSend(Ptr< Packet > packet, const Mac48Address &source, const Mac48Address &dest, uint16_t protocolNumber) override
Send a packet.
Ptr< SSScheduler > GetScheduler() const
void SetBasicConnection(Ptr< WimaxConnection > basicConnection)
AsciiTraceCallback m_asciiTxQueueDequeueCb
Bound callback to perform ASCII logging for Dequeue events.
bool m_areManagementConnectionsAllocated
are management connections allocated
Time m_intervalT20
in seconds, time the SS searches for preambles on a given channel
Time GetMaxUcdInterval() const
Ptr< IpcsClassifier > GetIpcsClassifier() const
void SetLostUlMapInterval(Time lostUlMapInterval)
Time m_intervalT1
in seconds, wait for DCD timeout
void SetPrimaryConnection(Ptr< WimaxConnection > primaryConnection)
void ProcessUcd(const Ucd &ucd)
Process UCD.
uint8_t m_dcdCount
DCD count.
void SetTimer(EventId eventId, EventId &event)
Set timer.
Ptr< WimaxConnection > GetBasicConnection() const
uint8_t m_maxContentionRangingRetries
maximum contention ranging retries
static TypeId GetTypeId()
Get the type ID.
EventId m_ucdWaitTimeoutEvent
UCD wait timeout event.
TracedCallback< Ptr< const Packet > > m_ssRxTrace
The trace source fired for packets successfully received by the device immediately before being forwa...
EventId m_rangOppWaitTimeoutEvent
range opp wait timeout event
TracedCallback< Ptr< const Packet > > m_ssTxDropTrace
The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer ...
Mac48Address m_baseStationId
base station ID
void SetMaxContentionRangingRetries(uint8_t maxContentionRangingRetries)
Time GetIntervalT3() const
void ProcessDlMap(const DlMap &dlmap)
Process DL map.
void ProcessDcd(const Dcd &dcd)
Process DCD.
void SetIntervalT2(Time interval2)
Time m_maxUcdInterval
in seconds, maximum time between transmission of UCD messages
Time GetIntervalT1() const
Time GetTimeToAllocation(Time deferTime)
Get time to allocation.
static Time GetDefaultLostDlMapInterval()
Get default lost DL map interval.
void SetIntervalT12(Time interval12)
void SetIntervalT3(Time interval3)
TracedCallback< Ptr< const Packet > > m_ssRxDropTrace
The trace source fired when packets coming into the "top" of the device are dropped at the MAC layer ...
bool m_areServiceFlowsAllocated
are service flows allocated
void SetAsciiTxQueueEnqueueCallback(AsciiTraceCallback cb)
Set the Enqueue callback for ASCII tracing.
Time GetIntervalT20() const
bool GetAreManagementConnectionsAllocated() const
bool Enqueue(Ptr< Packet > packet, const MacHeaderType &hdrType, Ptr< WimaxConnection > connection) override
Enqueue a packet into a connection queue.
Time GetIntervalT21() const
EventId m_lostDlMapEvent
lost DL map event
void SetLostDlMapInterval(Time lostDlMapInterval)
Ptr< SsServiceFlowManager > m_serviceFlowManager
the service flow manager
Time m_intervalT12
in seconds, wait for UCD descriptor
void SetLinkManager(Ptr< SSLinkManager > linkManager)
sets the link manager to be used
void SetIntervalT7(Time interval7)
Time m_maxDcdInterval
in seconds, maximum time between transmission of DCD messages
TracedCallback< Ptr< const Packet >, Mac48Address, const Cid & > m_traceSSRx
trace SS receive callback
Time m_intervalT3
in milliseconds, ranging Response reception timeout following the transmission of a ranging request
Ptr< SSLinkManager > GetLinkManager() const
Time GetIntervalT12() const
void Stop() override
Stop the device.
WimaxPhy::ModulationType GetModulationType() const
Time GetIntervalT7() const
@ EVENT_RANG_OPP_WAIT_TIMEOUT
void SetServiceFlowManager(Ptr< SsServiceFlowManager > sfm)
Sets the service flow manager to be installed on the device.
uint32_t m_nrDlMapRecvd
number DL map received
void SetAreServiceFlowsAllocated(bool areServiceFlowsAllocated)
Time GetIntervalT2() const
void ProcessUlMap(const UlMap &ulmap)
Process UL map.
Ptr< WimaxConnection > m_basicConnection
basic connection
Ptr< SsServiceFlowManager > GetServiceFlowManager() const
OfdmDlBurstProfile * m_dlBurstProfile
DL burst profile.
uint16_t m_nrDlMapElements
number DL Map elements
TracedCallback< Ptr< const Packet > > m_ssTxTrace
The trace source fired when packets come into the "top" of the device at the L3/L2 transition,...
uint32_t m_nrUcdRecvd
number UCD received
void InitSubscriberStationNetDevice()
initializes the net device and sets the parameters to the default values
Ptr< WimaxConnection > GetPrimaryConnection() const
bool IsRegistered() const
void SetModulationType(WimaxPhy::ModulationType modulationType)
Set the most efficient modulation and coding scheme (MCS) supported by the device.
void DoDispose() override
Destructor implementation.
void SendBurst(uint8_t uiuc, uint16_t nrSymbols, Ptr< WimaxConnection > connection, MacHeaderType::HeaderType packetType=MacHeaderType::HEADER_TYPE_GENERIC)
Sends a burst on the uplink frame.
@ SS_STATE_WAITING_REG_RANG_INTRVL
@ SS_STATE_ADJUSTING_PARAMETERS
@ SS_STATE_WAITING_INV_RANG_INTRVL
@ SS_STATE_WAITING_RNG_RSP
@ SS_STATE_ACQUIRING_PARAMETERS
uint16_t m_nrUlMapElements
number UL Map elements
Time m_intervalT7
in seconds, wait for DSA/DSC/DSD Response timeout
Time GetLostUlMapInterval() const
void SetMaxUcdInterval(Time maxUcdInterval)
EventId m_lostUlMapEvent
lost UL map event
SubscriberStationNetDevice()
Simulation virtual time values and global simulation resolution.
double GetSeconds() const
Get an approximation of the time stored in this instance in the indicated unit.
AttributeValue implementation for Time.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
This class implements the UCD message as described by "IEEE Standard forLocal and metropolitan area n...
void SetNrUlBurstProfiles(uint8_t nrUlBurstProfiles)
Set NR UL burst profiles.
std::vector< OfdmUlBurstProfile > GetUlBurstProfiles() const
Get UL burst profiles.
uint8_t GetConfigurationChangeCount() const
Get configuration change count.
OfdmUcdChannelEncodings GetChannelEncodings() const
Get channel encodings.
uint8_t GetRangingBackoffStart() const
Get ranging backoff start.
Hold an unsigned integer type.
This class implements the UL-MAP_IE message as described by "IEEE Standard forLocal and metropolitan ...
std::list< OfdmUlMapIe > GetUlMapElements() const
Get UL map elements.
uint32_t GetAllocationStartTime() const
Get allocation start time.
uint8_t GetUcdCount() const
Get UCD count.
std::list< Ptr< const Packet > > FragmentsQueue
Definition of Fragments Queue data type.
Hold together all WiMAX-related objects in a NetDevice.
void DoDispose() override
Destructor implementation.
Ptr< ConnectionManager > GetConnectionManager() const
Get the connection manager of the device.
uint32_t GetIfIndex() const override
Get interface index.
Ucd GetCurrentUcd() const
Get the current UCD.
void SetPhy(Ptr< WimaxPhy > phy)
Set the physical layer object.
uint8_t GetState() const
Get the device state.
void SetCurrentUcd(Ucd ucd)
Set the current UCD.
Ptr< Node > GetNode() const override
Get node pointer.
static Time m_frameStartTime
temp, to determine the frame start time at SS side, shall actually be determined by frame start pream...
void SetState(uint8_t state)
Set the device state.
Ptr< WimaxConnection > GetInitialRangingConnection() const
Get the initial ranging connection.
Ptr< WimaxPhy > GetPhy() const
Get the physical layer object.
Ptr< BandwidthManager > GetBandwidthManager() const
Get the bandwidth manager on the device.
Ptr< WimaxConnection > GetBroadcastConnection() const
Get the broadcast connection.
bool IsPromisc()
Check if device is promiscuous.
void CreateDefaultConnections()
Creates the initial ranging and broadcast connections.
void SetCurrentDcd(Dcd dcd)
Set the current DCD.
void SetReceiveCallback()
Set receive callback function.
Mac48Address GetMacAddress() const
Get the MAC address.
void SetNode(Ptr< Node > node) override
Set node pointer.
void NotifyPromiscTrace(Ptr< Packet > p)
Notify promiscuous trace of a packet arrival.
void ForwardUp(Ptr< Packet > packet, const Mac48Address &source, const Mac48Address &dest)
Forward a packet to the next layer above the device.
Ptr< BurstProfileManager > GetBurstProfileManager() const
Get the burst profile manager.
Dcd GetCurrentDcd() const
Get the current DCD.
void ForwardDown(Ptr< PacketBurst > burst, WimaxPhy::ModulationType modulationType)
Forward a packet down the stack.
ModulationType
ModulationType enumeration.
@ MODULATION_TYPE_BPSK_12
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< AttributeChecker > MakePointerChecker()
Create a PointerChecker for a type.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.
Ptr< const AttributeChecker > MakeUintegerChecker()
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
void Connect(std::string path, const CallbackBase &cb)
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_LOG_ERROR(msg)
Use NS_LOG to output a message of level LOG_ERROR.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time Seconds(double value)
Construct a Time in the indicated unit.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t pktSize
packet size used for the simulation (in bytes)