Method and system for generating network configuration using graph neural network

By automatically generating network configurations using graph neural networks and readout neural networks, the problems of configuration complexity and high error rates in large network topologies are solved, achieving automated and efficient network configuration and reducing the risk of network downtime.

CN115668877BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202080101700.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-03
Publication Date
2024-10-18
Estimated Expiration
2040-06-03

AI Technical Summary

Technical Problem

In existing technologies, network configuration is complex and error-prone, leading to network downtime and business losses. In particular, manual configuration is difficult to be efficient and reliable in large network topologies.

Method used

Graph Neural Networks (GNNs) and Readout Neural Networks (Readout NNs) are used to generate network configurations. The network configurations are automatically generated by training GNNs and Readout NNs, and the weight parameters are optimized using configuration validators and optimizer units to ensure that the configurations meet the network requirements.

Benefits of technology

It achieves an automated and reliable network configuration process, reduces manual intervention, improves the efficiency and accuracy of network configuration, and reduces the risk of configuration errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115668877B_ABST
    Figure CN115668877B_ABST
Patent Text Reader

Abstract

A method, a processing system, and a processor-readable medium for generating a network configuration using a graph neural network (GNN) are provided. The method may include: receiving a first matrix M generated based on a set of network requirements; storing a GNN having a plurality of nodes v and a plurality of edges; and generating a network configuration based on a second matrix X having a plurality of elements. v Initialize a GNN, each element corresponding to a node among multiple nodes v of the GNN; and generate an output matrix having multiple nodes labeled based on the first matrix M.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to network configuration, and in particular to a method, system and processor-readable medium for generating network configuration using a graph neural network (GNN). Background Art

[0002] Billions of users and devices are connected to the Internet through campus networks, enterprise networks, and Internet service provider (ISP) networks. These networks, called autonomous systems (AS), use the border gateway protocol (BGP) to exchange reachability information that data traffic can carry over the Internet. In addition, the rapid growth and development of data center architectures has provided a new direction for the use of BGP as an interior gateway protocol (IGP) within data centers.

[0003] BGP is a standard exterior gateway protocol responsible for exchanging reachability information between autonomous systems. BGP is a path vector routing protocol that advertises routing information as a destination Internet protocol (IP) prefix P and a list of autonomous systems that can reach P. Routers can define filters for incoming or outgoing BGP advertisements to discard, accept, or modify these advertisements. BGP uses external border gateway protocol (EBGP) sessions to advertise reachability information between border routers. Routes exchanged between routers in the same AS use internal border gateway protocol (IBGP) sessions. Routes learned by IBGP are not re-advertised internally to prevent forwarding loops within the autonomous system. In addition, BGP routers discard EBGP route advertisements with local AS numbers in the AS list to prevent forwarding loops. If multiple advertisements for the same prefix are available, the router may prefer the route with the lowest local preference. For routes with the same local preference, BGP uses other factors such as path length, multi exit discriminator (MED), and IGP metrics. This flexibility that BGP introduces in controlling how traffic flows through an autonomous system increases the complexity of network configuration.

[0004] Network configuration can be defined as the process of acquiring, organizing, and maintaining information about all components of a computer network. This process is usually done manually, resulting in low-level configurations for each network device. With the substantial increase in the number of network devices, network configuration has become very challenging and error-prone. In addition, manual configuration has not been fully evaluated under various failure conditions, which leads to severe business losses when unexpected configuration errors occur (e.g., backup path misconfiguration). BGP-related configuration error incidents can cause network downtime for various companies. In addition, studies have shown that human-induced configuration errors are the main cause of most network downtime.

[0005] Therefore, there is a need for an improved system and method for generating reliable network configurations while efficiently utilizing computing resources. Summary of the invention

[0006] The present invention provides a method, a processing system, and a processor-readable medium for generating a network configuration using a graph neural network (GNN). In some embodiments, the method, the processing system, and the processor-readable medium use a readout neural network (readout NN) to further refine the edge state matrix determined using the output of the GNN. The edge state matrix can be used to calculate rewards based on a given set of network requirements. When the reward is less than a predefined threshold, an optimizer can be used to update one or more weights in the GNN or the Readout NN. When the reward is equal to or greater than the predefined threshold, the training of the GNN and the Readout NN can be stopped, and the edge state matrix can be converted into a set of network configurations for deployment.

[0007] In one aspect of the present invention, a system is provided, comprising a processor and a non-transitory memory storing instructions, wherein when the instructions are executed by the processor device, the processor: receives a first matrix M representing a network having a plurality of routers, wherein each element in M ​​may indicate a connection state of data traffic between two routers in the plurality of routers based on a network requirement set; stores a GNN including a plurality of nodes v and a plurality of edges in the non-transitory memory, wherein each of the plurality of nodes v corresponds to a corresponding router in the plurality of routers, and each of the plurality of edges corresponds to a physical link connection between two or more routers in the plurality of routers; trains the GNN to generate an output matrix O v , where O v The method comprises a plurality of nodes labeled based on the first matrix M.

[0008] In another aspect, an exemplary embodiment relates to a method for generating a network configuration using a GNN. The method includes: receiving a first matrix M representing a network having a plurality of routers, wherein each element in M ​​indicates a connection state of data traffic between two routers in the plurality of routers based on a network requirement set; storing a graph neural network (GNN) including a plurality of nodes v and a plurality of edges, wherein each node in the plurality of nodes v corresponds to a corresponding router in the plurality of routers, and each edge in the plurality of edges corresponds to a physical link connection between two or more routers in the plurality of routers; training the GNN to generate an output matrix O v , where O v The method comprises a plurality of nodes labeled based on the first matrix M.

[0009] The disclosed embodiments can eliminate the burden of manually designing network configurations for network devices and routers. After training, GNN and ReadoutNN can automatically generate full network configurations based on network topology and high-level network requirements.

[0010] In some embodiments, training the GNN may include: based on a second matrix X having a plurality of elements v Initialize the GNN; aggregate the neighborhood information of each node in the multiple nodes v of the GNN; calculate the hidden state of each node in the multiple nodes v of the GNN based on the corresponding neighborhood information; generate the O based on the hidden state of each node in the multiple nodes v of the GNN v .

[0011] In some embodiments, the second matrix X v can be the identity matrix, and X v Each column of can be associated with a router in the plurality of routers.

[0012] In some embodiments, X v Each column of is a heat vector representing a corresponding router among the plurality of routers.

[0013] In some embodiments,

[0014]

[0015] V is an edge state matrix having a plurality of elements, wherein each element of V indicates a transmission state of data traffic from each of the plurality of routers.

[0016] In some embodiments, the method may include training a Readout Neural Network (Readout NN), wherein the Readout NN receivesv As input, generate the edge state matrix V.

[0017] In some embodiments, the method may include: receiving the edge state matrix V and generating a reward using a configuration validator; and updating one or more weight parameters in the GNN and the Readout NN based on the reward using an optimizer unit.

[0018] In some embodiments, the configuration validator is configured to evaluate the edge state matrix V based on the set of network requirements.

[0019] In some embodiments, the optimizer unit is used to update the one or more weight parameters in the GNN and the Readout NN to maximize the reward.

[0020] In some embodiments, when the reward from the configuration validator has a value that satisfies a predefined threshold, the method may stop training the GNN before forwarding the edge-state matrix V to the configuration writer.

[0021] In some embodiments, the predefined threshold is 1.

[0022] In some embodiments, the configuration writer may be used to convert the edge state matrix V into a valid network configuration.

[0023] In some embodiments, the method may include deploying the effective network configuration to one or more routers of the plurality of routers.

[0024] According to another aspect, which may be combined with other embodiments disclosed herein, a non-transitory processor-readable medium is provided, the non-transitory processor-readable medium comprising instructions executable by a processor to perform the method steps described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Embodiments will now be described by way of example with reference to the accompanying drawings, wherein like reference numerals may be used to refer to like features.

[0026] Figure 1 An exemplary network topology with a network problem is shown;

[0027] Figure 2 A block diagram of an exemplary processing system that can be used to implement a GNN is shown in accordance with the exemplary embodiments described herein;

[0028] Figure 3 shows an exemplary GNN in training provided by exemplary embodiments described herein;

[0029] Figure 4shows an exemplary network topology with intermediate nodes provided by the exemplary embodiments described herein;

[0030] Figure 5 Another example network topology is shown, wherein network paths are shown based on a set of network requirements;

[0031] Figure 6 Shown based on Figure 5 An exemplary GNN diagram of the network topology shown, including an exemplary exterior gateway protocol (EGP) diagram and an exemplary interior gateway protocol (IGP) diagram;

[0032] Figure 7 is a snippet of an example YAML file for generating input matrices to train a GNN;

[0033] Figure 8 is an example of an algorithm for optimizing weight parameters of a GNN in training provided by the exemplary embodiments described herein;

[0034] Fig. 9 is a flowchart of an exemplary method for generating a network configuration using a GNN provided by the exemplary embodiments described herein;

[0035] Fig.10 An example table of BGP sessions generated by a configuration writer provided by the exemplary embodiments described herein is shown;

[0036] Fig.11 describes the rewards achieved in each training round performed by a GNN using an optimizer algorithm according to an exemplary embodiment described herein;

[0037] Fig.12 Describes the training phase and a plot of the training wall-clock time required to train a GNN versus the size of the network topology;

[0038] Fig.13 Plots showing the relationship between feedforward time and verification time and the size of the network topology. DETAILED DESCRIPTION

[0039] The present invention is carried out with reference to the accompanying drawings, in which embodiments are shown. However, many different embodiments may be used, and therefore the description should not be interpreted as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to make the present invention thorough and complete. Where possible, the same reference numerals are used in the accompanying drawings and the following description to refer to the same elements, and prime notation is used in alternative embodiments to indicate the same elements, operations or steps. The separate boxes or shown separations of the functional elements of the illustrated systems and devices do not necessarily require the physical separation of these functions, because the communication between these elements can occur by means of message passing, function calls, shared memory spaces, etc. without any such physical separation. Therefore, although functions are shown separately herein for ease of explanation, these functions do not need to be implemented in physically or logically separated platforms. Different devices may have different designs, so that although some devices implement some functions in fixed-function hardware, other devices may implement these functions in a programmable processor having a code obtained from a machine-readable medium. Finally, the elements mentioned in the singular may be plural, and vice versa, unless the context clearly or inherently indicates.

[0040] Figure 1 An exemplary network topology 100 with a network problem is shown. The data center is assigned IP address space 128.2.0.0 / 16. Inside the data center, as shown, there are four different subnets 124, 126. In order to reduce routing table space and limit routing table instability, router 120 advertises an aggregate route to Internet service provider (ISP) 110. In addition, router 120 receives a default route for unknown prefixes from ISP 110. This configuration works properly as long as all subnets 124, 126 are active. When prefix 128.2.3.0 / 24 126 fails, ISP 110 continues to send traffic to this prefix through router 120. Since router 120 no longer has a direct connection to prefix 128.2.3.0 / 24 126, it matches this traffic to the default route and redirects the traffic to ISP 110. Therefore, the traffic keeps going back and forth between ISP 110 and router 120, thus forming a forwarding loop between router 120 and ISP 110. This simple example illustrates how complex network configuration is and requires manual intervention from time to time. However, as the number of network devices grows exponentially and with the complexity of the operator's intentions, network configuration becomes very challenging and error-prone.

[0041] There are several schemes to avoid or solve network problems as described above, such as by validating existing configurations, running predefined validation scenarios on existing network configurations, completing existing network templates, or using predefined templates and filling in the blanks in such templates. Another proposed scheme uses methods based on satisfiability modulotheory (SMT) to synthesize network configurations, which do not scale well in large network topologies.

[0042] Exemplary embodiments of the present invention describe training a neural network to generate a network configuration based on network requirements. Exemplary embodiments may be scalable and suitable for a variety of different network types and protocols. In some embodiments, a scalable neural network-based model is implemented to automate the process of generating network configuration settings (or simply "network configuration") for a specific network topology. The proposed scheme can be implemented for various network types and filters, such as BGP, multiprotocol label switching (MPLS), access control lists (ACLs), and IGPs (such as RIP and OSPF). Neural network-based models, particularly GNN-based models described in some embodiments below, can generate a network configuration based on a set of network requirements for a BGP network.

[0043] Exemplary embodiments will now be described with respect to methods, systems, and non-transitory media for generating a network configuration based on a set of network requirements. The network requirements may be manually generated (e.g., by a network administrator) based on the goals or constraints of the network, or may be generated by an artificial intelligence device. For example, Several examples are listed (reproduced below) of how intents can be applied to network infrastructure.

[0044]

[0045] Figure 2 A block diagram of an exemplary processing system 200 that can be used to implement a GNN is shown. The processing system 200 includes a processor 202 for executing computer program instructions and a memory 204 for storing executable instructions and data.

[0046] Processor 202 may be implemented as any processing resource capable of executing computer program instructions, such as one or more processors on a computer or one or more computing platforms. Memory 204 may be implemented as any data storage resource, such as one or more disk drives, random access memory, or volatile or non-volatile memory on one or more computing platforms.

[0047] Several types of computer programs in the form of executable instructions are stored on the memory 204. The memory has a set of executable instructions 210 for performing the methods described herein. The memory also has one or more sets of instructions for training a neural network or other machine learning model to generate a network configuration based on a given set of network requirements for a particular network topology.

[0048] Several types of data 280 may be stored on the memory 204. For the matrix representation 212, the data 280 may include weight parameters 361, 362 and a hidden state vector 216. The matrix representation 212 may include matrices used as inputs to a neural network (e.g., a GNN), as well as matrices updated or generated by the neural network. The weight parameters 361, 362 and the hidden state vector 216 are iteratively updated during the training process of the GNN to refine the output of the GNN, which may also be a matrix.

[0049] In some exemplary embodiments, the processing system 200 includes a neural network system 300 that synthesizes a network configuration based on high-level operator intent. Figure 3 As shown, a graph neural network (GNN) 330 and a Readout neural network (Readout NN) 340 can be used to represent the network topology, encode a set of network requirements and generate a network configuration 370. A configuration validator 350 can be used to calculate a reward 355, based on which an optimizer unit 360 can update one or more neural network weight parameters 361, 362 of the GNN. The processing system 200 repeats the neural network tuning steps until all operator requirements verified by the configuration validator 350 are met. After verification, the processing system 200 can generate a network configuration 370 using a configuration writer 365. The network configuration 370 can then be deployed to one or more routers of the network. A fragment of an exemplary network configuration 370 is shown below.

[0050] #output Configuration for node A

[0051] system-view

[0052] ip ip-prefix IP_PREFIX_1_100index 10permit 192.168.16.0 twenty four

[0054] ip ip-prefix IP_PREFIX_1_100index 20permit 10.10.2.0 24

[0055] ip ip-prefix IP_PREFIX_1_100index 30permit 10.10.3.0 24

[0056] ip ip-prefix IP_PREFIX_1_100index 40permit 10.10.4.0 24

[0057] route-policy ROUTE_POLICY_1_100permit node 10

[0058] if-match ip-prefix IP_PREFIX_1_100

[0059] quit

[0060] ip ip-prefix IP_PREFIX_1_2index 50permit 10.10.1.0 24

[0061] route-policy ROUTE_POLICY_1_2permit node 10

[0062] if-match ip-preiix IP_PREFIX_1_2

[0063] quit

[0064] ip ip-prefix IP_PREFIX_1_3index 50permit 10.10.1.0 24

[0065] route-policy ROUTE_POLICY_1_3permit node 10

[0066] if-match ip-prefix IP_PREFIX_1_3

[0067] quit

[0068] bgp 500

[0069] peer 192.168.17.2as-number 100

[0070] peer 192.168.16.2as-number 500

[0071] peer 192.168.16.6as-number 500

[0072] peer 192.168.17.2route-policy ROUTE_POLICY_1_100

[0073] export

[0074] peer 192.168.16.2route-policy ROUTE_POLICY_1_2export

[0075] peer 192.168.16.6route-policy ROUTE_POLICY_1_3export

[0076] ipv4-family unicast

[0077] network 192.168.16.0 24

[0078] quit

[0079] quit

[0080] Turning now to the GNN 330, in some embodiments, the network requirements set 310 can be represented by a matrix M 320. The network requirements 310 can include network size (e.g., the number of border and internal routers), network topology, network protocol (e.g., BGP), access rights, reachability, isolation rules, etc. In some exemplary embodiments, the network requirements set 310 can first be represented using one or more programming languages, such as the human-readable data serialization language YAML. YAML is commonly used for configuration files and applications that store or transmit data. Figure 7 An example of a YAML file fragment is shown in FIG. A YAML file can be written in one or more programming languages ​​(e.g. ) is converted into the input matrix M 320.

[0081] The network under consideration may have one or more autonomous systems, each with at least one border router and one or more internal routers. Thus, the network may be represented based on a plurality of routers, including border routers and internal routers within each AS. Figure 7 The YAML file in shows that separate sections are provided for one or more prefixes on each AS, network router interfaces, connections between routers, and operator intent. Parsing of such a YAML file can be performed using the PyYAML package. Thereafter, a sanity check can be performed on the YAML file before running the neural network system 300 as described below. A sanity check can be used to verify that all connected interfaces belong to the same subnet and that there is no overlap between subnets.

[0082] The processing system 200 can generate two parts of the network configuration: (i) a static configuration and (ii) a dynamic configuration. The static configuration can be obtained directly from the YAML file, such as setting the host name and interface address. Based on the output of the neural network system 300, the dynamic configuration is generated taking into account static parameters such as router ID, network prefix, etc. In some embodiments, the routing information protocol (RIP) can be used to configure the full interconnection between internal routers.

[0083] The input matrix M 320 is a label matrix for training the GNN 330. In some embodiments, the input matrix M 320 includes a vector for each node in the GNN 330, and each node in the GNN 330 is associated with a corresponding router from a plurality of routers. For example, each column M in the matrix M 320 ij,i=1...m =[M 1j , M 2j …M mj ] T It can include the connection status information of the data packets initiated from router j to all routers in the network (including router j itself). For example, a positive connection indicates that there is a routing advertisement of the data packet between router A and router B.

[0084] In addition, each element M in M ​​320 ij The connection state of data traffic between two routers in the plurality of routers may be represented based on the network requirement set. Specifically, the element M ij Represents the routing advertisement state of the data packet between router i and router j, for example, the data packet transmitted from router j to router i. Each element M ij The value of is a real value between [-1, 1], where a value greater than 0 (such as 1) indicates a positive connection, which means that packets from router j to router i can pass (e.g., "advertise"), and a value equal to or lower than 0 (such as -1) indicates a disconnection, which means that packets from router j cannot reach router i under any routing configuration conditions. Matrix M 320 can also indicate when a packet propagates from a source to a destination, and if there are multiple routes to take, which route(s) may be preferred over other routes. For example, given the element M 23 The value in is 0.8, and the element M 21 A value of 1 in means that packets destined for Router 2 are better off going through Router 1 than through Router 3.

[0085] GNN 330 is a neural network that operates on a graph structure. In GNN, G = (V, E) is a directed graph with nodes v∈V and edges e∈E. In GNN 330, the eigenvector h is calculated for each node v by applying an aggregation function Agg(.) to all adjacent eigenvectors. v , also called the hidden state vector. This process is called message passing. The output of the aggregator Agg(.) is passed to a feedforward neural network to calculate the new hidden state vector for each node, where the feedforward neural network has a first weight parameter As shown in the following equation (1).

[0086]

[0087] In GNN, is the hidden state of node v at time step t, generally represented by h v ; NBR(v) is the set of all neighbors of node v; is the weight parameter of the feedforward neural network. Agg(.) is the aggregation function, which can be the sum(.) or mean(.) function of each edge item. These calculations are performed for each layer, with the initial condition As shown in equation (2), where x v is the initial node feature vector. In some embodiments, X v can be the identity matrix. For example, X v Each column of may be a heat vector representing a corresponding router among the plurality of routers.

[0088] Here, the definition of the neighbor NBR of a node may be predefined. For example, the neighbor NBR may be defined as the immediate neighbors of the node v.

[0089] In some embodiments, an activation function represented by σ, such as the hyperbolic tangent function tanh(.), may be used to convert h v The value of is restricted to [-1, 1] for reasons explained further below.

[0090] The output of GNN O v 335 is a matrix including a plurality of elements, each element including the hidden state h v Together with the node feature x v The vector generated by passing it to the function g(.), which can be another neural network described in equation (3). For example, g(.) can be defined as This leads to Among them, b t is the bias vector, σ2 is another activation function, and is the weight parameter of the neural network g(.).

[0091] In some embodiments, g(.) can be a simple activation function σ2 without another neural network.

[0092] In some embodiments, O v 335 can be Wherein, M is the matrix M 320 initially generated based on the network requirement set 310, and V is the edge state matrix V as further described below. v The size of 335 can be determined based on the number of routers and physical links in the network. v The total number of 335 can be N nodes, where

[0093] N = (total number of routers + (total number of physical links × 2)) × total number of routers.

[0094] Matrix O v 335 is forwarded to an optional Readout neural network (Readout NN) 340 as a readout layer. Readout NN 340 can be based on the matrix O v 335 generates an edge state matrix V345 for routing advertisements or blocks between physical routers of the BGP network. Each column V in the matrix V345 ij,i=1…m =[V 1j , V 2j …V mj ] T It can include the transmission state information of the data packets originated from router j to all routers in the network (including the router j itself). Each corresponding element of the matrix V345 can be called an edge state vector, including the transmission state information of each routing session (between each pair of routers) based on the originating router of the data packet.

[0095] For example, a network with four border routers (such as Figure 4 As shown) can have an edge state matrix V345 as shown below:

[0096]

[0097] in, is an edge state vector representing the transmission state of a data packet initiated at router (node) z and transmitted from router (node) x to router (node) y.

[0098] Each edge state vector Each has a value indicating the transmission state. The value can be a real value between [-1, 1], where a value greater than 0 (such as 1) indicates that the packet will pass (e.g., "advertise"), and a value equal to or less than 0 (such as -1) indicates that the packet will be rejected / blocked. In some embodiments, the value can also indicate when the packet is propagating from the source to the destination, and which route(s) may be preferred over other routes if there are multiple routes to take. For example, given the element The value in is 0.8, and the element A value of 1 in means that a packet from Router 4 (source) to Router 1 (destination) is better off going through Router 2 than through Router 3.

[0099] The total number of edge state vectors in the edge state matrix V 345 can be determined based on the total number of routers and the total number of physical links in the network. For example, for a network with 4 routers and 3 physical links between the 4 routers, there can be a total of 24 elements, determined by the total number of physical links × the total number of routers × 2, so the edge state vector can be represented as V ij,i=1至6,j=1至4 .

[0100] In some embodiments, the total number of edge state vectors can be reduced by considering only the previous step of the route advertisement instead of the total number of routers in the network. represents the state of a traffic advertisement received from node z and forwarded from node x to node y. For example, for a network with 4 routers and 3 physical links between the 4 routers, it includes 6 edge state vectors V ij,i=1至3,j=1至2 The edge state matrix V can be expressed as:

[0101]

[0102] Readout NN 340 may include a neural network similar to the neural network of GNN 330. For example, Readout NN 340 may first refine the matrix O using the following equation (4): v 335:

[0103]

[0104] Among them, b t is another bias vector, σ3 is another activation function, are the weight parameters of the neural network of Readout NN 340. can be initialized to the identity matrix, and b can be initialized to [0]. Then, Used to generate the edge state matrix V 345. Readout NN 340 is an optional step and may be omitted in some embodiments, depending on, for example, computational resource constraints.

[0105] Configuration validator 350 receives edge state matrix V 345 and calculates reward R 355 based on a set of predefined rules. Configuration validator 350 can be used to evaluate edge state matrix V 345 according to network requirements set 310 (e.g., reachability, isolation, no transmission, load balancing, and path preference).

[0106] The edge state matrix V 345 is evaluated by the configuration validator 350 in each iteration. For example, the configuration validator 350 can be used to calculate all shortest paths between each pair of source routers and destination routers with a maximum length of 16 hops. This is based on the assumption that all routers use the time-to-live (TTL) field in the IP header as the maximum number of hops that a data packet can transmit during its lifetime. Thereafter, the configuration validator 350 can use the calculated shortest paths to generate first-order logic constraints, which are then used to verify whether the edge state matrix V 345 meets the network requirements 310, including reachability and isolation requirements. The reward R 355 can be calculated based on the ratio of the satisfied network requirements to all network requirements 310. When all network requirements 310 are met, the reward R 355 has a value equal to or very close to a predefined threshold (e.g., 1 or 0.99999), in which case the processor 202 can forward the edge state matrix V 345 to the configuration writer 365 to generate the network configuration 370.

[0107] When the calculated reward R 355 is less than a predefined threshold, it is sent to the optimizer unit 360, which can use various optimization strategies to update one or more neural network parameters 361, 362 to refine the GNN output. v 335 and edge state matrix V 345. When implementing Readout NN 340, neural network parameters 361 may include one or more weight parameters from GNN 330 and / or And the neural network parameters 362 may include the weight parameters from the Readout NN 340

[0108] In some embodiments, reinforcement learning (RL) is implemented by the optimizer unit 360 to refine the weight parameters 361, 362. RL is one of the machine learning paradigms that trains software agents to automatically determine ideal behavior at a given time step. This behavior that maps from a given system state to an appropriate action is called a policy. Alternatively, a deep reinforcement learning (DRL) model can be used for the implementation of the optimizer unit 360. Both RL and DRL were originally designed for systems with discrete action spaces. Recently, DRL has been extended for continuous action space systems by supporting agents to generate the mean μ and standard deviation σ that define ideal actions in a continuous space. Given that the GNN 330 and ReadoutNN 340 ultimately generate the edge state matrix V 345 for all route announcement sessions, a multivariate normal distribution is required to make σ a square matrix. Therefore, the complexity of the DRL model and the required computational power increase linearly with the square of the number of actions.

[0109] In some embodiments, the optimizer unit 360 can be implemented using an evolution strategy (ES) algorithm instead of using RL or DRL. Compared with RL, the ES algorithm can provide faster convergence speed and higher parallelization. The ES algorithm is similar to a hill climbing optimization problem in a high-dimensional space during execution. Therefore, it does not require backpropagation and therefore requires less time and computing power than RL and DRL. In addition, the ES algorithm is highly parallelizable because the communication required between working nodes is limited to a few scalars, namely the calculated reward and the random generator seed.

[0110] In some embodiments, a covariance matrix adaptation evolution strategy (CMA-ES) may be implemented to improve the output as a black box optimization problem. The processor 202 may use the calculated reward R 355 to decide how to update the neural network parameters while improving the output. Figure 8 An exemplary ES algorithm 800 is shown executed by the processor 202 based on the instructions 210 stored in the memory 204. The ES algorithm 800 is designed to randomly sample a set of (p) solution candidates, where p∈O...P-1 is in a multi-dimensional Gaussian distribution, as described in lines 5 and 6 of the ES algorithm 800. Next, the neural network weights 361, 362 are updated (line 7), where θ tis the weight at the current time step t, and σ is the noise standard deviation. In lines 8 and 9, the processor 202 performs the feedforward process as follows: a new output is generated based on the updated weight parameters 361, 362 through the GNN 330 and the optional Readout NN 340, and the configuration validator 350 is called to calculate the updated reward R 355. If the updated reward R 355 meets the predefined threshold (e.g., 1), the processor 202 sends the edge state matrix V 345 to the next component, namely the configuration writer 365 (lines 10-12). Otherwise, the processor 202 updates the model weights based on the calculated gradients (line 14) and repeats the same process in the next iteration until the updated reward R 355 meets the predefined threshold.

[0111] ES algorithms are easy to scale in distributed environments. Some studies have shown that ES achieves similar results to RL in shorter wall-clock time by distributing the computational load across hundreds of worker nodes.

[0112] After tuning the neural network parameters 361, 362, and when the reward R 355 reaches a predefined threshold (e.g., 1), the edge state matrix V 345 is forwarded to a configuration writer 365. The configuration writer 365 can be used to convert the edge state matrix V 345 into a set of valid vendor-specific network configurations 370, which can then be deployed to one or more routers in the network.

[0113] Two exemplary networks 400 and 500 are now described, along with an implementation of the neural network system 300 for each of the networks 400, 500. Turning now to Figure 4 , which shows an exemplary EGP graph of a network 400. The network 400 has four autonomous systems (AS1, AS2, AS3, AS4), each AS having a corresponding border router represented by an original node 410, 420, 430, 440. The EGP graph includes an intermediate node 452 for training the GNN 330. The intermediate node 452 does not represent a physical router, but a node 452 added for each unidirectional path 412 between two original nodes 410, 420, 430, 440. Therefore, a bidirectional link between a pair of original nodes can add two intermediate nodes in the middle. Assuming that the neural network system 300 only involves generating a network configuration of an external border router based on the border gateway protocol (BGP), the internal routers within each AS are not shown or considered in this particular exemplary embodiment. BGP is a standard protocol for inter-domain routing and is selected as an exemplary protocol for implementing the neural network system 300. It should be noted that the neural network system 300 with a modified configuration validator can be implemented for other types of networks, such as MPLS.

[0114] For network 400, network requirements 310 may indicate that: (1) AS2 can connect to each of AS1, AS3, and AS4 (reachability); (2) AS3 cannot reach AS4 under any circumstances (and vice versa). In addition, there are three direct physical communication links, one each between AS1 and AS2, AS2 and AS3, and AS2 and AS4.

[0115] To generate the input matrix M320 for training the neural network system 300, two intermediate nodes 452 for each physical link are added in the EGP graph (one intermediate node in each direction). Based on the nodes 410, 420, 430, 440 and the network requirements 310, the input matrix M320 can be generated as:

[0116]

[0117] Includes four eigenvectors x v The initial feature matrix Xv can be expressed as:

[0118]

[0119] Among them, x AS1 =[1 0 0 0] T , x AS2 =[0 1 0 0] T , x AS3 =[0 0 1 0] T , x AS4 =[0 0 0 1] T .

[0120] Both the input matrix M320 and the initial feature matrix Xv are used to train the GNN 330 based on the following equation:

[0121]

[0122] At time step t = 0: and

[0123] After each iteration, output O v 335 can be generated by GNN 330, where M is the matrix M320 initially generated based on the network requirement set 310, and V is the edge state matrix V345. More specifically:

[0124]

[0125] and

[0126]

[0127] That is, GNN 330 and Readout NN 340 are trained to predict the corresponding transmission state of each of all intermediate nodes 452 according to the labels of nodes 410, 420, 430, 440. The transmission state of each of all intermediate nodes is collected in edge state matrix V345.

[0128] Once the output O v 335 is generated by GNN 330, which can be sent to Readout NN 340 to be further refined by the Readout neural network layer and from O v 335 extracts the edge state matrix V 345 and sends the edge state matrix to the configuration validator 350 to determine the reward R 355.

[0129] For example, to verify that the path between AS1 and AS3 is active, the configuration validator 350 calculates all possible paths between AS1 and AS3 that can only be routed through AS2. Then, the configuration validator 350 verifies that and (for the forward direction) and for the reverse direction, and In addition, in order to verify the above isolation requirement between AS3 and AS4, the configuration validator 350 needs to verify that all paths between AS3 and AS4 are disabled, which means that: for the forward direction, or And for the reverse direction, or It should be noted that only one physical link (ie, the physical link between AS2 and AS4, or between AS2 and AS3) needs to be disabled in each direction to meet the above isolation requirement.

[0130] When the value of R 355 is equal to or very close to a predefined threshold (e.g., 1 or 0.99999), the edge state matrix V 345 is sent to the configuration writer 365 for generating the network configuration 370. Otherwise, the reward R 355 is sent to the optimizer unit 360 for refining the neural network weight parameters 361, 362.

[0131] The optimizer unit 360 may use a method similar to Figure 8The ES algorithm shown in the figure refines the weight parameters 361 in the GNN 330 and optionally refines the weight parameters 362 in the Readout NN 340. The GNN 330 and the Readout NN 340 are executed by the processor 202 in a new iteration using the refined weight parameters 361, 362 to generate an updated output matrix O v 335 and the updated edge-state matrix V 345. The configuration validator 350 determines an updated reward R 355 based on the updated edge-state matrix V 345, and continues the training process until the updated reward R 355 reaches a predefined threshold, or until a predefined maximum number of iterations is reached.

[0132] Once R 355 reaches a predefined threshold, the final edge state matrix V 345 is sent to the configuration writer 365 for generating Figure 4 A final network configuration set 370 for network 400 is shown.

[0133] Reference now Figure 5 , which shows another exemplary network 500 with five autonomous systems AS100, AS200, AS300, AS400 and AS500. In this example, the neural network system 300 can be implemented to generate a network configuration for an ISP AS500, which has four internal routers A, B, C, D 525. AS500 is connected to one client network AS100 and three peer networks, namely AS200, AS300 and AS400. The network requirement set 310 may include:

[0134] 1) AS100 can reach all peer networks AS200, AS300 and AS400.

[0135] 2) AS500 does not apply the transmission rule, that is, AS200, AS300 and AS400 cannot reach each other through AS500.

[0136] 3) Data packets sent to AS200 prefer Router B over Router C.

[0137] Fig. 9 is to use the GNN 330 and the optional Readout NN 340 executed by the processor 202 of the neural network system 300 for a given network (e.g. Figure 5 500) to generate a network configuration 370. Figure 6 An exemplary method 900 is described.

[0138] At step 902, the processor 202 receives an input matrix M320 generated based on the network requirement set 310 listed above. The input matrix M320 is based on Figure 6 As shown in the figure, the GNN graph 600 has a label matrix generated by Figure 5 620 and the interior gateway protocol (IGP) 610 of the network 500 in FIG. The GNN graph 600 represents the control plane, wherein the border router is represented as an external node 510, the internal router within the ISP 520 is represented as an internal node 525, and the connection state (e.g., passing or blocking) of each path between the two routers is represented by an edge. Each node v 510, 525 can represent a border router in the client network AS100 or the peer network AS200, AS300, AS400 or an internal router in the ISP AS500.

[0139] In this example, EGP 620 shows all internal routers within AS500520 as nodes 525 in a fully meshed scheme to represent an IBGP session. The fully meshed scheme indicates that the internal routers are interconnected with each other, as shown by bidirectional links 527 in EGP 620. Based on the network requirements 310 listed above, it also includes external routers as nodes 510 with bidirectional links 515. Each bidirectional link 515, 527 shown in EGP 620 indicates that at least some packets transmitted from either direction will be allowed to pass (also called "advertisements").

[0140] In some embodiments, the GNN graph 600 can be adapted to different network topologies to represent internal routers within an AS, rather than a fully interconnected solution. Regardless of the type of network topology selected to represent the internal routers, the internal routers are reproduced as nodes 525 in the EGP graph 620, so that the first or input matrix M 320 can be determined based on the EGP graph 620.

[0141] To generate the input matrix M 320, two intermediate nodes for each edge (i.e., one intermediate node in each direction) are added to each link 515, 527. Next, instructions in PyYAML or another programming language may be used to generate the input matrix M 320, which includes labels for the nodes 510, 525 based on the network requirement set 310. The input matrix M 320 is shown below:

[0142]

[0143] Each element M in M ​​320 ijIndicates the connection status of data traffic between two routers among multiple routers in AS100, AS200, AS300, AS400, and AS500. 11 Indicates the connection status of the data packet transmitted from the router in AS100 to the router in AS100, M 21 Indicates the connection status of the data packet transmitted from the router in AS100 to the router in AS200, M 22 Indicates the connection status of a data packet transmitted from a router in AS200 to a router in AS200. Specifically, element M ij It can represent the connection status of the data packet transmitted between router i and router j (for example, from router j to router i). Each element M ij The value of is a real value between [-1, 1], where a value greater than 0 (such as 1) indicates a positive connection, which means that packets from router i to router j can pass (e.g., "advertise"), and a value equal to or lower than 0 (such as -1) indicates a disconnection, which means that packets from router i cannot reach router j under any routing configuration conditions. Matrix M 320 can also indicate when a packet propagates from a source to a destination, and if there are multiple routes to take, which route(s) may be preferred over other routes. For example, given the element M 32 The value in is 0.8, and the element M 12 A value of 1 in means that packets destined for Router 2 are better off going through Router 1 than through Router 3.

[0144] For greater clarity, each column of the input matrix M 320 may be associated with a corresponding router in AS100, AS200, AS300, AS400, and AS500 as follows:

[0145]

[0146] The connections between AS100 and each of AS200, AS300, AS400 and internal routers A, B, C, D within AS500 are represented in the first column of the input matrix M 320. Elements with values ​​greater than zero (e.g., 1) indicate positive connections, i.e., packets can pass through. Elements with values ​​equal to or less than zero indicate disconnection, i.e., blocking (also called "isolation").

[0147] Similarly, based on the network requirements set 310, the connections between AS200 and each of AS100, AS300, AS400, and AS500 are encoded in the second column of the input matrix M 320. For example, the no transmission rule for AS500 indicates that AS200, AS300, and AS400 are isolated, so the elements in the second column of M 320 corresponding to AS300 and AS400 are set to values ​​less than zero: for example, -1. For another example, AS200 can reach AS100 and AS500, so the corresponding elements in the second column of M 320 corresponding to the internal routers within AS100 and AS500 are set to values ​​greater than zero, for example, 1. For another example, the network requirements 310 data path preference listed in the network requirements 310 indicates that traffic destined for AS200 prefers router B over router C in AS500. This requirement is met by setting the elements specified for A, B, D (preference) in the second column of M 320 to values ​​higher than the element of C. For example, these values ​​may be set to 1 and 0.9, respectively.

[0148] AS300, AS400, and AS500 may repeat the same process to generate the rest of the input matrix M 320. Since there are a total of five autonomous systems or networks under consideration, there are 5 columns in the input matrix M 320.

[0149] Next, we can include five feature vectors x v The initial feature matrix Xv of is set to an identity matrix of size 5×5, with each corresponding node index set to 1.

[0150] Both the input matrix M 320 and the initial feature matrix Xv are used to train the GNN 330. Specifically, in step 904 of the method 900, the processor 202 stores and initializes the GNN 330 at time step t=0: and If Readout NN 340 is implemented, Readout NN 344 may also be initialized in a similar manner.

[0151] Next, GNN 330 is trained to predict the output matrix O based on the labels of the original nodes 510 and 525. v 335, the output matrix O v 335 includes information representing the connection status of each of all intermediate nodes. The training process includes, at step 906, aggregating neighborhood information of each of the multiple nodes v of the GNN. Neighbors (NBR) can be defined as the nearest neighbors of a node. For example, in Figure 6 In FIG. 4 , node AS200 has two neighboring nodes: B and C.

[0152] At step 908, processor 202 computes the hidden state vector for each of the plurality of nodes v of GNN 330 and optional ReadoutNN 340 based on the aggregated neighborhood information from step 906.

[0153] At step 910, processor 202 calculates the hidden state vector of each node v based on the hidden state vector of each node v. Generate output matrix O v 335, of which, M is the matrix M 320 initially generated based on the network requirement set 310 , and V is the edge state matrix V 345 .

[0154] At step 912, the processor 202 generates a matrix O based on the output matrix O. v 335 generates an edge state matrix V 345. Each element of the edge state matrix V 345 has a value representing the transmission state of each intermediate node among all intermediate nodes. The edge state matrix V 345 includes a plurality of edge state vectors, wherein each edge state vector Has a value representing the transmission state of a data packet originated at router z and transmitted from router x to router y.

[0155] For example, the edge state vector z∈AS100,AS200,AS300,AS400,AS500 represents the transmission status of the intermediate nodes between Node B and AS200. This means that the EBGP session between router B and AS200 must block packets from AS300 and AS400. To this end, a semi-supervised classification task is run on the GNN. The training is done using the mean squared error (MSE) loss function of the masks of the original nodes 510, 525 representing physical routers (e.g., border or internal routers).

[0156] At step 914, the processor 202 outputs the matrix O v 335 and / or the edge state matrix V 345 are passed to the configuration validator 350, which is used to verify the satisfiability of the network requirements 310 and generate a reward R 355. When the reward R 355 is the ratio of the satisfied network requirements to the total number of network requirements 310, the predefined threshold can be set to 1.

[0157] When the value of R355 is less than the predefined threshold, at step 916, the reward R355 is sent to the optimizer unit 360 for refining the neural network weight parameters 361, 362. There may be one or more neural network weight parameters, including the GNN330 and 361, and optional Readout NN 340

[0158] The optimizer unit 360 may use a method similar to Figure 8 The ES algorithm shown in the figure refines the weight parameters 361 in the GNN 330 and optionally refines the weight parameters 362 in the Readout NN 340. The GNN 330 and the Readout NN 340 are executed by the processor 202 in a new iteration using the refined weight parameters 361, 362 to generate an updated output matrix O v 335 and the updated edge-state matrix 345. The configuration validator 350 determines an updated reward R 355 based on the updated edge-state matrix V 345, and continues the training process until the updated reward R 355 reaches a predefined threshold, or until a predefined maximum number of iterations is reached.

[0159] When R 355 has a value equal to or very close to a predefined threshold (eg, 1 or 0.99999) at step 918 of method 900 , edge state matrix V 345 is sent to configuration writer 365 for generating network configuration 370 for network 500 . Fig.10 An example table of BGP sessions is presented in . This table shows what each router (source) should advertise to its neighbors over possible BGP sessions. In addition, a preference index is set for each advertisement to indicate the path preference if necessary. This preference index is converted to a local preference value in the import filter of the corresponding BGP session.

[0160] In order to verify the network configuration 370 generated by the neural network system 300, the eNSP network simulator can be used to copy the network configuration 370 to each router device in the simulated network similar to the network 500, thereby testing the network configuration 370. Table 1 shown below shows the BGP and IP routing table fragments of router B and router C. It can be seen that router B assigns a route to AS200; router C has two routes to AS200, and it prefers the route learned from router B to the other route, IP: 10.10.2.0, local preference = 10100. In addition, the last line indicates that router C adopts this route in its IP routing table.

[0161] Table 1: BGP routing tables at Router B and Router C

[0162]

[0163] At step 920 of method 900 , network configuration 370 generated by neural network system 300 may be deployed into a physical router of network 500 .

[0164] A fragment of the resulting configuration 370 is shown in Table 2 below, which shows that Router B is set to have a local preference for advertisements from AS 200. Therefore, traffic destined for AS 200 prefers Router B over Router C.

[0165] Table 2: BGP configuration snippet

[0166]

[0167] Experiment I - Feasibility

[0168] In order to prove the feasibility of the neural network system 300, based on Figure 5 Experiment I was conducted with the network topology in (as shown in the YAML file). The file includes basic network information, such as interface addresses and prefixes for each AS. GNN 330 was trained for 150 rounds and generated valid BGP configurations with a success rate of 93%. When GNN 330 failed to obtain a solution, the optimizer unit 360 was run to update the weight parameters 361 of GNN 330. In the experiment, the weights of GNN 330 were initialized to the identity matrix. In addition, the hyperparameters in the optimizer unit 360 using the ES algorithm were set as follows: the number of populations p = 50, σ = 0.5, the learning rate l r =0.002.

[0169] Fig.11 The best reward obtained in each training round is described. It can be noted that the optimizer unit 360 using the ES algorithm successfully obtained a valid solution in less than 60 training rounds. For comparison, in different experiments, the optimizer unit 360 used a DRL agent trained to take actions based on a given current state matrix value instead of using the ES algorithm. Specifically, the DRL agent adopts the deep Q-network (DQN) algorithm, and the environment is defined as the edge state matrix V 345. The discrete action space is defined as A(.) = 1, 2...m, where m is the number of elements in the edge state matrix V 345. The action function is defined to flip the state matrix elements corresponding to the selected action. In addition, the discount factor γ is set to 0.99, and the exploration and development factor is defined as ∈ = 0.01 + 0.99*e –衰减*步长 , where attenuation = 0.001. Fig.11It shows that DQN successfully obtains an effective solution, however, the training time is as long as expected (80,000 episodes). Similar results are obtained with other DRL algorithms (such as proximal policy optimization (PPO) and advantage-actor-critic (A2C)), but they are omitted for brevity.

[0170] Experiment II - Scalability

[0171] In this experiment, by using The NetworkX library generates network-wide configurations for a collection of randomly generated networks with varying numbers of nodes to demonstrate the scalability of the neural network system 300. The network nodes are divided into three categories (client 40%, peer 30%, provider 30%), and the network requirements are defined as follows:

[0172] 1) Clients and peers can reach all nodes;

[0173] 2) Client applications have no transmission rules; that is, they cannot transmit traffic between peers or providers;

[0174] 3) The provider can reach clients and peers; and

[0175] 4) Providers are isolated from each other.

[0176] This experiment was conducted on a virtual machine with a 4-core Xeon processor and 8GB of memory. Fig.12 A graph showing the training rounds and training wall clock time spent by the neural network system 300 versus the network size represented by the number of nodes is shown. It can be seen that the number of training rounds increases linearly with the network size. However, the training wall clock time increases exponentially with the network size.

[0177] Fig.12 The results of running the same experiment using an NVIDIA GTX 1060 graphics processing unit (GPU) are also described. It can be noted that using a GPU, the wall clock time increases linearly with the network size. It can be concluded that hardware acceleration is associated with a reduction in execution time.

[0178] A system based on satisfiability modulo theory (SMT) is compared with the neural network system 300. In the SMT-based system, The provided Z3 library is used as an SMT solver. Fig.12It is further shown that the SMT-based system performs better in terms of processing time. However, the neural network system 300 has the advantage of being more scalable than the SMT-based system.

[0179] Experiment III - Training Time

[0180] To understand why the training time grows exponentially when using CPU, while the number of training rounds grows linearly, a third experiment was conducted to test: (i) the neural network feedforward time and (ii) the validation time. Fig.13 It is shown that the neural network feed-forward process is the main reason for the exponential growth of training time. This problem can be solved by using computer hardware specialized for more efficient execution of GNN or Readout NN, for example, using GPU, which enables the neural network system 300 to scale linearly with the topology size.

[0181] In addition, the neural network system 300 can be adapted to generate network configurations for other networks, such as multiprotocol label switching (MPLS), access control lists (ACLs), and interior gateway protocols (IGPs) by modification. The only thing that needs to be modified is the configuration verification unit.

[0182] Selected definitions of abbreviations are as follows:

[0183] GNN Graph Neural Network;

[0184] GCN graph convolutional neural network;

[0185] LSTM Long Short-Term Memory;

[0186] RL reinforcement learning;

[0187] DRL Deep Reinforcement Learning;

[0188] DQN Deep Q Network;

[0189] CMA-ES Covariance Matrix Adaptive Evolution Strategy;

[0190] SD-WAN Software Defined WAN;

[0191] MED Multiple Exit Differentiation;

[0192] MSE Mean square error;

[0193] SDN Software Defined Network;

[0194] IoT Internet of Things;

[0195] PPO proximal strategy optimization;

[0196] A2C Advantage - Actor-Critic Algorithm;

[0197] RIP Routing Information Protocol;

[0198] TTL time to live;

[0199] WAN Local Area Network; and

[0200] GPU Graphics Processing Unit.

[0201] The steps and / or operations in the flowcharts and drawings described herein are for illustrative purposes only. Without departing from the teachings of the present invention, these steps and / or operations may have many variations. For example, the steps may be performed in a different order, or steps may be added, deleted, or modified.

[0202] In view of the present invention, software coding for performing the above described methods is within the scope of ordinary skill in the art. Machine readable code executable by one or more processors of one or more corresponding devices to perform the above methods may be stored in a machine readable medium such as a memory of a data manager. The terms "software" and "firmware" are interchangeable in the present invention and include any computer program stored in a memory for execution by a processor, including random access memory (RAM) memory, read only memory (ROM) memory, EPROM memory, electrically EPROM (EEPROM) memory, and non-volatile RAM (NVRAM) memory. The above memory types are merely examples and therefore do not limit the types of memory that can be used to store computer programs.

[0203] Overview

[0204] All values ​​and sub-ranges within the disclosed range are also disclosed. In addition, although the systems, devices and processes disclosed and shown herein may include a specific number of elements, these systems, devices and components may be modified to include more or less such elements. Although several exemplary embodiments are described herein, modifications, adaptations and other implementations may be made. For example, the elements shown in the accompanying drawings may be replaced, added or modified, and the exemplary methods described herein may be modified by replacing, reordering or adding the steps of the disclosed methods. In addition, many specific details are set forth to facilitate a thorough understanding of the exemplary embodiments described herein. However, it will be appreciated by those of ordinary skill in the art that the exemplary embodiments described herein may be practiced without these specific details. In addition, in order not to obscure the exemplary embodiments described herein, known methods, processes and elements are not described in detail. The subject matter described herein is intended to cover and encompass all appropriate technical changes.

[0205] Although the present invention has been described, at least in part, in terms of methods, it should be understood by those skilled in the art that the present invention also relates to various elements for performing at least some aspects and features of the described methods by hardware, software, or a combination thereof. Therefore, the technical solution of the present invention can be embodied in a non-volatile or non-transitory machine-readable medium (e.g., an optical disk, a flash memory, etc.), which stores executable instructions tangibly stored therein, enabling a processing device to perform an example of the method disclosed herein.

[0206] The term "processor" may include any programmable system, including systems using a microprocessor / controller or nanoprocessor / controller, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a reduced instruction set circuit (RISC), a logic circuit, and any other circuit or processor capable of performing the functions described herein. The term "database" may refer to a data body, a relational database management system (RDBMS), or both. The database used herein may include any data set, including a hierarchical database, a relational database, a flat file database, an object-relational database, an object-oriented database, and any other structured record or data set stored in a computer system. The above examples are merely examples and are therefore not intended to limit the definition and / or meaning of the term "processor" or "database" in any way.

[0207] Without departing from the subject matter of the claims, the present invention may be implemented in other specific forms. The exemplary embodiments described are considered to be illustrative and non-restrictive in all respects. The present invention is intended to cover and encompass all appropriate technical changes. Therefore, the scope of the present invention is described by the appended claims rather than by the above description. The scope of the claims should not be limited by the embodiments set forth in the examples, but should be given the broadest interpretation consistent with the entire description.

Claims

1. A system, characterized in that: comprising a processor and a non-transitory memory storing instructions which, when executed by the processor device, cause the processor to: A first matrix M representing a network having a plurality of routers is received, wherein each element M in M ij indicating a connection status of data traffic between two routers of the plurality of routers based on a network requirement aggregation; storing in the non-transitory memory a graph neural network (GNN) comprising a plurality of nodes v and a plurality of edges, wherein each of the plurality of nodes v corresponds to a corresponding router of the plurality of routers, and each of the plurality of edges corresponds to a physical link connection between two or more routers of the plurality of routers; The GNN is trained to generate the output matrix O v , where O v The method comprises a plurality of nodes labeled based on the first matrix M.

2. The system according to claim 1, characterized in that Training the GNN includes: Based on a second matrix X with multiple elements v Initialize the GNN; Aggregating neighborhood information of each node in the plurality of nodes v of the GNN; Calculate the hidden state of each node in the plurality of nodes v of the GNN based on the corresponding neighborhood information; Generate the O based on the hidden state of each node in the plurality of nodes v of the GNN v .

3. The system according to claim 2, characterized in that The second matrix X v is the identity matrix.

4. The system according to claim 3, characterized in that X v Each column of is a heat vector representing a corresponding router among the plurality of routers.

5. The system according to any one of claims 1 to 4, characterized in that: V is an edge state matrix having a plurality of elements, wherein each element of V indicates a transmission state of data traffic from each of the plurality of routers.

6. The system according to claim 5, characterized in that The processor is further provided with instructions for training a Readout neural network (Readout NN), wherein the Readout NN receives v As input, generate the edge state matrix V.

7. The system according to claim 6, characterized in that Also included are instructions for causing the processor to: Receive the edge state matrix V and generate rewards using the configuration validator; One or more weight parameters in the GNN and the Readout NN are updated based on the reward using an optimizer unit.

8. The system according to claim 7, characterized in that The configuration validator is used to evaluate the edge state matrix V based on the set of network requirements.

9. The system according to claim 7, characterized in that The optimizer unit is used to update the one or more weight parameters in the GNN and the Readout NN to maximize the reward.

10. The system according to claim 9, characterized in that When the reward from the configuration validator has a value within a predefined threshold, the processor is used to stop training the GNN based on the instructions stored in the non-transitory memory and forward the edge state matrix V to the configuration writer.

11. The system according to claim 10, characterized in that The predefined threshold is 1.

12. The system according to claim 10 or 11, characterized in that The processor is configured to cause the configuration writer to convert the edge state matrix V into a valid network configuration based on the instructions stored in the non-transitory memory.

13. The system according to claim 12, characterized in that The processor is configured to deploy the effective network configuration to one or more routers of the plurality of routers based on the instructions stored in the non-transitory memory.

14. A processor-implemented method for generating a network configuration using a GNN, characterized in that The method comprises: Receiving a first matrix M representing a network having a plurality of routers, wherein each element in M ​​indicates a connection state of data traffic between two routers of the plurality of routers based on a network requirement set; storing a graph neural network (GNN) including a plurality of nodes v and a plurality of edges, wherein each of the plurality of nodes v corresponds to a corresponding router of the plurality of routers, and each of the plurality of edges corresponds to a physical link connection between two or more routers of the plurality of routers; The GNN is trained to generate the output matrix O v , where O v The method comprises a plurality of nodes labeled based on the first matrix M.

15. The method according to claim 14, characterized in that Training the GNN includes: Based on a second matrix X with multiple elements v Initialize the GNN; Aggregating neighborhood information of each node in the plurality of nodes v of the GNN; Calculate the hidden state of each node in the plurality of nodes v of the GNN based on the corresponding neighborhood information; Generate the O based on the hidden state of each node in the plurality of nodes v of the GNN v .

16. The method according to claim 15, characterized in that The second matrix X v is the identity matrix.

17. The method according to claim 16, characterized in that X v Each column of is a heat vector representing a corresponding router among the plurality of routers.

18. The method according to any one of claims 14 to 17, characterized in that: V is an edge state matrix having a plurality of elements, wherein each element of V indicates a transmission state of data traffic from each of the plurality of routers.

19. The method according to claim 18, characterized in that The method further includes training a Readout neural network (Readout NN), wherein the Readout NN receives O v As input, generate the edge state matrix V.

20. The method according to claim 19, characterized in that Also includes: Receiving the edge state matrix V; Based on the set of network requirements, evaluating the edge state matrix V to generate a reward; One or more weight parameters in the GNN and the Readout NN are updated based on the reward using an optimizer unit.

21. The method according to claim 20, characterized in that Included is updating the one or more weight parameters in the GNN and the Readout NN to maximize the reward.

22. The method according to claim 21, characterized in that include: When the reward from the configuration validator has a value that satisfies a predefined threshold, the edge state matrix V is forwarded to the configuration writer.

23. The method according to claim 22, characterized in that The predefined threshold is 1.

24. The method according to claim 21 or 22, characterized in that It also includes converting the edge state matrix V into a valid network configuration.

25. The method according to claim 24, characterized in that This includes deploying the valid network configuration to one or more routers in the plurality of routers.

26. A non-transitory processor-readable medium, characterized in that comprising instructions which, when executed by a processor of a processing system, cause the processing system to: Receiving a first matrix M representing a network having a plurality of routers, wherein each element in M ​​indicates a connection state of data traffic between two routers of the plurality of routers based on a network requirement set; storing in the non-transitory memory a graph neural network (GNN) comprising a plurality of nodes v and a plurality of edges, wherein each of the plurality of nodes v corresponds to a corresponding router of the plurality of routers, and each of the plurality of edges corresponds to a physical link connection between two or more routers of the plurality of routers; The GNN is trained to generate the output matrix O v , where O v The method comprises a plurality of nodes labeled based on the first matrix M.

27. The non-transitory processor-readable medium of claim 26, wherein: Training the GNN includes: Based on a second matrix X with multiple elements v Initialize the GNN; Aggregating neighborhood information of each node in the plurality of nodes v of the GNN; Calculate the hidden state of each node in the plurality of nodes v of the GNN based on the corresponding neighborhood information; Generate the O based on the hidden state of each node in the plurality of nodes v of the GNN v .

Citation Information

Patent Citations

  • Routing path determination method and device

    CN110311863A

  • Multi-target tracking method and system based on graph neural network

    CN111161315A