Classes | Public Member Functions | Static Public Member Functions

ns3::MeshWifiInterfaceMac Class Reference
[Mesh]

Basic MAC of mesh point Wi-Fi interface. Its function is extendable through plugins mechanism. More...

#include <mesh-wifi-interface-mac.h>

Inheritance diagram for ns3::MeshWifiInterfaceMac:
Inheritance graph
[legend]
Collaboration diagram for ns3::MeshWifiInterfaceMac:
Collaboration graph
[legend]

List of all members.

Classes

struct  Statistics

Public Member Functions

 MeshWifiInterfaceMac ()
 C-tor.
virtual ~MeshWifiInterfaceMac ()
 D-tor.
Ptr< WifiPhyGetWifiPhy () const
 Needed to obtain phy to calculate TX-duration.
void SendManagementFrame (Ptr< Packet > frame, const WifiMacHeader &hdr)
 To be used by plugins sending management frames.
bool CheckSupportedRates (SupportedRates rates) const
SupportedRates GetSupportedRates () const
void Report (std::ostream &) const
 Statistics:
void ResetStats ()
void SetBeaconGeneration (bool enable)
 Enable/disable beacons.
void SetQueue (AcIndex ac)
WifiPhyStandard GetPhyStandard () const
virtual void FinishConfigureStandard (enum WifiPhyStandard standard)
Inherited from WifiMac

virtual void SetSlot (Time slotTime)
virtual void SetSifs (Time sifs)
virtual void SetPifs (Time pifs)
virtual void SetCtsTimeout (Time ctsTimeout)
virtual void SetAckTimeout (Time ackTimeout)
virtual void SetEifsNoDifs (Time eifsNoDifs)
virtual Time GetSlot () const
virtual Time GetSifs () const
virtual Time GetPifs () const
virtual Time GetCtsTimeout () const
virtual Time GetAckTimeout () const
virtual Time GetEifsNoDifs () const
virtual void SetWifiPhy (Ptr< WifiPhy > phy)
virtual void SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > stationManager)
virtual void Enqueue (Ptr< const Packet > packet, Mac48Address to, Mac48Address from)
virtual void Enqueue (Ptr< const Packet > packet, Mac48Address to)
virtual bool SupportsSendFrom () const
virtual void SetForwardUpCallback (Callback< void, Ptr< Packet >, Mac48Address, Mac48Address > upCallback)
virtual void SetLinkUpCallback (Callback< void > linkUp)
virtual void SetLinkDownCallback (Callback< void > linkDown)
virtual Mac48Address GetAddress () const
virtual Mac48Address GetBssid () const
virtual Ssid GetSsid () const
virtual void SetAddress (Mac48Address address)
virtual void SetSsid (Ssid ssid)
Each mesh point interfaces must know the mesh point address

void SetMeshPointAddress (Mac48Address)
Mac48Address GetMeshPointAddress () const
Beacons

void SetRandomStartDelay (Time interval)
 Set maximum initial random delay before first beacon.
void SetBeaconInterval (Time interval)
 Set interval between two successive beacons.
Time GetBeaconInterval () const
Time GetTbtt () const
 Next beacon frame time.
void ShiftTbtt (Time shift)
 Shift TBTT.
Plugins

void InstallPlugin (Ptr< MeshWifiInterfaceMacPlugin > plugin)
 Install plugin. TODO return unique ID to allow unregister plugins.
Channel switching

Channel center frequency = Channel starting frequency + 5 * channel_id (MHz), where Starting channel frequency is standard-dependent as defined in IEEE 802.11-2007 17.3.8.3.2.

Number of channels to use must be limited elsewhere.

uint16_t GetFrequencyChannel () const
 Current channel Id.
void SwitchFrequencyChannel (uint16_t new_id)
 Switch channel.

void SetLinkMetricCallback (Callback< uint32_t, Mac48Address, Ptr< MeshWifiInterfaceMac > > cb)
uint32_t GetLinkMetric (Mac48Address peerAddress)
Ptr< WifiRemoteStationManagerGetStationManager ()

Static Public Member Functions

static TypeId GetTypeId ()
 Never forget to support typeid.

Detailed Description

Basic MAC of mesh point Wi-Fi interface. Its function is extendable through plugins mechanism.

Now only three output queues are used:


Member Function Documentation

bool ns3::MeshWifiInterfaceMac::CheckSupportedRates ( SupportedRates  rates  )  const
Returns:
true if rates are supported
virtual void ns3::MeshWifiInterfaceMac::Enqueue ( Ptr< const Packet packet,
Mac48Address  to,
Mac48Address  from 
) [virtual]
Parameters:
packet the packet to send.
to the address to which the packet should be sent.
from the address from which the packet should be sent.

The packet should be enqueued in a tx queue, and should be dequeued as soon as the DCF function determines that access it granted to this MAC. The extra parameter "from" allows this device to operate in a bridged mode, forwarding received frames without altering the source address.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::Enqueue ( Ptr< const Packet packet,
Mac48Address  to 
) [virtual]
Parameters:
packet the packet to send.
to the address to which the packet should be sent.

The packet should be enqueued in a tx queue, and should be dequeued as soon as the DCF function determines that access it granted to this MAC.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::FinishConfigureStandard ( enum WifiPhyStandard  standard  )  [virtual]
Parameters:
standard the phy standard to be used

This method is called by ns3::WifiMac::ConfigureStandard to complete the configuration process for a requested phy standard. Subclasses should implement this method to configure their dcf queues according to the requested standard.

Implements ns3::WifiMac.

virtual Time ns3::MeshWifiInterfaceMac::GetAckTimeout (  )  const [virtual]
Returns:
the current ACK timeout duration.

Implements ns3::WifiMac.

virtual Mac48Address ns3::MeshWifiInterfaceMac::GetAddress (  )  const [virtual]
Returns:
the MAC address associated to this MAC layer.

Implements ns3::WifiMac.

Time ns3::MeshWifiInterfaceMac::GetBeaconInterval (  )  const
Returns:
interval between two beacons
virtual Mac48Address ns3::MeshWifiInterfaceMac::GetBssid (  )  const [virtual]
Returns:
the bssid of the network this device belongs to.

Implements ns3::WifiMac.

virtual Time ns3::MeshWifiInterfaceMac::GetCtsTimeout (  )  const [virtual]
Returns:
the current CTS timeout duration.

Implements ns3::WifiMac.

virtual Time ns3::MeshWifiInterfaceMac::GetEifsNoDifs (  )  const [virtual]
Returns:
the current EIFS minus DIFS duration

Implements ns3::WifiMac.

virtual Time ns3::MeshWifiInterfaceMac::GetPifs (  )  const [virtual]
Returns:
the current PIFS duration.

Implements ns3::WifiMac.

virtual Time ns3::MeshWifiInterfaceMac::GetSifs (  )  const [virtual]
Returns:
the current SIFS duration.

Implements ns3::WifiMac.

virtual Time ns3::MeshWifiInterfaceMac::GetSlot (  )  const [virtual]
Returns:
the current slot duration.

Implements ns3::WifiMac.

virtual Ssid ns3::MeshWifiInterfaceMac::GetSsid (  )  const [virtual]
Returns:
the ssid which this MAC layer is going to try to stay in.

Implements ns3::WifiMac.

SupportedRates ns3::MeshWifiInterfaceMac::GetSupportedRates (  )  const
Returns:
list of supported bitrates
Time ns3::MeshWifiInterfaceMac::GetTbtt (  )  const

Next beacon frame time.

This is supposed to be used by any entity managing beacon collision avoidance (e.g. Peer management protocol in 802.11s)

static TypeId ns3::MeshWifiInterfaceMac::GetTypeId ( void   )  [static]

Never forget to support typeid.

This method returns the TypeId associated to ns3::MeshWifiInterfaceMac.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/LinkManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/LinkManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/LinkManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/SSManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/SSManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/SSManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/Classifier/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/Classifier/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/Classifier/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/NoiseModel/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/NoiseModel/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/NoiseModel/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/PropagationModel/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/PropagationModel/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/PropagationModel/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Mac/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Mac/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Phy/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Phy/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Phy/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Transducer/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Transducer/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Transducer/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/LinkManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/LinkManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/LinkManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/SSManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/SSManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/SSManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/Classifier/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/Classifier/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/Classifier/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BandwidthManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BandwidthManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BandwidthManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BurstProfileManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BurstProfileManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BurstProfileManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/NoiseModel/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/NoiseModel/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/NoiseModel/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/PropagationModel/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/PropagationModel/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/PropagationModel/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/ConnectionManager/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/ConnectionManager/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/ConnectionManager/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/NoiseModel/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/NoiseModel/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/NoiseModel/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/PropagationModel/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/PropagationModel/$ns3::WifiMac/$ns3::MeshWifiInterfaceMac
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/PropagationModel/$ns3::WifiNetDevice/Mac/$ns3::MeshWifiInterfaceMac

Attributes defined for this type:

  • BeaconInterval: Beacon Interval
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 500000000ns
    • Flags: construct write read
  • RandomStart: Window when beacon generating starts (uniform random) in seconds
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 500000000ns
    • Flags: construct write read
  • BeaconGeneration: Enable/Disable Beaconing.
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: true
    • Flags: construct write read

Attributes defined in parent class ns3::WifiMac:

  • CtsTimeout: When this timeout expires, the RTS/CTS handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 75000ns
    • Flags: construct write read
  • AckTimeout: When this timeout expires, the DATA/ACK handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 75000ns
    • Flags: construct write read
  • BasicBlockAckTimeout: When this timeout expires, the BASIC_BLOCK_ACK_REQ/BASIC_BLOCK_ACK handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 281000ns
    • Flags: construct write read
  • CompressedBlockAckTimeout: When this timeout expires, the COMPRESSED_BLOCK_ACK_REQ/COMPRESSED_BLOCK_ACK handshake has failed.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 99000ns
    • Flags: construct write read
  • Sifs: The value of the SIFS constant.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 16000ns
    • Flags: construct write read
  • EifsNoDifs: The value of EIFS-DIFS
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 60000ns
    • Flags: construct write read
  • Slot: The duration of a Slot.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 9000ns
    • Flags: construct write read
  • Pifs: The value of the PIFS constant.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 25000ns
    • Flags: construct write read
  • MaxPropagationDelay: The maximum propagation delay. Unused for now.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: 3333ns
    • Flags: construct write read
  • Ssid: The ssid we want to belong to.
    • Set with class: SsidValue
    • Underlying type: Ssid
    • Initial value: default
    • Flags: construct write read

TraceSources defined for this type:

  • TxOkHeader: The header of successfully transmitted packet
  • TxErrHeader: The header of unsuccessfully transmitted packet

TraceSources defined in parent class ns3::WifiMac:

  • MacTx: A packet has been received from higher layers and is being processed in preparation for queueing for transmission.
  • MacTxDrop: A packet has been dropped in the MAC layer before being queued for transmission.
  • MacPromiscRx: A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack. This is a promiscuous trace,
  • MacRx: A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack. This is a non-promiscuous trace,
  • MacRxDrop: A packet has been dropped in the MAC layer after it has been passed up from the physical layer.

Reimplemented from ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetAckTimeout ( Time  ackTimeout  )  [virtual]
Parameters:
ackTimeout the duration of an ACK timeout.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetAddress ( Mac48Address  address  )  [virtual]
Parameters:
address the current address of this MAC layer.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetCtsTimeout ( Time  ctsTimeout  )  [virtual]
Parameters:
ctsTimeout the duration of a CTS timeout.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetEifsNoDifs ( Time  eifsNoDifs  )  [virtual]
Parameters:
eifsNoDifs the duration of an EIFS minus DIFS.

This value is used to calculate the EIFS depending on AIFSN.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetForwardUpCallback ( Callback< void, Ptr< Packet >, Mac48Address, Mac48Address upCallback  )  [virtual]
Parameters:
upCallback the callback to invoke when a packet must be forwarded up the stack.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetLinkDownCallback ( Callback< void >  linkDown  )  [virtual]
Parameters:
linkDown the callback to invoke when the link becomes down.

Implements ns3::WifiMac.

void ns3::MeshWifiInterfaceMac::SetLinkMetricCallback ( Callback< uint32_t, Mac48Address, Ptr< MeshWifiInterfaceMac > >  cb  ) 

\ name Metric Calculation routines:

virtual void ns3::MeshWifiInterfaceMac::SetLinkUpCallback ( Callback< void >  linkUp  )  [virtual]
Parameters:
linkUp the callback to invoke when the link becomes up.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetPifs ( Time  pifs  )  [virtual]
Parameters:
pifs the pifs duration.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetSifs ( Time  sifs  )  [virtual]
Parameters:
sifs the sifs duration

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetSlot ( Time  slotTime  )  [virtual]
Parameters:
slotTime the slot duration

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetSsid ( Ssid  ssid  )  [virtual]
Parameters:
ssid the current ssid of this MAC layer.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetWifiPhy ( Ptr< WifiPhy phy  )  [virtual]
Parameters:
phy the physical layer attached to this MAC.

Implements ns3::WifiMac.

virtual void ns3::MeshWifiInterfaceMac::SetWifiRemoteStationManager ( Ptr< WifiRemoteStationManager stationManager  )  [virtual]
Parameters:
stationManager the station manager attached to this MAC.

Implements ns3::WifiMac.

void ns3::MeshWifiInterfaceMac::ShiftTbtt ( Time  shift  ) 

Shift TBTT.

This is supposed to be used by any entity managing beacon collision avoidance (e.g. Peer management protocol in 802.11s)

Attention:
User of ShiftTbtt () must take care to not shift it to the past.

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