CSMA MAC protocol
This component has been taken over from Mobility Framework 1.0a5.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
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. |
Name | Type | Default value | Description |
---|---|---|---|
debug | bool | false |
debug switch |
headerLength | int | ||
queueLength | int |
Name | Value | Description |
---|---|---|
display | i=prot2 |
Name | Direction | Size | Description |
---|---|---|---|
uppergateIn | input | ||
uppergateOut | output | ||
lowergateIn | input | ||
lowergateOut | output |
// // 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; }