Package: simu5g.apps.mecRequestResponseApp
MecRequestApp
simple moduleThis module provides an application model to be run at a User Equipment (UE), which generates periodic requests to be sent to a MecResponseApp module hosted on an (edge) host, located next to a base station. For each request, it expects to receive a response from the MecResponseApp. This module records statistics about the Round-trip Time (RTT). Optionally, the effect of migration can be simulated when the User Equipment (UE) performs a handover to a different base station. In this case, the application can be configured to forward new requests to a different (edge) host, namely, the one located next to the new base station.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
phyModule | string | "^.cellularNic.nrPhy" | |
localPort | int | 4000 | |
destPort | int | 4000 | |
destAddress | string | ||
packetSize | int | intuniform(8000B,12000B) | |
tos | int | -1 |
if not -1, set the Type Of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value |
period | double | 1s | |
startTime | double | 0s | |
stopTime | double | 200s | |
appId | int | 1 | |
enableMigration | bool | false |
Properties
Name | Value | Description |
---|---|---|
display | i=block/source |
Gates
Name | Direction | Size | Description |
---|---|---|---|
socketOut | output | ||
socketIn | input |
Signals
Name | Type | Unit | Description |
---|---|---|---|
recvResponseSno | |||
requestRTT | |||
requestSize |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode | Description |
---|---|---|---|---|---|---|
recvResponseSno | Received Sequence number | recvResponseSno | vector | |||
requestRTT | Round trip time | requestRTT | stats, vector | |||
requestSize | Request packet size | requestSize | stats, vector |
Source code
// // This module provides an application model to be run at a User Equipment (UE), which // generates periodic requests to be sent to a ~MecResponseApp module hosted on an (edge) // host, located next to a base station. For each request, it expects to receive a // response from the ~MecResponseApp. This module records statistics about the Round-trip Time (RTT). // Optionally, the effect of migration can be simulated when the User Equipment (UE) // performs a handover to a different base station. In this case, the application can be // configured to forward new requests to a different (edge) host, namely, the one located next to // the new base station. // simple MecRequestApp like IApp { parameters: @display("i=block/source"); string phyModule = default("^.cellularNic.nrPhy"); int localPort = default(4000); int destPort = default(4000); string destAddress; volatile int packetSize @unit(B) = intuniform(8000B,12000B); int tos = default(-1); // if not -1, set the Type Of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value double period @unit("s") = default(1s); double startTime @unit("s") = default(0s); double stopTime @unit("s") = default(200s); int appId = default(1); bool enableMigration = default(false); @signal[requestSize]; @statistic[requestSize](title="Request packet size"; unit=""; source="requestSize"; record=stats,vector); @signal[requestRTT]; @statistic[requestRTT](title="Round trip time"; unit=""; source="requestRTT"; record=stats,vector); @signal[recvResponseSno]; @statistic[recvResponseSno](title="Received Sequence number"; unit=""; source="recvResponseSno"; record=vector); gates: output socketOut; input socketIn; }File: src/apps/mecRequestResponseApp/MecRequestApp.ned