You are on page 1of 4

Key Technologies Analysis Of ZigBee Network Layer

Hu Guozhen
Huangshi Institute of Technology, Huangshi Hubei 435003, China
E-mail:hugz123@126.com

Abstract--In order to expand the application of ZigBee network management entity NE and data management
wireless communication based on IEEE802.15.4, network entities (DE).
layer of ZigBee protocol stack is developed. After
introduction of the ZigBee protocol stack model, key
technologies of network layer and corresponding realization
method are proposed. The key technology of network layer
includes wireless network management, address distribution
and routing. Finally, hardware and software development
platform of ZigBee protocol stack and testing method are
presented.

Keywords--ZigBee; Network layer; Network management;


Address distribution; Routing

I. INTRODUCTION
The IEEE 802.15.4 standard was approved in 2003
as a media access control (MAC) and physical (PHY)
layer standard for low data rate, low power, and low cost
wireless personal area networks (WPANs) . This PHY
and MAC layer standard defined a 250kb/s direct
sequence spread spectrum (DSSS) radio operating in the
2.4GHz unlicensed band with lower bit-rate alternatives Fig.1. ZigBee communication protocol stack
in the 868 MHz and 900 MHz bands. This standard now Physical layer (PHY) is responsible for data
enjoys extensive silicon support, primarily in the 2.4GHz modulation, sending and receiving data. Media Access
band. On top of this PHY and MAC layer standard, Control layer (MAC) is responsible for data framing,
several proprietary and standards-based sensor network frame detection, medium access and error control. Data
systems emerged. The one with the most vendor and link layer protocols need to fully consider the diversity of
end-product support is the ZigBee standard proposed by real-time communication information, sleep and other
ZigBee Alliance[1]-[4]. energy-saving mechanism to meet the stringent reliability,
The ZigBee Alliance is a rapidly growing association real-time and energy efficiency requirements. Network
of companies working together to enable reliable, layer (NWK) is responsible for system, network
cost-effective, low power, wirelessly networked formation, maintenance and the provision of routing
monitoring and control applications [2]. The ZigBee functions, network architecture, resource-constrained,
specifications were ratified in December 2004 and the node mobility, etc. APS were made on the network
ZigBee network specification is one of the first standards development for a higher-layer requirement. Application
for ad hoc and sensor networks. support sub-layer (APS) completes network time
This paper addresses one of the most important synchronization, node localization, and provides
research topics on ZigBee networks and present the user-oriented applications, collaborative applications
realization of ZigBee network layer NWK . Section II interfaces. And the application layer (APL) achieves
introduces the whole constitute of ZigBee protocol stack different network communication between devices,
model. Section III illustrates the key technologies of information and service of devices. This paper focus on
Zigbee network layer. The software and hardware the related key technologies of ZigBee network layer [1]
platform are presented in Section IV and Section V, which [2].
are used to realize and test the proposed arithmetic.
III. KEY TECHONOLGIES OF ZIGBEE
II. ZIGBEE PROTOCOL STACK MODEL NETWORK LAYER
For industrial applications, ZigBee communication
A. Type of wireless device
protocol stack was developed base on IEEE802.15.4.
Fig.1. shows ZigBee communication protocol model. The ZigBee defines two kinds of functional devices:
model is made up of PHY, MAC, NWK, APS and APL full-function devices (FFD), reduced function device
layer. And every layer is connected through service access (RFD). FFD supports different kind of topology, which
Entry Point (SAP). Every layer is divided into two parts, mainly used as a network coordinator and routers that
could communicate with other device. RFD only supports
c
978-1-4244-6349-7/10/$26.00 2010 IEEE V7-560
star topology, and can not be used as a network authorized device, it allocated the device a unique short
coordinator. RFD is usually used in embedded field address and then added this device to address table. At the
devices [5]. same time the devices in the wireless network could
FFD can communicate with RFD or other FFD. But request to leave the network through sending a disconnect
RFD can only communicate with FFD and can not request primitive. The FFD responded the request and
communicate with other RFD. RFD is mainly used for then deleted this device’s message in neighbor table.
simple control applications such as light switches, passive
infrared sensors, which only need less transmitted data C. Address allocation
and resources and communication resources. In a wireless network, any network node can attain a
unique 64-bit IEEE address (long address) and a 16-bit
B. Wireless network management short address (short address), which allocated before the
Network management in wireless network included transmission of information. The network coordinator
network formation and network maintenance, which was was assigned 0x00 as its short address, 0 as its network
different from traditional gateway. depth (Depth). And the network depth of its son device is
one. In this design, in order to minimize network traffic,
a. Network formation simplify the device structure and reduce the cost and
The proposed wireless network protocol follows the power consumption of devices, a distributed address
standard of ZigBee specification. Fig.2 shows the allocation scheme was adopted in this paper.
formation of a wireless network. Firstly, a FFD was In the proposed scheme short message was decided
initialized to be a coordinator. And then in order to search by three parameters: the maximum depth of the network
an appropriate channel, the FFD performed a ED(energy (nwkMaxDepth) Lm, the number of sub-devices
detect ) and channel scanning until getting an appropriate (nwkMaxChildren) Cm that each of the parent device can
channel .After getting a appropriate channel, the FFD connect, the number of sub-router (nwkMaxRouters) Rm
allocated this new network a new PANID (personal area that each router can connect. The address offset of a
network identifier ) which should be unique in this parent device can assign according to equation (1).
channel. In order to distinguish with other devices, the
FFD chose 0x0000 as own 16-bit network address. And
1 + Cm − Rm − Cm • RmLm − d −1
then through sending a set of primitives between the Addr (d ) =
layers of ZigBee protocol stack, a new wireless network 1 − Rm 1
was formed.
If the address of some device was assigned as 0, then
b. Network Maintenance this device does not have the ability to link child device,
The function of Network maintenance is to manage and this device can only serve as a wireless network field
the devices of wireless network. A FFD should possess device. If the device was assigned an address which was
the ability to join a device to the network as well as the greater than 0, it has the ability to link child device and
ability to request a device to leave the network. can allocate address to child devices. According to the
When wireless network was formed, network above address assignment rules, the devices address
management entity set MAC layer connection permission allocation must be completed allocation before system
signal to determine whether to allow other devices to join design. Fig.3. shows an example of address allocation
the network or not. through a three-tier structure to verify the address
allocation rules.

Fig.2. Flow chart of formation of wireless network Fig.3. Network address allocation
Usually a device can join a wireless network through In Fig.3, the largest number of sub-device Cm is
joint joining or direct joining method. In this design, a equal to 4; the largest number of routes device Rm is
direct joining method was adopted. This method required equal to 2; the network maximum depth Lm is equal to 2.
the device sending a beacon frame when devices When the d (Depth) = 0, the address offset Addr (0) that
requested to join a network. When FFD received the network coordinator can assigned is 5; When the d (Depth)
beacon frame coming from a device, if the device was an = 1, the address offset Addr (1) that routing device

[Volume 7] 2010 2nd International Conference on Computer Engineering and Technology V7-561
Table 1 Network address allocation
Type Network Router Field device
coordinator
DeviceID 0 1 2 1 2 3 4 5 6 7
Address 00 01 06 02 03 04 05 07 08 09

(router) can assigned is 1; When the d (Depth) = 2, the Fig.4. ZigBee communication module prototype
address offset Addr (1) is equal to 0. According to The wireless module was mainly consisted of
formula (1), address of network devices can be shown in CC2430 chip and corresponding impedance matching
Table 1 as an example. circuit. Chip peripheral circuits included crystal oscillator
Information interchange of different devices depends clock circuitry, RF input / output matching circuitry and
on devices address, either long address or short address. microcontroller interface circuit. Passive crystal of
In order to extend battery life, if the device is in the same 32MHz was used to provide clock for internal
network, it is better to adopt short address in data microprocessors, while 32.768KHz crystal provided clock
transmission. These not only can reduce the size of the source for the sleep mode timer. Its load capacitance
packet, but also can shorten the data transmission time value was about 22pF. RF input / output matching circuits
among the devices and reduce power consumption, required precise inductance and capacitance to match the
extend battery life. If the device is in the different sub-net, chip's RF input / output impedance (about 50Ω) and
PANID and short address can be adopted synchronously. provide DC bias for chip internal power amplifier and
low-noise amplifier.
D. Routing
Routing function of ZigBee network layer includes V. METHOD OF PEFOREMANCE TEST
the best effective routing, maintenance of routing tables, In order to test the consistent of data packet,
the upper route selection and route repair. While routing C51RF-3-F wireless network analyzer was used to
was based on the routing cost, the routing cost is the capture the wireless data packets. Sketch map of wireless
summation of multi-hop routing link cost. communication module test was shown in Fig.5.
The link cost can be get from link quality indication C51RF-3-F protocol analyzer is based on the latest
(LQI) of each frame which was recorded in MAC layer 802.15.4/ZigBee technology, which can be used to
and PHY layer based on IEEE802.15.4. According to the decode the ZigBee protocol and thus speed up the
size of link cost of routing, the device of low link cost can debugging process. TI's Packet Sniffer for CC2430
be selected as a relay device. protocol analysis software was also used to assistant
An effective algorithm must be provided in network analysis, which can display the information from PHY
layer. A basic route algorithm has been realized in this layer and MAC layer to NWK layer and associated
paper. Firstly, the routing device checks routing table sub-domain information.
entry corresponding to the destination address, and then
searches the next hop address to send data frames. If there
is no routing table entry corresponding to the destination
address, the routing sub-domain of network layer header
control domain must be checked. If the selected
sub-domain is set to 1, the selection of routing address
will be based on link cost routing algorithm. If the
selected sub-domain is set to 0, then the method of
hierarchical routing should be adopted. Fig.5 Sketch map of wireless communication module test
As shown in Fig.6, this data packet captured by
IV. HARDWARE PLATFORM OF ZIGBEE C51RF-3-F indicated the result of address allocation. And
PROTOCOL STACK NWK layer data message was presented in Fig.7, which
As shown in Fig.4, a communication module was included Frame control field, Serial number, Destination
designed to develop ZigBee protocol stack. This module address, Source address and NWK payload.
adopted CC2430 as microcontroller unit (MCU), which
was developed by Chipcon based on IEEE
802.15.4.CC2430 includes a 2.4GHz RF transceiver and a
high-performance 8051 controller. This chip can meet
with low-cost and low power requirements [6]-[8].

Fig.7. Address allocation

Fig.8. NWK data message.

V7-562 2010 2nd International Conference on Computer Engineering and Technology [Volume 7]
VI. CONCULUSION
ZigBee standard provides network, security, and
application services, which work on media access control
layer (MAC) and Physical Layer (PHY) based on IEEE
802.15.4 standards. This paper introduced the related key
technologies of ZigBee network layer and presented
corresponding design method. The proposed network
layer was according with ZigBee standard ruled by
ZigBee Alliance and ensured scalability and self
-restorative of wireless network.

REFERENCE

[1] IEEE Standard 802, Part 15.4: Wireless Medium Access Control
(MAC)and Physical Layer (PHY) Specifications for Low Rate
Wireless Personal Area Networks (WPANs), 2003.
[2] ZigBee Alliance, Network Specification, Version 2.0, Dec. 2006.
[3]Ding, G.,Sahinoglu, Z.,Orlik, P., Zhang, J., Bhargava, B.“Tree-Based
Data Broadcast in IEEE 802.15.4 and ZigBee Networks”IEEE
Transactions on Mobile Computing. Vol. 5.No.11, 2006 pp:1561 –
1574.
[4] Shizhuang Lin, Jingyu Liu, Yanjun Fang.“ ZigBee Based Wireless
Sensor Networks and Its Applications in Industrial,”IEEE
International Conference on Automation and Logistics,
2007 .pp:1979 – 1983.
[5] Masahiro Inoue, Toshiyasu Higuma, Yoshiaki Ito, Noriyuki
Kushiro,and Hitoshi Kubota, “Network Architecture for Home
Energy Management System,” IEEE Trans. on Consumer
Electronics, vol.49,no.3, pp.606-613, Aug. 2003.
[6] P. Valdastri, S. Rossi, A. Menciassi, V. Lionetti, F. Bernini, F. A.
Recchia,and P. Dario, “An implantable zigbee ready telemetric
platform for in vivo monitoring of physiological parameters,”
Sensors Actuators A: Phys.,vol. 142, no. 1, pp. 369–378, Mar. 2008.
[7]TI,General Packet Snifferand Location engine User Manual Rev.
1.2,2006.5
[8] L. Wang, E. Johannessen, P. Hammond, L. Cui, S. Reid, J.
Cooper,and D. Cumming, “A programmable microsystem using
system-on-chip for real-time biotelemetry,” IEEE Trans. Biomed.
Eng., vol. 52, no. 7,pp. 1251–1260, Jul. 2005.

[Volume 7] 2010 2nd International Conference on Computer Engineering and Technology V7-563

You might also like