A Discrete-Event Network Simulator
API
ns3::EhtFrameExchangeManager Class Reference

EhtFrameExchangeManager handles the frame exchange sequences for EHT stations. More...

#include "eht-frame-exchange-manager.h"

+ Inheritance diagram for ns3::EhtFrameExchangeManager:
+ Collaboration diagram for ns3::EhtFrameExchangeManager:

Public Member Functions

 EhtFrameExchangeManager ()
 
 ~EhtFrameExchangeManager () override
 
Ptr< WifiMpduCreateAliasIfNeeded (Ptr< WifiMpdu > mpdu) const override
 Create an alias of the given MPDU for transmission by this Frame Exchange Manager. More...
 
bool GetEmlsrSwitchToListening (Ptr< const WifiPsdu > psdu, uint16_t aid, const Mac48Address &address) const
 
std::optional< double > GetMostRecentRssi (const Mac48Address &address) const override
 Get the RSSI (in dBm) of the most recent packet received from the station having the given address. More...
 
void NotifySwitchingEmlsrLink (Ptr< WifiPhy > phy, uint8_t linkId, Time delay)
 Notify that the given PHY will switch channel to operate on another EMLSR link after the given delay. More...
 
void SendEmlOmn (const Mac48Address &dest, const MgtEmlOmn &frame)
 Send an EML Operating Mode Notification frame to the given station. More...
 
void SetLinkId (uint8_t linkId) override
 Set the ID of the link this Frame Exchange Manager is associated with. More...
 
bool StartTransmission (Ptr< Txop > edca, uint16_t allowedWidth) override
 Request the FrameExchangeManager to start a frame exchange sequence. More...
 
bool UsingOtherEmlsrLink () const
 
- Public Member Functions inherited from ns3::HeFrameExchangeManager
 HeFrameExchangeManager ()
 
 ~HeFrameExchangeManager () override
 
void CalculateAcknowledgmentTime (WifiAcknowledgment *acknowledgment) const override
 Calculate the time required to acknowledge a frame according to the given acknowledgment method. More...
 
void CalculateProtectionTime (WifiProtection *protection) const override
 Calculate the time required to protect a frame according to the given protection method. More...
 
bool IsIntraBssPpdu (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) const
 Return whether the received frame is classified as intra-BSS. More...
 
void SetMultiUserScheduler (const Ptr< MultiUserScheduler > muScheduler)
 Set the Multi-user Scheduler associated with this Frame Exchange Manager. More...
 
virtual void SetTargetRssi (CtrlTriggerHeader &trigger) const
 Set the UL Target RSSI subfield of every User Info fields of the given Trigger Frame to the most recent RSSI observed from the corresponding station. More...
 
void SetTxopHolder (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Set the TXOP holder, if needed, based on the received frame. More...
 
void SetWifiMac (const Ptr< WifiMac > mac) override
 Set the MAC layer to use. More...
 
bool StartFrameExchange (Ptr< QosTxop > edca, Time availableTime, bool initialFrame) override
 Start a frame exchange (including protection frames and acknowledgment frames as needed) that fits within the given availableTime (if different than Time::Min()). More...
 
bool UlMuCsMediumIdle (const CtrlTriggerHeader &trigger) const
 This method is intended to be called a SIFS after the reception of a Trigger Frame to determine whether the station is allowed to respond. More...
 
bool VirtualCsMediumIdle () const override
 
- Public Member Functions inherited from ns3::VhtFrameExchangeManager
 VhtFrameExchangeManager ()
 
 ~VhtFrameExchangeManager () override
 
- Public Member Functions inherited from ns3::HtFrameExchangeManager
 HtFrameExchangeManager ()
 
 ~HtFrameExchangeManager () override
 
void CalculateAcknowledgmentTime (WifiAcknowledgment *acknowledgment) const override
 Calculate the time required to acknowledge a frame according to the given acknowledgment method. More...
 
Ptr< WifiMpduGetBar (AcIndex ac, std::optional< uint8_t > optTid=std::nullopt, std::optional< Mac48Address > optAddress=std::nullopt)
 Get the next BlockAckRequest or MU-BAR Trigger Frame to send, if any. More...
 
Ptr< MpduAggregatorGetMpduAggregator () const
 Returns the aggregator used to construct A-MPDU subframes. More...
 
Ptr< MsduAggregatorGetMsduAggregator () const
 Returns the aggregator used to construct A-MSDU subframes. More...
 
virtual bool IsWithinAmpduSizeLimit (uint32_t ampduSize, Mac48Address receiver, uint8_t tid, WifiModulationClass modulation) const
 Check whether an A-MPDU of the given size meets the constraint on the maximum size for A-MPDUs sent to the given receiver, belonging to the given TID and transmitted using the given modulation class. More...
 
bool IsWithinLimitsIfAddMpdu (Ptr< const WifiMpdu > mpdu, const WifiTxParameters &txParams, Time ppduDurationLimit) const override
 Check if the PSDU obtained by aggregating the given MPDU to the PSDU specified by the given TX parameters meets the constraints on the maximum A-MPDU size and its transmission time does not exceed the given PPDU duration limit (if different than Time::Min()). More...
 
virtual bool IsWithinLimitsIfAggregateMsdu (Ptr< const WifiMpdu > msdu, const WifiTxParameters &txParams, Time ppduDurationLimit) const
 Check if the PSDU obtained by aggregating the given MSDU to the PSDU specified by the given TX parameters meets the constraints on the maximum A-MSDU size and its transmission time does not exceed the given PPDU duration limit (if different than Time::Min()). More...
 
void SendAddBaResponse (const MgtAddBaRequestHeader *reqHdr, Mac48Address originator)
 This method can be called to accept a received ADDBA Request. More...
 
void SendDelbaFrame (Mac48Address addr, uint8_t tid, bool byOriginator)
 Sends DELBA frame to cancel a block ack agreement with STA addressed by addr for TID tid. More...
 
void SetWifiMac (const Ptr< WifiMac > mac) override
 Set the MAC layer to use. More...
 
bool StartFrameExchange (Ptr< QosTxop > edca, Time availableTime, bool initialFrame) override
 Start a frame exchange (including protection frames and acknowledgment frames as needed) that fits within the given availableTime (if different than Time::Min()). More...
 
virtual bool TryAggregateMsdu (Ptr< const WifiMpdu > msdu, WifiTxParameters &txParams, Time availableTime) const
 Check if aggregating an MSDU to the current MPDU (as specified by the given TX parameters) does not violate the size and time constraints, while taking into account the possibly updated protection and acknowledgment methods. More...
 
- Public Member Functions inherited from ns3::QosFrameExchangeManager
 QosFrameExchangeManager ()
 
 ~QosFrameExchangeManager () override
 
virtual bool IsWithinSizeAndTimeLimits (uint32_t ppduPayloadSize, Mac48Address receiver, const WifiTxParameters &txParams, Time ppduDurationLimit) const
 Check whether the transmission time of the frame being built (as described by the given TX parameters) does not exceed the given PPDU duration limit if the size of the PSDU addressed to the given receiver becomes ppduPayloadSize. More...
 
bool StartTransmission (Ptr< Txop > edca, uint16_t allowedWidth) override
 Request the FrameExchangeManager to start a frame exchange sequence. More...
 
bool TryAddMpdu (Ptr< const WifiMpdu > mpdu, WifiTxParameters &txParams, Time availableTime) const
 Recompute the protection and acknowledgment methods to use if the given MPDU is added to the frame being built (as described by the given TX parameters) and check whether the duration of the frame exchange sequence (including protection and acknowledgment) does not exceed the given available time. More...
 
- Public Member Functions inherited from ns3::FrameExchangeManager
 FrameExchangeManager ()
 
 ~FrameExchangeManager () override
 
Ptr< WifiAckManagerGetAckManager () const
 Get the Acknowledgment Manager used by this node. More...
 
Mac48Address GetAddress () const
 Get the MAC address. More...
 
Mac48Address GetBssid () const
 Get the Basic Service Set Identification. More...
 
const std::set< Mac48Address > & GetProtectedStas () const
 
Ptr< WifiProtectionManagerGetProtectionManager () const
 Get the Protection Manager used by this node. More...
 
const WifiTxTimerGetWifiTxTimer () const
 Get a const reference to the WifiTxTimer object. More...
 
bool IsPromisc () const
 Check if the device is operating in promiscuous mode. More...
 
virtual void NotifyInternalCollision (Ptr< Txop > txop)
 Notify that an internal collision has occurred for the given Txop. More...
 
void NotifyOffNow ()
 This method is typically invoked by the PhyListener to notify the MAC layer that the device has been put into off mode. More...
 
void NotifySleepNow ()
 This method is typically invoked by the PhyListener to notify the MAC layer that the device has been put into sleep mode. More...
 
virtual void NotifySwitchingStartNow (Time duration)
 
void Receive (Ptr< const WifiPsdu > psdu, RxSignalInfo rxSignalInfo, WifiTxVector txVector, std::vector< bool > perMpduStatus)
 This method is intended to be called by the PHY layer every time an MPDU is received and also when the reception of an A-MPDU is completed. More...
 
virtual void ResetPhy ()
 Remove WifiPhy associated with this FrameExchangeManager. More...
 
void SetAckedMpduCallback (AckedMpdu callback)
 Set the callback to invoke when an MPDU is successfully acked. More...
 
virtual void SetAckManager (Ptr< WifiAckManager > ackManager)
 Set the Acknowledgment Manager to use. More...
 
virtual void SetAddress (Mac48Address address)
 Set the MAC address. More...
 
virtual void SetBssid (Mac48Address bssid)
 Set the Basic Service Set Identification. More...
 
virtual void SetChannelAccessManager (const Ptr< ChannelAccessManager > channelAccessManager)
 Set the channel access manager to use. More...
 
virtual void SetDroppedMpduCallback (DroppedMpdu callback)
 Set the callback to invoke when an MPDU is dropped. More...
 
virtual void SetMacRxMiddle (const Ptr< MacRxMiddle > rxMiddle)
 Set the MAC RX Middle to use. More...
 
virtual void SetMacTxMiddle (const Ptr< MacTxMiddle > txMiddle)
 Set the MAC TX Middle to use. More...
 
void SetPromisc ()
 Enable promiscuous mode. More...
 
virtual void SetProtectionManager (Ptr< WifiProtectionManager > protectionManager)
 Set the Protection Manager to use. More...
 
virtual void SetWifiPhy (const Ptr< WifiPhy > phy)
 Set the PHY layer to use. 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< ObjectGetObject () 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< ObjectGetObject (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...
 
SimpleRefCountoperator= (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 ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::HeFrameExchangeManager
static Ptr< WifiPsduGetPsduTo (Mac48Address to, const WifiPsduMap &psduMap)
 Get the PSDU in the given PSDU map that is addressed to the given MAC address, if any, or a null pointer, otherwise. More...
 
static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::VhtFrameExchangeManager
static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::HtFrameExchangeManager
static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::QosFrameExchangeManager
static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::FrameExchangeManager
static TypeId GetTypeId ()
 Get the type ID. 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 CtsAfterMuRtsTimeout (Ptr< WifiMpdu > muRts, const WifiTxVector &txVector) override
 Called when no CTS frame is received after an MU-RTS. More...
 
void DoDispose () override
 Destructor implementation. More...
 
void EmlsrSwitchToListening (const Mac48Address &address, const Time &delay)
 This method is intended to be called when an AP MLD detects that an EMLSR client previously involved in the current TXOP will start waiting for the transition delay interval (to switch back to listening operation) after the given delay. More...
 
void ForwardPsduDown (Ptr< const WifiPsdu > psdu, WifiTxVector &txVector) override
 Forward a PSDU down to the PHY layer. More...
 
void ForwardPsduMapDown (WifiConstPsduMap psduMap, WifiTxVector &txVector) override
 Forward a map of PSDUs down to the PHY layer. More...
 
void IntraBssNavResetTimeout () override
 Reset the intra-BSS NAV upon expiration of the intra-BSS NAV reset timer. More...
 
void NavResetTimeout () override
 Reset the NAV upon expiration of the NAV reset timer. More...
 
void NotifyChannelReleased (Ptr< Txop > txop) override
 Notify the given Txop that channel has been released. More...
 
void PostProcessFrame (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Perform actions that are possibly needed after receiving any frame, independently of whether the frame is addressed to this station (e.g., setting the NAV or the TXOP holder). More...
 
void PreProcessFrame (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Perform actions that are possibly needed when receiving any frame, independently of whether the frame is addressed to this station (e.g., storing buffer status reports). More...
 
void ReceiveMpdu (Ptr< const WifiMpdu > mpdu, RxSignalInfo rxSignalInfo, const WifiTxVector &txVector, bool inAmpdu) override
 This method handles the reception of an MPDU (possibly included in an A-MPDU) More...
 
void RxStartIndication (WifiTxVector txVector, Time psduDuration) override
 
void SendMuRts (const WifiTxParameters &txParams) override
 Send an MU-RTS to begin an MU-RTS/CTS frame exchange protecting an MU PPDU. More...
 
void TransmissionFailed () override
 Take necessary actions upon a transmission failure. More...
 
void TransmissionSucceeded () override
 Take necessary actions upon a transmission success. More...
 
- Protected Member Functions inherited from ns3::HeFrameExchangeManager
virtual void BlockAckAfterTbPpduTimeout (Ptr< WifiPsdu > psdu, const WifiTxVector &txVector)
 Take the necessary actions after that a Block Ack is missing after a TB PPDU solicited through a Trigger Frame. More...
 
virtual void BlockAcksInTbPpduTimeout (WifiPsduMap *psduMap, std::size_t nSolicitedStations)
 Take the necessary actions after that some BlockAck frames are missing in response to a DL MU PPDU. More...
 
void BlockAckTimeout (Ptr< WifiPsdu > psdu, const WifiTxVector &txVector) override
 Called when the BlockAck timeout expires. More...
 
void ClearTxopHolderIfNeeded () override
 Clear the TXOP holder if the intra-BSS NAV counted down to zero (includes the case of intra-BSS NAV reset). More...
 
void CtsTimeout (Ptr< WifiMpdu > rts, const WifiTxVector &txVector) override
 Called when the CTS timeout expires. More...
 
void DoDispose () override
 Destructor implementation. More...
 
void EndReceiveAmpdu (Ptr< const WifiPsdu > psdu, const RxSignalInfo &rxSignalInfo, const WifiTxVector &txVector, const std::vector< bool > &perMpduStatus) override
 This method is called when the reception of an A-MPDU including multiple MPDUs is completed. More...
 
WifiMode GetCtsModeAfterMuRts () const
 
WifiTxVector GetCtsTxVectorAfterMuRts (const CtrlTriggerHeader &trigger, uint16_t staId) const
 Get the TXVECTOR that the station having the given station ID has to use to send a CTS frame after receiving an MU-RTS Trigger Frame from the AP it is associated with. More...
 
WifiTxVector GetHeTbTxVector (CtrlTriggerHeader trigger, Mac48Address triggerSender) const
 Return a TXVECTOR for the UL frame that the station will send in response to the given Trigger frame, configured with the BSS color and transmit power level to use for the consequent HE TB PPDU. More...
 
virtual Time GetMuRtsDurationId (uint32_t muRtsSize, const WifiTxVector &muRtsTxVector, Time txDuration, Time response) const
 Compute how to set the Duration/ID field of an MU-RTS Trigger Frame to send to protect a frame transmitted with the given TX vector. More...
 
WifiTxVector GetTrigVector (const CtrlTriggerHeader &trigger) const
 Get the TRIGVECTOR that the MAC has to pass to the PHY when transmitting the given Trigger Frame. More...
 
Time GetTxDuration (uint32_t ppduPayloadSize, Mac48Address receiver, const WifiTxParameters &txParams) const override
 Get the updated TX duration of the frame associated with the given TX parameters if the size of the PSDU addressed to the given receiver becomes ppduPayloadSize. More...
 
void NavResetTimeout () override
 Reset the NAV upon expiration of the NAV reset timer. More...
 
void NormalAckTimeout (Ptr< WifiMpdu > mpdu, const WifiTxVector &txVector) override
 Called when the Ack timeout expires. More...
 
void PostProcessFrame (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Perform actions that are possibly needed after receiving any frame, independently of whether the frame is addressed to this station (e.g., setting the NAV or the TXOP holder). More...
 
Ptr< WifiMpduPrepareMuBar (const WifiTxVector &responseTxVector, std::map< uint16_t, CtrlBAckRequestHeader > recipients) const
 Build a MU-BAR Trigger Frame starting from the TXVECTOR used to respond to the MU-BAR (in case of multiple responders, their TXVECTORs need to be "merged" into a single TXVECTOR) and from the BlockAckReq headers for every recipient. More...
 
void ProtectionCompleted () override
 Transmit prepared frame upon successful protection mechanism. More...
 
void ReceiveMpdu (Ptr< const WifiMpdu > mpdu, RxSignalInfo rxSignalInfo, const WifiTxVector &txVector, bool inAmpdu) override
 This method handles the reception of an MPDU (possibly included in an A-MPDU) More...
 
void RecordSentMuRtsTo (const WifiTxParameters &txParams)
 Record the stations being solicited by an MU-RTS TF. More...
 
void Reset () override
 Reset this frame exchange manager. More...
 
void RxStartIndication (WifiTxVector txVector, Time psduDuration) override
 
void SendCtsAfterMuRts (const WifiMacHeader &muRtsHdr, const CtrlTriggerHeader &trigger, double muRtsSnr)
 Send CTS after receiving an MU-RTS. More...
 
void SendMultiStaBlockAck (const WifiTxParameters &txParams, Time durationId)
 Send a Multi-STA Block Ack frame after the reception of some TB PPDUs. More...
 
void SendPsduMapWithProtection (WifiPsduMap psduMap, WifiTxParameters &txParams)
 Send a map of PSDUs as a DL MU PPDU. More...
 
void SendQosNullFramesInTbPpdu (const CtrlTriggerHeader &trigger, const WifiMacHeader &hdr)
 Send QoS Null frames in response to a Basic or BSRP Trigger Frame. More...
 
void StartProtection (const WifiTxParameters &txParams) override
 Start the protection mechanism indicated by the given TX parameters. More...
 
virtual void TbPpduTimeout (WifiPsduMap *psduMap, std::size_t nSolicitedStations)
 Take the necessary actions after that some TB PPDUs are missing in response to Trigger Frame. More...
 
void TransmissionSucceeded () override
 Take necessary actions upon a transmission success. More...
 
void UpdateNav (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Update the NAV, if needed, based on the Duration/ID of the given psdu. More...
 
- Protected Member Functions inherited from ns3::VhtFrameExchangeManager
uint32_t GetPsduSize (Ptr< const WifiMpdu > mpdu, const WifiTxVector &txVector) const override
 Get the size in bytes of the given MPDU, which is to be transmitted with the given TXVECTOR. More...
 
Ptr< WifiPsduGetWifiPsdu (Ptr< WifiMpdu > mpdu, const WifiTxVector &txVector) const override
 Get a PSDU containing the given MPDU. More...
 
- Protected Member Functions inherited from ns3::HtFrameExchangeManager
void CtsTimeout (Ptr< WifiMpdu > rts, const WifiTxVector &txVector) override
 Called when the CTS timeout expires. More...
 
void DequeuePsdu (Ptr< const WifiPsdu > psdu)
 Dequeue the MPDUs of the given PSDU from the queue in which they are stored. More...
 
void DoDispose () override
 Destructor implementation. More...
 
void EndReceiveAmpdu (Ptr< const WifiPsdu > psdu, const RxSignalInfo &rxSignalInfo, const WifiTxVector &txVector, const std::vector< bool > &perMpduStatus) override
 This method is called when the reception of an A-MPDU including multiple MPDUs is completed. More...
 
void FinalizeMacHeader (Ptr< const WifiPsdu > psdu) override
 Finalize the MAC header of the MPDUs in the given PSDU before transmission. More...
 
void ForwardMpduDown (Ptr< WifiMpdu > mpdu, WifiTxVector &txVector) override
 Forward an MPDU down to the PHY layer. More...
 
Ptr< BlockAckManagerGetBaManager (uint8_t tid) const
 Get the Block Ack Manager handling the given TID. More...
 
virtual Time GetPsduDurationId (Time txDuration, const WifiTxParameters &txParams) const
 Compute how to set the Duration/ID field of PSDUs that do not include fragments. More...
 
virtual void MissedBlockAck (Ptr< WifiPsdu > psdu, const WifiTxVector &txVector, bool &resetCw)
 Take necessary actions when a BlockAck is missed, such as scheduling a BlockAckReq frame or the retransmission of the unacknowledged frames. More...
 
virtual bool NeedSetupBlockAck (Mac48Address recipient, uint8_t tid)
 A Block Ack agreement needs to be established with the given recipient for the given TID if it does not already exist (or exists and is in state RESET) and: More...
 
void NotifyPacketDiscarded (Ptr< const WifiMpdu > mpdu) override
 Pass the given MPDU, discarded because of the max retry limit was reached, to the MPDU dropped callback. More...
 
void NotifyReceivedNormalAck (Ptr< WifiMpdu > mpdu) override
 Notify other components that an MPDU was acknowledged. More...
 
virtual void NotifyTxToEdca (Ptr< const WifiPsdu > psdu) const
 Notify the transmission of the given PSDU to the EDCAF associated with the AC the PSDU belongs to. More...
 
void ProtectionCompleted () override
 Transmit prepared frame upon successful protection mechanism. More...
 
void ReceiveMpdu (Ptr< const WifiMpdu > mpdu, RxSignalInfo rxSignalInfo, const WifiTxVector &txVector, bool inAmpdu) override
 This method handles the reception of an MPDU (possibly included in an A-MPDU) More...
 
void ReleaseSequenceNumbers (Ptr< const WifiPsdu > psdu) const override
 Make the sequence numbers of MPDUs included in the given PSDU available again if the MPDUs have never been transmitted. More...
 
void RetransmitMpduAfterMissedAck (Ptr< WifiMpdu > mpdu) const override
 Retransmit an MPDU that was not acknowledged. More...
 
bool SendAddBaRequest (Mac48Address recipient, uint8_t tid, uint16_t startingSeq, uint16_t timeout, bool immediateBAck, Time availableTime)
 Sends an ADDBA Request to establish a block ack agreement with STA addressed by recipient for TID tid. More...
 
void SendBlockAck (const RecipientBlockAckAgreement &agreement, Time durationId, WifiTxVector &blockAckTxVector, double rxSnr)
 Create a BlockAck frame with header equal to blockAck and start its transmission. More...
 
virtual bool SendDataFrame (Ptr< WifiMpdu > peekedItem, Time availableTime, bool initialFrame)
 Given a non-broadcast QoS data frame, prepare the PSDU to transmit by attempting A-MSDU and A-MPDU aggregation (if enabled), while making sure that the frame exchange (possibly including protection and acknowledgment) is completed within the given available time. More...
 
virtual bool SendMpduFromBaManager (Ptr< WifiMpdu > mpdu, Time availableTime, bool initialFrame)
 If the given MPDU contains a BlockAckReq frame (the duration of which plus the response fits within the given available time, if the latter is not Time::Min() and this is not the initial frame of a TXOP), transmit the frame and return true. More...
 
void SendPsduWithProtection (Ptr< WifiPsdu > psdu, WifiTxParameters &txParams)
 Send a PSDU (A-MPDU or BlockAckReq frame) requesting a BlockAck frame or a BlockAckReq frame followed by a BlockAck frame for the acknowledgment. More...
 
void TransmissionSucceeded () override
 Take necessary actions upon a transmission success. More...
 
- Protected Member Functions inherited from ns3::QosFrameExchangeManager
void DoDispose () override
 Destructor implementation. More...
 
void ForwardMpduDown (Ptr< WifiMpdu > mpdu, WifiTxVector &txVector) override
 Forward an MPDU down to the PHY layer. More...
 
Time GetCtsToSelfDurationId (const WifiTxVector &ctsTxVector, Time txDuration, Time response) const override
 Compute how to set the Duration/ID field of a CTS-to-self frame to send to protect a frame transmitted with the given TX vector. More...
 
Time GetFrameDurationId (const WifiMacHeader &header, uint32_t size, const WifiTxParameters &txParams, Ptr< Packet > fragmentedPacket) const override
 Compute how to set the Duration/ID field of a frame being transmitted with the given TX parameters. More...
 
Time GetRtsDurationId (const WifiTxVector &rtsTxVector, Time txDuration, Time response) const override
 Compute how to set the Duration/ID field of an RTS frame to send to protect a frame transmitted with the given TX vector. More...
 
void NavResetTimeout () override
 Reset the NAV upon expiration of the NAV reset timer. More...
 
void PifsRecovery ()
 Perform a PIFS recovery as a response to transmission failure within a TXOP. More...
 
void PostProcessFrame (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Perform actions that are possibly needed after receiving any frame, independently of whether the frame is addressed to this station (e.g., setting the NAV or the TXOP holder). More...
 
void PreProcessFrame (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Perform actions that are possibly needed when receiving any frame, independently of whether the frame is addressed to this station (e.g., storing buffer status reports). More...
 
void ReceiveMpdu (Ptr< const WifiMpdu > mpdu, RxSignalInfo rxSignalInfo, const WifiTxVector &txVector, bool inAmpdu) override
 This method handles the reception of an MPDU (possibly included in an A-MPDU) More...
 
virtual bool SendCfEndIfNeeded ()
 Send a CF-End frame to indicate the completion of the TXOP, provided that the remaining duration is long enough to transmit this frame. More...
 
virtual bool StartTransmission (Ptr< QosTxop > edca, Time txopDuration)
 Request the FrameExchangeManager to start a frame exchange sequence. More...
 
void TransmissionFailed () override
 Take necessary actions upon a transmission failure. More...
 
void TransmissionSucceeded () override
 Take necessary actions upon a transmission success. More...
 
void UpdateNav (Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
 Update the NAV, if needed, based on the Duration/ID of the given psdu. More...
 
- Protected Member Functions inherited from ns3::FrameExchangeManager
virtual void DequeueMpdu (Ptr< const WifiMpdu > mpdu)
 Dequeue the given MPDU from the queue in which it is stored. More...
 
void DoCtsTimeout (Ptr< WifiPsdu > psdu)
 Take required actions when the CTS timer fired after sending an RTS to protect the given PSDU expires. More...
 
void DoSendCtsAfterRts (const WifiMacHeader &rtsHdr, WifiTxVector &ctsTxVector, double rtsSnr)
 Send CTS after receiving RTS. More...
 
Ptr< WifiMpduGetFirstFragmentIfNeeded (Ptr< WifiMpdu > mpdu)
 Fragment the given MPDU if needed. More...
 
Ptr< WifiMpduGetNextFragment ()
 Get the next fragment of the current MSDU. More...
 
Ptr< WifiRemoteStationManagerGetWifiRemoteStationManager () const
 
virtual void ReceivedNormalAck (Ptr< WifiMpdu > mpdu, const WifiTxVector &txVector, const WifiTxVector &ackTxVector, const RxSignalInfo &rxInfo, double snr)
 Perform the actions needed when a Normal Ack is received. More...
 
void SendCtsAfterRts (const WifiMacHeader &rtsHdr, WifiMode rtsTxMode, double rtsSnr)
 Send CTS after receiving RTS. More...
 
void SendCtsToSelf (const WifiTxParameters &txParams)
 Send CTS for a CTS-to-self mechanism. More...
 
void SendMpduWithProtection (Ptr< WifiMpdu > mpdu, WifiTxParameters &txParams)
 Send an MPDU with the given TX parameters (with the specified protection). More...
 
void SendNormalAck (const WifiMacHeader &hdr, const WifiTxVector &dataTxVector, double dataSnr)
 Send Normal Ack. More...
 
void SendRts (const WifiTxParameters &txParams)
 Send RTS to begin RTS-CTS-Data-Ack transaction. More...
 
void UpdateTxDuration (Mac48Address receiver, WifiTxParameters &txParams) const
 Update the TX duration field of the given TX parameters after that the PSDU addressed to the given receiver has changed. 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 Member Functions

void TxopEnd ()
 Take actions when a TXOP (of which we are not the holder) ends. More...
 
void UpdateTxopEndOnRxEnd (Time durationId)
 Update the TXOP end timer when a frame reception ends. More...
 
void UpdateTxopEndOnRxStartIndication (Time psduDuration)
 Update the TXOP end timer when receiving a PHY-RXSTART.indication. More...
 
void UpdateTxopEndOnTxStart (Time txDuration, Time durationId)
 Update the TXOP end timer when starting a frame transmission. More...
 

Private Attributes

EventId m_ongoingTxopEnd
 event indicating the possible end of the current TXOP (of which we are not the holder) More...
 
std::unordered_map< Mac48Address, EventId, WifiAddressHashm_transDelayTimer
 MLD address-indexed map of transition delay timers. More...
 

Additional Inherited Members

- Public Types inherited from ns3::FrameExchangeManager
typedef Callback< void, Ptr< const WifiMpdu > > AckedMpdu
 typedef for a callback to invoke when an MPDU is successfully acknowledged. More...
 
typedef Callback< void, WifiMacDropReason, Ptr< const WifiMpdu > > DroppedMpdu
 typedef for a callback to invoke when an MPDU is dropped. More...
 
- Protected Types inherited from ns3::HtFrameExchangeManager
typedef std::pair< Mac48Address, uint8_t > AgreementKey
 agreement key typedef (MAC address and TID) More...
 
- Protected Attributes inherited from ns3::HeFrameExchangeManager
Ptr< ApWifiMacm_apMac
 MAC pointer (null if not an AP) More...
 
Time m_intraBssNavEnd
 intra-BSS NAV expiration time More...
 
EventId m_intraBssNavResetEvent
 the event to reset the intra-BSS NAV after an RTS More...
 
Ptr< StaWifiMacm_staMac
 MAC pointer (null if not a STA) More...
 
WifiTxVector m_trigVector
 the TRIGVECTOR More...
 
- Protected Attributes inherited from ns3::HtFrameExchangeManager
Ptr< MpduAggregatorm_mpduAggregator
 A-MPDU aggregator. More...
 
Ptr< MsduAggregatorm_msduAggregator
 A-MSDU aggregator. More...
 
std::map< AgreementKey, Ptr< WifiMpdu > > m_pendingAddBaResp
 pending ADDBA_RESPONSE frames indexed by agreement key More...
 
- Protected Attributes inherited from ns3::QosFrameExchangeManager
Ptr< QosTxopm_edca
 the EDCAF that gained channel access More...
 
bool m_setQosQueueSize
 whether to set the Queue Size subfield of the QoS Control field of QoS data frames More...
 
std::optional< Mac48Addressm_txopHolder
 MAC address of the TXOP holder. More...
 
- Protected Attributes inherited from ns3::FrameExchangeManager
AckedMpdu m_ackedMpduCallback
 the acknowledged MPDU callback More...
 
uint16_t m_allowedWidth
 the allowed width in MHz for the current transmission More...
 
Mac48Address m_bssid
 BSSID address (Mac48Address) More...
 
Ptr< ChannelAccessManagerm_channelAccessManager
 the channel access manager More...
 
Ptr< Txopm_dcf
 the DCF/EDCAF that gained channel access More...
 
DroppedMpdu m_droppedMpduCallback
 the dropped MPDU callback More...
 
uint8_t m_linkId
 the ID of the link this object is associated with More...
 
Ptr< WifiMacm_mac
 the MAC layer on this station More...
 
Time m_navEnd
 NAV expiration time. More...
 
EventId m_navResetEvent
 the event to reset the NAV after an RTS More...
 
Ptr< WifiPhym_phy
 the PHY layer on this station More...
 
bool m_promisc
 Flag if the device is operating in promiscuous mode. More...
 
std::set< Mac48Addressm_protectedStas
 STAs that have replied to an RTS in this TXOP. More...
 
Ptr< MacRxMiddlem_rxMiddle
 the MAC RX Middle on this station More...
 
Mac48Address m_self
 the MAC address of this device More...
 
std::set< Mac48Addressm_sentRtsTo
 the STA(s) which we sent an RTS to (waiting for CTS) More...
 
Ptr< MacTxMiddlem_txMiddle
 the MAC TX Middle on this station More...
 
WifiTxTimer m_txTimer
 the timer set upon frame transmission More...
 

Detailed Description

EhtFrameExchangeManager handles the frame exchange sequences for EHT stations.

Definition at line 39 of file eht-frame-exchange-manager.h.

Constructor & Destructor Documentation

◆ EhtFrameExchangeManager()

ns3::EhtFrameExchangeManager::EhtFrameExchangeManager ( )

Definition at line 73 of file eht-frame-exchange-manager.cc.

References NS_LOG_FUNCTION.

◆ ~EhtFrameExchangeManager()

ns3::EhtFrameExchangeManager::~EhtFrameExchangeManager ( )
override

Definition at line 78 of file eht-frame-exchange-manager.cc.

References NS_LOG_FUNCTION_NOARGS.

Member Function Documentation

◆ CreateAliasIfNeeded()

Ptr< WifiMpdu > ns3::EhtFrameExchangeManager::CreateAliasIfNeeded ( Ptr< WifiMpdu mpdu) const
overridevirtual

Create an alias of the given MPDU for transmission by this Frame Exchange Manager.

This is required by 11be MLDs to support translation of MAC addresses. For single link devices, the given MPDU is simply returned.

Parameters
mpduthe given MPDU
Returns
the alias of the given MPDU for transmission on this link

Reimplemented from ns3::QosFrameExchangeManager.

Definition at line 117 of file eht-frame-exchange-manager.cc.

References first::address, ns3::QosFrameExchangeManager::CreateAliasIfNeeded(), ns3::FrameExchangeManager::GetAddress(), ns3::WifiMac::GetNLinks(), ns3::FrameExchangeManager::GetWifiRemoteStationManager(), ns3::FrameExchangeManager::m_linkId, ns3::FrameExchangeManager::m_mac, NS_ASSERT, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ CtsAfterMuRtsTimeout()

void ns3::EhtFrameExchangeManager::CtsAfterMuRtsTimeout ( Ptr< WifiMpdu muRts,
const WifiTxVector txVector 
)
overrideprotectedvirtual

◆ DoDispose()

void ns3::EhtFrameExchangeManager::DoDispose ( void  )
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 84 of file eht-frame-exchange-manager.cc.

References ns3::EventId::Cancel(), ns3::HeFrameExchangeManager::DoDispose(), m_ongoingTxopEnd, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ EmlsrSwitchToListening()

void ns3::EhtFrameExchangeManager::EmlsrSwitchToListening ( const Mac48Address address,
const Time delay 
)
protected

This method is intended to be called when an AP MLD detects that an EMLSR client previously involved in the current TXOP will start waiting for the transition delay interval (to switch back to listening operation) after the given delay.

This method blocks the transmissions on all the EMLSR links of the given EMLSR client until the transition delay advertised by the EMLSR client expires.

Parameters
addressthe link MAC address of the given EMLSR client
delaythe given delay

Definition at line 393 of file eht-frame-exchange-manager.cc.

References first::address, ns3::Time::As(), ns3::WifiMac::BlockUnicastTxOnLinks(), ns3::CommonInfoBasicMle::DecodeEmlsrTransitionDelay(), ns3::WifiMac::GetNLinks(), ns3::FrameExchangeManager::GetWifiRemoteStationManager(), ns3::WifiMac::GetWifiRemoteStationManager(), ns3::Time::IsZero(), ns3::FrameExchangeManager::m_mac, m_transDelayTimer, NS_ASSERT, NS_LOG_FUNCTION, ns3::Simulator::Schedule(), ns3::WifiMac::UnblockUnicastTxOnLinks(), ns3::Time::US, ns3::USING_OTHER_EMLSR_LINK, and ns3::WAITING_EMLSR_TRANSITION_DELAY.

Referenced by ForwardPsduDown(), ForwardPsduMapDown(), NotifyChannelReleased(), PreProcessFrame(), and TxopEnd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ForwardPsduDown()

void ns3::EhtFrameExchangeManager::ForwardPsduDown ( Ptr< const WifiPsdu psdu,
WifiTxVector txVector 
)
overrideprotectedvirtual

◆ ForwardPsduMapDown()

void ns3::EhtFrameExchangeManager::ForwardPsduMapDown ( WifiConstPsduMap  psduMap,
WifiTxVector txVector 
)
overrideprotectedvirtual

◆ GetEmlsrSwitchToListening()

bool ns3::EhtFrameExchangeManager::GetEmlsrSwitchToListening ( Ptr< const WifiPsdu psdu,
uint16_t  aid,
const Mac48Address address 
) const
Parameters
psduthe given PSDU
aidthe AID of an EMLSR client
addressthe link MAC address of an EMLSR client
Returns
whether the EMLSR client having the given AID and MAC address shall switch back to the listening operation when receiving the given PSDU

Definition at line 619 of file eht-frame-exchange-manager.cc.

References first::address, ns3::CtrlTriggerHeader::end(), ns3::CtrlBAckResponseHeader::FindPerAidTidInfoWithAid(), ns3::CtrlTriggerHeader::FindUserInfoWithAid(), ns3::WifiPsdu::GetAddr1(), ns3::WifiPsdu::GetHeader(), ns3::WifiPsdu::GetPayload(), ns3::WifiMacHeader::IsBlockAck(), ns3::WifiMacHeader::IsCts(), ns3::CtrlBAckResponseHeader::IsMultiSta(), ns3::HeFrameExchangeManager::m_apMac, ns3::FrameExchangeManager::m_bssid, ns3::FrameExchangeManager::m_self, ns3::HeFrameExchangeManager::m_staMac, NS_LOG_FUNCTION, ns3::Packet::PeekHeader(), and ns3::PeekPointer().

Referenced by ForwardPsduDown(), ForwardPsduMapDown(), and PostProcessFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMostRecentRssi()

std::optional< double > ns3::EhtFrameExchangeManager::GetMostRecentRssi ( const Mac48Address address) const
overridevirtual

Get the RSSI (in dBm) of the most recent packet received from the station having the given address.

If there is no such information for the given station and the station is affiliated with an MLD, return the RSSI (in dBm) of the most recent packet received from another station of the same MLD.

Parameters
addressof the remote station
Returns
the RSSI (in dBm) of the most recent packet received from the remote station

Reimplemented from ns3::HeFrameExchangeManager.

Definition at line 496 of file eht-frame-exchange-manager.cc.

References first::address, ns3::HeFrameExchangeManager::GetMostRecentRssi(), ns3::WifiMac::GetNLinks(), ns3::FrameExchangeManager::GetWifiRemoteStationManager(), ns3::WifiMac::GetWifiRemoteStationManager(), ns3::FrameExchangeManager::m_linkId, and ns3::FrameExchangeManager::m_mac.

+ Here is the call graph for this function:

◆ GetTypeId()

TypeId ns3::EhtFrameExchangeManager::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 64 of file eht-frame-exchange-manager.cc.

References ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ IntraBssNavResetTimeout()

void ns3::EhtFrameExchangeManager::IntraBssNavResetTimeout ( )
overrideprotectedvirtual

Reset the intra-BSS NAV upon expiration of the intra-BSS NAV reset timer.

Reimplemented from ns3::HeFrameExchangeManager.

Definition at line 381 of file eht-frame-exchange-manager.cc.

References ns3::HeFrameExchangeManager::IntraBssNavResetTimeout(), NS_LOG_FUNCTION, and UsingOtherEmlsrLink().

+ Here is the call graph for this function:

◆ NavResetTimeout()

void ns3::EhtFrameExchangeManager::NavResetTimeout ( )
overrideprotectedvirtual

Reset the NAV upon expiration of the NAV reset timer.

Reimplemented from ns3::FrameExchangeManager.

Definition at line 369 of file eht-frame-exchange-manager.cc.

References ns3::HeFrameExchangeManager::NavResetTimeout(), NS_LOG_FUNCTION, and UsingOtherEmlsrLink().

+ Here is the call graph for this function:

◆ NotifyChannelReleased()

void ns3::EhtFrameExchangeManager::NotifyChannelReleased ( Ptr< Txop txop)
overrideprotectedvirtual

◆ NotifySwitchingEmlsrLink()

void ns3::EhtFrameExchangeManager::NotifySwitchingEmlsrLink ( Ptr< WifiPhy phy,
uint8_t  linkId,
Time  delay 
)

Notify that the given PHY will switch channel to operate on another EMLSR link after the given delay.

Parameters
phythe given PHY
linkIdthe ID of the EMLSR link on which the given PHY is operating
delaythe delay after which the channel switch will be completed

Definition at line 443 of file eht-frame-exchange-manager.cc.

References ns3::Time::As(), ns3::FrameExchangeManager::m_linkId, ns3::FrameExchangeManager::m_phy, ns3::HeFrameExchangeManager::m_staMac, ns3::StaWifiMac::NotifySwitchingEmlsrLink(), NS_ABORT_MSG_IF, NS_LOG_FUNCTION, third::phy, ns3::FrameExchangeManager::ResetPhy(), and ns3::Time::US.

+ Here is the call graph for this function:

◆ PostProcessFrame()

◆ PreProcessFrame()

void ns3::EhtFrameExchangeManager::PreProcessFrame ( Ptr< const WifiPsdu psdu,
const WifiTxVector txVector 
)
overrideprotectedvirtual

Perform actions that are possibly needed when receiving any frame, independently of whether the frame is addressed to this station (e.g., storing buffer status reports).

Parameters
psduthe received PSDU
txVectorTX vector of the received PSDU

Reimplemented from ns3::FrameExchangeManager.

Definition at line 751 of file eht-frame-exchange-manager.cc.

References EmlsrSwitchToListening(), ns3::StaWifiMac::GetEmlsrManager(), ns3::WifiTxTimer::GetStasExpectedToRespond(), ns3::FrameExchangeManager::GetWifiRemoteStationManager(), ns3::StaWifiMac::IsEmlsrLink(), ns3::WifiTxVector::IsUlMu(), ns3::HeFrameExchangeManager::m_apMac, ns3::FrameExchangeManager::m_linkId, ns3::FrameExchangeManager::m_protectedStas, ns3::HeFrameExchangeManager::m_staMac, ns3::FrameExchangeManager::m_txTimer, NS_LOG_FUNCTION, ns3::QosFrameExchangeManager::PreProcessFrame(), and ns3::Seconds().

+ Here is the call graph for this function:

◆ ReceiveMpdu()

void ns3::EhtFrameExchangeManager::ReceiveMpdu ( Ptr< const WifiMpdu mpdu,
RxSignalInfo  rxSignalInfo,
const WifiTxVector txVector,
bool  inAmpdu 
)
overrideprotectedvirtual

This method handles the reception of an MPDU (possibly included in an A-MPDU)

Parameters
mpduthe received MPDU
rxSignalInfothe info on the received signal (
See also
RxSignalInfo)
Parameters
txVectorTxVector of the received PSDU
inAmpdutrue if the MPDU is part of an A-MPDU

It might happen that the AP MLD has not yet received a data frame being transmitted by us on another link and starts sending an ICF on this link. The transmission of the ICF might be long enough to terminate after the subsequent acknowledgment, which terminates the TXOP on the other link. Consequently, no TXOP is ongoing when the reception of the ICF ends, hence the ICF is not dropped and a DL TXOP can start on this link. However, even if the aux PHY is able to receive the ICF, we need to allow enough time for the main PHY to switch to this link. Therefore, we assume that the ICF is successfully received (by an aux PHY) if the TXOP on the other link ended before the padding of the ICF. In order to determine when the TXOP ended, we can determine when the medium sync delay timer started on this link.

                   TXOP end
                       │
                   ┌───┐                               another

AP MLD │ACK│ link ───────────┬─────────┬┴───┴─────────────────────────────────────── EMLSR │ QoS │ │ main PHY client │ Data │ │ └─────────┘ │ │- medium sync delay timer -│ ┌─────┬───┐ this AP MLD │ ICF │pad│ link ────────────────────┴─────┴───┴─────────────────────────────────── aux PHY

Reimplemented from ns3::FrameExchangeManager.

Definition at line 841 of file eht-frame-exchange-manager.cc.

References ns3::WifiMac::BlockUnicastTxOnLinks(), ns3::EventId::Cancel(), ns3::CtrlTriggerHeader::end(), ns3::CtrlTriggerHeader::FindUserInfoWithAid(), ns3::TimeValue::Get(), ns3::StaWifiMac::GetAssociationId(), ns3::StaWifiMac::GetEmlsrManager(), ns3::WifiMac::GetLinkForPhy(), ns3::WifiMac::GetNLinks(), ns3::WifiPhy::GetSifs(), ns3::FrameExchangeManager::GetWifiRemoteStationManager(), ns3::WifiMac::GetWifiRemoteStationManager(), ns3::StaWifiMac::IsAssociated(), ns3::StaWifiMac::IsEmlsrLink(), ns3::CtrlTriggerHeader::IsMuRts(), ns3::HeFrameExchangeManager::m_apMac, ns3::FrameExchangeManager::m_bssid, ns3::FrameExchangeManager::m_linkId, ns3::FrameExchangeManager::m_mac, m_ongoingTxopEnd, ns3::FrameExchangeManager::m_phy, ns3::FrameExchangeManager::m_self, ns3::HeFrameExchangeManager::m_staMac, m_transDelayTimer, ns3::NanoSeconds(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, ns3::HeFrameExchangeManager::ReceiveMpdu(), ns3::Time::S, ns3::Simulator::Schedule(), TxopEnd(), ns3::WifiMac::UnblockUnicastTxOnLinks(), ns3::USING_OTHER_EMLSR_LINK, and UsingOtherEmlsrLink().

+ Here is the call graph for this function:

◆ RxStartIndication()

void ns3::EhtFrameExchangeManager::RxStartIndication ( WifiTxVector  txVector,
Time  psduDuration 
)
overrideprotectedvirtual
Parameters
txVectorthe TXVECTOR decoded from PHY header.
psduDurationthe duration of the PSDU that is about to be received.

This method is typically invoked by the lower PHY layer to notify the MAC layer that the reception of a PSDU is starting. This is equivalent to the PHY-RXSTART primitive. If the reception is correct for at least one MPDU of the PSDU the Receive method will be called after psduDuration.

Reimplemented from ns3::FrameExchangeManager.

Definition at line 92 of file eht-frame-exchange-manager.cc.

References ns3::Time::As(), ns3::Time::MS, NS_LOG_FUNCTION, ns3::HeFrameExchangeManager::RxStartIndication(), and UpdateTxopEndOnRxStartIndication().

+ Here is the call graph for this function:

◆ SendEmlOmn()

◆ SendMuRts()

◆ SetLinkId()

void ns3::EhtFrameExchangeManager::SetLinkId ( uint8_t  linkId)
overridevirtual

Set the ID of the link this Frame Exchange Manager is associated with.

Parameters
linkIdthe ID of the link this Frame Exchange Manager is associated with

Reimplemented from ns3::FrameExchangeManager.

Definition at line 101 of file eht-frame-exchange-manager.cc.

References ns3::FrameExchangeManager::GetAckManager(), ns3::FrameExchangeManager::GetProtectionManager(), ns3::HtFrameExchangeManager::m_mpduAggregator, ns3::HtFrameExchangeManager::m_msduAggregator, and ns3::FrameExchangeManager::SetLinkId().

+ Here is the call graph for this function:

◆ StartTransmission()

bool ns3::EhtFrameExchangeManager::StartTransmission ( Ptr< Txop dcf,
uint16_t  allowedWidth 
)
overridevirtual

◆ TransmissionFailed()

void ns3::EhtFrameExchangeManager::TransmissionFailed ( )
overrideprotectedvirtual

Take necessary actions upon a transmission failure.

A non-QoS station releases the channel when this method is called.

Reimplemented from ns3::FrameExchangeManager.

Definition at line 701 of file eht-frame-exchange-manager.cc.

References ns3::StaWifiMac::GetEmlsrManager(), ns3::StaWifiMac::IsEmlsrLink(), ns3::FrameExchangeManager::m_linkId, ns3::HeFrameExchangeManager::m_staMac, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::QosFrameExchangeManager::TransmissionFailed().

+ Here is the call graph for this function:

◆ TransmissionSucceeded()

void ns3::EhtFrameExchangeManager::TransmissionSucceeded ( )
overrideprotectedvirtual

Take necessary actions upon a transmission success.

A non-QoS station transmits the next fragment, if any, or releases the channel, otherwise.

Reimplemented from ns3::FrameExchangeManager.

Definition at line 685 of file eht-frame-exchange-manager.cc.

References ns3::StaWifiMac::GetEmlsrManager(), ns3::StaWifiMac::IsEmlsrLink(), ns3::FrameExchangeManager::m_linkId, ns3::HeFrameExchangeManager::m_staMac, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::HeFrameExchangeManager::TransmissionSucceeded().

+ Here is the call graph for this function:

◆ TxopEnd()

◆ UpdateTxopEndOnRxEnd()

void ns3::EhtFrameExchangeManager::UpdateTxopEndOnRxEnd ( Time  durationId)
private

Update the TXOP end timer when a frame reception ends.

Parameters
durationIdthe Duration/ID value carried by the received frame

Definition at line 1083 of file eht-frame-exchange-manager.cc.

References ns3::Time::As(), ns3::EventId::Cancel(), ns3::WifiPhy::GetSifs(), ns3::WifiPhy::GetSlot(), ns3::EventId::IsRunning(), m_ongoingTxopEnd, ns3::FrameExchangeManager::m_phy, ns3::MicroSeconds(), ns3::Simulator::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::RX_PHY_START_DELAY_USEC, ns3::Time::S, ns3::Simulator::Schedule(), TxopEnd(), and ns3::Time::US.

Referenced by PostProcessFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateTxopEndOnRxStartIndication()

void ns3::EhtFrameExchangeManager::UpdateTxopEndOnRxStartIndication ( Time  psduDuration)
private

Update the TXOP end timer when receiving a PHY-RXSTART.indication.

Parameters
psduDurationthe TX duration of the PSDU being received

Definition at line 1064 of file eht-frame-exchange-manager.cc.

References ns3::Time::As(), ns3::EventId::Cancel(), ns3::EventId::IsRunning(), ns3::Time::IsStrictlyPositive(), m_ongoingTxopEnd, ns3::Time::MS, ns3::NanoSeconds(), ns3::Simulator::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::Time::S, ns3::Simulator::Schedule(), and TxopEnd().

Referenced by RxStartIndication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateTxopEndOnTxStart()

void ns3::EhtFrameExchangeManager::UpdateTxopEndOnTxStart ( Time  txDuration,
Time  durationId 
)
private

Update the TXOP end timer when starting a frame transmission.

Parameters
txDurationthe TX duration of the frame being transmitted
durationIdthe Duration/ID value carried by the frame being transmitted

Definition at line 1022 of file eht-frame-exchange-manager.cc.

References ns3::Time::As(), ns3::EventId::Cancel(), ns3::WifiTxTimer::GetDelayLeft(), ns3::WifiPhy::GetSifs(), ns3::WifiPhy::GetSlot(), ns3::EventId::IsRunning(), ns3::WifiTxTimer::IsRunning(), m_ongoingTxopEnd, ns3::FrameExchangeManager::m_phy, ns3::FrameExchangeManager::m_txTimer, ns3::MicroSeconds(), ns3::Time::MS, ns3::Simulator::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, ns3::RX_PHY_START_DELAY_USEC, ns3::Time::S, ns3::Simulator::Schedule(), TxopEnd(), and ns3::Time::US.

Referenced by ForwardPsduDown(), and ForwardPsduMapDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UsingOtherEmlsrLink()

bool ns3::EhtFrameExchangeManager::UsingOtherEmlsrLink ( ) const

Member Data Documentation

◆ m_ongoingTxopEnd

EventId ns3::EhtFrameExchangeManager::m_ongoingTxopEnd
private

event indicating the possible end of the current TXOP (of which we are not the holder)

Definition at line 159 of file eht-frame-exchange-manager.h.

Referenced by CtsAfterMuRtsTimeout(), DoDispose(), PostProcessFrame(), ReceiveMpdu(), TxopEnd(), UpdateTxopEndOnRxEnd(), UpdateTxopEndOnRxStartIndication(), and UpdateTxopEndOnTxStart().

◆ m_transDelayTimer

std::unordered_map<Mac48Address, EventId, WifiAddressHash> ns3::EhtFrameExchangeManager::m_transDelayTimer
private

MLD address-indexed map of transition delay timers.

Definition at line 162 of file eht-frame-exchange-manager.h.

Referenced by EmlsrSwitchToListening(), and ReceiveMpdu().


The documentation for this class was generated from the following files: