Compound Module CBRDHTModules

Package: oversim.common.cbr
File: src/common/cbr/CBR-DHT.ned

Compound module for a simple DHT using the KBR interface

Author: Bernhard Heep, Ingmar Baumgart

CBRDHT DHTDataStorage

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Gates:

Name Direction Size Description
udpIn input

gate from the UDP layer

from_lowerTier input

gate from the lower tier

from_upperTier input

gate from the upper tier

tcpIn input

gate from the TCP layer

tcpOut output

gate to the TCP layer

udpOut 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 Default value Description
dht.rpcUdpTimeout double

default timeout value for direct RPCs

dht.rpcKeyTimeout double

default timeout value for routed RPCs

dht.optimizeTimeouts bool

calculate timeouts from measured RTTs and network coordinates

dht.rpcExponentialBackoff bool

if true, doubles the timeout for every retransmission

dht.debugOutput bool

enable debug output

dht.numReplica int

bool debugOutput; // enable debug output

dht.numReplicaTeams int

number of replication teams

Source code:

//
// Compound module for a simple DHT using the KBR interface
//
// @author Bernhard Heep, Ingmar Baumgart
//
module CBRDHTModules like ITier
{
    gates:
        input udpIn;    // gate from the UDP layer
        input from_lowerTier;    // gate from the lower tier
        input from_upperTier;    // gate from the upper tier
        input tcpIn;             // gate from the TCP layer
        output tcpOut;           // gate to the TCP layer
        output udpOut;    // gate to the UDP layer
        output to_lowerTier;    // gate to the lower tier
        output to_upperTier;    // gate to the upper tier

    submodules:
        dht: CBRDHT;
        dhtDataStorage: DHTDataStorage;
    connections allowunconnected:
        from_lowerTier --> dht.from_lowerTier;
        to_lowerTier <-- dht.to_lowerTier;
        from_upperTier --> dht.from_upperTier;
        to_upperTier <-- dht.to_upperTier;
}