ns-3
|
hold a list of per-remote-station state. More...
#include <wifi-remote-station-manager.h>
Public Member Functions | |
virtual void | SetupPhy (Ptr< WifiPhy > phy) |
uint32_t | GetMaxSsrc (void) const |
uint32_t | GetMaxSlrc (void) const |
uint32_t | GetRtsCtsThreshold (void) const |
uint32_t | GetFragmentationThreshold (void) const |
void | SetMaxSsrc (uint32_t maxSsrc) |
void | SetMaxSlrc (uint32_t maxSlrc) |
void | SetRtsCtsThreshold (uint32_t threshold) |
void | SetFragmentationThreshold (uint32_t threshold) |
void | Reset (void) |
void | AddBasicMode (WifiMode mode) |
WifiMode | GetDefaultMode (void) const |
uint32_t | GetNBasicModes (void) const |
WifiMode | GetBasicMode (uint32_t i) const |
WifiMode | GetNonUnicastMode (void) const |
void | Reset (Mac48Address address) |
void | AddSupportedMode (Mac48Address address, WifiMode mode) |
bool | IsBrandNew (Mac48Address address) const |
bool | IsAssociated (Mac48Address address) const |
bool | IsWaitAssocTxOk (Mac48Address address) const |
void | RecordWaitAssocTxOk (Mac48Address address) |
void | RecordGotAssocTxOk (Mac48Address address) |
void | RecordGotAssocTxFailed (Mac48Address address) |
void | RecordDisassociated (Mac48Address address) |
void | PrepareForQueue (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet, uint32_t fullPacketSize) |
WifiMode | GetDataMode (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet, uint32_t fullPacketSize) |
WifiMode | GetRtsMode (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet) |
void | ReportRtsFailed (Mac48Address address, const WifiMacHeader *header) |
void | ReportDataFailed (Mac48Address address, const WifiMacHeader *header) |
void | ReportRtsOk (Mac48Address address, const WifiMacHeader *header, double ctsSnr, WifiMode ctsMode, double rtsSnr) |
void | ReportDataOk (Mac48Address address, const WifiMacHeader *header, double ackSnr, WifiMode ackMode, double dataSnr) |
void | ReportFinalRtsFailed (Mac48Address address, const WifiMacHeader *header) |
void | ReportFinalDataFailed (Mac48Address address, const WifiMacHeader *header) |
void | ReportRxOk (Mac48Address address, const WifiMacHeader *header, double rxSnr, WifiMode txMode) |
bool | NeedRts (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet) |
bool | NeedRtsRetransmission (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet) |
bool | NeedDataRetransmission (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet) |
bool | NeedFragmentation (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet) |
uint32_t | GetFragmentSize (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet, uint32_t fragmentNumber) |
uint32_t | GetFragmentOffset (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet, uint32_t fragmentNumber) |
bool | IsLastFragment (Mac48Address address, const WifiMacHeader *header, Ptr< const Packet > packet, uint32_t fragmentNumber) |
WifiMode | GetCtsMode (Mac48Address address, WifiMode rtsMode) |
WifiMode | GetAckMode (Mac48Address address, WifiMode dataMode) |
WifiRemoteStationInfo | GetInfo (Mac48Address address) |
![]() | |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Dispose (void) |
void | AggregateObject (Ptr< Object > other) |
AggregateIterator | GetAggregateIterator (void) const |
void | Start (void) |
![]() | |
SimpleRefCount (const SimpleRefCount &o) | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
![]() | |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::WifiRemoteStationManager. |
Protected Member Functions | |
virtual void | DoDispose (void) |
WifiMode | GetSupported (const WifiRemoteStation *station, uint32_t i) const |
uint32_t | GetNSupported (const WifiRemoteStation *station) const |
![]() | |
virtual void | NotifyNewAggregate (void) |
virtual void | DoStart (void) |
Object (const Object &o) |
hold a list of per-remote-station state.
void ns3::WifiRemoteStationManager::AddSupportedMode | ( | Mac48Address | address, |
WifiMode | mode | ||
) |
Invoked in a STA or AP to store the set of modes supported by a destination which is also supported locally. The set of supported modes includes the BSSBasicRateSet.
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
Referenced by ns3::AdhocWifiMac::Enqueue(), and Reset().
|
protectedvirtual |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden 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.
WifiMode ns3::WifiRemoteStationManager::GetAckMode | ( | Mac48Address | address, |
WifiMode | dataMode | ||
) |
address | |
dataMode | the transmission mode used to send an ACK we just received |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
WifiMode ns3::WifiRemoteStationManager::GetCtsMode | ( | Mac48Address | address, |
WifiMode | rtsMode | ||
) |
address | remote address |
rtsMode | the transmission mode used to send an RTS we just received |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
WifiMode ns3::WifiRemoteStationManager::GetDataMode | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet, | ||
uint32_t | fullPacketSize | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
fullPacketSize | the size of the packet after its 802.11 MAC header has been added. |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
uint32_t ns3::WifiRemoteStationManager::GetFragmentOffset | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet, | ||
uint32_t | fragmentNumber | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
fragmentNumber | the fragment index of the next fragment to send (starts at zero). |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
uint32_t ns3::WifiRemoteStationManager::GetFragmentSize | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet, | ||
uint32_t | fragmentNumber | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
fragmentNumber | the fragment index of the next fragment to send (starts at zero). |
References ns3::Packet::GetSize(), ns3::Mac48Address::IsGroup(), and NS_ASSERT.
WifiMode ns3::WifiRemoteStationManager::GetRtsMode | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
|
static |
This method returns the TypeId associated to ns3::WifiRemoteStationManager.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
TraceSources defined for this type:
Reimplemented from ns3::Object.
Reimplemented in ns3::MinstrelWifiManager, ns3::IdealWifiManager, ns3::ArfWifiManager, ns3::OnoeWifiManager, ns3::AmrrWifiManager, ns3::RraaWifiManager, ns3::AarfcdWifiManager, ns3::CaraWifiManager, ns3::AarfWifiManager, and ns3::ConstantRateWifiManager.
References ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().
bool ns3::WifiRemoteStationManager::IsLastFragment | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet, | ||
uint32_t | fragmentNumber | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
fragmentNumber | the fragment index of the next fragment to send (starts at zero). |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
bool ns3::WifiRemoteStationManager::NeedDataRetransmission | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
bool ns3::WifiRemoteStationManager::NeedFragmentation | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
References ns3::Packet::GetSize(), and ns3::Mac48Address::IsGroup().
bool ns3::WifiRemoteStationManager::NeedRts | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
References ns3::Packet::GetSize(), and ns3::Mac48Address::IsGroup().
bool ns3::WifiRemoteStationManager::NeedRtsRetransmission | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet | ||
) |
address | remote address |
header | MAC header |
packet | the packet to send |
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::PrepareForQueue | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
Ptr< const Packet > | packet, | ||
uint32_t | fullPacketSize | ||
) |
address | remote address |
header | MAC header |
packet | the packet to queue |
fullPacketSize | the size of the packet after its 802.11 MAC header has been added. |
This method is typically invoked just before queuing a packet for transmission. It is a no-op unless the IsLowLatency attribute of the attached ns3::WifiRemoteStationManager is set to false, in which case, the tx parameters of the packet are calculated and stored in the packet as a tag. These tx parameters are later retrieved from GetDadaMode and GetRtsMode.
References ns3::Packet::AddPacketTag(), and ns3::Mac48Address::IsGroup().
Referenced by ns3::DcaTxop::Queue().
void ns3::WifiRemoteStationManager::ReportDataFailed | ( | Mac48Address | address, |
const WifiMacHeader * | header | ||
) |
Should be invoked whenever the AckTimeout associated to a transmission attempt expires.
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::ReportDataOk | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
double | ackSnr, | ||
WifiMode | ackMode, | ||
double | dataSnr | ||
) |
Should be invoked whenever we receive the Ack associated to a data packet we just sent.
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
Referenced by ns3::MacLow::ReceiveOk().
void ns3::WifiRemoteStationManager::ReportFinalDataFailed | ( | Mac48Address | address, |
const WifiMacHeader * | header | ||
) |
Should be invoked after calling ReportDataFailed if NeedDataRetransmission returns false
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::ReportFinalRtsFailed | ( | Mac48Address | address, |
const WifiMacHeader * | header | ||
) |
Should be invoked after calling ReportRtsFailed if NeedRtsRetransmission returns false
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::ReportRtsFailed | ( | Mac48Address | address, |
const WifiMacHeader * | header | ||
) |
Should be invoked whenever the RtsTimeout associated to a transmission attempt expires.
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
void ns3::WifiRemoteStationManager::ReportRtsOk | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
double | ctsSnr, | ||
WifiMode | ctsMode, | ||
double | rtsSnr | ||
) |
Should be invoked whenever we receive the Cts associated to an RTS we just sent.
References ns3::Mac48Address::IsGroup(), and NS_ASSERT.
Referenced by ns3::MacLow::ReceiveOk().
void ns3::WifiRemoteStationManager::ReportRxOk | ( | Mac48Address | address, |
const WifiMacHeader * | header, | ||
double | rxSnr, | ||
WifiMode | txMode | ||
) |
address | remote address |
header | MAC header |
rxSnr | the snr of the packet received |
txMode | the transmission mode used for the packet received. |
Should be invoked whenever a packet is successfully received.
References ns3::Mac48Address::IsGroup().
Referenced by ns3::MacLow::ReceiveOk().
void ns3::WifiRemoteStationManager::Reset | ( | Mac48Address | address | ) |
Invoked in an AP upon disassociation of a specific STA.
References AddSupportedMode(), ns3::Mac48Address::IsGroup(), and NS_ASSERT.