The application discloses a kind of photoelectricity collaborative
resource allocation method and device based on spectrum state
perception, after the method receives dynamic service request,
IP layer service traffic is converted into
optical layer frequency slot;K-SP
algorithm is filtered K alternative paths, the idle frequency slot proportion of each path link, concentration and fragment matching degree are calculated, and then the spectrum efficiency
adaptation degree is obtained, the path corresponding to the maximum value is selected as working path;From the remaining path, the alternative path that meets the reservation
bandwidth requirement is filtered, and the optimal protection path is selected after calculating the
failure rate;When working path meets spectrum constraint, resource is distributed, and when fault, it is switched to protection path and is connected transmission.The application optimizes path selection by spectrum state accurate
perception, effectively reduces spectrum fragment, improves spectrum utilization, reduces service blocking rate, enhances network reliability and dynamic
adaptation ability.