23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ZigBee 50-7<br />

Coordinator<br />

Router<br />

End device<br />

Star Cluster-tree Mesh<br />

FIGURE 50.6<br />

ZigBee network topologies and classes of device.<br />

50.5.3 Network Layer<br />

Network layer (NWK) enables routing and multi-hop <strong>communication</strong> between devices in star, mesh, or tree<br />

topology. The NWK provides two types of basic services; data services and management services. The data<br />

services include a network layer protocol data unit (NPDU), transmitting NPDU to the next hop, and applying<br />

NWK security. The management services allow applications to interact with the ZigBee protocol stack.<br />

The management services include configuring a new device, establishing a new network, joining and leaving<br />

a network, assigning address to devices joining the network, neighborhood discovery, and route discovery.<br />

The devices in a ZigBee network are either reduced function device (RFD) or full function device (FFD).<br />

RFD is simple in terms of hardware and software complexity. It is only restricted to start topology, is incapable<br />

of network routing, is low power, and is potentially low cost because of reduced functionality. On<br />

the other hand, FFD is more resourceful, has routing capability, and is generally powered by mains power<br />

supply. RFD only communicates with FFD while FFD can communicate with another FFD and/or RFD.<br />

ZigBee devices are logically divided into three different classes; an end device, a router, and a coordinator<br />

(Figure 50.6).<br />

The responsibilities of a PAN coordinator comprise initiating new network, managing the network<br />

nodes, and storing network information, for instance, security keys. There is exactly one PAN coordinator<br />

per ZigBee network and is an FFD. Router is an optional FFD component in ZigBee network and is used to<br />

extend network coverage, allocation and de-allocation of addresses, and routing between nodes. End devices<br />

implement user applications and can either be FFD or RFD but do not participate in data forwarding.<br />

In start topology, <strong>communication</strong> is done only through PAN coordinator and follows a master/slave<br />

paradigm. In mesh topology, any device can talk to any other device. Such a topology is ad hoc, selforganizing,<br />

and self-healing, and employs multi-hop <strong>communication</strong>. Mesh topology allows multiple<br />

paths from a given source to destination and thus increases reliability. If one breaks, the data are sent<br />

via another path transparently. Cluster-tree topology is a hybrid (star plus mesh) approach where PAN<br />

coordinator designates itself as a cluster-head and forms a tree around itself. Although such a topology<br />

increases coverage area, it introduces additional delays.<br />

The routing algorithms that are used in ZigBee networks are hierarchical and have potential for table<br />

optimizations. Commonly used algorithms include a routing algorithm similar to Ad-hoc on-demand<br />

distance vector (AODV) and cluster-tree algorithm.<br />

50.5.4 application Layer<br />

The APL of ZigBee protocol stack is composed of application support (APS) sub-layer, application<br />

framework, and ZDO. The APS provides an interface to the NWK. The services provided by APS comprise<br />

data transmission, fragmentation and reassembly, reliable data transport, security, device binding,<br />

and maintenance of APS information base (a database containing information about managed objects).<br />

Application objects (manufacturer-defined components that implement the application) reside in application<br />

framework. A total of 240 distinct application objects can be defined with IDs ranging from 1<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!