Compound Module ZebraTest

File: Examples/Quagga/FourRouters/ZebraTest.ned

(no description)

scenarioManager: ScenarioManager failureManager: FailureManager nam: NAMTrace channelInstaller: ChannelInstaller cli: StandardHost srv: StandardHost r1: QuaggaRouter r2: QuaggaRouter r3: QuaggaRouter r4: QuaggaRouter

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.

ChannelInstaller

Replaces channel objects in the network.

FailureManager (no description)
NAMTrace

NAMTrace manages a "nam" trace file which can be played back with ns2's Network ANimator, nam. The trace is actually written by NAMTraceWriter modules which should occur per host or router.

QuaggaRouter

Quagga-based IP router.

ScenarioManager

ScenarioManager is for setting up and controlling simulation experiments. You can schedule certain events to take place at specified times, like changing a parameter value, changing the bit error rate of a connection, removing or adding connections, removing or adding routes in a routing table, etc, so that you can observe the transient behaviour.

StandardHost

IP host with TCP, UDP layers and applications.

Contains the following channels:

ethernetline (no description)
ethernetline (no description)
ethernetline (no description)
ethernetline (no description)
ethernetline (no description)

Networks:

zebraTest (no description)

Parameters:

Name Type Description
n numeric const

Unassigned submodule parameters:

Name Type Description
scenarioManager.script xml
nam.logfile string
nam.prolog string
cli[*].numTcpApps numeric const
cli[*].numUdpApps numeric const
cli[*].tcpAppType string
cli[*].udpAppType string
cli[*].IPForward bool
cli[*].routingFile string
cli[*].tcp.mss numeric const

maximum segment size

cli[*].tcp.advertisedWindow numeric const

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

cli[*].tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

cli[*].tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

cli[*].tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

cli[*].tcp.recordStats bool

recording seqNum etc. into output vectors on/off

cli[*].pingApp.destAddr string

destination IP or IPv6 address

cli[*].pingApp.srcAddr string

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

cli[*].pingApp.packetSize numeric const

of ping payload, in bytes

cli[*].pingApp.interval numeric

time to wait between pings (can be random)

cli[*].pingApp.hopLimit numeric const

TTL or hopLimit for IP packets

cli[*].pingApp.count numeric const

stop after count ping requests, 0 means continuously

cli[*].pingApp.startTime numeric const

send first ping at startTime

cli[*].pingApp.stopTime numeric const

send no pings after stopTime, 0 means forever

cli[*].pingApp.printPing bool

dump on stdout

cli[*].networkLayer.ip.procDelay numeric const
cli[*].networkLayer.arp.retryTimeout numeric

number seconds ARP waits between retries to resolve an IP address

cli[*].networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

cli[*].networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

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

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

cli[*].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.

cli[*].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.

cli[*].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).

cli[*].eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

cli[*].eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

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

maximum segment size

srv.tcp.advertisedWindow numeric const

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

srv.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

srv.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

srv.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

srv.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

srv.pingApp.destAddr string

destination IP or IPv6 address

srv.pingApp.srcAddr string

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

srv.pingApp.packetSize numeric const

of ping payload, in bytes

srv.pingApp.interval numeric

time to wait between pings (can be random)

srv.pingApp.hopLimit numeric const

TTL or hopLimit for IP packets

srv.pingApp.count numeric const

stop after count ping requests, 0 means continuously

srv.pingApp.startTime numeric const

send first ping at startTime

srv.pingApp.stopTime numeric const

send no pings after stopTime, 0 means forever

srv.pingApp.printPing bool

dump on stdout

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

number seconds ARP waits between retries to resolve an IP address

srv.networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

srv.networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

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

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

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

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

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

srv.eth[*].mac.writeScalars bool

enable/disable recording statistics in omnetpp.sca

srv.eth[*].encap.writeScalars bool

enable/disable recording statistics in omnetpp.sca

r1.routingFile string
r1.routingDaemon string

"ripd", "ospfd", etc.

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

r1.tcp.mss numeric const

maximum segment size

r1.tcp.advertisedWindow numeric const

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

r1.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

r1.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

r1.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

r1.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

r1.zebra.fsroot string
r1.ospfd.fsroot string
r2.routingFile string
r2.routingDaemon string

"ripd", "ospfd", etc.

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

r2.tcp.mss numeric const

maximum segment size

r2.tcp.advertisedWindow numeric const

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

r2.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

r2.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

r2.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

r2.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

r2.zebra.fsroot string
r2.ospfd.fsroot string
r3.routingFile string
r3.routingDaemon string

"ripd", "ospfd", etc.

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

r3.tcp.mss numeric const

maximum segment size

r3.tcp.advertisedWindow numeric const

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

r3.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

r3.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

r3.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

r3.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

r3.zebra.fsroot string
r3.ospfd.fsroot string
r4.routingFile string
r4.routingDaemon string

"ripd", "ospfd", etc.

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

r4.tcp.mss numeric const

maximum segment size

r4.tcp.advertisedWindow numeric const

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

r4.tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

r4.tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

r4.tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

r4.tcp.recordStats bool

recording seqNum etc. into output vectors on/off

r4.zebra.fsroot string
r4.ospfd.fsroot string

Source code:

module ZebraTest
    parameters:
        n: numeric const;
    submodules:
        scenarioManager: ScenarioManager;
            display: "p=68,50;i=block/control_s";
        failureManager: FailureManager;
            display: "p=152,50;i=block/control_s";
        nam: NAMTrace;
            display: "p=219,50;i=block/cogwheel_s";
        channelInstaller: ChannelInstaller;
            parameters:
                channelClass = "ThruputMeteringChannel",
                channelAttrs = "format=u #N";
            display: "p=284,50;i=block/cogwheel_s";
        cli: StandardHost[n];
            parameters:
                namid = index;
            display: "p=62,146,c;i=device/laptop";
        srv: StandardHost;
            parameters:
                namid = n;
            display: "p=512,242;i=device/server_l";
        r1: QuaggaRouter;
            parameters:
                namid = n + 1;
            display: "p=173,250;i=abstract/router";
        r2: QuaggaRouter;
            parameters:
                namid = n + 2;
            display: "p=284,130;i=abstract/router";
        r3: QuaggaRouter;
            parameters:
                namid = n + 3;
            display: "p=405,242;i=abstract/router";
        r4: QuaggaRouter;
            parameters:
                namid = n + 4;
            display: "p=294,370;i=abstract/router";
    connections nocheck:
        for i=0..n-1 do
            cli[i].out++ --> ethernetline --> r1.in++;
            cli[i].in++ <-- ethernetline <-- r1.out++;
        endfor;

        r1.out++ --> ethernetline --> r2.in++;
        r1.in++ <-- ethernetline <-- r2.out++;

        r2.out++ --> ethernetline --> r3.in++;
        r2.in++ <-- ethernetline <-- r3.out++;

        r3.out++ --> ethernetline --> srv.in++;
        r3.in++ <-- ethernetline <-- srv.out++;

        r1.out++ --> ethernetline --> r4.in++;
        r1.in++ <-- ethernetline <-- r4.out++;

        r3.out++ --> ethernetline --> r4.in++;
        r3.in++ <-- ethernetline <-- r4.out++;
endmodule