EthernetLink

Package: inet.node.ethernet

channel EthernetLink

EthernetLink provides a base channel type for Ethernet connections with configurable length and propagation delay. It extends the Cable type and calculates the delay based on the physical length of the cable and the speed of light in the medium.

The EthernetLink serves as a base for specific Ethernet standards with different data rates, from 10 Mbps to 400 Gbps.

Usage diagram

Inheritance diagram

Used in

Name

Type

Description

DumbbellNetwork

network

(no description)

LinearNetwork

network

(no description)

TsnDumbbellNetwork

network

(no description)

TsnLinearNetwork

network

(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

Eth200G

channel

200 gigabit/sec Ethernet link

Eth400G

channel

400 gigabit/sec Ethernet link

Eth40G

channel

40 gigabit/sec Ethernet link

Extends

Name

Type

Description

Cable

channel

(no description)

Parameters

Name

Type

Default value

Description

disabled

bool

false

delay

double

replaceUnit(length / 2e8, “s”)

datarate

double

0bps

ber

double

0

per

double

0

enabledLineStyle

string

“solid”

disabledLineStyle

string

“dashed”

disabledIcon

string

“status/cross”

length

double

10m

Properties

Name

Value

Description

class

Cable

Source code

//
// EthernetLink provides a base channel type for Ethernet connections with configurable
// length and propagation delay. It extends the Cable type and calculates the delay
// based on the physical length of the cable and the speed of light in the medium.
//
// The EthernetLink serves as a base for specific Ethernet standards with different
// data rates, from 10 Mbps to 400 Gbps.
//
channel EthernetLink extends Cable
{
    double length @unit(m) = default(10m);
    delay = default(replaceUnit(length / 2e8, "s"));
}

File: src/inet/node/ethernet/EthernetLink.ned