PacketServer

Package: inet.queueing.server

PacketServer

simple module

This module repeatedly pops packets from the connected packet provider and after a processing delay it pushes the packet into the connected packet consumer. The processing delay is processingTime + packetLength / processingBitrate.

PacketServer

Inheritance diagram

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

Extends

Name Type Description
PacketServerBase simple module

This is a base module for various packet server modules.

Parameters

Name Type Default value Description
displayStringTextFormat string "served %p pk (%l)\n%s"

determines the text that is written on top of the submodule

processingTime double

determines additional processing time per packet

processingBitrate double inf bps

determines additional processing time per bit

Properties

Name Value Description
display i=block/server
class PacketServer

Gates

Name Direction Size Description
in input
out output

Signals

Name Type Unit
packetServed inet::Packet

Statistics

Name Title Source Record Unit Interpolation Mode
packetServed packets served count, sum(packetBytes), vector(packetBytes) none

Source code

//
// This module repeatedly pops packets from the connected packet provider and
// after a processing delay it pushes the packet into the connected packet
// consumer. The processing delay is processingTime + packetLength / processingBitrate.
//
simple PacketServer extends PacketServerBase like IPacketServer
{
    parameters:
        volatile double processingTime @unit(s); // determines additional processing time per packet
        volatile double processingBitrate @unit(bps) = default(inf bps); // determines additional processing time per bit
        @class(PacketServer);
}
File: src/inet/queueing/server/PacketServer.ned