MecRequestForegroundApp¶
Package: simu5g.apps.mec.MecApps.MecRequestForegroundApp
simple module MecRequestForegroundApp
Implements a MEC application that issues GET requests to the LocationService every 500ms. This application can be utilized as an “independent MEC app” (see MecHost module), hence it does not require instantiation via the MEC orchestrator upon request from a User Equipment. Essentially, this application provides a quick way to generate configurable load to the Location Service and simulate different (and potentially more realistic) response times from the latter.
TODO: make the period configurable
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
This is a MEC app that … TBC |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
mecAppId |
int |
0 |
|
mecAppIndex |
int |
0 |
|
mp1Address |
string |
“” |
|
mp1Port |
int |
10021 |
|
vimModule |
string |
“^.vim” |
Module references |
mecPlatformModule |
string |
“^.mecPlatform” |
|
serviceRegistryModule |
string |
“^.mecPlatform.serviceRegistry” |
|
requiredRam |
double |
10MB |
Required resources |
requiredDisk |
double |
100MB |
|
requiredCpu |
double |
15000 |
|
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 |
lambda |
double |
10ms |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
MecRequestForegroundApp |
|
display |
i=block/app;is=s |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
mePlatformIn |
input |
||
mePlatformOut |
output |
||
socketIn |
input |
||
socketOut |
output |
Source code¶
//
// Implements a MEC application that issues GET requests to the ~LocationService
// every 500ms. This application can be utilized as an "independent MEC app" (see
// ~MecHost module), hence it does not require instantiation via the MEC orchestrator
// upon request from a User Equipment. Essentially, this application provides a quick
// way to generate configurable load to the Location Service and simulate different
// (and potentially more realistic) response times from the latter.
//
// TODO: make the period configurable
//
simple MecRequestForegroundApp extends MecAppBase
{
parameters:
@class(MecRequestForegroundApp);
mecAppId = default(0); // Overwritten with getId() at initialization
mecAppIndex = default(0);
double lambda @unit(s) = default(10ms);
// Required resources
requiredRam = default(10MB);
requiredDisk = default(100MB);
requiredCpu = default(15000);
}
File: src/simu5g/apps/mec/MecApps/MecRequestForegroundApp/MecRequestForegroundApp.ned