MecResponseApp¶
Package: simu5g.apps.mec.MecRequestResponseApp
simple module MecResponseApp
Represents an application that is dynamically instantiated on a MEC host upon request from a UeRequestApp, via a DeviceApp. Upon receiving a request from the UE, it queries the LocationService to obtain some information (which is not utilized; it is intended only to “consume” some time), and sends a response message to the UE after a computation time that depends on the current resource utilization at the MEC host.
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
This is a MEC app that … TBC |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
mecAppId |
int |
||
mecAppIndex |
int |
||
mp1Address |
string |
“” |
|
mp1Port |
int |
10021 |
|
vimModule |
string |
“^.vim” |
Module references |
mecPlatformModule |
string |
“^.mecPlatform” |
|
serviceRegistryModule |
string |
“^.mecPlatform.serviceRegistry” |
|
requiredRam |
double |
Required resources |
|
requiredDisk |
double |
||
requiredCpu |
double |
||
timeToLive |
int |
-1 |
If not -1, set the TTL (IPv4) or Hop Limit (IPv6) field of sent packets to this value |
dscp |
int |
-1 |
If not -1, set the DSCP (IPv4/IPv6) field of sent packets to this value |
tos |
int |
-1 |
If not -1, set the Type of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value |
responsePacketSize |
int |
50B |
|
localUePort |
int |
||
minInstructions |
int |
9000000 |
|
maxInstructions |
int |
11000000 |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
MecResponseApp |
|
display |
i=block/app;is=s |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
mePlatformIn |
input |
||
mePlatformOut |
output |
||
socketIn |
input |
||
socketOut |
output |
Source code¶
//
// Represents an application that is dynamically instantiated on a MEC host upon request
// from a ~UeRequestApp, via a ~DeviceApp.
// Upon receiving a request from the UE, it queries the ~LocationService to obtain some
// information (which is not utilized; it is intended only to "consume" some time), and sends a
// response message to the UE after a computation time that depends on the current resource utilization at the
// MEC host.
//
simple MecResponseApp extends MecAppBase
{
parameters:
@class(MecResponseApp);
@display("i=block/app;is=s");
int responsePacketSize @unit(B) = default(50B);
int localUePort;
int minInstructions = default(9000000);
int maxInstructions = default(11000000);
}
File: src/simu5g/apps/mec/MecRequestResponseApp/MecResponseApp.ned