Package: inet.tutorials.protocol
Network7
network(no description)
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.queue.displayStringTextFormat | string | "contains %p pk (%l) pushed %u\npulled %o removed %r dropped %d" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| client.queue.packetCapacity | int | -1 |
Maximum number of packets in the queue, no limit by default |
| client.queue.dataCapacity | int | -1b |
Maximum total length of packets in the queue, no limit by default |
| client.queue.dropperClass | string | "" |
Determines which packets are dropped when the queue is overloaded, packets are not dropped by default; the parameter must be the name of a C++ class which implements the IPacketDropperFunction C++ interface and is registered via Register_Class |
| client.queue.comparatorClass | string | "" |
Determines the order of packets in the queue, insertion order by default; the parameter must be the name of a C++ class which implements the IPacketComparatorFunction C++ interface and is registered via Register_Class |
| client.queue.bufferModule | string | "" |
Relative module path to the IPacketBuffer module used by this queue, implicit buffer by default |
| client.server.displayStringTextFormat | string | "served %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| client.server.serveSchedulingPriority | int | -1 |
Specifies the FES scheduling priority for the extra event that is pulling the packet, -1 means no extra event |
| client.sequenceNumbering.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.resending.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.resending.numRetries | int | ||
| client.fcsInserter.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.fcsInserter.checksumMode | string | "declared" | |
| client.fcsInserter.headerPosition | string | "front" | |
| client.InterpacketGapInserter.displayStringTextFormat | string | "delayed %p pk (%l)\nifg: %g" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| client.InterpacketGapInserter.clockModule | string | "" |
Relative path of a module that implements IClock(1,2); optional |
| client.InterpacketGapInserter.initialChannelBusy | bool | false |
Assume that the channel was busy before the simulation started |
| client.InterpacketGapInserter.duration | double | ||
| 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.reordering.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.fcsChecker.displayStringTextFormat | string | "dropped %d/%p pk (%k/%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| server.fcsChecker.backpressure | bool | false | |
| server.fcsChecker.headerPosition | string | "front" | |
| 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 Network7 { submodules: client: ClientHost7 { @display("p=100,100"); } server: ServerHost7 { @display("p=200,100"); } connections allowunconnected: client.out --> { datarate = 100Mbps; delay = 1us; ber = 1E-5; } --> server.in; }File: tutorials/protocol/Network7.ned