摘要简单网络管理协议SNMP是专门为IP网络中管理网络节点而设计的一种标准协议。SNMP使网络管理员能够及时查阅网络性能、发现并解决网络问题以及规划网络增长。通过SNMP接受告警信息,网络管理系统可以获知网络出现的问题。30157
本课题针对SNMP协议2c版本Agent端进行研究,设计并实现SNMP管理模型中的MIB库以及SNMP Agent端功能。本文主要研究的内容有:
(1)介绍了SNMP网络管理模型、信息流程等。
(2)研究Net-SNMP工具的使用方法和相关的操作命令,通过对snmpd.conf等文件的配置,搭建snmpd主代理运行环境和snmp子代理开发环境。
(3)针对本课题中所涉及到的MIB库设计,分析和研究ASN.1语法规则、MIB文件书写规则和SNMP版本2c特性,主要包括对于scalar变量、table变量和trap功能各自MIB库的设计和实现。
(4)通过mib2c工具将MIB库文件生成.c和.h文件,在此基础上手动添加代码实现Agent端具体功能。
本实验设计和实现了SNMP2c协议环境下Agent端功能的一个基本框架,能够整合到相关的具体项目中,具有较强的扩展性和可移植性。
关键词 SNMP Net-SNMP MIB库 Agent 毕业论文设计说明书外文摘要
Title Development and Implementation of SNMP Agent based on Net-SNMP
Abstract
SNMP is a standard protocol specially designed for managing network nodes in the IP network.SNMP enables network administrators to timely access to network performance, find and solve network problems, and plan for the network growth.Via receiving alarm information from SNMP,network management system can easily learn problems happening in the network.
This topic researches on SNMP2c Agent’s development,design and implement MIB libraries and SNMP agent side’s functions in the SNMP management model.What the paper focus on is as follows:
(1)It describes the SNMP network management model, the information flow and so on.
(2)Research on methods of using Net-SNMP tool and related operation commands,and via configuration of the snmpd.conf file and other documents,build a snmpd master agent’s operating environment and a SNMP subagents development environment.
(3)Point at the MIB libraries design involved in this topic,analysis and research the ASN.1 syntax, the rules of writing a MIB file and the properties of SNMP2c,include of designing and implementing for the scalar variable’s, the table variable’s and the trap function’s own MIB libraries.
(4)Add specific code into the .c and .h files translated from MIB files by using the mib2c tools to implement specific agent side’s functions.
The topic design and implement a basic framework of developing SNMP2c agent’s functions,which can be integrated into specific project-related,and has strong scalability and portability.
Keywords SNMP Net-SNMP MIB Agent
目 次
1 引言1
1.1 课题背景和意义1
1.2 研究现状2
1.3 课题任务和研究内容2
1.4 论文组织结构3
2 SNMP协议及相关技术背景5
2.1 SNMP协议5
2.2 SNMP网络管理模型6
2.3 NMS与Agent之间的信息交互流7
2.3.1 SNMP报文格式8
2.3.2 get/set 首部的差错状态9
2.3.3 trap首部9
2.4 ASN.1语法规则10
2.4.1 ASN.1数据类型10
2.4.2 ASN.1构造块定义11
2.5 MIB-II特性及书写规则12
2.5.1 MIB-II提供的标准化组13
2.5.2 MIB-II对象属性和访问控制14