RateSelection.ned

NED File src/inet/linklayer/ieee80211/mac/rateselection/RateSelection.ned

Name Type Description
RateSelection simple module

Implements the default rate selection algorithm. Rate selection decides what bit rate (or MCS) should be used for control frames, management frames and data frames.

Source code

//
// Copyright (C) 2016 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//


package inet.linklayer.ieee80211.mac.rateselection;

import inet.linklayer.ieee80211.mac.contract.IRateSelection;

//
// Implements the default rate selection algorithm. Rate selection decides what bit rate
// (or MCS) should be used for control frames, management frames and data frames.
//
simple RateSelection like IRateSelection
{
    parameters:
        string rateControlModule;

        double multicastFrameBitrate @unit(bps) = default(-1bps);

        double responseAckFrameBitrate @unit(bps) = default(-1bps);
        double responseCtsFrameBitrate @unit(bps) = default(-1bps);

        double dataFrameBitrate @unit(bps) = default(-1bps); // fastest
        double dataFrameBandwidth @unit(Hz) = default(nan Hz); // unspecified by default
        int dataFrameNumSpatialStreams = default(-1); // unspecified by default

        double mgmtFrameBitrate @unit(bps) = default(-1bps); // fastest
        double controlFrameBitrate @unit(bps) = default(-1bps);
        @display("i=block/cogwheel");
}