ZigBee网络层构建及其核心机制研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
信息时代的到来促使了通信技术的迅猛发展,各种无线通信技术更是成为了人们争相研究的热点。各种技术在发展方向的定位上也变得更为理性,不再一味地追求远距离,高速率等性能。因而造就了当前通信技术百花齐放的局面。人们可以根据实际应用的特点,更为灵活的选择相适应的技术。
     本文所要讨论的就是这些个性十足的短距离无线通信技术中的一个:Zigbee。Zigbee以低功耗,低成本、低速率等为特点。如果以传统的眼光来看,这种技术似乎无优点可言。然而在自动化和智能化越来越被看重的今天,Zigbee的独特之处使其成为了最炙手可热的无线通信技术之一。该技术将被广泛的应用于家庭智能化、工业控制等众多领域。
     从体系结构上看,自下至上zigbee由物理层、媒质访问控制层、网络层、应用支持层以及应用层构成。本文的工作将集中在网络层上。对网络层的研究工作是十分有意义的。一方面,网络层承担着承上启下的作用。就规范定义的角度:网络层由Zigbee联盟进行规范;其最下两层由IEEE802.15.4小组定义;而其最上两层的规范则由最终用户决定。网络层能否很好的提供两者之间的衔接将直接影响到zigbee技术的使用。就通信技术本身:网络层将是通信子网与信息子网的隔离者,它的优劣直接影响着通信及上层应用的质量。另一方面,在当前Zigbee芯片及模块的生产都已经相对成熟的市场条件下,能否建立起一个好的网络就成了这项技术的新课题,而组网的工作正是由网络层完成的。
     本文在基于IEEE802.15.4标准的物理层和媒质访问控制层软件的基础上,完成了对Zigbee网络层的开发,最终形成了一个具有分布式管理功能的自组织、自适应网络。本文的具体工作内容可以分为三个方面。第一,网络层软件平台的搭建。在c语言的环境中,汲取了面向对象编程语言的理念,将各功能进行模块化封装,并采用队列的方式对功能模块进行管理。实际的工作包括了功能的模块化、任务队列、时钟队列的建立、维护。本文所采用的任务队列管理方式,不仅使得ZigBee网络体系结构的层次更为明晰;同时屏蔽了层次间信息的流动方向,使得采用简单函数调用时存在软件结构混乱的情况得到了很好的解决。时间队列的使用则减少了同时使用多个物理时钟造成的器件功耗,并且解决了时钟资源不足的问题。第二,网络层功能的实现。包括数据的处理、网络发起、网络发现、允许节点加入网络、节点加入网络、节点直接加入网络、节点离开网络、启用路由、接收同步、信息库维护及器件重启等,共11个方面功能的实现。该部分的工作是为最终的网络互联以及数据的传递提供保障的。第三,网络路由机制的设计与实现。包括网络拓扑结构的选定;网络地址分配机制的设计:网络路由协议的改进。本文网络地址的分配原则摒弃了传统无线网络地址分配的随意性,力求使网络地址可以反映出一定的网络拓扑信息来,以最终实现对AODV协议的改进。带有拓扑信息的网络地址使得在路由建立过程中,路由请求报文得以不以广播的形式,而是一种更有目的性的方式进行传播,从而从系统的级别上降低功耗,延长了网络的存活时间。对网络地址的分布式管理也使得在网络拓扑结构发生改变时,节点可以以更高的效率对网络进行重构,使得网络的鲁棒性得到提高,信息的安全性得到保障。
The coming of the information times inspires the rapid development of the communication technologies, especially the different kinds of wireless technologies. However, the development directions of all these technologies are saner now. Capacities such as long distance and high speed are not the only goals. Thus technologies with different kinds of characters turn out in our times. And people are more convenient to choose the most proper wireless communication technology following their own application.
     The technology this paper working on is one of these short-range wireless communication technologies, which is full of personalities. It is called Zigbee, which aims at low consumption, low cost, low rate etc. This seems awful with traditional standard. However, nowadays with our continuously calling for automation and intelligence, it is these 'weak points' that make Zigbee one of the hottest wireless technologies. It can be used at all kinds of fields such as home intelligence, industry automation etc.
     From bottom to head, Physical Layer, Medium Accesses Control, Network Layer, Application Support Layer and Application Layer form the ZigBee architecture. And the work of this paper emphasizes on Network Layer, which is of great importance. In one hand, Network Layer is in the middle and acts as a connection. ZigBee Allegiance works on Network Layers. The two lowest layers are defined by IEEE801.15.4 group, and the two highest are designed by the terminal user. Zigbee allegiance works on Network Layers. So whether Network Layer gives a good connection will directly affect the use of the technology. What's more, take the view of communication itself, Network Layer is the boundary of communication subnet and information subnet. The performance of Network Layer will be the key element of the two subnets. In another hand, the production of Zigbee chips and modules are relatively sophisticated now, thus whether a good network can be established becomes the newest topic of the technology. To establish a network, we need the work of Network Layer.
     This paper finished the development of Network Layer, which bases on the existing Physical and Medium Access Control layer following IEEE802.15.4 protocol. A self-organization, self-adaptation network with distributed management is formed at last. The working content of the paper can be divided into three parts. Firstly, establish the software environment. The user friendly coding idea is imported into the c coding enviroment. The basic functions are encapsulated into modules uniquely and queues are used to order the modules. The work includes the encapsulation of function modules, the building and maintenance of the task and timer queues. The using of task queues in this paper make the structure of ZigBee net much clearer, as well as hiding the direction of the information flow. Thus the confusion of software caused by calling function is well solved. The using of timer queues reduces the consumption when using several physical timers at the same time, meanwhile it also makes the lack of physical timers no longer a problem. Secondly, the realization of network functions, including dealing with the data, the formation of the network, the discovery of the network, permitting joining, joining the network, joining the network directly, leaving the network, starting router, receiver synchronization, maintaining the information base and resetting a device. This part of work is preparing for the final connection of the net and the transmission of the data. Last but not least, the design and realization of the router mechanism. The topologies are compared and choused; the addressing mechanism is carefully designed; the existing router protocol is improved. Different from the traditional way to assign the net address which is at will, this paper tried to make the net address reflect some information of the topology in order to improve the AODV. During the establishment of the route, net address with topology information helps to avoid broadcasting the route request. Instead, it makes the transmission of the request more purposely which reduces the consumption systemically and extend the life of the whole net. The distribution management of net address also makes the nodes react more quickly when the topology is changed. Thus the robust of the net is improved and the safety of the data is ensured.
引文
[1]David Egan.The Emergence of Zigbee in Building Automation and Industrial Controls[J].IEE Computing & Control Engineering.April/May 2005,14-19.
    [2]Kiumi Akingbehin,Akinsola Aidngbehin.Alternatives for Short Range Low Power Wireless Communications[A].Proceedings of the Sixth International Conference on Software Engineering,Artificial Intelligence,Networking and Parallel/Distributed Computing and First ACIS International Workshop on Self-Assembling Wireless Networks(SNPD/SAWN'05)[C].America:IEEE,2005.
    [3]Jin-Shyan Lee,Yu-Wei Su,Chung-Chou Shen.A Comparative Study of Wireless Protocols:Bluetooth,UWB,ZigBee,and Wi-Fi[A].The 33~(rd)Annual Conference of the IEEE Industrial Electronics Society(IECON)[C].Taipei,Taiwan:IEEE,2007.
    [4]王婷婷.ZigBee:靠近我掌控你[EB/OL].信息周刊网络版,2007,http://www.informationweek.com.cn/iarticle/27451.html
    [5]李文仲,段朝玉.zig8ee无线网络技术入门与实战[M].北京:北京航空航天大学出版社,2007.
    [6]Li Zheng.ZigBee Wireless Sensor Network in Industrial Applications[A].SICE-ICASE International Joint Conference 2006[C].Bexco,Busan,Korea:ICASE,2006.1067-1070.
    [7]S.Da(?)tas,G.Pekhteryev,Z.Sahino(?)lu.Multi-stage Real Time Health Monitoring Via ZigBee in Smart Homes[A].21~(st)International Conference on Advanced Information Networking and Applications Workshops(AINAW'07)[C].American:IEEE Computer Society,2007.
    [8]中国联通.基于ZigBee的短距离无限通信网络技术[EB/OL].中国联通网站,2007.http://www.chinaunicom.com.cn/profile./xwdt/txjs/file1414.html
    [9]蒋挺,赵成林.紫蜂技术及其应用(IEEE802.15.4)[M].北京:北京邮电大学出版社,2006.
    [10]IEEE-TG802.15.4.Part 15.4:Wireless Medium Access Control(MAC)and Physical Layer (PHY)Specifications for Low-Rate Wireless Personal Area Networks(LR-WPANs).LAN/MAN Standards Committee of the IEEE Computer Society,2003.
    [11]ATMEL.8-bit AVR Microeontroller:ATmega 1281.Atmel Corporation,2007.
    [12]欧阳力,邱松,刘锦高,叶勇建.基于AT86RF230 ZigBee的WPAN网络设备设计[J].单片机与嵌入式系统应用.2007,第5期:33-38
    [13]ATMEL.AVR134:Real Time Clock(RTC)using the Asynchronous Timer.Atmel Corporation,2005.
    [14]ATMEL.ZigBee/IEEE 802.15.4-Transceiver AT86RF230.Atmel Corporation,2006.
    [15]Reinhold Ludwig,Pavel Bretchko.射频电路设计——理论与应用[M].北京:电子工业出版社,2002.
    [16]ATMEL.AVR2001:AT86RF230 Soft,rare Programmer's Guide.Atmel Corporation,2007.
    [17]ZigBee Alliance.Network Specification Version 1.0.2400 Camino Ramon,Suite 375,San Ramon,CA 94583,USA,2004.
    [18]C语言中的attribute机制[EB/OL].http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Function-Attributes.html.
    [19]严蔚敏,吴伟民.数据结构[M].北京:清华大学出版社,1996.
    [20]Curt Schurgers,Gautam Kulkami,Mani B.Srivastava.Distributed Assignment of Encoded MAC Addresses in Sensor Networks[J].MobiHoc'01.Long Beach,CA:2001.
    [21]Stanislav(?)afari(?),Kre(?)imir Malari(?).Zig,Bee wireless standard[A].48~(th)International Symposium ELMAR-2006[C].Zadar,Croatia:ELMAR,2006.259-262.
    [22]Holger Karl,Andreas Willig.无线传感器网络协议与体系结构[M].北京:电子工业出版社,2007.
    [23]Robert B.Reese.A Zigbee-subset/IEEE 802.15.4 Multi-platform Protocol Stack.MSSTATE LRWPAN V0.2.5,2006.[24]Philip Ling.ZigBee aims to be a standard for industrial low-power radio,but we might never see full compatibility between modules that support it.IET Electronics Systems and Software.2007.34-37.
    [25]孙利民,李建中,陈渝,朱红松.无线传感器网络[M].北京:清华大学出版社,2005.
    [26]郑少仁,王海涛,赵志峰,米志超,黎宁.Ad Hoc网络技术[M].北京:人民邮电出版社,2005.
    [27]Ashwini Rain,V.Muthukumar,Laxmi Gewali.Cell-based Distributed Addressing Technique Using Clustered Backbone Approach[A].International Conference on Information Technology(ITNG'07)[C].America:IEEE Computer Society,2007.
    [28]Ran Peng,Sun Mao-heng Zou You-min.ZigBee Routing Selection Strategy Based on Data Services and Energy-balanced ZigBee Routing[A].Proceedings of the 2006 IEEE Asia-Pacific Conference on Services Computing(APSCC'06)[C].America:IEEE Computer Society,2006.
    [29]Gang Ding,Zafer Sahinoglu,Philip Orlik,Jinyun Zhang,Bharat Bhargave.Tree-Based Data Broadcast in IEEE802.15.4 and ZigBee Networks[J].IEEE Transactions on Mobile Computing.2006,Vol.5,No.11:1561-1574.
    [30]Alec Woo,Terence Tong,David Culler.Taming the Underlying Challenges of Reliable Multihop Routing in Sensor Networks.SenSys'03.Los Angeles,California,USA:2003.
    [31]Taehong Kin,Daeyoung Kim,Noseong Park,Seong-enu Yoo.Tomás Sánchez López.Shortcut Tree Routing in ZigBee Networks.IEEE,2007.
    [32]Wanzhi Qiu,Peng Hao,Rob J.Evans.An Efficient Self-healing Process for ZigBee Sensor Networks.IEEE,2007.
    [33]Heng-Chih Hung,Yueh-Min Huang,Jen-Wen Ding.An Implementation of Battery-aware Wireless Sensor Network Using ZigBee for Multimedia Service.IEEE,2006.
    [34]ATMEL.AVR2007:IEEE802.15.4 MAC power consumptions for AT86RF230 and ATmega 1281.Atmel Corporation,2007.

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

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

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