A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
constant-obss-pd-algorithm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 University of Washington
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Sébastien Deronne <sebastien.deronne@gmail.com>
7 */
8
9#ifndef CONSTANT_OBSS_PD_ALGORITHM_H
10#define CONSTANT_OBSS_PD_ALGORITHM_H
11
12#include "obss-pd-algorithm.h"
13
14#include "ns3/wifi-export.h"
15
16namespace ns3
17{
18
19/**
20 * @brief Constant OBSS PD algorithm
21 * @ingroup wifi
22 *
23 * This constant OBSS_PD algorithm is a simple OBSS_PD algorithm which evaluates if a receiving
24 * signal should be accepted or rejected based on a constant threshold.
25 *
26 * Once a HE-SIG-A has been received by the PHY, the ReceiveHeSigA method is
27 * triggered. The algorithm then checks whether this is an OBSS frame by comparing its own BSS
28 * color with the BSS color of the received preamble. If this is an OBSS frame, it compares the
29 * received RSSI with its configured OBSS_PD level value. The PHY then gets reset to IDLE state
30 * in case the received RSSI is lower than that constant OBSS PD level value, and is informed
31 * about TX power restrictions that might be applied to the next transmission.
32 */
33class WIFI_EXPORT ConstantObssPdAlgorithm : public ObssPdAlgorithm
34{
35 public:
37
38 /**
39 * @brief Get the type ID.
40 * @return the object TypeId
41 */
42 static TypeId GetTypeId();
43
44 void ConnectWifiNetDevice(const Ptr<WifiNetDevice> device) override;
45 void ReceiveHeSigA(HeSigAParameters params) override;
46};
47
48} // namespace ns3
49
50#endif /* CONSTANT_OBSS_PD_ALGORITHM_H */
void ConnectWifiNetDevice(const Ptr< WifiNetDevice > device) override
Connect the WifiNetDevice and setup eventual callbacks.
void ReceiveHeSigA(HeSigAParameters params) override
static TypeId GetTypeId()
Get the type ID.
OBSS PD algorithm interface.
Smart pointer class similar to boost::intrusive_ptr.
Definition ptr.h:70
a unique identifier for an interface.
Definition type-id.h:50
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Parameters for received HE-SIG-A for OBSS_PD based SR.
Definition he-phy.h:45