PeriodicLossChannel
Package: inet.common.misc
PeriodicLossChannel
channelThis channel uses the per parameter for periodic packet loss. That means it delivers exactly 1/per packets, followed by one drop. It does not use the BER paramater.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| DatarateChannel | channel | (no description) |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| disabled | bool | false | |
| delay | double | 0s |
propagation delay |
| datarate | double | 0bps |
bits per second; 0=infinite |
| ber | double | 0 |
bit error rate (BER) |
| per | double | 0 |
packet error rate (PER) |
Properties
| Name | Value | Description |
|---|---|---|
| class | PeriodicLossChannel |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| channelBusy | long | ||
| messageSent | omnetpp::cMessage | ||
| messageDiscarded | omnetpp::cMessage |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| packetsDiscarded | constant1(messageDiscarded) | count? | none | |||
| busy | channelBusy | vector? | sample-hold | |||
| utilization | timeavg(channelBusy) | last? | ||||
| packetBytes | packetBytes(messageSent) | sum? | B | none | ||
| throughput | sumPerDuration(packetBits(messageSent)) | last? | bps | |||
| packets | constant1(messageSent) | count? | none |
Source code
// // This channel uses the per parameter for periodic packet loss. That means it // delivers exactly 1/per packets, followed by one drop. It does not use the // BER paramater. // channel PeriodicLossChannel extends ned.DatarateChannel { ber = 0; // Larger values will be ignored, only PER is used. @class(PeriodicLossChannel); }File: src/inet/common/misc/PeriodicLossChannel.ned