What is SONiC?

SONiC (Software for Open Networking in the Cloud) is an open-source, Linux-based Network Operating System backed by most of the key network players in today's world. It runs on a wide variety of switches and ASICs — almost 70% of all hardware platforms — from vendors including Arista, Barefoot, Dell, Mellanox, and Juniper Networks.

The hardware flexibility is enabled by the Switch Abstraction Layer (SAI), which guarantees the OS works across multiple vendor switch platforms. SONiC is actively deployed by telcos, large enterprises, and hyperscalers like Tencent and Alibaba — and it powers Microsoft Azure.

SONiC falls under the Open Compute Project umbrella, where organizations like Google, Intel, IBM, Dell, and Nokia share data-center designs and best practices.

lighty.io & SONiC Integration

SONiC offers both RESTCONF and gNMI for programmatic configuration. We ran a series of benchmarks to compare their performance using lighty.io's southbound plugins.

Our gNMI Southbound plugin for lighty.io now supports: faster SSL certificate integration in developer mode, validated OpenConfig YANG Models, improved assisting classes for easier request creation, and helping classes for gNMI answer translation into Java objects.

Testbed: Intel i7-6820HQ 2.70 GHz (2 Cores) · 11.21 GB RAM · Ubuntu 18.04.1

RESTCONF — Multiple Sessions

# RequestsAvg Speed (MB/s)Data (MB)Duration (s)ACL/s
1,0000.7917.4521.945.71
10,0000.55175.06318.131.51
50,0000.22911.394,119.212.14

RESTCONF — Single Session

# RequestsAvg Speed (MB/s)Data (MB)Duration (s)ACL/s
1,0000.8714.245.3963.88
10,0000.52135.6261.7538.26

gNMI — Multiple Sessions

# RequestsAvg Speed (MB/s)Data (MB)Duration (s)ACL/s
1,0000.4821.7045.3922.10
10,0000.39219.77566.3517.66

gNMI — Single Session (Recommended)

# RequestsAvg Speed (MB/s)Data (MB)Duration (s)ACL/s
1,0001.3514.5610.8292.56
10,0000.68143.15211.8447.21
92ACL/s peak (gNMI)
65ACL/s peak (REST)
~40%gNMI throughput gain

Key Findings

Our tests identified that SONiC's Telemetry module processes requests via gNMI faster than the MGMT-Framework using REST. While REST processed approximately 65 requests per second, gNMI managed approximately 90 requests per second in a single-session configuration.

The critical takeaway is that session management matters: a single persistent gNMI session dramatically outperforms creating a new session per request, regardless of protocol.

Updated gNMI Southbound Plugin

You can now use lighty.io for both SONiC configuration and telemetry. For a commercial lighty.io solution, contact us.