Network2

Package: inet.tutorials.protocol

Network2

network

(no description)

client : ClientHost2

Source:
client: ClientHost2 {
    @display("p=100,100");
} server : ServerHost2

Source:
server: ServerHost2 {
    @display("p=200,100");
}

Usage diagram

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

Properties

Name Value Description
isNetwork

Unassigned submodule parameters

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

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

client.app.packetNameFormat string "%a-%c"

See directives in module documentation

client.app.packetRepresentation string "byteCount"

Determines the chunk of the packet data

client.app.packetProtocol string "unknown"
client.app.packetLength int
client.app.packetData int -1
client.app.attachCreationTimeTag bool true
client.app.attachIdentityTag bool true
client.app.attachDirectionTag bool true
client.app.clockModule string ""

Relative path of a module that implements IClock(1,2); optional

client.app.initialProductionOffset double -1s

Initial duration before which packets are not produced. When negative, then produce packet in initialize()

client.app.productionInterval double

Elapsed time between subsequent packets pushed to the connected packet consumer

client.app.scheduleForAbsoluteTime bool true

When a clock is used, "relative" means that setting the clock will not affect the simulation time of the event

client.transmitter.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

client.transmitter.clockModule string ""

Relative path of a module that implements IClock(1,2); optional

client.transmitter.datarate double
server.app.displayStringTextFormat string "received %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

server.app.clockModule string ""

Relative path of a module that implements IClock(1,2); optional

server.app.initialConsumptionOffset double 0s

Initial duration before which packets are not consumed

server.app.consumptionInterval double 0s

Elapsed time between subsequent packets allowed to be pushed by the connected packet producer, 0 means any number of packets can be pushed at the same simulation time

server.app.scheduleForAbsoluteTime bool true

When a clock is used, "relative" means that setting the clock will not affect the simulation time of the event

server.receiver.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

server.receiver.datarate double

Source code

network Network2
{
    submodules:
        client: ClientHost2 {
            @display("p=100,100");
        }
        server: ServerHost2 {
            @display("p=200,100");
        }
    connections allowunconnected:
        client.out --> {  datarate = 100Mbps; delay = 1us; } --> server.in;
}
File: tutorials/protocol/Network2.ned