A Discrete-Event Network Simulator
QKDNetSim v2.0 (NS-3 v3.41) @ (+)
API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
eht-configuration.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021 DERONNE SOFTWARE ENGINEERING
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation;
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  *
17  * Authors: Sébastien Deronne <sebastien.deronne@gmail.com>
18  * Stefano Avallone <stavallo@unina.it>
19  */
20 
21 #ifndef EHT_CONFIGURATION_H
22 #define EHT_CONFIGURATION_H
23 
24 #include "ns3/nstime.h"
25 #include "ns3/object.h"
26 #include "ns3/wifi-utils.h"
27 
28 #include <list>
29 #include <map>
30 
31 namespace ns3
32 {
33 
35 static constexpr uint16_t DEFAULT_MSD_DURATION_USEC = 5484 / 32 * 32;
36 
38 static constexpr int8_t DEFAULT_MSD_OFDM_ED_THRESH = -72;
39 
41 static constexpr uint8_t DEFAULT_MSD_MAX_N_TXOPS = 1;
42 
47 {
51 };
52 
61 class EhtConfiguration : public Object
62 {
63  public:
65  ~EhtConfiguration() override;
66 
71  static TypeId GetTypeId();
72 
78 
86  const std::map<std::list<uint8_t>, std::list<uint8_t>>& mapping);
87 
88  private:
93  uint8_t m_msdMaxNTxops;
96  std::map<std::list<uint64_t>, std::list<uint64_t>>
98  std::map<std::list<uint64_t>, std::list<uint64_t>>
100 };
101 
102 } // namespace ns3
103 
104 #endif /* EHT_CONFIGURATION_H */
EHT configuration.
static TypeId GetTypeId()
Get the type ID.
Time m_mediumSyncDuration
duration of the MediumSyncDelay timer
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.
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.
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.
int8_t m_msdOfdmEdThreshold
MediumSyncDelay OFDM ED threshold.
A base class which provides memory management and object aggregation.
Definition: object.h:89
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
a unique identifier for an interface.
Definition: type-id.h:59
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.
@ WIFI_TID_TO_LINK_MAPPING_SAME_LINK_SET
@ WIFI_TID_TO_LINK_MAPPING_NOT_SUPPORTED
@ WIFI_TID_TO_LINK_MAPPING_ANY_LINK_SET
WifiDirection
Wifi direction.
Definition: wifi-utils.h:43
static constexpr int8_t DEFAULT_MSD_OFDM_ED_THRESH
default MediumSyncDelay timer OFDM ED threshold
std::map< uint8_t, std::set< uint8_t > > WifiTidLinkMapping
TID-indexed map of the link set to which the TID is mapped.
Definition: wifi-utils.h:74
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