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.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Known subclasses:

Name Type Description
accessChannel channel (no description)
BottlePath channel (no description)
cable channel

A 100Mb/s Ethernet cable. Part of LargeNet(1,2).

cable channel

A 100Mb/s Ethernet cable. Part of IPv4LargeNet.

coreChannel channel (no description)
EtherLink channel

Base for Ethernet link types. Propagation delay can be specified with the length of the cable, i.e. in meters instead of nanoseconds or microseconds.

ethernetline channel (no description)
ethernetline channel (no description)
fiberline channel (no description)
LFNPath channel (no description)
NormalPath channel (no description)
NormalPath channel (no description)
NormalPath channel (no description)
ThruputMeteringChannel channel

This channels adds suport for thruput meternig to the datarate channel A cDatarateChannel extended with throughput calculation. Values get displayed on the link, using the connection's "t=" display string tag.

Networks:

Name Type Description
ber network (no description)
EarthCloud network (no description)
HubLAN network

Sample Ethernet LAN: four hosts connected by a hub.

MixedLAN network

Sample Ethernet LAN containing eight hosts, a switch and a bus.

MultiRadio network (no description)
RSVPTE4 network

Example network to demonstrate RSVP-TE.

RSVPTE4 network

Example network to demonstrate RSVP-TE.

RSVPTE4 network

Example network to demonstrate RSVP-TE.

RSVPTE4 network

Example network to demonstrate RSVP-TE.

RSVPTE4 network

Example network to demonstrate RSVP-TE.

TwoHosts network

Sample Ethernet LAN: two hosts directly connected to each other via twisted pair.

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
channelBusy long
messageSent omnetpp::cMessage
messageDiscarded omnetpp::cMessage

Statistics:

Name Title Source Record Unit Interpolation Mode
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:

channel DatarateChannel
{
    @class(cDatarateChannel);
    @signal[channelBusy](type=long);
    @signal[messageSent](type=omnetpp::cMessage);
    @signal[messageDiscarded](type=omnetpp::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)
}