File: contrib/nic/phyLayer/P2PPhyLayer.ned
C++ definition: click here
A very simple physical layer
This is the simplest physical layer you can think of.
It decides upon one simple parameter pBit (bit error rate) about the correctness of a frame. Collisions, bit errors, interference and anything else you can think of are combined in this single parameter.
Author: Marc Loebbers, Daniel Willkomm
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 |
Name | Type | Description |
---|---|---|
coreDebug | numeric const | debug switch for the core framework |
pBit | numeric const | bit error rate |
bitrate | numeric const | bitrate (in bits/sec) |
transmitterPower | numeric const | power used to transmit messages (in mW) |
headerLength | numeric const | length (in bits) of the AirFrame header |
Name | Direction | Description |
---|---|---|
uppergateIn | input | from MAC layer |
upperControlOut | output | output control information |
uppergateOut | output | to MAC layer |
radioIn | input | gate for sendDirect |
simple P2PPhyLayer parameters: coreDebug : numeric const, // debug switch for the core framework pBit: numeric const, // bit error rate bitrate: numeric const, // bitrate (in bits/sec) transmitterPower: numeric const, // power used to transmit messages (in mW) headerLength: numeric const; // length (in bits) of the AirFrame header gates: in: uppergateIn; // from MAC layer out: upperControlOut; // output control information out: uppergateOut; // to MAC layer in: radioIn; // gate for sendDirect endsimple