Giter VIP home page Giter VIP logo

Comments (3)

lunkwill42 avatar lunkwill42 commented on July 2, 2024

Immediately, it seems something is amiss with the SNMPv3 handshake procedure in the instances that cause timeout reports.

Although SNMP itself is normally a stateless protocol, SNMPv3 adds more complexity to this to achieve privacy and secrecy. Specifically, establishing SNMPv3 communications between two devices now entails a handshake process, in where the client entity must first send a packet to query for the remote entity's SNMP engine details. The remote responds with a report package that contains these details, and these details must be used by the client entity in subsequent communication with the remote entity.

The necessary SNMP engine details seem to be mostly these three:

  1. msgAuthoritativeEngineID
  2. msgAuthoritativeEngineBoots
  3. msgAuthoritativeEngineTime

Sniffing packets off the wire, it seems that when these spurious timeouts occur, it's due to the fact that NAV sometimes sends requests with an incorrect msgAuthoritativeEngineTime value once the handshake is completed, and the remote entity is responding with a new report packet to message this fact (responding with a SNMP-USER-BASED-SM-MIB::usmStatsNotInTimeWindows value). NAV leaves all these details to the underlying SNMP library (pynetsnmp-2 and Net-SNMP), but instead of handling these reports in a transparent manner, they seem to be turned into timeout errors by the underlying libraries (i.e. it seems the reports are being ignored and the lack of a corresponding reply to the request is interpreted as a timeout).

The correct response to such a report is probably to re-synchronize with the remote entity and try the request again. I would tend to think these details should be handled by Net-SNMP, but it's yet unclear to me whether the problem is with how NAV sets up the sessions, how pynetsnmp-2 interfaces with Net-SNMP, or with Net-SNMP itself.

from nav.

lunkwill42 avatar lunkwill42 commented on July 2, 2024

Section RFC 2274 does mention there is a default time window of 150 seconds. A message whose msgAuthoritativeEngineTime value differs more than 150 seconds from the one established in the handshake should be dismissed as invalid. Still not sure why sometime the first NAV message is way off...

from nav.

lunkwill42 avatar lunkwill42 commented on July 2, 2024

At this point, it seems the issue may actually be misconfiguration of the switches in question: They all seem to report the same hardcoded SNMP Engine ID, which is BAD™. This is likely confusing Net-SNMP, which seems to keep track of session synchronization values based on the SNMP Engine ID. Will check with our network engineering team before proceeding.

from nav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.