Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
How does communication happen between Manager & Agent?
The manager sends a request to an agent, and the agent responds to the request, known as Request/Response interaction. The request is usually used to retrieve or modify management information associated with the network device.
Types of Manager Requests
Requests which are generated by the manager can be as follows:
-
Get request-PDU − The manager generates a request for retrieving information on specific variables from the agent's MIB.
-
Get Bulk request-PDU − The manager generates a request for bulk information retrieval, introduced in SNMP version 2. It allows the return of as much information as possible in a single packet.
-
Set request-PDU − It creates or modifies management information. The manager uses this to set a value on the agent.
-
Response PDU − The agent must always reply using a response PDU containing the requested information or error status.
Types of Communication Interactions
Manager-to-Manager Communication
Request/Response interaction occurs between one manager and other managers. One manager sends a request to another manager, which responds accordingly. The request typically uses the Inform-Request PDU to notify another manager of MIB changes.
Agent-to-Manager Notification
Unconfirmed interaction in which an agent sends Trap-PDU to notify a manager. This is used to inform the manager of exceptional situations that cause changes in management information associated with the network device.
Request/Response Process
A Get request PDU is issued by the manager containing a unique request-id to match the request with its response, along with variable bindings for the requested information.
The agent issues a response containing the same request-id, error status (zero if successful), and the requested variable binding values. If exceptions occur for one or more variables, the appropriate error status for each variable is included in the response.
SNMP Version 3 Enhancements
In SNMP version 3, a complex framework for message exchange is implemented with enhanced security and extensibility features. The security system uses a user-based security model designed to protect against unauthorized information modification, eavesdropping, and denial of service attacks.
Conclusion
Manager-agent communication in SNMP occurs through request/response interactions for data retrieval and modification, plus unsolicited trap notifications for event reporting. SNMP v3 adds robust security features to protect these communications from various network threats.
