The destination port of the trap message in the snmp protocol is 162; the SNMP agent uses Trap to send unsolicited messages to the SNMP management station. It is generally used to describe the occurrence of a certain event. This event can be an alarm, alarm recovery, Notifications, etc., SNMP trap is a process in which the managed device actively sends device abnormality messages to the management server, which can be regarded as a process in which the management server passively receives them.
The operating environment of this tutorial: Windows 10 system, DELL G3 computer.
Simple Network Management Protocol SNMP (Simple Network Management Protocol) The SNMP protocol operates at the application layer (layer 7) of the OSI model. Since the first version, trap has been defined as one of the core PDU messages. The SNMP agent uses Traps to send unsolicited messages to the SNMP management station, which are generally used to describe the occurrence of a certain event. This event can be an alarm, alarm recovery, notification, etc. Such as interface UP/DOWN, IP address change, etc.
The port number used by SNMP trap is: 162.
SNMP trap is a process in which the managed device actively sends device abnormality messages to the management server, which can be regarded as a passive receiving process by the management server. Therefore, many tools will integrate snmp trap into their own tools to monitor network devices for alarms.
SNMP trap uses UDP protocol for transmission.
Ordinary snmp protocol uses port 161
The network management system collects the performance indicators of the monitored end in the form of inquiry. Therefore, the speed of discovering the performance problems of the monitored end depends on the frequency interval of collection. The snmp
trap is event-driven and sets traps on the monitored end. Once a related problem occurs on the monitored end device, snmp
trap will be sent immediately, so it can be discovered in the shortest time. Failure to avoid economic losses caused by equipment failure.
Extended knowledge
SNMP is a standard protocol specially designed for managing network nodes (servers, workstations, routers, switches, HUBS, etc.) in IP networks. It is an application layer protocol. SNMP enables network administrators to manage network performance, identify and resolve network problems, and plan for network growth. Network management systems are notified of network problems by receiving random messages (and event reports) via SNMP.
The predecessor of SNMP is the Simple Gateway Monitoring Protocol (SGMP), which is used to manage communication lines. Subsequently, people made great modifications to SGMP, especially adding SMI and MIB that conform to the Internet definition. The improved protocol is the famous SNMP. The SNMP network management framework based on TCP/IP is the current standard in the industry and consists of three main parts, namely the management information structure SMI (Structure of Management Information), the management information base MIB and the management protocol SNMP.
SMI defines the organization and identification of information used by the SNMP framework, and provides templates for MIB to define management objects and use management objects.
MIB defines a collection of management objects that can be accessed through SNMP.
The SNMP protocol is an application layer protocol that defines how the network manager reads and writes the MIB object of the agent process.
MIB in SNMP is a tree-like database. The object managed by MIB is the end node of the tree. Each node has a unique location and unique name. IETF stipulates management information base The object identifier (OID, Object Identifier) is uniquely specified, and its naming rule is that the name of the parent node is used as the prefix of the name of the child node.
For more related knowledge, please visit theFAQcolumn!
The above is the detailed content of What is the destination port of trap messages in snmp protocol?. For more information, please follow other related articles on the PHP Chinese website!