Package: inet.examples.diffserv.onedomain
TC3
compound moduleTraffic conditioner used in Experiment 3.2.
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| interfaceTableModule | string |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/classifier |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| classifier.displayStringTextFormat | string | "classified %p pk (%l)" |
determines the text that is written on top of the submodule |
| classifier.reverseOrder | bool | false | |
| meter.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| meter.cir | string |
committed information rate, either absolute bitrate (e.g. "100kbps"), or relative to the link's datarate (e.g. "20%") |
|
| meter.cbs | int |
committed burst size |
|
| meter.colorAwareMode | bool | false |
enables color-aware mode |
| sink.displayStringTextFormat | string | "received %p pk (%l)" |
determines the text that is written on top of the submodule |
| sink.clockModule | string | "" |
relative path of a module that implements IClock(1,2); optional |
| sink.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 |
| sink.scheduleForAbsoluteTime | bool | true |
when a clock is used relative means that setting the clock will not affect the simulation time of the event |
| join.displayStringTextFormat | string | "passed %p pk (%l)" |
determines the text that is written on top of the submodule |
| join.forwardServiceRegistration | bool | true | |
| join.forwardProtocolRegistration | bool | true |
Source code
// // Traffic conditioner used in Experiment 3.2. // module TC3 like ITrafficConditioner { parameters: string interfaceTableModule; *.interfaceTableModule = default(absPath(this.interfaceTableModule)); @display("i=block/classifier"); gates: input in; output out; submodules: classifier: MultiFieldClassifier { filters = xml("<filters><filter gate=\"0\"/></filters>"); @display("p=100,300"); } meter: TokenBucketMeter { @display("p=250,200"); } sink: PassivePacketSink { @display("p=350,100"); } join: PacketMultiplexer { @display("p=400,300"); } connections: in --> classifier.in; classifier.out++ --> meter.in; classifier.defaultOut --> join.in++; meter.redOut --> sink.in; meter.greenOut --> join.in++; join.out --> out; }File: examples/diffserv/onedomain/TC3.ned