Compound Module BurstHost

Package: inet.nodes.inet
File: src/nodes/inet/BurstHost.ned

Definition of an IP node with a transport generator that connects to IP directly, without TCP or UDP.

NotificationBoard InterfaceTable RoutingTable IPTrafficGenerator NetworkLayer PPPInterface

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.

Networks:

RouterPerfNetwork (network) (no description)

Parameters:

Name Type Default value Description
trafGenType string
IPForward bool false
routingFile string ""

Properties:

Name Value Description
node
labels node
display i=device/pc3

Gates:

Name Direction Size Description
pppg [ ] inout

Unassigned submodule parameters:

Name Type Default value Description
networkLayer.ip.procDelay double 0s
networkLayer.arp.retryTimeout double 1s

number seconds ARP waits between retries to resolve an IP address

networkLayer.arp.retryCount int 3

number of times ARP will attempt to resolve an IP address

networkLayer.arp.cacheTimeout double 120s

number seconds unused entries in the cache will time out

ppp.ppp.mtu int 4470

Source code:

//
// Definition of an IP node with a transport generator that connects
// to IP directly, without TCP or UDP.
//
module BurstHost
{
    parameters:
        @node();
        @labels(node);
        @display("i=device/pc3");
        string trafGenType;
        bool IPForward = default(false);
        string routingFile = default("");
    gates:
        inout pppg[] @labels(PPPFrame-conn);
    submodules:
        notificationBoard: NotificationBoard {
            parameters:
                @display("p=83,66");
        }
        interfaceTable: InterfaceTable {
            parameters:
                @display("p=83,136");
        }
        routingTable: RoutingTable {
            parameters:
                IPForward = IPForward;
                routerId = "";
                routingFile = routingFile;
                @display("p=83,206");
        }
        trafGen: <trafGenType> like IPTrafficGenerator {
            parameters:
                @display("p=198,86");
        }
        networkLayer: NetworkLayer {
            parameters:
                @display("p=198,173;q=queue");
            gates:
                ifIn[1];
                ifOut[1];
        }
        ppp[1]: PPPInterface {
            parameters:
                @display("p=198,262,row,90;q=txQueue");
        }
    connections allowunconnected:
        // transport connections
        networkLayer.udpOut --> trafGen.ipIn;
        networkLayer.udpIn <-- trafGen.ipOut;

        // connections to network outside
        for i=0..0 {
            pppg[i] <--> ppp[i].phys;
            ppp[i].netwOut --> networkLayer.ifIn[i];
            ppp[i].netwIn <-- networkLayer.ifOut[i];
        }

}