CN-119520392-B - Resource allocation method, resource allocation device and storage medium for newly added channel
Abstract
The application provides a resource allocation method, a resource allocation device and a storage medium of a newly added channel. The method comprises the steps of obtaining basic information of a channel to be newly added, obtaining a target resource allocation form template according to the basic information of the channel to be newly added, obtaining values of all input items in the target resource allocation form template, determining values of all output items in the target resource allocation form template according to the values of all the input items in the target resource allocation form template, and generating a resource allocation form of the channel to be newly added based on the values of all the input items in the target resource allocation form template and the values of all the output items in the target resource allocation form template. The method solves the problem that the communication resource allocation cannot be automatically carried out in the prior art.
Inventors
- YU YONG
- LIU ZHICONG
- GUO ZEHAO
- CHEN JIE
- ZHONG SHAOHENG
- LV HUALIANG
- WANG JIAJUN
- CHEN ZHIGANG
- HE YINSHENG
Assignees
- 广东电网有限责任公司
- 广东电网有限责任公司佛山供电局
Dates
- Publication Date
- 20260512
- Application Date
- 20241105
Claims (8)
- 1. The resource allocation method of the newly added channel is characterized by comprising the following steps: Acquiring basic information of a channel to be newly added, wherein the basic information at least comprises a service type and a resource type, the service type at least comprises an OCS and protection, and the resource type at least comprises 2M and a chain light E1; acquiring a target resource allocation form template according to the basic information of the channel to be newly added, wherein the target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be newly added, one type of the basic information corresponds to one type of the resource allocation form template, the resource allocation form template is composed of a plurality of input items with empty values and a plurality of output items with empty values, the plurality of input items at least comprise names of starting points and stations, names of end points and network types, and the plurality of output items at least comprise numbers of ports of the starting points and stations, numbers of ports of the end points and numbers of main routes; Acquiring the value of each input item in the target resource allocation form template; determining the value of each output item in the target resource allocation form template according to the values of a plurality of input items in the target resource allocation form template; Generating a resource allocation form of the channel to be newly added based on the values of a plurality of input items in the target resource allocation form template and the values of a plurality of output items in the target resource allocation form template, The method comprises the steps of obtaining a target resource allocation form template according to basic information of a channel to be added, determining attribute information of the target resource allocation form template according to the basic information of the channel to be added and a first preset mapping relation, wherein the attribute information at least comprises any one of a name and a storage path, the first preset mapping relation is a mapping relation between the basic information and the attribute information, the attribute information of the target resource allocation form template is the attribute information corresponding to the basic information of the channel to be added in the first preset mapping relation, and obtaining the target resource allocation form template from a database according to the attribute information of the target resource allocation form template.
- 2. The method of claim 1, wherein determining the value of each of the output terms in the target resource allocation form template from the values of a plurality of the input terms in the target resource allocation form template comprises: Determining multiple groups of target input items according to the output items in the target resource allocation form templates and a second preset mapping relation, wherein one output item in the target resource allocation form templates corresponds to one group of target input items, the second preset mapping relation is a mapping relation between the output items in the target resource allocation form templates and the input items in the target resource allocation form templates, and one group of target input items corresponds to one group of input items in the target resource allocation form templates in the second preset mapping relation; And determining the value of the corresponding output item in the target resource allocation form template according to the value of each group of target input items.
- 3. The method of claim 2, wherein in determining the value of the corresponding output term in the target resource allocation form template from the values of each set of the target input terms, the method further comprises: Obtaining, from a database, a set of idle values of the output item corresponding to the set of values of the target input item according to the set of values of the target input item, wherein the idle value of the output item is a value of a number of a port of the start site that is unoccupied when the output item is a number of a port of the end site, the idle value of the output item is a value of a number of a port of the end site that is unoccupied when the output item is a number of a port of the end site, and the idle value of the output item is a value of a number of the main route that is unoccupied when the output item is a number of the main route; And determining any one of a set of idle values of the output items corresponding to the values of the set of target input items as the value of the corresponding output item in the target resource allocation form template.
- 4. The method of claim 2, wherein the plurality of entries further comprises a first target model, a second target model, and a third target model, the first target model being a model of a port of the origin site as requested by a user, the second target model being a model of a port of the destination site as requested by a user, the third target model being a model of the active route as requested by a user, and wherein in determining the value of the corresponding output entry in the target resource allocation form template based on the values of the respective sets of target entries, the method further comprises: Obtaining, from a database, a set of free values of the output item corresponding to the set of values of the target input item according to the set of values of the target input item, where the free value of the output item is the value of the number of the port of the start site that is unoccupied by the first target model, where the free value of the output item is the value of the number of the port of the end site that is unoccupied by the second target model, and where the output item is the number of the main route, where the free value of the output item is the value of the number of the port of the main route that is unoccupied by the third target model; And determining any one of a set of idle values of the output items corresponding to the values of the set of target input items as the value of the corresponding output item in the target resource allocation form template.
- 5. The method of claim 1, wherein the plurality of entries further comprises a project name, a channel name, and a service form storage path, the service form being a form to be filled in for a newly added channel.
- 6. A resource allocation device for a newly added channel, the device comprising: The first acquisition unit is used for acquiring basic information of a channel to be newly added, wherein the basic information at least comprises a service type and a resource type, the service type at least comprises OCS and protection, and the resource type at least comprises 2M and chain light E1; The second obtaining unit is configured to obtain a target resource allocation form template according to the basic information of the channel to be newly added, where the target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be newly added, one type of the basic information corresponds to one type of the resource allocation form template, and the resource allocation form template is composed of a plurality of input items with null values and a plurality of output items with null values, where the plurality of input items at least include names of start sites, names of end sites and network types, and the plurality of output items at least include numbers of ports of the start sites, numbers of ports of the end sites and numbers of main routes; A third obtaining unit, configured to obtain values of the input items in the target resource allocation form template; A first determining unit, configured to determine values of the output items in the target resource allocation form template according to values of a plurality of the input items in the target resource allocation form template; a generating unit, configured to generate a resource allocation form of the channel to be newly added based on values of a plurality of input items in the target resource allocation form template and values of a plurality of output items in the target resource allocation form template, The second obtaining unit comprises a first determining module and an obtaining module, wherein the first determining module is used for determining attribute information of the target resource allocation form template according to the basic information of the channel to be newly added and a first preset mapping relation, the attribute information at least comprises any one of a name and a storage path, the first preset mapping relation is a mapping relation between the basic information and the attribute information, the attribute information of the target resource allocation form template is the attribute information corresponding to the basic information of the channel to be newly added in the first preset mapping relation, and the obtaining module is used for obtaining the target resource allocation form template from a database according to the attribute information of the target resource allocation form template.
- 7. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the resource allocation method of the channel according to any one of claims 1 to 5.
- 8. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the resource allocation method of the channel according to any of claims 1 to 5.
Description
Resource allocation method, resource allocation device and storage medium for newly added channel Technical Field The present invention relates to the field of communications technologies, and in particular, to a method for allocating resources of a newly added channel, an apparatus for allocating resources of a newly added channel, a computer readable storage medium, and a computer program product. Background At present, communication channels are newly added, communication resource allocation is needed by manpower, and different communication resources are needed to be allocated due to the fact that different communication channels are newly added, so that the workload is large, the efficiency is low, errors are easy to occur, and customer dissatisfaction is easy to cause under the condition that the number of the newly added communication channels is increased. Currently, there is no solution to the above problems. Disclosure of Invention The application aims to provide a resource allocation method of a newly added channel, a resource allocation device of the newly added channel, a computer readable storage medium and a computer program product, so as to at least solve the problem that communication resource allocation cannot be automatically performed in the prior art. In order to achieve the above object, according to one aspect of the present application, a resource allocation method for a newly added channel is provided, where the method includes obtaining basic information of a channel to be newly added, where the basic information includes at least a service type and a resource type, where the service type includes at least an OCS and a protection, where the resource type includes at least 2M and a chain light E1, obtaining a target resource allocation form template according to the basic information of the channel to be newly added, where the target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be newly added, where one of the basic information corresponds to one of the resource allocation form templates, where the resource allocation form template includes at least a name of a start site, a name of an end site, and a network type, where the plurality of output items includes at least a number of ports of the start site, a number of ports of an end site, and a number of a main route, where the target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be newly added, where one of the basic information corresponds to one of the resource allocation form templates, and a plurality of input items with a value being empty, and a plurality of output items with a value being empty, where the plurality of input items of the resource allocation form template includes at least a name of the start site, a name of the end site, and a name of the end site, and a network type. Optionally, acquiring a target resource allocation form template according to the basic information of the channel to be newly added, wherein the method comprises the steps of determining attribute information of the target resource allocation form template according to the basic information of the channel to be newly added and a first preset mapping relation, wherein the attribute information at least comprises any one of a name and a storage path, the first preset mapping relation is a mapping relation between the basic information and the attribute information, the attribute information of the target resource allocation form template is the attribute information corresponding to the basic information of the channel to be newly added in the first preset mapping relation, and acquiring the target resource allocation form template from a database according to the attribute information of the target resource allocation form template. Optionally, determining the value of each output item in the target resource allocation form template according to the values of a plurality of input items in the target resource allocation form template comprises determining multiple groups of target input items according to each output item in the target resource allocation form template and a second preset mapping relation, wherein one output item in the target resource allocation form template corresponds to one group of target input items, the second preset mapping relation is a mapping relation between the output items in the target resource allocation form template and the input items in the target resource allocation form template, one group of target input items corresponds to one input item in the target resource allocation form template in the second preset mapping relation, and determining the value of the corresponding output item in the target resource allocation form template according to the value of each group of target input items. Optionally, in the process of determining the value