MecRequestBackgroundApp

Package: simu5g.apps.mec.MecApps.MecRequestBackgroundApp

simple module MecRequestBackgroundApp

Generates requests to be sent to the LocationService. This application can be instantiated as an “independent MEC app” (see MecHost module), which means it does not need to be instantiated via the MEC orchestrator upon request from a User Equipment. In particular, this module produces bulks of GET requests, as generated by a configurable number of MEC applications running on the MEC host. The result of such requests is to delay the service of real requests (i.e., those originating from complete MEC applications)

simu5g.apps.mec.MecApps.MecRequestBackgroundApp.MecRequestBackgroundAppMecRequestBackgroundAppsimple

Inheritance 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

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

MecRequestBackgroundApp

display

i=block/app

Gates

Name

Direction

Size

Description

mePlatformIn

input

mePlatformOut

output

socketIn

input

socketOut

output

Source code

//
// Generates requests to be sent to the ~LocationService.
// This application can be instantiated as an "independent MEC app" (see ~MecHost
// module), which means it does not need to be instantiated via the MEC orchestrator upon
// request from a User Equipment. In particular, this module produces bulks of
// GET requests, as generated by a configurable number of MEC applications
// running on the MEC host. The result of such requests is to delay the service
// of real requests (i.e., those originating from complete MEC applications)
//
simple MecRequestBackgroundApp extends MecAppBase
{
    parameters:
        @class(MecRequestBackgroundApp);
        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);

        @display("i=block/app");
}

File: src/simu5g/apps/mec/MecApps/MecRequestBackgroundApp/MecRequestBackgroundApp.ned