STAs communicate with each directly outside the context of a BSSIn OCB mac mode,synchronization, association, dis-association and authentication of normal wifi are not used for wireless access in vehicular environments. More...
#include "ocb-wifi-mac.h"
Public Member Functions | |
OcbWifiMac (void) | |
virtual | ~OcbWifiMac (void) |
void | AddReceiveVscCallback (OrganizationIdentifier oi, VscCallback cb) |
void | CancleTx (enum AcIndex ac) |
void | ConfigureEdca (uint32_t cwmin, uint32_t cwmax, uint32_t aifsn, enum AcIndex ac) |
void | EnableForWave (Ptr< WaveNetDevice > device) |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to) |
virtual Mac48Address | GetBssid (void) const |
This method shall not be used in WAVE environment and here it will overloaded to log warn message. More... | |
virtual Ssid | GetSsid (void) const |
void | MakeVirtualBusy (Time duration) |
void | RemoveReceiveVscCallback (OrganizationIdentifier oi) |
void | Reset (void) |
To support MAC extension for multiple channel operation, Reset current MAC entity and flush its internal queues. More... | |
void | Resume (void) |
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) |
virtual void | SetLinkUpCallback (Callback< void > linkUp) |
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 | Suspend (void) |
To support MAC extension for multiple channel operation, Suspend the activity in current MAC entity. More... | |
Public Member Functions inherited from ns3::RegularWifiMac | |
RegularWifiMac () | |
virtual | ~RegularWifiMac () |
virtual void | Enqueue (Ptr< const Packet > packet, Mac48Address to, Mac48Address from) |
Time | GetAckTimeout (void) const |
Mac48Address | GetAddress (void) const |
Time | GetBasicBlockAckTimeout (void) const |
Mac48Address | GetBssid (void) const |
Time | GetCompressedBlockAckTimeout (void) const |
Time | GetCtsTimeout (void) const |
Time | GetEifsNoDifs (void) const |
ExtendedCapabilities | GetExtendedCapabilities (void) const |
Return the extended capabilities of the device. More... | |
HeCapabilities | GetHeCapabilities (void) const |
Return the HE capabilities of the device. More... | |
HtCapabilities | GetHtCapabilities (void) const |
Return the HT capabilities of the device. More... | |
Time | GetPifs (void) const |
Time | GetRifs (void) const |
bool | GetRifsSupported (void) const |
bool | GetShortSlotTimeSupported (void) const |
Time | GetSifs (void) const |
Time | GetSlot (void) const |
Ssid | GetSsid (void) const |
VhtCapabilities | GetVhtCapabilities (void) const |
Return the VHT capabilities of the device. More... | |
Ptr< WifiPhy > | GetWifiPhy (void) const |
Ptr< WifiRemoteStationManager > | GetWifiRemoteStationManager (void) const |
void | ResetWifiPhy (void) |
removes attached WifiPhy device from this MAC. More... | |
void | SetAckTimeout (Time ackTimeout) |
void | SetAddress (Mac48Address address) |
void | SetBasicBlockAckTimeout (Time blockAckTimeout) |
void | SetBssid (Mac48Address bssid) |
void | SetCompressedBlockAckTimeout (Time blockAckTimeout) |
void | SetCtsTimeout (Time ctsTimeout) |
void | SetCtsToSelfSupported (bool enable) |
Enable or disable CTS-to-self feature. More... | |
void | SetEifsNoDifs (Time eifsNoDifs) |
void | SetForwardUpCallback (ForwardUpCallback upCallback) |
void | SetLinkDownCallback (Callback< void > linkDown) |
void | SetLinkUpCallback (Callback< void > linkUp) |
void | SetPifs (Time pifs) |
void | SetPromisc (void) |
Sets the interface in promiscuous mode. More... | |
void | SetRifs (Time rifs) |
void | SetRifsSupported (bool enable) |
Enable or disable RIFS feature. More... | |
void | SetShortSlotTimeSupported (bool enable) |
Enable or disable short slot time feature. More... | |
void | SetSifs (Time sifs) |
void | SetSlot (Time slotTime) |
void | SetSsid (Ssid ssid) |
virtual void | SetWifiPhy (const Ptr< WifiPhy > phy) |
virtual void | SetWifiRemoteStationManager (const Ptr< WifiRemoteStationManager > stationManager) |
virtual bool | SupportsSendFrom (void) const |
Public Member Functions inherited from ns3::WifiMac | |
void | ConfigureStandard (WifiPhyStandard standard) |
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) |
virtual void | SetForwardUpCallback (Callback< void, Ptr< Packet >, Mac48Address, Mac48Address > upCallback)=0 |
void | SetMaxPropagationDelay (Time delay) |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) 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) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) 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 erros. 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 (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::RegularWifiMac | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::WifiMac | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Protected Member Functions | |
virtual void | FinishConfigureStandard (enum WifiPhyStandard standard) |
Protected Member Functions inherited from ns3::RegularWifiMac | |
void | ConfigureContentionWindow (uint32_t cwMin, uint32_t cwMax) |
virtual void | DeaggregateAmsduAndForward (Ptr< Packet > aggregatedPacket, const WifiMacHeader *hdr) |
This method can be called to de-aggregate an A-MSDU and forward the constituent packets up the stack. More... | |
virtual void | DoDispose () |
Destructor implementation. More... | |
virtual void | DoInitialize () |
Initialize() implementation. More... | |
void | FinishConfigureStandard (WifiPhyStandard standard) |
void | ForwardUp (Ptr< Packet > packet, Mac48Address from, Mac48Address to) |
Forward the packet up to the device. More... | |
Ptr< QosTxop > | GetBEQueue (void) const |
Accessor for the AC_BE channel access function. More... | |
Ptr< QosTxop > | GetBKQueue (void) const |
Accessor for the AC_BK channel access function. More... | |
bool | GetDsssSupported () const |
Return whether the device supports DSSS. More... | |
bool | GetErpSupported () const |
Return whether the device supports ERP. More... | |
bool | GetHeSupported () const |
Return whether the device supports HE. More... | |
bool | GetHtSupported () const |
Return whether the device supports HT. More... | |
bool | GetQosSupported () const |
Return whether the device supports QoS. More... | |
Ptr< Txop > | GetTxop (void) const |
Accessor for the DCF object. More... | |
bool | GetVhtSupported () const |
Return whether the device supports VHT. More... | |
Ptr< QosTxop > | GetVIQueue (void) const |
Accessor for the AC_VI channel access function. More... | |
Ptr< QosTxop > | GetVOQueue (void) const |
Accessor for the AC_VO channel access function. More... | |
void | SendAddBaResponse (const MgtAddBaRequestHeader *reqHdr, Mac48Address originator) |
This method can be called to accept a received ADDBA Request. More... | |
void | SetDsssSupported (bool enable) |
Enable or disable DSSS support for the device. More... | |
void | SetErpSupported (bool enable) |
Enable or disable ERP support for the device. More... | |
void | SetHeSupported (bool enable) |
Enable or disable HE support for the device. More... | |
void | SetHtSupported (bool enable) |
Enable or disable HT support for the device. More... | |
virtual void | SetQosSupported (bool enable) |
Enable or disable QoS support for the device. More... | |
void | SetTypeOfStation (TypeOfStation type) |
This method is invoked by a subclass to specify what type of station it is implementing. More... | |
void | SetVhtSupported (bool enable) |
Enable or disable VHT support for the device. More... | |
virtual void | TxFailed (const WifiMacHeader &hdr) |
The packet we sent was successfully received by the receiver (i.e. More... | |
virtual void | TxOk (const WifiMacHeader &hdr) |
The packet we sent was successfully received by the receiver (i.e. More... | |
Protected Member Functions inherited from ns3::WifiMac | |
void | ConfigureDcf (Ptr< Txop > dcf, uint32_t cwmin, uint32_t cwmax, bool isDsss, AcIndex ac) |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | NotifyNewAggregate (void) |
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 (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Private Member Functions | |
virtual void | Receive (Ptr< Packet > packet, const WifiMacHeader *hdr) |
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received. More... | |
Private Attributes | |
VendorSpecificContentManager | m_vscManager |
VSC manager. More... | |
Additional Inherited Members | |
Public Types inherited from ns3::RegularWifiMac | |
typedef Callback< void, Ptr< 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... | |
Protected Types inherited from ns3::RegularWifiMac | |
typedef std::map< AcIndex, Ptr< QosTxop > > | EdcaQueues |
This type defines a mapping between an Access Category index, and a pointer to the corresponding channel access function. More... | |
Protected Attributes inherited from ns3::RegularWifiMac | |
Ptr< ChannelAccessManager > | m_channelAccessManager |
channel access manager More... | |
EdcaQueues | m_edca |
This is a map from Access Category index to the corresponding channel access function. More... | |
ForwardUpCallback | m_forwardUp |
Callback to forward 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< MacLow > | m_low |
MacLow (RTS, CTS, DATA, ACK etc.) More... | |
Ptr< WifiPhy > | m_phy |
Wifi PHY. More... | |
Ptr< MacRxMiddle > | m_rxMiddle |
RX middle (de-fragmentation etc.) More... | |
Ssid | m_ssid |
Service Set ID (SSID) More... | |
Ptr< WifiRemoteStationManager > | m_stationManager |
Remote station manager (rate control, RTS/CTS/fragmentation thresholds etc.) More... | |
Ptr< MacTxMiddle > | m_txMiddle |
TX middle (aggregation etc.) More... | |
Ptr< Txop > | m_txop |
This holds a pointer to the TXOP instance for this WifiMac - used for transmission of frames to non-QoS peers. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid (void) |
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 424 bytes (on a 64-bit architecture).
Definition at line 49 of file ocb-wifi-mac.h.
ns3::OcbWifiMac::OcbWifiMac | ( | void | ) |
Definition at line 55 of file ocb-wifi-mac.cc.
References NS_LOG_FUNCTION, ns3::OCB, ns3::RegularWifiMac::SetBssid(), ns3::RegularWifiMac::SetTypeOfStation(), and ns3::WILDCARD_BSSID.
|
virtual |
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 417 of file ocb-wifi-mac.cc.
References ns3::RegularWifiMac::m_edca, ns3::Txop::NotifyChannelSwitching(), NS_ASSERT, and NS_LOG_FUNCTION.
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 327 of file ocb-wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BE_NQOS, ns3::AC_BK, ns3::AC_UNDEF, ns3::AC_VI, ns3::AC_VO, ns3::RegularWifiMac::GetBEQueue(), ns3::RegularWifiMac::GetBKQueue(), ns3::RegularWifiMac::GetTxop(), ns3::RegularWifiMac::GetVIQueue(), ns3::RegularWifiMac::GetVOQueue(), NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::Txop::SetAifsn(), ns3::Txop::SetMaxCw(), and ns3::Txop::SetMinCw().
Referenced by FinishConfigureStandard().
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 436 of file ocb-wifi-mac.cc.
References ns3::RegularWifiMac::m_channelAccessManager, ns3::RegularWifiMac::m_edca, ns3::RegularWifiMac::m_low, ns3::RegularWifiMac::m_rxMiddle, ns3::RegularWifiMac::m_txop, ns3::MakeCallback(), NS_LOG_FUNCTION, ns3::MacRxMiddle::Receive(), ns3::Txop::SetMacLow(), ns3::MacLow::SetRxCallback(), and ns3::ChannelAccessManager::SetupLow().
Referenced by ns3::WaveHelper::Install().
|
virtual |
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::RegularWifiMac.
Definition at line 159 of file ocb-wifi-mac.cc.
References ns3::WifiRemoteStationManager::AddAllSupportedMcs(), ns3::WifiRemoteStationManager::AddAllSupportedModes(), ns3::WifiRemoteStationManager::AddStationHtCapabilities(), ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ns3::RegularWifiMac::GetAddress(), ns3::RegularWifiMac::GetHtCapabilities(), ns3::RegularWifiMac::GetHtSupported(), ns3::RegularWifiMac::GetQosSupported(), ns3::RegularWifiMac::GetVhtCapabilities(), ns3::RegularWifiMac::GetVhtSupported(), ns3::WifiRemoteStationManager::IsBrandNew(), ns3::RegularWifiMac::m_edca, ns3::RegularWifiMac::m_stationManager, ns3::RegularWifiMac::m_txop, ns3::WifiMacHeader::NORMAL_ACK, NS_ASSERT, NS_LOG_FUNCTION, ns3::QosUtilsGetTidForPacket(), ns3::QosUtilsMapTidToAc(), 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::WIFI_MAC_DATA, ns3::WIFI_MAC_QOSDATA, and ns3::WILDCARD_BSSID.
|
protectedvirtual |
standard | the phy standard to be used |
This method is called by ns3::WifiMac::ConfigureStandard to complete the configuration process for a requested phy standard. Subclasses should implement this method to configure their dcf queues according to the requested standard.
Implements ns3::WifiMac.
Definition at line 370 of file ocb-wifi-mac.cc.
References ns3::AC_BE, ns3::AC_BE_NQOS, ns3::AC_BK, ns3::AC_VI, ns3::AC_VO, ConfigureEdca(), NS_ASSERT, NS_LOG_FUNCTION, ns3::WIFI_PHY_STANDARD_80211_10MHZ, and ns3::WIFI_PHY_STANDARD_80211a.
|
virtual |
This method shall not be used in WAVE environment and here it will overloaded to log warn message.
Implements ns3::WifiMac.
Definition at line 132 of file ocb-wifi-mac.cc.
References NS_LOG_WARN, and ns3::WILDCARD_BSSID.
|
virtual |
This method shall not be used in WAVE environment and here it will overloaded to log warn message
Implements ns3::WifiMac.
Definition at line 117 of file ocb-wifi-mac.cc.
References ns3::RegularWifiMac::GetSsid(), and NS_LOG_WARN.
|
static |
Get the type ID.
Definition at line 45 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 410 of file ocb-wifi-mac.cc.
References ns3::RegularWifiMac::m_channelAccessManager, ns3::ChannelAccessManager::NotifyMaybeCcaBusyStartNow(), and NS_LOG_FUNCTION.
Referenced by ns3::DefaultChannelScheduler::AssignDefaultCchAccess(), and ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
privatevirtual |
This method acts as the MacRxMiddle receive callback and is invoked to notify us that a frame has been received.
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.
packet | the packet that has been received. |
hdr | a pointer to the MAC header of the received frame. |
Reimplemented from ns3::RegularWifiMac.
Definition at line 241 of file ocb-wifi-mac.cc.
References ns3::WifiRemoteStationManager::AddAllSupportedMcs(), ns3::WifiRemoteStationManager::AddAllSupportedModes(), ns3::WifiRemoteStationManager::AddStationHtCapabilities(), ns3::WifiRemoteStationManager::AddStationVhtCapabilities(), ns3::CATEGORY_OF_VSA, ns3::RegularWifiMac::DeaggregateAmsduAndForward(), ns3::VendorSpecificContentManager::FindVscCallback(), ns3::RegularWifiMac::ForwardUp(), ns3::WifiMacHeader::GetAddr1(), ns3::WifiMacHeader::GetAddr2(), ns3::WifiMacHeader::GetAddr3(), ns3::RegularWifiMac::GetAddress(), ns3::VendorSpecificActionHeader::GetCategory(), ns3::RegularWifiMac::GetHtCapabilities(), ns3::RegularWifiMac::GetHtSupported(), ns3::VendorSpecificActionHeader::GetOrganizationIdentifier(), ns3::RegularWifiMac::GetVhtCapabilities(), ns3::RegularWifiMac::GetVhtSupported(), ns3::WifiMacHeader::IsAction(), ns3::WifiRemoteStationManager::IsBrandNew(), ns3::WifiMacHeader::IsCtl(), ns3::WifiMacHeader::IsData(), ns3::Mac48Address::IsGroup(), ns3::WifiMacHeader::IsMgt(), ns3::Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsNull(), ns3::WifiMacHeader::IsQosAmsdu(), ns3::WifiMacHeader::IsQosData(), ns3::RegularWifiMac::m_stationManager, m_vscManager, ns3::WifiMac::NotifyRxDrop(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_LOGIC(), ns3::Packet::PeekHeader(), ns3::RegularWifiMac::Receive(), ns3::WifiRemoteStationManager::RecordDisassociated(), ns3::Packet::RemoveHeader(), 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 | ( | void | ) |
To support MAC extension for multiple channel operation, Reset current MAC entity and flush its internal queues.
Definition at line 427 of file ocb-wifi-mac.cc.
References ns3::RegularWifiMac::m_channelAccessManager, ns3::RegularWifiMac::m_low, ns3::ChannelAccessManager::NotifySwitchingStartNow(), ns3::MacLow::NotifySwitchingStartNow(), and NS_LOG_FUNCTION.
void ns3::OcbWifiMac::Resume | ( | void | ) |
To support MAC extension for multiple channel operation, Resume the activity of suspended MAC entity.
Definition at line 402 of file ocb-wifi-mac.cc.
References ns3::RegularWifiMac::m_channelAccessManager, ns3::ChannelAccessManager::NotifyWakeupNow(), and NS_LOG_FUNCTION.
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::RegularWifiMac::GetAddress(), ns3::RegularWifiMac::GetQosSupported(), ns3::RegularWifiMac::m_edca, ns3::RegularWifiMac::m_txop, NS_LOG_FUNCTION, ns3::QosUtilsGetTidForPacket(), ns3::QosUtilsMapTidToAc(), 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 126 of file ocb-wifi-mac.cc.
References NS_LOG_WARN.
|
virtual |
linkDown | the callback to invoke when the link becomes down. |
Implements ns3::WifiMac.
Definition at line 151 of file ocb-wifi-mac.cc.
References NS_LOG_FUNCTION, NS_LOG_WARN, and ns3::RegularWifiMac::SetLinkDownCallback().
|
virtual |
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. |
Implements ns3::WifiMac.
Definition at line 139 of file ocb-wifi-mac.cc.
References NS_LOG_FUNCTION, and ns3::RegularWifiMac::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
Implements ns3::WifiMac.
Definition at line 111 of file ocb-wifi-mac.cc.
References NS_LOG_WARN.
void ns3::OcbWifiMac::Suspend | ( | void | ) |
To support MAC extension for multiple channel operation, Suspend the activity in current MAC entity.
Definition at line 394 of file ocb-wifi-mac.cc.
References ns3::RegularWifiMac::m_channelAccessManager, ns3::RegularWifiMac::m_low, ns3::ChannelAccessManager::NotifySleepNow(), ns3::MacLow::NotifySleepNow(), and NS_LOG_FUNCTION.
Referenced by ns3::DefaultChannelScheduler::SwitchToNextChannel().
|
private |
VSC manager.
Definition at line 181 of file ocb-wifi-mac.h.
Referenced by AddReceiveVscCallback(), Receive(), and RemoveReceiveVscCallback().