基于SNMP的ROS设备管理平台设计与实现

 2022-05-12 09:05

论文总字数:26904字

摘 要

随着计算机网络技术的发展和互联网的普及,网络的结构和组成部分越来越复杂。因此,能够对不同厂家,不同种类设备进行管理的SNMP协议在网络管理中扮演着越来越重要的角色。本文以ROS和对ROS设备的管理为背景,使用Python对基于SNMP的ROS设备管理平台进行了设计,具体工作如下:

  1. 对ROS的知识和配置方法进行了学习,熟悉了ROS设备的使用。
  2. 对Python和SNMP协议进行了学习,熟悉了Python的基本语法和重要的基本库函数,对SNMP协议的发展,SNMP网络管理的重要组件与模型,SNMP的基本操作进行了了解。
  3. 对SNMP库net-snmp,PySNMP进行了学习,并使用PySNMP的库函数实现了SNMP网络管理的基本操作
  4. 设计ROS设备参数的OID获取方法,使用snmpb和OIDview等软件对ROS设备参数的OID进行了获取。
  5. 使用Python实现的SNMP读写操作,借助获取的OID,对ROS设备的参数进行了检索和修改,实现了对ROS设备进行监测管理的各项功能。
  6. 对设计的ROS设备管理平台的各项功能进行了测试,并将测试结果与ROS设备管理软件winbox的数据进行了比对。

本文完成了对基于SNMP的ROS设备管理平台的设计与实现,并对其功能进行了测试,最后对结果中的不足进行了分析并提出了展望。

关键词: ROS设备,SNMP, PySNMP,OID

Abstract

With the development of computer network technology and the popularity of the Internet, the structure and components of the network are becoming more and more complex. Therefore, the SNMP protocol that can manage different types of devices manufactured by different companies plays an increasingly important role in network management. In this paper, ROS and the management of ROS devices are used as background. The SNMP-based ROS device management platform is designed using Python. The specific work is as follows:

1. I learned about ROS’s knowledge and configuration methods and was familiar with the use of ROS devices.

2. I learned about Python and SNMP protocols, and I am familiar with the basic syntax of Python and important basic library functions. I have learned about the development of SNMP protocol, the important components and models of SNMP network management, and the basic operations of SNMP.

3. The SNMP library net-snmp and PySNMP are learned, and the basic operation of the SNMP network is realized by using the PySNMP library function.

4. The OID acquisition method for designing ROS device parameters is obtained by using software such as snmpb and OIDview to obtain the OID of the ROS device parameters.

5. Using the SNMP read and write operations implemented by Python, the parameters of the ROS device are retrieved and modified by means of the acquired OID, and the functions of monitoring and managing the ROS device are realized.

6. The functions of the designed ROS device management platform were tested, and the test results were compared with the data of the ROS device management software winbox.

This paper completed the design and implementation of the SNMP-based ROS device management platform, and tested its function. Finally, the deficiencies in the results were analyzed and the prospects were put forward.

KEY WORDS: ROS device, SNMP, PySNMP, OID,

目 录

摘要 I

Abstract II

第一章 绪论 4

1.1 课题来源与背景 4

1.2 ROS设备简介 5

1.3 主要研究内容和章节安排 6

1.3.1 主要研究内容 6

1.3.2 章节安排 6

1.4 本章小结 6

第二章 Python和SNMP介绍 7

2.1 Python介绍 7

2.2 SNMP介绍 8

2.2.1 SNMP的基本概念及SNMP协议的组成 8

2.2.2 SNMP版本与发展 9

2.2.3 SNMP网络管理的组成与组织结构 10

2.2.4 SNMP管理模型与SNMP基本操作 11

2.3 本章小结 12

第三章 设计与实现 13

3.1 开发环境 13

3.2 Python的SNMP库 13

3.2.1 net-snmp 13

3.2.2 PySNMP 14

3.3 功能设计与实现 14

3.3.1 SNMP基本操作的Python实现 15

3.3.2 参数及OID获取 18

3.3.3 GET类型功能 22

3.3.4 SET类型功能 27

3.4 本章小结 32

第四章 软件测试 33

4.1 GET类功能测试 33

4.1.1 检测接口状态和获取终端进入离开设备 33

4.1.2 接口流量统计和图表展示 36

4.2 SET类功能测试 37

4.2.1 控制接口 37

4.2.2 定制功能 38

4.3 本章小结 38

第五章 总结和展望 39

参考文献 40

致谢 41

绪论

课题来源与背景

近年来,伴随着计算机及网络技术的不断进步,云计算、大数据、神经网络和人工智能等概念充分普及,人们对于网络的依赖和需求也日益增长。作为数量越来越庞大的互联网用户,人们需要各种各样接入不同网络的方式,与此同时网络的规模越来越大,网络结构也越来越复杂,这也就意味着人们需要各种设备和协议进行网络配置与管理。

剩余内容已隐藏,请支付后下载全文,论文总字数:26904字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;