Analyzing and Modeling Network Traffic in Wireless Sensor Networks