Comments (3)
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:
msgAuthoritativeEngineID
msgAuthoritativeEngineBoots
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.
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.
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)
- [BUG] navtopology cron job does not start properly HOT 3
- [BUG] Renaming of `snmptrapd.py` to `snmptrapd` conflicts with Net-SNMP's `snmptrapd` HOT 2
- ARP records are closed in bulk, seemingly at random
- Installing NAV on Debian guide should be updated to Debian Bullseye
- Add deprecation warning for Python 3.7 to `NOTES.rst` and `CHANGELOG.md`
- Remove Python 3.7 from default test matrix
- Update required PostgreSQL version to 13
- Make a new management profile type for REST APIs HOT 1
- Make TLS certification validation configurable in the ipdevpoll Palo Alto ARP plugin
- Upgrade minimum twisted version to higher than 22.8.0
- [BUG] Alert profile filter - list_limit reached HOT 1
- [BUG] All ARP records associated with a router are immediately closed when there is a short ICMP echo packet loss HOT 4
- [BUG] CAM data not collected for devices of type SRV and OTHER
- Make qrcode library produce SVG images instead of PNG HOT 2
- plugins paloaltoarp.py - Entries node not found at element [0][4] HOT 6
- API endpoints for maintenance HOT 1
- Fully rename `snmptrapd` to `navtrapd` internally
- Support KEA for dhcp statistics
- Juniper: Add MIB for statistics of "Data Plane CPU Utilization"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nav.