Optimal path determination method and device, readable storage medium, and electronic device
By constructing a multi-objective function and combining the security value and service quality indicators of the cloud node network, the optimal path of the cloud node network is determined, which solves the problem of not considering the security service capabilities in the existing technology and achieves the optimal solution to meet multiple needs. The path is determined.
Patent Information
- Application Number
- CN202211086217.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-06
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-09-06
AI Technical Summary
The existing technology fails to consider the security service capabilities of the cloud node when determining the optimal path of the cloud node network, and the optimization method targeting a single requirement cannot satisfy the optimal path for multiple requirements.
By determining the security value and network service quality indicators of the links in the network, a multi-objective function is constructed, and the optimal path is determined in the link path based on the security value and service quality indicators to meet the preset security requirements and network service quality requirements.
It realizes the determination of the optimal path under the condition of meeting multiple goals, ensures the business requirements of security nodes with security service capabilities, and avoids the performance loss caused by a single requirement.
Smart Images

Figure CN115426310B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network security technology, and in particular to an optimal path determination method and optimal path determination device, a computer-readable storage medium, and an electronic device. Background Art
[0002] Currently, cloud native technology has been widely used, and the secure access service edge architecture has gradually been productized. More cloud nodes have security attributes while being able to achieve networking capabilities. How to determine the optimal path in a cloud node network with security attributes has become a problem to be solved.
[0003] In the prior art, the optimal path is obtained with a single requirement as the goal. This optimization method is at the expense of the performance of other indicators and cannot obtain the optimal path that meets multiple requirements. In addition, this optimization method does not take into account the security service capabilities of the cloud node.
[0004] In view of this, there is an urgent need in the art to develop a new optimal path determination method and device.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide an optimal path determination method, an optimal path determination device, a computer-readable storage medium and an electronic device, thereby at least to a certain extent overcoming the problem that the method of finding the optimal path due to related technologies does not take into account the security service capabilities of the cloud node.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to a first aspect of an embodiment of the present invention, a method for determining an optimal path is provided, the method comprising: determining a security value of a link existing in a network, and determining a network service quality indicator corresponding to the network; a security node exists in the link, and the security node is a network node with security service capability; determining a preset security requirement corresponding to the security value, and determining a network service quality requirement corresponding to the network service quality indicator; constructing a multi-objective function based on the preset security requirement and the network service quality requirement, and using the multi-objective function as a constraint condition, combining the network service quality indicator and the security value to determine an optimal path in the path corresponding to the link.
[0009] In an exemplary embodiment of the present invention, determining the security value of a link existing in the network includes: determining a security node in a link existing in the network, and determining the security service capability in the security node; determining a mapping relationship between a protocol / function layer corresponding to the security service capability and a four-layer model, and constructing a security target matrix based on the mapping relationship; the four-layer model corresponds to the Transmission Control Protocol / Internet Protocol; based on the different forwarding orders of different security nodes in the link and the security target matrices corresponding to multiple or one security service capabilities through which traffic passes in the security node, constructing a link matrix to use the value of the link matrix as the security value of the link.
[0010] In an exemplary embodiment of the present invention, determining the network service quality requirements corresponding to the network service quality indicators includes: obtaining a data packet to be transmitted in the network, detecting the service data type of the data packet to be transmitted to obtain a target data service type; and determining the network service quality requirements corresponding to the network service quality indicators based on the target data service type.
[0011] In an exemplary embodiment of the present invention, the constructing of a multi-objective function based on the preset security requirements and the network service quality requirements includes: constructing multiple demand objectives based on the network service quality requirements and the preset security requirements; determining business requirements, and determining at least two demand objectives from the multiple demand objectives based on the business requirements; including a demand objective corresponding to the preset security requirements among the at least two demand objectives; and constructing a multi-objective function based on the at least two demand objectives.
[0012] In an exemplary embodiment of the present invention, the method of using the objective function as a constraint condition and combining the network service quality indicator and the security value to determine the optimal path in the path corresponding to the link includes: obtaining the target importance corresponding to the at least two demand targets respectively, and assigning priorities to the at least two demand targets in the multi-objective function according to the target importance; determining a first demand target among the at least two demand targets according to the priority, using the first demand target as a constraint condition and combining the network service quality indicator and the security value to screen out a first path in the path corresponding to the link; determining a second demand target among the at least two demand targets according to the priority, using the second demand target as a constraint condition and combining the network service quality indicator and the security value to screen out a second path in the first path, until the last demand target is determined as a constraint condition and combining the network service quality indicator and the security value to determine the optimal path; the priority corresponding to the first demand target is higher than the priority corresponding to the second demand target.
[0013] In an exemplary embodiment of the present invention, the method further includes: if the target path that satisfies the constraint condition cannot be screened out, determining the demand target corresponding to the constraint condition; for each of the paths, determining the index value corresponding to the demand target, and comparing the index values to obtain an index comparison result; based on the index comparison result, determining the target index value from the index values, and determining the path corresponding to the target index value as the optimal path.
[0014] In an exemplary embodiment of the present invention, after determining the optimal path in the path corresponding to the link in combination with the network service quality indicator and the security value, the method also includes: updating the segment identifier at the source node in the network according to the optimal path; obtaining the business data to be transmitted, and filtering out the target transmission business data that meets the multi-objective function from the business data to be transmitted; directing the target transmission business data to the source node, and transmitting the target transmission business data based on the optimal path.
[0015] According to a second aspect of an embodiment of the present invention, there is provided an optimal path determination device, the device comprising: a determination module, configured to determine a security value of a link existing in a network, and determine a network service quality indicator corresponding to the network; a security node exists in the link, and the security node is a network node with security service capability; a requirement module, configured to determine a preset security requirement corresponding to the security value, and determine a network service quality requirement corresponding to the network service quality indicator; an optimal path module, configured to construct a multi-objective function based on the preset security requirement and the network service quality requirement, and use the multi-objective function as a constraint condition, combined with the network service quality indicator and the security value to determine the optimal path in the path corresponding to the link.
[0016] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the optimal path determination method of any of the above exemplary embodiments is implemented.
[0017] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the optimal path determination method in any of the above exemplary embodiments is implemented.
[0018] It can be seen from the above technical solutions that the optimal path determination method, optimal path determination device, computer storage medium and electronic device in the exemplary embodiments of the present invention have at least the following advantages and positive effects:
[0019] In the method and device provided in the exemplary embodiments of the present disclosure, on the one hand, a multi-objective function is constructed, which avoids the situation in the prior art where the optimal path is obtained with a single demand as the goal, and the optimal path that meets multiple goals can be obtained; on the other hand, the multi-objective function is constructed based on the network service quality requirements and preset security requirements, which meets the business needs of security nodes with security service capabilities.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0022] Figure 1 A schematic diagram showing a flow chart of an optimal path determination method in an embodiment of the present disclosure;
[0023] Figure 2 A schematic diagram schematically shows a process of determining the security value of a link existing in a network in an embodiment of the present disclosure;
[0024] Figure 3 A network topology diagram in an embodiment of the present disclosure is schematically shown;
[0025] Figure 4 A schematic diagram of a process for determining a network service quality requirement corresponding to a network service quality in an embodiment of the present disclosure is schematically shown;
[0026] Figure 5 The schematic diagram of the process of constructing a multi-objective function in an embodiment of the present disclosure is schematically shown;
[0027] Figure 6 A schematic diagram of a process of determining an optimal path among paths corresponding to a link in an embodiment of the present disclosure is schematically shown;
[0028] Figure 7 The following is a schematic diagram of a process for determining an optimal path in an embodiment of the present disclosure;
[0029] Figure 8 A schematic diagram of a process after determining the optimal path in the path corresponding to the link in combination with the network service quality indicator and the security value in the embodiment of the present disclosure is shown;
[0030] Fig. 9 A schematic diagram of a flow chart of an optimal path determination method in an application scenario is shown;
[0031] Fig.10 A schematic diagram showing the structure of an optimal path determination device in an embodiment of the present disclosure is shown;
[0032] Fig.11 An electronic device for determining an optimal path in an embodiment of the present disclosure is schematically shown;
[0033] Fig.12 A computer-readable storage medium for an optimal path determination method in an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0035] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.
[0036] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0037] In view of the problems existing in the related art, the present disclosure proposes a method for determining an optimal path. Figure 1 A flow chart of the optimal path determination method is shown in FIG. Figure 1 As shown, the optimal path determination method includes at least the following steps:
[0038] Step S110: Determine the security value of the link existing in the network, and determine the network service quality indicator corresponding to the network; there is a security node in the link, and the security node is a network node with security service capability.
[0039] Step S120: Determine a preset security requirement corresponding to the security value, and determine a network service quality requirement corresponding to the network service quality indicator.
[0040] Step S130: construct a multi-objective function based on preset security requirements and network service quality requirements, and use the multi-objective function as a constraint condition, combined with the network service quality index and the security value to determine the optimal path in the path corresponding to the link.
[0041] In the method and apparatus provided by the exemplary embodiments of the present disclosure, on the one hand, a multi-objective function is constructed, which avoids the situation in the prior art where the optimal path is obtained with a single demand as the goal, and the optimal path that meets multiple goals can be obtained; on the other hand, the multi-objective function is constructed based on network service quality indicators and preset security requirements, which meets the business needs of security nodes with security service capabilities.
[0042] The following describes in detail the various steps of the optimal path determination method.
[0043] In step S110, the security value of the link existing in the network is determined, and the network service quality indicator corresponding to the network is determined; there is a security node in the link, and the security node is a network node with security service capability.
[0044] In the exemplary embodiments of the present disclosure, the security value describes the security service capability of the security node in the link. The security node refers to a type of node in the link, which has the security service capability, for example, it can be a cloud node with the security service capability.
[0045] A network service quality indicator refers to an indicator that describes the network service quality requirements. Specifically, the network service quality indicator can be reachability, latency, packet loss rate, bandwidth, throughput, jitter, or any other network service quality indicator. This exemplary embodiment does not make any special limitations on this.
[0046] For example, there are links path1, path2, path3 and path4 in the network, and the security values corresponding to these four links are determined respectively. In addition, the network service quality needs to be determined. Specifically, the network service quality indicators that need to be determined include packet loss rate, throughput and jitter.
[0047] In an alternative embodiment, Figure 2 FIG. 4 is a flow chart showing a method for determining the security value of a link in a network in an optimal path determination method. Figure 2 As shown, the method at least includes the following steps: In step S210, a security node in a link existing in the network is determined, and a security service capability in the security node is determined.
[0048] The security node refers to a network node that exists in a link and has security service capabilities. The security service capability can be the ability to provide firewall services, the ability to provide Internet behavior management services, or any other security-related service capabilities, which are not specifically limited in this exemplary embodiment.
[0049] For example, Figure 3 A network topology diagram in this exemplary embodiment is schematically shown. Figure 3 As shown, node A, node B, node C, node D, node E and node F are safe nodes.
[0050] Taking node A as an example, it is necessary to determine the security service capabilities corresponding to node A. Specifically, the security service capabilities corresponding to node A include three service capabilities: security gateway, identity authentication, and next-generation firewall. Similarly, it is also necessary to determine the security service capabilities corresponding to other security nodes.
[0051] In step S220, the mapping relationship between the protocol / action layer corresponding to the security service capability and the four-layer model is determined, and a security target matrix is constructed based on the mapping relationship; the four-layer model corresponds to the transmission control protocol / Internet protocol.
[0052] Among them, the four-layer model corresponding to the transmission control protocol / Internet protocol includes the data link layer, network layer, transport layer and application layer. The protocol / action layer corresponding to the security service capability refers to the layer in the four-layer model where the security service capability acts. Based on this, there is a mapping relationship between the protocol / action layer corresponding to the security service capability and the four-layer model. Based on this mapping relationship, a security target matrix can be constructed.
[0053] For example, Figure 3 For example, there are three security service capabilities corresponding to security node A. Specifically, these three security service capabilities are security gateway, identity authentication and next-generation firewall. Among them, the security gateway acts on the application layer, the identity authentication acts on the network layer, and the next-generation firewall acts on the network layer, transport layer and application layer.
[0054] Based on this, there is no security service capability acting on the data link layer, there are two security service capabilities acting on the network layer, there is one security service capability acting on the transport layer, and there are two security service capabilities acting on the application layer. Therefore, the security target matrix (0, 2, 1, 2) can be constructed. Similarly, Figure 3 The security target matrix corresponding to other security nodes in .
[0055] In step S230, a link matrix is constructed based on different forwarding orders of different security nodes in the link and security target matrices corresponding to multiple or one security service capabilities through which traffic passes in the security node, so that the value of the link matrix is used as the security value of the link.
[0056] There may be multiple security nodes in a link, and different security nodes have different forwarding orders. At the same time, the traffic in the security node can pass through one or more security service capabilities. Therefore, after constructing the security target matrix of the security node, the link matrix can be constructed according to the different forwarding orders of different security nodes in the link and the security target matrix corresponding to one or more security service capabilities that the traffic in the security node passes through.
[0057] Based on this, the value of the link matrix may be the rank of the link matrix, or a value may be obtained by calculating the link matrix according to a certain algorithm, and this exemplary embodiment does not specifically limit this.
[0058] For example, Figure 3 As shown, assume that path1 is a link from source node-node D-node B-node A. Since there are three secure nodes on this link, and the forwarding order between the secure nodes is from node D to node B to node A, and the target matrix corresponding to node D is (0, 1, 2, 1), the target matrix corresponding to node B is (0, 1, 2, 1), and the target matrix corresponding to node A is (0, 2, 1, 2). Therefore, the constructed link matrix is a matrix with three rows and four columns, and the first row of the link matrix is 0, 1, 2, 1, the second row of the link matrix is 0, 1, 2, 1, and the third row of the link matrix is 0, 2, 1, 2. The rank of the link matrix is the security value corresponding to the link path1. Similarly, it can be calculated. Figure 3 The security value of other links in the
[0059] In this exemplary embodiment, the security values of the links existing in the network are determined, which lays a foundation for the subsequent determination of the optimal path.
[0060] In step S120, a preset security requirement corresponding to the security value is determined, and a network service quality requirement corresponding to the network service quality indicator is determined.
[0061] In the exemplary embodiments of the present disclosure, the preset security requirement refers to a pre-set requirement for a security value, which may be, for example, a requirement that the larger the security value, the better, a requirement that the more security nodes, the better, or any requirement related to the security value, and this exemplary embodiment does not specifically limit this.
[0062] The network service quality requirement refers to the requirement for network service quality indicators, for example, it may be a requirement for as small a latency as possible, a requirement for as high a bandwidth as possible, or any requirement for a network service quality indicator, and this exemplary embodiment does not make any special limitation on this.
[0063] For example, the preset security requirement corresponding to the security value is that the higher the security value, the better, and the network service quality requirement corresponding to the network service quality indicator is that the bandwidth is 100M and the delay is as small as possible.
[0064] In an alternative embodiment, Figure 4 The schematic diagram of the process of determining the network service quality requirement corresponding to the network service quality in the optimal path determination method is shown as follows: Figure 4 As shown, the method at least includes the following steps: in step S410, a data packet to be transmitted in the network is obtained, and the service data type of the data packet to be transmitted is detected to obtain a target data service type.
[0065] The data packet to be transmitted refers to a data packet to be transmitted in the network. After the data packet to be transmitted is obtained, the service type of the transmission data packet can be detected to obtain the target data service type to which the service data packet to be transmitted belongs.
[0066] For example, a data packet A to be transmitted is obtained, and the service data type of the data packet A to be transmitted is detected using a deep data packet detection tool, and it is obtained that the target data service type corresponding to the service data packet to be transmitted is a real-time interactive video service data type.
[0067] In step S420, a network service quality requirement corresponding to the network service quality indicator is determined according to the target data service type.
[0068] The network service quality requirement is determined according to the target data service type.
[0069] For example, the determined target data service type is a real-time interactive video data service type. Therefore, the obtained network service quality requirement is that the total delay is not less than 150ms, and the higher the bandwidth, the better.
[0070] In this exemplary embodiment, the network quality of service requirement is determined according to the target data service type, thereby increasing the accuracy of the determined network quality of service requirement.
[0071] In step S130, a multi-objective function is constructed based on preset security requirements and network service quality requirements, and the multi-objective function is used as a constraint condition to determine the optimal path in the path corresponding to the link in combination with the network service quality index and the security value.
[0072] In an exemplary embodiment of the present disclosure, a multi-objective function refers to a function composed of multiple objectives, and these multiple objectives are determined by network service quality requirements and preset security requirements.
[0073] After constructing the multi-objective function, the hierarchical analysis method in multi-objective decision-making can be used to use the function as a constraint condition, combine the network service quality index and the security value to determine the path that best meets the constraint condition in the path corresponding to the link (that is, determine the optimal path).
[0074] For example, the objective function can be expressed as D = (f1(x), f2(x), f3(x)). Among them, f1(x) can be a target corresponding to bandwidth, and the target requires the bandwidth to be 100M. f2(x) is a target corresponding to latency, and the target requires the latency to be as small as possible. f3(x) is a target corresponding to a safety value, and the target requires the safety value to be as high as possible.
[0075] Based on this, with D as the constraint condition, the optimal path path3 that meets the constraints of bandwidth of 100M, the smaller the delay, the better, and the higher the security value, the better is determined in the path corresponding to the link.
[0076] In an alternative embodiment, Figure 5 The schematic diagram of the process of constructing a multi-objective function in the optimal path determination method is shown in FIG. Figure 5 As shown, the method includes at least the following steps: In step S510, multiple demand targets are constructed based on network service quality requirements and preset security requirements.
[0077] The multiple demand targets may include business demand targets and security demand targets. The business demand target may be a target determined by obtaining network service quality requirements based on business requirements, and the security demand target may be a target constructed based on security values and preset security requirements.
[0078] For example, demand indicators include a goal of as low a latency as possible, a goal of as high a security value as possible, and a goal of 100M bandwidth.
[0079] In step S520, business requirements are determined, and at least two requirement targets are determined from a plurality of requirement targets according to the business requirements; the at least two requirement targets include a requirement target corresponding to a preset security requirement.
[0080] Among them, the business demand refers to the demand of the business executed this time. For example, the business demand for this execution is that the higher the security value, the better and the shorter the delay, the better. Based on this, two demand targets can be determined among the demand targets of shorter delay, higher security value and bandwidth of 100M. These two demand targets are that the higher the security value, the better and the shorter the delay, the better.
[0081] In step S530, a multi-objective function is constructed based on at least two demand objectives.
[0082] Among them, based on the at least two determined demand objectives, a multi-objective function that ultimately meets the business needs is constructed.
[0083] For example, since the two demand targets determined are that the higher the safety value, the better and the shorter the delay, the better, the multi-objective function D1 = (f2(x), f3(x)) is constructed. Among them, f2(x) is the demand target corresponding to the delay, and the demand target requires that the delay is as small as possible. f3(x) is the demand target corresponding to the safety value, and the demand target requires that the safety value is as high as possible.
[0084] In this exemplary embodiment, at least two demand targets are determined from multiple demand targets according to business needs, and a multi-objective function is constructed based on the at least two demand targets. The constructed multi-objective function is a multi-objective function that meets business needs, which lays a foundation for determining a more accurate optimal path in the future.
[0085] In an alternative embodiment, Figure 6 FIG. 4 shows a flow chart of determining the optimal path from the paths corresponding to the links in the optimal path determination method. Figure 6 As shown, the method includes at least the following steps: in step S610, the target importances corresponding to at least two demand targets are obtained, and priorities are assigned to at least two demand targets in the multi-objective function according to the target importances.
[0086] Among them, the target importance reflects the degree to which the demand target affects how the optimal path is determined. The demand target with higher target importance will be assigned a higher priority, and correspondingly, the demand target with lower target importance will be assigned a lower priority.
[0087] For example, the two demand targets are demand target f2 where the smaller the delay, the better, and demand target f3 where the higher the safety value, the better. The target importance corresponding to demand target f2 is level II, and the target importance corresponding to demand target f3 is level I.
[0088] Therefore, the priority 1 is assigned to the demand target f3, and the priority 2 is assigned to the demand target f2. Obviously, at this time, the priority of the demand target f3 is higher than the priority of the demand target f2.
[0089] In step S620, a first demand target is determined from at least two demand targets according to priority, and a first path is screened from paths corresponding to the link with the first demand target as a constraint condition in combination with a network service quality indicator and a security value.
[0090] The first demand target refers to the demand target with the highest priority among the at least two demand targets. Since the first demand target has the highest priority, the first demand target is first used as a constraint condition to select the first path from the paths corresponding to the link. At this time, the first path is the path that meets the first demand target.
[0091] For example, at least two requirements include a requirement of lower latency, a requirement of higher security value, and a requirement of 100M bandwidth. Among them, the requirement of higher security value has the highest priority, so the requirement of higher security value is the first requirement. At this time, the 5 paths with the highest security value are selected from the 15 paths corresponding to the link. Specifically, these 5 paths are pathA, pathB, pathD, pathH, and pathI.
[0092] In step S630, according to the priority, a second demand target is determined from at least two demand targets, and the second demand target is used as a constraint condition, and the second path is screened out from the first path in combination with the network service quality indicator and the security value, until the last demand target is determined as a constraint condition, and the optimal path is determined in combination with the network service quality indicator and the security value; the priority corresponding to the first demand target is higher than the priority corresponding to the second demand target.
[0093] The second demand target refers to a demand target with a lower priority than the first demand target. For example, at least two demand targets include a demand target of the shorter the latency, the better, a demand target of the higher the security value, and a demand target of 100M bandwidth. Among them, the demand target of the higher the security value, the better has the highest priority, the priority corresponding to the demand target of the shorter the latency, the better is lower than the priority corresponding to the higher the security value, and the priority corresponding to the bandwidth of 100M is lower than the priority corresponding to the shorter the latency, the better.
[0094] Based on this, the second demand target is that the latency is as small as possible. Therefore, taking the demand target of as small as possible latency as a constraint condition, combined with the network service quality index and the security value, the second path is selected from pathA, pathB, pathD, pathH and pathI. Specifically, the second path is pathD and pathH.
[0095] Since there are only three demand targets, the last demand target is a bandwidth of 100M. Based on this, taking the bandwidth of 100M as a constraint condition, combined with the network service quality index and the security value, the optimal path that meets the bandwidth of 100M is screened out from the second path pathD and pathH. Specifically, the optimal path is pathH.
[0096] In this exemplary embodiment, priorities are assigned to at least two demand goals in the multi-objective function according to the target importance, so that the first demand goal, the second demand goal and the last demand goal are determined according to the priority, and the above goals are used as constraints to screen the optimal path layer by layer. On the one hand, the fit between the optimal path and the business needs is increased; on the other hand, the priority of the demand goal can be flexibly changed according to the target importance, expanding the scenarios applicable to the determined optimal path.
[0097] In an alternative embodiment, Figure 7 FIG. 4 shows a flow chart of determining the optimal path in the optimal path determination method, such as Figure 7 As shown, the method includes at least the following steps: In step S710, if a target path that meets the constraint condition cannot be screened out, a demand target corresponding to the constraint condition is determined.
[0098] When a target path that meets the constraint conditions cannot be screened out, a demand target corresponding to the constraint conditions at this time is determined.
[0099] It is worth noting that the constraint condition can be a constraint condition corresponding to the first demand target, or a constraint condition corresponding to the second demand target, or a constraint condition corresponding to any one of at least two demand targets, and this exemplary embodiment does not make any special limitations on this.
[0100] For example, if a target path that satisfies the constraint condition cannot be screened out, it can be determined that the demand target corresponding to the constraint condition at this time is the second demand target.
[0101] In step S720, for each path, an index value corresponding to the demand target is determined, and the index values are compared to obtain an index comparison result.
[0102] The indicator value refers to the value of the indicator corresponding to the second demand target. For example, if the second demand target is that the lower the latency, the better, then for 15 paths, the latency values corresponding to the 15 paths can be determined respectively.
[0103] After obtaining the 15 delay values, the 15 delay values are compared to obtain an indicator comparison result.
[0104] In step S730, a target index value is determined from the index values according to the index comparison result, and a path corresponding to the target index value is determined as an optimal path.
[0105] According to the index comparison result, the largest index value may be used as the target index value, or the smallest index value may be used as the index value, which is not particularly limited in this exemplary embodiment.
[0106] For example, after obtaining 15 delay values, the 15 delay values are compared to obtain an indicator comparison result.
[0107] Since the constraint condition is that the delay is as small as possible, according to the indicator comparison result, the indicator value with the smallest delay value is determined as the target indicator value, and the path corresponding to the target indicator value is determined to be path 5. Based on this, path 5 is the optimal path.
[0108] In this exemplary embodiment, if the target path that meets the constraint conditions cannot be screened out, the demand target corresponding to the constraint conditions is determined. The index values corresponding to each path and the demand target are compared, and the optimal path is determined based on the index comparison result. The logic of determining the optimal path is improved to avoid the situation where the optimal path can be determined when the target path that meets the constraint conditions cannot be screened out.
[0109] In an alternative embodiment, Figure 8 The schematic diagram of the process after the optimal path is determined in the path corresponding to the link by combining the network service quality index and the security value in the optimal path determination method is shown, as shown in FIG. Figure 8 As shown, the method includes at least the following steps: In step S810, the segment identifier at the source node in the network is updated according to the optimal path.
[0110] The data will be forwarded and transmitted according to the content recorded in the segment identifier. After the optimal path is determined, the segment identifier at the source node is updated according to the optimal path. At this time, the data will be transmitted along the optimal path.
[0111] For example, the optimal path is path5, and the segment identifier at the source node is updated based on the optimal path path5.
[0112] In step S820, the service data to be transmitted is obtained, and target transmission service data satisfying the multi-objective function is screened out from the service data to be transmitted.
[0113] The service data to be transmitted refers to the data that needs to be transmitted in the network.
[0114] If the multi-objective function is that the smaller the delay, the better, and the higher the security value, the better, then the target transmission service data that meets the multi-objective function refers to the data that needs to be transmitted in a network with a higher security value and the lower the delay, the better.
[0115] For example, there are 100 business data to be transmitted. The multi-objective function is that the smaller the delay, the better, and the higher the security value, the better. Then, from these 100 business data to be transmitted, 88 target transmission business data that need to be transmitted in a network with a higher security value and a lower delay are selected.
[0116] In step S830, the target transmission service data is directed to the source node, and the target transmission service data is transmitted based on the optimal path.
[0117] Among them, the target transmission business data is directed to the source node. At this time, the target transmission business data can be transmitted from the source node according to the determined optimal path.
[0118] For example, the 50 target transmission business data determined above are directed to the source node. At this time, the 50 target transmission business data can be transmitted from the source node on the optimal path.
[0119] In this exemplary embodiment, after the optimal path is determined, the segment identifier at the source node is updated, thereby achieving data transmission on the optimal path.
[0120] In the method and apparatus provided by the exemplary embodiments of the present disclosure, on the one hand, a multi-objective function is constructed, which avoids the situation in the prior art where the optimal path is obtained with a single demand as the goal, and the optimal path that meets multiple goals can be obtained; on the other hand, the multi-objective function is constructed based on network service quality requirements and preset security requirements, which meets the business needs of security nodes with security service capabilities.
[0121] The optimal path determination method in the embodiment of the present disclosure is described in detail below in conjunction with an application scenario.
[0122] Fig. 9 The following schematically shows a flow chart of a method for determining an optimal path in an application scenario. Fig. 9 As shown, node 910 is a security node with security service capability, and link 912 is a link existing in the network.
[0123] First, step S921 and step S922 are performed. In step S921, a security target matrix corresponding to a security node is determined, and a security value of a link is calculated according to the security target matrix. In step S921, a network service quality indicator corresponding to a network is determined.
[0124] After executing step S921 and step S922, step S931 and step S932 need to be executed. In step S931, a preset security requirement corresponding to the security value is determined, and in step S932, a network service quality requirement corresponding to the network service quality indicator is determined.
[0125] After determining the network service quality index, network service quality requirement, security value and preset security requirement, step S940 is executed. In step S940, a multi-objective function is constructed according to the preset security requirement and the network service quality requirement, and the multi-objective function is used as a constraint condition to determine the optimal path in the path corresponding to the link in combination with the network service quality index and the security value.
[0126] After the optimal path is determined, step S950 is executed. In step S950, the target transmission service data is directed to the source node, and based on the segment identifier updated at the source node, the target transmission service data is transmitted on the optimal path.
[0127] In this application scenario, in the method and device provided in the exemplary embodiments of the present disclosure, on the one hand, a multi-objective function is constructed, which avoids the situation in the prior art where the optimal path is obtained with a single demand as the goal, and the optimal path that meets multiple goals can be obtained; on the other hand, the multi-objective function is constructed based on the network service quality requirements and the preset security requirements, which meets the business needs of security nodes with security service capabilities.
[0128] In addition, in an exemplary embodiment of the present disclosure, an optimal path determination device is also provided. Fig.10 FIG. 4 shows a schematic diagram of the structure of the optimal path determination device. Fig.10 As shown, the optimal path determination device 1000 may include: a determination module 1010, a demand module 1020 and an optimal path module 1030. Among them:
[0129] The determination module 1010 is configured to determine the security value of the link existing in the network and determine the network service quality index corresponding to the network; there is a security node in the link, and the security node is a network node with security service capabilities; the requirement module 1020 is configured to determine the preset security requirement corresponding to the security value and determine the network service quality requirement corresponding to the network service quality index; the optimal path module 1030 is configured to construct a multi-objective function based on the preset security requirement and the network service quality requirement, and use the multi-objective function as a constraint condition, combined with the network service quality index and the security value to determine the optimal path in the path corresponding to the link.
[0130] The specific details of the above-mentioned optimal path determination device 1000 have been described in detail in the corresponding optimal path determination method, so they are not repeated here.
[0131] It should be noted that, although several modules or units of the optimal path determination device 1000 are mentioned in the above detailed description, such division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0132] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0133] Refer to the following Fig.11 1100 according to this embodiment of the present invention will be described. Fig.11 The electronic device 1100 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0134] like Fig.11 As shown, the electronic device 1100 is in the form of a general computing device. The components of the electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one storage unit 1120, a bus 1130 connecting different system components (including the storage unit 1120 and the processing unit 1110), and a display unit 1140.
[0135] The storage unit stores program codes, which can be executed by the processing unit 1110, so that the processing unit 1110 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0136] The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1121 and / or a cache memory unit 1122 , and may further include a read-only memory unit (ROM) 1123 .
[0137] The storage unit 1120 may also include a program / utility 1124 having a set (at least one) of program modules 1125, such program modules 1125 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the reality of a network environment.
[0138] Bus 1130 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0139] The electronic device 1100 may also communicate with one or more external devices 1170 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and / or communicate with any device that enables the electronic device 1100 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1150. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1160. As shown, the network adapter 1160 communicates with other modules of the electronic device 1100 via a bus 1130. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0140] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0141] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0142] refer to Fig.12As shown, a program product 1200 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0143] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0144] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0145] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0146] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0147] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
Claims
1. A method for determining an optimal path, characterized in that: The method comprises: Determine a security node in a link existing in the network, and determine a security service capability in the security node; Determine a mapping relationship between a protocol / action layer corresponding to the security service capability and a four-layer model, and construct a security target matrix based on the mapping relationship; the four-layer model corresponds to the transmission control protocol / internet protocol; Based on the different forwarding orders of different security nodes in the link and the security target matrix corresponding to multiple or one security service capabilities through which traffic passes in the security node, a link matrix is constructed to use the value of the link matrix as the security value of the link, and determine the network service quality indicator corresponding to the network; there is a security node in the link, and the security node is a network node with security service capability; Determine a preset security requirement corresponding to the security value, and determine a network service quality requirement corresponding to the network service quality indicator; A multi-objective function is constructed based on the preset security requirements and the network service quality requirements, and the multi-objective function is used as a constraint condition to determine the optimal path in the path corresponding to the link in combination with the network service quality indicator and the security value.
2. The optimal path determination method according to claim 1, characterized in that: The determining of the network service quality requirement corresponding to the network service quality indicator includes: Acquire a data packet to be transmitted in the network, and detect the service data type of the data packet to be transmitted to obtain a target data service type; A network service quality requirement corresponding to the network service quality indicator is determined according to the target data service type.
3. The optimal path determination method according to claim 1, characterized in that: The constructing of a multi-objective function based on the preset security requirement and the network service quality requirement includes: Constructing multiple demand targets based on the network service quality requirements and the preset security requirements; Determine a business requirement, and determine at least two demand targets from the multiple demand targets according to the business requirement; the at least two demand targets include a demand target corresponding to the preset security requirement; Based on the at least two demand objectives, a multi-objective function is constructed.
4. The optimal path determination method according to claim 3, characterized in that: The method of using the multi-objective function as a constraint condition and combining the network service quality indicator and the security value to determine the optimal path in the path corresponding to the link includes: Obtaining target importances respectively corresponding to the at least two demand targets, and assigning priorities to the at least two demand targets in the multi-objective function according to the target importances; According to the priority, determine a first demand target from the at least two demand targets, and use the first demand target as a constraint condition, combine the network service quality indicator and the security value to select a first path from the paths corresponding to the link; According to the priority, a second demand target is determined from the at least two demand targets, and the second demand target is used as a constraint condition, and the second path is screened out from the first path in combination with the network service quality indicator and the security value, until the last demand target is determined as a constraint condition, and the optimal path is determined in combination with the network service quality indicator and the security value; the priority corresponding to the first demand target is higher than the priority corresponding to the second demand target.
5. The optimal path determination method according to claim 4, characterized in that: The method further comprises: If a target path that satisfies the constraint condition cannot be screened out, determining the demand target corresponding to the constraint condition; For each of the paths, determining an indicator value corresponding to the demand target, and comparing the indicator values to obtain an indicator comparison result; According to the indicator comparison result, a target indicator value is determined from the indicator values, and the path corresponding to the target indicator value is determined as the optimal path.
6. The optimal path determination method according to claim 1, characterized in that: After determining the optimal path in the path corresponding to the link by combining the network service quality indicator and the security value, the method further includes: updating a segment identifier at a source node in the network according to the optimal path; Acquire the service data to be transmitted, and select the target transmission service data satisfying the multi-objective function from the service data to be transmitted; The target transmission service data is directed to the source node, and the target transmission service data is transmitted based on the optimal path.
7. An optimal path determination device, characterized in that: The device comprises: A determination module is configured to determine a security node in a link existing in the network, determine the security service capability in the security node; determine the mapping relationship between the protocol / action layer corresponding to the security service capability and the four-layer model, and construct a security target matrix based on the mapping relationship; the four-layer model corresponds to the transmission control protocol / Internet protocol; based on the different forwarding orders of different security nodes in the link and the security target matrix corresponding to multiple or one security service capability through which the traffic in the security node passes, a link matrix is constructed to use the value of the link matrix as the security value of the link, and determine the network service quality indicator corresponding to the network; there is a security node in the link, and the security node is a network node with security service capability; A requirement module, configured to determine a preset security requirement corresponding to the security value, and determine a network service quality requirement corresponding to the network service quality indicator; The optimal path module is configured to construct a multi-objective function based on the preset security requirements and the network service quality requirements, and use the multi-objective function as a constraint condition, combined with the network service quality and the security value to determine the optimal path in the path corresponding to the link.
8. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the optimal path determination method according to any one of claims 1 to 6 by executing the executable instructions.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the optimal path determination method according to any one of claims 1 to 6 is implemented.
