Simple Module CSMAMacLayer

Package: inet.linklayer.mf80211.macLayer
File: src/linklayer/mf80211/macLayer/CSMAMacLayer.ned

C++ definition

CSMA MAC protocol

This component has been taken over from Mobility Framework 1.0a5.

CSMAMacLayer

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Used in compound modules:

Name Type Description
NicCsma compound module

The CsmaNic contains a csma-like MAC layer. The SnrEval module is used as the mac needs a RadioState to be published. However as still the BasicDecider is used all messages will be delivered to the MAC and no packets get lost

SnrNic compound module

This is the easiest nic to implement "real" network behaviour. It uses the CsmaMacLayer and the SnrDecider and SnrEval modules.

Parameters:

Name Type Default value Description
debug bool false

debug switch

headerLength int
queueLength int

Properties:

Name Value Description
display i=prot2

Gates:

Name Direction Size Description
uppergateIn input
uppergateOut output
lowergateIn input
lowergateOut output

Source code:

//
// CSMA MAC protocol
//
// This component has been taken over from Mobility Framework 1.0a5.
//
simple CSMAMacLayer
{
    parameters:
        bool debug = default(false); // debug switch
        int headerLength @unit(b);
        int queueLength;
        @display("i=prot2");
    gates:
        input uppergateIn;
        output uppergateOut;
        input lowergateIn;
        output lowergateOut;
}