Simple Module Ieee80211MgmtAP

Package: inet.linklayer.ieee80211.mgmt
File: src/linklayer/ieee80211/mgmt/Ieee80211MgmtAP.ned

C++ definition: click here

Used in 802.11 infrastructure mode: handles management frames for an access point (AP). It relies on a connected Ieee80211Mac for actual reception and transmission of frames.

When simulating an AP that has other (Ethernet or wireless) interfaces as well, this module can be connected to a MACRelayUnit which performs bridging of Ethernet frames. This module will perform conversion from/to EtherFrame for MACRelayUnit.

This module never switches channels, that is, it will operate on the channel the physical layer is configured for (see channelNumber in Ieee80211Radio).

Author: Andras Varga

Ieee80211MgmtAP

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

Ieee80211NicAP (compound module)

This NIC implements an 802.11 network interface card, in an AP, using infrastructure mode.

Parameters:

Name Type Default value Description
ssid string "SSID"
beaconInterval double 100ms
frameCapacity int 100

maximum queue length

numAuthSteps int 4

use 2 for Open System auth, 4 for WEP

Properties:

Name Value Description
display i=block/cogwheel

dataRate: numeric; XXX TBD

Gates:

Name Direction Size Description
uppergateIn input

from MACRelayUnit; can be left unconnected

uppergateOut output

to MACRelayUnit; can be left unconnected

macIn input

from Ieee80211Mac

macOut output

to Ieee80211Mac

Source code:

//
// Used in 802.11 infrastructure mode: handles management frames for
// an access point (AP). It relies on a connected Ieee80211Mac for actual
// reception and transmission of frames.
//
// When simulating an AP that has other (Ethernet or wireless) interfaces
// as well, this module can be connected to a MACRelayUnit which performs
// bridging of Ethernet frames. This module will perform conversion from/to
// EtherFrame for MACRelayUnit.
//
// This module never switches channels, that is, it will operate on the channel
// the physical layer is configured for (see channelNumber in Ieee80211Radio).
//
// @author Andras Varga
//
simple Ieee80211MgmtAP like Ieee80211Mgmt
{
    parameters:
        string ssid = default("SSID");
        double beaconInterval @unit("s") = default(100ms);
        int frameCapacity = default(100); // maximum queue length
        int numAuthSteps = default(4); // use 2 for Open System auth, 4 for WEP
        //dataRate: numeric; XXX TBD
        @display("i=block/cogwheel");
    gates:
        input uppergateIn; // from MACRelayUnit; can be left unconnected
        output uppergateOut; // to MACRelayUnit; can be left unconnected
        input macIn; // from Ieee80211Mac
        output macOut; // to Ieee80211Mac
}