gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

IANA defined port 9339 for gNMI / gNOI is not used as default port

Open raghubk opened this issue 1 year ago • 5 comments

Hello,

Currently if gnmic command isn't provided with port#, it uses ephemeral port# 57400 as default when connecting to gNMI server.

Is gnmic going to start using 9339 as default port number when connecting to gNMI server?

Regards, Raghu

raghubk avatar Jun 05 '24 21:06 raghubk

You can set the port together with the address or change the default port using the config file. As far as changing the default port to 9339, I don't see how it will help in any way. Most vendors use their own default ports (none uses 9339)

karimra avatar Jun 14 '24 13:06 karimra

Thanks for your response.

Googling, I see few adoptions of this standard port# already. https://github.com/google/gnxi/issues/92 , Cisco

Using a standard port number for a service simplifies the usage, that is the only advantage.

raghubk avatar Jun 14 '24 15:06 raghubk

I don't see any router using that port as default. I agree with that using defaults simplifies usage, that's if vendors start using it on the server side.

karimra avatar Jun 20 '24 16:06 karimra

Here are some references I found to default gNMI port 9339.

Nvidia/Cumulus Network: The gNMI agent listens over port 9339. https://docs.nvidia.com/networking-ethernet-software/cumulus-netq-48/Manage-Events-and-Notifications/gNMI-Streaming/

Extreme Networks: By default, non TLS gNMI server runs on port 9339. https://documentation.extremenetworks.com/slxos/sw/20xx/20.3.2/commands/GUID-6F6AAF0A-0699-44D0-B579-DF38963D6059.shtml

Cisco 8000 Series Routers and Cisco user docs reference to port 9339 https://www.cisco.com/c/en/us/td/docs/iosxr/cisco8000/system-management/b-system-management/m-manageability-commands.html#wp4022790341 https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/168/b_168_programmability_cg/gNMI_protocol.pdf

ONF Stratum: Stratum no longer supports port 28000 for gRPC connections by default. You should use port 9339 (gNMI) https://opennetworking.org/news-and-events/blog/community-highlights-april-2021/

raghubk avatar Jul 15 '24 20:07 raghubk

This issue is stale because it has been open for 12 months with no activity.

github-actions[bot] avatar Oct 11 '25 02:10 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Nov 10 '25 02:11 github-actions[bot]