BurstyPacketProducer

Package: inet.queueing.source

BurstyPacketProducer

compound module

This module mixes two different packet sources to generate bursty traffic.

ActivePacketSource ActivePacketSource MarkovScheduler

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Properties

Name Value Description
display i=block/source

Gates

Name Direction Size Description
out output

Unassigned submodule parameters

Name Type Default value Description
normalProducer.displayStringTextFormat string "created %p pk (%l)"

determines the text that is written on top of the submodule

normalProducer.packetNameFormat string "%n-%c"

%n module name, %c packet number, %l packet length, %d packet data, %t simulation time, %e event number

normalProducer.packetRepresentation string "byteCount"

determines the chunk of the packet data

normalProducer.packetLength int
normalProducer.packetData int -1
normalProducer.productionInterval double

elapsed time between subsequent packets pushed to the connected packet consumer

burstProducer.displayStringTextFormat string "created %p pk (%l)"

determines the text that is written on top of the submodule

burstProducer.packetNameFormat string "%n-%c"

%n module name, %c packet number, %l packet length, %d packet data, %t simulation time, %e event number

burstProducer.packetRepresentation string "byteCount"

determines the chunk of the packet data

burstProducer.packetLength int
burstProducer.packetData int -1
burstProducer.productionInterval double

elapsed time between subsequent packets pushed to the connected packet consumer

scheduler.displayStringTextFormat string "classified %p pk (%l)\ncurrent state: %s"

determines the text that is written on top of the submodule

scheduler.initialState int 0

the start state of the Markov process

scheduler.transitionProbabilities string

the transition matrix (N x N) of the Markov process, specified as a list of probabilities

scheduler.waitIntervals string

the amount of time the Markov process stays in a given state, a list of intervals (N) indexed by the state

Source code

//
// This module mixes two different packet sources to generate bursty traffic.
//
module BurstyPacketProducer like IActivePacketSource
{
    parameters:
        @display("i=block/source");
    gates:
        output out;
    submodules:
        normalProducer: ActivePacketSource {
            @display("p=100,100");
        }
        burstProducer: ActivePacketSource {
            @display("p=300,100");
        }
        scheduler: MarkovScheduler {
            @display("p=200,200");
        }
    connections allowunconnected:
        normalProducer.out --> scheduler.in++;
        burstProducer.out --> scheduler.in++;
        scheduler.out --> out;
}
File: src/inet/queueing/source/BurstyPacketProducer.ned