Unipisa / Simu5G

Simu5G - 5G NR and LTE/LTE-A user-plane simulation model for OMNeT++ & INET
https://simu5g.org
Other
142 stars 81 forks source link

MEC App using MEC services #159

Closed EstefaniaCC closed 9 months ago

EstefaniaCC commented 1 year ago

Hi all,

Is there an example of MEC app retrieving information from a MEC service?

Thank you.

Estefanía.

giovanninardini commented 1 year ago

Hello,

the MecWarningAlertApp retrieves information from the Location Service. See also the example in simulations/NR/mec/singleMecHost

Best regards. Giovanni

EstefaniaCC commented 1 year ago

Hi Giovanni,

thanks for your fast response.

After checking the output of the MEWarningAlertApp - HTTP RESPONSE, and in particular the /example/location/v2/subscriptions/area/circle/1{"circleNotificationSubscription json output, I can check that this method is only called 3 times (one per UE). Should not be this response to the subscription be reported periodically? Moreover, the lantitude and longitud, and frequency is the same for all the 3 of them.

Could you please tell me if I am reading the subscription notification in the wrong function, or why this information is not periodical and does not change?

thanks.

Best regards, Estefanía.

giovanninardini commented 1 year ago

Hi,

in that example the MecWarningAlertApp uses the Location Service according to the subscribe-notify paradigm. This means that the MecApp subscribes to a specific event - in this case, getting in/out of the "warning area". In turn, the Location Service notifies the MecApp only when that event occurs. That is why the information is not periodic.

Best regards. Giovanni

EstefaniaCC commented 1 year ago

Hi Giovanni,

Thanks a lot. I understood the two questions I made to you.

I believe a similar example does not exist yet for the RNIDelay scenario under /simulations/NR/mec, right? Unfortunately, when in the ini file selecting *.mecHost.mecPlatform.numMecServices = 1 the simulation does not run, and I have not seen any associated application in the src folders, or attached as application descriptors under RNIDelay.

Best regards, Estefanía.

giovanninardini commented 1 year ago

Hello,

I am sorry for the delay. I have just uploaded a new simulation example with a MEC app querying the RNI Service. You can find it in folder simulations/NR/mec/rnisTest.

Hope this helps. Giovanni