






Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!







ZigBee is a low-cost, low-power, wireless mesh networking standard based upon IEEE 802.15.4. The low cost allows the technology to be widely deployed in wireless control and monitoring applications, the low power-usage allows longer life with smaller batteries, and the mesh networking provides high reliability and larger range. ZigBee operates in the industrial, scientific and medical (ISM) radio bands; 868 MHz in Europe, 915 MHz in the USA and Australia, and 2.4 GHz in most jurisdictions worldwide. ZigBee builds upon the physical layer and medium access control defined in IEEE standard 802.15.4. The specification goes on to complete the standard by adding four main components: network layer, application layer, ZigBee device objects (ZDO's) and manufacturer-defined application objects which allow for customization and favor total integration. Besides adding two high-level network layers to the underlying structure, the most significant improvement is the introduction of ZDO's. These are responsible for a number of tasks, which include keeping of device roles, management of requests to join a network, device discovery and security.
A ZigBee network can adopt one of the three topologies: Star , Tree , Mesh. These are illustrated on the left and briefly described below. Star Topology A Star network has a central node, which is linked to all other nodes in the network. All messages travel via the central node. Tree Topology A Tree network has a top node with a branch/leaf structure below. To reach its destination, a message travels up the tree (as far as necessary) and then down the tree. Mesh Topology A Mesh network has a tree-like structure in which some leaves are directly linked. Messages can travel across the tree, when a suitable route is available.
End Devices are always located at the extremities of a network: In the Star topology, they are perimeter nodes In the Tree and Mesh topologies, they are leaf nodes This is illustrated below, where the End Devices are color-coded in light blue. The main tasks of an End Device at the network level are sending and receiving messages. End Devices cannot relay messages and cannot allow other nodes to connect to the network through them. An End Device can often be battery-powered and, when not transmitting or receiving, can sleep in order to conserve power. ROUTER Networks with Tree or Mesh topologies need at least one Router. The main tasks of a Router are: Relays messages from one node to another Allows child nodes to connect to it In a Star topology, these functions are handled by the Co-ordinator and, therefore, a Star network does not need Routers. In Tree and Mesh topologies, Routers are located as follows: In a Tree topology, Routers are normally located in network positions that allow messages to be passed up and down the tree. In a Mesh topology, a Router can be located anywhere that a message passing node is required.
However, in all topologies (Star, Tree and Mesh), Router devices can be located at the extremities of the network, if they run applications that are needed in these locations - in this case, the Router will not perform its message relay function, unless in a Mesh network (see above). The possible positions of Routers in the different network topologies are illustrated below, where the Routers are color-coded in red: A Router cannot sleep.
In a ZigBee network, each node must have unique identification. This is achieved by means of two addresses: IEEE address Network address IEEE Address This is a 64-bit address, allocated by the IEEE, which uniquely identifies the device – no two devices in the world can have the same IEEE address. It is also called the MAC address or the extended address. Network Address This is a 16-bit address identifies the node in the network - it is local to that network (thus, two nodes on separate networks may have the same network address). Network addresses are allocated by the parent node (Router or Co-ordinator) when a node joins a network. It is also called the short address. The Co-ordinator always takes the network address 0x0000.
The figure below shows the construction of the data frame, also called a data packet. In the MAC protocol data unit, the data payload is appended with source and destination addresses, a sequence number to allow the receiver to recognize that all packets transmitted have been received, frame control bytes that specify the network environment and other important parameters, and finally a frame check sequence that lets the receiver verify that the packet was received uncorrupted. This MAC frame is appended to a PHY synchronization and PHY header, which provides a robust mechanism for the receiver to quickly recognize and decode the received packet. After receiving a data packet, the receiver performs a 16-bit cyclic redundancy check (CRC) to verify that the packet was not corrupted in transmission. With a good CRC, the receiver can automatically transmit an acknowledgement packet (depending on application and network needs), allowing the transmitting station to know that the data were received in an acceptable form. If the CRC indicates the packet was corrupt,
the packet is dropped and no acknowledgement is transmitted. When a developer configures the network to expect acknowledgement, the transmitting station will retransmit the original packet a specified number of times to ensure successful packet delivery. If the path between the transmitter and receiver has become less reliable or a network failure has occurred, ZigBee provides the network with self-healing capabilities when alternate paths (if physically available) can be established autonomously. ACKNOWLEDGEMENT PACKET A successful reception and validation of a data or MAC command frame can be optionally confirmed with an acknowledgment. If the receiving device is unable to handle the received data frame for any reason, the message is not acknowledged. If the originator does not receive an acknowledgment after some period, it assumes that the transmission was unsuccessful and retries the frame transmission. If an acknowledgment is still not received after several retries, the originator can choose either to terminate the transaction or to try again. When the acknowledgment is not required, the originator assumes the transmission was successful.
The basic 802.15.4 node is fundamentally efficient in terms of battery performance. You can expect battery lifetimes from a few months to many years as a result of a host of system power-saving modes and battery-optimized network parameters, such as a selection of beacon intervals, guaranteed time slots, and enablement/disablement options. The ZigBee standard actually mandates a 2-year battery life for battery-powered nodes. However, where battery life is concerned, longer is always better. Several factors affect power consumption, including the supply voltages of the radio and microcontroller, the active current drawn by the radio and microcontroller, the
In a wireless network, it is important to ensure reliable communications - that is, to make sure communications reach their destinations uncorrupted. Corruption or loss of messages could result, for example, from radio interference or from poor transmission/reception conditions. The 2.4 GHz band is used worldwide also for other technologies (e.g. Bluetooth, Wi-fi…) and thus it may be very crowded and noisy. The 2.4 GHz band is divided into 16 channels , with each requiring 5 MHz of bandwidth. The maximum over-the-air data rate is 250 Kbps. Once on a specific channel, the 802.15.4 radio relies on a number of mechanisms to ensure reliable data transmission. The reliability measures employed by ZigBee allow a wireless network to operate in a protected environment, even when there are other ZigBee networks nearby operating in the same frequency band. Adjacent ZigBee networks will not interfere with each other. In addition, ZigBee networks can operate in the neighbourhood of networks based on other standards, such as Wi-Fi and Bluetooth. Reliability Measures ZigBee offers a range of techniques to ensure reliable communications. These are described below. Listen Before Send The transmission scheme used in ZigBee avoids transmitting data when there is activity on the chosen channel – this is known as Carrier Sense, Multiple Access with Collision Avoidance (CSMA-CA). Put simply, this means that before beginning a transmission, a node listens on the channel to check whether it is clear. If activity is detected on the channel, the node delays the transmission for a random amount of time and listens again. If the channel is now clear, the transmission can begin, otherwise the delay-and-listen cycle is repeated. Acknowledgements An acknowledgement mechanism is built into ZigBee to ensure that messages reach their destinations. When a message arrives at its destination, the receiving device sends an acknowledgement to say the message has been received. If the sending device does not receive an acknowledgement within a certain time interval, it resends the original message (it can resend the message several times until the message has been acknowledged).
Alternative Routes In a Mesh topology, the network has built-in intelligence to ensure that messages reach their destinations. If the default route to the destination node is down, due to a failed intermediate node or link, the network can “discover” and implement alternative routes for message delivery.
ZigBee networks are highly secure. They incorporate measures to prevent intrusion from potentially hostile parties and from neighboring ZigBee networks. To this end, a “Security Toolbox” is included with ZigBee, offering the following features: AES-based Encryption A very high-security, key-based encryption system is used to prevent external agents from interpreting ZigBee network data. Data is encrypted at the source and decrypted at the destination using the same key - only devices with the correct key can decrypt the encrypted data. A 128-bit encyption system is employed based on the AES (Advanced Encryption Standard) algorithm. Message Timeout This feature allows timed-out messages to be rejected, preventing message replay attacks on the network. A frame counter is added to a message, which helps a device determine how old a received message is - the appended value is compared with a value stored in the device (which is the frame counter value of the last message received). This value only indicates the order of messages and does not contain time/date information. This allows protection against replay attacks in which old messages are later re-sent to a device. An example of a replay attack would be a malicious individual recording the open command for a garage door opener, and then later replaying it to gain entry to the property. Access Control Lists A provision of the underlying IEEE 802.15.4 standard is that a node is able to select the other network nodes with which it is prepared to communicate. This is achieved using an Access Control List (ACL), maintained in the device, which contains the MAC addresses of nodes with which communication is allowed. The source node of an incoming message is compared against this list, and the result is passed to the higher layers which decide whether to accept or reject the message. However, note that if messages are not encrypted, the alleged source of a message could be falsified.