With the development of communication services, satellite network services have developed from the traditional single type of services to multiple types of services. Different types of services need to meet different Quality of Service (QoS) requirements. The traditional satellite network algorithm does not distinguish the services, so the high QoS service in the network cannot get timely service. However, the architecture of Software Defined Satellite Networking (SDSN) can solve this problem well. The controller in the SDSN has a global view and can obtain the node and link information of LEO satellites. Therefore, the SDSN can more effectively meet the demand of data service for QoS. In this paper, a satellite network architecture based on Software Defined Networking (SDN) is firstly established. Then an adaptive routing algorithm that can meet various QoS requirements is proposed. The final simulation results show that compared with SDRA algorithm and Dijkstra algorithm, this optimization algorithm has better performance in QoS satisfaction rate and bandwidth utilization.