Resource allocation method, resource allocation device and storage medium for adding channel

By automatically acquiring and determining the input and output values ​​of the resource allocation form template, the problem of low efficiency in manual resource allocation in the existing technology is solved, realizing automated communication resource allocation and improving accuracy and efficiency.

CN119520392BActive Publication Date: 2026-05-12GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG POWER GRID CO LTD
Filing Date
2024-11-05
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In existing technologies, adding new communication channels requires manual resource allocation, which results in a large workload, low efficiency, and a high risk of errors, making it impossible to automatically allocate communication resources.

Method used

A method for allocating resources for a new channel is provided. By obtaining the basic information of the channel to be added, the target resource allocation form template is automatically obtained, and the output values ​​are determined according to the values ​​of the input items, and finally a resource allocation form is generated to realize the automatic allocation of communication resources.

Benefits of technology

实现了自动化的通信资源调配,提高了效率,减少了人工错误,提升了资源调配的准确性和效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520392B_ABST
    Figure CN119520392B_ABST
Patent Text Reader

Abstract

The application provides a resource allocation method for adding a channel, a resource allocation device and a storage medium. The method comprises the following steps: acquiring basic information of a channel to be added; acquiring a target resource allocation form template according to the basic information of the channel to be added; acquiring values of each input item in the target resource allocation form template; determining values of each output item in the target resource allocation form template according to the values of the multiple input items in the target resource allocation form template; and generating a resource allocation form of the channel to be added based on the values of the multiple input items in the target resource allocation form template and the values of the multiple output items in the target resource allocation form template. The method solves the problem that communication resource allocation cannot be automatically performed in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more specifically, to a method for allocating resources for a new channel, a device for allocating resources for a new channel, a computer-readable storage medium, and a computer program product. Background Technology

[0002] Currently, adding new communication channels requires manual allocation of communication resources. Since different communication channels require different resource allocations, this process is labor-intensive, inefficient, prone to errors, and can easily lead to customer dissatisfaction when multiple communication channels need to be added.

[0003] Currently, there is no solution to the above problems. Summary of the Invention

[0004] The main objective of this application is to provide a method for allocating resources for new channels, a device for allocating resources for new channels, a computer-readable storage medium, and a computer program product, so as to at least solve the problem that communication resources cannot be automatically allocated in the prior art.

[0005] To achieve the above objectives, according to one aspect of this application, a method for resource allocation of a newly added channel is provided. The method includes: obtaining basic information of the channel to be added, the basic information including at least a service type and a resource type, the service type including at least OCS and protection, and the resource type including at least 2M and Link-Optical E1; obtaining a target resource allocation form template based on the basic information of the channel to be added, the target resource allocation form template being a resource allocation form template corresponding to the basic information of the channel to be added, one type of basic information corresponding to one type of resource allocation form template, and the resource allocation form template consisting of multiple input items with empty values ​​and multiple empty values. The form consists of multiple input items, including at least: the name of the originating station, the name of the destination station, and the network type; and at least: the port number of the originating station, the port number of the destination station, and the primary route number. The form involves: obtaining the values ​​of each input item in the target resource allocation form template; determining the values ​​of each output item in the target resource allocation form template based on the values ​​of the input items; and generating the resource allocation form for the new channel based on the values ​​of the input items and the output items in the target resource allocation form template.

[0006] Optionally, obtaining a target resource allocation form template based on the basic information of the channel to be added includes: determining the attribute information of the target resource allocation form template based on the basic information of the channel to be added and a first predetermined mapping relationship, wherein the attribute information includes at least one of the following: name, storage path, the first predetermined mapping relationship being a mapping relationship between the basic information and the attribute information, and the attribute information of the target resource allocation form template being the attribute information corresponding to the basic information of the channel to be added in the first predetermined mapping relationship; and obtaining the target resource allocation form template from the database based on the attribute information of the target resource allocation form template.

[0007] Optionally, determining the value of each output item in the target resource allocation form template based on the values ​​of multiple input items in the target resource allocation form template includes: determining multiple sets of target input items based on each output item in the target resource allocation form template and a second predetermined mapping relationship, wherein one output item in the target resource allocation form template corresponds to one set of target input items, the second predetermined mapping relationship is a mapping relationship between the output items and the input items in the target resource allocation form template, and one set of target input items is a set of input items corresponding to one output item in the target resource allocation form template in the second predetermined mapping relationship; and determining the value of the corresponding output item in the target resource allocation form template based on the values ​​of each set of target input items.

[0008] Optionally, in the process of determining the value of the corresponding output item in the target resource allocation form template based on the values ​​of each set of target input items, the method further includes: obtaining a set of idle values ​​of the output item corresponding to the values ​​of this set of target input items from the database; when the output item is the port number of the starting station, the idle value of the output item is the value of the port number of the starting station that is not occupied; when the output item is the port number of the ending station, the idle value of the output item is the value of the port number of the ending station that is not occupied; when the output item is the number of the primary route, the idle value of the output item is the value of the number of the primary route that is not occupied; and determining any one of the idle values ​​of the set of idle values ​​of the output item corresponding to this set of target input items as the value of the corresponding output item in the target resource allocation form template.

[0009] Optionally, the plurality of input items further includes: a first target model, a second target model, and a third target model, wherein the first target model is the model of the port of the starting site requested by the user, the second target model is the model of the port of the destination site requested by the user, and the third target model is the model of the primary router requested by the user. In the process of determining the value of the corresponding output item in the target resource allocation form template based on the values ​​of each group of target input items, the method further includes: based on the values ​​of a group of target input items, retrieving from the database a set of idle values ​​for the output item corresponding to the values ​​of this group of target input items, wherein the output item is the port number of the starting site. In the case where the output item's idle value is the port number of the unoccupied starting station of the first target model, and in the case where the output item is the port number of the ending station, the idle value of the output item is the port number of the unoccupied ending station of the second target model, and in the case where the output item is the primary route number, the idle value of the output item is the port number of the unoccupied primary route of the third target model; determine any one of the idle values ​​in a set of output items corresponding to this set of target input item values ​​as the value of the corresponding output item in the target resource allocation form template.

[0010] Optionally, the multiple input items may also include: the name of the project, the name of the channel, and the storage path of the business form, wherein the business form is the form that needs to be filled out when adding a new channel.

[0011] Optionally, generating a resource allocation form for the new channel based on the values ​​of multiple input items and multiple output items in the target resource allocation form template includes: filling the target resource allocation form template with the values ​​of multiple input items and multiple output items to obtain the resource allocation form for the new channel.

[0012] According to another aspect of this application, a resource allocation device for adding a new channel is provided. The device includes: a first acquisition unit, configured to acquire basic information of the channel to be added, the basic information including at least a service type and a resource type, the service type including at least OCS and protection, and the resource type including at least 2M and Link-Optical E1; and a second acquisition unit, configured to acquire a target resource allocation form template based on the basic information of the channel to be added, the target resource allocation form template being a resource allocation form template corresponding to the basic information of the channel to be added, one type of basic information corresponding to one type of resource allocation form template, and the resource allocation form template consisting of multiple input items with empty values ​​and multiple output items with empty values. The multiple input items include at least: the name of the originating station, the name of the destination station, and the network type; the multiple output items include at least: the port number of the originating station, the port number of the destination station, and the primary route number; a third acquisition unit is used to acquire the values ​​of each of the input items in the target resource allocation form template; a first determination unit is used to determine the values ​​of each of the output items in the target resource allocation form template based on the values ​​of the multiple input items in the target resource allocation form template; and a generation unit is used to generate the resource allocation form for the new channel based on the values ​​of the multiple input items and the values ​​of the multiple output items in the target resource allocation form template.

[0013] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the channel resource allocation methods described above.

[0014] According to another aspect of this application, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement any of the aforementioned channel resource allocation methods.

[0015] By applying the technical solution of this application, the user needs to fill in the basic information of the channel to be added. Then, the system automatically retrieves the corresponding resource allocation form template based on the basic information of the channel to be added. Next, the user needs to fill in the values ​​of multiple input items in the corresponding resource allocation form template. Then, the system automatically determines the values ​​of each output item in the corresponding resource allocation form template based on the values ​​of the multiple input items in the target resource allocation form template. Finally, based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, a resource allocation form for the channel to be added is generated, thereby achieving automatic allocation of communication resources. This solves the problem of the inability to automatically allocate communication resources in existing technologies. Attached Figure Description

[0016] Figure 1 A hardware structure block diagram of a mobile terminal for performing a resource allocation method for adding a new channel, according to an embodiment of this application, is shown.

[0017] Figure 2 A flowchart illustrating a resource allocation method for adding a new channel according to an embodiment of this application is shown.

[0018] Figure 3 A structural block diagram of a resource allocation device for adding a new channel is shown according to an embodiment of this application.

[0019] The above figures include the following reference numerals:

[0020] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0021] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] As described in the background section, existing technologies cannot automatically allocate communication resources. To address the problem of the inability to automatically allocate communication resources in existing technologies, embodiments of this application provide a method for allocating resources for a new channel, a device for allocating resources for a new channel, a computer-readable storage medium, and a computer program product.

[0025] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0026] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a resource allocation method for adding a new channel, according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0027] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device information display method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0028] This embodiment provides a resource allocation method for a new channel running on a mobile terminal, computer terminal or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] Figure 2 This is a flowchart of a resource allocation method for a newly added channel according to an embodiment of this application. For example... Figure 2 As shown, the method includes the following steps:

[0030] Step S201: Obtain the basic information of the channel to be added;

[0031] The aforementioned basic information includes at least business type and resource type. The aforementioned business type includes at least OCS and protection. The aforementioned resource type includes at least 2M and ChainLight E1.

[0032] Specifically, OCS is 2M automated remote service, protection is protection service, 2M refers to 2M channel, and chain optical E1 refers to the service of carrying chain protection with E1 (2M).

[0033] Step S202: Based on the basic information of the channel to be added, obtain the target resource allocation form template;

[0034] The aforementioned target resource allocation form template is the resource allocation form template corresponding to the aforementioned basic information of the channel to be added. One type of the aforementioned basic information corresponds to one type of the aforementioned resource allocation form template. The aforementioned resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The aforementioned input items include at least: the name of the starting station, the name of the ending station, and the network type. The aforementioned output items include at least: the port number of the aforementioned starting station, the port number of the aforementioned ending station, and the number of the primary route.

[0035] In one alternative approach, step S202 above can be implemented as follows:

[0036] Based on the basic information of the newly added channel and the first predetermined mapping relationship, the attribute information of the target resource allocation form template is determined. The attribute information includes at least one of the following: name and storage path. The first predetermined mapping relationship is the mapping relationship 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 newly added channel in the first predetermined mapping relationship.

[0037] Based on the aforementioned attribute information of the target resource allocation form template, the target resource allocation form template is retrieved from the database.

[0038] Specifically, firstly, the resource allocation form templates corresponding to each type of basic information are stored in the database in advance. Then, based on the basic information of the channel to be added, the attribute information of the resource allocation form template corresponding to the basic information of the channel to be added is retrieved from the first predetermined mapping relationship. After that, the attribute information of the resource allocation form template corresponding to the basic information of the channel to be added is used to retrieve the resource allocation form template corresponding to the basic information of the channel to be added from the database.

[0039] Step S203: Obtain the values ​​of each of the above input items in the target resource allocation form template;

[0040] Specifically, the target resource allocation form template contains multiple input items whose values ​​need to be filled in by the user. In some implementations, the user needs to fill in the name of the originating station, the name of the destination station, and the network type. The network type can be a regional ASON network, etc. ASON is a transmission network technology with self-healing function. A regional ASON network refers to the ASON equipment network in this region.

[0041] Step S204: Determine the value of each of the above-mentioned output items in the above-mentioned target resource allocation form template based on the values ​​of the multiple input items in the above-mentioned target resource allocation form template;

[0042] In one alternative approach, step S204 above can be implemented as follows:

[0043] Step S2041: Based on each of the above-mentioned output items in the above-mentioned target resource allocation form template and the second predetermined mapping relationship, determine multiple sets of target input items. One of the above-mentioned output items in the above-mentioned target resource allocation form template corresponds to one set of the above-mentioned target input items. The second predetermined mapping relationship is the mapping relationship between the above-mentioned output items and the above-mentioned input items in the above-mentioned target resource allocation form template. One set of the above-mentioned target input items is a set of the above-mentioned input items corresponding to one of the above-mentioned output items in the above-mentioned target resource allocation form template in the second predetermined mapping relationship.

[0044] Step S2044: Based on the values ​​of the target input items in each group, determine the values ​​of the corresponding output items in the target resource allocation form template.

[0045] Specifically, in some implementations, if the output item is the primary route number, the corresponding set of input items is the name of the origin station, the name of the destination station, and the network type. That is, the value of the primary route number needs to be determined based on the value of the origin station name, the value of the destination station name, and the value of the network type. In some implementations, if the output item is the port number of the origin station, the corresponding set of input items is the name of the origin station and the network type. That is, the value of the port number of the origin station needs to be determined based on the value of the origin station name and the value of the network type. In some implementations, if the output item is the port number of the destination station, the corresponding set of input items is the name of the destination station and the network type. That is, the value of the port number of the destination station needs to be determined based on the value of the destination station name and the value of the network type.

[0046] In an alternative embodiment, during step S2044, the method includes:

[0047] Based on the values ​​of the aforementioned target input items, a set of idle values ​​for the output items corresponding to these target input items is obtained from the database. When the output item is the port number of the starting station, the idle value of the output item is the port number of the starting station that is not occupied. When the output item is the port number of the ending station, the idle value of the output item is the port number of the ending station that is not occupied. When the output item is the number of the primary route, the idle value of the output item is the number of the primary route that is not occupied.

[0048] Determine any one of the above idle values ​​from the set of above output items corresponding to the values ​​of the above target input items. The idle value is the value of the corresponding above output item in the above target resource allocation form template.

[0049] Specifically, if the output is the port number of the originating station, the corresponding set of input items is the name of the originating station and the network type. That is, it is necessary to determine the value of the port number of the unused originating station based on the value of the name of the originating station and the value of the network type, and select the value of any unused port number of the originating station as the output value. If the output is the port number of the destination station, the corresponding set of input items is the name of the destination station and the network type. That is, it is necessary to determine the value of the port number of the unused destination station based on the value of the name of the destination station and the value of the network type, and select the value of any unused port number of the destination station as the output value. If the output is the number of the primary router, the corresponding set of input items is the name of the originating station, the name of the destination station, and the network type. That is, it is necessary to determine the value of the number of the unused primary router based on the value of the name of the originating station, the name of the destination station, and the network type, and select the value of any unused primary router as the output value.

[0050] In an optional scheme, the aforementioned input items further include: a first target model, a second target model, and a third target model, wherein the first target model is the model of the port of the originating station requested by the user, the second target model is the model of the port of the destination station requested by the user, and the third target model is the model of the primary router requested by the user. During step S2044, the method further includes:

[0051] Based on the values ​​of the aforementioned target input items, a set of idle values ​​for the output items corresponding to the values ​​of this set of target input items are obtained from the database. When the output item is the port number of the starting station, the idle value of the output item is the port number of the unoccupied starting station of the first target model. When the output item is the port number of the ending station, the idle value of the output item is the port number of the unoccupied ending station of the second target model. When the output item is the number of the primary route, the idle value of the output item is the number of the unoccupied primary route of the third target model.

[0052] Determine any one of the above idle values ​​from the set of above output items corresponding to the values ​​of the above target input items. The idle value is the value of the corresponding above output item in the above target resource allocation form template.

[0053] Specifically, if the output is the port number of the starting station, the corresponding set of input items is the name of the starting station, network type, and first target model (the model of the port of the starting station requested by the user). That is, the value of the unused port number of the starting station needs to be determined based on the value of the starting station name, network type, and first target model, and the value of the unused port number of any first target model is selected. If the output is the port number of the destination station, the corresponding set of input items is the name of the destination station, network type, and second target model (the model of the port of the destination station requested by the user). That is, the value of the port number of the starting station needs to be determined based on the value of the starting station name, network type, and first target model, and the value of the unused port number of any first target model is selected. The value of the first target model and the value of the second target model are used to determine the port number of the unoccupied destination site. Select any port number of the unoccupied destination site of the second target model. If the output item is the number of the primary router, the corresponding set of input items is the name of the origin site, the name of the destination site, the network type, and the third target model (the port model of the primary router requested by the user). That is, it is necessary to determine the number of the unoccupied primary router of the third target model based on the value of the name of the origin site, the name of the destination site, the network type, and the value of the third target model. Select any port number of the unoccupied primary router of the third target model as the output item value.

[0054] In one alternative approach, the aforementioned input items also include: the name of the project, the name of the channel, and the storage path of the business form, which is the form that needs to be filled out when adding a new channel.

[0055] Step S205: Based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, generate the resource allocation form for the new channel.

[0056] In one alternative approach, step S205 can be implemented as follows:

[0057] Fill the values ​​of the above-mentioned input items and the values ​​of the above-mentioned output items in the above-mentioned target resource allocation form template into the above-mentioned target resource allocation form template to obtain the above-mentioned resource allocation form for the channel to be added.

[0058] Through the above embodiments, this application requires the user to fill in the basic information of the channel to be added. Then, based on the basic information of the channel to be added, the corresponding resource allocation form template is automatically retrieved. Next, the user needs to fill in the values ​​of multiple input items in the corresponding resource allocation form template. Then, based on the values ​​of the multiple input items in the corresponding resource allocation form template, the values ​​of each output item in the corresponding resource allocation form template are automatically determined. Finally, based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, a resource allocation form for the channel to be added is generated, thereby achieving automatic allocation of communication resources. This solves the problem that existing technologies cannot automatically allocate communication resources.

[0059] In addition, finding the optimal path involves the following steps:

[0060] Step 1: Define the objective function;

[0061] First, three objective functions need to be defined to evaluate the safety, redundancy, and length of the path.

[0062] Security: The security of the entire path is obtained by multiplying the security of each segment in the path.

[0063] Redundancy: The redundancy of the entire path is obtained by multiplying the redundancy of each segment in the path.

[0064] Length: The length of the entire path is obtained by adding the lengths of each segment in the path.

[0065] Step 2: Generate candidate paths;

[0066] Next, we need to generate all possible paths from the starting point to the ending point. These paths can be generated using either breadth-first search (BFS) or depth-first search (DFS).

[0067] Step 3: Calculate the multi-objective value for each path;

[0068] For each candidate path, calculate its safety, redundancy, and length.

[0069] Step 4: Locate the Pareto Front;

[0070] Find the Pareto front from all candidate paths. The paths in the Pareto front are those that cannot improve on one objective without regressing on others.

[0071] For each path, check if there exists another path that is no worse than it in all objectives and better than it in at least one objective; if such a path exists, the current path is not a Pareto optimal path, otherwise it is a Pareto optimal path.

[0072] Step 5: Select the final path;

[0073] Choose a path from the Pareto frontier based on specific needs, prioritizing requirements such as security, redundancy, or path length.

[0074] Example explanation:

[0075] Suppose we have a communication network diagram as follows:

[0076] The path from node A to B has a security of 0.9, a redundancy of 0.8, and a length of 1.

[0077] The path from node A to C has a safety rating of 0.7, a redundancy rating of 0.6, and a length of 2.

[0078] The path safety from node B to D is 0.85, the redundancy is 0.75, and the length is 1.5.

[0079] The path from node C to D has a safety rating of 0.8, a redundancy rating of 0.7, and a length of 1.

[0080] We need to find the optimal path from node A to node D.

[0081] Steps 1 and 2: First, generate all possible paths:

[0082] Path 1: A->B->D; Path 2: A->C->D.

[0083] Step 3: Calculate the multi-objective value for each path:

[0084] The safety of path 1 (A->B->D) = 0.9 * 0.85 = 0.765; the redundancy of path 1 = 0.8 * 0.75 = 0.6; the length of path 1 = 1 + 1.5 = 2.5;

[0085] The safety of path 2 (A->C->D) = 0.7 * 0.8 = 0.56; the redundancy of path 2 = 0.6 * 0.7 = 0.42; the length of path 2 = 2 + 1 = 3;

[0086] Step 4: Check if each path is on the Pareto front;

[0087] Path 1 (A->B->D) is superior to Path 2 in terms of both safety and redundancy, therefore Path 1 is on the Pareto front.

[0088] Path 2 (A->C->D) is not better than path 1 for any objective, therefore path 2 is not on the Pareto front.

[0089] Step 5: Choose a path from the Pareto front. Assuming we prioritize path length, we choose path 1 (A->B->D).

[0090] Through the above steps, we found the optimal path from node A to node D, namely path 1 (A->B->D), which achieves a balance in terms of security, redundancy, and length.

[0091] Pareto optimization is a multi-objective optimization method designed to handle multiple conflicting objectives. Using the Pareto front, the algorithm seeks the optimal solution when it's impossible to improve one objective without affecting another. This is particularly important in communication mode selection problems, especially under resource constraints, where a reasonable balance must be found between communication efficiency, resource utilization, and routing security.

[0092] The Pareto optimization-based algorithm selection design includes:

[0093] Introduction of Pareto optimization:

[0094] In Pareto optimization, we seek to find a set of solutions that are not inferior to other solutions on all objective functions; this is known as the "non-dominated solution set" (Pareto front). Specifically, for any given solution x... i If another solution x exists j The following conditions must be met:

[0095] 1. Solve for x in at least one objective function. j Strictly superior to solving x i :f k (x j )<f k (x i k∈{1, 2, ..., M};

[0096] 2. Solve for x in other objective functions. j At least not inferior to solving x i :f k (x j )≤f k (x i k∈{1, 2, ..., M};

[0097] If the solution is x j If the above two conditions are satisfied, then the solution x is called a solution. j Dominant solution x iOtherwise, solve x i It belongs to the Pareto frontier.

[0098] Objective function design:

[0099] 1. Communication efficiency objective (minimize path delay): f1(x) = T total (x), where T total (x) represents the delay from the path.

[0100] 2. Resource utilization target (maximizing resource utilization efficiency): Here, U(x) represents the utilization rate of communication resources, and the goal is to minimize unused resources.

[0101] 3. Routing security objective (maximizing path redundancy): f3(x) = -R(x), where R(x) represents path redundancy. The objective is to minimize path redundancy by using a negative sign.

[0102] Among these objective functions, communication efficiency needs to be minimized, while resource utilization and routing security need to be maximized. To simplify the calculation, these objectives can be standardized so that they can be compared uniformly.

[0103] The Pareto front is calculated to find the set of solutions that cannot be dominated by other solutions under multiple objectives. The following are the steps for calculating the Pareto front:

[0104] 1. Candidate Solution Generation: Generate a set of candidate solutions X = {x1, x2, ..., x...} from different selection methods. n};

[0105] 2. Dominance Relationship Calculation: For each pair of candidate solutions, calculate their objective function value f1(x). i f2(x) i ), f3(x i ), and determine their dominance relationship.

[0106] 3. Pareto Front Extraction: Construct a Pareto front X from all non-dominated solutions. * ;

[0107] Formulaically, the Pareto front can be expressed as:

[0108]

[0109] Where, f(x) j )≤f(x i ) represents the solution x j Non-inferior to solution x on all objectives i .

[0110] The specific steps for calculating the Pareto front in this embodiment include:

[0111] Step 1: Define the domination relationship. First, we need to clarify what domination is. The condition for solution A to dominate solution B is:

[0112] 1. Solution A performs no worse than solution B on all objectives (i.e., A is superior to or equal to B on every objective). 2. Solution A performs better than solution B on at least one objective. In short, if solution A is better than solution B in all aspects or at least in one aspect, we say that A dominates B.

[0113] Step 2: Initialize the solution set. Suppose we have a solution set, where each solution represents a candidate path and each solution corresponds to a multi-objective function value (e.g., safety, redundancy, length).

[0114] Step 3: Compare each pair of solutions. For every two solutions A and B in the solution set, make the following judgment:

[0115] 1. If A dominates B, then B is removed from the solution set (because B is not a Pareto optimal solution).

[0116] 2. If B dominates A, then A is removed from the solution set.

[0117] 3. If neither can control the other, then both should be retained.

[0118] Step 4: Obtain the Pareto front. After the above steps, the remaining solutions in the solution set are the solutions on the Pareto front. These solutions cannot improve on one objective but do not regress on another.

[0119] For example: Suppose there are 3 candidate paths, and the multi-objective values ​​for each path are as follows (higher security is better, higher redundancy is better, shorter path length is better):

[0120] Path 1: Security = 0.8, Redundancy = 0.7, Length = 2.0;

[0121] Path 2: Security = 0.9, Redundancy = 0.6, Length = 1.8;

[0122] Path 3: Security = 0.7, Redundancy = 0.8, Length = 2.5;

[0123] Domination relationship analysis:

[0124] Compared to Path 1, Path 2 is safer than Path 1, less redundant, but longer. Therefore, Path 2 does not dominate Path 1, and Path 1 does not dominate Path 2.

[0125] Compared to Path 3, Path 1 is safer than Path 3, less redundant, but longer. Therefore, Path 1 does not dominate Path 3, and Path 3 does not dominate Path 1.

[0126] Compared to Path 3, Path 2 is safer but less redundant, but longer. Therefore, Path 2 does not dominate Path 3, and Path 3 does not dominate Path 2.

[0127] Since no path dominates another, paths 1, 2, and 3 all belong to the Pareto front. The key to calculating the Pareto front lies in comparing each pair of solutions to determine if a dominance relationship exists. In this way, a set of solutions that exhibit equilibrium under different objectives can be selected; this set of solutions constitutes the Pareto front.

[0128] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0129] This application also provides a resource allocation device for adding a new channel. It should be noted that this resource allocation device for adding a new channel can be used to execute the resource allocation method for adding a new channel provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0130] The resource allocation device for the newly added channel provided in the embodiments of this application will be described below.

[0131] Figure 3 This is a structural block diagram of a resource allocation device for a newly added channel according to an embodiment of this application. Figure 3 As shown, the device includes:

[0132] The first acquisition unit 10 is used to acquire the basic information of the channel to be added;

[0133] The aforementioned basic information includes at least business type and resource type. The aforementioned business type includes at least OCS and protection. The aforementioned resource type includes at least 2M and ChainLight E1.

[0134] Specifically, the above resource types also include: ChainLight E2 and ChainLight E3.

[0135] The second acquisition unit 20 is used to acquire the target resource allocation form template based on the basic information of the channel to be added.

[0136] The aforementioned target resource allocation form template is the resource allocation form template corresponding to the aforementioned basic information of the channel to be added. One type of the aforementioned basic information corresponds to one type of the aforementioned resource allocation form template. The aforementioned resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The aforementioned input items include at least: the name of the starting station, the name of the ending station, and the network type. The aforementioned output items include at least: the port number of the aforementioned starting station, the port number of the aforementioned ending station, and the number of the primary route.

[0137] In one alternative embodiment, the second acquisition unit includes:

[0138] The first determining module is used to determine the attribute information of the target resource allocation form template based on the basic information of the channel to be added and the first predetermined mapping relationship. The attribute information includes at least one of the following: name and storage path. The first predetermined mapping relationship is the mapping relationship 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 predetermined mapping relationship.

[0139] The acquisition module is used to retrieve the target resource allocation form template from the database based on the aforementioned attribute information of the target resource allocation form template.

[0140] Specifically, firstly, the resource allocation form templates corresponding to each type of basic information are stored in the database in advance. Then, based on the basic information of the channel to be added, the attribute information of the resource allocation form template corresponding to the basic information of the channel to be added is retrieved from the first predetermined mapping relationship. After that, the attribute information of the resource allocation form template corresponding to the basic information of the channel to be added is used to retrieve the resource allocation form template corresponding to the basic information of the channel to be added from the database.

[0141] The third acquisition unit 30 is used to acquire the values ​​of each of the above-mentioned input items in the above-mentioned target resource allocation form template;

[0142] Specifically, the target resource allocation form template contains multiple input items whose values ​​need to be filled in by the user. In some implementations, the user needs to fill in the name of the originating station, the name of the destination station, and the network type, which can be a regional ASON network, etc.

[0143] The first determining unit 40 is used to determine the value of each of the output items in the target resource allocation form template based on the values ​​of the multiple input items in the target resource allocation form template.

[0144] In one alternative embodiment, the determining unit includes:

[0145] The second determining module is used to determine multiple sets of target input items based on each of the output items in the target resource allocation form template and the second predetermined mapping relationship. One of the output items in the target resource allocation form template corresponds to one set of target input items. The second predetermined mapping relationship is the mapping relationship between the output items in the target resource allocation form template and the input items in the target resource allocation form template. One set of target input items is a set of input items corresponding to one of the output items in the target resource allocation form template in the second predetermined mapping relationship.

[0146] The third determining module is used to determine the value of the corresponding output item in the target resource allocation form template based on the values ​​of the target input items in each group.

[0147] Specifically, in some implementations, if the output item is the primary route number, the corresponding set of input items is the name of the origin station, the name of the destination station, and the network type. That is, the value of the primary route number needs to be determined based on the value of the origin station name, the value of the destination station name, and the value of the network type. In some implementations, if the output item is the port number of the origin station, the corresponding set of input items is the name of the origin station and the network type. That is, the value of the port number of the origin station needs to be determined based on the value of the origin station name and the value of the network type. In some implementations, if the output item is the port number of the destination station, the corresponding set of input items is the name of the destination station and the network type. That is, the value of the port number of the destination station needs to be determined based on the value of the destination station name and the value of the network type.

[0148] In one alternative embodiment, the above-mentioned apparatus includes:

[0149] The fourth acquisition unit is used to acquire a set of idle values ​​of the output items corresponding to the set of target input items from the database based on the values ​​of the set of target input items. When the output item is the port number of the starting station, the idle value of the output item is the value of the port number of the starting station that is not occupied. When the output item is the port number of the ending station, the idle value of the output item is the value of the port number of the ending station that is not occupied. When the output item is the number of the primary route, the idle value of the output item is the value of the number of the primary route that is not occupied.

[0150] The second determining unit is used to determine that any one of the idle values ​​in a set of idle values ​​of the output item corresponding to the value of the target input item is the value of the corresponding output item in the target resource allocation form template.

[0151] Specifically, if the output is the port number of the originating station, the corresponding set of input items is the name of the originating station and the network type. That is, it is necessary to determine the value of the port number of the unused originating station based on the value of the name of the originating station and the value of the network type, and select the value of any unused port number of the originating station as the output value. If the output is the port number of the destination station, the corresponding set of input items is the name of the destination station and the network type. That is, it is necessary to determine the value of the port number of the unused destination station based on the value of the name of the destination station and the value of the network type, and select the value of any unused port number of the destination station as the output value. If the output is the number of the primary router, the corresponding set of input items is the name of the originating station, the name of the destination station, and the network type. That is, it is necessary to determine the value of the number of the unused primary router based on the value of the name of the originating station, the name of the destination station, and the network type, and select the value of any unused primary router as the output value.

[0152] In an optional embodiment, the aforementioned input items further include: a first target model, a second target model, and a third target model, wherein the first target model is the model of the port of the originating station requested by the user, the second target model is the model of the port of the destination station requested by the user, and the third target model is the model of the primary router requested by the user. The device further includes:

[0153] The fifth acquisition unit is used to acquire, from the database, a set of idle values ​​of the output items corresponding to the values ​​of the set of target input items. When the output item is the port number of the starting station, the idle value of the output item is the port number of the unoccupied starting station of the first target model. When the output item is the port number of the ending station, the idle value of the output item is the port number of the unoccupied ending station of the second target model. When the output item is the number of the primary route, the idle value of the output item is the number of the unoccupied primary route of the third target model.

[0154] The third determining unit is used to determine any one of the idle values ​​in a set of idle values ​​of the output item corresponding to the value of the target input item in the target resource allocation form template.

[0155] Specifically, if the output is the port number of the starting station, the corresponding set of input items is the name of the starting station, network type, and first target model (the model of the port of the starting station requested by the user). That is, the value of the unused port number of the starting station needs to be determined based on the value of the starting station name, network type, and first target model, and the value of the unused port number of any first target model is selected. If the output is the port number of the destination station, the corresponding set of input items is the name of the destination station, network type, and second target model (the model of the port of the destination station requested by the user). That is, the value of the port number of the starting station needs to be determined based on the value of the starting station name, network type, and first target model, and the value of the unused port number of any first target model is selected. The value of the first target model and the value of the second target model are used to determine the port number of the unoccupied destination site. Select any port number of the unoccupied destination site of the second target model. If the output item is the number of the primary router, the corresponding set of input items is the name of the origin site, the name of the destination site, the network type, and the third target model (the port model of the primary router requested by the user). That is, it is necessary to determine the number of the unoccupied primary router of the third target model based on the value of the name of the origin site, the name of the destination site, the network type, and the value of the third target model. Select any port number of the unoccupied primary router of the third target model as the output item value.

[0156] In one alternative approach, the aforementioned input items also include: the name of the project, the name of the channel, and the storage path of the business form, which is the form that needs to be filled out when adding a new channel.

[0157] The generation unit 50 is used to generate the resource allocation form for the new channel based on the values ​​of the input items and the output items in the target resource allocation form template.

[0158] In one alternative approach, the aforementioned generating unit is used for:

[0159] Fill the values ​​of the above-mentioned input items and the values ​​of the above-mentioned output items in the above-mentioned target resource allocation form template into the above-mentioned target resource allocation form template to obtain the above-mentioned resource allocation form for the channel to be added.

[0160] Through the above embodiments, this application requires the user to fill in the basic information of the channel to be added. Then, based on the basic information of the channel to be added, the corresponding resource allocation form template is automatically retrieved. Next, the user needs to fill in the values ​​of multiple input items in the corresponding resource allocation form template. Then, based on the values ​​of the multiple input items in the corresponding resource allocation form template, the values ​​of each output item in the corresponding resource allocation form template are automatically determined. Finally, based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, a resource allocation form for the channel to be added is generated, thereby achieving automatic allocation of communication resources. This solves the problem that existing technologies cannot automatically allocate communication resources.

[0161] The resource allocation device for the newly added channel includes a processor and a memory. All the aforementioned units are stored as program units in the memory, and the processor executes these program units to achieve the corresponding functions. All the aforementioned modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.

[0162] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the problem of automatic communication resource allocation that is not possible in existing technologies.

[0163] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0164] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to execute the resource allocation method for the newly added channel.

[0165] Specifically, the resource allocation methods for the newly added channels include:

[0166] Step S201: Obtain the basic information of the channel to be added;

[0167] The aforementioned basic information includes at least business type and resource type. The aforementioned business type includes at least OCS and protection. The aforementioned resource type includes at least 2M and ChainLight E1.

[0168] Step S202: Based on the basic information of the channel to be added, obtain the target resource allocation form template;

[0169] The aforementioned target resource allocation form template is the resource allocation form template corresponding to the aforementioned basic information of the channel to be added. One type of the aforementioned basic information corresponds to one type of the aforementioned resource allocation form template. The aforementioned resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The aforementioned input items include at least: the name of the starting station, the name of the ending station, and the network type. The aforementioned output items include at least: the port number of the aforementioned starting station, the port number of the aforementioned ending station, and the number of the primary route.

[0170] Step S203: Obtain the values ​​of each of the above input items in the target resource allocation form template;

[0171] Step S204: Determine the value of each of the above-mentioned output items in the above-mentioned target resource allocation form template based on the values ​​of the multiple input items in the above-mentioned target resource allocation form template;

[0172] Step S205: Based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, generate the resource allocation form for the new channel.

[0173] This invention provides a processor for running a program, wherein the program executes the resource allocation method for the newly added channel.

[0174] Specifically, the resource allocation methods for the newly added channels include:

[0175] Step S201: Obtain the basic information of the channel to be added;

[0176] The aforementioned basic information includes at least business type and resource type. The aforementioned business type includes at least OCS and protection. The aforementioned resource type includes at least 2M and ChainLight E1.

[0177] Step S202: Based on the basic information of the channel to be added, obtain the target resource allocation form template;

[0178] The aforementioned target resource allocation form template is the resource allocation form template corresponding to the aforementioned basic information of the channel to be added. One type of the aforementioned basic information corresponds to one type of the aforementioned resource allocation form template. The aforementioned resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The aforementioned input items include at least: the name of the starting station, the name of the ending station, and the network type. The aforementioned output items include at least: the port number of the aforementioned starting station, the port number of the aforementioned ending station, and the number of the primary route.

[0179] Step S203: Obtain the values ​​of each of the above input items in the target resource allocation form template;

[0180] Step S204: Determine the value of each of the above-mentioned output items in the above-mentioned target resource allocation form template based on the values ​​of the multiple input items in the above-mentioned target resource allocation form template;

[0181] Step S205: Based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, generate the resource allocation form for the new channel.

[0182] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:

[0183] Step S201: Obtain the basic information of the channel to be added;

[0184] The aforementioned basic information includes at least business type and resource type. The aforementioned business type includes at least OCS and protection. The aforementioned resource type includes at least 2M and ChainLight E1.

[0185] Step S202: Based on the basic information of the channel to be added, obtain the target resource allocation form template;

[0186] The aforementioned target resource allocation form template is the resource allocation form template corresponding to the aforementioned basic information of the channel to be added. One type of the aforementioned basic information corresponds to one type of the aforementioned resource allocation form template. The aforementioned resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The aforementioned input items include at least: the name of the starting station, the name of the ending station, and the network type. The aforementioned output items include at least: the port number of the aforementioned starting station, the port number of the aforementioned ending station, and the number of the primary route.

[0187] Step S203: Obtain the values ​​of each of the above input items in the target resource allocation form template;

[0188] Step S204: Determine the value of each of the above-mentioned output items in the above-mentioned target resource allocation form template based on the values ​​of the multiple input items in the above-mentioned target resource allocation form template;

[0189] Step S205: Based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, generate the resource allocation form for the new channel.

[0190] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0191] Step S201: Obtain the basic information of the channel to be added;

[0192] The aforementioned basic information includes at least business type and resource type. The aforementioned business type includes at least OCS and protection. The aforementioned resource type includes at least 2M and ChainLight E1.

[0193] Step S202: Based on the basic information of the channel to be added, obtain the target resource allocation form template;

[0194] The aforementioned target resource allocation form template is the resource allocation form template corresponding to the aforementioned basic information of the channel to be added. One type of the aforementioned basic information corresponds to one type of the aforementioned resource allocation form template. The aforementioned resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The aforementioned input items include at least: the name of the starting station, the name of the ending station, and the network type. The aforementioned output items include at least: the port number of the aforementioned starting station, the port number of the aforementioned ending station, and the number of the primary route.

[0195] Step S203: Obtain the values ​​of each of the above input items in the target resource allocation form template;

[0196] Step S204: Determine the value of each of the above-mentioned output items in the above-mentioned target resource allocation form template based on the values ​​of the multiple input items in the above-mentioned target resource allocation form template;

[0197] Step S205: Based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, generate the resource allocation form for the new channel.

[0198] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0199] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0200] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0201] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0202] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0203] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0204] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0205] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0206] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0207] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0208] 1) In the resource allocation method for adding a new channel in this application, the user needs to fill in the basic information of the channel to be added. Then, the corresponding resource allocation form template is automatically retrieved based on the basic information of the channel to be added. Next, the user needs to fill in the values ​​of multiple input items in the corresponding resource allocation form template. Then, the values ​​of each output item in the corresponding resource allocation form template are automatically determined based on the values ​​of the multiple input items in the corresponding resource allocation form template. Finally, based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, a resource allocation form for the channel to be added is generated, thereby achieving automatic allocation of communication resources. This solves the problem that existing technologies cannot automatically allocate communication resources.

[0209] 2) In the resource allocation device for the newly added channel of this application, the user needs to fill in the basic information of the channel to be added. Then, based on the basic information of the channel to be added, the corresponding resource allocation form template is automatically retrieved. Next, the user needs to fill in the values ​​of multiple input items in the corresponding resource allocation form template. Then, based on the values ​​of the multiple input items in the corresponding resource allocation form template, the values ​​of each output item in the corresponding resource allocation form template are automatically determined. Finally, based on the values ​​of the multiple input items and the multiple output items in the target resource allocation form template, a resource allocation form for the channel to be added is generated, thereby realizing automatic allocation of communication resources. This solves the problem that existing technologies cannot automatically allocate communication resources.

[0210] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for resource allocation of a newly added channel, characterized in that, The method includes: Obtain the basic information of the channel to be added. The basic information includes at least the service type and resource type. The service type includes at least OCS and protection. The resource type includes at least 2M and Chain Optical E1. Based on the basic information of the channel to be added, a target resource allocation form template is obtained. The target resource allocation form template is the resource allocation form template corresponding to the basic information of the channel to be added. One type of basic information corresponds to one type of resource allocation form template. The resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The multiple input items include at least: the name of the originating station, the name of the destination station, and the network type. The multiple output items include at least: the port number of the originating station, the port number of the destination station, and the primary router number. Obtain the values ​​of each input item in the target resource allocation form template; Based on the values ​​of multiple input items in the target resource allocation form template, determine the value of each output item in the target resource allocation form template; Based on the values ​​of multiple input items and multiple output items in the target resource allocation form template, a resource allocation form for the channel to be added is generated. Obtaining a target resource allocation form template based on the basic information of the channel to be added includes: determining the attribute information of the target resource allocation form template based on the basic information of the channel to be added and a first predetermined mapping relationship, wherein the attribute information includes at least one of the following: name and storage path, the first predetermined mapping relationship is a mapping relationship between the basic information and the attribute information, and 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 predetermined mapping relationship; and obtaining the target resource allocation form template from the database based on the attribute information of the target resource allocation form template.

2. The method according to claim 1, characterized in that, Based on the values ​​of multiple input items in the target resource allocation form template, determine the values ​​of each output item in the target resource allocation form template, including: Based on each output item in the target resource allocation form template and the second predetermined mapping relationship, multiple sets of target input items are determined. One output item in the target resource allocation form template corresponds to one set of target input items. The second predetermined mapping relationship is the mapping relationship between the output items and the input items in the target resource allocation form template. One set of target input items is a set of input items corresponding to one output item in the target resource allocation form template in the second predetermined mapping relationship. Based on the values ​​of the target input items in each group, determine the values ​​of the corresponding output items in the target resource allocation form template.

3. The method according to claim 2, characterized in that, In the process of determining the value of the corresponding output item in the target resource allocation form template based on the values ​​of the target input items in each group, the method further includes: Based on the values ​​of a set of target input items, a set of idle values ​​for the output items corresponding to this set of target input items is obtained from the database. When the output item is the port number of the starting station, the idle value of the output item is the value of the port number of the starting station that is not occupied. When the output item is the port number of the ending station, the idle value of the output item is the value of the port number of the ending station that is not occupied. When the output item is the number of the primary route, the idle value of the output item is the value of the number of the primary route that is not occupied. The idle value is determined to be any one of the idle values ​​in the set of output items corresponding to the values ​​of the target input items in this set. The idle value is the value of the corresponding output item in the target resource allocation form template.

4. The method according to claim 2, characterized in that, The plurality of input items further includes: a first target model, a second target model, and a third target model, wherein the first target model is the model of the port of the starting site requested by the user, the second target model is the model of the port of the ending site requested by the user, and the third target model is the model of the primary router requested by the user. In the process of determining the value of the corresponding output item in the target resource allocation form template based on the values ​​of each group of target input items, the method further includes: Based on a set of target input values, a set of idle values ​​for the output corresponding to this set of target input values ​​is obtained from the database. When the output is the port number of the starting station, the idle value of the output is the port number of the unoccupied starting station of the first target model. When the output is the port number of the ending station, the idle value of the output is the port number of the unoccupied ending station of the second target model. When the output is the number of the primary route, the idle value of the output is the number of the unoccupied primary route of the third target model. The idle value is determined to be any one of the idle values ​​in the set of output items corresponding to the values ​​of the target input items in this set. The idle value is the value of the corresponding output item in the target resource allocation form template.

5. The method according to claim 1, characterized in that, The multiple input items also include: the name of the project, the name of the channel, and the storage path of the business form, which is the form that needs to be filled out when adding a new channel.

6. A resource allocation device for a newly added channel, characterized in that, The device includes: The first acquisition unit is used to acquire the basic information of the channel to be added. The basic information includes at least service type and resource type. The service type includes at least OCS and protection. The resource type includes at least 2M and Link Optical E1. The second acquisition unit is used to acquire a target resource allocation form template based on the basic information of the channel to be added. The target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added. One type of basic information corresponds to one type of resource allocation form template. The resource allocation form template consists of multiple input items with empty values ​​and multiple output items with empty values. The multiple input items include at least: the name of the starting station, the name of the ending station, and the network type. The multiple output items include at least: the port number of the starting station, the port number of the ending station, and the number of the primary router. The third acquisition unit is used to acquire the values ​​of each input item in the target resource allocation form template; The first determining unit is configured to determine the value of each output item in the target resource allocation form template based on the values ​​of multiple input items in the target resource allocation form template. The generation unit is configured to generate a resource allocation form for the new channel based on the values ​​of multiple input items and multiple output items in the target resource allocation form template. The second acquisition unit includes: a first determining module, configured to determine the attribute information of the target resource allocation form template based on the basic information of the channel to be added and a first predetermined mapping relationship, wherein the attribute information includes at least one of the following: name, storage path, the first predetermined mapping relationship being a mapping relationship between the basic information and the attribute information, and the attribute information of the target resource allocation form template being the attribute information corresponding to the basic information of the channel to be added in the first predetermined mapping relationship; and an acquisition module, configured to acquire the target resource allocation form template from the database based on the attribute information of the target resource allocation form template.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the resource allocation method for the channel as described in any one of claims 1 to 5.

8. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the resource allocation method for the channel as described in any one of claims 1 to 5.