File: contrib/nic/macLayer/AlohaMacLayer.ned
C++ definition: click here
Aloha MAC protocol
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.
If a module type shows up more than once, that means it has been defined in more than one NED file.
P2PNic | The nic (network interface card) is a compound module that contains the MAC and PHY of a host within the Mobility Framework |
AlohaSnrNic | This is the easiest nic to implement "real" network behaviour. It uses the CsmaMacLayer and the SnrDecider and SnrEval modules. |
CoreTestNic | The nic (network interface card) is a compound module that contains the MAC and PHY of a host within the Mobility Framework |
Name | Type | Description |
---|---|---|
debug | bool | debug switch |
headerLength | numeric const | level at which we consider medium busy |
queueLength | numeric const | length of the MAC queue |
bitrate | numeric const | bit rate in bit/s |
defaultChannel | numeric const | default channel |
Name | Direction | Description |
---|---|---|
uppergateIn | input | |
uppergateOut | output | |
lowergateIn | input | |
lowergateOut | output | |
upperControlOut | output | for control messages to upper layer |
lowerControlIn | input | for control messages from phy layer |
simple AlohaMacLayer parameters: debug: bool, // debug switch // level at which we consider medium busy headerLength: numeric const, // length of the MAC queue queueLength: numeric const, // bit rate in bit/s bitrate : numeric const, // default channel defaultChannel : numeric const; gates: in: uppergateIn; out: uppergateOut; in: lowergateIn; out: lowergateOut; out: upperControlOut; // for control messages to upper layer in: lowerControlIn; // for control messages from phy layer endsimple