A shallow water tomography scheme based on the modal wave number inversion technique is considered in this paper. The scheme is based on the assumption that modal wave number for trapped modes can be measured in a suitable way. The tomographic inversion is accomplished in two steps: firstly, the bottom parameters are inverted by using the bottom reflection phase shift with the known sound speed profile; secondly, the variation of sound speed profile at different time is inverted provided the bottom parameters are known. A numerical simulation shows that the proposed scheme works well, and the sensitivity analysis of sound speed profile inversion is performed for shallow water environmental parameters: sound speed, density and attenuation coefficient of the bottom.