Network KIDSNw1

Package: inet.examples.inet.kidsnw1
File: examples/inet/kidsnw1/KIDSNw1.ned

(no description)

StandardHost Router Router Router

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.

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
host.sctp.numGapReports int 3

====== SCTP Association Parameters =================================

host.sctp.rtoInitial double 3s
host.sctp.rtoMin double 1s
host.sctp.rtoMax double 60s
host.sctp.rtoAlpha double 0.125
host.sctp.rtoBeta double 0.250
host.sctp.maxBurst int 4
host.sctp.assocMaxRetrans int 10
host.sctp.pathMaxRetrans int 5
host.sctp.maxInitRetrans int 8
host.sctp.sackPeriod double 200ms
host.sctp.sackFrequency int 2
host.sctp.reactivatePrimaryPath bool false
host.sctp.sendQueueLimit int 0
host.sctp.validCookieLifetime double 10s

====== Testing =====================================================

host.sctp.enableHeartbeats bool true

====== Heartbeats ==================================================

host.sctp.hbInterval double 30s
host.sctp.nagleEnabled bool true

====== Nagle Algorithm =============================================

host.sctp.naglePoint int 1468
host.sctp.fastRecoverySupported bool true

====== Congestion Control ==========================================

host.sctp.sctpAlgorithmClass string "SCTPAlg"
host.sctp.ccModule int 0

RFC4960=0

host.sctp.ssModule int 0

ROUND_ROBIN=0

host.sctp.arwnd int 65535
host.sctp.swsLimit int 3000

Limit for SWS

host.sctp.udpEncapsEnabled bool false
host.pingApp.destAddr string ""

destination IP or IPv6 address

host.pingApp.srcAddr string ""

source IP or IPv6 address (useful with multi-homing)

host.pingApp.packetSize double 56B

of ping payload, in bytes

host.pingApp.interval double 1s

time to wait between pings (can be random)

host.pingApp.hopLimit double 32

TTL or hopLimit for IP packets

host.pingApp.count double 0

stop after count ping requests, 0 means continuously

host.pingApp.startTime double uniform(0s,this.interval)

send first ping at startTime

host.pingApp.stopTime double 0s

send no pings after stopTime, 0 means forever

host.pingApp.printPing bool true

dump on stdout

host.networkLayer.ip.procDelay double 0s
host.networkLayer.arp.retryTimeout double 1s

number seconds ARP waits between retries to resolve an IP address

host.networkLayer.arp.retryCount int 3

number of times ARP will attempt to resolve an IP address

host.networkLayer.arp.cacheTimeout double 120s

number seconds unused entries in the cache will time out

host.ppp.ppp.mtu int 4470
host.eth.mac.promiscuous bool false

if true, all packets are received, otherwise only the ones with matching destination MAC address

host.eth.mac.address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

host.eth.mac.txrate double 100Mbps

maximum data rate supported by this station (bit/s); actually chosen speed may be lower due to auto- configuration. 0 means fully auto-configured.

host.eth.mac.duplexEnabled bool true

whether duplex mode can be enabled or not; whether MAC will actually use duplex mode depends on the result of the auto-configuration process (duplex is only possible with DTE-to-DTE connection).

host.eth.mac.mtu int 1500
host.ext.filterString string
host.ext.device string
host.ext.mtu int 1500
host.tcpdump.dumpFile string ""
host.tcpdump.threadEnable bool false
host.tcpdump.snaplen int 65535
host.tcpdump.verbosity int 0
fhrouter.networkLayer.ip.procDelay double 0s
fhrouter.networkLayer.arp.retryTimeout double 1s

number seconds ARP waits between retries to resolve an IP address

fhrouter.networkLayer.arp.retryCount int 3

number of times ARP will attempt to resolve an IP address

fhrouter.networkLayer.arp.cacheTimeout double 120s

number seconds unused entries in the cache will time out

fhrouter.ppp.ppp.mtu int 4470
fhrouter.eth.mac.promiscuous bool false

if true, all packets are received, otherwise only the ones with matching destination MAC address

fhrouter.eth.mac.address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

fhrouter.eth.mac.txrate double 100Mbps

maximum data rate supported by this station (bit/s); actually chosen speed may be lower due to auto- configuration. 0 means fully auto-configured.

fhrouter.eth.mac.duplexEnabled bool true

whether duplex mode can be enabled or not; whether MAC will actually use duplex mode depends on the result of the auto-configuration process (duplex is only possible with DTE-to-DTE connection).

fhrouter.eth.mac.mtu int 1500
irouter.networkLayer.ip.procDelay double 0s
irouter.networkLayer.arp.retryTimeout double 1s

number seconds ARP waits between retries to resolve an IP address

irouter.networkLayer.arp.retryCount int 3

number of times ARP will attempt to resolve an IP address

irouter.networkLayer.arp.cacheTimeout double 120s

number seconds unused entries in the cache will time out

irouter.ppp.ppp.mtu int 4470
irouter.eth.mac.promiscuous bool false

if true, all packets are received, otherwise only the ones with matching destination MAC address

irouter.eth.mac.address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

irouter.eth.mac.txrate double 100Mbps

maximum data rate supported by this station (bit/s); actually chosen speed may be lower due to auto- configuration. 0 means fully auto-configured.

irouter.eth.mac.duplexEnabled bool true

whether duplex mode can be enabled or not; whether MAC will actually use duplex mode depends on the result of the auto-configuration process (duplex is only possible with DTE-to-DTE connection).

irouter.eth.mac.mtu int 1500
bgrouter.networkLayer.ip.procDelay double 0s
bgrouter.networkLayer.arp.retryTimeout double 1s

number seconds ARP waits between retries to resolve an IP address

bgrouter.networkLayer.arp.retryCount int 3

number of times ARP will attempt to resolve an IP address

bgrouter.networkLayer.arp.cacheTimeout double 120s

number seconds unused entries in the cache will time out

bgrouter.ppp.ppp.mtu int 4470
bgrouter.eth.mac.promiscuous bool false

if true, all packets are received, otherwise only the ones with matching destination MAC address

bgrouter.eth.mac.address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

bgrouter.eth.mac.txrate double 100Mbps

maximum data rate supported by this station (bit/s); actually chosen speed may be lower due to auto- configuration. 0 means fully auto-configured.

bgrouter.eth.mac.duplexEnabled bool true

whether duplex mode can be enabled or not; whether MAC will actually use duplex mode depends on the result of the auto-configuration process (duplex is only possible with DTE-to-DTE connection).

bgrouter.eth.mac.mtu int 1500

Source code:

network KIDSNw1
{
    types:
        channel ethernet extends DatarateChannel
        {
            delay = normal(0.00015s, 0.00005s);
            datarate = 10Mbps;
        }
        channel fiberrouterline extends DatarateChannel
        {
            delay = normal(0.000001s, 0.0000001s);
            datarate = 512Mbps;
        }
    submodules:
        host[3]: StandardHost {
            parameters:
                IPForward = false;
                routingFile = (index==0 ? "host1.irt" : (index==1 ? "host2.irt" : (index==2 ? "host3.irt" : "PROBLEM")));
                @display("p=101,307,row;i=device/pc2");

            gates:
                pppg[1];
        }
        // First Hop Router
        fhrouter[2]: Router {
            parameters:
                routingFile = (index==0 ? "fhrouter1.irt" : (index==1 ? "fhrouter5.irt" : "PROBLEM"));
                @display("p=119,222,row,130");

            gates:
                pppg[(index==0 ? 3 : 2)];
        }
        // InteriorRouter
        irouter: Router {
            parameters:
                routingFile = "irouter2.irt";
                @display("p=115,144");
            gates:
                pppg[2];
        }
        // Border Gatgeway Router
        bgrouter[2]: Router {
            parameters:

                routingFile = (index==0 ? "bgrouter3.irt" : (index==1 ? "bgrouter4.irt" : "PROBLEM"));
                @display("p=135,64,row");
            gates:
                pppg[2];
        }
    connections:
        // host connections
        host[0].pppg[0] <--> ethernet <--> fhrouter[0].pppg[0];
        host[1].pppg[0] <--> ethernet <--> fhrouter[0].pppg[1];
        host[2].pppg[0] <--> ethernet <--> fhrouter[1].pppg[0];

        // router connections
        fhrouter[0].pppg[2] <--> fiberrouterline <--> irouter.pppg[0];
        irouter.pppg[1] <--> fiberrouterline <--> bgrouter[0].pppg[0];
        bgrouter[0].pppg[1] <--> fiberrouterline <--> bgrouter[1].pppg[1];
        bgrouter[1].pppg[0] <--> fiberrouterline <--> fhrouter[1].pppg[1];
}