Package: simu5g.nodes.mec.MECPlatform.MECServices.RNIService
RNIService
simple moduleThis module implements a subset of the Radio Network Information Service API defined by the ETSI GS MEC 012 specification. It exposes a REST API that allows MEC applications to retrieve layer-2 measurements related to a User Equipment (UE) or base station.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| requestQueueSize | int | 0 | |
| subscriptionQueueSize | int | 0 | |
| localAddress | string | "" |
local address; may be left empty ("") |
| localPort | int | 1000 |
localPort number to listen on |
| requestServiceTime | double | 0.5us | |
| subscriptionServiceTime | double | 0.5us | |
| loadGenerator | bool | false | |
| betaa | double | 0 |
used only if loadGenerator is true |
| numBGApps | int | 0 |
used only if loadGenerator is true |
| serverThreadClass | string | "simu5g.nodes.mec.MECPlatform.MECServices.MECServiceBase.SocketManager" | |
| serviceName | string | "RNIService" | |
| serviceVersion | string | "v2" | |
| serviceSerialize | string | "JSON" | |
| transportId | string | "RNIAPI" | |
| transportName | string | "RNIAPI" | |
| transportType | string | "REST_HTTP" | |
| transportProtocol | string | "HTTP" | |
| catId | string | "" | |
| catName | string | "RNI" | |
| catUri | string | "" | |
| catVersion | string | "v2" | |
| scopeOfLocality | string | "MEC_HOST" | |
| consumedLocalOnly | bool | true | |
| binderModule | string | "binder" |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/app |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| socketIn | input | ||
| socketOut | output |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| responseTime | |||
| requestQueueSize |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| requestQueueSizeStat | Request queue size | requestQueueSize | mean, vector | |||
| responseTimeStat | Response time of foreground requests | responseTime | mean, vector |
Source code
// // This module implements a subset of the Radio Network Information Service API defined by the ETSI // GS MEC 012 specification. It exposes a REST API that allows MEC applications to retrieve // layer-2 measurements related to a User Equipment (UE) or base station. // simple RNIService like IMECService, IApp { parameters: int requestQueueSize = default(0); int subscriptionQueueSize = default(0); string localAddress = default(""); // local address; may be left empty ("") int localPort = default(1000); // localPort number to listen on double requestServiceTime @unit(s) = default(0.5us); double subscriptionServiceTime @unit(s) = default(0.5us); bool loadGenerator = default(false); double betaa = default(0); // used only if loadGenerator is true int numBGApps = default(0); // used only if loadGenerator is true string serverThreadClass = default("simu5g.nodes.mec.MECPlatform.MECServices.MECServiceBase.SocketManager"); string serviceName = default("RNIService"); string serviceVersion = default("v2"); string serviceSerialize = default("JSON"); string transportId = default("RNIAPI"); string transportName = default("RNIAPI"); string transportType = default("REST_HTTP"); string transportProtocol = default("HTTP"); string catId = default(""); string catName = default("RNI"); string catUri = default(""); string catVersion = default("v2"); string scopeOfLocality = default("MEC_HOST"); bool consumedLocalOnly = default(true); string binderModule = default("binder"); @display("i=block/app"); @signal[requestQueueSize]; @statistic[requestQueueSizeStat](title="Request queue size"; source="requestQueueSize"; record=mean,vector); @signal[responseTime]; @statistic[responseTimeStat](title="Response time of foreground requests"; source="responseTime"; record=mean,vector); gates: input socketIn @labels(TcpCommand/up); output socketOut @labels(TcpCommand/down); }File: src/nodes/mec/MECPlatform/MECServices/RNIService/RNIService.ned