Cloud network architecture and method for maintaining entity objects having dependency relationship

By using a combination of directed acyclic graph and distributed cache database in the cloud network controller, data change sets are calculated in real time, which solves the high overhead problem of complex data dependency management in the cloud network and achieves low-cost and efficient data management. Change set processing.

WO2024193347A1PCT designated stage expired Publication Date: 2024-09-26HANGZHOU ALICLOUD FEITIAN INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080212
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-06
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In cloud network controllers, existing technologies are difficult to effectively manage and calculate complex inter-data dependencies, resulting in huge computing and storage overhead, especially in real-time monitoring and processing of large-scale data change sets.

Method used

It uses a directed acyclic graph (DAG) structure and a distributed cache database to collect data change information in real time through collection nodes, reducing computing and communication overhead, and realizing real-time calculation of data change sets through incremental log design.

Benefits of technology

Effectively depict dependencies between complex data, reduce frequent access to large-scale data, reduce computing costs, support rapid traversal and calculation of complex data, and realize flexible usage scenarios of data change sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080212_26092024_PF_FP
    Figure CN2024080212_26092024_PF_FP
Patent Text Reader

Abstract

The present application provides a cloud network architecture and a method for maintaining entity objects having a dependency relationship. The method comprises: according to entity objects, creating nodes of a corresponding directed acyclic graph, wherein the nodes comprise data nodes and collection nodes, each data node comprises node attributes and configuration data, and each collection node comprises node attributes and an incremental log, and by means of the incremental log, collects data change information of a data node as a child node of the collection node; according to a dependency relationship of the entity objects, adding a connection edge between the nodes; collecting, into the incremental log of a corresponding collection node, data change caused by adding the connection edge, so as to obtain a corresponding data change set according to the incremental log. The technical solution of the present application can realize the calculation of the change set at a lower calculation cost.
Need to check novelty before this filing date? Find Prior Art

Description

Cloud network architecture and method for maintaining entity objects with dependencies

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 20, 2023, with application number 202310265894.6 and application name “Cloud network architecture and method for maintaining entity objects with dependencies”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the technical field of cloud computing, and in particular to a cloud network architecture, a method for maintaining entity objects with dependency relationships, and a cloud network controller. Background Art

[0003] In scenarios where cloud network controllers or other large-scale data dependencies exist, there are many requirements for real-time monitoring of changes in data or dependencies. For example, in the cloud network controller field, cloud service providers rely on cloud network controllers to configure and manage massive virtualized network elements (NEs) across large server clusters to provide cloud services to numerous tenants.

[0004] Currently, the industry generally stores controller configuration data in relational or key-value databases. This makes representing inter-data dependencies very complex, and computing change sets requires frequent queries and calculations, resulting in significant computational and storage overhead. For cloud scenarios with numerous configuration items and complex inter-item dependencies, a technical solution with adequate computational overhead is needed.

[0005] Summary of the Invention

[0006] The present application aims to provide a cloud network architecture and a method for maintaining entity objects with dependencies, as well as a cloud network controller, which reduces frequent access to large-scale data by aggregating nodes and can calculate change sets in real time.

[0007] According to one aspect of the present application, a cloud network architecture is provided, comprising a northbound management layer, a cloud network controller, and a network element layer, wherein the network element layer comprises physical devices and virtual devices, and the cloud network controller communicates with the northbound management layer via a northbound interface and communicates with the physical devices via a southbound interface. In particular:

[0008] The northbound management layer is used to generate network element configuration and scheduling commands in response to user operations;

[0009] The cloud network controller is used to generate and maintain a directed acyclic graph according to the network element configuration and scheduling command, and the cloud network controller is configured to perform the following operations:

[0010] Create a corresponding directed acyclic graph node according to the network element, the node includes a data node and a sink node, the data node includes node attributes and configuration data, the sink node includes node attributes and incremental logs and aggregates data change information of the data nodes as its child nodes through the incremental logs,

[0011] Add edges between nodes based on the dependencies between network elements.

[0012] Aggregate the data changes brought about by adding edges into the incremental log of the corresponding aggregation node, so as to obtain the corresponding data change set based on the incremental log.

[0013] In response to the configuration update and scheduling commands of the network element, the corresponding nodes and / or edges are updated, and the changes of the nodes and / or edges are aggregated into the incremental log of the corresponding aggregation node, thereby obtaining the corresponding data change set according to the incremental log;

[0014] The network element layer is used to implement cloud network functions, wherein the physical device carries the network element configuration and executes the network element configuration and scheduling commands according to the corresponding network element change set.

[0015] According to some embodiments, the data content of the node is stored in a distributed cache database in the form of key-value pairs.

[0016] According to some embodiments, the edges are stored in a distributed cache database in the form of bidirectional key-value pairs.

[0017] According to some embodiments, the sink node further includes a reference count of a child node, where the reference count of the child node represents the number of paths from the sink node to the corresponding child node.

[0018] According to some embodiments, to aggregate data changes caused by adding edges into the incremental log of the corresponding aggregation node, the cloud network controller is configured to perform the following operations:

[0019] When adding an edge between a node and its parent, recursively traverse all child nodes of the node to obtain a child node list. The elements of the child node list include three fields: child node ID, child node reference count, and child node version number. During the traversal process, if any child node is a sink node, the traversal of the sink node's child nodes will not be continued;

[0020] Recursively traverse all root nodes of the parent node of the node, find all root sink nodes, and obtain a list of root sink nodes, wherein the root sink node is a sink node encountered during the traversal process and the root node of the sink node is no longer traversed after the sink node is encountered;

[0021] For each root sink node in the root sink node list, perform reference count and increment log calculations on each child node in the child node list:

[0022] Incrementing a reference count on the current root sink node, where the amount of increase in the reference count is the reference count of the parent node of the node on the current root sink node multiplied by the reference count of the current child node;

[0023] If the current child node already has a reference count on the current root sink node, it means that the current child node is not added to the directed acyclic graph where the current root sink node is located for the first time, and the incremental log does not perform any processing; otherwise, an incremental log field about the creation of the current child node is constructed and inserted into the incremental log of the current root sink node, and the newly added log information is added to the change set of the current sink node.

[0024] According to some embodiments, to aggregate node changes into the delta log of the corresponding aggregation node, the cloud network controller is configured to perform the following operations:

[0025] When a node is updated, the version number in the node attribute of the node is increased by 1;

[0026] Recursively traverse all root nodes of the node, find all root sink nodes, and obtain a list of root sink nodes, wherein the root sink node is a sink node encountered during the traversal process and the root node of the sink node is no longer traversed after the sink node is encountered;

[0027] For each root sink node in the root sink node list, an incremental log field about the node is constructed and inserted into the incremental log of the current root sink node, and the newly added log information is added to the change set of the current sink node.

[0028] According to some embodiments, to aggregate edge changes into the delta log of the corresponding sink node, the cloud network controller is configured to perform the following operations:

[0029] When removing an edge between a node and its parent node, recursively traverse all child nodes of the node to obtain a child node list. The elements of the child node list include three fields: child node ID, child node reference count, and child node version number. If any child node is a sink node, the child nodes of the sink node will not be traversed further.

[0030] Recursively traverse all root nodes of the parent node of the node, find all root sink nodes, and obtain a list of root sink nodes, wherein the root sink node is a sink node encountered during the traversal process and the root node of the sink node is no longer traversed after the sink node is encountered;

[0031] Delete the edge from the node to its parent node;

[0032] For each root sink node in the root sink node list, perform reference count and increment log calculations on each child node in the child node list:

[0033] Decrement a reference count on the current root sink node by multiplying the reference count of the parent node on the current root sink node by the reference count of the current child node;

[0034] If the reference count of the current root sink node to the current child node is reduced to 0, indicating that all reachable paths from the current root sink node to the current child node have been removed, then an incremental log field about deleting the current child node is constructed and inserted into the incremental log of the current root sink node, and the newly added log information is added to the change set of the current sink node.

[0035] According to some embodiments, to aggregate node changes into the delta log of the corresponding aggregation node, the cloud network controller is further configured to perform the following operations:

[0036] When a node has no child nodes and parent nodes, the node is removed as needed without affecting the incremental log.

[0037] According to some embodiments, the node attributes include the node type, version number, and timestamp.

[0038] According to some embodiments, the incremental log includes operation information on entity objects and / or operation information on dependency relationships between entity objects.

[0039] According to some embodiments, the sink node further comprises configuration data.

[0040] According to another aspect of the present application, a method for maintaining entity objects with dependency relationships is provided, comprising:

[0041] Creating a corresponding directed acyclic graph node according to the entity object, the node including a data node and a sink node, the data node including node attributes and configuration data, the sink node including node attributes and incremental logs and aggregating data change information of the data nodes as its child nodes through the incremental logs;

[0042] Add edges between nodes based on the dependencies between entity objects;

[0043] The data changes brought about by adding the edge are aggregated into the incremental log of the corresponding aggregation node, thereby obtaining a corresponding data change set according to the incremental log.

[0044] According to some embodiments, the aforementioned method also includes: in response to a configuration update of an entity object, updating the corresponding nodes and / or edges, and aggregating the changes in node data and / or edges into the incremental log of the corresponding aggregation node, thereby obtaining a corresponding data change set based on the incremental log.

[0045] According to some embodiments, creating a corresponding directed acyclic graph node based on the entity object includes: storing the data content of the node in a distributed cache database in the form of a key-value pair.

[0046] According to some embodiments, adding edges between nodes according to dependency relationships of entity objects includes: storing the edges in a distributed cache database in the form of bidirectional key-value pairs.

[0047] According to some embodiments, the sink node further includes a reference count of the child node, indicating the number of paths to the child node.

[0048] According to some embodiments, the node attributes include the node type, version number, and timestamp.

[0049] According to some embodiments, the data changes brought about by adding the edge are aggregated into the incremental log of the corresponding aggregation node, including: adding operation information on entity objects and / or operation information on dependencies between entity objects to the ordered set structure of the distributed cache database.

[0050] According to some embodiments, the sink node further comprises configuration data.

[0051] According to another aspect of the present application, a cloud network controller is provided, including:

[0052] processor; and

[0053] A memory storing a computer program, which, when executed by the processor, causes the processor to perform any of the above methods.

[0054] According to another aspect of the present application, a non-transitory computer-readable storage medium is provided, on which computer-readable instructions are stored. When the instructions are executed by a processor, the processor is caused to perform any of the above methods.

[0055] According to the embodiments of this application, through the directed acyclic graph structure and data node design, this method can depict complex, large-scale data dependencies. Furthermore, by utilizing aggregation nodes to aggregate data changes in real time, the computational and communication overhead of data distribution is reduced. According to the technical solutions of this application, the computational cost of data operations and change set calculations is reduced.

[0056] It should be understood that the foregoing general description and the following detailed description are merely illustrative and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments.

[0058] FIG1 shows a flow chart of a method for maintaining entity objects with dependency relationships according to an exemplary embodiment of the present application.

[0059] FIG. 2A exemplarily shows a relationship topology of a group of entity objects having dependency relationships.

[0060] FIG. 2B exemplarily shows a schematic structure of a directed acyclic graph corresponding to the relationship topology of FIG. 2A .

[0061] FIG2C shows a flowchart of a method for maintaining entity objects with dependency relationships according to another exemplary embodiment of the present application.

[0062] FIG3 shows a schematic structure of a portion of a cloud network and a directed acyclic graph according to an exemplary embodiment of the present application.

[0063] FIG4 shows a schematic diagram of a cloud network architecture according to an exemplary embodiment of the present application.

[0064] FIG5 illustrates a block diagram of a cloud network controller according to an example embodiment. DETAILED DESCRIPTION

[0065] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art. Like reference numerals in the drawings represent like or similar parts, and thus repetitive description thereof will be omitted.

[0066] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner.In the following description, many specific details are provided so as to provide a full understanding of the embodiments of the present application. However, it will be appreciated by those skilled in the art that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps etc. can be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0067] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0068] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0069] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Thus, the first component discussed below could be referred to as the second component without departing from the teachings of the present invention. As used herein, the term "and / or" includes any one and all combinations of one or more of the associated listed items.

[0070] Those skilled in the art will understand that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.

[0071] In scenarios where large amounts of data have dependencies, there are many requirements for real-time monitoring of changes in data or its dependencies. For example, in cloud networks, controllers must manage a large number of servers and numerous heterogeneous network devices, including but not limited to load balancers, software and hardware firewalls, and routers. Cloud network controllers receive configuration commands, such as those issued by tenants and cloud service providers through software or APIs, and distribute them to underlying network elements for execution, enabling rapid configuration changes and elastic scaling of the cloud network. In this scenario, the data is represented by configuration table entries, which have dependencies. A data dependency refers to two data entities of different types where one requires the other to function. For example, in a cloud network, a virtual port must rely on a virtual machine to function. A summary of these dependent data changes is called a data change set. This is a record of change operations such as addition, modification, and deletion of data, typically including elements such as the time, object, and content of the change operation.

[0072] In cloud networks, controllers issue configuration commands by creating, modifying, and deleting network element entries. These entries contain device information, configuration rules, and more. Lower-level network element devices or monitoring systems need real-time access to changes in entries and their dependencies to quickly modify device configurations or verify that the entries and dependencies comply with the configuration intent of upper-layer commands. For example, if a group of devices are connected to the same virtual switch and virtual router, the entries related to routing information will be identical across all devices. When a controller creates, modifies, or deletes an entry, all other related entries and network devices must be updated accordingly to ensure proper operation of the network devices.

[0073] In cloud network scenarios, the number of table entries is extremely large, and their dependencies are highly complex. Change sets for these table entry data must be calculated in real time to support the subsequent distribution, modification, and verification of this configuration data for the vast number of cloud network devices. At the same time, cloud service providers must ensure that tenant applications running in the cloud network are not impacted by the computing, storage, and network communication overhead associated with monitoring changes in large-scale table entries and their dependencies. Real-time calculation of large-scale data change sets in other scenarios with complex data relationships presents similar challenges. However, the industry generally stores controller configuration data in relational or key-value databases. This makes the representation of data dependencies very complex, and calculating change sets requires frequent queries and calculations, resulting in significant computing and storage overhead.

[0074] To this end, this application proposes a technical solution that uses a directed acyclic graph (DAG) to store complex data dependencies and their relationships, and calculates data change sets in real time when data or dependencies change. This technical solution can be applied to scenarios with complex data dependencies and can be used by various network and data management solutions, including but not limited to the management of cloud network controller configuration entries.

[0075] The following describes exemplary embodiments of the present application with reference to the accompanying drawings.

[0076] FIG1 shows a flow chart of a method for maintaining entity objects with dependency relationships according to an exemplary embodiment of the present application.

[0077] According to an embodiment, the addition, modification and deletion of nodes and edges are achieved through atomic operations such as creating nodes, adding edges, updating nodes, removing edges, and deleting nodes, thereby constructing and maintaining a directed acyclic graph abstracted from large-scale entity objects or data with complex dependencies.

[0078] Referring to FIG. 1 , in S101 , corresponding nodes of a directed acyclic graph are created according to entity objects.

[0079] The entity objects here may include network elements, data entities, organizational entities, etc., and are objects that can be configured with parameters, attributes, functions, or components. Figure 2A exemplifies the relationship topology of a group of entity objects with dependencies, including entity objects 1, 2, 31, 32, 33, 4, 51, 52, and 53, where entity object 2 depends on entity object 1, entity objects 31, 32, and 33 depend on entity object 2, entity object 4 depends on entity objects 31, 32, and 33, and entity objects 51, 52, and 53 depend on entity object 4. Taking the network elements in the cloud network as an example (see Figure 3), they may include physical devices and virtual devices, such as physical servers, virtual machines, virtual ports, virtual private networks, routing rules, etc. According to some embodiments, in the cloud network controller configuration application, nodes can be created based on received network element configuration commands, such as configuration commands issued by tenants and cloud service providers through software, APIs, etc.

[0080] Nodes may include data nodes and aggregation nodes. Referring to Figure 2B , which is a schematic structure of a directed acyclic graph corresponding to the relationship topology of Figure 2A , nodes R and C are aggregation nodes, and the remaining nodes A, B1, B2, B3, D1, D2, D3, etc. are data nodes. Data nodes include node attributes and configuration data, and other fields may also be extended. According to some embodiments, in a cloud network controller, a data node may include network element attributes and network element configuration data, such as a corresponding network element configuration table entry containing multiple network configuration rules and / or network device information.

[0081] The aggregation node includes node attributes, reference counts and incremental logs of child nodes, and aggregates data change information of data nodes that are its child nodes through the reference counts and incremental logs of child nodes. For example, a aggregation node may have one or more data nodes as child nodes, which are used to aggregate data change information of child nodes. The aggregation node is also its own child node. When the aggregation node C is a child node of another aggregation node R, the data changes of all child nodes of C are no longer aggregated to R. In other words, the aggregation node can shield the data changes of all its child nodes. The aggregation node usually corresponds to an ordinary data node, which can be regarded as a special data node for upgrading, and can also include configuration data.

[0082] Each individual data field of a node (node ​​attribute fields, configuration data fields, etc.) can be stored in a distributed cache database as a key-value pair, with the key being the node ID. For example, node storage can be based on Redis or a similar cache server that supports basic data structures such as hashes and ordered sets (ZSETs).

[0083] Node attributes may include, but are not limited to, metadata such as the node type, version number, and timestamp. The timestamp indicates the node creation time, the version number increments by 1 after each data update, and the node type is related to the actual business scenario.

[0084] According to some embodiments, the data node storage format is “attr:data node ID->node attribute” and “data:data node ID->HASH (configuration data)”. The configuration data may be determined by the actual application scenario.

[0085] According to some embodiments, the storage format of the aggregation node may be "b-attr: aggregation node ID->node attribute", "b-ref: aggregation node ID->HASH(child node ID, reference count)" and "b-log: aggregation node ID->ZSET(timestamp, incremental log OPLOG)". The reference count is the number of paths from a node to its child nodes, and the reference count to itself is 1. OPLOG includes operation information on entity objects (addition, modification, deletion) or operation information on dependency relationships between entity objects (addition, removal). According to some embodiments, the format of OPLOG may be constructed as (timestamp, operation, node ID, version number).

[0086] When a collection node is created as its own child node, the reference count field is added to the HASH table (node ​​ID, 1) and the incremental log field is added to the ordered set ZSET (timestamp, operation = generate node, node ID, version number).

[0087] In S103 , edges are added between nodes according to the dependency relationship of the entity objects.

[0088] Because the entity objects corresponding to nodes have topological and dependency relationships, these nodes naturally have connection topologies and corresponding dependencies. Therefore, edge relationships between nodes are created based on the topological or dependency relationships between entity objects. Bidirectional key-value pairs, including parent-child relationships between nodes, can be added to the storage to maintain a directed acyclic graph (DAG). Edges enable fast bidirectional traversal of nodes in the DAG.

[0089] Taking Figures 2A and 2B as an example, entity object 31 depends on entity object 2, and entity object 4 depends on entity object 31. Node A corresponding to entity object 2 and node C corresponding to entity object 4 have been created. After creating node B1 corresponding to entity object 31, edges between node A and node C and node B1 can be added based on the dependency relationship between entity objects. Node A is the parent node of node B1 after the edge is added. Taking network elements as an example, the dependency relationship between network elements can be reflected in the cloud network configuration command. For example, referring to Figure 3, in the scenario where the network configuration is issued by the cloud network controller, the edge refers to the specific dependency relationship between network elements, such as a virtual machine must depend on the existence of a physical server, and a virtual port vport must depend on a virtual machine.

[0090] According to an embodiment, one edge stores two pieces of data simultaneously, namely, "parent node ID->child node ID" and "child node ID->parent node ID", to achieve bidirectional access.

[0091] In S105 , the data changes caused by adding the edge are aggregated into the incremental log of the corresponding aggregation node, so as to obtain a corresponding data change set according to the incremental log.

[0092] When adding an edge between a node and its parent node, referring to Figures 2A and 2B, taking the addition of an edge between node B1 and node A as an example, all child nodes of node B1 (B1 is its own child node) can be recursively traversed first to obtain a child node list (child node ID, child node reference count, child node version number), where the reference count of node B1 to the child node is the number of paths from node B1 to the corresponding child node, and the reference count of node B1 to itself is 1. During the traversal process, if any child node is a sink node, the traversal of the child nodes of the node will no longer continue. Therefore, in this example, the child node list of node B1 includes node B1 and node C, and the reference count of node B1 to node C is 1.

[0093] Then, we recursively traverse all root nodes of node B1's parent node A to find all root sink nodes and obtain a root sink node list. A root sink node is a sink node encountered during the traversal process and the root node of the sink node is not further traversed after encountering this sink node. Referring to Figure 2B , in this example, the root sink node list includes a single root sink node, namely sink node R.

[0094] If the root sink node list is an empty set, no subsequent actions will be performed.

[0095] For each root sink node in the root sink node list, perform reference count and incremental log calculations on each child node in the child node list, including:

[0096] Increment the reference count (child node ID, increment) on the current root sink node, thereby adding a new reference count to the current child node ID. The increment is calculated by multiplying the reference count of the node's parent node on the current root sink node by the node's reference count to the current child node. For example, referring to Figure 2B, for child node C in the child node list, the increment is the reference count of node B1's parent node A on the root sink node R, which is 1, multiplied by the reference count of node B1 to child node C, which is 1. Similarly, for child node B1 in the child node list, the increment is calculated as 1.

[0097] Increasing the reference count on the root sink node can be an atomic self-increment operation. That is, if the child node already has a reference count on the root sink node, the newly calculated count is added; otherwise, the calculated count is used directly. In this example, the reference count of node B1 on sink node R is calculated to be 1; the reference count of node C on sink node R is incremented by 1, i.e., 2.

[0098] If the current child node already has a reference count on the current root aggregation node, it means that this is not the first time the child node is added to the DAG where the root aggregation node is located, and the incremental log does not perform any processing. Otherwise, construct an OPLOG field in the format of (timestamp, operation = generation node, child node ID, version number) and insert it into the incremental log of the current root aggregation node (for example, the ordered set ZSET), and add the newly added log information to the change set of the current aggregation node. For example, referring to Figure 2B, for child node B1 in the child node list, an incremental log field can be constructed and added to the incremental log. As for child node C, since it is not the first time it is added to the DAG where the root aggregation node is located, the incremental log does not perform any processing.

[0099] After execution, the data changes brought about by adding the edge are stored in the incremental logs of all relevant sink nodes, and a change set that accurately reflects the impact of this operation is obtained.

[0100] In this way, through the directed acyclic graph structure and node design, the technical solution of the present application can depict complex, large-scale data dependencies. By designing the incremental log of the aggregation node, the DAG can be maintained in real time and the node change set can be calculated, reducing the frequent access to large-scale data. By cascading the aggregation nodes, data changes in different ranges can be flexibly aggregated to generate change sets to support flexible data change set usage scenarios. In addition, by storing large-scale directed acyclic graphs in a general distributed cache database, complex data can be quickly traversed and calculated in a short time.

[0101] FIG2C shows a flowchart of a method for maintaining entity objects with dependency relationships according to an exemplary embodiment of the present application.

[0102] The embodiment shown in Figure 2C is basically the same as Figure 1, except that it also includes S107: in response to the configuration update of the entity object (for example, in response to the configuration update of the network element in the cloud network), the corresponding nodes and / or edges are updated, and the changes of the nodes and / or edges are aggregated into the incremental log of the corresponding aggregation node, thereby obtaining the corresponding data change set based on the incremental log.

[0103] According to an embodiment, when a node is updated, the version number in the node attribute is increased by 1, and the version number of the newly created node may be 0. Then, all the root nodes of the currently updated node are recursively traversed to find all the root aggregation nodes and obtain a list of root aggregation nodes. If the list of root aggregation nodes is an empty set, no subsequent actions are performed. For each root aggregation node in the root aggregation node list, an OPLOG field with the format of (timestamp, operation = update node, ID of the updated node, updated version number) is constructed and inserted into the incremental log of the current root aggregation node (for example, an ordered set ZSET), and the OPLOG information is added to the change set of the current root aggregation node. After execution is completed, the data of this update operation is stored in the incremental logs of all relevant aggregation nodes, and a change set that accurately reflects the impact of this operation is obtained.

[0104] According to an embodiment, referring to FIG2B , when removing the edge between node B1 and its parent node A, all child nodes of node B1 (B1 is its own child node) can be recursively traversed first to obtain a child node list (child node ID, child node reference count, child node version number), where the reference count of node B1 to the child node is the number of paths from node B1 to the corresponding child node, and the reference count of node B1 to itself is 1. During the traversal process, if any child node is a sink node, the child nodes of the node will no longer be traversed. Therefore, in this example, the child node list of node B1 includes node B1 and node C, and the reference count of node B1 to node C is 1.

[0105] Then, we recursively traverse all root nodes of node B1's parent node A to find all root sink nodes and obtain a root sink node list. A root sink node is a sink node encountered during the traversal process and the root node of the sink node is not further traversed after encountering this sink node. Referring to Figure 2B , in this example, the root sink node list includes a single root sink node, namely sink node R.

[0106] Delete the edge from node A to the parent node. The bidirectional key-value pair can be deleted in the storage, for example, the bidirectional key-value pair is deleted from the distributed cache database.

[0107] If the root sink node list is an empty set, no subsequent actions will be performed.

[0108] For each root sink node in the root sink node list, perform reference count and incremental log calculations on each child node in the child node list, including:

[0109] Decrement the reference count (child node ID, decrement amount) on the current root sink node, thereby decrementing the reference count for the current child node ID. The decrement amount is calculated by multiplying the parent node's reference count on the current root sink node by the node's reference count to the current child node. For example, referring to FIG2B , for child node C in the child node list, the decrement amount is 1, the parent node A's reference count on the root sink node R, multiplied by the node B1's reference count to child node C, which is 1. Similarly, for child node B1 in the child node list, the decrement amount is calculated as 1. Thus, the reference count of node B1 on sink node R is reduced to 0; the reference count of node C on sink node R is reduced to 1.

[0110] If the reference count of the current root sink node to the current child node is reduced to 0, it means that this operation has removed all reachable paths from the root sink node to the current child node.

[0111] According to some embodiments, an OPLOG field in the format of (timestamp, operation = delete child node, child node ID, child node version number) can be constructed and inserted into the incremental log of the current root aggregation node (for example, ordered set ZSET), and the newly added log information is added to the change set of the current aggregation node.

[0112] Therefore, by removing the edge operation, the reference count of the flowering node will be updated for the DAG with the flowering node, and the possible data changes will be written into the incremental log of the flowering node.

[0113] After the edge removal operation is completed, the possible data changes brought about by the operation are stored in the incremental logs of all relevant sink nodes, and a change set reflecting the impact of this operation is obtained.

[0114] According to the embodiment, when deleting a node, all edges that execute the node and the edges to which the node points must be removed first. If the node has no child nodes or parent nodes, the node can be removed as needed. This means deleting data nodes or flowering nodes that are not in the DAG and are confirmed to be useless, without affecting the incremental log.

[0115] After each aggregation node obtains the change set of each atomic operation, multiple atomic operation change sets of the same aggregation node are aggregated to form the change set of this aggregation node.

[0116] FIG3 shows a schematic structure of a portion of a cloud network and a directed acyclic graph according to an exemplary embodiment of the present application.

[0117] Referring to Figure 3 , in the illustrated cloud network, physical server N01 hosts at least one elastic cloud server E101. This physical server N01 can be abstracted as a collection node (for convenience, also represented as N01, with other similar representations). Similarly, physical server N02 hosts multiple elastic cloud servers (virtual servers) E201 and E203. This physical server N02 is also abstracted as a collection node N02. Multiple elastic cloud servers E101, E201, and E203 are abstracted as data nodes E101, E201, and E203, respectively. Here, collection node N01 is the parent node of data node E101, and collection node N02 is the parent node of data nodes E201 and E203. Elastic cloud server E101 is configured with multiple virtual ports 101 and 102, elastic cloud server E201 is configured with at least one virtual port 201, and elastic cloud server E203 is configured with at least one virtual port 203. Virtual ports 101, 102, 201, and 203 can be abstracted as data nodes 101, 102, 201, and 203, respectively. Virtual private cloud 100 is established on virtual ports 101, 102, and 201, and virtual private cloud 200 is established on virtual port 203. Virtual private cloud 100 can be abstracted as aggregation node 100, and virtual private cloud 200 can be abstracted as aggregation node or data node 200. Routing entries 1 through 4 are configured on virtual private cloud 100 and can be abstracted as data nodes 1 through 4.

[0118] As shown in Figure 3, if a cloud network tenant modifies the bandwidth associated with a virtual port, this configuration must be sent to the physical server where the virtual port resides for execution. After the user completes the configuration, the cloud network controller performs an atomic update operation on the DAG node. The corresponding operations are aggregated in the form of incremental logs at the aggregation node, forming a new changeset. This new changeset is then sent to the corresponding physical server, which then executes the virtual port bandwidth settings.

[0119] FIG4 shows a schematic diagram of a cloud network architecture according to an exemplary embodiment of the present application.

[0120] 4 , a cloud network architecture according to an exemplary embodiment includes a northbound management layer 410, a cloud network controller 420, and a network element layer 430. The network element layer 430 includes physical devices and virtual devices (see FIG3 ). The cloud network controller 420 communicates with the northbound management layer 410 via a northbound interface and communicates with the physical devices via a southbound interface.

[0121] According to an embodiment, the northbound management layer 410 is used to generate network element configuration and scheduling commands in response to user operations, thereby implementing network configuration and changes. For example, a tenant can use the northbound management layer to generate a command such as "Create a new virtual cloud server E101 on physical server N01." The northbound management layer 410 may include, but is not limited to, network element controllers, NFV (Network Function Virtualization) controllers, network measurement, and other functional applications, enabling user control, operations and maintenance control, and network management applications.

[0122] The cloud network controller 420 is configured to generate and maintain a directed acyclic graph (DAG) based on network element configuration and scheduling commands. According to an embodiment, the cloud network controller 420 receives network element configuration and scheduling commands via a northbound interface. The cloud network controller 420 can be configured to manage a cloud network such as that shown in FIG3 based on network element configuration and scheduling commands using the method of the present application described above. The following description is provided in conjunction with the partial cloud network and DAG shown in FIG3, and reference can be made to the previous description in conjunction with FIG1-2C (Note: the DAG in FIG3 is partially identical to the DAG in FIG2B).

[0123] According to an embodiment, the cloud network controller 420 is configured to create nodes in a directed acyclic graph corresponding to network elements. As described above and in Figure 3, nodes may include data nodes and sink nodes. Data nodes include node attributes and configuration data, while sink nodes include node attributes and delta logs and aggregate data change information from their child data nodes via delta logs. The cloud network controller adds edges between nodes based on the dependencies between network elements.

[0124] Referring to the previous description, similarly, according to an embodiment, the cloud network controller 420 can also be configured to perform the following operations to aggregate the data changes brought about by the addition of edges into the incremental log of the corresponding aggregation node, thereby obtaining the corresponding data change set based on the incremental log; and in response to the configuration update and scheduling commands of the network element, update the corresponding nodes and / or edges, and aggregate the changes of the nodes and / or edges into the incremental log of the corresponding aggregation node, thereby obtaining the corresponding data change set based on the incremental log.

[0125] According to an embodiment, the data content of a node is stored in a distributed cache database in the form of key-value pairs, which can quickly traverse and calculate complex data in a short time. Node attributes may include the node type, version number, and timestamp.

[0126] The edges between nodes correspond to the dependencies between network elements. For example, according to the configuration command "Create a new virtual server and two new virtual ports on the virtual server" issued by the northbound management layer 410, it is reflected in the DAG as the creation of three new nodes. The parent node of the virtual server must be the assigned physical server, and the parent node of the virtual port must be the virtual server. The edges established between the new node and its parent node reflect the dependencies between network elements. According to the embodiment, the edges are stored in the distributed cache database in the form of bidirectional key-value pairs, so that the nodes in the DAG can be traversed quickly and bidirectionally.

[0127] According to an embodiment, to aggregate data changes resulting from adding edges into the incremental log of the corresponding sink node, the cloud network controller 420 is configured to recursively traverse all child nodes of a node when adding an edge between the node and its parent node, obtaining a child node list. The elements of the child node list include three fields: the child node ID, the child node reference count, and the child node version number. During the traversal process, if any child node is a sink node, the traversal of the sink node's child nodes is discontinued.

[0128] The cloud network controller 420 recursively traverses all root nodes of the node's parent node, finds all root aggregation nodes, and obtains a list of root aggregation nodes. The root aggregation node is the aggregation node encountered during the traversal process and after encountering the aggregation node, the root node of the aggregation node is no longer traversed.

[0129] For each root aggregation node in the root aggregation node list, the cloud network controller 420 performs reference count and incremental log calculations for each child node in the child node list: the reference count is increased on the current root aggregation node, and the amount of increase in the reference count is the reference count of the node's parent node on the current root aggregation node multiplied by the reference count of the current child node. If the current child node already has a reference count on the current root aggregation node, it indicates that this is not the first time the current child node has been added to the directed acyclic graph where the current root aggregation node is located, and no processing is performed on the incremental log; otherwise, an incremental log field for the currently created child node is constructed and inserted into the incremental log of the current root aggregation node, and the newly added log information is added to the change set of the current aggregation node.

[0130] The network element layer 430 is used to implement cloud network functions, including physical devices and virtual devices, such as but not limited to virtual switches, virtual servers, physical servers, etc. The physical devices carry the network element configuration and actually execute the network element configuration and scheduling commands according to the corresponding network element change set. The network element change set is sent to the network element layer through the southbound interface to execute the change command. For example, after the cloud network controller 420 receives a command such as "create a new virtual cloud server E101 on the physical server N01", it will create a virtual cloud server node E101, and the node ID is generated according to a predetermined rule. Then, an edge is added between the physical server node N01 and the virtual cloud server node E101. At this time, the virtual cloud server has not been newly created, and it must wait until the change set is sent to the corresponding physical device of the network element layer 430 before it is specifically executed.

[0131] According to an embodiment, in order to aggregate node changes into the incremental log of the corresponding aggregation node, the cloud network controller 420 is further configured to perform the following operations: when updating a node, add 1 to the version number in the node attribute of the node; recursively traverse all root nodes of the node, find all root aggregation nodes, and obtain a list of root aggregation nodes, where the root aggregation node is the aggregation node encountered during the traversal process and the root node of the aggregation node is no longer traversed after encountering the aggregation node; for each root aggregation node in the root aggregation node list, construct an incremental log field about the node and insert it into the incremental log of the current root aggregation node, and add the newly added log information to the change set of the current aggregation node. This operation is consistent with the operation described above with reference to Figure 2C and will not be repeated here.

[0132] According to the embodiment, in order to collect the changes of the connection edges into the incremental log of the corresponding aggregation node, the cloud network controller 420 is further configured to perform the following operations: when removing the connection edge between a node and its parent node, recursively traverse all the child nodes of the node to obtain a child node list, the elements of the child node list include three fields: child node ID, child node reference count and child node version number. If any child node is an aggregation node, the child nodes of the aggregation node will not be traversed any further; recursively traverse all the root nodes of the parent node of the node, find all the root aggregation nodes, and obtain a root aggregation node list. The root aggregation node is the aggregation node encountered during the traversal process and the aggregation node will not be traversed any further after encountering the aggregation node. The root node of the point; delete the edge from the node to its parent node; for each root aggregation node in the root aggregation node list, perform reference count and incremental log calculations on each child node in the child node list: reduce the reference count on the current root aggregation node, and the amount of reduction in the reference count is the reference count of the parent node on the current root aggregation node multiplied by the reference count of the current child node; if the reference count of the current root aggregation node to the current child node is reduced to 0, indicating that all reachable paths from the current root aggregation node to the current child node have been removed, then construct an incremental log field for deleting the current child node and insert it into the incremental log of the current root aggregation node, and add the newly added log information to the change set of the current aggregation node. This operation is consistent with the operation described above with reference to Figure 2C and will not be repeated here. It is easy to understand that when a change instruction to remove a node is issued at a aggregation node, the network element will remove the network configuration related to the node, but it does not necessarily lead to the deletion of this node, because this node may still play a role in other network elements.

[0133] According to an embodiment, in order to aggregate node changes into the incremental log of the corresponding aggregation node, the cloud network controller 420 is further configured to: when a node has no child nodes and parent nodes, remove the node as needed without affecting the incremental log.

[0134] The cloud network architecture according to the example embodiment can quickly calculate network element change sets in real time based on the user's network configuration and adjustment commands, thereby achieving rapid adjustment and management of large-scale complex cloud networks.

[0135] Through the description of the example embodiments, it is easy for those skilled in the art to understand that the network architecture and method for storing data according to the embodiments of the present application have at least one or more of the following advantages.

[0136] According to example embodiments, through the directed acyclic graph structure and data node design, the method can depict complex, large-scale interdependencies between data, such as managing complex cloud networks.

[0137] According to the embodiment, the aggregation node is used to aggregate the changes of each data in real time, reducing the computation and communication overhead of data distribution. According to the technical solution of the present application, the computation cost consumed by the operation and change set calculation of large-scale cloud network network elements is lower.

[0138] According to an example embodiment, a general distributed cache database stores a large-scale directed acyclic graph, and the present method can quickly traverse and calculate complex data or cloud networks in a short time.

[0139] According to example embodiments, by designing an incremental log of a collection node, a DAG can be maintained in real time and a node change set can be calculated, thereby reducing frequent access to large-scale data or cloud networks.

[0140] According to example embodiments, by cascading aggregation nodes, data changes in different ranges can be flexibly aggregated to generate a changeset, thereby supporting flexible data changeset usage scenarios.

[0141] FIG5 shows a block diagram of a cloud network controller according to an example embodiment of the present application.

[0142] 5 , the cloud network controller 30 includes a processor 12 and a memory 14. The cloud network controller 30 may also include a bus 22, a network interface 16, and an I / O interface 18. The processor 12, the memory 14, the network interface 16, and the I / O interface 18 may communicate with each other via the bus 22.

[0143] The processor 12 may include one or more general-purpose CPUs (Central Processing Units, processors), microprocessors, or application-specific integrated circuits, etc., for executing relevant program instructions.

[0144] The memory 14 may include machine-readable media in the form of volatile memory, such as random access memory (RAM), read-only memory (ROM), and / or cache memory. The memory 14 is used to store one or more programs including instructions and data. The processor 12 may read the instructions stored in the memory 14 to execute the above-described method according to the embodiments of the present application.

[0145] The cloud network controller 30 may also communicate with one or more networks via the network interface 16. The network interface 16 may be a wireless network interface.

[0146] The bus 22 may include an address bus, a data bus, a control bus, etc. The bus 22 provides a path for exchanging information between various components.

[0147] It should be noted that, in the specific implementation process, the cloud network controller 30 may also include other components necessary for normal operation. In addition, those skilled in the art will understand that the above-mentioned device may only include the components necessary to implement the embodiments of this specification, and does not necessarily include all the components shown in the figure.

[0148] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above method. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a microdrive and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), a network storage device, a cloud storage device, or any type of medium or device suitable for storing instructions and / or data.

[0149] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the methods described in the above method embodiments.

[0150] Those skilled in the art will clearly understand that the technical solutions of this application can be implemented with the aid of software and / or hardware. "Unit" and "module" in this specification refer to software and / or hardware that can independently perform specific functions or cooperate with other components to perform specific functions. Examples of hardware include field programmable gate arrays and integrated circuits.

[0151] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0152] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0153] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interface, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0154] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0155] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application.

[0157] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0158] The embodiments of the present application have been described and explained in detail above. It should be clearly understood that this application describes how to form and use specific examples, but the application is not limited to any details of these examples. On the contrary, based on the teachings of the content disclosed in this application, these principles can be applied to many other embodiments.

[0159] The exemplary embodiments of the present application are specifically shown and described above. It should be understood that the present application is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present application is intended to cover various modifications and equivalent configurations included within the spirit and scope of the appended clauses.

Claims

1. A cloud network architecture, comprising a northbound management layer, a cloud network controller and a network element layer, wherein the network element layer comprises physical devices and virtual devices, the cloud network controller communicates with the northbound management layer via a northbound interface and communicates with the physical devices via a southbound interface, characterized in that: The northbound management layer is used to generate network element configuration and scheduling commands in response to user operations; The cloud network controller is used to generate and maintain a directed acyclic graph according to the network element configuration and scheduling command, and the cloud network controller is configured to perform the following operations: A node of a directed acyclic graph is created according to the network element, wherein the node includes a data node and a collection node, wherein the data node includes node attributes and configuration data, and the collection node includes node attributes and an incremental log and collects data change information of the data nodes as its child nodes through the incremental log. Add edges between nodes based on the dependencies between network elements. Aggregate the data changes brought by adding edges into the incremental log of the corresponding aggregation node, so as to obtain the corresponding data change set according to the incremental log. In response to the configuration update and scheduling command of the network element, the corresponding nodes and / or edges are updated, and the changes of the nodes and / or edges are aggregated into the incremental log of the corresponding aggregation node, so as to obtain the corresponding data change set according to the incremental log; The network element layer is used to implement cloud network functions, wherein the physical device carries the network element configuration and executes the network element configuration and scheduling commands according to the corresponding network element change set.

2. The cloud network architecture according to claim 1, characterized in that: The data content of the node is stored in the distributed cache database in the form of a key-value pair; the edge is stored in the distributed cache database in the form of a bidirectional key-value pair.

3. The cloud network architecture according to claim 1, characterized in that: The sink node also includes a reference count of a child node, and the reference count of the child node indicates the number of paths from the sink node to the corresponding child node.

4. The cloud network architecture according to claim 3, characterized in that: In order to aggregate the data changes brought about by adding edges into the incremental log of the corresponding aggregation node, the cloud network controller is configured to perform the following operations: When adding an edge between a node and its parent node, recursively traverse all child nodes of the node to obtain a child node list. The elements of the child node list include three fields: child node ID, child node reference count, and child node version number. During the traversal process, if any child node is a sink node, the child nodes of the sink node will no longer be traversed. Recursively traverse all root nodes of the parent node of the node, find all root sink nodes, and obtain a list of root sink nodes, wherein the root sink node is a sink node encountered during the traversal process and the root node of the sink node is no longer traversed after the sink node is encountered; For each root sink node in the root sink node list, reference count and increment log calculations are performed on each child node in the child node list: Increasing a reference count on the current root sink node, the increase in the reference count being the reference count of the parent node of the node on the current root sink node multiplied by the reference count of the current child node; If the current child node already has a reference count on the current root aggregation node, it means that the current child node is not added to the directed acyclic graph where the current root aggregation node is located for the first time, and the incremental log does not do any processing; otherwise, construct an incremental log field about the creation of the current child node and insert it into the incremental log of the current root aggregation node, and add the newly added log information to the change set of the current aggregation node.

5. The cloud network architecture according to claim 3, characterized in that: To aggregate the node changes into the incremental log of the corresponding aggregation node, the cloud network controller is configured to perform the following operations: When a node is updated, the version number in the node attribute of the node is increased by 1; Recursively traverse all root nodes of the node, find all root sink nodes, and obtain a list of root sink nodes, wherein the root sink node is a sink node encountered during the traversal process and the parent node of the sink node is no longer traversed after the sink node is encountered; For each root aggregation node in the root aggregation node list, an incremental log field about the node is constructed and inserted into the incremental log of the current root aggregation node, and the newly added log information is added to the change set of the current aggregation node.

6. The cloud network architecture according to claim 5, characterized in that: To aggregate the edge changes into the incremental log of the corresponding aggregation node, the cloud network controller is configured to perform the following operations: When removing the edge between a node and its parent node, recursively traverse all child nodes of the node to obtain a child node list. The elements of the child node list include three fields: child node ID, child node reference count, and child node version number. If any child node is a sink node, the child nodes of the sink node will not be traversed any further. Recursively traverse all root nodes of the parent node of the node, find all root sink nodes, and obtain a list of root sink nodes, wherein the root sink node is a sink node encountered during the traversal process and the root node of the sink node is no longer traversed after the sink node is encountered; Delete the edge from the node to its parent node; For each root sink node in the root sink node list, reference count and increment log calculations are performed on each child node in the child node list: Decrease the reference count on the current root sink node, where the amount of reduction of the reference count is the reference count of the parent node on the current root sink node multiplied by the reference count of the current child node; If the reference count of the current root collection node to the current child node is reduced to 0, indicating that all reachable paths from the current root collection node to the current child node have been removed, then an incremental log field about deleting the current child node is constructed and inserted into the incremental log of the current root collection node, and the newly added log information is added to the change set of the current collection node.

7. The cloud network architecture according to claim 6, characterized in that: In order to aggregate the changes of the nodes into the incremental log of the corresponding aggregation node, the cloud network controller is further configured to perform the following operations: When a node has no child nodes and parent nodes, the node is removed as needed without affecting the incremental log.

8. A method for maintaining entity objects with dependency relationships, characterized in that: include: Creating a corresponding directed acyclic graph node according to the entity object, the node includes a data node and a collection node, the data node includes node attributes and configuration data, the collection node includes node attributes and incremental logs and collects data change information of the data nodes as its child nodes through the incremental logs; Add edges between nodes based on the dependencies of entity objects; The data changes brought about by adding the edge are aggregated into the incremental log of the corresponding aggregation node, so as to obtain the corresponding data change set according to the incremental log.

9. The method according to claim 8, characterized in that Also includes: In response to the configuration update of the entity object, the corresponding nodes and / or edges are updated, and the changes of the nodes and / or edges are aggregated into the incremental log of the corresponding aggregation node, so as to obtain the corresponding data change set according to the incremental log.

10. The method according to claim 8, characterized in that The step of creating a corresponding directed acyclic graph node according to the entity object includes storing the data content of the node in a distributed cache database in the form of a key-value pair; Adding edges between nodes according to the dependency relationship of the entity objects includes storing the edges in a distributed cache database in the form of bidirectional key-value pairs.

11. The method according to claim 8, characterized in that The sink node further includes a reference count of the child node, where the reference count indicates the number of paths from the sink node to the corresponding child node.

12. The method according to claim 8, characterized in that The sink node also includes configuration data.

13. A cloud network controller, characterized in that: include: processor; as well as A memory storing a computer program, which, when executed by the processor, enables the processor to perform the method according to any one of claims 8 to 12.

Citation Information

Patent Citations

  • User activity mode oriented privacy protection implementation method based on intelligent nursing system

    CN110427769A

  • Task adjustment method applied to task engine, related device and storage medium

    CN113377348A

  • Data synchronization method, storage gateway, system and computer readable storage medium

    CN114363355A

  • Cloud network architecture and method for maintaining entity objects with dependencies

    CN115987751A

  • Systems and methods of updating persistent statistics on a multi-transactional and multi-node storage system

    US11163496B1