Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raghubk opened this issue Jun 5, 2024 · 4 comments
Open

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

raghubk opened this issue Jun 5, 2024 · 4 comments

Comments

@raghubk
Copy link

raghubk commented Jun 5, 2024

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

@karimra
Copy link
Collaborator

karimra commented Jun 14, 2024

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)

@raghubk
Copy link
Author

raghubk commented Jun 14, 2024

Thanks for your response.

Googling, I see few adoptions of this standard port# already.
google/gnxi#92 , Cisco

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

@karimra
Copy link
Collaborator

karimra commented Jun 20, 2024

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.

@raghubk
Copy link
Author

raghubk commented Jul 15, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants