MecRequestBackgroundGeneratorApp

Package: simu5g.apps.mec.MecApps.MecRequestBackgroundGeneratorApp

simple module MecRequestBackgroundGeneratorApp

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

simu5g.apps.mec.MecApps.MecRequestBackgroundGeneratorApp.MecRequestBackgroundGeneratorAppMecRequestBackgroundGeneratorAppsimple

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

numberOfApplications

int

allocateHostResources

bool

false

Properties

Name

Value

Description

class

MecRequestBackgroundGeneratorApp

display

i=block/app;is=s

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), meaning it does not need to be instantiated via the MEC orchestrator upon
// request from a User Equipment. Specifically, this module produces batches of
// GET requests, as generated by a configurable number of MEC applications
// running on the MEC host. The effect of such requests is to delay the service
// of actual requests (i.e., those originating from complete MEC applications)
//
simple MecRequestBackgroundGeneratorApp extends MecAppBase
{
    parameters:
        @class(MecRequestBackgroundGeneratorApp);
        mecAppId = default(0); // Overwritten with getId() at initialization
        mecAppIndex = default(0);

        int numberOfApplications;
        bool allocateHostResources = default(false);

        // Required resources
        requiredRam = default(10MB);
        requiredDisk = default(100MB);
        requiredCpu = default(15000);
}

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