Table Of Contents
Table Of Contents

Delaying Packets

The PacketDelayer module delays packets for a configured amount of time.

In this example network, packets are produced periodically by an active packet source (ActivePacketSource). The produced packets are delayed (PacketDelayer) for a random amount of time. Finally, the packets are pushed into a passive packet sink (PassivePacketSink).

network DelayerTutorialStep
        producer: ActivePacketSource {
        delayer: PacketDelayer {
        consumer: PassivePacketSink {
    connections allowunconnected:
        producer.out -->;
        delayer.out -->;
[Config Delayer]
network = DelayerTutorialStep
sim-time-limit = 10s

*.producer.packetLength = 1B
*.producer.productionInterval = 1s
*.delayer.delay = uniform(0s, 2s)