Skip to main content

Aarkay Data Analytics LLP

Network engineers have traditionally relied on monitoring systems to periodically collect information from routers, switches, firewalls, and other infrastructure devices. Every few minutes, a monitoring system requests information such as interface traffic, CPU utilization, memory usage, and device health. This approach has served network operations well for years, but modern networks are becoming increasingly dynamic, and periodic polling is not always the only way to monitor them.

Consider a situation where an interface suddenly experiences a spike in traffic, a device changes its operational state, or an important network metric starts fluctuating. Engineers need timely information to understand what is happening. Depending on the polling interval, the monitoring system may not receive the next update until its next scheduled request.

What if network devices could send telemetry updates to a monitoring system as changes happen, rather than relying entirely on repeated requests?

This is where gNMI (gRPC Network Management Interface) comes into the picture. It provides a standardized way for monitoring systems and network devices to exchange operational data, retrieve configuration and state information, and subscribe to streaming telemetry.

The limitations of relying only on periodic polling

Traditional SNMP monitoring works through a request-and-response approach. A Network Management System (NMS) periodically queries devices for specific metrics using Object Identifiers (OIDs) defined in their Management Information Bases (MIBs). The device responds with the requested information, which the monitoring system stores and uses for dashboards, historical analysis, and alerts.

For example, an NMS might collect interface traffic every 60 seconds. It can calculate bandwidth utilization, identify threshold violations, and maintain a historical record of network performance.

However, polling intervals introduce a timing consideration. If a metric changes immediately after a polling request, the monitoring system may not observe that change until the next scheduled collection. Reducing the interval can provide more frequent measurements, but it also increases the number of requests and responses generated across the infrastructure. This becomes particularly relevant in large networks where hundreds or thousands of devices are monitored simultaneously.

The issue is not that SNMP is ineffective. It remains an established and useful monitoring protocol. The question is whether every network metric needs to be collected through periodic polling, or whether some information can be obtained more efficiently through a streaming approach.

What exactly is gNMI?

gNMI stands for gRPC Network Management Interface. It is a network management protocol developed by the OpenConfig community to provide a standardized interface for accessing and managing network device data.

Unlike traditional SNMP communication, gNMI uses gRPC for communication between a client and a network device. It also commonly works with YANG-based data models, including OpenConfig models, to represent device configuration and operational state in a structured and consistent manner.

At a practical level, gNMI defines four important operations:

  • Capabilities: Allows a client to discover the capabilities supported by a network device, including supported models, encodings, and gNMI version.
  • Get: Retrieves a snapshot of selected configuration or operational data from a device.
  • Set: Allows a client to modify configuration or state data exposed through the gNMI interface.
  • Subscribe: Allows a client to subscribe to selected data paths and receive updates from the device.

Among these operations, Subscribe is particularly important for streaming telemetry because it allows a monitoring system to establish a long-lived connection and receive updates based on the subscription configuration.

Instead of repeatedly requesting every metric, a monitoring system can specify which information it wants to monitor and how it wants to receive updates.

How does gNMI streaming telemetry work?

Imagine a network engineer wants to monitor interface statistics on a router. Rather than repeatedly requesting interface information, the monitoring system establishes a gNMI connection with the device and sends a subscription request for the required data paths.

For example, the subscription might request information about:

  • Interface operational status
  • Incoming and outgoing traffic counters
  • Interface errors and discards
  • CPU and memory utilization

The device then sends the requested telemetry updates to the collector according to the configured subscription behavior.

The process generally follows these steps:

1. Establish a gNMI connection

The monitoring system connects to the network device using gRPC. The client can first use the Capabilities operation to understand which gNMI features, models, and encodings the device supports.

2. Define the subscription

The client specifies the data paths it wants to monitor. These paths identify particular information within the device’s structured data model.

3. Start receiving telemetry

The device responds with the requested information and continues sending updates according to the subscription mode.

4. Process and visualize the data

The monitoring system receives the telemetry, processes it, stores relevant measurements, and makes them available through dashboards, historical views, and monitoring workflows.

The important difference is that the monitoring system does not necessarily need to initiate a new request for every measurement. A streaming subscription allows the device to deliver updates over an established connection.

SAMPLE vs ON_CHANGE: How does a subscription behave?

One of the useful aspects of gNMI is that it allows monitoring systems to define how subscribed telemetry should be delivered.

For streaming subscriptions, two commonly used modes are SAMPLE and ON_CHANGE.

SAMPLE mode instructs the device to send measurements at a configured interval. For example, an NMS might request interface traffic counters every five seconds. This is useful when engineers want regular measurements for performance analysis, utilization graphs, and historical monitoring.

ON_CHANGE mode instructs the device to send updates when the subscribed value changes. For example, if an interface operational state changes from UP to DOWN, the device can report that change without waiting for the next configured sampling interval.

These modes serve different monitoring purposes. Interface counters are often collected using sampling because their values continuously increase, while operational states can be suitable for change-based subscriptions.

It is important to understand that ON_CHANGE does not mean every metric is automatically reported continuously or that every device supports identical subscription behavior. The actual capabilities depend on the device, its implementation, and the requested data paths.

gNMI and SNMP: Different approaches, complementary capabilities

The introduction of gNMI does not mean that SNMP suddenly becomes unnecessary. Both approaches provide useful ways to collect network information, but their communication models and capabilities differ. SNMP is widely supported across network infrastructure and offers an established mechanism for collecting device metrics, receiving traps, and monitoring network health. gNMI provides a more structured, model-driven approach to accessing network data and supports streaming subscriptions through gRPC.

For network operations, the two can complement each other. This allows teams to extend their monitoring capabilities without requiring every device to support the same protocol. The objective is not necessarily to replace one collection method with another. It is to use the appropriate collection mechanism based on device capabilities, monitoring requirements, and the type of information engineers need.


How ArkayNMS brings gNMI into network monitoring

ArkayNMS is designed to bring different network monitoring capabilities into a centralized, on-premises environment. With support for device monitoring, network topology, traffic flows, syslogs, traps, and alerts, it provides engineers with a unified view of their network infrastructure.

Adding gNMI introduces another way to collect operational telemetry, particularly from devices that support model-driven streaming.

In this approach, gNMI works alongside the existing SNMP monitoring architecture rather than replacing it. Devices can continue to use SNMP as their primary monitoring mechanism, while supported devices can additionally use gNMI when streaming telemetry is required.

For engineers, this provides flexibility in how different devices and metrics are monitored.

gNMI-based monitoring begins with the existing device inventory. Engineers do not need to treat a gNMI-enabled device as an entirely separate network asset. Instead, streaming telemetry can be configured for a registered device, with the required gNMI connection details, credentials, and subscription paths.

Once configured, the monitoring system establishes the gNMI connection and subscribes to the selected telemetry paths. The incoming updates are processed by the collection service and made available to the monitoring data pipeline.

This makes it possible to bring gNMI measurements into the broader monitoring environment alongside existing SNMP-collected information.

For example, when investigating a network performance issue, engineers can examine interface traffic measurements, operational state, and other available telemetry from supported devices. They can then use other monitoring information, such as syslogs, traps, topology, and traffic flows, to understand the surrounding network conditions.

The value is not limited to collecting telemetry through another protocol. It is about making different sources of network information available within the same operational workflow.

ArkayNMS also supports on-premises deployment, allowing organizations to maintain their monitoring infrastructure and telemetry data within their own environment, subject to their deployment and access-control policies.

By combining traditional monitoring methods with streaming telemetry where supported, the platform can accommodate different generations of network equipment while providing engineers with a more connected view of their infrastructure.

From Periodic Polling to More Flexible Network Visibility

Network monitoring is evolving as infrastructure becomes more complex and organizations look for better ways to understand what is happening across their environments.

SNMP continues to provide a reliable foundation for monitoring a wide range of network devices. At the same time, gNMI introduces a model-driven approach that allows monitoring systems to retrieve selected information and receive telemetry updates through streaming subscriptions.

Both approaches have their place. The right choice depends on device compatibility, the type of metric being collected, the required update frequency, and the operational objectives of the network team. For engineers, the real benefit comes from having the flexibility to use different collection methods without losing visibility across the infrastructure.

At ArkayNMS, we believe modern network monitoring should evolve alongside network technology. By bringing together SNMP, gNMI, topology, traffic flows, syslogs, and alerts, our goal is to help engineers understand their networks through a unified monitoring experience. Because better network monitoring isn’t just about collecting information more frequently. It’s about having the right information, at the right time, to make better operational decisions.

Learn more about ArkayNMS: https://arkaydata.com/