Network load configuration method, device, equipment and medium based on dual network alternation
By modeling the communication network as a two-layer network and using an alternating iteration algorithm, the problem of insufficient network load balancing and scalability in the existing technology is solved, the redundancy and load balancing of network links are improved, and the network topology is realized optimization.
Patent Information
- Application Number
- CN202411024543.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing network configuration methods lack systematic attention to network load balancing and scalability, resulting in network performance degradation in the face of attacks and changes, making it difficult to effectively maintain topology and repair.
Using a method based on dual network alternation, the communication network is modeled as a two-layer network. Through the dependency relationship between the physical network and the logical network, the network load configuration principles are set, the optimal network load configuration calculation model is constructed, and through the genetic algorithm and integer particles The swarm algorithm alternates and iterates to solve the problem to ensure maximum network link redundancy and load balance.
It improves the redundancy and load balancing of network links, realizes the optimal network topology construction and improvement, and solves the load balancing and scalability issues that lack systematic research in network configuration methods.
Smart Images

Figure CN118555245B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network configuration, and in particular to a method, device, equipment and medium for network load configuration based on dual network alternation. Background Art
[0002] With the rapid development and widespread application of computer network and Internet technologies, various network attacks emerge in an endless stream. In addition to using denial of service attacks, false data injection attacks, and replay attacks, attackers often destroy network communication systems by threatening network configuration information. In order to reduce the loss of network configuration information, the performance of the network can be improved by improving the network configuration.
[0003] Network configuration refers to the network manager changing the network topology or the configuration of network devices according to the real-time changes of the network to achieve the performance of the network. Generally speaking, the network topology is the starting point for improving network configuration. It can not only characterize the connection structure of the network, but also reflect the dependency between the physical network and the logical network.
[0004] There are many related studies on network configuration strategies in the existing technologies. For example, for highly time-sensitive and dynamic network systems, some people have designed a time-sensitive network configuration method for topology changes to achieve dynamic network configuration under changing network scenarios. Some people have also proposed a configuration method for time-sensitive networks to automatically collect network topology information and traffic requirements based on the NETCONF network configuration protocol to meet the real-time needs of the business. Some people have also proposed a congestion-free network configuration strategy based on different transmission requests to maximize bandwidth utilization and data transmission efficiency.
[0005] In addition, there are also related studies on network load balancing strategies. The purpose of load balancing is to fully utilize resources such as network bandwidth, thereby increasing the business capabilities of the network. The implementation process needs to be combined with the actual state of the network structure and the carrying capacity of the network edge. For example, some people have studied a set of network load algorithm models based on the Software Defined Network (SDN) of the Graph Convolutional Network (GCN) to ensure the long-term stability of network communication links. Some people have also proposed a hybrid ant colony algorithm (PS-IACO) based on the improved ant colony algorithm to solve the load balancing problem of complex networks. Some people also allocate transmission paths to them according to the size of the transmission traffic, thereby achieving load balancing on the network link.
[0006] Network load configuration not only maintains the network topology, but also relates to network repair. Load balancing and a certain amount of redundant network configuration are conducive to maintaining the performance of the entire network system and making the network scalable.
[0007] However, existing studies lack systematic attention on the balance and scalability of network configuration problems, which limits their widespread application. Summary of the invention
[0008] Based on this, it is necessary to provide a network load configuration method, device, equipment and medium based on dual network alternation to address the above technical problems, which can improve network link redundancy and network load balancing.
[0009] The network load configuration method based on dual network alternation includes:
[0010] Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network; Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network, including: establishing a physical network of the communication network based on the actual physical topology of the network; establishing a logical network of the communication network based on the functions of the network links; establishing a two-layer network of the communication network according to the physical network, the logical network and the dependency relationship between the physical network and the logical network;
[0011] Based on the redundancy and load balancing of network links, set the principle of network load configuration so that the redundancy of each link in the configured network is maximized and the load balancing requirements are met;
[0012] According to the principle of network load configuration, constraints are set to build the optimal network load configuration calculation model for the two-layer network;
[0013] The optimal network load configuration calculation model of the double-layer network is solved by alternating iteration of the dual-network method until the preset conditions are met and the optimal network load configuration is output.
[0014] In one embodiment, after the communication network is modeled as a two-layer network, the method further includes:
[0015] The physical network is preprocessed to remove physical edges whose configured rates are less than the minimum load requirement of the logical network, and an updated two-layer network is obtained.
[0016] In one embodiment, the principle of setting the network load configuration so as to maximize the redundancy of each link in the configured network and meet the load balancing requirements includes:
[0017] Configure the information transmission rate of the physical network edge according to actual business needs, and seek the transmission rate that is most conducive to network load balancing within its upper and lower limits as the actual transmission rate;
[0018] Under the premise of not affecting the reserved backup transmission physical network path, select the path with the least hops as the physical network path of the corresponding logical edge to avoid the configured network solution falling into the local optimal state;
[0019] Avoid duplicate edges between the primary transmission physical network path and the backup transmission physical network path configured for the same logical edge, so as to reduce the probability of the entire network system being paralyzed due to damage to the common edge of the primary and backup paths.
[0020] In one embodiment, based on the redundancy and load balancing of the network link, the following steps are included:
[0021] Configuration redundancy:
[0022] ;
[0023] In the formula, They are all nodes of the logical network. For logical edge Configuration redundancy, For logical edge Configuration load, For logical edge demand load;
[0024] Configure load balancing:
[0025] ;
[0026] In the formula, is the corrected kurtosis of the configurational redundancy of the logical edges, For the The configuration redundancy of logical edges, Configure the mean value of the redundancy for each edge in the logical network, Configure the standard deviation of the redundancy for each edge in the logical network, For Node The PageRank value, For Node PageRank value.
[0027] In one embodiment, the constraint conditions are set according to the principle of network load configuration, including:
[0028] The configured load of the logical edge between any two vertices is not less than the required load of the logical edge;
[0029] The total load of the physical edge that carries multiple edge services of the logical network at the same time does not exceed the maximum carrying capacity of the physical edge;
[0030] The load of the primary path and the load of the backup path of the physical network configuration of the logical edge are the same;
[0031] When the occupied load resource of the backup path on the physical edge is not zero, the sum of the occupied loads of the primary path and the backup path on the physical edge does not exceed a preset maximum value.
[0032] In one embodiment, constraints are set according to the principle of network load configuration to construct an optimal network load configuration calculation model for a two-layer network, including:
[0033] ;
[0034] ;
[0035] ;
[0036] In the formula, Calculate the optimal network load configuration model for a two-layer network. For different weight values, For logical edge The link duplication rate of the physical primary path and backup path, For logical edge The cohesion index, is the total configuration redundancy of logical edges, is the network load concentration index, is the corrected kurtosis of the configurational redundancy of the logical edges, For logical edge Configuration load, For logical edge The demand load, is the number of nodes in the logical network, is the number of nodes in the physical network, For physical edge The configured rate, For physical edge The carrying capacity, For logical edge The load of the configured physical primary path, For logical edge The load of the configured physical backup path, is a symbolic function, when The values when greater than 0, equal to 0, and less than 0 are 1, 0, and -1 respectively. Main Path On the physical side The occupied load, Backup path On the physical side The occupied load, is the set of all edges passing through the physical network The set of main paths of logical edges, is the set of all edges passing through the physical network The set of backup paths of the logical edges of is the edge set of the logical network.
[0037] In one embodiment, a dual-network alternating iteration method is adopted to alternately iterate and solve the optimal network load configuration calculation model of the dual-layer network until the preset conditions are met, and then the optimal network load configuration is output, including:
[0038] A genetic algorithm is used to solve the optimal network load configuration calculation model of a two-layer network, and the topological relationship of the physical network is encoded as the input of the physical network. An integer particle swarm algorithm is used to solve the optimal network load configuration calculation model of a two-layer network, and the physical network resource utilization is used as the input of the logical network. The logical network and the physical network are alternately iterated until the convergence condition of the genetic algorithm is met, and the optimal network load configuration is output.
[0039] A network load configuration device based on dual network alternation includes:
[0040] A modeling module, used for modeling a communication network as a double-layer network based on the actual physical topology relationship of the network and the function of the network link; modeling a communication network as a double-layer network based on the actual physical topology relationship of the network and the function of the network link, including: establishing a physical network of the communication network based on the actual physical topology relationship of the network; establishing a logical network of the communication network based on the function of the network link; establishing a double-layer network of the communication network according to the physical network, the logical network and the dependency relationship between the physical network and the logical network;
[0041] A configuration module is used to set the principle of network load configuration based on the redundancy and load balancing of network links, so as to maximize the redundancy of each link in the configured network and meet the requirements of load balancing;
[0042] The constraint module is used to set constraint conditions according to the principle of network load configuration and build an optimal network load configuration calculation model for a two-layer network;
[0043] The solution module is used to adopt a dual-network alternating iteration method to alternately iterate and solve the optimal network load configuration calculation model of the double-layer network until the preset conditions are met and the optimal network load configuration is output.
[0044] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0045] Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network; Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network, including: establishing a physical network of the communication network based on the actual physical topology of the network; establishing a logical network of the communication network based on the functions of the network links; establishing a two-layer network of the communication network according to the physical network, the logical network and the dependency relationship between the physical network and the logical network;
[0046] Based on the redundancy and load balancing of network links, set the principle of network load configuration so that the redundancy of each link in the configured network is maximized and the load balancing requirements are met;
[0047] According to the principle of network load configuration, constraints are set to build the optimal network load configuration calculation model for the two-layer network;
[0048] The optimal network load configuration calculation model of the double-layer network is solved by alternating iteration of the dual-network method until the preset conditions are met and the optimal network load configuration is output.
[0049] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0050] Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network; Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network, including: establishing a physical network of the communication network based on the actual physical topology of the network; establishing a logical network of the communication network based on the functions of the network links; establishing a two-layer network of the communication network according to the physical network, the logical network and the dependency relationship between the physical network and the logical network;
[0051] Based on the redundancy and load balancing of network links, set the principle of network load configuration so that the redundancy of each link in the configured network is maximized and the load balancing requirements are met;
[0052] According to the principle of network load configuration, constraints are set to build the optimal network load configuration calculation model for the two-layer network;
[0053] The optimal network load configuration calculation model of the double-layer network is solved by alternating iteration of the dual-network method until the preset conditions are met and the optimal network load configuration is output.
[0054] The above-mentioned network load configuration method, device, equipment and medium based on dual network alternation construct an optimal network load configuration calculation model, realize the construction and improvement of the optimal network topology to improve network link redundancy and network load balancing, and solve the problem of lack of systematic research on network load balancing and scalability in current network configuration methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is an application scenario diagram of a network load configuration method based on dual network alternation in one embodiment;
[0056] Figure 2 A schematic diagram of a flow chart of a network load configuration method based on dual network alternation in one embodiment;
[0057] Figure 3 A physical network diagram in one embodiment;
[0058] Figure 4 A logical network diagram in one embodiment;
[0059] Figure 5 A schematic diagram of a double-layer network in an embodiment;
[0060] Figure 6 A schematic diagram of network preprocessing in one embodiment;
[0061] Figure 7 A simple graph model in one embodiment;
[0062] Figure 8 A flow chart of a dual network alternating algorithm in one embodiment;
[0063] Fig. 9 It is a structural block diagram of a network load configuration device based on dual network alternation in one embodiment;
[0064] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0066] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "multiple groups" means at least two groups, such as two groups, three groups, etc., unless otherwise clearly and specifically defined.
[0067] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, a physical connection, or a wireless communication connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0068] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0069] The method provided in this application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through the network, and the terminal 102 may include but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 may be various portal websites, servers corresponding to the backend of the work system, etc.
[0070] The present application provides a network load configuration method based on dual network alternation, such as Figure 2 As shown, in one embodiment, the method is applied to Figure 1 The following is an example of a terminal in the example, including:
[0071] Step 202: Model the communication network as a two-layer network based on the actual physical topology of the network and the functions of the network links.
[0072] Specifically:
[0073] Based on the actual physical topology of the network, the physical network of the communication network is established; based on the functions of the network links, the logical network of the communication network is established; according to the physical network, the logical network and the dependency relationship between the physical network and the logical network, a two-layer network of the communication network is established.
[0074] In this step, the actual communication network is abstracted into a two-layer network consisting of a physical network, a logical network and their dependencies.
[0075] The physical network is a network composed of various physical devices (such as hosts, routers, switches, etc.) and media (optical cables, cables, twisted pairs, etc.) that support network information transmission services, such as a network composed of transmission equipment such as optical cables. The construction of the physical network is the physical realization of the logical network, which is used to describe the physical distribution of the equipment, the operating environment and other specific information to ensure that the physical connection of the network is consistent with the logical connection. Therefore, the design of the physical network requires the determination of specific software / hardware, connection equipment, wiring and service deployment plans.
[0076] A logical network is a logical connection network built based on network business requirements, such as a logical network established between multiple business units based on business requirements. The construction of a logical network is based on the actual business requirements of users, including network functions, performance, and behavior. The logical network needs to form a structure that meets user needs based on the type and distribution of users and using specific technologies. The network structure can describe the interconnection and deployment of devices without determining their specific physical locations and operating environments.
[0077] The physical network and the logical network are coupled and dependent, and have a close coupling correlation. They jointly maintain the survivability of the network. The former needs to use the latter for load configuration and remote repair, and the latter needs the former to provide entity transmission data information to realize the transmission of entity-bearing information. The physical network and the logical network are interconnected through gateway nodes. If one edge of the physical network fails (is attacked or fails to operate), the information of all paths of the logical network carried by the edge of the physical network cannot be transmitted.
[0078] like Figure 3 The physical network diagram shown in the figure has 26 nodes, of which node 26 is the network management node (with the function of managing the entire network and plays a decisive role in network configuration). The line between two nodes indicates that there is a physical edge between the two points, and the value indicates the upper limit of the transmission rate of the edge, in Gbps.
[0079] like Figure 4 The logical network diagram shown is Figure 3 The logical network corresponding to the physical network has 10 nodes. The line between two nodes indicates that there is a logical service demand between the two points, and the value indicates the transmission rate of the edge in Gbps.
[0080] like Figure 5 The two-layer network diagram shown in FIG. 1 represents the mapping relationship between the logical network and the physical network.
[0081] Need to explain:
[0082] Network load configuration means: configuring a physical network path that meets the conditions for each edge of the logical network, that is, configuring a primary transmission physical network path and a backup physical network path for each edge of the logical network. It is required that the configuration rate of the two paths is not less than the service demand rate, and there should be no duplicate physical edges as much as possible;
[0083] The load demand of a logical network edge refers to the load demand on each edge of the logical network based on the various service requirements carried on the logical network, in Gbps.
[0084] The carrying capacity of a physical network edge refers to the maximum available information transmission rate of the physical edge, measured in Gbps.
[0085] It should also be noted that the symbolic definition of network information is shown in Table 1.
[0086] Table 1: Symbol definitions for network information
[0087]
[0088] In one embodiment, due to the diversity of devices and transmission media, the physical network is highly complex, so it needs to be preprocessed before network configuration.
[0089] Specifically: After the communication network is modeled as a two-layer network, network preprocessing is performed on the physical network to remove physical edges whose configuration rate is less than the minimum load requirement of the logical network (such physical edges do not meet any business requirements) to obtain an updated two-layer network.
[0090] The specific algorithm of network preprocessing is shown in Table 2.
[0091] Table 2: Specific algorithms for network preprocessing
[0092]
[0093] like Figure 6 The network preprocessing diagram shown in the figure. In the above example, the load demand of each edge of the logical network is 10Gbps. The configured rate of each edge of the physical network path configured for the logical edge must be greater than or equal to 10Gbps. Analysis of the physical network diagram shows that there are physical edges in the network with a transmission rate less than 10Gbps ( The transmission rate is 5 Gbps). Therefore, considering the actual needs, such physical edges are removed. Figure 6 shown.
[0094] Step 204, setting the principle of network load configuration based on the redundancy and load balance of the network links.
[0095] Specifically:
[0096] Generally, elasticity and scalability can improve the survivability of the network, so when configuring the network, each edge in the logical network is given a load slightly larger than the business demand. To further measure the load level of the logical edge, define the logical edge Configuration redundancy:
[0097] ;
[0098] In the formula, They are all nodes of the logical network. For logical edge Configuration redundancy, For logical edge Configuration load, For logical edge demand load;
[0099] The greater the configuration redundancy, the better the network's elasticity and scalability. Even if the services carried by the logical network need to be further expanded, the network with high configuration redundancy can still meet the business needs within a certain range.
[0100] While the configuration redundancy of each edge of the logical network is as large as possible, the overall balance of the configuration redundancy of each edge should also be taken into consideration. Therefore, the configuration load balance is defined. Specifically, the configuration load balance is defined as the modified kurtosis of the configuration redundancy of the logical edge. :
[0101] ;
[0102] in,
[0103] ;
[0104] ;
[0105] In the formula, is the corrected kurtosis of the configurational redundancy of the logical edges, is the kurtosis, For the The configuration redundancy of logical edges, Configure the mean value of the redundancy for each edge in the logical network, Configure the standard deviation of the redundancy for each edge in the logical network, For Node The PageRank value, For Node PageRank value;
[0106] According to the kurtosis theory, the configuration redundancy The corrected kurtosis The larger the value, the more the configuration redundancy of each logical edge deviates from the mean. The fewer extreme differences there are, the greater the standard deviation The smaller it is, the more concentrated the numerical distribution of the configuration redundancy of each side is; conversely, the more difference values there are, the more discrete the numerical distribution is.
[0107] Therefore, the greater the configuration redundancy of the logical edge, the higher the configuration load balancing of the logical network, the better the overall performance of the network, and the higher the network survivability.
[0108] The principles for setting network load configuration are as follows, so that the redundancy of each link in the configured network is as large as possible and meets the requirements of load balancing:
[0109] 1) Configure the information transmission rate of the physical network edge according to actual business needs, and seek the transmission rate that is most conducive to network load balancing within its upper and lower limits as the actual transmission rate;
[0110] 2) The primary transmission physical network path and backup transmission physical network path of the logical edge are not strictly configured according to the number of hops of their corresponding paths. However, under the premise of not affecting the reserved backup transmission physical network path, the path with fewer hops is selected as the physical network path of the corresponding logical edge as much as possible, so as to avoid the configured network solution falling into the local optimal state to a certain extent;
[0111] 3) Avoid duplication of edges between the primary transmission physical network path and the backup transmission physical network path configured for the same logical edge as much as possible. This can reduce the probability of the entire network system being paralyzed due to damage to the common edges of the primary and backup paths.
[0112] In this step, redundancy and load balancing are configured to measure the network, and the principles for network load configuration are set.
[0113] Step 206, setting constraints according to the principle of network load configuration, and constructing an optimal network load configuration calculation model for the double-layer network.
[0114] Specifically:
[0115] The constraints include:
[0116] 1) Any two vertices The logical edge Configuration load Not less than the required load of the logical edge :
[0117] ;
[0118] 2) Physical edge that carries multiple edge services of the logical network at the same time The total load of the configuration is less than the maximum load capacity of the physical edge :
[0119] ;
[0120] Need to explain:
[0121] For physical edge The actual configured rate ,use Indicates its upper limit value, using Indicates its lower limit, the actual configuration rate for:
[0122] ;
[0123] That is, when the network performance is not optimal or the worst, Obeys a positional parameter , the scale parameter is The normal distribution of .
[0124] 3) Logical edge The load on the primary path of the physical network configuration and backup path load The same as and not less than the required load of the logical network :
[0125] ;
[0126] 4) When the backup path is on the physical side When the occupied load resource is not zero, the primary path and the backup path are on the physical edge. The sum of the occupied loads does not exceed the preset maximum value to ensure that the backup path resources are not occupied by other paths:
[0127] ;
[0128] ;
[0129] ;
[0130] The preset maximum value is and The maximum value of Represents the set of all edges passing through the physical network The set of main paths of logical edges, Represents the set of all edges passing through the physical network The set of backup paths of the logical edges;
[0131] Need to explain:
[0132] Based on the idea of PageRank (an algorithm in the prior art) to characterize the importance of nodes, PageRank is used to describe the relationship between nodes in logical networks and physical networks, and EdgeRank is defined to describe the commonality of edges in the network, that is, the size of the commonality of an edge is determined by the nodes adjacent to it.
[0133] like Figure 7 The simple graph model shown, .
[0134] To calculate the edge Take EdgeRank as an example: The PageRank value of one endpoint is the first molecule. The sum of the PageRank values of one endpoint and the adjacent nodes of the other endpoint is the first denominator, and the quotient of the first numerator and the first denominator is the first coefficient; similarly, according to The other end point of the second coefficient is obtained, that is: The PageRank value of the other end point is the second numerator, The sum of the PageRank values of the other endpoint and the adjacent nodes of one endpoint is the second denominator, and the quotient of the second numerator and the second denominator is the second coefficient; the square root of the product of the first coefficient and the second coefficient is the edge The EdgeRank value is: ,in:
[0135] ;
[0136] ;
[0137] In the formula, For Node The PageRank value, .
[0138] Control the number of duplicate edges of the physical primary path and backup path configured for the same logical edge, set constraints according to the principles of network load configuration, and build an optimal network load configuration calculation model for a two-layer network, including:
[0139] ;
[0140] ;
[0141] ;
[0142] In the formula, Calculate the optimal network load configuration model for a two-layer network. For different weight values, , For logical edge The link duplication rate of the physical primary path and backup path, For logical edge The cohesion index is used to measure the functional strength of the edges in the network, that is, to measure the degree of connection between the logical edges in a subsystem. is the total configuration redundancy of logical edges, It is the network's load concentration index, representing the count and repetition rate of all physical edges in the physical network, and describes the degree of intersection between physical edges and logical edges in the entire network. It is the modified kurtosis of the configuration redundancy of the logical edge, which is used to characterize the balance degree of the configuration redundancy of each edge in the logical network. For logical edge Configuration load, For logical edge The demand load, is the number of nodes in the logical network, is the number of nodes in the physical network, For physical edge The configured rate, For physical edge The carrying capacity, For logical edge The load of the configured physical primary path, For logical edge The load of the configured physical backup path, is a symbolic function, when The values when greater than 0, equal to 0, and less than 0 are 1, 0, and -1 respectively. Main Path On the physical side The occupied load, Backup path On the physical side The occupied load, is the set of all edges passing through the physical network The set of main paths of logical edges, is the set of all edges passing through the physical network The set of backup paths of the logical edges of is the edge set of the logical network; Based on the load concentration index The purpose of the revised link redundancy index is to make an optimal trade-off between link redundancy and network load concentration. If link redundancy is pursued too much when building a network, the designed network load will be over-concentrated, and the network will be vulnerable to damage when attacked. Therefore, it is necessary to pursue the maximum link complexity as much as possible while taking into account the network maintaining a certain distributed load capacity.
[0143] in,
[0144] ;
[0145] ;
[0146] ;
[0147] ;
[0148] In the formula, To pass through this physical edge The set of all logical edges (including primary paths and backup paths), For logical edge The actual amount of data exchange per unit time, is the exchange volume weight coefficient, For Node The PageRank value, For Node The PageRank value, For passing through the physical edge The count of logical edges of all primary and backup roads, is the set of logical edges, is the set of physical edges, is the number of all possible logical edges that may intersect. is the number of all physical edges that may intersect.
[0149] Also need to explain:
[0150] The sides Add and average to get the average cohesion index of the physical network :
[0151] ;
[0152] In this step, constraints are set according to the principles of network load configuration, and an optimal network load configuration calculation model for a two-layer network is constructed. In order to further optimize the network topology, the cohesion index and load concentration index are introduced into the optimal network load configuration calculation model.
[0153] Step 208, adopting a dual-network alternating iteration method, alternately iterates and solves the optimal network load configuration calculation model of the double-layer network until the preset conditions are met, and then outputs the optimal network load configuration.
[0154] Specifically:
[0155] A genetic algorithm is used to solve the optimal network load configuration calculation model of a two-layer network, and the topological relationship of the physical network is encoded as the input of the physical network. An integer particle swarm algorithm is used to solve the optimal network load configuration calculation model of a two-layer network, and the physical network resource utilization is used as the input of the logical network. The logical network and the physical network are alternately iterated until the convergence condition of the genetic algorithm is met, and the optimal network load configuration is output.
[0156] More specifically:
[0157] Aiming at the load configuration problem of logical network and physical network, a "dual network alternation" algorithm is established to solve it: a genetic algorithm is used to solve the load configuration scheme of the logical network, and the topological relationship of the physical network is encoded as its basic parameter; an integer particle swarm algorithm is used to solve the load configuration scheme of the physical network, and the resource utilization of the physical network is passed to the logical network as part of its fitness function; in this way, the logical network and the physical network are iterated alternately until the convergence condition of the genetic algorithm is met, and finally the optimal load configuration scheme of the logical network and the physical network is obtained.
[0158] The logic network is solved by genetic algorithm, the network structure is initialized based on the idea of avoiding circles, and then the encoding method and solution are carried out:
[0159] ①, in the numbered logic network The links to be configured are randomly sorted to obtain a length of The sequence of links to be configured.
[0160] ② Divide the configured links into several subsets based on whether there is a path The subset consists of the node numbers at both ends of the link divided into the subset; the level of the subset is determined based on whether there is a network management node. The level of the subset with a network management node is 1, otherwise the level is 0.
[0161] ③. According to the sequence of links to be configured, determine the nodes at both ends of the links to be configured one by one The affiliation with each subset is determined and processed accordingly:
[0162] like If the link does not exist in any subset at the same time, it means that the link does not belong to any subset. In this case, a new subset with level 0 is created and the link to be configured is included in the new subset.
[0163] like If there is only one node belonging to a subset, it means that the link has a membership relationship with the subset. In this case, the link to be configured is included in the subset.
[0164] like If the link belongs to the same subset, it means that the link will form a loop with the links in the subset. In this case, the link to be configured is discarded.
[0165] like They belong to different subsets respectively. If the sum of the levels of the two subsets is less than 2, the link is constructed and the two subsets are merged. The level of the merged subsets is set to the sum of the levels of the two subsets; if the sum of the levels of the two subsets is equal to 2, the link is constructed.
[0166] ④. Stop when the total number of nodes in the subset is equal to the number of all nodes in the logical network, otherwise continue to execute step ③ until the stop condition is met.
[0167] The physical network is solved using an integer particle swarm algorithm. The particle value is a continuous value, which is the load resource utilization rate between nodes in each physical link.
[0168] The operations of selection, crossover, mutation, etc. of the genetic algorithm and the particle speed and position update principle of the integer particle swarm algorithm are all existing technologies and will not be described in detail here.
[0169] In this step, the dual network alternating algorithm flow chart is as follows: Figure 8 shown.
[0170] In this application: first, based on the actual connection between network nodes and the function of network links, the communication network is hierarchically modeled as a synthesis of physical network, logical network and their dependencies; second, in order to reduce the complexity of the physical network due to the diversity of devices and transmission media, a network preprocessing algorithm is proposed to optimize the physical network by removing physical edges whose configuration rate is less than the minimum load requirement of the logical network; then, indicators for measuring the network are given, among which the configuration redundancy is used to measure the load degree of the logical edge, and the configuration load balancing degree focuses on the balance degree of the logical network as a whole; then, based on the redundancy and load balancing degree of the network links, a network preprocessing algorithm is proposed The principles of network load configuration are proposed to take into account the information transmission rate, the distance of the configuration path and the commonality of the links during the configuration process; and constraints are constructed according to the proposed principles of network load configuration, among which the EdgeRank is established by borrowing the idea of PageRank to describe the commonality of edges; based on this, the optimal network configuration calculation model is derived, which simultaneously considers the link redundancy, network load balancing and network topology (network cohesion index and load concentration index); finally, for the hierarchical architecture of the communication network, a combination algorithm of genetic algorithm and particle swarm algorithm, namely the "dual network alternation" algorithm, is designed to solve the optimal network load configuration scheme.
[0171] The above-mentioned network load configuration method based on dual network alternation constructs an optimal network load configuration calculation model, realizes the construction and improvement of the optimal network topology to improve network link redundancy and network load balancing, and solves the problem of lack of systematic research on network load balancing and scalability in current network configuration methods.
[0172] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0173] The present application also provides a network load configuration device based on dual network alternation, such as Fig. 9 As shown, in one embodiment, it includes: a modeling module 902, a configuration module 904, a constraint module 906 and a solution module 908, wherein:
[0174] Modeling module 902, used to model the communication network as a double-layer network based on the actual physical topology relationship of the network and the function of the network link; Modeling the communication network as a double-layer network based on the actual physical topology relationship of the network and the function of the network link includes: establishing a physical network of the communication network based on the actual physical topology relationship of the network; establishing a logical network of the communication network based on the function of the network link; establishing a double-layer network of the communication network according to the physical network, the logical network and the dependency relationship between the physical network and the logical network;
[0175] Configuration module 904, used to set the principle of network load configuration based on the redundancy and load balancing of network links, so as to maximize the redundancy of each link in the configured network and meet the requirements of load balancing;
[0176] The constraint module 906 is used to set constraint conditions according to the principle of network load configuration and construct an optimal network load configuration calculation model for the double-layer network;
[0177] The solving module 908 is used to perform alternate iteration to solve the optimal network load configuration calculation model of the double-layer network in a dual-network alternate iteration manner until the preset conditions are met and the optimal network load configuration is output.
[0178] For the specific definition of the network load configuration device based on dual network alternation, please refer to the definition of the network load configuration method based on dual network alternation above, which will not be repeated here. Each module in the above device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0179] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a network load configuration method based on dual network alternation is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0180] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0181] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.
[0182] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the above embodiment are implemented.
[0183] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0184] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0185] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A network load configuration method based on dual network alternation, characterized in that: include: Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network; Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network, including: establishing a physical network of the communication network based on the actual physical topology of the network; establishing a logical network of the communication network based on the functions of the network links; establishing a two-layer network of the communication network based on the physical network, the logical network and the dependency relationship between the physical network and the logical network; Based on the redundancy and load balancing of network links, set the principle of network load configuration so that the redundancy of each link in the configured network is maximized and the load balancing requirements are met; According to the principle of network load configuration, constraints are set to build the optimal network load configuration calculation model for the two-layer network; The optimal network load configuration calculation model of the double-layer network is solved by alternating iteration of the dual-network method until the preset conditions are met and the optimal network load configuration is output.
2. The network load configuration method based on dual network alternation according to claim 1 is characterized in that: After modeling the communication network as a two-layer network, it also includes: The physical network is preprocessed to remove physical edges whose configured rates are less than the minimum load requirement of the logical network, and an updated two-layer network is obtained.
3. The network load configuration method based on dual network alternation according to claim 2 is characterized in that: Set the principles for network load configuration to maximize the redundancy of each link in the configured network and meet the requirements of load balancing, including: Configure the information transmission rate of the physical network edge according to actual business needs, and seek the transmission rate that is most conducive to network load balancing within its upper and lower limits as the actual transmission rate; Under the premise of not affecting the reserved backup transmission physical network path, select the path with the least hops as the physical network path of the corresponding logical edge to avoid the configured network solution falling into the local optimal state; Avoid duplicate edges between the primary transmission physical network path and the backup transmission physical network path configured for the same logical edge, so as to reduce the probability of the entire network system being paralyzed due to damage to the common edge of the primary and backup paths.
4. The network load configuration method based on dual network alternation according to any one of claims 1 to 3, characterized in that: Based on the redundancy and load balancing of network links, including: Configuration redundancy: ; In the formula, They are all nodes of the logical network. For logical edge Configuration redundancy, For logical edge Configuration load, For logical edge demand load; Configure load balancing: ; In the formula, is the corrected kurtosis of the configurational redundancy of the logical edges, For the The configuration redundancy of logical edges, Configure the mean value of the redundancy for each edge in the logical network, Configure the standard deviation of the redundancy for each edge in the logical network, For Node The PageRank value, For Node PageRank value.
5. The network load configuration method based on dual network alternation according to any one of claims 1 to 3, characterized in that: Set constraints based on the principles of network load configuration, including: The configured load of the logical edge between any two vertices is not less than the required load of the logical edge; The total load of the physical edge that carries multiple edge services of the logical network at the same time does not exceed the maximum carrying capacity of the physical edge; The load of the primary path and the load of the backup path of the physical network configuration of the logical edge are the same; When the occupied load resource of the backup path on the physical edge is not zero, the sum of the occupied loads of the primary path and the backup path on the physical edge does not exceed a preset maximum value.
6. The network load configuration method based on dual network alternation according to any one of claims 1 to 3, characterized in that: According to the principle of network load configuration, constraints are set to build the optimal network load configuration calculation model of the two-layer network, including: ; ; ; In the formula, Calculate the optimal network load configuration model for a two-layer network. For different weight values, For logical edge The link duplication rate of the physical primary path and backup path, For logical edge The cohesion index, is the total configuration redundancy of logical edges, is the network load concentration index, is the corrected kurtosis of the configurational redundancy of the logical edges, For logical edge Configuration load, For logical edge The demand load, is the number of nodes in the logical network, is the number of nodes in the physical network, For physical edge The configured rate, For physical edge The carrying capacity, For logical edge The load of the configured physical primary path, For logical edge The load of the configured physical backup path, is a symbolic function, when The values when greater than 0, equal to 0, and less than 0 are 1, 0, and -1 respectively. Main Path On the physical side The occupied load, For backup path On the physical side The occupied load, is the set of all edges passing through the physical network The set of main paths of logical edges, is the set of all edges passing through the physical network The set of backup paths of the logical edges of is the edge set of the logical network.
7. The network load configuration method based on dual network alternation according to any one of claims 1 to 3, characterized in that: The optimal network load configuration calculation model of the double-layer network is solved by alternating iteration of the dual-network method until the preset conditions are met and the optimal network load configuration is output, including: A genetic algorithm is used to solve the optimal network load configuration calculation model of a two-layer network, and the topological relationship of the physical network is encoded as the input of the physical network. An integer particle swarm algorithm is used to solve the optimal network load configuration calculation model of a two-layer network, and the physical network resource utilization is used as the input of the logical network. The logical network and the physical network are alternately iterated until the convergence condition of the genetic algorithm is met, and the optimal network load configuration is output.
8. A network load configuration device based on dual network alternation, characterized in that: include: A modeling module, used to model the communication network as a two-layer network based on the actual physical topology of the network and the functions of the network links; Based on the actual physical topology of the network and the functions of the network links, the communication network is modeled as a two-layer network, including: establishing a physical network of the communication network based on the actual physical topology of the network; establishing a logical network of the communication network based on the functions of the network links; establishing a two-layer network of the communication network based on the physical network, the logical network and the dependency relationship between the physical network and the logical network; A configuration module is used to set the principle of network load configuration based on the redundancy and load balancing of network links, so as to maximize the redundancy of each link in the configured network and meet the requirements of load balancing; The constraint module is used to set constraint conditions according to the principle of network load configuration and build an optimal network load configuration calculation model for a two-layer network; The solution module is used to adopt a dual-network alternating iteration method to alternately iterate and solve the optimal network load configuration calculation model of the double-layer network until the preset conditions are met and the optimal network load configuration is output.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
