Gateway side of RC-MAC. More...
#include "uan-mac-rc-gw.h"
Classes | |
struct | AckData |
Packet ACK data. More... | |
struct | Request |
Reservation request. More... | |
Public Types | |
typedef void(* | CycleCallback) (Time now, Time delay, uint32_t numRts, uint32_t totalBytes, double secs, uint32_t ctlRate, double actualX) |
TracedCallback signature for. More... | |
Public Types inherited from ns3::UanMac | |
typedef void(* | PacketModeTracedCallback) (Ptr< const Packet > packet, UanTxMode mode) |
TracedCallback signature for packet reception/enqueue/dequeue events. More... | |
Public Member Functions | |
UanMacRcGw () | |
Constructor. More... | |
~UanMacRcGw () override | |
Dummy destructor, see DoDispose. More... | |
int64_t | AssignStreams (int64_t stream) override |
Assign a fixed random variable stream number to the random variables used by this model. More... | |
void | AttachPhy (Ptr< UanPhy > phy) override |
Attach PHY layer to this MAC. More... | |
void | Clear () override |
Clears all pointer references. More... | |
bool | Enqueue (Ptr< Packet > pkt, uint16_t protocolNumber, const Address &dest) override |
Enqueue packet to be transmitted. More... | |
void | SetForwardUpCb (Callback< void, Ptr< Packet >, uint16_t, const Mac8Address & > cb) override |
Set the callback to forward packets up to higher layers. More... | |
Public Member Functions inherited from ns3::UanMac | |
UanMac () | |
Default constructor. More... | |
virtual Address | GetAddress () |
Get the MAC Address. More... | |
virtual Address | GetBroadcast () const |
Get the broadcast address. More... | |
uint32_t | GetTxModeIndex () const |
Get the Tx mode index (Modulation type). More... | |
virtual void | SetAddress (Mac8Address addr) |
Set the address. More... | |
void | SetTxModeIndex (uint32_t txModeIndex) |
Set the Tx mode index (Modulation type). More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
~Object () override | |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose () |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized () const |
Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::UanMac | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Protected Member Functions | |
void | DoDispose () override |
Destructor implementation. More... | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoInitialize () |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. More... | |
Private Types | |
enum | State { IDLE , INCYCLE , CTSING } |
Gateway state. More... | |
Private Member Functions | |
uint32_t | CompExpMinIndex (uint32_t n, uint32_t k) |
Index to the k'th expected delay among n nodes. More... | |
double | ComputeAlpha (uint32_t totalFrames, uint32_t totalBytes, uint32_t n, uint32_t a, double deltaK) |
Compute alpha parameter. More... | |
double | ComputeExpBOverA (uint32_t n, uint32_t a, uint32_t ldlh, std::vector< double > deltaK) |
Numeric function. More... | |
double | ComputeExpS (uint32_t a, uint32_t ld) |
Throughput for a reservations with framesize ld. More... | |
double | ComputeExpS (uint32_t a, uint32_t ld, std::vector< double > exppdk) |
Throughput for a reservations with framesize ld, given expected delays exppdk. More... | |
double | ComputePiK (uint32_t a, uint32_t n, uint32_t k) |
Numeric function. More... | |
void | CycleStarted () |
Set state to INCYCLE. More... | |
void | EndCycle () |
End cycle by scheduling pending ACKs. More... | |
uint32_t | FindOptA () |
Compute the optimum maximum number of reservations to accept per cycle. More... | |
std::vector< double > | GetExpPdk () |
Get the expected propagation delay to each node. More... | |
uint64_t | NchooseK (uint32_t n, uint32_t k) |
Binomial coefficient. More... | |
void | ReceiveError (Ptr< Packet > pkt, double sinr) |
PHY receive error callback. More... | |
void | ReceivePacket (Ptr< Packet > pkt, double sinr, UanTxMode mode) |
PHY receive ok callback. More... | |
void | SendPacket (Ptr< Packet > pkt, uint32_t rate) |
Send packet on PHY. More... | |
void | StartCycle () |
Cycle through pending requests. More... | |
Private Attributes | |
std::map< Mac8Address, AckData > | m_ackData |
AckData for each node. More... | |
uint32_t | m_ackSize |
Size of UanHeaderCommon and UanHeaderRcAck. More... | |
bool | m_cleared |
Flag when we've been cleared. More... | |
uint32_t | m_ctsSizeG |
Size of UanHeaderCommon and UanHeaderRcCtsGlobal. More... | |
uint32_t | m_ctsSizeN |
Size of UanHeaderRcCts. More... | |
uint32_t | m_currentRateNum |
Rate number corresponding to data rate of current cycle. More... | |
uint16_t | m_currentRetryRate |
Retry rate number for current cycle. More... | |
TracedCallback< Time, Time, uint32_t, uint32_t, double, uint32_t, double > | m_cycleLogger |
A packet was destined for and received at this MAC layer. More... | |
Callback< void, Ptr< Packet >, uint16_t, const Mac8Address & > | m_forwardUpCb |
Forwarding up callback. More... | |
uint32_t | m_frameSize |
Size of data frames in bytes. More... | |
Time | m_maxDelta |
Maximum propagation delay between gateway and non-gateway nodes . More... | |
uint32_t | m_maxRes |
Maximum number of reservations to accept per cycle. More... | |
double | m_minRetryRate |
Smallest allowed RTS retry rate. More... | |
uint32_t | m_numNodes |
Number of non-gateway nodes in this gateway's neighborhood. More... | |
uint32_t | m_numRates |
Number of rates per Phy layer. More... | |
Ptr< UanPhy > | m_phy |
PHY layer attached to this MAC. More... | |
std::map< Mac8Address, Time > | m_propDelay |
Propagation delay to each node. More... | |
uint32_t | m_rateStep |
Increments available for rate assignment in bps. More... | |
std::map< Mac8Address, Request > | m_requests |
Request for each node. More... | |
double | m_retryStep |
Retry rate increment. More... | |
uint32_t | m_rtsSize |
Size of UanHeaderCommon and UanHeaderRcRts. More... | |
TracedCallback< Ptr< const Packet >, UanTxMode > | m_rxLogger |
A packet was destined for and received at this MAC layer. More... | |
Time | m_sifs |
Spacing between frames to account for timing error and processing delay. More... | |
std::set< std::pair< Time, Mac8Address > > | m_sortedRes |
Queued request times. More... | |
State | m_state |
Gateway processing state. More... | |
uint32_t | m_totalRate |
Total available channel rate in bps (for a single channel, without splitting reservation channel). More... | |
Additional Inherited Members | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Gateway side of RC-MAC.
This MAC protocol assumes a network topology where all traffic is destined for a set of GW nodes which are connected via some out of band (RF?) means. UanMacRcGw is the protocol which runs on the gateway nodes.
This particular implementation assumes that there is only a single gateway.
For more information on class operation email lentr (This work is, as of yet, unpublished) acy@ u.was hing ton.e du
Definition at line 54 of file uan-mac-rc-gw.h.
typedef void(* ns3::UanMacRcGw::CycleCallback) (Time now, Time delay, uint32_t numRts, uint32_t totalBytes, double secs, uint32_t ctlRate, double actualX) |
TracedCallback signature for.
[in] | now,The | current simulation time. |
[in] | delay | Minimum path delay of first RTS. |
[in] | numRts | Number of pending RTS. |
[in] | totalBytes | Length of RTS header. |
[in] | secs | Effective window size for RcCtsGlobal message, or time to next cycle, both in seconds. |
[in] | ctlRate | CTL rate in Bps. |
[in] | actualX | Current retry rate. |
Definition at line 85 of file uan-mac-rc-gw.h.
|
private |
Gateway state.
Enumerator | |
---|---|
IDLE | Initial idle state. |
INCYCLE | Cycling through nodes. |
CTSING | Sending CTS. |
Definition at line 95 of file uan-mac-rc-gw.h.
ns3::UanMacRcGw::UanMacRcGw | ( | ) |
Constructor.
Definition at line 49 of file uan-mac-rc-gw.cc.
References ns3::UanHeaderCommon::GetSerializedSize(), ns3::UanHeaderRcRts::GetSerializedSize(), ns3::UanHeaderRcCtsGlobal::GetSerializedSize(), ns3::UanHeaderRcCts::GetSerializedSize(), ns3::UanHeaderRcAck::GetSerializedSize(), m_ackSize, m_ctsSizeG, m_ctsSizeN, m_rtsSize, and NS_LOG_DEBUG.
|
override |
Dummy destructor, see DoDispose.
Definition at line 69 of file uan-mac-rc-gw.cc.
|
overridevirtual |
Assign a fixed random variable stream number to the random variables used by this model.
Return the number of streams (possibly zero) that have been assigned.
stream | First stream index to use. |
Implements ns3::UanMac.
Definition at line 746 of file uan-mac-rc-gw.cc.
References NS_LOG_FUNCTION.
Attach PHY layer to this MAC.
Some MACs may be designed to work with multiple PHY layers. Others may only work with one.
phy | Phy layer to attach to this MAC. |
Implements ns3::UanMac.
Definition at line 194 of file uan-mac-rc-gw.cc.
References m_phy, ns3::MakeCallback(), third::phy, ReceiveError(), and ReceivePacket().
|
overridevirtual |
Clears all pointer references.
Implements ns3::UanMac.
Definition at line 74 of file uan-mac-rc-gw.cc.
References m_ackData, m_cleared, m_phy, m_propDelay, m_requests, and m_sortedRes.
Referenced by DoDispose().
|
private |
Index to the k'th expected delay among n nodes.
n | Number of nodes. |
k | Target index. |
Definition at line 662 of file uan-mac-rc-gw.cc.
References two-ray-to-three-gpp-ch-calibration::k, and NchooseK().
Referenced by GetExpPdk().
|
private |
Compute alpha parameter.
totalFrames | Total number of frames in m_requests. |
totalBytes | Total number of bytes in m_requests. |
n | Number of nodes. |
a | m_maxRes, or optimal A value. |
deltaK | Propagation delay. |
Definition at line 560 of file uan-mac-rc-gw.cc.
References ns3::Time::GetSeconds(), m_ctsSizeG, m_maxDelta, m_rtsSize, m_sifs, m_totalRate, and NS_ASSERT_MSG.
Referenced by ComputeExpBOverA(), ComputeExpS(), and StartCycle().
|
private |
Numeric function.
n | Number of nodes. |
a | Number of reservations. |
ldlh | Sum of common header length and frame size. |
deltaK | Result of GetExpPdk |
Definition at line 683 of file uan-mac-rc-gw.cc.
References ComputeAlpha(), ComputePiK(), two-ray-to-three-gpp-ch-calibration::k, m_ackSize, m_ctsSizeG, m_ctsSizeN, m_totalRate, and two-ray-to-three-gpp-ch-calibration::num.
Referenced by ComputeExpS().
|
private |
Throughput for a reservations with framesize ld.
a | Number of reservations. |
ld | Frame size. |
Definition at line 656 of file uan-mac-rc-gw.cc.
References ComputeExpS(), and GetExpPdk().
|
private |
Throughput for a reservations with framesize ld, given expected delays exppdk.
a | Number of reservations. |
ld | Frame size. |
exppdk | Expected delays, given by GetExpPdk. |
Definition at line 625 of file uan-mac-rc-gw.cc.
References ComputeAlpha(), ComputeExpBOverA(), ComputePiK(), ns3::Time::GetSeconds(), ns3::UanHeaderCommon::GetSerializedSize(), m_ctsSizeG, m_maxDelta, m_numNodes, m_rtsSize, m_sifs, m_totalRate, and NS_LOG_DEBUG.
Referenced by ComputeExpS(), and FindOptA().
|
private |
Numeric function.
a | Number of reservations. |
n | number of nodes. |
k | K'th node. |
Definition at line 675 of file uan-mac-rc-gw.cc.
References two-ray-to-three-gpp-ch-calibration::k, and NchooseK().
Referenced by ComputeExpBOverA(), and ComputeExpS().
|
private |
Set state to INCYCLE.
Definition at line 476 of file uan-mac-rc-gw.cc.
References INCYCLE, and m_state.
Referenced by StartCycle().
|
overrideprotectedvirtual |
Destructor implementation.
This method is called by Dispose() or by the Object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.
It is safe to call GetObject() from within this method.
Reimplemented from ns3::Object.
Definition at line 98 of file uan-mac-rc-gw.cc.
References Clear(), and ns3::Object::DoDispose().
|
private |
End cycle by scheduling pending ACKs.
Definition at line 482 of file uan-mac-rc-gw.cc.
References ns3::Packet::AddHeader(), ns3::UanHeaderRcAck::AddNackedFrame(), ns3::Mac8Address::ConvertFrom(), data, ns3::UanMac::GetAddress(), m_ackData, m_ackSize, m_currentRateNum, m_phy, m_sifs, ns3::Now(), NS_LOG_DEBUG, ns3::Time::S, ns3::Simulator::Schedule(), ns3::Seconds(), SendPacket(), ns3::UanHeaderCommon::SetDest(), ns3::UanHeaderRcAck::SetFrameNo(), ns3::UanHeaderCommon::SetSrc(), ns3::UanHeaderCommon::SetType(), StartCycle(), and ns3::UanMacRc::TYPE_ACK.
Referenced by StartCycle().
|
overridevirtual |
Enqueue packet to be transmitted.
pkt | Packet to be transmitted. |
dest | Destination address. |
protocolNumber | The type of the packet. |
Implements ns3::UanMac.
Definition at line 179 of file uan-mac-rc-gw.cc.
References NS_LOG_WARN.
|
private |
Compute the optimum maximum number of reservations to accept per cycle.
Definition at line 723 of file uan-mac-rc-gw.cc.
References ComputeExpS(), m_frameSize, ns3::Now(), NS_LOG_DEBUG, and ns3::Time::S.
Referenced by StartCycle().
|
private |
Get the expected propagation delay to each node.
Definition at line 597 of file uan-mac-rc-gw.cc.
References CompExpMinIndex(), ns3::Time::GetSeconds(), two-ray-to-three-gpp-ch-calibration::k, m_maxDelta, m_numNodes, and m_propDelay.
Referenced by ComputeExpS().
|
static |
Register this type.
Definition at line 105 of file uan-mac-rc-gw.cc.
References m_cycleLogger, m_frameSize, m_maxDelta, m_maxRes, m_minRetryRate, m_numNodes, m_numRates, m_rateStep, m_retryStep, m_rxLogger, m_sifs, m_totalRate, ns3::MakeDoubleAccessor(), ns3::MakeTimeAccessor(), ns3::MakeTimeChecker(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), ns3::Seconds(), and ns3::TypeId::SetParent().
|
private |
Binomial coefficient.
n | Pool size. |
k | Selection size. |
Definition at line 701 of file uan-mac-rc-gw.cc.
References two-ray-to-three-gpp-ch-calibration::k.
Referenced by CompExpMinIndex(), and ComputePiK().
PHY receive error callback.
pkt | The failed packet. |
sinr | The SINR value on the channel. |
Definition at line 202 of file uan-mac-rc-gw.cc.
Referenced by AttachPhy().
PHY receive ok callback.
pkt | The Packet to receive |
sinr | The SINR on the channel |
mode | The transmission mode |
Definition at line 207 of file uan-mac-rc-gw.cc.
References ns3::Mac8Address::ConvertFrom(), CTSING, ns3::UanMacRcGw::Request::frameNo, ns3::UanMac::GetAddress(), ns3::Mac8Address::GetBroadcast(), ns3::UanHeaderCommon::GetDest(), ns3::UanHeaderRcData::GetFrameNo(), ns3::UanHeaderRcRts::GetFrameNo(), ns3::UanHeaderRcRts::GetLength(), ns3::UanHeaderRcRts::GetNoFrames(), ns3::UanHeaderRcData::GetPropDelay(), ns3::UanHeaderCommon::GetProtocolNumber(), ns3::UanHeaderRcRts::GetRetryNo(), ns3::Packet::GetSize(), ns3::UanHeaderCommon::GetSrc(), ns3::UanHeaderCommon::GetType(), IDLE, ns3::UanMacRcGw::Request::length, m_ackData, m_forwardUpCb, m_maxDelta, m_propDelay, m_requests, m_rxLogger, m_sortedRes, m_state, ns3::Now(), ns3::Simulator::Now(), NS_FATAL_ERROR, NS_LOG_DEBUG, ns3::UanMacRcGw::Request::numFrames, ns3::Packet::PeekHeader(), ns3::Packet::RemoveHeader(), ns3::UanMacRcGw::Request::retryNo, ns3::UanMacRcGw::Request::rxTime, ns3::Time::S, StartCycle(), ns3::UanMacRc::TYPE_ACK, ns3::UanMacRc::TYPE_CTS, ns3::UanMacRc::TYPE_DATA, ns3::UanMacRc::TYPE_GWPING, and ns3::UanMacRc::TYPE_RTS.
Referenced by AttachPhy().
Send packet on PHY.
Definition at line 527 of file uan-mac-rc-gw.cc.
References ns3::UanHeaderCommon::GetDest(), ns3::Packet::GetSize(), ns3::UanHeaderCommon::GetType(), m_phy, ns3::Now(), NS_LOG_DEBUG, ns3::Packet::PeekHeader(), ns3::Time::S, check-style-clang-format::type, ns3::UanMacRc::TYPE_ACK, ns3::UanMacRc::TYPE_CTS, ns3::UanMacRc::TYPE_DATA, ns3::UanMacRc::TYPE_GWPING, and ns3::UanMacRc::TYPE_RTS.
Referenced by EndCycle(), and StartCycle().
|
overridevirtual |
Set the callback to forward packets up to higher layers.
cb | The callback. packet The packet. address The source address. |
Implements ns3::UanMac.
Definition at line 188 of file uan-mac-rc-gw.cc.
References m_forwardUpCb.
|
private |
Cycle through pending requests.
Definition at line 293 of file uan-mac-rc-gw.cc.
References ns3::Packet::AddHeader(), ns3::Time::As(), ComputeAlpha(), ns3::Mac8Address::ConvertFrom(), CTSING, CycleStarted(), EndCycle(), ns3::UanMacRcGw::AckData::expFrames, FindOptA(), ns3::UanMacRcGw::Request::frameNo, ns3::UanMacRcGw::AckData::frameNo, ns3::UanMac::GetAddress(), ns3::Mac8Address::GetBroadcast(), ns3::Time::GetSeconds(), INCYCLE, ns3::UanMacRcGw::Request::length, m_ackData, m_ackSize, m_ctsSizeG, m_ctsSizeN, m_currentRateNum, m_currentRetryRate, m_cycleLogger, m_maxDelta, m_maxRes, m_minRetryRate, m_numNodes, m_numRates, m_phy, m_rateStep, m_requests, m_retryStep, m_rtsSize, m_sifs, m_sortedRes, m_state, m_totalRate, max, ns3::Now(), ns3::Simulator::Now(), NS_LOG_DEBUG, NS_LOG_WARN, ns3::UanMacRcGw::Request::numFrames, ns3::UanMacRcGw::Request::retryNo, ns3::UanMacRcGw::Request::rxTime, ns3::Time::S, ns3::Simulator::Schedule(), ns3::Seconds(), SendPacket(), ns3::UanHeaderRcCts::SetAddress(), ns3::UanHeaderRcCts::SetDelayToTx(), ns3::UanHeaderCommon::SetDest(), ns3::UanHeaderRcCts::SetFrameNo(), ns3::UanHeaderCommon::SetProtocolNumber(), ns3::UanHeaderRcCtsGlobal::SetRateNum(), ns3::UanHeaderRcCts::SetRetryNo(), ns3::UanHeaderRcCtsGlobal::SetRetryRate(), ns3::UanHeaderRcCts::SetRtsTimeStamp(), ns3::UanHeaderCommon::SetSrc(), ns3::UanHeaderRcCtsGlobal::SetTxTimeStamp(), ns3::UanHeaderCommon::SetType(), ns3::UanHeaderRcCtsGlobal::SetWindowTime(), and ns3::UanMacRc::TYPE_CTS.
Referenced by EndCycle(), and ReceivePacket().
|
private |
AckData for each node.
Definition at line 155 of file uan-mac-rc-gw.h.
Referenced by Clear(), EndCycle(), ReceivePacket(), and StartCycle().
|
private |
Size of UanHeaderCommon and UanHeaderRcAck.
Definition at line 139 of file uan-mac-rc-gw.h.
Referenced by UanMacRcGw(), ComputeExpBOverA(), EndCycle(), and StartCycle().
|
private |
Flag when we've been cleared.
Definition at line 163 of file uan-mac-rc-gw.h.
Referenced by Clear().
|
private |
Size of UanHeaderCommon and UanHeaderRcCtsGlobal.
Definition at line 138 of file uan-mac-rc-gw.h.
Referenced by UanMacRcGw(), ComputeAlpha(), ComputeExpBOverA(), ComputeExpS(), and StartCycle().
|
private |
Size of UanHeaderRcCts.
Definition at line 137 of file uan-mac-rc-gw.h.
Referenced by UanMacRcGw(), ComputeExpBOverA(), and StartCycle().
|
private |
Rate number corresponding to data rate of current cycle.
Definition at line 141 of file uan-mac-rc-gw.h.
Referenced by EndCycle(), and StartCycle().
|
private |
Retry rate number for current cycle.
Definition at line 140 of file uan-mac-rc-gw.h.
Referenced by StartCycle().
|
private |
A packet was destined for and received at this MAC layer.
Start time min propagation delay reservations frames bytes window size CTS rate retry rate
Definition at line 180 of file uan-mac-rc-gw.h.
Referenced by GetTypeId(), and StartCycle().
|
private |
Forwarding up callback.
Definition at line 129 of file uan-mac-rc-gw.h.
Referenced by ReceivePacket(), and SetForwardUpCb().
|
private |
Size of data frames in bytes.
Definition at line 146 of file uan-mac-rc-gw.h.
Referenced by FindOptA(), and GetTypeId().
|
private |
Maximum propagation delay between gateway and non-gateway nodes .
Definition at line 132 of file uan-mac-rc-gw.h.
Referenced by ComputeAlpha(), ComputeExpS(), GetExpPdk(), GetTypeId(), ReceivePacket(), and StartCycle().
|
private |
Maximum number of reservations to accept per cycle.
Definition at line 134 of file uan-mac-rc-gw.h.
Referenced by GetTypeId(), and StartCycle().
|
private |
Smallest allowed RTS retry rate.
Definition at line 148 of file uan-mac-rc-gw.h.
Referenced by GetTypeId(), and StartCycle().
|
private |
Number of non-gateway nodes in this gateway's neighborhood.
Definition at line 142 of file uan-mac-rc-gw.h.
Referenced by ComputeExpS(), GetExpPdk(), GetTypeId(), and StartCycle().
|
private |
Number of rates per Phy layer.
Definition at line 135 of file uan-mac-rc-gw.h.
Referenced by GetTypeId(), and StartCycle().
PHY layer attached to this MAC.
Definition at line 131 of file uan-mac-rc-gw.h.
Referenced by AttachPhy(), Clear(), EndCycle(), SendPacket(), and StartCycle().
|
private |
Propagation delay to each node.
Definition at line 152 of file uan-mac-rc-gw.h.
Referenced by Clear(), GetExpPdk(), and ReceivePacket().
|
private |
Increments available for rate assignment in bps.
Definition at line 145 of file uan-mac-rc-gw.h.
Referenced by GetTypeId(), and StartCycle().
|
private |
Request for each node.
Definition at line 158 of file uan-mac-rc-gw.h.
Referenced by Clear(), ReceivePacket(), and StartCycle().
|
private |
Retry rate increment.
Definition at line 149 of file uan-mac-rc-gw.h.
Referenced by GetTypeId(), and StartCycle().
|
private |
Size of UanHeaderCommon and UanHeaderRcRts.
Definition at line 136 of file uan-mac-rc-gw.h.
Referenced by UanMacRcGw(), ComputeAlpha(), ComputeExpS(), and StartCycle().
|
private |
A packet was destined for and received at this MAC layer.
Definition at line 166 of file uan-mac-rc-gw.h.
Referenced by GetTypeId(), and ReceivePacket().
|
private |
Spacing between frames to account for timing error and processing delay.
Definition at line 133 of file uan-mac-rc-gw.h.
Referenced by ComputeAlpha(), ComputeExpS(), EndCycle(), GetTypeId(), and StartCycle().
|
private |
Queued request times.
Definition at line 160 of file uan-mac-rc-gw.h.
Referenced by Clear(), ReceivePacket(), and StartCycle().
|
private |
Gateway processing state.
Definition at line 102 of file uan-mac-rc-gw.h.
Referenced by CycleStarted(), ReceivePacket(), and StartCycle().
|
private |
Total available channel rate in bps (for a single channel, without splitting reservation channel).
Definition at line 143 of file uan-mac-rc-gw.h.
Referenced by ComputeAlpha(), ComputeExpBOverA(), ComputeExpS(), GetTypeId(), and StartCycle().