Table Of Contents
Table Of Contents

Measuring Residence Time

Goals

In this example we explore the packet residence time statistics of network nodes.

INET version: 4.4

The Model

The packet residence time is measured from the moment a packet enters a network node up to the moment the same packet leaves the network node. This statistic is also collected for packets which are created and/or destroyed in network nodes.

Here is the network:

../../../../_images/Network7.png

Here is the configuration:

[General]
network = ResidenceTimeMeasurementShowcase
description = "Measure packet residence time in all network nodes"
sim-time-limit = 1s

# source application ~96Mbps throughput
*.source.numApps = 1
*.source.app[0].typename = "UdpSourceApp"
*.source.app[0].source.packetLength = 1200B
*.source.app[0].source.productionInterval = exponential(100us)
*.source.app[0].io.destAddress = "destination"
*.source.app[0].io.destPort = 1000

# destination application
*.destination.numApps = 1
*.destination.app[0].typename = "UdpSinkApp"
*.destination.app[0].io.localPort = 1000

# enable packet residence time measurer in all network nodes
*.*.measurer.typename = "ResidenceTimeMeasurer"

Results

Here are the results:

../../../../_images/SourceHistogram.png
../../../../_images/SourceVector.png
../../../../_images/SwitchHistogram.png
../../../../_images/SwitchVector.png
../../../../_images/DestinationHistogram.png
../../../../_images/DestinationVector.png

Sources: omnetpp.ini, ResidenceTimeMeasurementShowcase.ned

Discussion

Use this page in the GitHub issue tracker for commenting on this showcase.