Wireless sensor network has been proposed as a cheaper way to communication compared with GPS. Location is the main problem to measure the distance between sensor nodes. RSS algorithm has been proposed as an effective way but is vulnerable to the environment due to the shading, multipath fading and frequency selected fading. Firstly, I will survey the performance of RSS and try to come up with a better model to optimize the RSS algorithm. Then do experiment to testify the performance. The anticipated result is to build a strong algorithm of RSS in the implement of wireless sensor network.