Ecological protection of traditional village landscape based on ecological function and process influence is one of the most important methods to improve the landscape benefit and stability. The distance between landscape and landscape influences the gravitational field of landscape protection, and it is similar to the law of universal gravitational field in logic connection. Selecting a coastal area for the study object, gravity models were used to analyze the service function of the cold area landscape ecosystem in 2014, and study the ecological protection optimization of the traditional village landscape. The results showed that the spatial heterogeneity of landscape ecological function intensity in cold region was significant, which affected the landscape ecological process and function of regional cold region, and based on the accumulated cost distance surface, ecological source and consumption path, the landscape elements such as source area, ecological corridor and ecological node are protected to optimize the traditional village landscape ecology. The results provide scientific basis for regional land use and ecological environment protection.