Package: simu5g.nodes
eNodeB
compound moduleModels an evolved Node B (eNB) of a 4G LTE network. It is a specialized device equipped with a Network Interface Card (NIC) that enables communication with the LteUe devices connected to it. It serves as an access point that routes packets between the UEs and the 4G Core Network. Packets arriving from the UEs are tunneled to the appropriate next hop in the core network (e.g., the PDN Gateway, PGW) using the GPRS Tunneling Protocol (GTP). Conversely, packets received from the core network are detunneled and sent to the appropriate destination UE. In addition to the 4G NIC, this compound module includes a configurable number of wired interfaces to connect with routers of the core network or directly to the PgwStandard module, which serves as the IP module to perform forwarding, and the UserPlaneRelay that relays between the NIC and the GTP tunnels: its TrafficFlowFilter classifies incoming packets and determines the next hop, and its GtpUser handles GTP (de)tunneling. Furthermore, it features a configurable number of LteX2App modules to facilitate peer-to-peer communications with other eNodeBs within the same LTE network.
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.
Used in
| Name | Type | Description |
|---|---|---|
| MultiCell | network |
Two eNodeB cells on a shared EPC PgwStandard, joined by an X2 link, with a router and a server behind the core. Four LteUe terminals are placed two per cell, and numExtCells ExtCell cells can be added as interferers. With hasD2D, the network holds the D2dBinder that D2D-capable nodes need, so that '**.hasD2D = true' turns D2D on in the network and in all its nodes. |
| MultiCell_D2DMultihop | network |
Five eNodeB cells, each reaching the EPC PgwStandard through a router of its own, with a further router and a server behind the core. There are no X2 links. numUe1 to numUe5 LteUe terminals attach per cell, and an EventGenerator and a MultihopD2DStatistics module sit beside them, wired to nothing. |
| MultiCell_withSecondaryGnb | network |
The two-cell version of SingleCell_withSecondaryGnb: two eNodeB masters, each paired over X2 with its own gNodeB secondary, and a further X2 link between the two masters. Both eNodeBs connect to the EPC PgwStandard, which faces a router and a server; neither gNodeB has a core-network link. numUe NrUe terminals attach, and numBgCells BackgroundCell cells can be added as interferers. |
| MultiCell_X2Mesh | network |
Three eNodeB cells in a full X2 mesh. Each reaches the EPC PgwStandard through a router of its own, and the server sits directly on the PgwStandard's data-network gate. numUe1, numUe2 and numUe3 LteUe terminals attach per cell, and numExtCells ExtCell cells can be added as interferers. |
| SingleCell | network |
The minimal LTE topology: one eNodeB connected to an EPC PgwStandard, which faces a router and a server, plus numUe LteUe terminals. |
| SingleCell_D2D | network |
SingleCell with its UEs split into three vectors, so that a configuration can address cellular terminals (ueCell), D2D transmitters (ueD2DTx) and D2D receivers (ueD2DRx) separately. The rest of the topology is the same: one eNodeB on an EPC PgwStandard, with a router and a server behind it. |
| SingleCell_D2DMulticast | network |
SingleCell with its UEs split into cellular terminals (ueCell) and members of a D2D multicast group (ueD2D). The rest of the topology is the same: one eNodeB on an EPC PgwStandard, with a router and a server behind it. |
| SingleCell_withSecondaryEnb | network |
The mirror image of SingleCell_withSecondaryGnb: here the gNodeB is the master node and the eNodeB is its secondary, so the UE is anchored on its NR stack and its LTE stack carries the secondary cell group. All data-plane traffic enters at the gNodeB. |
| SingleCell_withSecondaryGnb | network |
An EN-DC topology: an eNodeB master paired over X2 with a gNodeB secondary. The eNodeB is the only node with a core-network link -- an EPC PgwStandard facing a router and a server -- so all data-plane traffic enters there, and the gNodeB contributes its radio leg alone. numUe NrUe terminals attach to both, and numBgCells BackgroundCell cells can be added as interferers. |
Known subclasses
| Name | Type | Description |
|---|---|---|
| gNodeB | compound module |
Implements a gNodeB for a 5G network. It extends the eNodeB module by providing 5G connectivity to NrUe modules. It can be used in either StandAlone (SA) or Non-StandAlone (NSA) 5G deployments. In the former case, it is directly connected to a Upf module. In the latter case, this module can be configured as a secondary node of a eNodeB module, thus enabling E-UTRA Dual Connectivity (EN-DC). |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| nodeType | string | "ENODEB" | |
| gateway | string | "pgw" | |
| masterId | int | 0 |
ID of the master eNodeB. Used in case of Dual Connectivity |
| macNodeId | int | 1+simu5g_seq("eNodeB_macNodeId") | |
| macCellId | int | macNodeId | |
| txPower | double | 100mw | |
| hasD2D | bool | false | |
| hasIpv4 | bool | true | |
| hasIpv6 | bool | false | |
| numApps | int | 0 | |
| numX2Apps | int | 0 |
Number of X2 apps; set their types in the ini file, e.g. x2App[0..1].typename="X2AppClient" |
| hasUdp | bool | true | |
| hasTcp | bool | firstAvailableOrEmpty("Tcp", "TcpLwip", "TcpNsc") != "" | |
| hasSctp | bool | true | |
| mecHost | string | "" | |
| hasRniSupport | bool | false | |
| extMeAppsAddress | string | "" | |
| mcc | string | "001" | |
| mnc | string | "01" |
Test network |
Properties
| Name | Value | Description |
|---|---|---|
| networkNode | ||
| labels | node | |
| display | i=device/antennatower;bgb=1500,600 |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| ppp | inout |
Connection to the Core Network |
|
| radioIn | input |
Connection to the radio interface |
|
| x2 [ ] | inout |
Connection to the X2 interface |
|
| pppMEHost | inout |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| posX | xCoord(mobilityPos(mobilityStateChanged)) | vector? | ||||
| posY | yCoord(mobilityPos(mobilityStateChanged)) | vector? |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| interfaceTable.displayStringTextFormat | string | "{numInterfaces} interfaces" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| mobility.displayStringTextFormat | string | "p: {position}\nv: {velocity}" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| mobility.subjectModule | string | "^" |
The module path that determines the subject module, the motion of which this mobility model describes. The default value is the parent module |
| mobility.coordinateSystemModule | string | "" |
The module path of the geographic coordinate system module; optional, empty disables geographic conversion (and the {geo_position} directive) |
| mobility.updateDisplayString | bool | true |
Enables continuous update of the subject module's position by modifying its display string |
| mobility.constraintAreaMinX | double | -inf m |
The minimum x position of the constraint area. It is unconstrained by default (negative infinity) |
| mobility.constraintAreaMinY | double | -inf m |
The minimum y position of the constraint area. It is unconstrained by default (negative infinity) |
| mobility.constraintAreaMinZ | double | -inf m |
The minimum z position of the constraint area. It is unconstrained by default (negative infinity) |
| mobility.constraintAreaMaxX | double | inf m |
The maximum x position of the constraint area. It is unconstrained by default (positive infinity) |
| mobility.constraintAreaMaxY | double | inf m |
The maximum y position of the constraint area. It is unconstrained by default (positive infinity) |
| mobility.constraintAreaMaxZ | double | inf m |
The maximum z position of the constraint area. It is unconstrained by default (positive infinity) |
| mobility.initialX | double | uniform(this.constraintAreaMinX, this.constraintAreaMaxX) | |
| mobility.initialY | double | uniform(this.constraintAreaMinY, this.constraintAreaMaxY) | |
| mobility.initialZ | double | nanToZero(uniform(this.constraintAreaMinZ, this.constraintAreaMaxZ)) | |
| mobility.initialLatitude | double | nan deg | |
| mobility.initialLongitude | double | nan deg | |
| mobility.initialAltitude | double | 0m | |
| mobility.initialHeading | double | 0deg | |
| mobility.initialElevation | double | 0deg | |
| mobility.initialBank | double | 0deg | |
| mobility.initFromDisplayString | bool | true |
Enables one-time initialization from the subject module's display string |
| mobility.updateFromDisplayString | bool | true |
Enables continuous update from the subject module's display string for dragging and rotating it |
| cellInfo.constraintAreaMinX | double | -1m/0 |
The minimum X-coordinate of the area constraint, unconstrained by default |
| cellInfo.constraintAreaMinY | double | -1m/0 |
The minimum Y-coordinate of the area constraint, unconstrained by default |
| cellInfo.constraintAreaMaxX | double | 1m/0 |
The maximum X-coordinate of the area constraint, unconstrained by default |
| cellInfo.constraintAreaMaxY | double | 1m/0 |
The maximum Y-coordinate of the area constraint, unconstrained by default |
| cellInfo.beaconInterval | double | 1s |
Interval for sending broadcast messages (used for handover or DAS) |
| cellInfo.microCell | bool | false |
Type of eNodeB (MICRO / MACRO) - valid only for eNodeBs |
| cellInfo.rbyDl | int | 12 |
Number of sub-carriers per RB in DL |
| cellInfo.rbyUl | int | 12 |
Number of sub-carriers per RB in UL |
| cellInfo.rbxDl | int | 7 |
Number of OFDM symbols per slot in DL |
| cellInfo.rbxUl | int | 7 |
Number of OFDM symbols per slot in UL |
| cellInfo.rbPilotDl | int | 3 |
Number of pilot Resource Elements per RB in DL |
| cellInfo.rbPilotUl | int | 0 |
Number of pilot Resource Elements per RB in UL |
| cellInfo.signalDl | int | 1 |
Number of signaling symbols for each Resource Block in DL |
| cellInfo.signalUl | int | 1 |
Number of signaling symbols for each Resource Block in UL |
| cellInfo.numPreferredBands | int | 1 |
Number of preferred bands to use (relevant only in PREFERRED mode) |
| cellInfo.binderModule | string | "binder" | |
| collector.collectorType | string |
One of "eNBStatsCollector", "gNBStatsCollector", "ueStatsCollector", "NrUeStatsCollector" |
|
| pppIf.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| pppIf.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| pppIf.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| pppIf.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| pppIf.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| pppIf.pcapRecorder.fileFormat | string | "pcapng" | |
| pppIf.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| pppIf.pcapRecorder.timePrecision | int | 6 |
Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format). |
| pppIf.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| pppIf.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| pppIf.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| pppIf.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| pppIf.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| pppIf.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| pppIf.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| pppIf.ppp.displayStringTextFormat | string | "rate: %b\nsent: %s, rcvd: %r\nqueue: %q, drop: %d" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| pppIf.ppp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| pppIf.ppp.sendRawBytes | bool | false |
When true packets are serialized into a sequence of bytes before sending out |
| pppIf.ppp.mtu | int | 4470B | |
| pppIf.ppp.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finished |
| pppIf.ppp.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| x2ppp.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| x2ppp.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| x2ppp.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| x2ppp.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| x2ppp.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| x2ppp.pcapRecorder.fileFormat | string | "pcapng" | |
| x2ppp.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| x2ppp.pcapRecorder.timePrecision | int | 6 |
Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format). |
| x2ppp.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| x2ppp.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| x2ppp.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| x2ppp.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| x2ppp.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| x2ppp.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| x2ppp.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| x2ppp.ppp.displayStringTextFormat | string | "rate: %b\nsent: %s, rcvd: %r\nqueue: %q, drop: %d" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| x2ppp.ppp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| x2ppp.ppp.sendRawBytes | bool | false |
When true packets are serialized into a sequence of bytes before sending out |
| x2ppp.ppp.mtu | int | 4470B | |
| x2ppp.ppp.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finished |
| x2ppp.ppp.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| pppMEHostIf.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| pppMEHostIf.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| pppMEHostIf.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| pppMEHostIf.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| pppMEHostIf.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| pppMEHostIf.pcapRecorder.fileFormat | string | "pcapng" | |
| pppMEHostIf.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| pppMEHostIf.pcapRecorder.timePrecision | int | 6 |
Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format). |
| pppMEHostIf.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| pppMEHostIf.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| pppMEHostIf.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| pppMEHostIf.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| pppMEHostIf.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| pppMEHostIf.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| pppMEHostIf.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| pppMEHostIf.ppp.displayStringTextFormat | string | "rate: %b\nsent: %s, rcvd: %r\nqueue: %q, drop: %d" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| pppMEHostIf.ppp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| pppMEHostIf.ppp.sendRawBytes | bool | false |
When true packets are serialized into a sequence of bytes before sending out |
| pppMEHostIf.ppp.mtu | int | 4470B | |
| pppMEHostIf.ppp.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finished |
| pppMEHostIf.ppp.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| udp.displayStringTextFormat | string | "passed up: {numPassedUp} pks\nsent: {numSent} pks{udpDroppedText}" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| udp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| udp.checksumMode | string | "declared" | |
| udp.defaultMulticastLoop | bool | true | |
| tcp.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| tcp.checksumMode | string | "declared" | |
| tcp.advertisedWindow | int | 14 * this.mss |
In bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size) |
| tcp.delayedAcksEnabled | bool | false |
Delayed ACK algorithm (RFC 1122) enabled/disabled |
| tcp.nagleEnabled | bool | true |
Nagle's algorithm (RFC 896) enabled/disabled |
| tcp.limitedTransmitEnabled | bool | false |
Limited Transmit algorithm (RFC 3042) enabled/disabled (can be used for TcpReno/TcpTahoe/TcpNewReno/TcpNoCongestionControl) |
| tcp.increasedIWEnabled | bool | false |
Increased Initial Window (RFC 3390) enabled/disabled |
| tcp.sackSupport | bool | false |
Selective Acknowledgment (RFC 2018, 2883, 3517) support (header option) (SACK will be enabled for a connection if both endpoints support it) |
| tcp.windowScalingSupport | bool | false |
Window Scale (RFC 1323) support (header option) (WS will be enabled for a connection if both endpoints support it) |
| tcp.windowScalingFactor | int | -1 |
Window Scaling Factor given as a shift count. Valid values are 0..14, and -1 for automatic selection (it chooses the smallest shift count that makes advertisedWindow representable in 16 bits) |
| tcp.timestampSupport | bool | false |
Timestamps (RFC 1323) support (header option) (TS will be enabled for a connection if both endpoints support it) |
| tcp.mss | int | 536 |
Maximum Segment Size (header option). Default 536 per RFC 1122. |
| tcp.msl | int | 120s |
Maximum Segment Lifetime |
| tcp.tcpAlgorithmClass | string | "TcpReno" | |
| tcp.dupthresh | int | 3 |
Used for TcpTahoe, TcpReno, and SACK (RFC 3517) DO NOT change unless you really know what you are doing |
| tcp.initialSsthresh | int | 0xFFFFFFFF |
Initial value for Slow Start threshold used in TahoeRenoFamily. The initial value of ssthresh SHOULD be set arbitrarily high (e.g., to the size of the largest possible advertised window) Without user interaction there is no limit... |
| tcp.stopOperationExtraTime | double | 0s |
Extra time after lifecycle stop operation finished |
| tcp.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| tcp.ecnWillingness | bool | false |
True if willing to use ECN |
| tcp.dctcpGamma | double | 0.0625 |
A fixed estimation gain for calculating dctcp_alpha (RFC 8257 4.2) |
| tcp.pmtudEnabled | bool | false |
Path MTU Discovery (RFC 1191, RFC 1981) enabled/disabled |
| tcp.pmtudTimeout | double | 600s |
Time after which the original MSS is restored to probe for increased path MTU (RFC 1191, Section 6.3) |
| x2App.client.displayStringTextFormat | string | "{socketState}" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| x2App.client.localAddress | string | "" |
Comma-separated list of addresses |
| x2App.client.localPort | int | 0 |
Port number to listen on |
| x2App.client.connectAddress | string |
Server address (may be symbolic) |
|
| x2App.client.connectPort | int | 5000 |
Port number to connect to |
| x2App.client.startTime | double | 0s |
Time the first session begins |
| x2App.client.numRequestsPerSession | int | 1 |
Number of requests sent per session |
| x2App.client.numPacketsToReceive | int | 0 | |
| x2App.client.requestLength | int | 1452 |
Length of a request (bytes) |
| x2App.client.thinkTime | double | 0s |
Time gap between requests |
| x2App.client.waitToClose | double | 0s |
Time to wait between the last message sent and abort |
| x2App.client.reconnectInterval | double | 0s |
If the connection breaks, waits this much before trying to reconnect |
| x2App.client.inboundStreams | int | 17 | |
| x2App.client.outboundStreams | int | 1 | |
| x2App.client.echo | bool | false |
Echoes received packages when true |
| x2App.client.ordered | bool | true | |
| x2App.client.queueSize | int | 0 | |
| x2App.client.prMethod | int | 0 |
0=NONE, 1=PR_TTL, 2=PR_RTX, 3=PR_PRIO, 4=PR_STRRST |
| x2App.client.prValue | double | 0 |
For PR-SCTP |
| x2App.client.streamReset | bool | false | |
| x2App.client.streamRequestTime | double | 0s | |
| x2App.client.streamResetType | int | 5 |
NO_RESET=5, RESET_OUTGOING=6, RESET_INCOMING=7, RESET_BOTH=8, SSN_TSN=9 |
| x2App.client.streamToReset | int | 0 | |
| x2App.client.stopTime | double | -1s |
Time of finishing sending, negative values mean forever |
| x2App.client.primaryTime | double | 0s | |
| x2App.client.newPrimary | string | "" | |
| x2App.client.streamRequestLengths | string | "" | |
| x2App.client.streamRequestRatio | string | "" | |
| x2App.client.streamPriorities | string | "" | |
| x2App.client.finishEndsSimulation | bool | false | |
| x2App.client.binderModule | string | "binder" | |
| x2App.server.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| x2App.server.localAddress | string | "" |
Comma-separated list of addresses |
| x2App.server.localPort | int | 0 |
Port number to listen on |
| x2App.server.echo | bool | false |
Echoes received packages when true |
| x2App.server.echoDelay | double | 0s | |
| x2App.server.delayFirstRead | double | 0s | |
| x2App.server.readingInterval | double | 0s | |
| x2App.server.messagesToPush | int | 0 | |
| x2App.server.numPacketsToSendPerClient | int | 0 |
Number of requests sent per session |
| x2App.server.numPacketsToReceivePerClient | int | 1 | |
| x2App.server.requestLength | int | 1452 |
Length of a request (bytes) |
| x2App.server.thinkTime | double | 0s |
Time gap between requests |
| x2App.server.waitToClose | double | 0s |
Time to wait between last message sent and abort |
| x2App.server.finishEndsSimulation | bool | false | |
| x2App.server.ordered | bool | true | |
| x2App.server.inboundStreams | int | 17 | |
| x2App.server.outboundStreams | int | 1 | |
| x2App.server.queueSize | int | 0 | |
| x2App.server.prMethod | int | 0 |
0=NONE, 1=PR_TTL, 2=PR_RTX, 3=PR_PRIO, 4=PR_STRRST |
| x2App.server.prValue | double | 0 |
For PR-SCTP |
| x2App.server.streamReset | bool | false | |
| x2App.server.streamRequestTime | double | 0s | |
| x2App.server.streamToReset | int | 0 | |
| x2App.server.streamPriorities | string | "" | |
| x2App.server.binderModule | string | "binder" | |
| sctp.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| sctp.interfaceTableModule | string | ||
| sctp.routingTableModule | string | ||
| sctp.checksumMode | string | "declared" | |
| sctp.numGapReports | int | 3 | |
| sctp.rtoInitial | double | 3s | |
| sctp.rtoMin | double | 1s | |
| sctp.rtoMax | double | 60s | |
| sctp.rtoAlpha | double | 0.125 | |
| sctp.rtoBeta | double | 0.250 | |
| sctp.maxBurst | int | 4 | |
| sctp.maxBurstVariant | string | "maxBurst" | |
| sctp.initialWindow | int | 0 | |
| sctp.assocMaxRetrans | int | 10 | |
| sctp.pathMaxRetrans | int | 5 | |
| sctp.maxInitRetrans | int | 8 | |
| sctp.sackPeriod | double | 200ms | |
| sctp.sackFrequency | int | 2 | |
| sctp.reactivatePrimaryPath | bool | false | |
| sctp.sendQueueLimit | int | 0 | |
| sctp.validCookieLifetime | double | 10s | |
| sctp.enableHeartbeats | bool | true | |
| sctp.hbInterval | double | 30s | |
| sctp.sendHeartbeatsOnActivePaths | bool | false | |
| sctp.nagleEnabled | bool | true | |
| sctp.naglePoint | int | 1468 | |
| sctp.fragPoint | int | 1452 | |
| sctp.fastRecoverySupported | bool | true | |
| sctp.sctpAlgorithmClass | string | "SctpAlg" | |
| sctp.ccModule | int | 0 |
RFC4960=0 |
| sctp.osbWithHeader | bool | false | |
| sctp.RTXMethod | int | 0 |
0=Once after 3 Sacks; 1=once per RTT; 2=Switch off Fast Retransmit; 3=Always after 3 Sacks |
| sctp.ssModule | int | 0 | |
| sctp.arwnd | int | 65535 | |
| sctp.swsLimit | int | 3000 |
Limit for SWS |
| sctp.udpEncapsEnabled | bool | false | |
| sctp.natFriendly | bool | false | |
| sctp.bytesToAddPerRcvdChunk | int | 0 |
For flow control |
| sctp.bytesToAddPerPeerChunk | int | 0 |
For flow control |
| sctp.tellArwnd | bool | false |
For flow control |
| sctp.messageAcceptLimit | int | 0 |
For flow control |
| sctp.fairStart | double | 0s | |
| sctp.fairStop | double | 0s | |
| sctp.streamsToPaths | string | "" | |
| sctp.startEndToEndDelay | int | 0 | |
| sctp.stopEndToEndDelay | int | 10 | |
| sctp.throughputInterval | double | 1 | |
| sctp.auth | bool | false | |
| sctp.chunks | string | "" | |
| sctp.padding | bool | false | |
| sctp.addIP | bool | false | |
| sctp.addTime | double | 0s | |
| sctp.addAddress | string | "" | |
| sctp.addIpType | string | "0" |
SET_PRIMARY_ADDRESS=49156,ADD_IP_ADDRESS=49153,DELETE_IP_ADDRESS=49154 |
| sctp.packetDrop | bool | false | |
| sctp.sackNow | bool | false | |
| sctp.highSpeedCC | bool | false | |
| sctp.checkSackSeqNumber | bool | false | |
| sctp.nrSack | bool | false | |
| sctp.disableReneging | bool | false | |
| sctp.gapReportLimit | int | 100000000 | |
| sctp.gapListOptimizationVariant | string | "none" | |
| sctp.smartOverfullSACKHandling | bool | false | |
| sctp.allowQoSTracking | bool | false | |
| sctp.qosTrackingInterval | double | 1.0s | |
| sctp.cmtSendAllVariant | string | "normal" | |
| sctp.cmtRetransmissionVariant | string | "normal" | |
| sctp.cmtCUCVariant | string | "normal" | |
| sctp.cmtBufferSplitVariant | string | "none" | |
| sctp.cmtBufferSplittingUsesOSB | bool | false | |
| sctp.cmtUseSFR | bool | true | |
| sctp.cmtUseDAC | bool | true | |
| sctp.cmtUseFRC | bool | true | |
| sctp.cmtSmartT3Reset | bool | true | |
| sctp.cmtSmartFastRTX | bool | true | |
| sctp.cmtSmartReneging | bool | false | |
| sctp.cmtSlowPathRTTUpdate | bool | false | |
| sctp.cmtChunkReschedulingVariant | string | "none" | |
| sctp.cmtChunkReschedulingThreshold | double | 0.5 | |
| sctp.cmtMovedChunksReduceCwnd | bool | true | |
| sctp.movedChunkFastRTXFactor | double | 2.0 | |
| sctp.cmtSackPath | string | "standard" | |
| sctp.strictCwndBooking | bool | false | |
| sctp.cmtCCVariant | string | "off" |
CMT Congestion Control Variant off = use over every path the default RFC4960 CC (New Reno) lia = First resource pooling congestion control RFC6356 adapted for SCTP - https://datatracker.ietf.org/doc/rfc6356/ olia = alternative MPTCP CC, adapted for SCTP- https://tools.ietf.org/html/draft-khalili-mptcp-congestion-control-05 cmtrpv1 = First resource pooling based CC for SCTP - https://www.tdr.wiwi.uni-due.de/fileadmin/fileupload/I-TDR/SCTP/Paper/AINA2010.pdf cmtrpv2 = Updated version of cmtrpv1 - https://www.tdr.wiwi.uni-due.de/fileadmin/fileupload/I-TDR/SCTP/Paper/ConTEL2011.pdf |
| sctp.cmtCCPathGroups | string | "" | |
| sctp.rpPathBlocking | bool | false | |
| sctp.rpScaleBlockingTimeout | bool | false | |
| sctp.rpMinCwnd | int | 1 | |
| at.displayStringTextFormat | string | "processed {numProcessedPackets} pk ({processedTotalLength})" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| at.interfaceTableModule | string |
Module path to the InterfaceTable module |
|
| at.forwardServiceRegistration | bool | true | |
| at.forwardProtocolRegistration | bool | true | |
| at.interfaceMapping | object | {} |
Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default |
| at.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| at.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| tn.displayStringTextFormat | string | "processed {numProcessedPackets} pk ({processedTotalLength})" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| tn.interfaceTableModule | string |
Module path to the InterfaceTable module |
|
| tn.forwardServiceRegistration | bool | true | |
| tn.forwardProtocolRegistration | bool | true | |
| tn.interfaceMapping | object | {} |
Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default |
| tn.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| tn.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| nl.displayStringTextFormat | string | "processed {numProcessedPackets} pk ({processedTotalLength})" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| nl.interfaceTableModule | string |
Module path to the InterfaceTable module |
|
| nl.forwardServiceRegistration | bool | true | |
| nl.forwardProtocolRegistration | bool | true | |
| nl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| nl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| relay.trafficFlowFilter.binderModule | string | "binder" | |
| relay.trafficFlowFilter.fastForwarding | bool | true | |
| relay.gtpUser.binderModule | string | "binder" | |
| relay.gtpUser.localPort | int | 31 | |
| relay.gtpUser.tunnelPeerPort | int | 31 | |
| gtpUserX2.binderModule | string | "binder" | |
| gtpUserX2.localPort | int | 32 | |
| gtpUserX2.tunnelPeerPort | int | 32 |
Source code
// // Models an evolved Node B (eNB) of a 4G LTE network. It is a specialized device equipped // with a Network Interface Card (NIC) that enables communication with the ~LteUe devices connected // to it. It serves as an access point that routes packets between the UEs and the 4G Core Network. // Packets arriving from the UEs are tunneled to the appropriate next hop in the core network (e.g., // the PDN Gateway, PGW) using the GPRS Tunneling Protocol (GTP). Conversely, packets // received from the core network are detunneled and sent to the appropriate destination UE. // In addition to the 4G NIC, this compound module includes a configurable number of wired interfaces // to connect with routers of the core network or directly to the ~PgwStandard module, which serves // as the IP module to perform forwarding, and the ~UserPlaneRelay that relays between the NIC and the GTP // tunnels: its ~TrafficFlowFilter classifies incoming packets and determines the next hop, and its ~GtpUser // handles GTP (de)tunneling. // Furthermore, it features a configurable number of ~LteX2App modules to facilitate peer-to-peer communications with // other eNodeBs within the same LTE network. // module eNodeB { parameters: @networkNode; @labels(node,ethernet-node,wireless-node); @display("i=device/antennatower;bgb=1500,600"); @figure[applicationLayer](type=rectangle; pos=250,6; size=800,130; lineColor=#808080; cornerRadius=5; fillColor=#ffff00; fillOpacity=0.1); @figure[applicationLayer.title](type=text; pos=1045,11; anchor=ne; text="application layer"); @figure[transportLayer](type=rectangle; pos=250,156; size=800,130; fillColor=#ff0000; lineColor=#808080; cornerRadius=5; fillOpacity=0.1); @figure[transportLayer.title](type=text; pos=1045,161; anchor=ne; text="transport layer"); @figure[networkLayer](type=rectangle; pos=250,306; size=800,130; fillColor=#00ff00; lineColor=#808080; cornerRadius=5; fillOpacity=0.1); @figure[networkLayer.title](type=text; pos=1045,311; anchor=ne; text="network layer"); @figure[linkLayer](type=rectangle; pos=250,456; size=800,130; fillColor=#0000ff; lineColor=#808080; cornerRadius=5; fillOpacity=0.1); @figure[linkLayer.title](type=text; pos=1045,461; anchor=ne; text="link layer"); @figure[radioInterface](type=rectangle; pos=1075,456; size=400,130; fillColor=#00ffff; lineColor=#808080; cornerRadius=5; fillOpacity=0.1); @figure[radioInterface.title](type=text; pos=1470,461; anchor=ne; text="radio interface"); @figure[submodules]; @statistic[posX](source="xCoord(mobilityPos(mobilityStateChanged))"; record=vector?); @statistic[posY](source="yCoord(mobilityPos(mobilityStateChanged))"; record=vector?); //# Node specs string nodeType = default("ENODEB"); // DO NOT CHANGE string gateway = default("pgw"); int masterId = default(0); // ID of the master eNodeB. Used in case of Dual Connectivity int macNodeId = default(1+simu5g_seq("eNodeB_macNodeId")); int macCellId = default(macNodeId); double txPower @unit(mw) = default(100mw); //# D2D support: selects the D2D-capable NIC variant (see the cellularNic submodule). //# An explicit cellularNic.typename in the ini file still overrides this. bool hasD2D = default(false); //# Network Layer specs bool hasIpv4 = default(true); bool hasIpv6 = default(false); *.interfaceTableModule = default(absPath(".interfaceTable")); *.routingTableModule = default("^.ipv4.routingTable"); *.forwarding = true; *.multicastForwarding = false; **.cellInfoModule = default(absPath(".cellInfo")); //# Apps int numApps = default(0); // Number of apps int numX2Apps = default(0); // Number of X2 apps; set their types in the ini file, e.g. x2App[0..1].typename="X2AppClient" //# Transport layer bool hasUdp = true; bool hasTcp = default(firstAvailableOrEmpty("Tcp", "TcpLwip", "TcpNsc") != ""); bool hasSctp = true; //# MEC support string mecHost = default(""); // Symbolic name of the connected MEHost in the Network //# @author Alessandro Noferi bool hasRniSupport = default(false); //# Use it in case of emulation string extMeAppsAddress = default(""); // Address of the external MeApp IP/mask //# PLMN params (used by RNI Service in EnodeBStatsCollector) string mcc = default("001"); // Test network string mnc = default("01"); // Test network gates: inout ppp @loose; // Connection to the Core Network input radioIn @directIn; // Connection to the radio interface inout x2[]; // Connection to the X2 interface //# MEC support inout pppMEHost @loose; // Connection to the GtpEndpoint module inside MEHost submodules: interfaceTable: InterfaceTable { parameters: @display("p=110,158;is=s"); } mobility: StationaryMobility { parameters: @display("p=110,343;is=s"); } cellInfo: CellInfo { parameters: @display("p=110,244;is=s"); } collector: <default("BaseStationStatsCollector")> like IStatsCollector if hasRniSupport { @display("p=110,430;is=s"); } //# //# cellularNic modules //# cellularNic: <default(hasD2D ? "LteNicEnbD2D" : "LteNicEnb")> like ICellularNic { parameters: @display("p=1275,520"); nodeType = parent.nodeType; rrc.connectionControl.gateway = parent.gateway; } pppIf: PppInterface { parameters: @display("p=700,520"); } x2ppp[sizeof(x2)]: PppInterface { parameters: @display("p=850,520,row,100"); } //# //# Mec interface //# pppMEHostIf: PppInterface { @display("p=550,520"); } //# //# Network layer module //# ipv4: <default("Ipv4NetworkLayer")> like INetworkLayer if hasIpv4 { parameters: @display("p=525,371;q=queue"); } ipv6: <default("Ipv6NetworkLayer")> like INetworkLayer if hasIpv6 { parameters: @display("p=775,371;q=queue"); } //# //# Transport layer modules and corresponding application modules //# // =============== Udp ============== // app[numApps]: <> like IApp { parameters: @display("p=325,95,row,150"); } udp: Udp { parameters: @display("p=650,221"); } tcp: Tcp if hasTcp { parameters: @display("p=900,221"); } // =============== X2AP ============== // x2App[numX2Apps]: LteX2App { parameters: @display("p=625,68,row,150"); } sctp: Sctp { parameters: @display("p=400,221"); } // message dispatcher for SAP between application and transport layer at: MessageDispatcher { parameters: @display("p=650,146;b=800,5,,,,1"); } // message dispatcher for SAP between transport and network layer tn: MessageDispatcher { parameters: @display("p=650,296;b=800,5,,,,1"); } // message dispatcher for SAP to link layer nl: MessageDispatcher { parameters: interfaceMapping = parent.hasIpv6 ? {"cellular": "cellularNdSink"} : {}; // WORKAROUND, see ~CellularNicNdSink @display("p=650,446;b=800,5,,,,1"); } // WORKAROUND: takes the IPv6 Neighbor Discovery the network layer sends to the cellular NIC cellularNdSink: CellularNicNdSink if hasIpv6 { parameters: @display("p=400,520"); } //# //# Modules for connecting to the core network and X2 //# relay: UserPlaneRelay { parameters: @display("p=975,95"); ownerType = parent.nodeType; gateway = parent.gateway; mecHost = parent.mecHost; } gtpUserX2: GtpUserX2 { parameters: @display("p=875,40"); } connections allowunconnected: //# //# LTE stack to PHY and network layer //# cellularNic.radioIn <-- radioIn; //# //# Ppp interface to network layer connections //# pppIf.phys <--> ppp; pppIf.upperLayerOut --> nl.in++; pppIf.upperLayerIn <-- nl.out++; //# //# X2 interface to network layer connections //# for i=0..sizeof(x2)-1 { x2ppp[i].phys <--> x2[i]; x2ppp[i].upperLayerOut --> tn.in++; x2ppp[i].upperLayerIn <-- tn.out++; } //# //# User plane: the cellular NIC is wired to the tunnel endpoint directly, the //# base station does not IP-route the UEs' traffic //# cellularNic.upperLayerOut --> { @display("m=v,h"); } --> relay.userDataIn; relay.userDataOut --> { @display("m=h,v"); } --> cellularNic.upperLayerIn; relay.socketOut --> at.in++; relay.socketIn <-- at.out++; //# GTPUserX2 connections gtpUserX2.lteStackOut --> { @display("m=h,v"); } --> cellularNic.x2$i++; cellularNic.x2$o++ --> { @display("m=v,h"); } --> gtpUserX2.lteStackIn; gtpUserX2.socketOut --> at.in++; gtpUserX2.socketIn <-- at.out++; //# X2 apps connections for i=0..numX2Apps-1 { x2App[i].sctpOut[0] --> at.in++; x2App[i].sctpIn[0] <-- at.out++; x2App[i].sctpOut[1] --> at.in++; x2App[i].sctpIn[1] <-- at.out++; cellularNic.x2$o++ --> { @display("m=v,h"); } --> x2App[i].x2ManagerIn; x2App[i].x2ManagerOut --> { @display("m=h,v"); } --> cellularNic.x2$i++; } //# //# Apps to transport layer connections //# for i=0..numApps-1 { app[i].socketOut --> at.in++; app[i].socketIn <-- at.out++; } at.out++ --> udp.appIn if hasUdp; at.in++ <-- udp.appOut if hasUdp; at.out++ --> tcp.appIn if hasTcp; at.in++ <-- tcp.appOut if hasTcp; at.out++ --> sctp.appIn if hasSctp; at.in++ <-- sctp.appOut if hasSctp; //# //# Transport layer to network layer connections //# udp.ipOut --> tn.in++ if hasUdp; udp.ipIn <-- tn.out++ if hasUdp; tcp.ipOut --> tn.in++ if hasTcp; tcp.ipIn <-- tn.out++ if hasTcp; sctp.ipOut --> tn.in++ if hasSctp; tn.out++ --> sctp.ipIn if hasSctp; ipv4.ifIn <-- nl.out++ if hasIpv4; ipv4.ifOut --> nl.in++ if hasIpv4; ipv4.transportIn <-- tn.out++ if hasIpv4; ipv4.transportOut --> tn.in++ if hasIpv4; ipv6.ifIn <-- nl.out++ if hasIpv6; ipv6.ifOut --> nl.in++ if hasIpv6; ipv6.transportIn <-- tn.out++ if hasIpv6; ipv6.transportOut --> tn.in++ if hasIpv6; tn.out++ --> nl.in++; tn.in++ <-- nl.out++; nl.out++ --> cellularNdSink.in if hasIpv6; nl.in++ <-- cellularNdSink.out if hasIpv6; at.out++ --> tn.in++; at.in++ <-- tn.out++; //# //# MEC support //# pppMEHostIf.upperLayerIn <-- nl.out++; pppMEHostIf.upperLayerOut --> nl.in++; pppMEHost <--> pppMEHostIf.phys; }File: src/simu5g/nodes/eNodeB.ned