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 |
|---|---|---|
network |
(no description) |
|
network |
(no description) |
|
network |
(no description) |
|
network |
(no description) |
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
channel |
100 gigabit/sec Ethernet link |
|
channel |
100 megabit/sec Ethernet link |
|
channel |
10 gigabit/sec Ethernet link |
|
channel |
10 megabit/sec Ethernet link |
|
channel |
1 gigabit/sec Ethernet link |
|
channel |
200 gigabit/sec Ethernet link |
|
channel |
400 gigabit/sec Ethernet link |
|
channel |
40 gigabit/sec Ethernet link |
Extends¶
Name |
Type |
Description |
|---|---|---|
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"));
}