Table Of Contents
Table Of Contents

RED Dropper

This step demonstrates the RedDropper module, which implements the Random Early Detection algorithm.

Packets are created by an active packet source (ActivePacketSource), which pushes packets to the dropper module. The dropper module drops packets with a probability depending on the number of packets contained in the queue (PacketQueue) connected to its output. The packets are collected by an active packet sink (ActivePacketSink).

network RedDropperTutorialStep
        producer: ActivePacketSource {
        dropper: RedDropper {
        queue: PacketQueue {
        collector: ActivePacketSink {
        producer.out -->;
        dropper.out -->;
        queue.out -->;
[Config RedDropper]
network = RedDropperTutorialStep
sim-time-limit = 100s

*.producer.packetLength = 1B
*.producer.productionInterval = exponential(1s)
*.dropper.minth = 1
*.dropper.maxth = 3
*.dropper.maxp = 0.1
*.dropper.wq = 0.5
*.collector.collectionInterval = exponential(1s)