Channel DatarateChannel

Package: ned
Built-in type

(no description)

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Known subclasses:

Name Type Description
core2core channel (no description)
core2core channel (no description)
edge2gateway channel (no description)
edge2gateway channel (no description)
edge2host channel (no description)
edge2host channel (no description)
gateway2core channel (no description)
gateway2core channel (no description)
host2edge channel (no description)
host2edge channel (no description)
inet_dialup_56k channel

56k modem channel for InetUnderlay

inet_dsl channel

DSL channel for InetUnderlay

inet_dsl_lossy channel

DSL channel with packet loss for InetUnderlay

inet_ethernetline channel

Ethernet channel for InetUnderlay

inet_ethernetline_lossy channel

Ethernet channel with packet loss for InetUnderlay

inet_fiberline channel

Fiberline channel for InetUnderlay

simple_dialup_56k channel

56k modem channel for SimpleUnderlay

simple_dsl channel

DSL channel for SimpleUnderlay

simple_dsl_lossy channel

DSL channel with packet loss for SimpleUnderlay

simple_ethernetline channel

Ethernet channel for SimpleUnderlay

simple_ethernetline_lossy channel

Ethernet channel with packet loss for SimpleUnderlay

stub2stub channel (no description)
stub2stub channel (no description)
stub2transit channel (no description)
stub2transit channel (no description)
transit2transit channel (no description)
transit2transit 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 cDatarateChannel

Signals:

Name Type Unit
messageDiscarded cMessage
messageSent cMessage
channelBusy int

Statistics:

Name Title Source Record Unit Interpolation Mode
utilization timeavg(channelBusy) last?
packetsDiscarded constant1(messageDiscarded) count? none
packetBytes packetBytes(messageSent) sum? B none
packets constant1(messageSent) count? none
busy channelBusy vector? sample-hold
throughput sumPerDuration(packetBits(messageSent)) last? bps

Source code:

channel DatarateChannel
{
    @class(cDatarateChannel);
    @signal[channelBusy](type="int");
    @signal[messageSent](type=cMessage);
    @signal[messageDiscarded](type=cMessage);
    @statistic[busy](source=channelBusy; record=vector?; interpolationmode=sample-hold);
    @statistic[utilization](source="timeavg(channelBusy)"; record=last?);
    @statistic[packets](source="constant1(messageSent)"; record=count?; interpolationmode=none);
    @statistic[packetBytes](source="packetBytes(messageSent)"; record=sum?; unit=B; interpolationmode=none);
    @statistic[packetsDiscarded](source="constant1(messageDiscarded)"; record=count?; interpolationmode=none);
    @statistic[throughput](source="sumPerDuration(packetBits(messageSent))"; record=last?; unit=bps);
    bool disabled = default(false);
    double delay @unit(s) = default(0s); // propagation delay
    double datarate @unit(bps) = default(0bps); // bits per second; 0=infinite
    double ber = default(0); // bit error rate (BER)
    double per = default(0); // packet error rate (PER)
}