Table Of Contents
Table Of Contents

Step 9. Measure RIP recovery time

Goals

TODO

The model

This step uses the same network as the previous one.

The configuration in omnetpp.ini is the following:

[Config Step9]
description = "Measure RIP recovery time"
extends = Step2
sim-time-limit = 1500s

*.host0.numApps = 1
*.host0.app[0].typename = "UdpBasicApp"
*.host0.app[0].destAddresses = "host6"
*.host0.app[0].destPort = 1234
#*.host0.app[0].startTime = 50s
*.host0.app[0].sendInterval = 0.5s
*.host0.app[0].messageLength = 32 bytes

*.host6.numApps = 1
*.host6.app[0].typename = "UdpSink"
*.host6.app[0].localPort = 1234

# TODO: change startup time to maximise the effect of triggered update
*.router*.rip.startupTime = uniform(0s,1s)
# enable split horizon in order for the scenario to work properly
*.router*.rip.ripConfig = xml("<config> <interface hosts='router*' mode='SplitHorizon' /> </config>")

#*.scenarioManager.script = xmldoc("scenario3.xml")

*.scenarioManager.script = xmldoc("scenario7.xml")
# break link between router2 and switch1; with scenario3, the link doesn't recover

*.router*.rip.triggeredUpdate = ${triggeredUpdate = false, true}

The scenario manager script:

<!-- scenario7.xml -->
<scenario>
    <at t="50">
        <disconnect src-module="router2" dest-module="switch1" />
    </at>
    <at t="602">
        <connect src-module="router2" src-gate="ethg$o[0]" dest-module="switch1" dest-gate="ethg$i[3]" channel-type="inet.node.ethernet.Eth10M" />
        <connect src-module="switch1" src-gate="ethg$o[3]" dest-module="router2" dest-gate="ethg$i[0]" channel-type="inet.node.ethernet.Eth10M" />
    </at>
</scenario>

No Netmask Routes:

[Config Step9NoNetmaskRoutes]
extends = Step9

**.netmaskRoutes = ""
*.configurator.addDirectRoutes = true