STAs communicate with each directly outside the context of a BSS. More...
#include "ocb-wifi-mac.h"
Public Member Functions | |
OcbWifiMac () | |
~OcbWifiMac () override | |
void | AddReceiveVscCallback (OrganizationIdentifier oi, VscCallback cb) |
void | CancleTx (enum AcIndex ac) |
bool | CanForwardPacketsTo (Mac48Address to) const override |
Return true if packets can be forwarded to the given destination, false otherwise. More... | |
void | ConfigureEdca (uint32_t cwmin, uint32_t cwmax, uint32_t aifsn, enum AcIndex ac) |
void | ConfigureStandard (enum WifiStandard standard) override |
void | EnableForWave (Ptr< WaveNetDevice > device) |
void | Enqueue (Ptr< Packet > packet, Mac48Address to) override |
virtual Mac48Address | GetBssid (uint8_t) const |
This method shall not be used in WAVE environment and here it will overloaded to log warn message. More... | |
virtual Ssid | GetSsid () const |
void | MakeVirtualBusy (Time duration) |
void | RemoveReceiveVscCallback (OrganizationIdentifier oi) |
void | Reset () |
To support MAC extension for multiple channel operation, Reset current MAC entity and flush its internal queues. More... | |
void | Resume () |
To support MAC extension for multiple channel operation, Resume the activity of suspended MAC entity. More... | |
void | SendVsc (Ptr< Packet > vsc, Mac48Address peer, OrganizationIdentifier oi) |
virtual void | SetBssid (Mac48Address bssid) |
virtual void | SetLinkDownCallback (Callback< void > linkDown) |
void | SetLinkUpCallback (Callback< void > linkUp) override |
SetLinkUpCallback and SetLinkDownCallback will be overloaded In OCB mode, stations can send packets directly whenever they want so the link is always up and never down even during channel switch. More... | |
virtual void | SetSsid (Ssid ssid) |
void | SetWifiPhy (Ptr< WifiPhy > phy) |
Set the PHY. More... | |
void | Suspend () |
To support MAC extension for multiple channel operation, Suspend the activity in current MAC entity. More... | |
![]() | |
WifiMac () | |
WifiMac (const WifiMac &)=delete | |
~WifiMac () override | |
virtual bool | CanForwardPacketsTo (Mac48Address to) const =0 |
Return true if packets can be forwarded to the given destination, false otherwise. More... | |
virtual void | ConfigureStandard (WifiStandard standard) |
virtual void | Enqueue (Ptr< Packet > packet, Mac48Address to)=0 |
virtual void | Enqueue (Ptr< Packet > packet, Mac48Address to, Mac48Address from) |
Mac48Address | GetAddress () const |
Mac48Address | GetBssid (uint8_t linkId) const |
Ptr< ChannelAccessManager > | GetChannelAccessManager (uint8_t linkId=SINGLE_LINK_OP_ID) const |
Get the Channel Access Manager associated with the given link. More... | |
Ptr< WifiNetDevice > | GetDevice () const |
Return the device this PHY is associated with. More... | |
bool | GetDsssSupported (uint8_t linkId) const |
Return whether the device supports DSSS on the given link. More... | |
EhtCapabilities | GetEhtCapabilities (uint8_t linkId) const |
Return the EHT capabilities of the device for the given link. More... | |
Ptr< EhtConfiguration > | GetEhtConfiguration () const |
bool | GetEhtSupported () const |
Return whether the device supports EHT. More... | |
bool | GetErpSupported (uint8_t linkId) const |
Return whether the device supports ERP on the given link. More... | |
ExtendedCapabilities | GetExtendedCapabilities () const |
Return the extended capabilities of the device. More... | |
Ptr< FrameExchangeManager > | GetFrameExchangeManager (uint8_t linkId=SINGLE_LINK_OP_ID) const |
Get the Frame Exchange Manager associated with the given link. More... | |
HeCapabilities | GetHeCapabilities (uint8_t linkId) const |
Return the HE capabilities of the device for the given link. More... | |
Ptr< HeConfiguration > | GetHeConfiguration () const |
bool | GetHeSupported () const |
Return whether the device supports HE. More... | |
HtCapabilities | GetHtCapabilities (uint8_t linkId) const |
Return the HT capabilities of the device for the given link. More... | |
Ptr< HtConfiguration > | GetHtConfiguration () const |
bool | GetHtSupported () const |
Return whether the device supports HT. More... | |
virtual std::optional< uint8_t > | GetLinkIdByAddress (const Mac48Address &address) const |
Get the ID of the link having the given MAC address, if any. More... | |
Ptr< WifiMacQueueScheduler > | GetMacQueueScheduler () const |
Get the wifi MAC queue scheduler. More... | |
uint32_t | GetMaxAmpduSize (AcIndex ac) const |
Return the maximum A-MPDU size of the given Access Category. More... | |
uint16_t | GetMaxAmsduSize (AcIndex ac) const |
Return the maximum A-MSDU size of the given Access Category. More... | |
uint8_t | GetNLinks () const |
Get the number of links (can be greater than 1 for 11be devices only). More... | |
bool | GetQosSupported () const |
Return whether the device supports QoS. More... | |
Ptr< QosTxop > | GetQosTxop (AcIndex ac) const |
Accessor for a specified EDCA object. More... | |
Ptr< QosTxop > | GetQosTxop (uint8_t tid) const |
Accessor for a specified EDCA object. More... | |
Ssid | GetSsid () const |
Ptr< Txop > | GetTxop () const |
Accessor for the Txop object. More... | |
virtual Ptr< WifiMacQueue > | GetTxopQueue (AcIndex ac) const |
Get the wifi MAC queue of the (Qos)Txop associated with the given AC, if such (Qos)Txop is installed, or a null pointer, otherwise. More... | |
TypeOfStation | GetTypeOfStation () const |
Return the type of station. More... | |
VhtCapabilities | GetVhtCapabilities (uint8_t linkId) const |
Return the VHT capabilities of the device for the given link. More... | |
Ptr< VhtConfiguration > | GetVhtConfiguration () const |
bool | GetVhtSupported (uint8_t linkId) const |
Return whether the device supports VHT on the given link. More... | |
Ptr< WifiPhy > | GetWifiPhy (uint8_t linkId=SINGLE_LINK_OP_ID) const |
Ptr< WifiRemoteStationManager > | GetWifiRemoteStationManager (uint8_t linkId=0) const |
virtual void | NotifyChannelSwitching (uint8_t linkId) |
Notify that channel on the given link has been switched. More... | |
void | NotifyPromiscRx (Ptr< const Packet > packet) |
void | NotifyRx (Ptr< const Packet > packet) |
void | NotifyRxDrop (Ptr< const Packet > packet) |
void | NotifyTx (Ptr< const Packet > packet) |
void | NotifyTxDrop (Ptr< const Packet > packet) |
WifiMac & | operator= (const WifiMac &)=delete |
void | ResetWifiPhys () |
Remove currently attached WifiPhy objects from this MAC. More... | |
virtual void | SetAddress (Mac48Address address) |
void | SetBssid (Mac48Address bssid, uint8_t linkId) |
void | SetCtsToSelfSupported (bool enable) |
Enable or disable CTS-to-self feature. More... | |
void | SetDevice (const Ptr< WifiNetDevice > device) |
Sets the device this PHY is associated with. More... | |
void | SetForwardUpCallback (ForwardUpCallback upCallback) |
void | SetLinkDownCallback (Callback< void > linkDown) |
virtual void | SetLinkUpCallback (Callback< void > linkUp) |
virtual void | SetMacQueueScheduler (Ptr< WifiMacQueueScheduler > scheduler) |
Set the wifi MAC queue scheduler. More... | |
void | SetPromisc () |
Sets the interface in promiscuous mode. More... | |
void | SetSsid (Ssid ssid) |
void | SetTypeOfStation (TypeOfStation type) |
This method is invoked by a subclass to specify what type of station it is implementing. More... | |
virtual void | SetWifiPhys (const std::vector< Ptr< WifiPhy > > &phys) |
void | SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > stationManager) |
void | SetWifiRemoteStationManagers (const std::vector< Ptr< WifiRemoteStationManager > > &stationManagers) |
virtual bool | SupportsSendFrom () const |
![]() | |
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... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
![]() | |
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 erros. More... | |
virtual TypeId | GetInstanceTypeId () const =0 |
Get the most derived TypeId for this Object. 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 () |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId () |
Register this type. More... | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Protected Member Functions | |
void | DoDispose () override |
Destructor implementation. More... | |
![]() | |
virtual void | ConfigureContentionWindow (uint32_t cwMin, uint32_t cwMax) |
virtual void | DeaggregateAmsduAndForward (Ptr< const WifiMpdu > mpdu) |
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack. More... | |
void | DoDispose () override |
Destructor implementation. More... | |
void | DoInitialize () override |
Initialize() implementation. More... | |
void | ForwardUp (Ptr< const Packet > packet, Mac48Address from, Mac48Address to) |
Forward the packet up to the device. More... | |
Ptr< QosTxop > | GetBEQueue () const |
Accessor for the AC_BE channel access function. More... | |
Ptr< QosTxop > | GetBKQueue () const |
Accessor for the AC_BK channel access function. More... | |
LinkEntity & | GetLink (uint8_t linkId) const |
Get a reference to the link associated with the given ID. More... | |
bool | GetShortSlotTimeSupported () const |
Ptr< QosTxop > | GetVIQueue () const |
Accessor for the AC_VI channel access function. More... | |
Ptr< QosTxop > | GetVOQueue () const |
Accessor for the AC_VO channel access function. More... | |
virtual void | Receive (Ptr< const WifiMpdu > mpdu, uint8_t linkId) |
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received on the given link. More... | |
void | SetQosSupported (bool enable) |
Enable or disable QoS support for the device. More... | |
void | SetShortSlotTimeSupported (bool enable) |
Enable or disable short slot time feature. More... | |
![]() | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoDispose () |
Destructor implementation. More... | |
virtual void | DoInitialize () |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
![]() | |
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 Member Functions | |
std::optional< uint8_t > | GetLinkIdByAddress (const Mac48Address &address) const override |
Get the ID of the link having the given MAC address, if any. More... | |
void | Receive (Ptr< const WifiMpdu > mpdu, uint8_t linkId) override |
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received on the given link. More... | |
Private Attributes | |
VendorSpecificContentManager | m_vscManager |
VSC manager. More... | |
Additional Inherited Members | |
![]() | |
typedef Callback< void, Ptr< const Packet >, Mac48Address, Mac48Address > | ForwardUpCallback |
This type defines the callback of a higher layer that a WifiMac(-derived) object invokes to pass a packet up the stack. More... | |
![]() | |
Callback< void > | m_linkDown |
Callback when a link is down. More... | |
Callback< void > | m_linkUp |
Callback when a link is up. More... | |
Ptr< MacRxMiddle > | m_rxMiddle |
RX middle (defragmentation etc.) More... | |
Ptr< WifiMacQueueScheduler > | m_scheduler |
wifi MAC queue scheduler More... | |
Ptr< MacTxMiddle > | m_txMiddle |
TX middle (aggregation etc.) More... | |
Ptr< Txop > | m_txop |
TXOP used for transmission of frames to non-QoS peers. More... | |
![]() | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
STAs communicate with each directly outside the context of a BSS.
In OCB mac mode,synchronization, association, dis-association and authentication of normal wifi are not used for wireless access in vehicular environments.
Although Timing Advertisement frame is a specific management frame defined in 802.11p. It is mainly used by IEEE Std 1609.4 for channel switch synchronization. However in simulation nodes are supposed to have GPS synchronization ability, so we will not implement this feature.
ns3::OcbWifiMac is accessible through the following paths with Config::Set and Config::Connect:
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 520 bytes (on a 64-bit architecture).
Definition at line 50 of file ocb-wifi-mac.h.
ns3::OcbWifiMac::OcbWifiMac | ( | ) |
Definition at line 57 of file ocb-wifi-mac.cc.
References NS_LOG_FUNCTION, ns3::OCB, and ns3::WifiMac::SetTypeOfStation().
|
override |
Definition at line 64 of file ocb-wifi-mac.cc.
References NS_LOG_FUNCTION.
void ns3::OcbWifiMac::AddReceiveVscCallback | ( | OrganizationIdentifier | oi, |
VscCallback | cb | ||
) |
oi | Organization Identifier |
cb | callback to invoke whenever a vender specific action frame has been received and must be forwarded to the higher layers. every node shall register first if it wants to receive specific vendor specific content. |
Definition at line 97 of file ocb-wifi-mac.cc.
References m_vscManager, NS_LOG_FUNCTION, and ns3::VendorSpecificContentManager::RegisterVscCallback().
void ns3::OcbWifiMac::CancleTx | ( | enum AcIndex | ac | ) |
ac | the specified access category |
To support MAC extension for multiple channel operation, Cancel transmit operation for internal queue associated with a specified Access Category.
Definition at line 491 of file ocb-wifi-mac.cc.
References ns3::WifiMac::GetQosTxop(), ns3::Txop::GetWifiMacQueue(), NS_ASSERT, and NS_LOG_FUNCTION.
|
overridevirtual |
Return true if packets can be forwarded to the given destination, false otherwise.
to | the address to which the packet should be sent |
Implements ns3::WifiMac.
Definition at line 158 of file ocb-wifi-mac.cc.
void ns3::OcbWifiMac::ConfigureEdca | ( | uint32_t | cwmin, |
uint32_t | cwmax, | ||
uint32_t | aifsn, | ||
enum AcIndex | ac | ||
) |
cwmin | the min contention window |
cwmax | the max contention window |
aifsn | the arbitration inter-frame space |
ac | the access category index |
configure EDCA queue parameters
Definition at line 345 of file ocb-wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BE_NQOS, ns3::AC_BEACON, ns3::AC_BK, ns3::AC_UNDEF, ns3::AC_VI, ns3::AC_VO, ns3::ChannelAccessManager::Add(), ns3::WifiMac::LinkEntity::channelAccessManager, ns3::WifiMac::GetBEQueue(), ns3::WifiMac::GetBKQueue(), ns3::WifiMac::GetLink(), ns3::WifiMac::GetTxop(), ns3::WifiMac::GetVIQueue(), ns3::WifiMac::GetVOQueue(), NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::Txop::SetAifsn(), ns3::Txop::SetMaxCw(), ns3::Txop::SetMinCw(), ns3::Txop::SetWifiMac(), and ns3::SINGLE_LINK_OP_ID.
Referenced by ConfigureStandard().
|
overridevirtual |
standard | the wifi standard to be configured |
This method completes the configuration process for a requested PHY standard by creating the Frame Exchange Manager and the Channel Access Manager and configuring the PHY dependent parameters. This method can only be called after a configured PHY has been set.
Reimplemented from ns3::WifiMac.
Definition at line 416 of file ocb-wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BE_NQOS, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, ConfigureEdca(), ns3::WifiMac::GetAddress(), ns3::WifiMac::GetLink(), ns3::WifiMac::GetNLinks(), ns3::WifiMac::GetQosSupported(), ns3::WifiMac::GetWifiPhy(), ns3::WifiMac::m_rxMiddle, ns3::WifiMac::m_txMiddle, NS_ASSERT, NS_LOG_FUNCTION, third::phy, ns3::WifiMac::SetWifiPhys(), ns3::SINGLE_LINK_OP_ID, and ns3::WIFI_STANDARD_80211p.
|
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 525 of file ocb-wifi-mac.cc.
References ns3::WifiMac::DoDispose(), and NS_LOG_FUNCTION.
void ns3::OcbWifiMac::EnableForWave | ( | Ptr< WaveNetDevice > | device | ) |
device | make current MAC entity associated with WaveNetDevice |
To support MAC extension for multiple channel operation, WaveMacLow object will be used to replace original MacLow object.
Definition at line 510 of file ocb-wifi-mac.cc.
References ns3::WifiMac::GetLink(), NS_LOG_FUNCTION, and ns3::SINGLE_LINK_OP_ID.
Referenced by ns3::WaveHelper::Install().
|
overridevirtual |
packet | the packet to send. |
to | the address to which the packet should be sent. |
The packet should be enqueued in a tx queue, and should be dequeued as soon as the channel access function determines that access is granted to this MAC.
Implements ns3::WifiMac.
Definition at line 164 of file ocb-wifi-mac.cc.
References ns3::WifiRemoteStationManager::AddAllSupportedMcs(), ns3::WifiRemoteStationManager::AddAllSupportedModes(), ns3::WifiRemoteStationManager::AddStationHtCapabilities(), ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ns3::WifiMac::GetAddress(), ns3::WifiMac::GetHtCapabilities(), ns3::WifiMac::GetHtSupported(), ns3::WifiMac::GetQosSupported(), ns3::WifiMac::GetQosTxop(), ns3::WifiMac::GetTxop(), ns3::WifiMac::GetVhtCapabilities(), ns3::WifiMac::GetVhtSupported(), ns3::WifiMac::GetWifiRemoteStationManager(), ns3::WifiMacHeader::NORMAL_ACK, NS_ASSERT, NS_LOG_FUNCTION, ns3::QosUtilsGetTidForPacket(), ns3::Txop::Queue(), ns3::WifiRemoteStationManager::RecordDisassociated(), ns3::WifiMacHeader::SetAddr1(), ns3::WifiMacHeader::SetAddr2(), ns3::WifiMacHeader::SetAddr3(), ns3::WifiMacHeader::SetDsNotFrom(), ns3::WifiMacHeader::SetDsNotTo(), ns3::WifiMacHeader::SetNoOrder(), ns3::WifiMacHeader::SetQosAckPolicy(), ns3::WifiMacHeader::SetQosNoAmsdu(), ns3::WifiMacHeader::SetQosNoEosp(), ns3::WifiMacHeader::SetQosTid(), ns3::WifiMacHeader::SetQosTxopLimit(), ns3::WifiMacHeader::SetType(), ns3::SINGLE_LINK_OP_ID, ns3::WIFI_MAC_DATA, ns3::WIFI_MAC_QOSDATA, and ns3::WILDCARD_BSSID.
|
virtual |
This method shall not be used in WAVE environment and here it will overloaded to log warn message.
Definition at line 131 of file ocb-wifi-mac.cc.
References NS_LOG_WARN, and ns3::WILDCARD_BSSID.
|
overrideprivatevirtual |
Get the ID of the link having the given MAC address, if any.
address | the given MAC address |
Reimplemented from ns3::WifiMac.
Definition at line 519 of file ocb-wifi-mac.cc.
|
virtual |
This method shall not be used in WAVE environment and here it will overloaded to log warn message
Definition at line 117 of file ocb-wifi-mac.cc.
References ns3::WifiMac::GetSsid(), and NS_LOG_WARN.
|
static |
Get the type ID.
Definition at line 48 of file ocb-wifi-mac.cc.
References ns3::TypeId::SetParent().
void ns3::OcbWifiMac::MakeVirtualBusy | ( | Time | duration | ) |
duration | the virtual busy time for MAC entity |
To support MAC extension for multiple channel operation, Notify MAC entity busy for some time to prevent transmission
Definition at line 483 of file ocb-wifi-mac.cc.
References ns3::WifiMac::LinkEntity::channelAccessManager, ns3::WifiMac::GetLink(), ns3::ChannelAccessManager::NotifyCcaBusyStartNow(), NS_LOG_FUNCTION, ns3::SINGLE_LINK_OP_ID, and ns3::WIFI_CHANLIST_PRIMARY.
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received on the given link.
The implementation is intended to capture logic that is going to be common to all (or most) derived classes. Specifically, handling of Block Ack management frames is dealt with here.
This method will need, however, to be overridden by derived classes so that they can perform their data handling before invoking the base version.
The given link may be undefined in some cases (e.g., in case of QoS Data frames received in the context of a Block Ack agreement – because the BlockAckManager does not have to record the link each buffered MPDU has been received on); in such a cases, the value of linkId should be WIFI_LINKID_UNDEFINED.
mpdu | the MPDU that has been received. |
linkId | the ID of the given link |
Reimplemented from ns3::WifiMac.
Definition at line 251 of file ocb-wifi-mac.cc.
References ns3::WifiRemoteStationManager::AddAllSupportedMcs(), ns3::WifiRemoteStationManager::AddAllSupportedModes(), ns3::WifiRemoteStationManager::AddStationHtCapabilities(), ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ns3::CATEGORY_OF_VSA, ns3::WifiMac::DeaggregateAmsduAndForward(), ns3::VendorSpecificContentManager::FindVscCallback(), ns3::WifiMac::ForwardUp(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetAddr2(), ns3::WifiMacHeader::GetAddr3(), ns3::WifiMac::GetAddress(), ns3::VendorSpecificActionHeader::GetCategory(), ns3::WifiMac::GetHtCapabilities(), ns3::WifiMac::GetHtSupported(), ns3::VendorSpecificActionHeader::GetOrganizationIdentifier(), ns3::WifiMac::GetVhtCapabilities(), ns3::WifiMac::GetVhtSupported(), ns3::WifiMac::GetWifiRemoteStationManager(), ns3::WifiMacHeader::IsAction(), ns3::WifiMacHeader::IsCtl(), ns3::WifiMacHeader::IsData(), ns3::Mac48Address::IsGroup(), ns3::WifiMacHeader::IsMgt(), ns3::Callback< R, UArgs >::IsNull(), ns3::WifiMacHeader::IsQosAmsdu(), ns3::WifiMacHeader::IsQosData(), m_vscManager, ns3::WifiMac::NotifyRxDrop(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Packet::PeekHeader(), ns3::WifiMac::Receive(), ns3::WifiRemoteStationManager::RecordDisassociated(), ns3::Packet::RemoveHeader(), ns3::SINGLE_LINK_OP_ID, and ns3::WILDCARD_BSSID.
void ns3::OcbWifiMac::RemoveReceiveVscCallback | ( | OrganizationIdentifier | oi | ) |
oi | Organization Identifier |
Definition at line 104 of file ocb-wifi-mac.cc.
References ns3::VendorSpecificContentManager::DeregisterVscCallback(), m_vscManager, and NS_LOG_FUNCTION.
void ns3::OcbWifiMac::Reset | ( | ) |
To support MAC extension for multiple channel operation, Reset current MAC entity and flush its internal queues.
Definition at line 501 of file ocb-wifi-mac.cc.
References ns3::WifiMac::LinkEntity::channelAccessManager, ns3::WifiMac::LinkEntity::feManager, ns3::WifiMac::GetLink(), ns3::ChannelAccessManager::NotifySwitchingStartNow(), NS_LOG_FUNCTION, and ns3::SINGLE_LINK_OP_ID.
void ns3::OcbWifiMac::Resume | ( | ) |
To support MAC extension for multiple channel operation, Resume the activity of suspended MAC entity.
Definition at line 475 of file ocb-wifi-mac.cc.
References ns3::WifiMac::LinkEntity::channelAccessManager, ns3::WifiMac::GetLink(), ns3::ChannelAccessManager::NotifyWakeupNow(), NS_LOG_FUNCTION, and ns3::SINGLE_LINK_OP_ID.
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
void ns3::OcbWifiMac::SendVsc | ( | Ptr< Packet > | vsc, |
Mac48Address | peer, | ||
OrganizationIdentifier | oi | ||
) |
vsc | management packet to send. |
peer | the address to which the packet should be sent. |
oi | Organization Identifier field see 7.3.1.31 Organization Identifier field and 10.3.29 Vendor-specific action |
management information can be transmitted over vender specific action frame. This will be mainly called by IEEE Std 1609.4 to send WSA from IEEE Std 1609.3
Definition at line 70 of file ocb-wifi-mac.cc.
References ns3::Packet::AddHeader(), ns3::WifiMac::GetAddress(), ns3::WifiMac::GetQosSupported(), ns3::WifiMac::GetQosTxop(), ns3::WifiMac::GetTxop(), NS_LOG_FUNCTION, ns3::QosUtilsGetTidForPacket(), ns3::Txop::Queue(), ns3::WifiMacHeader::SetAddr1(), ns3::WifiMacHeader::SetAddr2(), ns3::WifiMacHeader::SetAddr3(), ns3::WifiMacHeader::SetDsNotFrom(), ns3::WifiMacHeader::SetDsNotTo(), ns3::VendorSpecificActionHeader::SetOrganizationIdentifier(), ns3::WifiMacHeader::SetType(), ns3::WIFI_MAC_MGT_ACTION, and ns3::WILDCARD_BSSID.
|
virtual |
bssid | the BSSID of the network that this device belongs to. This method shall not be used in WAVE environment and here it will overloaded to log warn message |
Definition at line 125 of file ocb-wifi-mac.cc.
References NS_LOG_WARN.
|
virtual |
linkDown | the callback to invoke when the link becomes down. |
Definition at line 150 of file ocb-wifi-mac.cc.
References NS_LOG_FUNCTION, NS_LOG_WARN, and ns3::WifiMac::SetLinkDownCallback().
|
overridevirtual |
SetLinkUpCallback and SetLinkDownCallback will be overloaded In OCB mode, stations can send packets directly whenever they want so the link is always up and never down even during channel switch.
linkUp | the callback to invoke when the link becomes up. |
Reimplemented from ns3::WifiMac.
Definition at line 138 of file ocb-wifi-mac.cc.
References NS_LOG_FUNCTION, and ns3::WifiMac::SetLinkUpCallback().
|
virtual |
ssid | the current ssid of this MAC layer. |
This method shall not be used in WAVE environment and here it will overloaded to log warn message
Definition at line 111 of file ocb-wifi-mac.cc.
References NS_LOG_WARN.
Set the PHY.
phy | the PHY object |
Definition at line 398 of file ocb-wifi-mac.cc.
References ns3::WifiMac::GetLink(), NS_ABORT_MSG_IF, NS_LOG_FUNCTION, third::phy, ns3::WifiMac::SetWifiPhys(), and ns3::SINGLE_LINK_OP_ID.
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
void ns3::OcbWifiMac::Suspend | ( | ) |
To support MAC extension for multiple channel operation, Suspend the activity in current MAC entity.
Definition at line 467 of file ocb-wifi-mac.cc.
References ns3::WifiMac::LinkEntity::channelAccessManager, ns3::WifiMac::LinkEntity::feManager, ns3::WifiMac::GetLink(), ns3::ChannelAccessManager::NotifySleepNow(), NS_LOG_FUNCTION, and ns3::SINGLE_LINK_OP_ID.
Referenced by ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
private |
VSC manager.
Definition at line 195 of file ocb-wifi-mac.h.
Referenced by AddReceiveVscCallback(), Receive(), and RemoveReceiveVscCallback().