In response to the problems of uneven resource allocation and high resource allocation costs in virtual network slicing,a mathematical model of differentiated resource allocation for virtual net-work slicing,based on trust perception,is constructed by introducing trust perception security con-straints and combining critical communication constraints for differentiated resource allocation business. The objective function is to determine the minimum cost of leasing all business virtual network slices, and this is used to construct a trust perception-based mathematical model for differentiated resource allo-cation in virtual network slicing.The subgradient algorithm of convex optimization theory is used to solve the construction model,and the final virtual network slice differentiated resource allocation result is obtained.The experimental results show that the virtual network request receiving rate and the physical network mapping income obtained by the mathematical model are high,and meet the total cost target of slice lease.It is proved that the mathematical model can realize the differentiated resource allocation of virtual network slices.