Implementation of an IEEE and ZigBee Protocol using the OPNET simulator

Similar documents
Figure 1. The Example of ZigBee AODV Algorithm

Power Characterisation of a Zigbee Wireless Network in a Real Time Monitoring Application

A Non-beaconing ZigBee Network Implementation and Performance Study

AN1066. MiWi Wireless Networking Protocol Stack CONSIDERATIONS INTRODUCTION TERMINOLOGY FEATURES

ZIGBEE ECGR-6185 Advanced Embedded Systems. Charlotte. University of North Carolina-Charlotte. Chaitanya Misal Vamsee Krishna

An Overview of ZigBee Networks

Microchip Technology. February 2008 Valerio Moretto Slide 1

Professur Technische Informatik Prof. Dr. Wolfram Hardt. Network Standards. and Technologies for Wireless Sensor Networks. Karsten Knuth

Use of the ZENA MiWi and P2P Packet Sniffer

Design and Performance Analysis of Building Monitoring System with Wireless Sensor Networks

Customer Specific Wireless Network Solutions Based on Standard IEEE

Supporting ZDOs with the XBee API

Spring Final Project Report

Wireless Personal Area Networks (WPANs)

ZIGBEE: A LOW POWER WIRELESS TECHNOLOGY FOR INDUSTRIAL APPLICATIONS

Improvisation of The Quality Of Service In ZigBee Cluster Tree Network

Introduction to Zibgbee Technology

CROSS LAYER BASED MULTIPATH ROUTING FOR LOAD BALANCING

PERFORMANCE ANALYSIS OF WLAN STANDARDS FOR VIDEO CONFERENCING APPLICATIONS

Comparison of RIP, EIGRP, OSPF, IGRP Routing Protocols in Wireless Local Area Network (WLAN) By Using OPNET Simulator Tool - A Practical Approach

ENSC 427: COMMUNICATION NETWORKS Simulation and Analysis of Wi-Fi Performance in campus network

SBSCET, Firozpur (Punjab), India

MultiNet: Connecting to Multiple IEEE Networks Using a Single Wireless Card

Demystifying Wireless for Real-World Measurement Applications

Voice Transmission over Wireless Sensor Networks

Optimized Load Balancing Mechanism Using Carry Forward Distance

Routing Analysis in Wireless Mesh Network with Bandwidth Allocation

Analysis of Mobile IP in Wireless LANs

Load-balancing Approach for AOMDV in Ad-hoc Networks R. Vinod Kumar, Dr.R.S.D.Wahida Banu

Internet of Things. Exam June 24

Implementation of Wireless Gateway for Smart Home

APPLICATION NOTE. AVR2130: Lightweight Mesh Developer Guide. Atmel MCU Wireless. Features. Description

A Review paper on History, Current trends and Future of Zigbee (IEEE ) Standard

Service Level Analysis of Video Conferencing over Wireless Local Area Network

Zigbee. Setting Standards for Energy-Efficient Control Networks. Setting Standards for Energy-Efficient Control Networks

Measuring the Performance of VoIP over Wireless LAN

Achieving Energy Efficiency in MANETs by Using Load Balancing Approach

Hyacinth An IEEE based Multi-channel Wireless Mesh Network

1 M.Tech, 2 HOD. Computer Engineering Department, Govt. Engineering College, Ajmer, Rajasthan, India

AN965. Microchip Stack for the ZigBee Protocol ASSUMPTION INTRODUCTION FEATURES LIMITATIONS

A Fast Path Recovery Mechanism for MPLS Networks

PERFORMANCE ANALYSIS OF AODV, DSR AND ZRP ROUTING PROTOCOLS IN MANET USING DIRECTIONAL ANTENNA

Performance Analysis of AQM Schemes in Wired and Wireless Networks based on TCP flow

Zigbee Network Performance

WPAN. Contents. S Wireless Personal, Local, Metropolitan, and Wide Area Networks 1

Performance Evaluation of Wired and Wireless Local Area Networks

Control overhead reduction: A Hierarchical Routing Protocol In Mobile Ad hoc Networks

PERFORMANCE ANALYSIS OF VOIP TRAFFIC OVER INTEGRATING WIRELESS LAN AND WAN USING DIFFERENT CODECS

ECE 358: Computer Networks. Homework #3. Chapter 5 and 6 Review Questions 1

International Journal of Advanced Research in Computer Science and Software Engineering

6LoWPAN: An Open IoT Networking Protocol

CS698T Wireless Networks: Principles and Practice

DESIGN AND DEVELOPMENT OF LOAD SHARING MULTIPATH ROUTING PROTCOL FOR MOBILE AD HOC NETWORKS

LAN Switching Computer Networking. Switched Network Advantages. Hubs (more) Hubs. Bridges/Switches, , PPP. Interconnecting LANs

PERFORMANCE ANALYSIS OF THE IEEE BASED ECG MONITORING NETWORK

Industrial Networks & Databases

6LoWPAN Technical Overview

ISSN: (Online) Volume 2, Issue 4, April 2014 International Journal of Advance Research in Computer Science and Management Studies

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Tranzeo s EnRoute500 Performance Analysis and Prediction

Thwarting Selective Insider Jamming Attacks in Wireless Network by Delaying Real Time Packet Classification

The Analysis and Simulation of VoIP

Crossroads Copenhagen

ENSC 427: Communication Networks. Analysis of Voice over IP performance on Wi-Fi networks

Load Balancing Routing Algorithm among Multiple Gateways in MANET with Internet Connectivity

CHAPTER 6 SECURE PACKET TRANSMISSION IN WIRELESS SENSOR NETWORKS USING DYNAMIC ROUTING TECHNIQUES

A NOVEL RESOURCE EFFICIENT DMMS APPROACH

Performance Comparison of Mixed Protocols Based on EIGRP, IS-IS and OSPF for Real-time Applications

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 5, September

Wireless Mesh Networks under FreeBSD

Load Balancing Routing in Multi-Channel Hybrid Wireless Networks with Single Network Interface

Experimental Comparison of Routing and Middleware Solutions for Mobile Ad Hoc Networks: Legacy vs Cross-Layer Approach

Efficient Load Balancing Routing in Wireless Mesh Networks

Behavior Analysis of TCP Traffic in Mobile Ad Hoc Network using Reactive Routing Protocols

Hosts Address Auto Configuration for Mobile Ad Hoc Networks

Formal Measure of the Effect of MANET size over the Performance of Various Routing Protocols

Introduction to Wide-Area WiFi. AfNOG 2009 Wireless Tutorials Cairo

UG103.2: Application Development Fundamentals: ZigBee

VOIP under: WLAN g. VS Telephone Landline. ENSC 427 Team 1 Luke Dang tld@sfu.ca Jason Tsai kta2@sfu.ca Jeffrey Tam jta6@sfu.

Student, Haryana Engineering College, Haryana, India 2 H.O.D (CSE), Haryana Engineering College, Haryana, India

Wireless Networks. Reading: Sec5on 2.8. COS 461: Computer Networks Spring Mike Freedman

Study of Different Types of Attacks on Multicast in Mobile Ad Hoc Networks

Simulative Investigation of QoS parameters for VoIP over WiMAX networks

Performance Evaluation of AODV, OLSR Routing Protocol in VOIP Over Ad Hoc

Implementation of a Greenhouse Crop Remote Monitoring System with IOT Technology

On the Synchronization of Co-Located IEEE Networks for IoT Applications

Scheduling Enhanced Beacons in the IEEE e MAC for fast network formation

IRMA: Integrated Routing and MAC Scheduling in Multihop Wireless Mesh Networks

CS 5480/6480: Computer Networks Spring 2012 Homework 4 Solutions Due by 1:25 PM on April 11 th 2012

An Active Network Based Hierarchical Mobile Internet Protocol Version 6 Framework

Open-ZB: an open-source implementation of the IEEE /ZigBee protocol stack on TinyOS

LoRaWAN. What is it? A technical overview of LoRa and LoRaWAN. Technical Marketing Workgroup 1.0

Transcription:

ENSC 835: COMMUNICATION NETWORKS FINAL PROJECT PRESENTATIONS Spring 2009 Implementation of an IEEE 802.15.4 and ZigBee Protocol using the OPNET simulator Mohammad Reza Sahraei http://www.sfu.ca/~mrs16/ensc835.htm mrs16@sfu.ca Apr 22, 2009 1

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References Apr 22, 2009 2

Introduction - overview Transmission bands: 868 MHz 915 MHz 2459 MHz Device type: Full-function device (FFD) PAN coordinator (IEEE 802.15.4) or ZC (ZigBee) Coordinator (IEEE 802.15.4) or ZR (ZigBee) Reduced-function device (RFD) Device (IEEE 802.15.4) or ZED (ZigBee) ZC: ZigBee Coordinator, ZR: ZigBee Router, ZED: ZigBee End Device PAN: Personal Area Network Apr 22, 2009 3

Introduction - overview Application layer features: Generating and receiving application traffic Initiating network discovery and network join Failing and recovering ZigBee devices Network layer features: Establishing a network Joining a network and permitting network joins Assigning an address Maintaining a neighbor table Mesh Routing Process Network Broadcast Tree routing process Transmitting and receiving data Mobility Beacon scheduling MAC layer features: Channel Scanning CSMA/CA (Contention-based operation mode) Apr 22, 2009 4

Introduction ZigBee vs. Bluetooth Transmission band Data rate Operational range Configuration Maximum child Maximum power ZigBee 868, 915, and 2459 MHz 250 Kbps (at 2.4 GHz) 10 75 m (1500 m for ZigBee Pro) Master-slave 254 1 mw Bluetooth 2.4 GHz 1 Mbps 1, 10, and 100 m Peer-to-peer, masterslave 7 (active) + 255 (inactive) 1, 2.5, and 100 mw Wake up delay 15 msec 3 sec Protocol stack 30 kwords 256 kwords Protocol complexity Lower Higher Price less expensive more expensive Apr 22, 2009 5

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References Apr 22, 2009 6

Simulation scenarios and parameters Simulation scenarios: Star, Tree, and Mesh topologies Single and multiple ZC Parameters: 1,000 s simulated time Destination: random Packet inter-arrival time: constant, mean 1.0 s Packet size: 1024 bytes, constant Start time: uniform min 20 s, max 21 s ZC: ZigBee Coordinator Apr 22, 2009 7

Simulation scenarios and parameters Simulation scenarios: Star, Tree, and Mesh topologies Single and multiple ZC Parameters: 1,000 s simulated time Destination: random Packet inter-arrival time: constant, mean 1.0 s Packet size: 1024 bytes, constant Start time: uniform min 20 s, max 21 s ZC: ZigBee Coordinator Apr 22, 2009 8

Star topology ZC: ZigBee Coordinator ZR: ZigBee Router ZED: ZigBee End Device Apr 22, 2009 9

Tree topology ZC: ZigBee Coordinator ZR: ZigBee Router ZED: ZigBee End Device Apr 22, 2009 10

Mesh topology ZC: ZigBee Coordinator ZR: ZigBee Router ZED: ZigBee End Device Apr 22, 2009 11

Network structure Device Name PAN ID Parent Star Tree Mesh Star Tree Mesh 0 0 0 n/a n/a n/a zed_mobile_1 1 93 93 zr_fixed_1 2 1 1 zr_mobile_1 3 47 47 zr_fixed_3 4 2 2 zr_fixed_1 zr_fixed_1 zed_fixed_1 5 46 46 zr_fixed_1 zr_fixed_1 zed_fixed_5 6 92 92 zr_mobile_1 zr_mobile_1 zed_fixed_2 7 23 23 zr_fixed_3 zr_fixed_3 zr_fixed_5 8 24 24 zr_fixed_1 zr_fixed_1 zr_fixed_2 9 3 3 zr_fixed_3 zr_fixed_3 zr_fixed_4 10 48 48 zr_mobile_1 zr_mobile_1 zed_fixed_3 11 69 69 zr_fixed_4 zr_fixed_4 zed_fixed_4 12 45 45 zr_fixed_5 zr_fixed_5 ZC: ZigBee Coordinator, ZR: ZigBee Router, ZED: ZigBee End Device PAN ID: Personal Area Network Identifier Apr 22, 2009 12

Simulation parameters ZigBee Parameters Value Star Tree Mesh Maximum children 255 3 3 Maximum routers 0 2 2 Maximum depth 1 5 5 Achieved depth 1 3 3 Mesh routing Disabled Disabled Enabled Transmit power 0.05 0.05 0.05 Transmit band 2450 MHz 2450 MHz 2450 MHz PAN ID Auto assigned Auto assigned Auto assigned PAN ID: Personal Area Network Identifier Apr 22, 2009 13

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References Apr 22, 2009 14

Simulation results Mesh routing table End-to-end delay Number of hops Throughput - ZC Throughput - global ZC: ZigBee Coordinator Apr 22, 2009 15

Mesh routing table Apr 22, 2009 16

End-to-end delay Star and Mesh topologies have similar end-to-end delay in this simulation Tree topology has a higher end-to-end delay of 50% and it is increasing Apr 22, 2009 17

Number of hops Average number of hops for Mesh topology is the same as Star topology Tree topology has a higher average number of hops of 75% Apr 22, 2009 18

Throughput - ZC The Coordinator in Star topology has the highest throughput (bits/sec) The Coordinator in Tree topology has the second highest throughput (bits/sec) The Coordinator in Mesh topology has the lowest throughput (bits/sec) ZC: ZigBee Coordinator Apr 22, 2009 19

Throughput - global Tree topology has the highest global throughput (bits/sec) Mesh topology has the second highest global throughput (bits/sec) Star topology has the lowest global throughput (bits/sec) Apr 22, 2009 20

Simulation scenarios and parameters Simulation scenarios: Star, Tree, and Mesh topologies Single and multiple ZC Parameters: 1,000 s simulated time Destination: random Packet inter-arrival time: constant, mean 1.0 s Packet size: 1024 bytes, constant Start time: uniform min 20 s, max 21 s ZC: ZigBee Coordinator Apr 22, 2009 21

Multiple ZC tree topology Added ZC Original ZC ZC: ZigBee Coordinator ZR: ZigBee Router ZED: ZigBee End Device Apr 22, 2009 22

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results single vs. multiple ZC Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References ZC: ZigBee Coordinator Apr 22, 2009 23

Simulation results End-to-end delay Throughput - ZC ZC: ZigBee Coordinator Apr 22, 2009 24

End-to-end delay Ds_0: end-to-end delay of the network with a single PAN Dm_0: end-to-end delay of PAN_0 in the network with two PANs Dm_1: end-to-end delay of PAN_1 in the network with two PANs Ds_0 > Dm_0 Ds_0 > Dm_1 Ds_0 < Dm_0 + Dm_1 PAN: Personal Area Network Apr 22, 2009 25

Throughput - ZC Ts_0: throughput of ZC in the network with a single PAN Tm_0: throughput of ZC in PAN_0 of the network with two PANs Tm_1: throughput of ZC in PAN_1 of the network with two PANs (Ts_0 * 1.25) = Tm_1 + Tm_2 PAN: Personal Area Network ZC: ZigBee Coordinator Apr 22, 2009 26

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References Apr 22, 2009 27

Conclusions End-to-end delay Star and Mesh topologies are similar Tree is higher Average number of hops Star and Mesh topologies are similar Tree is higher ZC throughput (bits/sec) Star topology has the highest Tree has the second highest Mesh has the lowest Global throughput (bits/sec) Tree topology has the highest Mesh has the second highest Star has the lowest ZC: ZigBee Coordinator Apr 22, 2009 28

Conclusions - single vs. multiple ZC End-to-end delay The network with a single PAN has lower than the network with two PANs Throughput ZC The network with a single PAN has lower than the network with two PANs ZC: ZigBee Coordinator Apr 22, 2009 29

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References Apr 22, 2009 30

Unfinished work - simulation scenario and parameters Simulation scenario: ZC failure and quick recovery using ZC backup (ZCB) Parameters: 1,000 s simulated time Destination: random Packet inter-arrival time: constant, mean 1.0 s Packet size: 1024 bytes, constant Start time: uniform min 20 s, max 21 s ZC: ZigBee Coordinator Apr 22, 2009 31

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References Apr 22, 2009 32

Unfinished work - implementation details Apr 22, 2009 33

Unfinished work - implementation details static void failnode(void * ptrvoid, int icode); void wpan_prj_init(); void wpan_prj_init() { double dinterrupttime = 100.0; // time is second that the interrupt is scheduled int icode = 0; // verification code void * ptrvoid = 0; // data structure to send to the called function FIN (wpan_prj_init()); dinterrupttime += op_sim_time(); op_intrpt_schedule_call(dinterrupttime, icode, failnode, ptrvoid); } FOUT; static void failnode(void * ptrvoid, int icode) { Objid iobjid; Objid iparentobjid; FIN (failnode); if ((0 == my_pan_id) && (0 == my_network_address) && (-1 == my_parent_address)) { printf("node: Coordinator with PAN_ID: 0\n"); op_ima_obj_attr_set(op_intrpt_source(), "condition", OPC_BOOLINT_DISABLED); Apr 22, 2009 34

Road map Introduction: Overview ZigBee vs. Bluetooth Performance evaluation: Simulation scenarios and parameters Simulation results Conclusions Unfinished work: Simulation scenario and parameters Implementations details Future work References Apr 22, 2009 35

Future work Access to OPNET source code of the network and the application layers Complete ZC backup (ZCB) concept: Monitor and mirror ZC data Substitute ZC in case of failure Implement and analyze the concept in ns-2 ZCB: ZigBee Coordinator Backup Apr 22, 2009 36

References E. D. Pinedo-Frausto and J. A. Garcia-Macias, "An experimental analysis of ZigBee networks," Proc. LCN, 33rd IEEE Conference, Montreal, Que. Oct. 2008, pp. 723-729. X. Li, K. Fang, J. Gu, and L. Zhang, "An improved ZigBee routing strategy for monitoring system," Proc. ICINIS, First International Workshop, Wuhan, Nov. 2008, pp. 255-258. N.-C. Liang, P.-C. Chen, T. Sun, G. Yang, L.-J. Chen, and M. Gerla, "Impact of node heterogeneity in ZigBee mesh network routing," Proc. SMC, IEEE International Conference, Taipei, Oct. 2006, vol. 1, pp. 187-191. J. Y. Jung and J. W. Lee, "ZigBee device access control and reliable data transmission in ZigBee based health monitoring system," Proc. ICACT, 10th International Conference, Gangwon-Do, Feb. 2008, vol. 1, pp. 795-797. M.-S. Pan and Y.-C. Tseng, "The orphan problem in ZigBee-based wireless sensor networks," Proc. MSWiM, Chania, Crete Island, Greece, 2007, pp. 95-98. H. Labiod, H. Afifi, and C. De Santis, Wi-Fi, Bluetooth, ZigBee and WiMAX. London: Springer, 2007, pp. 109-122, 210-212. Wikipedia, ZigBee. Available: http://en.wikipedia.org/wiki/zigbee ZigBee Alliance. Available: http://www.zigbee.org Jennic, Jennic's ZigBee e-learning Course. Available: http://www.jennic.com/elearning/zigbee/index.htm C. Evans-Pughe, "Is the ZigBee wireless standard, promoted by an alliance of 25 firms, a big threat to Bluetooth?," IEE Review, vol. 49, pp. 28 31, Mar. 2003. S. Farahani, ZigBee Wireless Networks and Transceivers. London: Newnes, 2008. Apr 22, 2009 37