MecRequestForegroundApp

Package: simu5g.apps.mec.MecApps.MecRequestForegroundApp

MecRequestForegroundApp

simple module

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

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
MecAppBase 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

Socket parameters

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
display i=block/app;is=s
class MecRequestForegroundApp

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