Nowadays, wireless sensor networks are used in various different applications for example, measuring humidity and temperature, wildlife monitoring, senior citizens monitoring, military usages and so on. Each application needs different requirements thus; there are lots of different protocols and hardware which are used for developing sensor networks. One of the most challenging issues in designing routing protocols for wireless sensor network is the ability of transferring real-time information. Due to limitations on energy and processing power, and also the ad-hoc structure of wireless sensor networks providing quality of service parameters is a very challenging issue. In this thesis, we propose a routing protocol for transferring real-time data in sensor networks. This routing protocol is designed to deal with important factors and challenges in wireless sensor networks such as, bandwidth, processing power and memory limitation. The proposed routing algorithm is based on the negotiation between each source and the network and resource reservation within wireless sensor networks. The proposed routing algorithm is simulated in OPNET and the simulation results show the performance of the proposed algorithm. Keywords : 1. Wireless sensor network 2.Routing protocol3.Real-time traffic 4. QoS based routing protocol