Compound Module OneNetArea

File: Examples/OSPFv2/Areas/Area2.ned

(no description)

H3: StandardHost N3: EtherHub R5: OSPFRouter R4: 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
H3.numTcpApps numeric const
H3.numUdpApps numeric const
H3.tcpAppType string
H3.udpAppType string
H3.IPForward bool
H3.namid numeric const
H3.routingFile string
H3.tcp.mss numeric const

maximum segment size

H3.tcp.advertisedWindow numeric const

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

H3.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

H3.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

H3.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

H3.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

H3.pingApp.destAddr string

destination IP or IPv6 address

H3.pingApp.srcAddr string

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

H3.pingApp.packetSize numeric const

of ping payload, in bytes

H3.pingApp.interval numeric

time to wait between pings (can be random)

H3.pingApp.hopLimit numeric const

TTL or hopLimit for IP packets

H3.pingApp.count numeric const

stop after count ping requests, 0 means continuously

H3.pingApp.startTime numeric const

send first ping at startTime

H3.pingApp.stopTime numeric const

send no pings after stopTime, 0 means forever

H3.pingApp.printPing bool

dump on stdout

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

number seconds ARP waits between retries to resolve an IP address

H3.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

H3.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

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

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

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

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

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

H3.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

H3.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

N3.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R5.routingFile string
R5.ospf.ospfConfigFile string

xml file containing the full OSPF AS configuration

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

number seconds ARP waits between retries to resolve an IP address

R5.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

R5.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

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

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

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

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

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

R5.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R5.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R4.routingFile string
R4.ospf.ospfConfigFile string

xml file containing the full OSPF AS configuration

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

number seconds ARP waits between retries to resolve an IP address

R4.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

R4.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

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

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

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

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

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

R4.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

R4.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

Source code:

module OneNetArea
    gates:
        in: in[];
        out: out[];
    submodules:
        H3: StandardHost;
            gatesizes:
                ethIn[1],
                ethOut[1];
            display: "p=372,72;i=device/laptop";
        N3: EtherHub;
            gatesizes:
                in[2],
                out[2];
            display: "p=264,72;i=device/hub";
        R5: OSPFRouter;
            gatesizes:
                ethIn[2],
                ethOut[2];
            display: "p=160,72;i=srouter";
        R4: OSPFRouter;
            gatesizes:
                ethIn[2],
                ethOut[2];
            display: "p=64,72;i=srouter";
    connections:
        R4.ethOut[0] --> delay 0.1us --> R5.ethIn[1];
        R5.ethOut[1] --> delay 0.1us --> R4.ethIn[0];
        R5.ethOut[0] --> delay 0.1us --> N3.in[1];
        N3.out[1] --> delay 0.1us --> R5.ethIn[0];
        N3.out[0] --> delay 0.1us --> H3.ethIn[0];
        H3.ethOut[0] --> delay 0.1us --> N3.in[0];

        // towards other areas
        in[0] --> R4.ethIn[1];
        R4.ethOut[1] --> out[0];
    display: "p=10,10;b=404,108";
endmodule