Channel EtherLink

Package: inet.node.ethernet
File: src/inet/node/ethernet/EtherLink.ned

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.

EtherLink

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.

Extends:

Name Type Description
DatarateChannel channel (no description)

Known subclasses:

Name Type Description
Eth100G channel

100 gigabit/sec Ethernet link

Eth100M channel

100 megabit/sec Ethernet link

Eth10G channel

10 gigabit/sec Ethernet link

Eth10M channel

10 megabit/sec Ethernet link

Eth1G channel

1 gigabit/sec Ethernet link

Eth40G channel

40 gigabit/sec Ethernet link

Parameters:

Name Type Default value Description
disabled bool false
delay double replaceUnit(length / 2e8, "s")

propagation delay

datarate double 0bps

bits per second; 0=infinite

ber double 0

bit error rate (BER)

per double 0

packet error rate (PER)

length double 10m

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:

//
// 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.
//
channel EtherLink extends DatarateChannel
{
    double length @unit(m) = default(10m);
    delay = replaceUnit(length / 2e8, "s");
}