How to Apply Zigbee Routing Protocol in NS2

Description

Low power digital radios operates in ZigBee standard which is IEEE 802.15.4 in personal area network with low data rate. In zigbee_routing.tcl, Vehciular Ad Hoc network is created with MAC layer configuration as Mac/802_15_4 and with physical layer configuration as Phy/WirelessPhy/802_15_4. Road Side Sensors and Zigbee coordinators are configured to route the messages from vehicles.

#Filename: zigbee_routing.tcl

set val(netif1) Phy/WirelessPhy/802_15_4   ;# network interface type
set val(mac) Mac/802_15_4                         ;# MAC protocol