A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
eht-configuration.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 DERONNE SOFTWARE ENGINEERING
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Authors: Sébastien Deronne <sebastien.deronne@gmail.com>
7 * Stefano Avallone <stavallo@unina.it>
8 */
9
10#ifndef EHT_CONFIGURATION_H
11#define EHT_CONFIGURATION_H
12
13#include "ns3/nstime.h"
14#include "ns3/object.h"
15#include "ns3/wifi-export.h"
16#include "ns3/wifi-utils.h"
17
18#include <list>
19#include <map>
20
21namespace ns3
22{
23
24/// default MediumSyncDelay timer duration (max PPDU TX time rounded to a multiple of 32 us)
25static constexpr uint16_t DEFAULT_MSD_DURATION_USEC = 5484 / 32 * 32;
26
27/// default MediumSyncDelay timer OFDM ED threshold
28static constexpr int8_t DEFAULT_MSD_OFDM_ED_THRESH = -72;
29
30/// default MediumSyncDelay max number of TXOP attempts
31static constexpr uint8_t DEFAULT_MSD_MAX_N_TXOPS = 1;
32
33/**
34 * @brief TID-to-Link Mapping Negotiation Support
35 */
42
43/**
44 * @brief Stream insertion operator.
45 * @param [in] os The reference to the output stream.
46 * @param [in] negsupport The WifiTidToLinkMappingNegSupport.
47 * @return The reference to the output stream.
48 */
49WIFI_EXPORT std::ostream& operator<<(std::ostream& os, WifiTidToLinkMappingNegSupport negsupport);
50
51/**
52 * @brief EHT configuration
53 * @ingroup wifi
54 *
55 * This object stores EHT configuration information, for use in modifying
56 * AP or STA behavior and for constructing EHT-related information elements.
57 *
58 */
59class WIFI_EXPORT EhtConfiguration : public Object
60{
61 public:
63 ~EhtConfiguration() override;
64
65 /**
66 * @brief Get the type ID.
67 * @return the object TypeId
68 */
69 static TypeId GetTypeId();
70
71 /**
72 * @param dir the direction for the requested TID-to-Link Mapping
73 * @return a TID-indexed map of the list of links where each TID is mapped to
74 */
76
77 /**
78 * Set the TID-to-Link mapping for the given direction.
79 *
80 * @param dir the direction for the TID-to-Link Mapping
81 * @param mapping a list-of-TIDs-indexed map of the list of links where the TIDs are mapped to
82 */
84 const std::map<std::list<uint8_t>, std::list<uint8_t>>& mapping);
85
86 /**
87 * Get whether EMLSR option is activated
88 *
89 * @return true if EMLSR option is activated, false otherwise
90 */
91 bool GetEmlsrActivated() const;
92
93 Time m_transitionTimeout; //!< Transition timeout
94 Time m_mediumSyncDuration; //!< duration of the MediumSyncDelay timer
95 int8_t m_msdOfdmEdThreshold; //!< MediumSyncDelay OFDM ED threshold
96 uint8_t m_msdMaxNTxops; //!< MediumSyncDelay max number of TXOPs
98 m_tidLinkMappingSupport; //!< TID-to-Link Mapping Negotiation Support
99 std::map<std::list<uint64_t>, std::list<uint64_t>>
100 m_linkMappingDl; //!< TIDs-indexed Link Mapping for downlink
101 std::map<std::list<uint64_t>, std::list<uint64_t>>
102 m_linkMappingUl; //!< TIDs-indexed Link Mapping for uplink
103 dB_u m_per20CcaSensitivityThreshold; //!< CCA threshold for Per 20MHz check
104
105 private:
106 bool m_emlsrActivated; //!< whether EMLSR option is activated
107};
108
109} // namespace ns3
110
111#endif /* EHT_CONFIGURATION_H */
static TypeId GetTypeId()
Get the type ID.
bool GetEmlsrActivated() const
Get whether EMLSR option is activated.
Time m_mediumSyncDuration
duration of the MediumSyncDelay timer
bool m_emlsrActivated
whether EMLSR option is activated
WifiTidLinkMapping GetTidLinkMapping(WifiDirection dir) const
Time m_transitionTimeout
Transition timeout.
std::map< std::list< uint64_t >, std::list< uint64_t > > m_linkMappingDl
TIDs-indexed Link Mapping for downlink.
void SetTidLinkMapping(WifiDirection dir, const std::map< std::list< uint8_t >, std::list< uint8_t > > &mapping)
Set the TID-to-Link mapping for the given direction.
WifiTidToLinkMappingNegSupport m_tidLinkMappingSupport
TID-to-Link Mapping Negotiation Support.
uint8_t m_msdMaxNTxops
MediumSyncDelay max number of TXOPs.
std::map< std::list< uint64_t >, std::list< uint64_t > > m_linkMappingUl
TIDs-indexed Link Mapping for uplink.
dB_u m_per20CcaSensitivityThreshold
CCA threshold for Per 20MHz check.
int8_t m_msdOfdmEdThreshold
MediumSyncDelay OFDM ED threshold.
Object()
Caller graph was not generated because of its size.
Definition object.cc:93
Simulation virtual time values and global simulation resolution.
Definition nstime.h:95
a unique identifier for an interface.
Definition type-id.h:50
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static constexpr uint8_t DEFAULT_MSD_MAX_N_TXOPS
default MediumSyncDelay max number of TXOP attempts
WifiTidToLinkMappingNegSupport
TID-to-Link Mapping Negotiation Support.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition angles.cc:148
WifiDirection
Wifi direction.
Definition wifi-utils.h:42
static constexpr int8_t DEFAULT_MSD_OFDM_ED_THRESH
default MediumSyncDelay timer OFDM ED threshold
std::map< tid_t, std::set< linkId_t > > WifiTidLinkMapping
TID-indexed map of the link set to which the TID is mapped.
Definition wifi-utils.h:79
double dB_u
dB weak type
Definition wifi-units.h:28
static constexpr uint16_t DEFAULT_MSD_DURATION_USEC
default MediumSyncDelay timer duration (max PPDU TX time rounded to a multiple of 32 us)
std::string dir