PacketDrillApp

Package: inet.applications.packetdrill

PacketDrillApp

simple module

(no description)

Used in compound modules

Name Type Description
PacketDrillHost compound module

IPv4 host with SCTP, TCP, UDP layers and a packetdrill application. The application has a direct connection to the TunInterface.

Parameters

Name Type Default value Description
scriptFile string
startTime double 0s
localPort int

port number of the initiator

remotePort int
localAddress string
remoteAddress string
inboundStreams int 20
outboundStreams int 20
streamReset int 0
dataTransferMode string "bytecount"
latency double 0s

Properties

Name Value Description
display i=block/app

Gates

Name Direction Size Description
udpIn input
udpOut output
tcpIn input
tcpOut output
sctpIn input
sctpOut output
tunIn input
tunOut output

Source code

simple PacketDrillApp
{
    parameters:
        string scriptFile;
        double startTime @unit(s) = default(0s);
        int localPort; // port number of the initiator
        int remotePort;
        string localAddress;
        string remoteAddress;
        int inboundStreams = default(20);
        int outboundStreams = default(20);
        int streamReset = default(0);
        string dataTransferMode @enum("bytecount","object","bytestream") = default("bytecount");
        double latency @unit(s) = default(0s);
        @display("i=block/app");
    gates:
        input udpIn @labels(UDPControlInfo/up);
        output udpOut @labels(UDPControlInfo/down);
        input tcpIn @labels(TCPCommand/up);
        output tcpOut @labels(TCPCommand/down);
        input sctpIn @labels(SCTPCommand/up);
        output sctpOut @labels(SCTPCommand/down);
        input tunIn @labels(TunInterface/up);
        output tunOut @labels(TunInterface/down);
}
File: src/inet/applications/packetdrill/PacketDrillApp.ned