Forward path determination method and apparatus, electronic device and storage medium
By calculating the forwarding path that satisfies the business constraints in the communication network and determining the backup path in case of failure, the problem of business traffic being unable to be effectively forwarded when network quality deteriorates or the forwarding path fails is solved, improving network reliability and business traffic. transmission efficiency.
Patent Information
- Application Number
- PCT/CN2023/130537
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2023-11-08
- Publication Date
- 2024-08-29
AI Technical Summary
In a communication network, when network quality deteriorates or the target forwarding path fails, it is difficult to determine a backup forwarding path that meets business needs using existing technology, resulting in the inability to effectively forward business traffic.
By calculating the forwarding path that satisfies the necessary constraints and non-essential constraints of the service in the communication network, if the calculation of the first forwarding path fails, determine the backup path that satisfies the necessary constraints, and try to calculate the second forwarding path based on the necessary conditions. , satisfy necessary and at least one non-essential constraint to meet business needs as much as possible.
It realizes the rapid determination and establishment of a forwarding path that meets business needs as much as possible when the network quality deteriorates or the forwarding path fails, thereby improving the reliability of the network and the transmission efficiency of business traffic.
Smart Images

Figure CN2023130537_29082024_PF_FP_ABST
Abstract
Description
Forwarding path determination method, device, electronic device, and storage medium
[0001] This application claims priority to Chinese patent application number 202310171944.4, filed on February 20, 2023, entitled “Forwarding path determination method, device, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a forwarding path determination method, device, electronic device, and storage medium. Background Art
[0003] With the advent of the 5G era, businesses are placing increasing demands on forwarding services in communication networks. Control devices establish target forwarding paths that meet business needs in communication networks, so that business traffic is forwarded along the target forwarding paths.
[0004] Once the network quality of the communication network deteriorates or the target forwarding path fails, making the target forwarding path unable to meet the service requirements, if there is no other forwarding path that meets the service requirements in the communication network, the service traffic will be forwarded in the communication network according to the shortest path "best effort (BE)", but the shortest path also cannot meet the service requirements. Therefore, when the network quality deteriorates or the target forwarding path fails, a forwarding path determination method is urgently needed to determine a forwarding path that meets the service requirements as much as possible.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a forwarding path determination method, apparatus, electronic device, and storage medium, which can determine a forwarding path that satisfies service requirements as much as possible. The technical solution is as follows:
[0007] In a first aspect, a forwarding path determination method is provided. In this method, based on necessary and non-essential constraints of a service, a forwarding path (i.e., a first forwarding path) in a communication network that satisfies the necessary and non-essential constraints is calculated. If the calculation of the first forwarding path fails, a forwarding path (i.e., a second forwarding path) in the communication network that at least satisfies the necessary constraints is determined.
[0008] The method first calculates the forwarding path that meets the necessary constraints and non-essential constraints of the service in the communication network. If the path calculation fails, the forwarding path that meets the necessary constraints in the communication network is determined, so that the determined forwarding path can meet the service requirements as much as possible.
[0009] In one possible implementation, there are multiple non-essential constraints for a service, and the multiple non-essential constraints correspond to different non-essential levels, where the non-essential level indicates the degree of non-essentiality of the corresponding non-essential constraint in the process of determining the second forwarding path. Based on this, if the calculation of the first forwarding path fails, the process of determining the second forwarding path in the communication network may be: if the calculation of the first forwarding path fails, first calculate the optimal path (i.e., the third forwarding path) in the communication network that satisfies the necessary constraints based on the necessary constraints; if the third forwarding path is calculated successfully, then calculate the second forwarding path based on the necessary constraints, multiple non-essential constraints, and multiple non-essential levels corresponding to the multiple non-essential constraints, where the calculated second forwarding path satisfies the necessary constraints and at least one non-essential constraint.
[0010] Based on the above possible implementation methods, the determined second forwarding path can not only meet the necessary constraints of the service, but also meet the requirements of at least one non-essential constraint of the service, so that the second forwarding path can meet as many constraints as possible in the global constraints to meet as many service needs as possible.
[0011] In one possible implementation, the process of calculating the second forwarding path based on multiple non-essential constraints, multiple non-essential levels corresponding to the multiple non-essential constraints, and necessary constraints may be: for a first non-essential level among the multiple non-essential levels, first calculate the second forwarding path based on the necessary constraints and each non-essential constraint whose non-essential level is higher than the first non-essential level; if the calculation of the second forwarding path fails, take the previous non-essential level of the first non-essential level as the new first non-essential level, and execute the steps of calculating the second forwarding path based on the necessary constraints and each non-essential constraint whose non-essential level is higher than the first non-essential level, until the second forwarding path is calculated successfully.
[0012] Based on the above possible implementation methods, on the basis of the global constraints composed of necessary constraints and non-essential constraints, the non-essential constraints are ignored in order from low to high non-essential levels and an attempt is made to calculate the second forwarding path. If the communication network supports the establishment of a forwarding path that satisfies a majority of non-essential constraints with consecutive high non-essential levels, this method can reduce the number of calculations of the second forwarding path, quickly determine the second forwarding path, and improve the efficiency of determining the second forwarding path.
[0013] In another possible implementation, the process of calculating the second forwarding path based on multiple non-essential constraints, multiple non-essential levels corresponding to the multiple non-essential constraints, and necessary constraints may be: for the second non-essential level among the multiple non-essential levels, first calculate the fourth forwarding path in the communication network based on the necessary constraints and each non-essential constraint with a non-essential level higher than or equal to the second non-essential level; if the fourth forwarding path is calculated successfully, then use the next non-essential level of the second non-essential level as the new second non-essential level, and execute the step of calculating the fourth forwarding path in the communication network based on the necessary constraints and each non-essential constraint with a non-essential level higher than or equal to the second non-essential level, until the calculation of the fourth forwarding path fails, and the fourth forwarding path that was successfully calculated the last time is determined as the second forwarding path.
[0014] Based on the possible implementation described above, by stacking non-essential constraints in descending order of non-essential levels on the basis of necessary constraints, an attempt is made to calculate the fourth forwarding path. If the communication network supports establishing forwarding paths that satisfy a small number of non-essential constraints with even higher non-essential levels, this approach can reduce the number of calculations of the fourth forwarding path, thereby quickly determining the second forwarding path and improving the efficiency of determining the second forwarding path.
[0015] In another possible implementation, the process of calculating the second forwarding path based on the necessary constraints, multiple non-essential constraints, and multiple non-essential levels corresponding to the multiple non-essential constraints may be: for the third non-essential level among the multiple non-essential levels, first calculate the fifth forwarding path in the communication network based on the necessary constraints, the non-essential constraints of the third non-essential level, and each target constraint; if the fifth forwarding path is successfully calculated, then use the non-essential constraints of the third non-essential level as the new target constraint, and use the next non-essential level of the third non-essential level as the new third non-essential level, and execute the above-mentioned calculation based on the necessary constraints, the third non-essential level, and the target constraint. The steps of calculating a fifth forwarding path in the communication network based on the non-essential constraints of the non-essential level and each target constraint; or, if the calculation of the fifth forwarding path fails, taking the next non-essential level of the third non-essential level as a new third non-essential level, executing the steps of calculating the fifth forwarding path in the communication network based on the necessary constraints, the non-essential constraints of the third non-essential level, and each target constraint, until all non-essential constraints are calculated, and determining the fifth forwarding path that was successfully calculated last as the second forwarding path, wherein the target constraint is a non-essential constraint that can be used to calculate the forwarding path after being superimposed with the necessary constraint.
[0016] Based on the above possible implementation method, on the basis of the necessary constraints, non-essential constraints are sequentially superimposed in descending order of non-essential levels to attempt to calculate the fifth forwarding path. In the event of a path calculation failure, the currently superimposed non-essential constraints can be ignored, and non-essential constraints with lower non-essential levels can be continued to attempt to calculate the fifth forwarding path until all non-essential constraints are traversed. The fifth forwarding path that is finally successfully calculated is used as the second forwarding path. Since the fifth forwarding path that is finally successfully calculated satisfies the most constraints, the second forwarding path that is finally determined can meet as many business needs as possible.
[0017] In one possible implementation, if the calculation of the first forwarding path fails, the process of determining the second forwarding path in the communication network may be: if the calculation of the first forwarding path fails, based on the necessary constraints, calculating the optimal path (i.e., the third forwarding path) in the communication network that satisfies the necessary constraints.
[0018] Based on the above possible implementations, the third forwarding path can be calculated based on necessary constraints without attempting to calculate the second forwarding path, thus saving computing resources.
[0019] In one possible implementation, there are multiple non-essential constraints for a service, wherein at least one non-essential constraint is related to the service level agreement (SLA) of the service. On this basis, the process of determining the second forwarding path in the communication network if the calculation of the first forwarding path fails may be: if the calculation of the first forwarding path fails, first calculate the optimal path in the communication network that meets the necessary constraints based on the necessary constraints; if the optimal path is calculated successfully, calculate the second forwarding path based on the necessary constraints and the non-essential constraints related to the service level agreement (SLA) of the service.
[0020] Based on the above possible implementation manner, by using the path that satisfies the necessary constraint condition and at least one non-essential constraint condition related to the SLA as the second forwarding path, the second forwarding path can meet the SLA requirements of the service as much as possible.
[0021] In a possible implementation, the non-essential constraint condition is related to a service level agreement (SLA) of the service.
[0022] Based on the above possible implementation manner, the determined second forwarding path can meet the SLA requirements of the service.
[0023] In a second aspect, a forwarding path determination device is provided, configured to execute the forwarding path determination method. Specifically, the forwarding path determination device includes a functional module configured to execute the forwarding path determination method provided in the first aspect or any optional manner of the first aspect.
[0024] According to a third aspect, an electronic device is provided. The electronic device includes a processor, wherein the processor is configured to execute program code so that the electronic device performs operations as performed by the forwarding path determination method described above.
[0025] According to a fourth aspect, a computer-readable storage medium is provided, wherein at least one program code is stored in the storage medium, and the program code is read by a processor to enable an electronic device to execute the operations performed by the forwarding path determination method.
[0026] In a fifth aspect, a computer program product or computer program is provided, which includes a program code, and the program code is stored in a computer-readable storage medium. The processor of an electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the electronic device executes the method provided in the above-mentioned first aspect or various optional implementations of the first aspect.
[0027] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] FIG1 is a schematic diagram of a communication network provided in an embodiment of the present application;
[0029] FIG2 is a flow chart of a forwarding path determination method provided in an embodiment of the present application;
[0030] FIG3 is a schematic structural diagram of a control device provided in an embodiment of the present application;
[0031] FIG4 is a business flow diagram of a control device provided in an embodiment of the present application;
[0032] FIG5 is a schematic structural diagram of a forwarding path determination device provided in an embodiment of the present application;
[0033] FIG6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0035] The present application provides a forwarding path determination method, and the implementation environment of the forwarding path determination method is introduced as follows.
[0036] For example, FIG1 is a schematic diagram of a communication network provided in an embodiment of the present application. As shown in FIG1 , a communication network 100 is used to provide data forwarding services for a business. The communication network 100 includes a control device 101 and multiple network devices 102. The control device 101 is connected to the multiple network devices 102 and is used to control the multiple network devices 102. The control device 101 is a software defined networking (SDN) controller in the data communication field, an SDN controller in the transmission field, or other types of controllers. Here, the embodiment of the present application does not limit the controller type of the control device 101.
[0037] Network devices 102 are devices with data forwarding capabilities, such as routers and switches. Network devices 102 in the communication network 100 are connected to each other, and multiple network devices 102 form a service forwarding path 103. Service traffic is transmitted within the communication network 100 via the forwarding path 103. Based on the direction of traffic transmission along the forwarding path 103, the first network device 102 to receive traffic along the forwarding path 103 is called a source node or ingress node, and the last network device 102 to output traffic along the forwarding path 103 is called a sink node or egress node. Network devices 102 between the source node and the sink node along the forwarding path 103 are called intermediate nodes, where intermediate nodes are optional nodes along the forwarding path 103. In other embodiments, the forwarding path 103 does not include intermediate nodes. It should be understood that the network devices 102 in the communication network 100 may form multiple forwarding paths 103, and the same network device 102 may be located on at least one forwarding path 103. Forwarding paths 103 may also be referred to as tunnels.
[0038] In one possible implementation, the control device 101 determines a forwarding path for the service by executing the forwarding path determination method provided in the present application, and establishes the determined forwarding path in the communication network 100 so that the traffic of the service is transmitted on the established forwarding path.
[0039] In other embodiments, the control device 101 does not belong to the communication network 100, but is located outside the communication network 100. In this case, the control device 101 and the communication network 100 form a forwarding path determination system or a forwarding path calculation system. The embodiments of the present application do not limit the positional relationship between the control device 101 and the communication network 100.
[0040] The forwarding path determination method provided in this application is described in detail below in conjunction with the above-mentioned communication network.
[0041] FIG2 is a flowchart of a forwarding path determination method provided in an embodiment of the present application. As shown in FIG2 , the method is executed by a control device and includes the following steps 201 - 204 .
[0042] 201. A control device obtains a path establishment request of a service, where the path establishment request indicates establishing a forwarding path for the service based on a global constraint condition of the service.
[0043] The service is any service served by the communication network. Global constraints include necessary and non-essential service constraints. A service must have at least one necessary constraint, which is a condition that must be met for the forwarding path to be established, also known as a strict constraint. A service must have at least one non-essential constraint, which is a condition that is not required for the forwarding path to be established, also known as a non-strict constraint.
[0044] The path establishment request is triggered by any of the following methods 1-3.
[0045] Method 1: The user's route establishment operation triggers a route establishment request.
[0046] For example, assuming that a forwarding path has not been configured for a certain service in the communication network, or a forwarding path configured for the service already exists in the communication network (i.e., an existing forwarding path), according to service requirements, a new forwarding path needs to be created for the service, and the user requests the control device to establish a forwarding path for the service through the terminal.
[0047] For example, the terminal displays the forwarding path establishment interface of the service, which includes a global constraint configuration table, wherein the global constraint configuration table is used to configure necessary constraints and non-essential constraints for the service from multiple constraints. These multiple constraints constitute the global constraints of the forwarding path of the service.
[0048] In one possible implementation, at least one of the global constraints is related to the service level agreement (SLA) of the business, and the remaining constraints are related to forwarding path attributes. As shown in the global constraint configuration table in Table 1 below, the constraints related to SLA include bandwidth constraints, delay constraints, packet loss rate constraints, and bit error rate constraints of the forwarding path. In other embodiments, the global constraints may also include other constraints related to SLA in addition to bandwidth, delay, and packet loss rate. Here, the embodiments of the present application do not limit the type and number of constraints related to SLA in the global constraints.
[0049] Table 1
[0050] As shown in the global constraint configuration table in Table 1, the constraints related to the path attributes include affinity attribute constraints of the forwarding path, explicit path constraints, and hop count constraints, etc. In other embodiments, the global constraints may also include other constraints related to the forwarding path attributes in addition to affinity attributes, explicit paths, and hop counts. Here, the embodiment of the present application does not limit the type and number of constraints related to path attributes in the global constraints. It should be understood that the global constraints shown in Table 1 are an example. In other embodiments, the global constraints may not include constraints related to SLAs, and may also include other types of constraints required by the business for the forwarding path in addition to constraints related to SLAs and forwarding path attributes. Multiple constraints in the global constraints can be set according to the actual application scenario. Here, the embodiment of the present application does not limit the type and number of constraints in the global constraints.
[0051] Based on business requirements, the user selects at least one constraint from the global constraints and configures it as a necessary constraint, and configures the remaining constraints as non-necessary constraints. As shown in Table 1, each constraint in the global constraints corresponds to a necessary constraint configuration box (i.e., whether it is a necessary constraint). For any constraint in the global constraints, if the business requires that the forwarding path must meet this constraint, the user enters "Y" in the necessary constraint configuration box corresponding to this constraint to indicate that this necessary constraint is configured as a necessary constraint. If the business requires that the forwarding path does not have to meet this constraint, the user enters "N" in the necessary constraint configuration box corresponding to this constraint to indicate that this necessary constraint is configured as a non-necessary constraint. As shown in Table 1, bandwidth constraints and delay constraints are configured as necessary constraints, and the remaining constraints in Table 1 are configured as non-necessary constraints.
[0052] It should be understood that since users configure necessary constraints based on business needs, the results of configuring necessary constraints are uncontrollable. When global constraints include multiple SLA-related constraints, users may configure all SLA-related constraints as necessary constraints, or configure some SLA-related constraints as necessary constraints and configure the remaining SLA-related constraints as non-essential constraints. Or users may configure SLA-related constraints as non-essential constraints and configure constraints related to forwarding path attributes as necessary constraints.
[0053] In another possible implementation, when there are multiple non-essential constraints, the global constraint configuration table is also used to configure non-essential levels for multiple non-essential constraints, wherein the non-essential level indicates the degree of non-essentiality of the corresponding non-essential constraint in the process of determining the forwarding path of the service. In some embodiments, the higher the non-essential level, the lower the non-essential degree of the corresponding non-essential constraint, that is, the higher the degree of necessity. In other embodiments, the lower the non-essential level, the higher the degree of non-essentiality of the corresponding non-essential constraint, that is, the lower the degree of necessity. It should be understood that the necessary constraint is the constraint with the highest default necessity among the global constraints, so there is no need to configure a non-essential level for the necessary constraint.
[0054] The global constraint configuration table shown in Table 2 below also includes a plurality of non-essential level configuration boxes, each of which corresponds to each constraint in the global constraint. In the case where there are multiple non-essential constraints in the global constraint, it is used to input the non-essential level in the non-essential level configuration box corresponding to each non-essential constraint according to business needs. As shown in Table 2, the non-essential levels of the packet loss rate constraint, the bit error rate constraint, the affinity constraint, and the number of constraints are: level 1, level 2, level 3, level 4, and level 5, respectively, where level 1 is higher than level 2, level 2 is higher than level 3, level 3 is higher than level 4, and level 4 is higher than level 5. The lower the non-essential level, the higher the non-essential degree of the corresponding non-essential constraint.
[0055] Table 2
[0056] It should be understood that the number of non-essential levels depends on the number of non-essential constraints in the global constraints. Each non-essential constraint corresponds to a non-essential level. The five non-essential levels shown in Table 1 are an example. In other embodiments, there may be fewer than five or more than five non-essential levels. Here, the embodiments of the present application do not limit the number of non-essential constraints in the global constraints and the order of the non-essential levels.
[0057] After configuring the necessary constraints, non-essential constraints, and non-essential levels corresponding to the non-essential constraints for the service, the user selects the confirmation option in the forwarding path establishment interface to indicate that a forwarding path is established for the service based on the configuration of the global constraints in the global constraint configuration table, thereby completing the path establishment operation for the service. In response to the selection of the confirmation option, the terminal sends a path establishment request to the control device, and the control device receives the path establishment request. At this time, the path establishment request indicates that a forwarding path that meets the necessary constraints is established for the service based on the necessary constraints and non-essential constraints in the global constraints. In the case where non-essential levels are configured for non-essential constraints, the path establishment request also indicates non-essential levels corresponding to multiple non-essential constraints, and the multiple non-essential constraints correspond to different non-essential levels.
[0058] The above description uses the example of a user configuring necessary and non-essential constraints for a service. In other embodiments, the user may not configure necessary and non-essential constraints for a service. In this case, the control device determines the necessary and non-essential constraints within the global constraints based on the default configuration of the global constraints. The default configuration of the global constraints is used to record the necessary and non-essential constraints within the global constraints. In other embodiments, the default configuration of the global constraints is also used to record the non-essential level corresponding to each non-essential constraint.
[0059] Method 2: A user's change operation on the global constraint of an existing forwarding path triggers a path establishment request.
[0060] If a service requires a change to the global constraints of a forwarding path, the user can modify the global constraints of the existing forwarding path through the terminal to trigger a path establishment request. Modifying the global constraints of a forwarding path includes changing at least one required constraint in the global constraints to a non-required constraint, changing at least one non-required constraint in the global constraints to a required constraint, changing the non-required level of a non-required constraint, adding a required constraint, reducing a required constraint, adding a non-required constraint, or reducing a non-required constraint.
[0061] For example, the terminal displays a constraint change interface for the service. The constraint change interface includes a global constraint configuration table for an existing forwarding path. The user reconfigures the global constraints for the service in this global constraint configuration table. The configuration method can refer to the above-mentioned method 1. After the configuration is completed, the confirmation option in the constraint change interface is selected to indicate that a new forwarding path is established for the service based on the updated global constraints, thereby completing the change operation of the global constraints of the existing forwarding path. In response to the selection of the confirmation option in the constraint change interface, the terminal sends a path establishment request to the control device. Accordingly, the control device receives the path forwarding request. At this time, the path establishment request indicates that the global constraints of the existing forwarding path are replaced with the updated global constraints, and a new forwarding path is established based on the updated global constraints to replace the existing forwarding path.
[0062] Mode 3: A failure occurs in the existing forwarding path of the service or the existing forwarding path does not meet the necessary constraints of the service, triggering a path establishment request.
[0063] The failure of the existing forwarding path to meet the necessary constraints of the service may be caused by degradation of the network quality of the communication network or other reasons.
[0064] The control device performs a security check on multiple forwarding paths established in the communication network. If a forwarding path is detected to be faulty, a path establishment request is generated and the faulty forwarding path is deleted. Alternatively, the control device performs a necessary constraint check on multiple forwarding paths established in the communication network. If a forwarding path is detected to not meet any necessary constraint for a corresponding service, a path establishment request is generated for the forwarding path that does not meet the necessary constraint. In this case, the path establishment request instructs the re-establishment of a forwarding path that meets the necessary constraint for the corresponding service based on the global constraint of the faulty (or non-constrained) forwarding path.
[0065] When the control device receives the path establishment request, it executes the following step 202 based on the global constraint condition indicated in the path request.
[0066] 202. The control device calculates a first forwarding path in the communication network based on necessary constraints and non-essential constraints of the service.
[0067] The first forwarding path is a reachable forwarding path that satisfies the global service constraints. A reachable forwarding path refers to a forwarding path through which messages can be reached between a source node and a destination node. In one possible implementation, there may be at least one reachable forwarding path in the communication network that satisfies the global service constraints. The control device then uses the optimal forwarding path among these multiple reachable forwarding paths as the first forwarding path. The optimal forwarding path may be the forwarding path with the lowest path cost among these multiple reachable forwarding paths.
[0068] In one possible implementation, the control device obtains the current topology information of the communication network. The topology information indicates the connection relationship between each network device in the communication network, the properties of each network device (such as bandwidth, latency, packet loss rate), and the properties of the established forwarding path (such as affinity attributes, explicit path, number of hops), etc.
[0069] The control device calculates an optimal path that satisfies the global constraints based on the topology information and the global constraints of the service. If an optimal path that satisfies the global constraints can be calculated, the calculated optimal path becomes the first forwarding path, indicating that the calculation of the first forwarding path succeeds. If an optimal path that satisfies the global constraints cannot be calculated, the calculation of the first forwarding path fails.
[0070] If the first forwarding path is calculated successfully and the first forwarding path has not yet been established in the communication network, the control device establishes the first forwarding path in the communication network and configures the first forwarding path as the forwarding path for the service. For example, the control device sends relevant information of the service (such as an identifier of the service) to each network device on the first forwarding path, so that each network device on the first forwarding path transmits the traffic of the service on the first forwarding path based on the relevant information of the service.
[0071] If the calculation of the first forwarding path is successful and the first forwarding path has already been established in the communication network, the control device does not need to re-establish the first forwarding path in the communication network. If the already established first forwarding path was originally the forwarding path for this service, the control device does not need to re-configure the first forwarding path as the forwarding path for this service. If the already established first forwarding path was not originally the forwarding path for this service, the control device configures the first forwarding path as the forwarding path for this service.
[0072] If the calculation of the first forwarding path fails, the following step 203 is executed to determine a forwarding path that satisfies the service requirements as much as possible.
[0073] 203. If the calculation of the first forwarding path fails, the control device determines a second forwarding path in the communication network, where the second forwarding path satisfies necessary constraints.
[0074] The second forwarding path is a reachable forwarding path that satisfies all necessary constraints of the service. There are two possible scenarios for the second forwarding path satisfying all necessary constraints of the service. The first scenario is that the second forwarding path satisfies all necessary constraints of the service and at least one non-essential constraint of the service. The second scenario is that the second forwarding path satisfies all necessary constraints of the service and does not satisfy all non-essential constraints of the service.
[0075] If the service has multiple non-essential constraints, each corresponding to different non-essential levels, the control device determines the second forwarding path based on the necessary constraints of the service, the multiple non-essential constraints of the service, and the non-essential levels of the multiple non-essential constraints. This implementation is described in detail below in conjunction with steps 2031-2032.
[0076] Step 2031: If the calculation of the first forwarding path fails, the control device calculates a third forwarding path in the communication network based on necessary constraints. The third forwarding path is the optimal path in the communication network that meets the necessary constraints of the service.
[0077] There may be at least one reachable forwarding path in the communication network that meets the necessary constraint conditions, and the control device uses the optimal forwarding path among the multiple reachable forwarding paths as the third forwarding path.
[0078] In one possible implementation, the control device calculates an optimal path that satisfies all necessary constraints based on current topology information of the communication network and all necessary constraints of the service. If the optimal path that satisfies all necessary constraints can be calculated, the calculated optimal path is the third forwarding path, and the calculation of the third forwarding path is successful. If the optimal path that satisfies all necessary constraints cannot be calculated, the calculation of the third forwarding path fails.
[0079] When calculating the third forwarding path, if there are multiple forwarding paths that meet all necessary constraints, the control device determines a forwarding path with the smallest path cost among the forwarding paths as the third forwarding path.
[0080] Table 3 below shows the path costs and constraint fulfillment for seven reachable forwarding paths (PATH1-PATH7) in a communication network. PATH2-PATH7 satisfy all necessary constraints, and PATH2 has the lowest path cost among PATH2-PATH7, making PATH2 the third forwarding path.
[0081] Table 3
[0082] Among them, "Y" represents that the forwarding path meets the corresponding constraint condition, and "N" represents that the forwarding path does not meet the corresponding constraint condition.
[0083] It should be understood that during forwarding path calculation, the control device does not exhaustively enumerate all reachable forwarding paths. Instead, it considers a combination of different constraints to calculate the optimal path. For example, in step 2031, the optimal path is calculated based on the global constraints of the service. That is, during forwarding path calculation, the control device does not generate a table similar to Table 3. Table 3 is provided to illustrate an embodiment of the present application, assuming the existence of seven reachable forwarding paths and assuming the path cost is minimized as the calculation objective.
[0084] Step 2032: If the third forwarding path is calculated successfully, the control device calculates a second forwarding path based on the necessary constraint conditions of the service, multiple non-essential constraint conditions, and multiple non-essential levels corresponding to the multiple non-essential constraint conditions.
[0085] The second forwarding path calculated at this time is a reachable forwarding path that satisfies the necessary constraint condition and at least one non-essential constraint condition.
[0086] In one possible implementation, the control device attempts to calculate a second forwarding path that satisfies more non-essential constraints by adding or reducing non-essential constraints based on the order of multiple non-essential levels on the basis of necessary constraints. The following is an introduction to the process of attempting to calculate the second forwarding path in combination with any of methods AC.
[0087] Method A: Based on the necessary constraints, the corresponding non-essential constraints are ignored in order from low to high non-essential levels, and the second forwarding path is attempted to be calculated until the second forwarding path is calculated successfully.
[0088] A1. For a first non-essential level among multiple non-essential levels, the control device calculates a second forwarding path based on the necessary constraint condition and each non-essential constraint condition of a non-essential level higher than the first non-essential level.
[0089] The first non-essential level is a non-essential level other than the highest non-essential level among the multiple non-essential levels.
[0090] The control device calculates an optimal path in the communication network based on the current topology information of the communication network, all necessary constraints for the service, and all non-essential constraints corresponding to the second non-essential level. If an optimal path is calculated, the calculated optimal path is the second forwarding path, i.e., the second forwarding path calculation is successful, and step A2 below does not need to be performed. If an optimal path is not calculated, the current attempt to calculate the second forwarding path that satisfies the non-essential constraints has failed, and step A2 below continues to be performed.
[0091] A2. If the calculation of the second forwarding path fails, the control device uses the previous non-essential level of the first non-essential level as the new first non-essential level and executes the above step A1 until the calculation of the second forwarding path succeeds.
[0092] Taking Table 3 as an example, starting from the lowest non-essential level (i.e., level 5) among the multiple non-essential levels, the control device uses level 5 as the first non-essential level, and levels 1-4 as the second non-essential level. Ignoring the non-essential constraints corresponding to level 5 (hop count constraint), the optimal path calculation is performed based on six constraints: bandwidth constraint, delay constraint, packet loss rate constraint, bit error rate constraint, affinity constraint, and explicit path constraint. Since no forwarding path in PATH1-7 meets these six constraints, the path calculation fails.
[0093] Following the ascending order of non-essential levels, the control device sets level 4 as the new first non-essential level, and levels 1-3 as the new second non-essential level. The non-essential constraints corresponding to levels 4-5 are ignored, and the optimal path is calculated based on five constraints: bandwidth, latency, packet loss rate, bit error rate, and affinity. Assuming the path calculation objective is to minimize the path cost, since both PATH6 and PATH7 meet these five constraints and the path cost of PATH6 is less than that of PATH7, PATH6 is calculated as the optimal path, making it the second forwarding path. This concludes the attempt to calculate the second forwarding path.
[0094] Based on the above-mentioned method A, on the basis of global constraints, non-essential constraints are ignored in order from low to high non-essential levels and an attempt is made to calculate the second forwarding path. If the communication network supports the establishment of a forwarding path that satisfies a majority of non-essential constraints with consecutive high non-essential levels, this method can reduce the number of calculations of the second forwarding path, quickly determine the second forwarding path, and improve the efficiency of determining the second forwarding path.
[0095] When traversing to the point where the second highest non-essential level among multiple non-essential levels is the first non-essential level and attempting to calculate the second forwarding path, the second non-essential level is the highest non-essential level among the multiple non-essential levels. If the calculation of the second forwarding path based on all necessary constraints and the non-essential constraints of the highest non-essential level fails, the control device uses the third forwarding path calculated in step 2031 as the second forwarding path.
[0096] Method B: Based on the necessary constraints, non-essential constraints are added in descending order of their non-essential levels, and an attempt is made to calculate the optimal path until the calculation fails. The last successfully calculated forwarding path is used as the second forwarding path.
[0097] B1. For a second non-essential level among the multiple non-essential levels, the control device calculates a fourth forwarding path in the communication network based on the necessary constraint and each non-essential constraint whose non-essential level is higher than or equal to the second non-essential level.
[0098] The second non-essential level is a non-essential level other than the lowest non-essential level among the multiple non-essential levels. The fourth forwarding path is a reachable forwarding path that satisfies the necessary constraint conditions and each non-essential constraint condition whose non-essential level is higher than or equal to the second non-essential level.
[0099] The control device calculates the optimal path in the communication network based on the current topology information of the communication network, all necessary constraints of the service, and each non-essential constraint whose non-essential level is higher than or equal to the second non-essential level. If the optimal path is calculated, the calculated optimal path is the fourth forwarding path, that is, the fourth forwarding path is calculated successfully, and the following step B2 is continued.
[0100] B2. If the calculation of the fourth forwarding path succeeds, the control device uses the next non-essential level of the second non-essential level as the new second non-essential level and executes step B1 above until the calculation of the fourth forwarding path fails, and determines the fourth forwarding path that was successfully calculated last as the second forwarding path.
[0101] Each time the control device calculates a fourth forwarding path, the control device adds the fourth forwarding path to the path sequence. The fourth forwarding paths in the path sequence are sorted in a forward-to-backward calculation order until the calculation of the fourth forwarding path fails. The last fourth forwarding path in the path sequence is determined as the second forwarding path.
[0102] Alternatively, after calculating the first fourth forwarding path, the control device replaces the previously calculated fourth forwarding path with the new fourth forwarding path each time a new fourth forwarding path is calculated until the calculation of the fourth forwarding path fails, and the currently retained fourth forwarding path is used as the second forwarding path.
[0103] Taking Table 3 as an example, starting from the highest non-essential level (i.e., level 1) among multiple non-essential levels, the control device uses level 1 as the second non-essential level and superimposes the non-essential constraints of level 1 on the necessary constraints to calculate the fourth forwarding path. That is, the optimal path is calculated according to the three constraints of bandwidth constraint, delay constraint, and packet loss rate constraint. Assuming that the path calculation goal is to minimize the path cost, since PATH4-7 are all forwarding paths that meet these three constraints, and PATH4 has the lowest path cost among PATH4-7, PATH4 will be calculated as the optimal path, that is, PATH4 will be a fourth forwarding path.
[0104] Following the non-essential levels in descending order, the control device uses level 2 as the new second non-essential level, adds the non-essential constraints of level 2 to the constraints used in the previous calculation of the fourth forwarding path, and recalculates the fourth forwarding path. Specifically, the control device calculates the optimal path based on the four constraints: bandwidth constraint, latency constraint, packet loss rate constraint, and bit error rate constraint. Assuming that the path calculation objective is to minimize the path cost, since both PATH4 and PATH6-7 meet these four constraints, and PATH4 has the lowest path cost among PATH4 and PATH6-7, PATH4 is still calculated as the optimal path, i.e., PATH4 is the new fourth forwarding path.
[0105] Following the non-essential levels in descending order, the control device uses level 3 as the new second non-essential level, adds the non-essential constraints of level 3 to the constraints used in the previous calculation of the fourth forwarding path, and recalculates the fourth forwarding path. Specifically, the control device calculates the optimal path based on the five constraints: bandwidth constraint, latency constraint, packet loss rate constraint, bit error rate constraint, and affinity constraint. Assuming that the path calculation objective is to minimize the path cost, since PATH6-7 all meet these five constraints and PATH6 has the lowest path cost among PATH6-7, PATH6 is calculated as the optimal path, and the fourth forwarding path is updated from PATH4 to PATH6.
[0106] Following the non-essential levels from highest to lowest, the control device uses level 4 as the new second non-essential level. The control device adds the non-essential constraints of level 4 to the constraints used in the previous calculation of the fourth forwarding path, and recalculates the fourth forwarding path. Specifically, the control device calculates the optimal path based on the six constraints: bandwidth constraint, latency constraint, packet loss rate constraint, bit error rate constraint, affinity constraint, and explicit path constraint. Since PATHs 1-7 do not meet these six constraints, the calculation of the fourth forwarding path fails. The attempt to calculate the fourth forwarding path ends, and PATH 6 is used as the second forwarding path.
[0107] In descending order of non-essential levels, if the communication network supports establishing a fourth forwarding path that satisfies a small number of consecutive non-essential levels of non-essential constraints, the above-mentioned method B can be used to sequentially superimpose non-essential constraints of higher non-essential levels and attempt to calculate the fourth forwarding path. This can reduce the number of calculations of the fourth forwarding path, quickly determine the second forwarding path, and improve the efficiency of determining the second forwarding path.
[0108] Based on the above-mentioned method B, on the basis of the necessary constraints, non-essential constraints are sequentially superimposed in descending order of non-essential levels to attempt to calculate the fourth forwarding path. This can reduce the number of calculations of the fourth forwarding path, thereby quickly determining the second forwarding path and improving the efficiency of determining the second forwarding path.
[0109] When attempting to calculate the fourth forwarding path with the highest non-essential level among the multiple non-essential levels as the second non-essential level, if the calculation of the fourth forwarding path based on all necessary constraints and the non-essential constraints of the highest non-essential level fails, the control device uses the third forwarding path calculated in step 2031 as the second forwarding path.
[0110] Method C: Based on the necessary constraints, non-essential constraints are added in descending order of their non-essential levels to try to calculate the optimal path. If the addition of a non-essential constraint causes path calculation to fail, this non-essential constraint is ignored, and non-essential constraints with lower non-essential levels are added again until all non-essential constraints are traversed. The last successfully calculated forwarding path is used as the second forwarding path.
[0111] C1. For the third non-essential level among the multiple non-essential levels, the control device calculates a fifth forwarding path in the communication network based on the necessary constraints, the non-essential constraints of the third non-essential level, and each target constraint, where the target constraint is a non-essential constraint that can be used to calculate the forwarding path after being superimposed with the necessary constraints.
[0112] The fifth forwarding path is a reachable forwarding path that satisfies the necessary constraint conditions, the non-essential constraint conditions of the third non-essential level, and each target constraint condition.
[0113] The third non-essential level is any non-essential level from the multiple non-essential levels. The control device first determines the highest non-essential level among the multiple non-essential levels as the third non-essential level, in descending order of the non-essential levels. Since the non-essential constraints of the highest non-essential level have not yet been superimposed with the necessary constraints for optimal path calculation, it is not yet possible to determine whether the target constraint exists among the multiple non-essential constraints. Therefore, the control device calculates a fifth forwarding path in the communication network based on the necessary constraints and the non-essential constraints of the highest non-essential level, and determines whether the target constraint exists based on the calculation result of the third forwarding path.
[0114] For example, the control device calculates an optimal path in the communication network based on the current topology information of the communication network, all necessary constraints for the service, and the non-essential constraints of the highest non-essential level. If an optimal path is calculated, the calculated optimal path is a fifth forwarding path, i.e., the calculation of the fifth forwarding path is successful. If the calculation of the fifth forwarding path is successful, the control device uses the non-essential constraints of the highest non-essential level as the target constraint, and the next non-essential level after the highest non-essential level as the new third non-essential level, and executes step C1 for the new third non-essential level. If the calculation of the fifth forwarding path fails and the target constraint still does not exist, the control device uses the next non-essential level after the highest non-essential level (i.e., the next highest non-essential level) as the new third non-essential level, and calculates the fifth forwarding path again based on the necessary constraints and the non-essential constraints of the next highest non-essential level. This is repeated in this manner until the target constraint is determined, and step C1 is executed for the latest third non-essential level. If the calculation of the fifth forwarding path still fails based on all necessary constraints and the non-essential constraints of the lowest non-essential level among the multiple non-essential levels, and there is no target constraint among the multiple non-essential constraints, the control device determines the third forwarding path calculated in step 2031 as the second forwarding path.
[0115] It should be understood that, if the target constraint condition has not yet been determined, the fifth forwarding path only needs to meet the necessary constraint condition and the current third non-essential level. If the target constraint condition is determined, this step C1 is performed for the latest third non-essential level.
[0116] When executing this step C1, the control device calculates the optimal path in the communication network based on the current topology information of the communication network, the non-essential constraints of the third non-essential level, and the various target constraints. If the optimal path is calculated, the calculated optimal path is a fifth forwarding path, that is, the calculation of the fifth forwarding path is successful, and the following step C2 is continued to be executed. If the optimal path is not calculated, the calculation of the fifth forwarding path fails and the process jumps to the following step C3.
[0117] C2. If the fifth forwarding path is calculated successfully, the control device uses the non-essential constraint condition of the third non-essential level as the new target constraint condition, uses the next non-essential level of the third non-essential level as the new third non-essential level, and executes the above step C1 for the new third non-essential level.
[0118] C3. If the calculation of the fifth forwarding path fails, the next non-essential level of the third non-essential level is used as a new third non-essential level. Step C1 is performed for the new third non-essential level until all non-essential constraints are calculated. The fifth forwarding path that was successfully calculated the last time is determined as the second forwarding path.
[0119] Taking Table 3 as an example, starting from the highest non-essential level (i.e., level 1) among multiple non-essential levels, the control device uses level 1 as the third non-essential level, and superimposes the non-essential constraints of level 1 on the necessary constraints to calculate the fifth forwarding path. That is, the optimal path is calculated according to the three constraints of bandwidth constraint, delay constraint, and packet loss rate constraint. Assuming that the path calculation goal is to minimize the path cost, since PATH4-7 are all forwarding paths that meet these three constraints, and PATH4 has the lowest path cost among PATH4-7, PATH4 will be calculated as the optimal path, that is, PATH4 will be a fifth forwarding path.
[0120] In descending order of non-essential levels, the control device uses the non-essential constraints of level 1 as the target constraints, and then uses level 2 as the new third non-essential level. The non-essential constraints of level 2 are superimposed on the constraints used in the previous calculation of the fifth forwarding path, and the fifth forwarding path is calculated again. That is, the optimal path is calculated based on the four constraints: bandwidth constraint, delay constraint, packet loss rate constraint, and bit error rate constraint. Assuming that the path calculation target is to minimize the path cost, since both PATH4 and PATH6-7 meet these four constraints, and PATH4 has the lowest path cost among PATH4 and PATH6-7, PATH4 is still calculated as the optimal path, that is, PATH4 is the new fifth forwarding path.
[0121] In descending order of non-essential levels, the control device uses level 2 non-essential constraints as the new target constraints, and then uses level 3 as the new third non-essential level. The control device adds the level 3 non-essential constraints to the constraints used in the previous calculation of the fifth forwarding path, and recalculates the fifth forwarding path. Specifically, the control device calculates the optimal path based on the five constraints: bandwidth constraint, latency constraint, packet loss rate constraint, bit error rate constraint, and affinity constraint. Assuming that the path calculation target is to minimize the path cost, since PATH6-7 all meet these five constraints and PATH6 has the lowest path cost among PATH6-7, PATH6 is calculated as the optimal path, and the fifth forwarding path is updated from PATH4 to PATH6.
[0122] In descending order of non-essential levels, the control device uses level 3 non-essential constraints as the new target constraints, and then uses level 4 as the new third non-essential level. The control device adds the level 4 non-essential constraints to the constraints used in the previous calculation of the fifth forwarding path, and recalculates the fifth forwarding path. Specifically, the control device calculates the optimal path based on the six constraints: bandwidth constraints, latency constraints, packet loss rate constraints, bit error rate constraints, affinity constraints, and explicit path constraints. Since PATHs 1-7 do not meet these six constraints, the calculation of the fifth forwarding path fails.
[0123] Following the non-essential levels in descending order, without using the non-essential constraints of level 4 as the target constraint (i.e., ignoring the non-essential constraints of level 4), and using level 5 as the new third non-essential level, the non-essential constraints of level 5 are added to the constraints used in the most recently successful calculation of the fifth forwarding path. The fifth forwarding path is then calculated again, based on the six constraints: bandwidth constraint, latency constraint, packet loss rate constraint, bit error rate constraint, affinity constraint, and hop count constraint. Since only PATH7 among PATH1-7 meets these six constraints, the fifth forwarding path is updated from PATH6 to PATH7. Since all non-essential constraints have been exhausted at this point, PATH7 is the last successfully calculated fifth forwarding path, and PATH7 is determined as the second forwarding path.
[0124] Alternatively, each time the control device determines a target constraint condition, it adds this target constraint condition to the first condition sequence, and for the latest third non-essential level, calculates the fifth forwarding path based on the necessary constraint condition and each target constraint condition in the first condition sequence, until all non-essential constraint conditions are traversed, and determines the fifth forwarding path that is successfully calculated for the last time as the second forwarding path.
[0125] Based on method C, on the basis of necessary constraints, non-essential constraints are stacked in descending order of non-essential levels to attempt to calculate a fifth forwarding path. If path calculation fails, the currently stacked non-essential constraints can be ignored, and non-essential constraints with lower non-essential levels are continuously stacked to attempt to calculate a fifth forwarding path. This continues until all non-essential constraints have been traversed. The last successfully calculated fifth forwarding path is then used as the second forwarding path. Since the last successfully calculated fifth forwarding path satisfies the most constraints, the ultimately determined second forwarding path can meet the most service requirements. In other words, the determined second forwarding path is the forwarding path that best satisfies service requirements in the communication network.
[0126] In another possible implementation, based on the necessary constraints, the control device attempts to calculate the optimal path by stacking non-essential constraints in order from low to high non-essential levels. If the stacking of a non-essential constraint causes the path calculation to fail, the non-essential constraint is ignored, and non-essential constraints with higher non-essential levels are stacked until all non-essential constraints are traversed, and the last successfully calculated forwarding path is used as the second forwarding path. This possible implementation is similar to Method C, but the direction of traversing the non-essential constraints is opposite. The specific implementation process of this possible implementation can refer to Method C. This possible implementation can also achieve the beneficial effects of Method C, and this possible implementation will not be further described in the embodiments of this application.
[0127] The second forwarding path determined in steps 2031-2032 can satisfy at least one non-essential constraint of the service on the basis of satisfying the necessary constraint conditions of the service, so that the second forwarding path can satisfy as many constraints as possible in the global constraint conditions to meet as many service requirements as possible.
[0128] In other embodiments, the user does not set a non-essential level for each non-essential constraint, resulting in the received path establishment request not indicating the non-essential level for each non-essential constraint, and the default configuration of the global constraints does not record the non-essential level for each non-essential constraint. In this case, the non-constraints in the global constraints do not have a non-essential level. If the non-constraints in the global constraints do not have a non-essential level, the control device implements step 203 using the following method D or method E.
[0129] Method D: If the calculation of the first forwarding path fails, the control device calculates a third forwarding path in the communication network based on the necessary constraints. If the calculation of the third forwarding path succeeds, the calculated third forwarding path is determined as the second forwarding path. If the calculation of the third forwarding path fails, the path calculation is terminated and subsequent steps are not executed.
[0130] The calculation process of the third forwarding path may refer to the above step 2031 and will not be repeated here.
[0131] Based on approach D, the control device only needs to calculate the third forwarding path based on the necessary constraints, without attempting to calculate the second forwarding path, thus saving computing resources of the control device.
[0132] Method E: Try to calculate the optimal path according to the necessary constraints. If the calculation is successful, superimpose the non-essential constraints related to the SLA until a path that satisfies the necessary constraints and at least one non-essential constraint related to the SLA is calculated.
[0133] E1. If the calculation of the first forwarding path fails, the control device calculates a third forwarding path in the communication network based on necessary constraints.
[0134] The calculation process of the third forwarding path may refer to the above step 2031 and will not be repeated here.
[0135] E2. If the third forwarding path is calculated successfully, the control device calculates a second forwarding path based on the necessary constraints and non-essential constraints related to the SLA of the service.
[0136] If there is only one non-essential constraint condition related to the SLA in the global constraint condition, the control device performs optimal path calculation based on the necessary constraint condition of the service and the non-essential constraint condition related to the SLA. If the optimal path is calculated, the calculated optimal path is the second forwarding path. If the calculation of the optimal path fails, the third forwarding path is determined as the second forwarding path.
[0137] If there are multiple non-essential constraints related to the SLA in the global constraints, the control device sorts these multiple non-essential constraints to obtain a second condition sequence, and determines the second forwarding path based on the necessary constraints of the business, these multiple non-essential constraints, and the order of these multiple non-essential constraints in the second condition sequence. Wherein, the order of these multiple non-essential constraints in the second condition sequence is similar to the non-essential levels of the non-essential constraints mentioned above. The process of determining the second forwarding path based on the necessary constraints of the business, these multiple non-essential constraints, and the order of these multiple non-essential constraints in the second condition sequence can refer to the process of determining the second forwarding path based on the necessary constraints of the business, the multiple non-essential constraints of the business, and the non-essential levels of the multiple non-essential constraints. Here, the embodiment of the present application will not repeat the process of determining the second forwarding path based on the necessary constraints of the business, these multiple non-essential constraints, and the order of these multiple non-essential constraints in the second condition sequence.
[0138] Taking Table 3 above as an example, assuming that none of the five non-essential constraints in Table 3 have a non-essential level, the control device first calculates PATH2 as the third forwarding path based on the non-essential constraints (i.e., bandwidth constraint + latency constraint). Then, all SLA-related non-essential constraints (packet loss rate constraint + bit error rate constraint) are added to the essential constraints to calculate the optimal path. If PATH4 and PATH6-7 both meet the bandwidth constraint, latency constraint, packet loss rate constraint, and bit error rate constraint, and PATH4 has the lowest path cost among PATH4 and PATH6-7, PATH4 is determined as the second forwarding path.
[0139] Based on Method E, the control device uses, as the second forwarding path, the path that satisfies the necessary constraint conditions and at least one non-necessary constraint condition related to the SLA, so that the second forwarding path can satisfy the SLA requirements of the service as much as possible.
[0140] 204. The control device establishes a second forwarding path in the communication network.
[0141] If the second forwarding path has not been established in the communication network, the control device establishes a second forwarding path in the communication network and configures the second forwarding path as the forwarding path of the service. For example, the control device sends the relevant information of the service to each network device on the second forwarding path, so that each network device on the second forwarding path can transmit the traffic of the service based on the relevant information of the service. <MISSING_TAG><MISSING_TAG>If the second forwarding path has already been established in the communication network, the control device does not need to execute this step 204. If the established second forwarding path was originally the forwarding path of this service, the control device does not need to configure the second forwarding path as the forwarding path of this service again. If the established second forwarding path was not originally the forwarding path of this service, the control device configures the second forwarding path as the forwarding path of this service.
[0143] The forwarding path determination method shown in FIG. 2 above first calculates the paths in the communication network that satisfy the necessary constraint conditions and non-necessary constraint conditions of the service. In the case of path calculation failure, it then determines the paths in the communication network that satisfy the necessary constraint conditions, so that the determined paths can meet the service requirements as much as possible.
[0144] The embodiment shown in FIG. 2 is introduced by taking the path establishment request indicating to establish one forwarding path for the service as an example. In another possible implementation, the path establishment request may also indicate to establish M (M>1) forwarding paths for the service. If the control device does not calculate the first forwarding path according to the global constraint conditions, the control device can also determine M second forwarding paths for the service by executing the above step 202 and establish M second forwarding paths in the communication network to meet the number of forwarding paths required to be established by the service. If the control device calculates S (0<S<M) first forwarding paths according to the global constraint conditions, the control device can also determine M-S second forwarding paths for the service by executing the above step 202 and establish S-M second forwarding paths in the communication network to meet the number of forwarding paths required to be established by the service.
[0145] The embodiment shown in FIG2 is introduced in the scenario of establishing a forwarding path for a service. In another possible implementation, it may also be necessary to predict a forwarding path in the communication network that meets the service needs as much as possible based on global constraints. In this case, the control device determines a second path for the service by executing steps 202-203 without executing the above steps 201 and 204. That is, steps 201 and 204 are optional steps. Therefore, steps 201 and 204 are represented by dotted boxes in FIG2 to indicate optional steps.
[0146] The above describes the method of the embodiment of the present application. The following describes the device of the embodiment of the present application. It should be understood that the device described below has any of the functions of the control device in the above method. The above describes in detail the forwarding path determination method according to the embodiment of the present application in conjunction with Figure 2. Based on the same inventive concept, the following describes the device for implementing the forwarding path determination method of the embodiment of the present application in conjunction with Figures 3 to 5. It should be understood that the technical features described in the method embodiment are also applicable to the following device embodiment.
[0147] FIG3 is a schematic structural diagram of a control device provided in an embodiment of the present application. As shown in FIG3 , the control device 300 includes a client 301 , a path management module 302 , and a path algorithm module 303 .
[0148] The client 301 is used to manage the communication network, such as managing the topology information of the communication network and the configuration of the forwarding path, wherein the configuration of the forwarding path indicates the network devices on the forwarding path and the global constraints corresponding to the forwarding path.
[0149] The path management module 302 is responsible for managing the entire lifecycle of forwarding paths. For example, it supports creating forwarding paths for services in the communication network, modifying forwarding path constraints, sensing the network status of the communication network, optimizing forwarding paths when forwarding paths do not meet constraints, and deleting forwarding paths. The network status includes the topology status and path status of the communication network.
[0150] In some embodiments, the path management module 302 is further used to interact with network devices in the communication network to collect the network status of the communication network. When a path establishment request is received, the path algorithm module 303 is called to determine a second forwarding path for the service, and the path information of the second forwarding path is converted into a configuration and sent to the corresponding network device to establish the second forwarding path.
[0151] The path algorithm module 303 is used to determine the first forwarding path or the second forwarding path in the communication network based on the global constraints of the service, and provide the determined forwarding path to the path management module 302 so that the path management module 302 can establish the determined forwarding path in the communication network.
[0152] 4 , the interaction process between the modules in the control device 300 is described below.
[0153] FIG4 is a business process diagram of a control device provided in an embodiment of the present application, and the business process includes the following steps.
[0154] Step 0: The path management module monitors the network status of the communication network in real time.
[0155] Among them, step 0 is a step executed in real time by the path management module, without the need for user triggering. As shown in Figure 4, step 0 includes steps 0-a and 0-b. In step 0-a, the path management module interacts with network devices in the communication network in real time to perceive topological changes in the communication network and obtain topological change information of the communication network. Topological change information is used to indicate topological changes in the communication network. Topological changes in the communication network include the addition, deletion, and attribute changes of network devices in the communication network, and the addition, deletion, and attribute changes of forwarding paths in the communication network. In step 0-b, the path management module notifies the path algorithm module of the topological change information so that the path algorithm module can determine the current topological change information of the communication network based on the topological change information when a path calculation is required.
[0156] Step 1: The client obtains a path establishment request for a service (such as step 201 above), and sends the path establishment request to the path management module.
[0157] Step 2: After receiving the path establishment request, the path management module sends a path calculation request to the path algorithm module based on the path establishment request. The path calculation request instructs the calculation of a forwarding path that at least meets the necessary constraints based on the global constraints of the service.
[0158] Step 3: After receiving the path calculation request, the path algorithm module performs path calculation based on the current topology information of the communication network and the global constraints of the service (ie, necessary constraints + non-essential constraints).
[0159] As shown in Figure 4, step 3 includes steps 3-a and 3-b. In step 3-a, the path algorithm module first attempts to calculate a path that satisfies the global constraints. If the calculation succeeds, step 4 is executed. If the calculation fails, step 3-b is executed. In step 3-b, the path algorithm module calculates a path that satisfies the necessary constraints. If the calculation succeeds, step 4 is executed. In this case, the path that satisfies the necessary constraints may not satisfy all non-essential constraints, or may satisfy some or all of the non-essential constraints.
[0160] Step 4: The path algorithm module sends the calculation result back to the path management module.
[0161] Step 5: After receiving the calculation result of the path algorithm module, the path management module converts the calculation result into a path configuration and sends it to the network device, which then establishes the corresponding forwarding path.
[0162] FIG5 is a schematic diagram of the structure of a forwarding path determination device provided in an embodiment of the present application. The device 500 shown in FIG5 may be a control device or a portion of a control device in the previous embodiments, and is configured to execute the method executed by the control device. The device 500 includes:
[0163] A calculation module 501 is configured to calculate a first forwarding path in the communication network based on necessary and non-essential constraints of the service;
[0164] The determination module 502 is configured to determine a second forwarding path in the communication network if the calculation of the first forwarding path fails, where the second forwarding path satisfies necessary constraints.
[0165] In one possible implementation, there are multiple non-essential constraints, each of which corresponds to a different non-essential level. The non-essential level indicates a degree of non-essentiality of the corresponding non-essential constraint in determining the second forwarding path. The determining module 502 includes:
[0166] a first calculating unit, configured to calculate, if the calculation of the first forwarding path fails, a third forwarding path in the communication network based on necessary constraints, where the third forwarding path is an optimal path in the communication network that satisfies the necessary constraints;
[0167] The second calculation unit is configured to calculate a second forwarding path based on the necessary constraint, the multiple non-essential constraints, and the multiple non-essential levels corresponding to the multiple non-essential constraints if the third forwarding path is calculated successfully, wherein the second forwarding path satisfies the necessary constraint and at least one non-essential constraint.
[0168] In a possible implementation, the second computing unit is configured to:
[0169] For a first non-essential level among the multiple non-essential levels, calculating a second forwarding path based on the necessary constraint and each non-essential constraint of a non-essential level higher than the first non-essential level;
[0170] If the calculation of the second forwarding path fails, the previous non-essential level of the first non-essential level is used as the new first non-essential level, and the steps of calculating the second forwarding path based on the necessary constraints and each non-essential constraint whose non-essential level is higher than the first non-essential level are performed until the second forwarding path is successfully calculated.
[0171] In a possible implementation, the second computing unit is configured to:
[0172] For a second non-essential level among the plurality of non-essential levels, calculating a fourth forwarding path in the communication network based on the necessary constraint and each non-essential constraint having a non-essential level higher than or equal to the second non-essential level;
[0173] If the calculation of the fourth forwarding path succeeds, taking the next non-essential level of the second non-essential level as a new second non-essential level, and executing the step of calculating a fourth forwarding path in the communication network based on the necessary constraint and each non-essential constraint whose non-essential level is higher than or equal to the second non-essential level until the calculation of the fourth forwarding path fails;
[0174] The fourth forwarding path that is successfully calculated the last time is determined as the second forwarding path.
[0175] In a possible implementation, the second computing unit is configured to:
[0176] For a third non-essential level among the multiple non-essential levels, calculating a fifth forwarding path in the communication network based on the necessary constraint, the non-essential constraint of the third non-essential level, and each target constraint, where the target constraint is a non-essential constraint that enables calculation of the forwarding path after being superimposed with the necessary constraint;
[0177] If the fifth forwarding path is successfully calculated, the step of calculating a fifth forwarding path in the communication network based on the necessary constraints, the non-essential constraints of the third non-essential level, and the target constraints is performed, with the non-essential constraints of the third non-essential level as a new target constraint and the next non-essential level of the third non-essential level as a new third non-essential level.
[0178] If the calculation of the fifth forwarding path fails, taking the next non-essential level of the third non-essential level as a new third non-essential level, and executing the step of calculating the fifth forwarding path in the communication network based on the necessary constraints, the non-essential constraints of the third non-essential level, and each target constraint, until all non-essential constraints are calculated;
[0179] The fifth forwarding path that is successfully calculated the last time is determined as the second forwarding path.
[0180] In a possible implementation, the determining module 502 is configured to:
[0181] If the calculation of the first forwarding path fails, a third forwarding path in the communication network is calculated based on the necessary constraints, where the third forwarding path is an optimal path in the communication network that meets the necessary constraints.
[0182] In a possible implementation, there are multiple non-essential constraints, at least one of which is related to a service level agreement (SLA) of the service; the determination module 502 is configured to:
[0183] If the calculation of the first forwarding path fails, calculating a third forwarding path in the communication network based on the necessary constraints, where the third forwarding path is an optimal path in the communication network that satisfies the necessary constraints;
[0184] If the third forwarding path is calculated successfully, a second forwarding path is calculated based on the necessary constraints and non-essential constraints related to the service level agreement (SLA) of the service.
[0185] In a possible implementation, the non-essential constraint condition is related to a service level agreement (SLA) of the service.
[0186] It should be understood that the device 500 corresponds to the control device in the above-mentioned method embodiment, and the various modules in the device 500 and the above-mentioned other operations and / or functions are respectively for implementing the various steps and methods implemented by the control device in the method embodiment. For specific details, please refer to the above-mentioned method embodiment. For the sake of brevity, they will not be repeated here.
[0187] It should be understood that the division of the functional modules described above is merely an example of how the device 500 determines a forwarding path. In actual applications, the functions described above can be assigned to different functional modules as needed, i.e., the internal structure of the device 500 can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the device 500 provided in the above embodiment and the method embodiment described above share the same concept. The specific implementation process is detailed in the above method embodiment and will not be further described here.
[0188] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 600 shown in Figure 6 can be configured as a control device involved in the above-mentioned method embodiment. As shown in the figure, the electronic device 600 includes a processor 601, a memory 602, a communication interface 603 and a bus 604. Among them, the processor 601, the memory 602, and the communication interface 603 communicate through the bus 604, and can also achieve communication through other means such as wireless transmission. The memory 602 is used to store instructions, and the processor 601 is used to execute the program code stored in the memory 602. The processor 601 can call the program code stored in the memory 602 to execute the steps provided by the above-mentioned forwarding path determination method.
[0189] Exemplarily, the processor 601 may include one or more central processing units (CPUs).
[0190] For example, the electronic device 600 may include multiple processors 601, each of which may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0191] The memory 602 may include a read-only memory and a random access memory, and provides instructions and data to the processor 601. The memory 602 may also include a non-volatile random access memory. For example, the memory 602 may also store device type information. The memory 602 may also be a volatile memory, or may include both volatile and non-volatile memory.
[0192] Among them, the non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0193] Communication interface 603 uses any transceiver-like device for communicating with other devices or communication networks. Communication interface 604 includes a wired communication interface and may also include a wireless communication interface. The wired communication interface may be, for example, an Ethernet interface. The Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a wireless local area network (WLAN) interface, a cellular network communication interface, or a combination thereof.
[0194] Bus 604 is used to transmit information between the above components. In addition to the communication bus, bus 604 may also include a power bus and a status signal bus. However, for the sake of clarity, various buses are labeled as bus 604 in the figure. Among them, the communication bus can be divided into an address bus, a data bus, a control bus, etc. Exemplarily, the communication bus can be a Peripheral Component Interconnect Express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a computer express link (CXL), or a cache coherent interconnect for accelerators (CCIX).
[0195] In some embodiments, the electronic device 600 may further include an output device and an input device 605. The output device communicates with the processor 601 and can display information in a variety of ways. For example, the output device can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 605 communicates with the processor 601 and can receive user input in a variety of ways. For example, the input device 605 can be an accelerator card, a mouse, a keyboard, a touch screen device, or a sensor device.
[0196] It should be understood that the electronic device 600 may correspond to the control device in the embodiment of the present application, and may correspond to the corresponding subject in executing the forwarding path determination method according to the embodiment of the present application, and the above-mentioned and other operations and / or functions of each module in the electronic device 600 are respectively for realizing the corresponding process of Figure 2. For the sake of brevity, they will not be repeated here.
[0197] In an exemplary embodiment, a computer-readable storage medium is further provided, such as a memory including program code, wherein the program code can be executed by a processor in an electronic device to perform the forwarding path determination method in the above embodiment. For example, the computer-readable storage medium is a non-transitory computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.
[0198] An embodiment of the present application also provides a computer program product or computer program, which includes program code. The computer instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the electronic device performs the above-mentioned forwarding path determination method.
[0199] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the device to perform the forwarding path determination method in the above-mentioned method embodiments.
[0200] Among them, the devices, equipment, computer-readable storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0201] Through the description of the above embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the forwarding path determination method embodiment provided in the above embodiment is based on the same concept. Its specific implementation process is detailed in the method embodiment and will not be repeated here.
[0202] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "a plurality" means two or more. Words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not limit them to be necessarily different.
[0203] In this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0204] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the path establishment requests involved in this application are all obtained with full authorization.
[0205] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0206] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for determining a forwarding path, characterized in that: The method comprises: Calculate a first forwarding path in the communication network based on necessary constraints and non-essential constraints of the service; If the calculation of the first forwarding path fails, a second forwarding path in the communication network is determined, and the second forwarding path satisfies the necessary constraint condition.
2. The method according to claim 1, characterized in that There are multiple non-essential constraints, and the multiple non-essential constraints correspond to different non-essential levels, and the non-essential level indicates the degree of non-essentiality of the corresponding non-essential constraint in the process of determining the second forwarding path; If the calculation of the first forwarding path fails, determining a second forwarding path in the communication network comprises: If the calculation of the first forwarding path fails, calculating a third forwarding path in the communication network based on the necessary constraints, the third forwarding path being an optimal path in the communication network that satisfies the necessary constraints; If the third forwarding path is calculated successfully, the second forwarding path is calculated based on the necessary constraint, the multiple non-essential constraints and the multiple non-essential levels corresponding to the multiple non-essential constraints, and the second forwarding path satisfies the necessary constraint and at least one non-essential constraint.
3. The method according to claim 2, characterized in that The calculating the second forwarding path based on the multiple non-essential constraints, the multiple non-essential levels corresponding to the multiple non-essential constraints, and the necessary constraints includes: For a first non-essential level among the multiple non-essential levels, calculating the second forwarding path based on the necessary constraint condition and each non-essential constraint condition whose non-essential level is higher than the first non-essential level; If the calculation of the second forwarding path fails, the previous non-essential level of the first non-essential level is used as the new first non-essential level, and the step of calculating the second forwarding path based on the necessary constraints and each non-essential constraint whose non-essential level is higher than the first non-essential level is performed until the calculation of the second forwarding path is successful.
4. The method according to claim 2, characterized in that: The calculating the second forwarding path based on the multiple non-essential constraints, the multiple non-essential levels corresponding to the multiple non-essential constraints, and the necessary constraints includes: For a second non-essential level among the plurality of non-essential levels, calculating a fourth forwarding path in the communication network based on the necessary constraint and each non-essential constraint having a non-essential level higher than or equal to the second non-essential level; If the calculation of the fourth forwarding path succeeds, taking the next non-essential level of the second non-essential level as a new second non-essential level, executing the step of calculating the fourth forwarding path in the communication network based on the necessary constraint condition and each non-essential constraint condition whose non-essential level is higher than or equal to the second non-essential level until the calculation of the fourth forwarding path fails; The fourth forwarding path that is successfully calculated last time is determined as the second forwarding path.
5. The method according to claim 2, characterized in that: The calculating the second forwarding path based on the necessary constraint, the multiple non-essential constraints, and the multiple non-essential levels corresponding to the multiple non-essential constraints includes: For a third non-essential level among the multiple non-essential levels, calculating a fifth forwarding path in the communication network based on the necessary constraint, the non-essential constraint of the third non-essential level, and each target constraint, wherein the target constraint is a non-essential constraint that can calculate a forwarding path after being superimposed with the necessary constraint; If the fifth forwarding path is calculated successfully, taking the non-essential constraint of the third non-essential level as a new target constraint, taking the next non-essential level of the third non-essential level as a new third non-essential level, and performing the step of calculating the fifth forwarding path in the communication network based on the necessary constraint, the non-essential constraint of the third non-essential level, and each target constraint; If the calculation of the fifth forwarding path fails, taking the next non-essential level of the third non-essential level as a new third non-essential level, executing the step of calculating the fifth forwarding path in the communication network based on the necessary constraint, the non-essential constraint of the third non-essential level and each target constraint until all non-essential constraints are calculated; The fifth forwarding path that is successfully calculated the last time is determined as the second forwarding path.
6. The method according to claim 1, characterized in that If the calculation of the first forwarding path fails, determining a second forwarding path in the communication network comprises: If the calculation of the first forwarding path fails, a third forwarding path in the communication network is calculated based on the necessary constraint condition, and the third forwarding path is an optimal path in the communication network that meets the necessary constraint condition.
7. The method according to claim 1, characterized in that There are multiple non-essential constraints, at least one of which is related to the service level agreement (SLA) of the service; If the calculation of the first forwarding path fails, determining a second forwarding path in the communication network comprises: If the calculation of the first forwarding path fails, calculating a third forwarding path in the communication network based on the necessary constraints, the third forwarding path being an optimal path in the communication network that satisfies the necessary constraints; If the third forwarding path is calculated successfully, the second forwarding path is calculated based on the necessary constraint conditions and non-essential constraint conditions related to the service level agreement SLA of the service.
8. The method according to any one of claims 1 to 7, characterized in that The non-essential constraint condition is related to the service level agreement SLA of the service.
9. A forwarding path determination device, characterized in that: The device comprises: A calculation module, used for calculating a first forwarding path in the communication network based on necessary constraints and non-essential constraints of the service; The determination module is configured to determine a second forwarding path in the communication network if the calculation of the first forwarding path fails, wherein the second forwarding path satisfies the necessary constraint condition.
10. An electronic device, characterized in that: The electronic device comprises a processor, and the processor is used to execute program code, so that the electronic device performs the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: At least one program code is stored in the storage medium, and the at least one program code is read by the processor to enable the electronic device to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for determining forwarding path, and control equipment
CN106209623A
Control method and device for forwarding paths and control equipment
CN108075980A
Satellite network constraint multipath routing setting method, electronic equipment and storage medium
CN112261690A
Path switching method, device and system
CN114448877A
Path determination method and apparatus, device, system, and computer readable storage medium
WO2023005817A1
