Table Of Contents
Table Of Contents

Cloning Packets from One Input To Multiple Outputs

The PacketCloner module has one input gate and multiple output gates. Packets pushed to the input are copied and pushed out on all outputs.

In this example network, packets are created by an active packet source (ActivePacketSource). The packet source pushes packets into the cloner (PacketCloner), which pushes a copy of the packet into the two passive packet sources (PassivePacketSource) it is connected to.

network ClonerTutorialStep
        producer: ActivePacketSource {
        cloner: PacketCloner {
        consumer1: PassivePacketSink {
        consumer2: PassivePacketSink {
    connections allowunconnected:
        producer.out -->;
        cloner.out++ -->;
        cloner.out++ -->;
[Config Cloner]
network = ClonerTutorialStep
sim-time-limit = 10s

*.producer.packetLength = 1B
*.producer.productionInterval = 1s