Performance analysis of cooperative communication for wireless networks