Connectivity analysis of wireless ad-hoc networks