Please Whitelist This Site?
I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)
If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.
If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.
Thanks for your understanding!
Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide
The main function of the SNMP Protocol is to allow management information, in the form of Management Information Base (MIB) objects, to be communicated between SNMP-capable devices. The protocol operations of the SNMP Protocol are what describe how this communication is performed. Before looking at these operations individually in detail, it is instructive to take an overall look at information exchange methods used in SNMP.
For SNMP to be useful in enabling the management of a network, it must allow a network administrator using a network management station (NMS) to easily check the status of SNMP agents in managed devices. In data communications, there are two general techniques that are used in a situation where one entity needs to be kept informed about activity or occurrences on another:
Which is better? My quotation marks give me away again. The usual answer applies here: neither is better nor worse universally, which is why both options exist. Due to the obvious strengths and weaknesses of these models, The SNMP Protocol is designed to use both. Polling is used for the periodic gathering of routine information, such as checking the usage statistics and general status of a device. Interrupts are used in the form of traps that a network administrator can set on a managed device. These traps cause an SNMP agent to interrupt an NMS when an event of import occurs.
Key Concept: SNMP uses two basic methods for exchanging management information. Routine communication uses a poll-driven technique, where the network management station requests information from managed nodes. An interrupt-driven model is also supported: in situations where a managed device needs to tell a management station immediately about an occurrence, it can send a trap message without waiting for a request from the management station.
The actual communication of information in the SNMP Protocol is performed in a manner similar to most other protocols, through the exchange of SNMP messages. These messages are sometimes called protocol data units or PDUs. This is a term you may have heard used in other protocols, and is also part of the formal definition of data encapsulation in the OSI Reference Model. A message is, of course, a data unit used by the protocol. SNMP messages all have -PDU at the ends of their names to identify them.
Some consider protocol data unit to be analogous to the military using oblong metallic-headed manually-operated fastener acceleration device to refer to a hammer. To be fair though, strictly speaking, in SMNP a PDU and a message are not exactly the same. The PDU is the higher-layer data that SNMP encapsulates, as described by the OSI model. The SNMP message format is a wrapper that encapsulates a PDU along with header fields, as I describe in the section on SNMP messaging. However, the point of a message is to send a PDU, so the two are close enough, and the terms are sometimes used interchangeably.