Simple Module SimpleNetwLayer

File: contrib/netwLayer/SimpleNetwLayer.ned

C++ definition: click here

Basic class for the network layer

This is the generic class for all network layer modules. If you want to implement your own network layer you have to subclass your module from this class.

Author: 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.

P2PHost

The P2PHost is a compound module that implements a very simple peer to peer host. Instead of an "snrEval" and "decider" module it just contains a simple "phy" module that sends unicast messages

BaseStationHost

The BaseStationHost is a compound module that implements a test base station. The test base station contains the PollApplLayer which periodically polls all clients in the network.

ClientHost

The ClientHost is a compound module that implements a very simple mobile client. It only consists of basic modules and the ClientApplLayer.

Host (no description)
Host (no description)
Host (no description)
Host (no description)

Parameters:

Name Type Description
debug numeric const

debug switch for the core framework

headerLength numeric const

length of the network packet header (in bits)

Gates:

Name Direction Description
uppergateIn input

from application layer

uppergateOut output

to application layer

upperControlOut output

for control messages to upper layer

lowerControlIn input

for control messages from mac layer

lowergateIn input

from MAC layer

lowergateOut output

to MAC layer

Source code:

simple SimpleNetwLayer
    parameters:
	debug : numeric const, // debug switch for the core framework
	headerLength : numeric const; // length of the network packet header (in bits)
    gates:
	in: uppergateIn; // from application layer
	out: uppergateOut; // to application layer
	out: upperControlOut; // for control messages to upper layer
	in: lowerControlIn;   // for control messages from mac layer
	in: lowergateIn; // from MAC layer
	out: lowergateOut; // to MAC layer
endsimple