The X-ray pulsar-based navigation is a novel technology for the satellite autonomous navigation. The position and the velocity of the satellite are deterimined by using the pulse phases detected at the satellite and predicted by the pulse timing models. With the detected pulse phase, the satellite position with respect to the Earth center can be calculated along the line-of-sight to the pulsar. Using three pulsars, the satellite position in the in- ertial frame can be resolved. The extended Kalman filter (EKF) algorithm is designed to incorporate the range measurements with the satellite dynamics. Simulation verification shows that the proposed algorithm can accu- rately determine the satellite orbit, with the position error less than 100 m. Furthermore, the factors influencing the navigation performance are also discussed.