基于Linux嵌入式系统下的SNMP原理与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着网络技术的发展,网络设备往往由许多相对独立的可管理模块组成,这些管理模块必须能够被灵活地扩展,以满足特定的应用。由于这些可管理模块可能包含其特定的标准或私有的MIB,故对于网络管理,尤其是对代理的可扩展性提出了更高的要求。然而作为网络管理协议事实行业标准的SNMP却没有提供能够将众多模块纳入到统一的Agent管理之下的解决方案。当前网络管理中应用最为广泛并作为行业标准的SNMP(Simple Network Management Protocol),共有SNMP(vl/v2c/v3)三个版本,其中多数设备配备的还是v1和v2c版本的代理程序。
     由于本文中提到的无线网络接入设备还没有定义标准的节点,因此,要用SNMP对接入设备以及与之相连的其它网络设备进行管理,必须要扩展原有的MIB。由于不同设备采用的操作系统有很大区别,所以要求代理程序能够很方便地在不同系统下移植,不能带有专有操作系统的痕迹。目前商业上的一些SNMP代理开发工具,如VxWorks本身提供了较好的MIB编译工具,用户只需要通过接口函数来维护MIB库,完成私有MIB变量代理的实现,并且它具有整体化的设计思想,模块化程度较高,便于二次开发,但是价格昂贵。开源的Linux系统网络管理开发不同于VxWorks系统。笔者通过对SNMP代理的分析,采用net-snmp为基础,实现了一个无线网络接入设备的基于SNMPv2c的代理,它具有SNMP基本管理功能,并成功移植到MotorolaPowerPC8250上的ppc-linux嵌入式系统,且运行良好。
With the development of network technology, network device usuallyis composedof many independent and controllable modules. In order to satisfy specific application,these modules need to be flexible extended. To network management, higher request isbrought forward to extensibility of network device, especially to agent, because thesecontrollable modules may contain their specifically standard or privately owned MIB.However, as the industry standard of network management protocol in practice, SNMPdoes not offer a solution of unified Agent management including numerous. Now,SNMP (Simple Network Management Protocol) is being used broadly, and is theindustry standard of the network management. It has three versions: SNMPv1,SNMPv2c, SNMPv3, most equipment is fitted with v1&v2c version agent. Becausethere is no standard node for Wireless Network Connection Device mentioned in thispaper defined in MIB, we must extend the current MIB tree if we want to manage thisfacilityandothersthatconnectitbySNMP.
     As there are great difference among different operation systems adopted bydifferent devices, agent program should be able to be transplanted very convenientlyand have no exclusive systematic mark. At present, there are several commercialdevelop kits for developing SNMP agent. For example, VxWorks OS provide a goodMIB compiler. Users do just only invoke interface functions to maintain MIB libraryand realize privately owned MIB agent. Its whole design philosophy is very good andthe modularization degree is high. It's convenient for users carrying secondarydevelopment, but its price is high. The development of network management on LinuxOS that open source to all people is different from on VxWorks OS. By analyzingSNMP agent, using net-snmp kit, the author realized a Wireless Network ConnectionDevice agent that based on SNMPv2c. The agent be transplanted to embed systemppc-linux on Motorola PowerPC8250 successfully, could provide basal networkmanagementfunctionsandrunswell.
引文
[1] 杨家海,任宪坤,王沛瑜. 网络管理原理与实现技术. 北京:清华大学出版社. 2000 年 9月第 1 版
    [2] 雷振甲. 计算机网络管理及系统开发. 北京:电子工业出版社.2002年1月第1版
    [3] 管海兵,白英彩. 计算机网络管理系统设计与应用. 上海:上海交通大学出版社.2004年1月第 1 版
    [4] 漆昭铃. 基于PowerPC的嵌入式Linux. 北京:北京航空航天大学出版社.2004年3月第1版
    [5] 万晨妍. 基于ARM 的嵌入式系统及SNMP 的设计与实现. 杭州:浙江大学硕士学位论文.2003年2月
    [6] 谢斌. MPC860/850 嵌入式系统开发入门与提高. 西安:西安电子科技大学出版社. 2004年 8 月
    [7] 胡方炜. 基于嵌入式 Linux 系统的 SNMP 代理开发研究. 杭州:浙江工业大学硕士学位论文.2004 年
    [8] 吴光龙. 基于Linux操作系统的C语言编译和调试方法. 马鞍山:安徽工业大学学报.2002年 10 月. 第 19 卷(第 4 期).329-331
    [9] 黄敦. 如何构造嵌入式Linux系统.http://www.61ic.com/Soft/qrs/book/200511/2162.html
    [10] 郑园宏. 嵌入式Linux操作系统内核移植的研究与实现. 大连:大连理工大学硕士学位论文.2004 年 3 月
    [11] 邱巍. 嵌入式Linux操作系统移植. 武汉:武汉理工大学硕士学位论文.2004年3月
    [12] 郑桦. 嵌入式Linux文件系统的设计与实现. 武汉:武汉理工大学硕士学位论文. 2004年3月
    [13] 施峻武. 基于MPC850上的嵌入式Linux实现. 西安:现代电子技术.2004年第9期
    [14] 胡方炜,张丹,杨扬.Linux环境下基于ucd-snmp的SNMP代理开发. 通信技术.2003年第 6 期
    [15] 蓝波,杨琴. 基于SNMP动态扩展MIB的设计与实现. 计算机工程.2004年第7期
    [16] 单纪文,张秉权,徐涛. 一种基于SNMP的远程管理的实现. 计算机应用.2004年第7期
    [17] 刘少华,邱智亮,王文军君. 嵌入式系统中SNMPAgent和WBM综合设计. 西安:电子科技.2004 年第 11 期
    [18]Motorola.MPC824XIntegratedProcessorUser'sManual
    [19] 华恒科技.HHPPC824X技术手册.
    [20] 华恒科技.HHPPC824X系列对SNMP支持的文档.
    [21] 胡亚军. 关于ucd-snmp软件包.http://bbs.zndev.com/read.php?tid=78793&fpage=1
    [22] RFCs1155-1157,RFCs1901-1908,RFCs2271-227
    [23]Perl脚本文件及Perl文档下载站点.http://kobesearch.cpan.org/
    [24]ComprehensivePerlArchiveNetwork.http://www.cpan.org/
    [25] 中国Linux论坛/Linux嵌入技术.http://www.linuxforum.net/
    [26] 西陆社区网络管理论坛.http://snmp.bbs.xilu.com/
    [27] Solomoon. 用 NET-SNMP 软 件 包 开 发 简 单 客 户 端 代 理 .http://bibu.blogchina.com/inc/net_snmp_doc.htm.2005年9月11日
    [28]MIB参考文档下载站点.http://www.mibdepot.com/index.shtml
    [29]http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
    [30]net-snmp官方网站.http://net-snmp.sourceforge.net/
    [31]http://community.csdn.net/
    [32]ASN.1Informationsite.http://asn1.elibel.tm.fr/
    [33]http://www.snmplink.org/
    [34]GNUHomePage-http://www.gnu.org
    [35] 中国协议分析网/简单网络管理.http://www.cnpaf.net/
    [36] 大卫网络/SNMP.http://dns.zidev.com/snmp/
    [37] 网络技术基础知识/网络管理.http://www.jswl.cn/course/A1013/wljczs/index0501.htm
    [38]Linux下NFS配置.http://www.channel7.cn/2004/10-9/195838.html
    [39]Linux下多线程编程.http://www.juntuan.net/hkbc/nixbc/n/2005-01-19/59.html
    [40] Darrick Addison. 嵌入式 Linux 应用:概述. http://www-128.ibm.com/developerworks/cn/linux/embed/embl/overview/#h10840
    [41] 开发支持网站.http://www.hhcn.com/chinese/techabet.htm
    [42] 驱动开发网技术社区/SNMP,EmbedLinux.http://bbs.zndev.com/index.php
    [43]MPC8260PowerQUICCII? FamilyReferenceManual.MotorolaInc.May,2003
    [44]ProgrammingEnvironmentsManual(For32-BitImplementationsofthePowerPCArchitecture).Motorola.Dec,2001
    [45] BDI GDB BDM interface for GNU Debugger PowerPC82xx User Manual. AbatronAG.July,2005

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700