Compound Module TwoNetsArea

File: Examples/OSPFv2/Areas/Area1.ned

(no description)

R1: OSPFRouter N1: EtherHub N2: EtherHub R3: OSPFRouter H1: StandardHost H2: StandardHost R2: OSPFRouter

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.

EtherHub

A generic wiring hub model.

OSPFRouter

IP router.

StandardHost

IP host with TCP, UDP layers and applications.

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.

OSPF_AreaTest (no description)

Gates:

Name Direction Description
in [ ] input
out [ ] output

Unassigned submodule parameters:

Name Type Description
R1.routingFile string
R1.ospf.ospfConfigFile string

xml file containing the full OSPF AS configuration

R1.networkLayer.proxyARP bool
R1.networkLayer.ip.procDelay numeric const
R1.networkLayer.arp.retryTimeout numeric

number seconds ARP waits between retries to resolve an IP address

R1.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

R1.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

R1.ppp[*].queueType string
R1.eth[*].queueType string
R1.eth[*].mac.promiscuous bool

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

R1.eth[*].mac.address string

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

R1.eth[*].mac.txrate numeric

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

R1.eth[*].mac.duplexEnabled bool

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).

R1.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R1.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

N1.writeScalars bool

enable/disable recording statistics in omnetpp.sca

N2.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R3.routingFile string
R3.ospf.ospfConfigFile string

xml file containing the full OSPF AS configuration

R3.networkLayer.proxyARP bool
R3.networkLayer.ip.procDelay numeric const
R3.networkLayer.arp.retryTimeout numeric

number seconds ARP waits between retries to resolve an IP address

R3.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

R3.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

R3.ppp[*].queueType string
R3.eth[*].queueType string
R3.eth[*].mac.promiscuous bool

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

R3.eth[*].mac.address string

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

R3.eth[*].mac.txrate numeric

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

R3.eth[*].mac.duplexEnabled bool

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).

R3.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R3.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

H1.numTcpApps numeric const
H1.numUdpApps numeric const
H1.tcpAppType string
H1.udpAppType string
H1.IPForward bool
H1.namid numeric const
H1.routingFile string
H1.tcp.mss numeric const

maximum segment size

H1.tcp.advertisedWindow numeric const

in bytes (Note: normally, NIC queues should be at least this size)

H1.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

H1.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

H1.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

H1.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

H1.pingApp.destAddr string

destination IP or IPv6 address

H1.pingApp.srcAddr string

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

H1.pingApp.packetSize numeric const

of ping payload, in bytes

H1.pingApp.interval numeric

time to wait between pings (can be random)

H1.pingApp.hopLimit numeric const

TTL or hopLimit for IP packets

H1.pingApp.count numeric const

stop after count ping requests, 0 means continuously

H1.pingApp.startTime numeric const

send first ping at startTime

H1.pingApp.stopTime numeric const

send no pings after stopTime, 0 means forever

H1.pingApp.printPing bool

dump on stdout

H1.networkLayer.ip.procDelay numeric const
H1.networkLayer.arp.retryTimeout numeric

number seconds ARP waits between retries to resolve an IP address

H1.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

H1.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

H1.ppp[*].queueType string
H1.eth[*].queueType string
H1.eth[*].mac.promiscuous bool

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

H1.eth[*].mac.address string

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

H1.eth[*].mac.txrate numeric

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

H1.eth[*].mac.duplexEnabled bool

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).

H1.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

H1.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

H2.numTcpApps numeric const
H2.numUdpApps numeric const
H2.tcpAppType string
H2.udpAppType string
H2.IPForward bool
H2.namid numeric const
H2.routingFile string
H2.tcp.mss numeric const

maximum segment size

H2.tcp.advertisedWindow numeric const

in bytes (Note: normally, NIC queues should be at least this size)

H2.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

H2.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

H2.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

H2.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

H2.pingApp.destAddr string

destination IP or IPv6 address

H2.pingApp.srcAddr string

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

H2.pingApp.packetSize numeric const

of ping payload, in bytes

H2.pingApp.interval numeric

time to wait between pings (can be random)

H2.pingApp.hopLimit numeric const

TTL or hopLimit for IP packets

H2.pingApp.count numeric const

stop after count ping requests, 0 means continuously

H2.pingApp.startTime numeric const

send first ping at startTime

H2.pingApp.stopTime numeric const

send no pings after stopTime, 0 means forever

H2.pingApp.printPing bool

dump on stdout

H2.networkLayer.ip.procDelay numeric const
H2.networkLayer.arp.retryTimeout numeric

number seconds ARP waits between retries to resolve an IP address

H2.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

H2.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

H2.ppp[*].queueType string
H2.eth[*].queueType string
H2.eth[*].mac.promiscuous bool

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

H2.eth[*].mac.address string

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

H2.eth[*].mac.txrate numeric

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

H2.eth[*].mac.duplexEnabled bool

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).

H2.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

H2.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R2.routingFile string
R2.ospf.ospfConfigFile string

xml file containing the full OSPF AS configuration

R2.networkLayer.proxyARP bool
R2.networkLayer.ip.procDelay numeric const
R2.networkLayer.arp.retryTimeout numeric

number seconds ARP waits between retries to resolve an IP address

R2.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

R2.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

R2.ppp[*].queueType string
R2.eth[*].queueType string
R2.eth[*].mac.promiscuous bool

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

R2.eth[*].mac.address string

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

R2.eth[*].mac.txrate numeric

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

R2.eth[*].mac.duplexEnabled bool

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).

R2.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R2.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

Source code:

module TwoNetsArea
    gates:
        in: in[];
        out: out[];
    submodules:
        R1: OSPFRouter;
            gatesizes:
                ethIn[3],
                ethOut[3];
            display: "p=248,124;i=srouter";
        N1: EtherHub;
            gatesizes:
                in[2],
                out[2];
            display: "p=156,72;i=device/hub";
        N2: EtherHub;
            gatesizes:
                in[2],
                out[2];
            display: "p=160,284;i=device/hub";
        R3: OSPFRouter;
            gatesizes:
                ethIn[3],
                ethOut[3];
            display: "p=360,180;i=srouter";
        H1: StandardHost;
            gatesizes:
                ethIn[1],
                ethOut[1];
            display: "p=56,72;i=device/laptop";
        H2: StandardHost;
            gatesizes:
                ethIn[1],
                ethOut[1];
            display: "p=56,288;i=device/laptop";
        R2: OSPFRouter;
            gatesizes:
                ethIn[3],
                ethOut[3];
            display: "p=248,232;i=srouter";
    connections:
        H1.ethOut[0] --> delay 0.1us --> N1.in[1];
        N1.out[1] --> delay 0.1us --> H1.ethIn[0];
        N1.out[0] --> delay 0.1us --> R1.ethIn[2];
        R1.ethOut[2] --> delay 0.1us --> N1.in[0];
        R1.ethOut[0] --> delay 0.1us --> R3.ethIn[2];
        R3.ethOut[2] --> delay 0.1us --> R1.ethIn[0];
        N2.out[1] --> delay 0.1us --> H2.ethIn[0];
        H2.ethOut[0] --> delay 0.1us --> N2.in[1];
        R1.ethOut[1] --> delay 0.1us --> R2.ethIn[0];
        R2.ethOut[0] --> delay 0.1us --> R1.ethIn[1];
        R2.ethOut[1] --> delay 0.1us --> R3.ethIn[1];
        R3.ethOut[1] --> delay 0.1us --> R2.ethIn[1];
        R2.ethOut[2] --> delay 0.1us --> N2.in[0];
        N2.out[0] --> delay 0.1us --> R2.ethIn[2];

        // towards other areas
        R3.ethOut[0] --> out[0];
        in[0] --> R3.ethIn[0];
    display: "p=10,10;b=412,316";
endmodule