File: contrib/nic/NicCsma.ned
(no description)
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.
CSMAMacLayer | CSMA MAC protocol |
SingleChannelRadio | (no description) |
SnrDecider | Decider module to be used with SnrEval |
SnrEval | (no description) |
If a module type shows up more than once, that means it has been defined in more than one NED file.
Host | (no description) |
Name | Direction | Description |
---|---|---|
uppergateIn | input | from upper layers |
uppergateOut | output | to upper layers |
upperControlOut | output | control connection |
radioIn | input | to receive AirFrames |
Name | Type | Description |
---|---|---|
mac.debug | bool | debug switch |
mac.busyRSSI | numeric const | level at which we consider medium busy |
mac.slotDuration | numeric const | how long is a slot? |
mac.difs | numeric const | maximum time between a packet and its ack |
mac.maxTxAttempts | numeric const | maximum number of transmission attempts |
mac.headerLength | numeric const | length of MAC header |
mac.queueLength | numeric const | length of the MAC queue |
mac.defaultChannel | numeric const | default channel |
mac.bitrate | numeric const | bit rate |
mac.contentionWindow | numeric const | contention window |
decider.debug | bool | debug switch |
decider.snrThresholdLevel | numeric | |
snrEval.debug | bool | debug switch |
snrEval.publishRSSIAlways | bool | if false, the RSSI will not be published during the reception of a frame |
snrEval.transmitterPower | numeric | |
snrEval.headerLength | numeric const | |
snrEval.carrierFrequency | numeric | |
snrEval.thermalNoise | numeric | |
snrEval.pathLossAlpha | numeric | |
snrEval.sensitivity | numeric | |
radio.debug | bool | |
radio.swSleep | numeric const | time parameters, how long does it take to switch to sleep mode |
radio.swSend | numeric const | switch to send mode |
radio.swRecv | numeric const | switch to recv mode |
module NicCsma gates: in: uppergateIn; // from upper layers out: uppergateOut; // to upper layers out: upperControlOut; // control connection in: radioIn; // to receive AirFrames submodules: mac: CSMAMacLayer; display: "p=96,87;i=block/layer"; decider: SnrDecider; display: "p=106,157;i=block/process_s"; snrEval: SnrEval; display: "p=96,236;i=block/wrxtx"; radio: SingleChannelRadio display: "p=200,30;b=30,25"; connections: radioIn --> snrEval.radioIn; decider.uppergateOut --> mac.lowergateIn display "m=m,50,50,75,0"; snrEval.uppergateIn <-- mac.lowergateOut display "m=m,25,0,25,0"; snrEval.uppergateOut --> decider.lowergateIn display "m=m,73,0,50,50"; snrEval.upperControlOut --> mac.lowerControlIn; mac.uppergateOut --> uppergateOut; mac.upperControlOut --> upperControlOut; mac.uppergateIn <-- uppergateIn; endmodule