The practical difficulties of setting up a Wireless Sensor Network (WSN) and analyzing its performance have made simulation essential study of WSNs. The network simulator is one of the most widely used tools by researchers to investigate the properties of WSNs. Network simulator has the basic properties to support simulations of different localization techniques. The localization algorithm calculates location accuracy and localization performance under particular level demonstrated by both theoretical and simulation results. The enhanced performance of the proposed model calculates and compared to other algorithms using the network simulator.