Simple Module CSMAMacLayer

File: NetworkInterfaces/MF80211/macLayer/CSMAMacLayer.ned

C++ definition: click here

CSMA MAC protocol

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) 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.

NicCsma

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

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

Parameters:

Name Type Description
debug bool

debug switch

headerLength numeric const
queueLength numeric const

Gates:

Name Direction Description
uppergateIn input
uppergateOut output
lowergateIn input
lowergateOut output

Source code:

simple CSMAMacLayer
    parameters:
        debug: bool, // debug switch
        headerLength: numeric const,
        queueLength: numeric const;
    gates:
        in: uppergateIn;
        out: uppergateOut;
        in: lowergateIn;
        out: lowergateOut;
endsimple