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
14namespace ns3
15{
16
17/**
18 * \brief Constant OBSS PD algorithm
19 * \ingroup wifi
20 *
21 * This constant OBSS_PD algorithm is a simple OBSS_PD algorithm which evaluates if a receiving
22 * signal should be accepted or rejected based on a constant threshold.
23 *
24 * Once a HE-SIG-A has been received by the PHY, the ReceiveHeSigA method is
25 * triggered. The algorithm then checks whether this is an OBSS frame by comparing its own BSS
26 * color with the BSS color of the received preamble. If this is an OBSS frame, it compares the
27 * received RSSI with its configured OBSS_PD level value. The PHY then gets reset to IDLE state
28 * in case the received RSSI is lower than that constant OBSS PD level value, and is informed
29 * about TX power restrictions that might be applied to the next transmission.
30 */
32{
33 public:
35
36 /**
37 * \brief Get the type ID.
38 * \return the object TypeId
39 */
40 static TypeId GetTypeId();
41
42 void ConnectWifiNetDevice(const Ptr<WifiNetDevice> device) override;
43 void ReceiveHeSigA(HeSigAParameters params) override;
44};
45
46} // namespace ns3
47
48#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.
a unique identifier for an interface.
Definition type-id.h:48
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:44