The low-orbit satellite constellation is an important part of a space-ground integrated network. MEC servers can be deployed to realize on-orbit processing by offloading tasks to satellites. On the other hand, NDN natively provides mobility support for consumers, so integrating NDN into the satellite network can solve the difficult mobility management problems of IP. However, input parameters in current offloading algorithms are default obtained from users, and they rarely consider the existence of inter-satellite links, which are not suitable for NDN scenarios. Therefore, we propose an architecture, studies the task offloading problem in LEO satellites based on NDN and proposes an optimization algorithm. Simulation results show that the algorithm finally converges and has better performance than the other two algorithms.