在 Zigbee通訊協定中,IEEE 802.15.4主要負責的是ZigBee無線傳輸的媒體存取層 (MAC Layer) 以及實體層 (PHY Layer) 部分。其後Zigbee聯盟在IEEE 802.15.4的無線標準上制訂邏輯網路和應用軟體的部分,建構了使用者應用介面及系統管理的統一規格,包含有網路層 (Network Layer, NWK) 以及應用層 (Application Support Layer, APS),通稱 Zigbee 堆疊 (Zigbee Stack)。而本論文研究的目標則為ZigBee 網路層 (NWK) 中的路由協定實作。透由實作學習甚至改良其路由通訊協定,使其更有效率,降低無線網路負載,以及提升資料傳輸的可靠度。 As the communication protocol of Zigbee, the main responsibility of IEEE 802.15.4 is media access control layer (MAC Layer) and physical layer (PHY Layer) of Zigbee. Zigbee Alliance works out the parts of logical network and application software. It also unifies the spec. with the application interface of user and system management. The spec. includes Zigbee network layer (NWK) and Zigbee application support layer (APS), also named Zigbee stack. We address the issue above to implement the Zigbee network layer. Then, we can learn and improve the routing protocol of zigbee, make it more efficiently, reduce the load of sensor and rise the reliability of data transmission.