Table Of Contents
Table Of Contents

Time-Based Server

The PacketServer module connects to passive packet sources and sinks. The server actively pops packets from the connected packet provider and after a configurable processing delay, it pushes them onto the connected packet consumer.

In this step, packets are passed through from the source to the sink periodically (randomly) by the active packet processor (PacketServer). The packets are generated by a passive packet source (PassivePacketSource) and consumed by a passive packet sink (PassivePacketSink).

network ServerTutorialStep
        provider: PassivePacketSource {
        server: PacketServer {
        consumer: PassivePacketSink {
    connections allowunconnected:
        provider.out -->;
        server.out -->;
[Config Server]
network = ServerTutorialStep
sim-time-limit = 10s

*.provider.packetLength = 1B
*.server.processingTime = uniform(0s, 2s)