Network coding (NC) is a promising technology that can improve available bandwidth and packet throughput in wireless sensor networks (WSNs). Sliding window is an improved technology of NC, which is a supplement of TCP/IP technology and can improve data throughput and network lifetime on WSNs. This paper proposes a network coding-based maximum lifetime algorithm for sliding window in WSNs (NC-MLSW) which improves the throughput and network lifetime in WSN. The packets on the source node are sent on the WSNs. The intermediate node encodes the received original packet and forwards the newly encoded packet to the next node. Finally, the destination node decodes the received encoded data packet and recovers the original packet. The performance of the NC-MLSW algorithm is studied using NS2 simulation software and the network packet throughput, network lifetime and data packet loss rate were evaluated. The simulations experiment results show that the NC-MLSW algorithm can obviously improve the network packet throughput and network lifetime. He is currently a professor at the school of information and engineering in the Hubei University of Economics, Wuhan, China. His research interests include wireless communication, performance analysis and modeling. He has published over 60 research papers.Ying Song received her PhD degree in photogrammetry and remote sensing in 2011 and a master degree of geographical information system in 2004 from the . Her research interests include algorithm, wireless communication, performance analysis, and network model. She has published over 20 research papers.