Compound Module DHTModules

File: Applications/DHT/DHT.ned

Compound module for a simple DHT using the KBR interface

Author: Bernhard Heep, Ingmar Baumgart

dht: DHT dhtDataStorage: DHTDataStorage

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.

Contains the following modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

DHT

Simple module of the DHT

DHTDataStorage

Data storage module of the DHT

Gates:

Name Direction Description
from_udp input

gate from the UDP layer

from_lowerTier input

gate from the lower tier

from_upperTier input

gate from the upper tier

to_udp output

gate to the UDP layer

to_lowerTier output

gate to the lower tier

to_upperTier output

gate to the upper tier

Unassigned submodule parameters:

Name Type Description
dht.debugOutput bool

enable debug output

dht.numReplica numeric

number of replica for stored data records

dht.numGetRequests numeric

number of queried replica for get requests

dht.ratioIdentical numeric

ratio of identical replica needed for a valid result

Source code:

module DHTModules
    gates:
        in: from_udp;    // gate from the UDP layer
        in: from_lowerTier;    // gate from the lower tier
        in: from_upperTier;    // gate from the upper tier
        out: to_udp;    // gate to the UDP layer
        out: to_lowerTier;    // gate to the lower tier
        out: to_upperTier;    // gate to the upper tier

    submodules:
        dht: DHT;
            display: "i=block/app";
        dhtDataStorage: DHTDataStorage;
            display: "i=block/table";

    connections nocheck:
        from_lowerTier --> dht.from_lowerTier;
        to_lowerTier <-- dht.to_lowerTier;
        from_upperTier --> dht.from_upperTier;
        to_upperTier <-- dht.to_upperTier;

endmodule