IIpvxTrafficGenerator

Package: inet.applications.generic

IIpvxTrafficGenerator

module interface

Module interface for modules that generate traffic directly over IP. Compatible with both Ipv4 and Ipv6.

See also: IpvxTrafGen, IpvxTrafSink

Inheritance diagram

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

Implemented by

Name Type Description
IpvxTrafGen simple module

Sends IP or IPv6 datagrams to the given address at the given sendInterval. The sendInterval can be a constant or a random value (e.g. exponential(1)). If the destAddresses parameter contains more than one address, one of them is randomly for each packet. An address may be given in the dotted decimal notation (or, for IPv6, in the usual notation with colons), or with the module name. (The L3AddressResolver class is used to resolve the address.) To disable the model, set destAddresses to "".

IpvxTrafSink simple module

Consumes and prints packets received from the IP module. Compatible with both Ipv4 and Ipv6.

Properties

Name Value Description
display i=block/app

Source code

//
// Module interface for modules that generate traffic directly over IP.
// Compatible with both ~Ipv4 and ~Ipv6.
//
// @see ~IpvxTrafGen, ~IpvxTrafSink
//
moduleinterface IIpvxTrafficGenerator
{
    @display("i=block/app");
    gates:
        input ipIn @labels(Ipv4ControlInfo/up,Ipv6ControlInfo/up);
        output ipOut @labels(Ipv4ControlInfo/down,Ipv6ControlInfo/down);
}

File: src/inet/applications/generic/IIpvxTrafficGenerator.ned