Resource allocation method and resource allocation device for newly-added channel and storage medium
By automatically obtaining and filling resource allocation form templates, the problem of unable to automatically allocate communication resources in the existing technology is solved, efficient and accurate resource allocation is achieved, and customer satisfaction is improved.
Patent Information
- Application Number
- CN202411569572.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-05
AI Technical Summary
In the prior art, communication resource allocation cannot be performed automatically, resulting in large workload and low efficiency when adding new communication channels, and easy errors, resulting in dissatisfaction with customers.
Provide a resource allocation method for adding new channels. By obtaining the basic information of the channel to be added, the target resource allocation form template is automatically obtained, the user fills in the value of the input item, the system automatically determines the value of the output item, and generates the resource allocation form, thereby realizing the automatic allocation of communication resources.
It realizes automated communication resource allocation, reduces manual operation errors and workload, improves efficiency, and meets customer needs.
Smart Images

Figure CN119520392A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a resource allocation method for a newly added channel, a resource allocation device for a newly added channel, a computer-readable storage medium, and a computer program product. Background Art
[0002] Currently, adding new communication channels requires manual allocation of communication resources. Since different communication channels require the allocation of different communication resources, when multiple communication channels need to be added, the workload is large, the efficiency is low, and errors are prone to occur, which can easily lead to customer dissatisfaction.
[0003] Currently, there is no solution to the above problem. Summary of the invention
[0004] The main purpose of the present application is to provide a resource allocation method for a new channel, a resource allocation device for a new 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.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a resource allocation method for a newly added channel is provided, the method comprising: obtaining basic information of the channel to be added, the basic information at least including a service type and a resource type, the service type at least including OCS and protection, and the resource type at least including 2M and chain light E1; according to the basic information of the channel to be added, obtaining a target resource allocation form template, the target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, and the resource allocation form template consists of multiple input items with empty values and multiple input items with empty values. output items, wherein the multiple input items at least include: the name of the starting site, the name of the terminal site, and the network type, and the multiple output items at least include: the port number of the starting site, the port number of the terminal site, and the number of the main route; obtaining the value of each of the input items in the target resource allocation form template; determining the value of each of the output items in the target resource allocation form template according to the values of the multiple input items in the target resource allocation form template; generating the resource allocation form for 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.
[0006] Optionally, according to the basic information of the channel to be added, a target resource allocation form template is obtained, including: according to the basic information of the channel to be added and a first predetermined mapping relationship, attribute information of the target resource allocation form template is determined, the attribute information including at least any one of the following: name, storage path, the first predetermined mapping relationship is a 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; according to the attribute information of the target resource allocation form template, the target resource allocation form template is obtained from a database.
[0007] Optionally, the value of each output item in the target resource allocation form template is determined according to the values of multiple input items in the target resource allocation form template, including: determining multiple groups of target input items according to each output item in the target resource allocation form template and a second predetermined mapping relationship, one output item in the target resource allocation form template corresponds to a group of target input items, the second predetermined mapping relationship is a mapping relationship between the output items in the target resource allocation form template and the input items in the target resource allocation form template, a group of target input items is a group of input items corresponding to one output item in the target resource allocation form template in the second predetermined mapping relationship; 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.
[0008] Optionally, in the process of determining the value of the corresponding output item in the target resource allocation form template according to the value of each group of the target input items, the method further includes: obtaining from a database a group of idle values of the output item corresponding to the value of the group of the target input items according to the value of the group of the target input items; when the output item is the number of the port of the starting site, the idle value of the output item is the value of the number of the port of the starting site that is not occupied; when the output item is the number of the port of the terminal site, the idle value of the output item is the value of the number of the port of the terminal site 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 group of idle values of the output item corresponding to the value of the group of the target input items as the value of the corresponding output item in the target resource allocation form template.
[0009] Optionally, the multiple 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 starting site required by the user, the second target model is the model of the port of the end site required by the user, and the third target model is the model of the main router required by the user. In the process of determining the value of the corresponding output item in the target resource allocation form template according to the value of each group of the target input items, the method further includes: according to the value of a group of the target input items, obtaining from the database a group of idle values of the output items corresponding to the values of this group of the target input items, where the output item is the number of the port of the starting site In the case where the output item is the number of the port of the unoccupied starting site of the first target model, the idle value of the output item is the value of the number of the port of the unoccupied terminal site of the second target model, and in the case where the output item is the number of the main route, the idle value of the output item is the value of the number of the unoccupied main route of the third target model; determine that any one of the idle values of the output item corresponding to the value of this group of target input items is the value of the corresponding output item in the target resource allocation form template.
[0010] Optionally, the multiple input items further include: a name of a project, a name of a channel, and a storage path of a business form, where the business form is a form that needs to be filled in when adding a new channel.
[0011] Optionally, based on the values of multiple input items in the target resource allocation form template and the values of multiple output items in the target resource allocation form template, a resource allocation form for the channel to be added is generated, including: filling the values of multiple input items in the target resource allocation form template and the values of multiple output items in the target resource allocation form template into the target resource allocation form template to obtain the resource allocation form for the channel to be added.
[0012] According to another aspect of the present application, a resource allocation device for a newly added channel is provided, the device comprising: a first acquisition unit, used to acquire basic information of the channel to be added, the basic information at least including a service type and a resource type, the service type at least including OCS and protection, and the resource type at least including 2M and chain light E1; a second acquisition unit, used to acquire a target resource allocation form template according to 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 corresponds to one type of resource allocation form template, the resource allocation form template consisting of a plurality of input items with empty values and a plurality of output items with empty values, The multiple input items include at least: the name of the starting site, the name of the end site, and the network type; the multiple output items include at least: the port number of the starting site, the port number of the end site, and the number of the main route; a third acquisition unit is used to acquire the value of each of the input items in the target resource allocation form template; a first determination unit is used to determine the value of each of the output items in the target resource allocation form template according to the values of the multiple input items in the target resource allocation form template; a generation unit is used to generate the resource allocation form for 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.
[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the channel resource allocation methods.
[0014] According to another aspect of the present application, a computer program product is provided, including a computer program / instruction, which implements any one of the channel resource allocation methods when executed by a processor.
[0015] The technical solution of the present application is applied. The present application requires the user to fill in the basic information of the channel to be added, and then automatically retrieves the corresponding resource allocation form template according to the basic information of the channel to be added, and then the user needs to fill in the values of multiple input items in the corresponding resource allocation form template, and then automatically determines the values of each output item in the corresponding resource allocation form template according to the values of multiple input items in the corresponding resource allocation form template, and finally, based on the values of multiple input items in the target resource allocation form template and the values of multiple output items in the target resource allocation form template, generates the resource allocation form of the channel to be added, thereby realizing automatic allocation of communication resources. This solves the problem that communication resources cannot be allocated automatically in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for executing a resource allocation method for a newly added channel provided in an embodiment of the present application is shown;
[0017] Figure 2 A schematic diagram of a process of a resource allocation method for a newly added channel provided according to an embodiment of the present application is shown;
[0018] Figure 3 A structural block diagram of a resource allocation device for a newly added channel provided according to an embodiment of the present application is shown.
[0019] The above drawings include the following reference numerals:
[0020] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0021] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work 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 and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] As introduced in the background technology, communication resources cannot be automatically allocated in the prior art. In order to solve the problem that communication resources cannot be automatically allocated in the prior art, the embodiments of the present application provide a resource allocation method for a new channel, a resource allocation device for a new channel, a computer-readable storage medium and a computer program product.
[0025] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0026] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a resource allocation method for a newly added channel according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as 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] In this embodiment, a resource allocation method for a new channel running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of 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 can be executed in an order different from that shown here.
[0029] Figure 2 FIG. 1 is a flow chart of a resource allocation method for a newly added channel according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0030] Step S201, obtaining basic information of the channel to be added;
[0031] The basic information at least includes the service type and resource type. The service type at least includes OCS and protection. The resource type at least includes 2M and Link Optical E1.
[0032] Specifically, OCS is a 2M automated remote service, protection is a protection service, 2M refers to a 2M channel, and chain optical E1 refers to a service that uses E1 (2M) to carry chain protection.
[0033] Step S202, obtaining a target resource allocation form template according to the basic information of the channel to be added;
[0034] The target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, the resource allocation form template is composed of multiple input items with empty values and multiple output items with empty values, the multiple input items at least include: the name of the starting site, the name of the end site, and the network type, the multiple output items at least include: the number of the port of the starting site, the number of the port of the end site, and the number of the main router;
[0035] In an optional solution, the above step S202 can be implemented as follows:
[0036] According to the basic information of the channel to be added and the first predetermined mapping relationship, the attribute information of the target resource allocation form template is determined, the attribute information includes at least any one of the following: name, 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;
[0037] According to the attribute information of the target resource allocation form template, the target resource allocation form template is obtained from a database.
[0038] Specifically, first, the resource allocation form template corresponding to each basic information is stored in the database in advance, and then, according to 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 searched from the first predetermined mapping relationship, and then, the attribute information of the resource allocation form template corresponding to the basic information of the channel to be added is obtained from the database.
[0039] Step S203, obtaining the values of the above input items in the above target resource allocation form template;
[0040] Specifically, the values of multiple input items in the target resource allocation form template need to be filled in by the user. In some implementations, the user needs to fill in the name of the starting site, the name of the end site, and the network type. The network type can be a regional ASON network, etc. ASON is a transmission network technology with self-healing function. The regional ASON network refers to the ASON equipment network in the local area.
[0041] Step S204, determining the value of each of the output items in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template;
[0042] In an optional solution, the above step S204 can be implemented as follows:
[0043] Step S2041, according to each of the output items in the target resource allocation form template and the second predetermined mapping relationship, a plurality of groups of target input items are determined, wherein one of the output items in the target resource allocation form template corresponds to one of the target input items, the second predetermined mapping relationship is a mapping relationship between the output items in the target resource allocation form template and the input items in the target resource allocation form template, and one of the target input items is a group of input items corresponding to one of the output items in the target resource allocation form template in the second predetermined mapping relationship;
[0044] Step S2044: determining the value of the corresponding output item in the target resource allocation form template according to the value of each group of the target input items.
[0045] Specifically, in some embodiments, if the output item is the number of the main route, the corresponding set of input items are the name of the starting site, the name of the end site, and the network type, that is, the value of the number of the main route needs to be determined based on the value of the name of the starting site, the value of the name of the end site, and the value of the network type. In some embodiments, if the output item is the number of the port of the starting site, the corresponding set of input items are the name of the starting site and the network type, that is, the value of the number of the port of the starting site needs to be determined based on the value of the name of the starting site and the value of the network type. In some embodiments, if the output item is the number of the port of the end site, the corresponding set of input items are the name of the end site and the network type, that is, the value of the number of the port of the end site needs to be determined based on the value of the name of the end site and the value of the network type.
[0046] In an optional solution, during the above step S2044, the above method includes:
[0047] According to a set of values of the target input items, a set of idle values of the output items corresponding to the set of values of the target input items is obtained from a database; when the output item is the number of the port of the starting site, the idle value of the output item is the value of the number of the port of the starting site that is not occupied; when the output item is the number of the port of the terminal site, the idle value of the output item is the value of the number of the port of the terminal site 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;
[0048] Determine that any one of the idle values of the output item corresponding to the set of target input item values is the value of the corresponding output item in the target resource allocation form template.
[0049] Specifically, if the output item is the port number of the starting site, the corresponding set of input items are the name and network type of the starting site, that is, it is necessary to determine the value of the port number of the unoccupied starting site based on the value of the name of the starting site and the value of the network type, and select the value of the port number of any unoccupied starting site as the value of the output item; if the output item is the port number of the terminal site, the corresponding set of input items are the name and network type of the terminal site, that is, it is necessary to determine the value of the port number of the unoccupied terminal site based on the value of the name of the terminal site and the value of the network type, and select the value of the port number of any unoccupied terminal site as the value of the output item; if the output item is the number of the main route, the corresponding set of input items are the name of the starting site, the name of the terminal site, and the network type, that is, it is necessary to determine the value of the number of the unoccupied main route based on the value of the name of the starting site, the value of the name of the terminal site, and the value of the network type, and select the value of the number of any unoccupied main route as the value of the output item.
[0050] In an optional solution, the multiple input items further include: a first target model, a second target model, and a third target model, the first target model is the model of the port of the starting site required by the user, the second target model is the model of the port of the terminal site required by the user, and the third target model is the model of the primary router required by the user. In the process of step S2044, the method further includes:
[0051] According to a set of values of the above-mentioned target input items, a set of idle values of the above-mentioned output items corresponding to the values of the above-mentioned target input items are obtained from a database; in the case where the above-mentioned output item is the number of the port of the above-mentioned starting point site, the idle value of the above-mentioned output item is the value of the number of the port of the above-mentioned starting point site that is not occupied by the above-mentioned first target model; in the case where the above-mentioned output item is the number of the port of the above-mentioned terminal site that is not occupied by the above-mentioned second target model; in the case where the above-mentioned output item is the number of the above-mentioned main route, the above-mentioned idle value of the above-mentioned output item is the value of the number of the above-mentioned main route that is not occupied by the above-mentioned third target model;
[0052] Determine that any one of the idle values of the output item corresponding to the set of target input item values is the value of the corresponding output item in the target resource allocation form template.
[0053] Specifically, if the output item is the number of the port of the starting site, the corresponding set of input items are the name of the starting site, the network type, and the first target model (the model of the port of the starting site required by the user), that is, it is necessary to determine the value of the number of the port of the unoccupied starting site according to the value of the name of the starting site, the value of the network type, and the value of the first target model, and select the value of the number of the port of the unoccupied starting site of any first target model. If the output item is the number of the port of the terminal site, the corresponding set of input items are the name of the terminal site, the network type, and the second target model (the model of the port of the terminal site required by the user), that is, it is necessary to determine the value of the number of the port of the unoccupied starting site according to the value of the name of the terminal site, the value of the network type, and the value of the first target model. The value of the port number of the unoccupied terminal site is determined by the value of the first target site name and the value of the second target model. The value of the port number of the unoccupied terminal site of any second target model is selected. If the output item is the number of the main route, the corresponding set of input items are the name of the starting site, the name of the terminal site, the network type, and the third target model (the model of the port of the main route required by the user). That is, the value of the number of the unoccupied main route of the third target model needs to be determined according to the value of the name of the starting site, the value of the name of the terminal site, the value of the network type, and the value of the third target model. The value of the number of the unoccupied main route of any third target model is selected as the value of the output item.
[0054] In an optional solution, the multiple input items further include: a name of the project, a name of the channel, and a storage path of a business form, where the business form is a form that needs to be filled in when adding a new channel.
[0055] Step S205: generating the resource allocation form for the to-be-added channel based on the values of the plurality of input items in the target resource allocation form template and the values of the plurality of output items in the target resource allocation form template.
[0056] In an optional solution, the above step S205 can be implemented as follows:
[0057] The values of the plurality of input items in the target resource allocation form template and the values of the plurality of output items in the target resource allocation form template are filled into the target resource allocation form template to obtain the resource allocation form of the channel to be added.
[0058] Through the above embodiments, the present application requires the user to fill in the basic information of the channel to be added, and then automatically retrieves the corresponding resource allocation form template according to the basic information of the channel to be added, and then the user needs to fill in the values of multiple input items in the corresponding resource allocation form template, and then automatically determines the values of each output item in the corresponding resource allocation form template according to the values of multiple input items in the corresponding resource allocation form template, and finally, based on the values of multiple input items in the target resource allocation form template and the values of multiple output items in the target resource allocation form template, generates the resource allocation form of the channel to be added, thereby realizing automatic allocation of communication resources. This solves the problem that communication resources cannot be allocated automatically in the prior art.
[0059] In addition, the routing to find the optimal path includes 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 each segment in the path is multiplied to obtain the security of the entire path.
[0063] Redundancy: The redundancy of each segment in the path is multiplied to get the redundancy of the entire path.
[0064] Length: The length of each segment in the path is added together to get the length of the entire path.
[0065] Step 2: Generate candidate paths;
[0066] Then, you need to generate all possible paths from the starting point to the end point. You can use breadth-first search (BFS) or depth-first search (DFS) to generate these paths.
[0067] Step 3: Calculate the multi-objective value of each path;
[0068] For each candidate path, its security, redundancy and length are calculated respectively.
[0069] Step 4: Find the Pareto frontier;
[0070] Find the Pareto front from all candidate paths. Paths in the Pareto front are those that cannot improve on one objective without regressing on other objectives.
[0071] For each path, check whether there is another path that is not inferior to it in all objectives and is superior to 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] Selecting a path from the Pareto frontier is done based on specific requirements, which can prioritize specific requirements such as safety, redundancy, or path length.
[0074] Example description:
[0075] Suppose there is a communication network diagram as follows:
[0076] The path from node A to B has a safety of 0.9, a redundancy of 0.8, and a length of 1.
[0077] The path from node A to C has a safety of 0.7, a redundancy of 0.6, and a length of 2.
[0078] The path from node B to D has a safety of 0.85, a redundancy of 0.75, and a length of 1.5.
[0079] The path from node C to D has a safety of 0.8, a redundancy 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 of 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 whether each path is on the Pareto frontier;
[0087] Path 1 (A->B->D) is superior to Path 2 in both safety and redundancy, so Path 1 is on the Pareto frontier.
[0088] Path 2 (A->C->D) is not better than Path 1 in all objectives, so Path 2 is not on the Pareto frontier.
[0089] Step 5: Select a path from the Pareto frontier. Assuming we prioritize path length, we select path 1 (A->B->D).
[0090] Through the above steps, we find the optimal path from node A to node D, namely path 1 (A->B->D), which strikes a balance between security, redundancy, and length.
[0091] The Pareto optimization algorithm is a multi-objective optimization method designed to handle multiple conflicting objectives. Through the Pareto frontier, the algorithm finds the optimal solution when it is impossible to improve one objective without affecting another objective. This is particularly important in the problem of communication mode selection, especially under conditions of limited resources, a reasonable balance must be found between communication efficiency, resource utilization and routing security.
[0092] The Pareto optimization-based approach to algorithm design includes:
[0093] Introduction of Pareto optimization:
[0094] In Pareto optimization, we try to find a set of solutions that are not inferior to other solutions in all objective functions, that is, the "non-dominated solution set" (Pareto front). Specifically, for any given solution x i , if there exists another solution x j The following conditions are met:
[0095] 1. Solve x on at least one objective function j Strictly better than solution x i :f k (x j )<f k (x i ), k∈{1, 2, ..., M};
[0096] 2. On other objective functions, solve x j At least not inferior to solution 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 met, then the solution x is called j Dominant solution x i, otherwise, solve x i Belongs to the Pareto frontier.
[0098] Objective function design:
[0099] 1. Communication efficiency goal (minimizing path delay): f1(x) = T total (x), where T total (x) represents the delay from the path.
[0100] 2. Resource utilization target (maximize resource utilization efficiency): Among them, U(x) represents the utilization of communication resources, and the goal is to minimize the unused resources.
[0101] 3. Routing security goal (maximizing path redundancy): f3(x) = -R(x) where R(x) represents path redundancy and the goal is to minimize path redundancy by converting it into a negative sign.
[0102] Among these objective functions, communication efficiency needs to be minimized, while resource utilization and routing security need to be maximized, respectively. To simplify the calculation, these objectives can be standardized so that they can be uniformly compared.
[0103] Among them, the calculation method of Pareto frontier is to find a solution set that cannot be dominated by other solutions under multiple objectives. The following are the steps to calculate Pareto frontier:
[0104] 1. Candidate solution generation: Generate a set of candidate solutions X = {x1, x2, ..., x 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: All non-dominated solutions are combined into the Pareto front X * ;
[0107] Formulaically, the Pareto frontier can be expressed as:
[0108]
[0109] Among them, f(x j )≤f(x i ) represents the solution x j Not inferior to solution x on all objectives i .
[0110] The specific steps of 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 better than 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 better in at least one aspect, we say that A dominates B.
[0113] Step 2: Initialize the solution set. Assume that we have a solution set, 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 judgments:
[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 the two do not dominate each other, both are retained.
[0118] Step 4: Obtain the Pareto frontier. After the above steps, the remaining solutions in the solution set are the solutions on the Pareto frontier. These solutions cannot improve on one objective without degrading on another objective.
[0119] For example, suppose there are three candidate paths, and the multi-objective values of each path are as follows (the greater the security, the better, the greater the redundancy, the better, and the shorter the path length, the better):
[0120] Path 1: safety = 0.8, redundancy = 0.7, length = 2.0;
[0121] Path 2: safety = 0.9, redundancy = 0.6, length = 1.8;
[0122] Path 3: safety = 0.7, redundancy = 0.8, length = 2.5;
[0123] Dominance relationship analysis:
[0124] Compared with path 1 and path 2: path 2 is worse than path 1 in security, worse than path 1 in redundancy, but better than path 1 in path length. Therefore, path 2 does not dominate path 1, and path 1 does not dominate path 2.
[0125] Compared with path 1 and path 3: path 1 is worse than path 3 in security, worse than path 3 in redundancy, but better than path 3 in path length. Therefore, path 1 does not dominate path 3, and path 3 does not dominate path 1.
[0126] Compared with path 2 and path 3: path 2 is worse than path 3 in security, worse than path 3 in redundancy, but better than path 3 in path length. Therefore, path 2 does not dominate path 3, and path 3 does not dominate path 2.
[0127] Since no path dominates another path, path 1, path 2, and path 3 all belong to the Pareto frontier. The key to calculating the Pareto frontier is to compare each pair of solutions to determine whether there is a dominance relationship. In this way, a set of solutions that perform balanced under different objectives can be screened out, and the set of these solutions is the Pareto frontier.
[0128] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0129] The embodiment of the present application also provides a resource allocation device for a newly added channel. It should be noted that the resource allocation device for a newly added channel in the embodiment of the present application can be used to execute the resource allocation method for a newly added channel provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0130] The following is an introduction to the resource allocation device for the newly added channel provided in the embodiment of the present application.
[0131] Figure 3 is a structural block diagram of a resource allocation device for a newly added channel according to an embodiment of the present application. Figure 3 As shown, the device comprises:
[0132] A first acquisition unit 10 is used to acquire basic information of the channel to be added;
[0133] The basic information at least includes the service type and resource type. The service type at least includes OCS and protection. The resource type at least includes 2M and Link Optical E1.
[0134] Specifically, the above resource types also include: Lianguang E2 and Lianguang E3.
[0135] The second acquisition unit 20 is used to acquire a target resource allocation form template according to the basic information of the channel to be added;
[0136] The target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, the resource allocation form template is composed of multiple input items with empty values and multiple output items with empty values, the multiple input items at least include: the name of the starting site, the name of the end site, and the network type, the multiple output items at least include: the number of the port of the starting site, the number of the port of the end site, and the number of the main router;
[0137] In an optional solution, the second acquisition unit includes:
[0138] A first determination module is used to determine the attribute information of the target resource allocation form template according to the basic information of the channel to be added and the first predetermined mapping relationship, where the attribute information includes at least any 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;
[0139] The acquisition module is used to acquire the target resource allocation form template from a database according to the attribute information of the target resource allocation form template.
[0140] Specifically, first, the resource allocation form template corresponding to each basic information is stored in the database in advance, and then, according to 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 searched from the first predetermined mapping relationship, and then, the attribute information of the resource allocation form template corresponding to the basic information of the channel to be added is obtained from the database.
[0141] The third acquisition unit 30 is used to acquire the value of each of the above input items in the above target resource allocation form template;
[0142] Specifically, the values of multiple input items in the target resource allocation form template need to be filled in by the user. In some implementations, the user needs to fill in the name of the starting site, the name of the end site, and the network type. The network type can be a regional ASON network, etc.
[0143] A first determining unit 40 is used to determine the value of each of the output items in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template;
[0144] In an optional solution, the determining unit includes:
[0145] A second determination module is used to determine a plurality of groups of target input items according to each of the output items in the target resource allocation form template and the second predetermined mapping relationship, wherein one of the output items in the target resource allocation form template corresponds to one of the target input items, the second predetermined mapping relationship is a mapping relationship between the output items in the target resource allocation form template and the input items in the target resource allocation form template, and a group of the target input items is a group of the 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 determination module is used to determine the value of the corresponding output item in the target resource allocation form template according to the value of each group of the target input items.
[0147] Specifically, in some embodiments, if the output item is the number of the main route, the corresponding set of input items are the name of the starting site, the name of the end site, and the network type, that is, the value of the number of the main route needs to be determined based on the value of the name of the starting site, the value of the name of the end site, and the value of the network type. In some embodiments, if the output item is the number of the port of the starting site, the corresponding set of input items are the name of the starting site and the network type, that is, the value of the number of the port of the starting site needs to be determined based on the value of the name of the starting site and the value of the network type. In some embodiments, if the output item is the number of the port of the end site, the corresponding set of input items are the name of the end site and the network type, that is, the value of the number of the port of the end site needs to be determined based on the value of the name of the end site and the value of the network type.
[0148] In an optional solution, the above device includes:
[0149] a fourth acquisition unit, configured to acquire, from a database, a group of idle values of the output items corresponding to a group of target input item values, according to the group of target input item values; in a case where the output item is the number of a port of the starting site, the idle value of the output item is the value of the number of the port of the starting site that is not occupied; in a case where the output item is the number of a port of the terminal site, the idle value of the output item is the value of the number of the port of the terminal site that is not occupied; in a case where 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 any one of the idle values of the output item corresponding to the set of target input item values as the value of the corresponding output item in the target resource allocation form template.
[0151] Specifically, if the output item is the port number of the starting site, the corresponding set of input items are the name and network type of the starting site, that is, it is necessary to determine the value of the port number of the unoccupied starting site based on the value of the name of the starting site and the value of the network type, and select the value of the port number of any unoccupied starting site as the value of the output item; if the output item is the port number of the terminal site, the corresponding set of input items are the name and network type of the terminal site, that is, it is necessary to determine the value of the port number of the unoccupied terminal site based on the value of the name of the terminal site and the value of the network type, and select the value of the port number of any unoccupied terminal site as the value of the output item; if the output item is the number of the main route, the corresponding set of input items are the name of the starting site, the name of the terminal site, and the network type, that is, it is necessary to determine the value of the number of the unoccupied main route based on the value of the name of the starting site, the value of the name of the terminal site, and the value of the network type, and select the value of the number of any unoccupied main route as the value of the output item.
[0152] In an optional solution, the plurality of input items further include: a first target model, a second target model, and a third target model, the first target model being the model of the port of the starting site required by the user, the second target model being the model of the port of the terminal site required by the user, and the third target model being the model of the primary router required by the user, and the device further includes:
[0153] a fifth obtaining unit, configured to obtain from a database a group of idle values of the output items corresponding to a group of target input item values, according to the group of target input item values; in the case where the output item is the number of the port of the starting point site, the idle value of the output item is the value of the number of the unoccupied port of the starting point site of the first target model; in the case where the output item is the number of the port of the terminal site, the idle value of the output item is the value of the number of the unoccupied port of the terminal site of the second target model; in the case where 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 unoccupied primary route of the third target model;
[0154] The third determining unit is used to determine any one of the idle values of the output item corresponding to the set of target input item values as the value of the corresponding output item in the target resource allocation form template.
[0155] Specifically, if the output item is the number of the port of the starting site, the corresponding set of input items are the name of the starting site, the network type, and the first target model (the model of the port of the starting site required by the user), that is, it is necessary to determine the value of the number of the port of the unoccupied starting site according to the value of the name of the starting site, the value of the network type, and the value of the first target model, and select the value of the number of the port of the unoccupied starting site of any first target model. If the output item is the number of the port of the terminal site, the corresponding set of input items are the name of the terminal site, the network type, and the second target model (the model of the port of the terminal site required by the user), that is, it is necessary to determine the value of the number of the port of the unoccupied starting site according to the value of the name of the terminal site, the value of the network type, and the value of the first target model. The value of the port number of the unoccupied terminal site is determined by the value of the first target site name and the value of the second target model. The value of the port number of the unoccupied terminal site of any second target model is selected. If the output item is the number of the main route, the corresponding set of input items are the name of the starting site, the name of the terminal site, the network type, and the third target model (the model of the port of the main route required by the user). That is, the value of the number of the unoccupied main route of the third target model needs to be determined according to the value of the name of the starting site, the value of the name of the terminal site, the value of the network type, and the value of the third target model. The value of the number of the unoccupied main route of any third target model is selected as the value of the output item.
[0156] In an optional solution, the multiple input items further include: a name of the project, a name of the channel, and a storage path of a business form, where the business form is a form that needs to be filled in when adding a new channel.
[0157] The generating unit 50 is used to generate the resource allocation form of the to-be-added channel 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.
[0158] In an optional solution, the generating unit is used to:
[0159] The values of the plurality of input items in the target resource allocation form template and the values of the plurality of output items in the target resource allocation form template are filled into the target resource allocation form template to obtain the resource allocation form of the channel to be added.
[0160] Through the above embodiments, the present application requires the user to fill in the basic information of the channel to be added, and then automatically retrieves the corresponding resource allocation form template according to the basic information of the channel to be added, and then the user needs to fill in the values of multiple input items in the corresponding resource allocation form template, and then automatically determines the values of each output item in the corresponding resource allocation form template according to the values of multiple input items in the corresponding resource allocation form template, and finally, based on the values of multiple input items in the target resource allocation form template and the values of multiple output items in the target resource allocation form template, generates the resource allocation form of the channel to be added, thereby realizing automatic allocation of communication resources. This solves the problem that communication resources cannot be allocated automatically in the prior art.
[0161] The resource allocation device for the newly added channel includes a processor and a memory. The above units are stored in the memory as program units, and the processor executes the above program units stored in the memory to implement corresponding functions. The above modules are all located in the same processor; or, the above modules are located in different processors in any combination.
[0162] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem that communication resources cannot be automatically allocated in the prior art can be solved by adjusting kernel parameters.
[0163] The memory may include non-permanent memory in a computer-readable medium, 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] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the resource allocation method for the newly added channel.
[0165] Specifically, the resource allocation method for the newly added channel includes:
[0166] Step S201, obtaining basic information of the channel to be added;
[0167] The basic information at least includes the service type and resource type. The service type at least includes OCS and protection. The resource type at least includes 2M and Link Optical E1.
[0168] Step S202, obtaining a target resource allocation form template according to the basic information of the channel to be added;
[0169] The target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, the resource allocation form template is composed of multiple input items with empty values and multiple output items with empty values, the multiple input items at least include: the name of the starting site, the name of the end site, and the network type, the multiple output items at least include: the number of the port of the starting site, the number of the port of the end site, and the number of the main router;
[0170] Step S203, obtaining the values of the above input items in the above target resource allocation form template;
[0171] Step S204, determining the value of each of the output items in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template;
[0172] Step S205: generating the resource allocation form for the to-be-added channel based on the values of the plurality of input items in the target resource allocation form template and the values of the plurality of output items in the target resource allocation form template.
[0173] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the resource allocation method of the newly added channel is executed when the program is running.
[0174] Specifically, the resource allocation method for the newly added channel includes:
[0175] Step S201, obtaining basic information of the channel to be added;
[0176] The basic information at least includes the service type and resource type. The service type at least includes OCS and protection. The resource type at least includes 2M and Link Optical E1.
[0177] Step S202, obtaining a target resource allocation form template according to the basic information of the channel to be added;
[0178] The target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, the resource allocation form template is composed of multiple input items with empty values and multiple output items with empty values, the multiple input items at least include: the name of the starting site, the name of the end site, and the network type, the multiple output items at least include: the number of the port of the starting site, the number of the port of the end site, and the number of the main router;
[0179] Step S203, obtaining the values of the above input items in the above target resource allocation form template;
[0180] Step S204, determining the value of each of the output items in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template;
[0181] Step S205: generating the resource allocation form for the to-be-added channel based on the values of the plurality of input items in the target resource allocation form template and the values of the plurality of output items in the target resource allocation form template.
[0182] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0183] Step S201, obtaining basic information of the channel to be added;
[0184] The basic information at least includes the service type and resource type. The service type at least includes OCS and protection. The resource type at least includes 2M and Link Optical E1.
[0185] Step S202, obtaining a target resource allocation form template according to the basic information of the channel to be added;
[0186] The target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, the resource allocation form template is composed of multiple input items with empty values and multiple output items with empty values, the multiple input items at least include: the name of the starting site, the name of the end site, and the network type, the multiple output items at least include: the number of the port of the starting site, the number of the port of the end site, and the number of the main router;
[0187] Step S203, obtaining the values of the above input items in the above target resource allocation form template;
[0188] Step S204, determining the value of each of the output items in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template;
[0189] Step S205: generating the resource allocation form for the to-be-added channel based on the values of the plurality of input items in the target resource allocation form template and the values of the plurality of output items in the target resource allocation form template.
[0190] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0191] Step S201, obtaining basic information of the channel to be added;
[0192] The basic information at least includes the service type and resource type. The service type at least includes OCS and protection. The resource type at least includes 2M and Link Optical E1.
[0193] Step S202, obtaining a target resource allocation form template according to the basic information of the channel to be added;
[0194] The target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, the resource allocation form template is composed of multiple input items with empty values and multiple output items with empty values, the multiple input items at least include: the name of the starting site, the name of the end site, and the network type, the multiple output items at least include: the number of the port of the starting site, the number of the port of the end site, and the number of the main router;
[0195] Step S203, obtaining the values of the above input items in the above target resource allocation form template;
[0196] Step S204, determining the value of each of the output items in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template;
[0197] Step S205: generating the resource allocation form for the to-be-added channel based on the values of the plurality of input items in the target resource allocation form template and the values of the plurality of output items in the target resource allocation form template.
[0198] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0199] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0200] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0201] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0202] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions 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] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0205] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0206] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0207] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0208] 1) In the resource allocation method for the newly added channel of the present application, the present application requires the user to fill in the basic information of the channel to be added, and then automatically retrieves the corresponding resource allocation form template according to the basic information of the channel to be added, and then the user needs to fill in the values of multiple input items in the corresponding resource allocation form template, and then automatically determines the values of each output item in the corresponding resource allocation form template according to the values of multiple input items in the corresponding resource allocation form template, and finally, based on the values of multiple input items in the target resource allocation form template and the values of multiple output items in the target resource allocation form template, generates the resource allocation form for the channel to be added, thereby realizing automatic allocation of communication resources. This solves the problem that communication resources cannot be allocated automatically in the prior art.
[0209] 2) In the resource allocation device for the newly added channel of the present application, the present application requires the user to fill in the basic information of the channel to be added, and then automatically retrieves the corresponding resource allocation form template according to the basic information of the channel to be added, and then the user needs to fill in the values of multiple input items in the corresponding resource allocation form template, and then automatically determines the values of each output item in the corresponding resource allocation form template according to the values of multiple input items in the corresponding resource allocation form template, and finally, based on the values of multiple input items in the target resource allocation form template and the values of multiple output items in the target resource allocation form template, generates the resource allocation form for the channel to be added, thereby realizing automatic allocation of communication resources. This solves the problem that communication resources cannot be allocated automatically in the prior art.
[0210] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A resource allocation method for a newly added channel, characterized in that: The method comprises: Obtain basic information of the channel to be added, where the basic information includes at least a service type and a resource type, where the service type includes at least OCS and protection, and where the resource type includes at least 2M and Link Optical E1; According to the basic information of the channel to be added, a target resource allocation form template is obtained, the target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one 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 include: the name of the starting site, the name of the terminal site, and the network type, the plurality of output items at least include: the number of the port of the starting site, the number of the port of the terminal site, and the number of the primary router; Obtaining 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 the plurality of input items in the target resource allocation form template; The resource allocation form for the channel to be added is generated 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.
2. The method according to claim 1, characterized in that According to the basic information of the channel to be added, a target resource allocation form template is obtained, including: Determine the attribute information of the target resource allocation form template according to the basic information of the channel to be added and the first predetermined mapping relationship, the attribute information includes at least any one of the following: name, storage path, the first predetermined mapping relationship is the 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; According to the attribute information of the target resource allocation form template, the target resource allocation form template is acquired from a database.
3. The method according to claim 1, characterized in that Determining the value of each output item in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template includes: Determine a plurality of groups of target input items according to each of the output items in the target resource allocation form template and a second predetermined mapping relationship, wherein one of the output items in the target resource allocation form template corresponds to one of the target input items, the second predetermined mapping relationship is a mapping relationship between the output items in the target resource allocation form template and the input items in the target resource allocation form template, and a group of the target input items is a group of the input items corresponding to one of the output items in the target resource allocation form template in the second predetermined mapping relationship; According to the values of each group of the target input items, the values of the corresponding output items in the target resource allocation form template are determined.
4. The method according to claim 3, characterized in that In the process of determining the value of the corresponding output item in the target resource allocation form template according to the value of each group of the target input items, the method further includes: According to a set of values of the target input items, a set of idle values of the output items corresponding to the set of values of the target input items is obtained from a database, where, when the output item is the number of the port of the starting site, the idle value of the output item is the value of the number of the port of the starting site that is not occupied, when the output item is the number of the port of the terminal site, the idle value of the output item is the value of the number of the port of the terminal site that is not occupied, and 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; Determine that any one of the idle values of the output item corresponding to the set of target input item values is the value of the corresponding output item in the target resource allocation form template.
5. The method according to claim 3, characterized in that: The multiple 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 starting site required by the user, the second target model is the model of the port of the terminal site required by the user, and the third target model is the model of the primary router required by the user. In the process of determining the value of the corresponding output item in the target resource allocation form template according to the value of each group of the target input items, the method further includes: According to a group of values of the target input items, a group of idle values of the output items corresponding to the group of values of the target input items are obtained from a database; when the output item is the number of the port of the starting site, the idle value of the output item is the value of the number of the unoccupied port of the starting site of the first target model; when the output item is the number of the port of the terminal site, the idle value of the output item is the value of the number of the unoccupied port of the terminal site 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 value of the number of the unoccupied primary route of the third target model; Determine that any one of the idle values of the output item corresponding to the set of target input item values is the value of the corresponding output item in the target resource allocation form template.
6. The method according to claim 1, characterized in that The multiple input items also include: a name of the project, a name of the channel, and a storage path of a business form, where the business form is a form that needs to be filled in for adding a new channel.
7. The method according to claim 1, characterized in that Generating the resource allocation form for 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, including: 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 are filled into the target resource allocation form template to obtain the resource allocation form of the channel to be added.
8. A resource allocation device for a newly added channel, characterized in that: The device comprises: A first acquisition unit is used to acquire basic information of the channel to be added, where the basic information includes at least a service type and a resource type, where the service type includes at least OCS and protection, and where the resource type includes at least 2M and chain optical E1; A second acquisition unit is used to acquire a target resource allocation form template according to the basic information of the channel to be added, wherein the target resource allocation form template is a resource allocation form template corresponding to the basic information of the channel to be added, one basic information corresponds to one resource allocation form template, and 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, wherein the plurality of input items at least include: a name of a starting site, a name of a terminal site, and a network type, and the plurality of output items at least include: a port number of the starting site, a port number of the terminal site, and a primary router number; A third acquisition unit, configured to acquire the value of each input item in the target resource allocation form template; A first determining unit, configured to determine a value of each of the output items in the target resource allocation form template according to the values of the plurality of input items in the target resource allocation form template; A generating unit is used to generate the resource allocation form of the to-be-added channel 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.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the channel resource allocation method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the channel resource allocation method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Special line opening method and device
CN113938399A
Automatic tube receiving method and device
CN116346594A
STN network service opening resource on-demand selection method and device
CN118158817A
Input / output list creation method, and input / output list creation device
JP2017097596A
Generalized approach to structured medical reporting
US20050273365A1