Streaming Telemetry Dial-In Mode
Overview
Dial-in mode in streaming telemetry enables collectors to initiate connections with OcNOS routers to receive operational data of interest. In this mode, the collector sends a Subscribe Remote Procedure Call (RPC) request to the gNMI server (OcNOS target device), specifying the data paths to monitor. The server then streams the requested telemetry data to the collector, facilitating proactive network monitoring and troubleshooting.
Feature Characteristics
The gNMI-based Dial-in mode telemetry for the management plane supports three types of telemetry subscriptions: Poll, Once, and Stream. It enables the "STREAM" type subscription with "SAMPLING" mode for the Subscribe RPC. The gNMI-based collector connects to the OcNOS target device and invokes the Subscribe RPC, specifying the set of path(s) of interest. Two key components are involved in this process:
|
•
|
gNMI Server (OcNOS Target): The gNMI server operates within the OcNOS device, serving as the source of telemetry data. It supports the gNMI protocol, allowing gNMI-based clients (collectors) to request and receive streaming data. The server streams the requested data to the client according to the specified parameters. |
|
•
|
gNMI Client (Collector): The gNMI client, also known as the collector, runs outside the OcNOS target device and is responsible for receiving and gathering telemetry data. In this context, it is the entity that connects to the OcNOS target device to collect data using the gNMI protocol. The collector initiates the Subscribe RPC to specify the data of interest. |
Figure 5 illustrates the gNMI client's (Collector) Subscribe request and response (RPC) interaction with the gNMI server (OcNOS Target).
Figure 5. Sample Subscribe Request
Example Message Flow: Subscribe Request and Response
Figure 6 illustrates a sample gnmic Subscribe Request and Subscribe Response between the collector and the OcNOS target device.
Step 1: Subscription Request Initiation
|
•
|
The gnmic collector server initiates a Subscribe Request by sending a Subscribe RPC in Stream type. |
|
•
|
This subscription request aims explicitly to gather data related to interface state counters and CPU state. |
|
•
|
A fixed 30/45-second sampling interval is set for data collection. |
Step 2: Data Collection and Processing
|
•
|
The gNMI server, within the OcNOS router, is responsible for data collection. |
|
•
|
At regular 30/45-second intervals, it retrieves data from the sensor path, focusing on interface state counters and CPU State. |
|
•
|
The received data undergoes a validation process, and the data is transformed into the required encoding type. |
Step 3: Continuous Subscription Response Streaming
|
•
|
The gNMI Server responds to the subscription request by continuously streaming Subscribe Response data. |
|
•
|
This streaming process maintains the same 30/45-second interval as the data collection. |
|
•
|
The collected data is streamed in real-time to the gnmic collector server. |
Figure 6. Message Flow: Subscribe Request and Response
Benefits
Proactive Network Monitoring: Obtain real-time insights into network health and performance, and how to enable quicker response to issues.
Resource Utilization Monitoring: Monitor CPU and memory utilization to optimize resource allocation and performance.
Predictive Troubleshooting: Identify patterns and potential issues before they impact the network, reducing downtime.
Automation and Resilience: Use telemetry data to automate network management tasks and design a more resilient network.
Prerequisites
Before configuring Dial-In mode, ensure that:
|
•
|
A supported OcNOS router running a compatible release. |
|
•
|
Access to the management interface of the router. |
|
•
|
Any gNMI client that complies with gNMI specifications can be used as a client. |