Simple Module P2PPhyLayer

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

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.


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

Source code:

simple P2PPhyLayer

	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

        in: uppergateIn; // from MAC layer
	out: upperControlOut; // output control information
	out: uppergateOut; // to MAC layer
	in: radioIn; // gate for sendDirect