Green network is a hotspot in network research recent years,virtual network embedding(VNE)algorithm which focuses on saving energy,becomes very important in resource allocation in the network virtualization.A green VNE algorithm which applies swarm particle optimization(GVNE-PSO)was proposed,the evolution behaviors and parameters of each particle was redefined,and the number of nodes and links that could be switched off as the fitness function were considered,the optimum solution of green VNE in a low time complexity was achieved.The results show that compared to the exiting algorithm,it greatly reduced the time complexity offline,when online,it also raised the rate of virtual network acceptance,and the same with nodes and links that can be switched off,what's more,the performance period are shorter.