Skip to main content
Network APIs for Connectivity Quality

CAMARA Connectivity Insights

warning

This documentation is currently under development and subject to change. It reflects outcomes elaborated by 5G-MAG members. If you are interested in becoming a member of the 5G-MAG and actively participating in shaping this work, please contact the Project Office

Description​

With the "Connectivity Insights" API, developers gain visibility into network quality: they can check whether their application's network requirements can be met for a given user session. Based on the API's response, developers can make informed decisions, such as requesting a network boost through the CAMARA Quality on Demand API or adjusting application settings (e.g., video resolution) to ensure the best possible user experience (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml info.description Introduction).

This API performs a single, on-demand ("one-shot") check. For continuous monitoring that pushes an event notification whenever network quality changes, see the companion Connectivity Insights Subscriptions API (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml info.description API functionality; CAMARA ConnectivityInsights main@db9c0de connectivity-insights-subscriptions.yaml /subscriptions POST callbacks notifications).

Information: Connectivity Insights project page and GitHub repository

The API definitions can be obtained here: ConnectivityInsights API_definitions folder

The Connectivity Insights API definition (YAML) is available at: connectivity-insights.yaml

Operations and dependencies​

Connectivity Insights API​

  • POST /check-network-quality with the request body containing an applicationProfileId, an applicationServer (IPv4 and/or IPv6 address) and, optionally, applicationServerPorts, device (required with a two-legged access token) and monitoringTimeStamp - Check the network quality. Response shows the network's current level of confidence (qualitative) that it can meet an application profile's quality thresholds (according to those defined in the applicationProfileId) for a given end user device.
    • Dependency: Requires applicationProfileId from a previous call to the Application Profiles API (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml NetworkQualityInsightRequest required applicationProfileId; info.description step 1; /check-network-quality POST 404).

Standardisation context​

Connectivity Insights is a CAMARA incubating API (OpenAPI 3.0.3). It is read-only: it reports on network quality and creates no QoS session. The source is the operator's monitoring or analytics; CAMARA does not prescribe one.

The reply is qualitative: each threshold reads, for example, "meets the application requirements", with additionalKPIs as context. An application learns that a requirement is not met, not by how much, which the Self-Assessment records as a gap for professional media. The check uses the current time; monitoringTimeStamp can carry a future time for predictive data. A passing check does not guarantee availability at the event: reserve with QoS Booking or Network Slice Booking, and request QoS with Quality on Demand. Read it as a decision input, not a guarantee.

Workflow: Media application requesting Connectivity Insights​

A user of a media application would like to obtain Connectivity Insights about the ability of the network to meet the requirements. The following steps are executed:

Architecture drawing: a planning tool at the field location invokes the Application Profiles, Connectivity Insights and Connectivity Insights Subscriptions APIs, and a booking tool at the production centre invokes the Application Profiles API, both through a Network API Platform linked to the mobile network. The connectivity under monitoring is between the device and the application server, according to the Application Profile.
API consumers (a planning tool and a booking tool) invoke the Application Profiles, Connectivity Insights and Connectivity Insights Subscriptions APIs through the Network API Platform. The connectivity under monitoring is that between the device and the application server, according to the Application Profile (figure text).

Step 0: Pre-conditions​

  • Create an application profile using the Application Profiles API (with the relevant application requirements) (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml info.description API functionality usage step 1).
  • Create a device object for the device which media flow is to be monitored (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml NetworkQualityInsightRequest.device; info.description identifying the device from the access token).
  • Obtain IP address and port of the application server (Ingest Server of Production).

Step 1: Obtain one-shot information on network quality​

  • POST /check-network-quality, passing the applicationProfileId obtained in step 0, the address/port of an application server, and a device object (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml info.description usage step 2; NetworkQualityInsightRequest).

5G-MAG's Self-Assessment​

This section records 5G-MAG's practical reading of the API and the open points it raises for media use.

The APIs are likely to be invoked to obtain information about the ability of the network to meet the requirements either before or during operation. However:

  • By default the information received reflects the current date and time. The optional monitoringTimeStamp can request predictive data for a future time, but the response carries no indication of how reliable that prediction is for the actual time in which the network should be used (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml NetworkQualityInsightRequest.monitoringTimeStamp; NetworkQualityInsightResponse).
  • The information received is qualitative (e.g. "targetMinDownstreamRate": "meets the application requirements"). An application would be unable to understand which parameters to be adapted in order to revert a situation in which requirements cannot be met.

Potential improvements:

  • If used to monitor resources for which QoS was requested (via a different API) harmonisation of Application Profile and QoS Profile for consistency.
  • an indication of the actual performance parameters (quantitative) for those defined in the Application Profile may provide better insight for potential remedies. E.g. latency cannot be fulfilled, but please respond with the actual latency the link device-AS is experiencing.

Application Profiles API Usage​

Check: Application Profiles API. The type of parameters that an applicationProfile defines is shown below (CAMARA ApplicationProfiles main@11066d6 application-profiles.yaml ApplicationProfile; NetworkQualityThresholds; ComputeResourcesThresholds).

{
"networkQualityThresholds": {
"packetDelayBudget": {
"value": 12,
"unit": "Milliseconds"
},
"targetMinDownstreamRate": {
"value": 10,
"unit": "Mbps"
},
"targetMinUpstreamRate": {
"value": 10,
"unit": "Mbps"
},
"packetLossErrorRate": 3,
"jitter": {
"value": 12,
"unit": "Milliseconds"
}
},
"computeResources": {
"targetMinCPU": 0.5,
"targetMinMemory": {
"value": 10,
"unit": "MB"
},
"gpuVendorType": "Nvidia",
"gpuModelName": "string",
"targetMinGPU": 1,
"targetMinGPUMemory": {
"value": 10,
"unit": "MB"
},
"targetMinEphemeralStorage": {
"value": 10,
"unit": "MB"
},
"targetMinPersistentStorage": {
"value": 10,
"unit": "MB"
}
}
}

Device object​

A device is defined by the common Device schema, which needs at least one of phoneNumber, ipv4Address and ipv6Address (networkAccessIdentifier is in the schema, but CAMARA does not currently allow its use); the API consumer can give several, and the API provider then uses one of them. The example below combines identifiers for illustration (CAMARA Commonalities main@b1a9f08 CAMARA_common.yaml schemas Device, DeviceIpv4Address; Glossary.md Phone Number; CAMARA QualityOnDemand main@471aa35 quality-on-demand.yaml examples):

{
"device": {
"phoneNumber": "+123456789",
"ipv4Address": {
"publicAddress": "203.0.113.0",
"publicPort": 59765
},
"ipv6Address": "2001:db8:85a3:8d3:1319:8a2e:370:7344"
}
}

Connectivity Insights API Usage​

Obtain information about network quality​

With POST /check-network-quality passing (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml /check-network-quality POST):

  • the ApplicationProfileId, (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml NetworkQualityInsightRequest.applicationProfileId)
  • the device object (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml NetworkQualityInsightRequest.device)
  • identifier for the application server (IPv4 and/or IPv6 address and ports) (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml NetworkQualityInsightRequest.applicationServer, applicationServerPorts; ApplicationServer)
{
"applicationProfileId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"device": {
"phoneNumber": "+123456789",
"ipv4Address": {
"publicAddress": "203.0.113.0",
"publicPort": 59765
},
"ipv6Address": "2001:db8:85a3:8d3:1319:8a2e:370:7344"
},
"applicationServer": {
"ipv4Address": "192.168.0.1/24",
"ipv6Address": "2001:db8:85a3:8d3:1319:8a2e:370:7344"
},
"applicationServerPorts": {
"ranges": [
{
"from": 5010,
"to": 5020
}
],
"ports": [5060, 5070]
},
"monitoringTimeStamp": "2023-07-03T12:27:08.312Z"
}

Type of response: The network's current level of confidence that it can meet an application profile's quality thresholds for a given end user device. Each threshold field carries a qualitative string (for example "meets the application requirements") rather than a measured value; additionalKPIs gives supporting signal information. The exact set of allowed strings is defined in the connectivity-insights.yaml (CAMARA ConnectivityInsights main@db9c0de connectivity-insights.yaml /check-network-quality POST description; NetworkQualityThresholdsConfidence; AdditionalKpis).

{
"packetDelayBudget": "meets the application requirements",
"targetMinDownstreamRate": "meets the application requirements",
"targetMinUpstreamRate": "meets the application requirements",
"packetlossErrorRate": "meets the application requirements",
"jitter": "meets the application requirements",
"additionalKPIs": {
"signalStrength": "excellent",
"connectivityType": "5G-SA"
}
}