Network controller horizontal scaling for network device configuration session management
By using consistent hashing technology to distribute and redistribute connection sessions between network configuration controllers and dynamically adjusting the number of controllers, the problem of low connection management efficiency in fifth-generation broadband mobile networks is solved and efficient network device connection management is achieved. and scalability.
Patent Information
- Application Number
- CN202210382663.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-06-30
- Filing Date
- 2022-04-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-04-12
AI Technical Summary
Existing network configuration controllers are difficult to achieve seamless and persistent connection management when handling a large number of network devices. Especially in fifth-generation broadband mobile networks, there are problems of low connection management efficiency and insufficient scalability.
Use consistent hashing technology to distribute and redistribute connection sessions among multiple network configuration controllers, and dynamically add or remove controllers based on the number of connections maintained by each controller to achieve automatic horizontal scaling of network configuration controllers.
It achieves seamless connection management between the network configuration controller and a large number of network devices, improves the persistence and scalability of network device connections, reduces the risk of interruptions due to device redistribution, and improves network management efficiency.
Smart Images

Figure CN115208748B_ABST
Abstract
Description
[0001] This application claims the benefit of U.S. Application No. 17 / 305,110 filed on June 30, 2021, which claims the benefit of Indian Provisional Patent Application No. 202141017207 filed on April 13, 2021, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present invention relates to computer networks, and more particularly, to automatic horizontal scaling of network configuration controllers. Background Art
[0003] A computer network is a collection of interconnected computing devices that exchange data and share resources. In a packet-based network such as the Internet, computing devices communicate data by breaking it into small chunks called packets, which are individually routed across the network from a source device to a destination device. The destination device extracts the data from the packets and assembles the data into its original form.
[0004] Certain devices in a network, such as routers, use routing protocols to exchange and accumulate topological information that describes available routes through the network. This allows the router to build its own topological map of the network's routing. Upon receiving an incoming data packet, the router examines the information within the packet and forwards the packet based on the accumulated topological information.
[0005] Many routing protocols belong to the class of protocols known as Interior Gateway Protocols (IGPs), in which a flood-based distribution mechanism is used to announce topology information to routers within a network. These routing protocols typically rely on routing algorithms that require each router to have synchronized routing topology information for a given domain (called an IGP area or domain). The contents of a link state database (LSDB) or traffic engineering database (TED) maintained by a link state routing protocol have the scope of an IGP domain. IGP routing protocols typically require all routers in an IGP routing domain to store all routing information that has been distributed according to the IGP protocol in an internal LSDB or TED. In operation, each router typically maintains an internal link state database and scans the entire database at defined intervals to generate and output link state messages to synchronize the database to neighboring routers within the routing domain. In this way, the link state is propagated throughout the routing domain and stored in its entirety on each router in the domain.
[0006] Packet-based networks use label switching protocols for traffic engineering and other purposes. Multiprotocol Label Switching (MPLS) is a mechanism for engineering traffic patterns within an Internet Protocol (IP) network based on routing information maintained by routers in the network. By utilizing MPLS protocols such as the Label Distribution Protocol (LDP), the Resource Reservation Protocol (RSVP) with Traffic Engineering Extensions (RSVP-TE), or the Segment Routing (SR) extensions, label switching routers can use labels pre-added to the traffic to forward traffic to a destination device along a specific path through the network, i.e., a label switched path (LSP). An LSP defines a distinct path through the network to transport MPLS packets from a source device to a destination device. Using the MPLS protocol, each router along the LSP assigns a label associated with the destination and propagates the label to the nearest upstream router along the path. Routers along the path add (push), remove (pop), or swap labels, and perform other MPLS operations to forward MPLS packets along the established path. In some examples, the Network Configuration Protocol (NETCONF) is a network management protocol that can be used to maintain active and persistent NETCONF sessions with computing devices in a computer network to provision and manage routing paths such as LSPs. Summary of the invention
[0007] In general, techniques are described for automatic horizontal scaling of a network configuration controller, such as a NETCONF controller, so that the network configuration controller can seamlessly maintain active and persistent connections with a large number of network devices (e.g., over 200,000 devices) in a network, such as a fifth generation (5G) broadband mobile network.
[0008] For example, the controller may provision multiple instances of a network configuration controller, each of which may be assigned to a non-overlapping portion of network devices in the network. The controller may assign each network device to a network configuration controller using consistent hashing techniques. The controller may also determine whether to perform horizontal scaling of the network configuration controller to add the network configuration controller to multiple network configuration controllers by determining the number of connections maintained by each network configuration controller and comparing the number of connections maintained by each network configuration controller to the maximum number of connections that each network configuration controller can maintain. The controller may, in response to adding the network configuration controller to multiple network configuration controllers, use consistent hashing techniques to redistribute the connections maintained by the network configuration controller to the network devices.
[0009] In one aspect, a method includes: distributing, by a first plurality of network configuration controllers of a controller and using a consistent hashing algorithm, a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers; monitoring, by the controller, the number of connection sessions maintained by each of the first plurality of network configuration controllers; adding, by the controller and based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; and in response to adding the additional network configuration controller to the first plurality of network configuration controllers, redistributing, by the second plurality of network configuration controllers and using a consistent hashing algorithm, one or more of the plurality of connection sessions among the second plurality of network configuration controllers.
[0010] In another aspect, a computing device includes: a memory; and a processing circuit that communicates with the memory, the processing circuit and the memory being configured to: distribute a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers by a first plurality of network configuration controllers and using a consistent hashing algorithm; monitor the number of connection sessions maintained by each of the first plurality of network configuration controllers; based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, add an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; and in response to adding the additional network configuration controller to the first plurality of network configuration controllers, redistribute one or more of the plurality of connection sessions among the second plurality of network configuration controllers by the second plurality of network configuration controllers and using a consistent hashing algorithm.
[0011] In another aspect, a non-transitory computer-readable storage medium is encoded with instructions that, when executed, cause one or more programmable processors to: distribute, by a first plurality of network configuration controllers and using a consistent hashing algorithm, a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers; monitor the number of connection sessions maintained by each of the first plurality of network configuration controllers; based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, add additional network configuration controllers to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; and in response to adding the additional network configuration controllers to the first plurality of network configuration controllers, redistribute, by a second plurality of network configuration controllers and using a consistent hashing algorithm, one or more of the plurality of connection sessions among the second plurality of network configuration controllers.
[0012] In another aspect, a controller includes: a memory; and a processing circuit that communicates with the memory, the processing circuit and the memory being configured to: distribute, by a first plurality of network configuration controllers of the controller and using a consistent hashing algorithm, a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers; monitor, by the controller, the number of connection sessions maintained by each of the first plurality of network configuration controllers; add, by the controller and based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; and in response to adding the additional network configuration controller to the first plurality of network configuration controllers, redistribute, by the second plurality of network configuration controllers and using a consistent hashing algorithm, one or more of the plurality of connection sessions among the second plurality of network configuration controllers.
[0013] In another aspect, a computing device includes: a component for distributing multiple connection sessions with multiple network devices among a first plurality of network configuration controllers using a consistent hashing algorithm; a component for monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers; a component for adding additional network configuration controllers to the first plurality of network configuration controllers to form a second plurality of network configuration controllers based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers; and a component for redistributing one or more of the multiple connection sessions among the second plurality of network configuration controllers using a consistent hashing algorithm in response to adding the additional network configuration controllers to the first plurality of network configuration controllers.
[0014] The details of these techniques are set forth in the accompanying drawings and the following description. Other features, objects, and advantages of these techniques will become apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a block diagram illustrating an example system having a network and a controller and configured to operate according to the techniques described in this disclosure.
[0016] Figure 2 is a block diagram illustrating an example controller that performs horizontal scaling of a network configuration controller according to the techniques of this disclosure.
[0017] Figure 3 is a block diagram illustrating an example controller in accordance with techniques of this disclosure.
[0018] Figure 4 is a block diagram illustrating an example controller in accordance with techniques of this disclosure.
[0019] Figure 5 is a flow diagram illustrating example operation of a computing device in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION
[0020] Figure 1 1 is a block diagram showing an example system 100 having a network 112 and a controller 108, which are configured to operate according to the techniques described in the present disclosure. The network 112 may include one or more computer networks (e.g., a collection of interconnected L2 / L3 networks), and in some examples, may be a wide area network. Examples of the network 112 may include one or more autonomous systems, data centers, branch offices, private networks, public networks, cloud networks, or other types of networks. In some examples, the network 112 may be a broadband mobile network, such as a fifth generation (5G) cellular network. The network 112 includes any number of devices 19 that communicate directly or indirectly with each other via the network 112. Each of the devices 19 may represent a router, a switch, or other network device. The device 19 may be capable of forwarding packet traffic packets from a source to a destination along a routing path according to a technique such as a label switched path (LSP).
[0021] The controller 108 may include one or more computing devices representing a WAN controller and may maintain an active and persistent session with the device 19 using a network configuration protocol (NETCONF), a path computation element communication protocol (PCEP), BGP, or other protocol to provision and manage LSPs, such as NETCONF-based LSPs, in the network 112. For example, the controller 108 includes multiple instances of network configuration controllers 110A-110M (hereinafter referred to as "network configuration controllers 110") for configuring the devices 19 to provision and manage LSPs in the network 112 using, for example, NETCONF. Each network configuration controller 110 may be responsible for maintaining a persistent connection with non-overlapping portions of the devices 19 in the network 112, such that the devices 19 in the network 112 may be divided between the network configuration controllers 110.
[0022] The controller 108 may perform load balancing of the network configuration controllers 110 to distribute persistent connections to the devices 19 among the network configuration controllers 110 and to redistribute persistent connections to the devices 19 among the network configuration controllers 110 as devices are added to and removed from the network 112. For example, each device 19 is associated with a unique identifier such as a device identifier, and the controller 108 may use a hashing technique to perform a hashing of the device identifier associated with each device 19 to distribute persistent connections to the devices 19 among the network configuration controllers 110 based on the hashing of the device identifiers of the devices 19, thereby allocating non-overlapping portions of the devices 19 to each network configuration controller 110.
[0023] As the number of sessions managed by the network configuration controller 110 changes, the controller 108 may perform horizontal scaling of the network configuration controller 110 to add additional network configuration controllers to the network configuration controller 110 and / or remove network configuration controllers from the network configuration controller 110. For example, as the number of devices in the device 19 increases, the controller 108 may horizontally scale the network configuration controller 110 by adding additional network configuration controllers to the network configuration controller 110 to maintain persistent connections with the additional devices of the device 19.
[0024] The controller 108 may determine whether to add one or more additional network configuration controllers to the network configuration controller 110 based at least in part on the number of devices 19 managed by each network configuration controller 110. For example, the controller 108 may determine the number of devices 19 managed by each network configuration controller 110 periodically (e.g., every hour, every 30 minutes, etc.). The controller 108 may also determine the maximum number of devices 19 that each network configuration controller 110 can manage. The controller 108 may determine whether to add one or more additional network configuration controllers to the network configuration controller 110 based at least in part on comparing the number of devices 19 managed by at least one of the network configuration controllers 110 to the maximum number of devices 19 that each network configuration controller 110 can manage. For example, if the controller 108 determines that the number of devices 19 managed by at least one of the network configuration controllers 110 is greater than the maximum number of devices 19 that each network configuration controller 110 can manage, the controller 110 may automatically scale horizontally to add additional network configuration controllers to the network configuration controller 108.
[0025] When additional network configuration controllers are added to the network configuration controller 110, the controller 108 may reallocate the devices 19 among the network configuration controllers 110 in a manner that reduces and may minimize the number of devices 19 that are reallocated to different network configuration controllers of the network configuration controller 110. To this end, the controller 108 may use consistent hashing to allocate the devices 19 between the network configuration controllers 110. Consistent hashing is a hashing technique in which, when the size of the hash table is adjusted, on average only n / m keys may need to be remapped, where n is the number of keys and m is the number of slots. In contrast, in other hashing techniques, a change in the number of slots in the hash table may cause almost all the keys to be remapped.
[0026] The controller 108 may use a consistent hashing technique to perform a hash of a device identifier associated with each device 19 to distribute persistent connections to the device 19 among the network configuration controllers 110 based on the hash of the device identifier of the device 19. For example, the controller 108 may perform a consistent hash of the device identifier associated with each device 19 to generate a resulting hash value associated with each device 19, and may map each device 19 to a network configuration controller of the network configuration controller 110 based on the resulting device hash value.
[0027] Specifically, each network configuration controller 110 may respectively perform consistent hashing of the device identifier associated with each device 19 to determine, by each network configuration controller, a subset of devices 19 to which the network configuration controller is to establish a persistent connection. For example, each network configuration controller 110 may respectively perform consistent hashing of the device identifier associated with each device 19 to determine, by each network configuration controller, a subset of devices 19 to which the network configuration controller is to establish a persistent connection after a device is added to a device 19, a device is removed from a device 19, and the like.
[0028] When additional network configuration controllers are added to the network configuration controller 110, or when a network configuration controller is removed from the network configuration controller 110, the controller 108 may reallocate one or more of the devices 19 to different network configuration controllers of the network configuration controller 110 based on the hash values associated with the one or more devices 19. Given m network configuration controllers 110 to connect to n devices 19, the network controller 108 may use consistent hashing to redistribute persistent connections to the devices 19 through the network configuration controller 110, and when additional network configuration controllers are added to the network configuration controller 110, only n / m of the devices 19 may need to be redistributed to another network configuration controller of the network configuration controller 110. Specifically, each network configuration controller 110 may individually perform consistent hashing of the device identifiers associated with each device 19 to redistribute persistent connections to the computing devices 19.
[0029] Figure 2 is a block diagram illustrating an example controller that performs horizontal scaling of a network configuration controller according to the techniques of this disclosure. Figure 2 An example controller 208 may represent Figure 1 An example implementation of the controller 108 of . In some examples, the controller 208 may be or may implement a WAN controller, a software defined networking (SDN) controller, or the like.
[0030] like Figure 2 As shown, the example system 200 may include a network 212 and a controller 208. The network 212 may be similar to Figure 1 The network 112 may include a Figure 1 The controller 208 can establish a persistent communication session with the device 219 in the network 212.
[0031] The controller 208 may include a device service 262, a device database 260, a device profile adapter 262, a topology service 266, and a network configuration service 250. The network configuration service 250 may be software executed by the controller 208 to establish a persistent communication session with a device 219 in the network 212 and manage the communication session with the device 219. The network configuration service 250 includes network configuration controllers 210A-210N (hereinafter referred to as "network configuration controllers 210"), a service 252, and an auto-scaling service 254.
[0032] Each network configuration controller 210 can maintain a persistent communication session with one or more devices 219, and each network configuration controller 210 can be assigned to non-overlapping portions of the devices 219. Each of the network configuration controllers 210 can download configurations to each of the one or more devices assigned to the network configuration controller and retrieve device information from each device, such as by invoking one or more remote procedure calls.
[0033] The network configuration service 250 may use consistent hashing techniques to assign the devices 219 to the network configuration controllers 210. The network configuration service 250 may perform a hash of a device identifier associated with each device 219 to generate a hash value for each device 219, and may determine a network configuration controller assigned to the device in the network configuration controllers 210 based at least in part on the hash value associated with the device in the devices 219. In some examples, the network configuration service 250 may use a consistent hashing ring, such as the consistent hashing ring 280, to perform the consistent hashing technique.
[0034] In some examples, each of the network configuration controllers 210 can determine one or more of the devices 219 to which it is assigned based on a consistent hashing technique, such as by using a consistent hashing ring 280. For example, the device database 260 of the controller 208 can store a device identifier for each of the devices 219 determined by the network configuration service 250. Each network configuration controller 210 can retrieve the device identifier for each of the devices 219 and can perform a consistent hashing technique to determine one or more of the devices 219 to which it is assigned.
[0035] exist Figure 2 In the example of FIG. 1 , each network configuration controller 210 can perform a consistent hashing technique using a consistent hashing ring 280 to determine one or more of the devices 219 to which each network configuration controller 210 is assigned. For example, each network configuration controller of the network configuration controller 210 can determine the location of the network configuration controller on the consistent hashing ring 280 based on a unique identifier associated with the network configuration controller. The consistent hashing ring 280 shows an example of a network configuration controller 210 including four network configuration controllers 210A-210D, wherein each of the network configuration controllers 210A-210D is located in the consistent hashing ring 280 equidistant from each other.
[0036] The network configuration controller 210 may determine the position of each device in the devices 219 on the consistent hash ring 280 for each device in the devices 219 based on performing consistent hashing on the device identifier of each device 219. Therefore, the network configuration controller 210 may determine the network configuration controller 210 among the network configuration controllers 210A-210D to which the device is assigned based on the position of each device in the devices 219 on the consistent hash ring 280.
[0037] In some examples, the network configuration controller 210 may assign the device 219 to the network configuration controller closest to the left side (i.e., counterclockwise) of the device 219. Thus, the device 219 in the consistent hash ring 280 between the network configuration controllers 210A and 210B is assigned to the network configuration controller 210A. In another example, the network configuration controller 210 may assign the device 219 to the network configuration controller closest to the right side (i.e., clockwise) of the device 219. Thus, the device 219 in the consistent hash ring 280 between the network configuration controllers 210A and 210B is assigned to the network configuration controller 210B. In this way, the network configuration controller 210 can determine one or more of the devices 219 to which it is assigned based on the consistent hashing technique.
[0038] Each network configuration controller 210 may determine whether to add one or more persistent communication sessions with one or more devices 219 or remove one or more persistent communication sessions with one or more devices 219 based on performing consistent hashing on the device identifier of each device 219. Specifically, the network configuration controller in the network configuration controller 210 may identify one or more devices 219 with which the network configuration controller is to establish one or more persistent communication sessions based on performing consistent hashing on the device identifier of each device 219. If the network configuration controller determines that the identified one or more devices 219 include one or more devices with which the network configuration controller has not yet established a persistent communication session, the network configuration controller 210 may add one or more persistent communication sessions with the identified one or more devices 219. Conversely, if the network configuration controller determines that the identified one or more devices 219 do not include one or more devices with which the network configuration controller has already established a persistent communication session, the network configuration controller 210 may remove one or more persistent communication sessions with the identified one or more devices 219.
[0039] In some examples, in response to receiving a request to provide a persistent communication session with a device in the network 212 or to remove a persistent communication session with a device in the network 212, the network configuration controller 210 may perform a hashing of device identifiers of the devices 219 to determine the devices 219 assigned to each network configuration controller 210. In some examples, in response to receiving a request to remap one or more persistent communication sessions with the devices 219, the network configuration controller 210 may perform a hashing of device identifiers of the devices 219 to determine the devices 219 assigned to each network configuration controller 210. In some examples, the network configuration controller 210 may perform a hashing of device identifiers of the devices 219 to determine the devices 219 assigned to each network configuration controller 210 in response to receiving any indication that one or more devices have been added to or removed from the devices 219 in the network 212.
[0040] If the network configuration controller in network configuration controller 210 determines to remove the persistent communication session with the device of device 219 in response to performing the consistent hashing technique, the network configuration controller may remove the persistent communication session immediately after determining to remove the persistent communication session. Conversely, the network configuration controller may wait until the task currently actively using the persistent communication session is completed, and may remove the persistent communication session after the task has been completed.
[0041] For example, if a persistent communication session to a device of device 219 is being remapped from network configuration controller 210A to network configuration controller 210B based on consistent hashing, network configuration controller 210A may determine whether a task is currently actively using the persistent communication session to the device (e.g., to perform configuration of the device). When the task is currently actively using the persistent communication session to the device, network configuration controller 210B may establish a persistent communication session to the device. When the task using the persistent communication session established by configuration controller 210A is completed, network configuration controller 210A may then remove the persistent communication session to the device, thereby enabling remapping of the persistent communication session between network configuration controllers 210A and 210B without interrupting the active task using the persistent communication session to be remapped.
[0042] Configuration service 252 may be or host one or more services for processing requests to provision devices of device 219 and / or requests from clients for status or other information about device 219. Configuration service 252 may, in response to receiving a request for information about a particular device of device 219, determine a network configuration controller among network configuration controllers 210 that are assigned to and manage the particular device, and may route the request for information to the determined network configuration controller among network configuration controllers 210 that are assigned to and manage the particular device. In some examples, configuration service 252 may be or host a gRPC remote procedure call (gRPC) service or an Advanced Messaging Queuing Protocol (AMQP) service.
[0043] The autoscaling service 254 may perform automatic horizontal scaling of the network configuration controller 210. Specifically, the autoscaling service 254 may add or instantiate additional network controllers to the network configuration controller 210 to manage the devices 219 based on the number of devices 219 managed by each network configuration controller 210. The autoscaling service 254 may periodically determine the number of devices served by each network configuration controller 210, and may determine whether to horizontally scale the network configuration controller 210, such as by adding additional network controllers to the network configuration controller 210 to manage the devices 219, based at least in part on the number of devices served by each network configuration controller 210. In some examples, the autoscaling service 254 may be a Kubernetes scheduled task that is set to determine the number of devices served by each network configuration controller 210 every hour, every 30 minutes, etc.
[0044] The network configuration controllers 210 may provide an application programming interface (API) that is exposed to provide the number of devices managed by each of the network configuration controllers 210 and the maximum number of devices that can be managed by each of the network configuration controllers 210. In some examples, the maximum number of devices that each of the network configuration controllers 210 can manage may be a user-configurable value.
[0045] The auto-scaling service 254 may use an API provided by the network configuration service 250 to periodically determine the number of devices served by each network configuration controller 210, and may compare the determined number of devices served by each of the network configuration controllers 210 to the maximum number of devices that can be managed by each of the network configuration controllers 210 to determine whether to add additional network controllers to the network configuration controllers 210. In some examples, the auto-scaling service 254 may, in response to determining that the number of devices served by at least one of the network configuration controllers 210 is greater than the maximum number of devices that can be managed by each of the network configuration controllers 210, add additional network controllers to the network configuration controllers 210 to manage the devices 219, such as by instantiating the additional network configuration controllers.
[0046] The network configuration controller 210 may remap one or more devices 219 in response to an additional network controller being added to the network configuration controller 210 and / or in response to the controller 208 receiving a request to provide an additional persistent communication session with the device 219. That is, each of the network configuration controllers 210 may re-determine one or more of the devices 219 that it is assigned to establish a persistent communication session. As described above, each of the network configuration controllers 210 may determine one or more of the devices 219 that it is assigned to establish a persistent communication session based on performing a consistent hashing technique. For example, the device database 260 of the controller 208 may store a device identifier for each of the devices 129 determined by the network configuration service 250. Each network configuration controller 210 may retrieve the device identifier for each of the devices 129 and may perform a consistent hashing technique to determine one or more of the devices that it is assigned to the device 219. In this manner, the network configuration service 250 may perform automatic horizontal scaling of the network configuration controllers 210.
[0047] In some examples, the techniques of this disclosure may also be used to reallocate devices 219 among network configuration controllers 210 when one or more network configuration controllers 210 cease to function. Each network configuration controller 210 may periodically (e.g., once every few seconds) register with a network database 260. If the network configuration service 250 determines that a network configuration controller among the network configuration controllers 210 has failed to register with the network database 260, the network configuration service 250 may determine that the network configuration controller has ceased to function.
[0048] In response to determining that the network controller of the network configuration controller 210 has stopped functioning, the network configuration controller 210 may remap one or more devices 219. That is, each of the network configuration controllers 210 may re-determine one or more of the devices 219 to which it is assigned. As described above, each of the network configuration controllers 210 may determine one or more of the devices 19 to which it is assigned based on consistent hashing techniques. For example, the device database 260 of the controller 208 may store a device identifier for each of the devices 19 determined by the network configuration service 250. Each of the network configuration controllers 210 may retrieve a device identifier for each of the devices 19, and may perform consistent hashing techniques to determine that it is assigned to one or more of the devices 19.
[0049] In some examples, the controller 208 may also include a network database 260, a device profile adapter 264, a topology service 266, and a device service 262. The network database 260 may store information associated with each of the devices 219 in the network 212 that are managed by the network configuration controller 210. For example, the network database 260 may store a device identifier associated with each of the devices 219. In some examples, the network database 260 may also store a unique identifier associated with each of the network configuration controllers 210. Examples of the network database 260 may include a remote dictionary server (REDIS) database.
[0050] Topology service 266 may communicate with network 212 to determine information about network 212 and device 219. In some examples, topology service 266 may receive Border Gateway Protocol Link State (BGP-LS) data containing information about network 212 and device 219. Device service 262 may provide an API, such as a Representational State Transfer (REST) API, for configuring controller 208 and for receiving requests for information about controller 208, such as information about network configuration controller 210. Device profile adapter 264 may communicate with topology service 266 and device service 262 to enable topology service 266 and device service 262 to interact with network configuration service 250.
[0051] For example, if topology service 266 receives a request to provide a connection between a new device for device 219 and network configuration controller 212, topology service 266 may forward the request to device profile adapter 264, and device profile adapter 264 may communicate with device database 260 and / or network configuration service 250 to provide a connection between the new device for device 219 and network configuration controller 212. Similarly, if device service 262 receives a request for information about network configuration controller 210, device service 262 may forward the request to device profile adapter 264, and device profile adapter 264 may communicate with device database 260 and / or network configuration service 250 to service the request for information.
[0052] Figure 3 is a block diagram illustrating an example controller according to the techniques of the present disclosure. Controller 512 may represent Figure 1 The controller 108 and Figure 2 512 is an example implementation of the controller 208. For example, the controller 512 may be or implement a WAN controller, a software defined networking (SDN) controller, and / or a path computation element.
[0053] Typically, the path computation module 514 and the path provisioning module 518 of the controller 512 can use protocols to instantiate paths between path computation clients (e.g., routers) in the network. The southbound API 532 allows the controller 512 to communicate with SR-enabled and other network nodes using protocols such as ISIS, OSPFv2, BGP-LS, and PCEP, such as Figure 1 Equipment 19, Figure 2 Devices 219 and / or routers and switches of the network. By providing a view of the global network status and bandwidth requirements in the network, the controller 512 is able to calculate the optimal path and provide the network for forwarding using the SID list in the SR paradigm.
[0054] In some examples, the application service issues a path request to the controller 512 to request a path in a path computation domain controlled by the controller 512. For example, the path request includes the required bandwidth or other constraints and two endpoints representing access nodes and edge nodes communicating on the path computation domain managed by the controller 512. The path request may also specify the time / date when the path must operate and class of service (CoS) parameters (e.g., the bandwidth required for each class for certain paths).
[0055] The controller 512 accepts path requests from application services to establish paths between endpoints on the path computation domain. Paths may be requested for different times and dates and with different bandwidth requirements. The controller 512 coordinates the path requests from application services to multiplex the requested paths onto the path computation domain based on the requested path parameters and expected network resource availability.
[0056] In order to intelligently calculate and establish paths through the path computation domain, the controller 512 includes a topology module 516 to maintain topology information (e.g., a traffic engineering database) describing the available resources of the path computation domain, including access, aggregation, and edge nodes, their interfaces, and interconnecting communication links. In some examples, the topology module 516 is Figure 2 An example of a topology service 266 for the controller 208 .
[0057] The path calculation module 514 of the controller 512 calculates the requested path through the path calculation domain. Typically, the path is unidirectional. After calculating the path, the path calculation module 514 schedules the path for provisioning by the path provisioning module 518. The calculated path includes path information that the path provisioning module 518 can use to establish the path in the network. Before submitting the path to provide packet transmission, the provisioned path may require path verification.
[0058] More example details of a distributed WAN controller can be found in U.S. Patent 9,450,817, entitled “Software Defined Network Controller,” which is incorporated herein by reference in its entirety. This is just one example, and controller 512 may calculate and provision paths in other ways.
[0059] In this example, the controller 512 includes northbound and southbound interfaces in the form of a northbound application programming interface (API) 530 and a southbound API (532). The northbound API 530 includes methods and / or accessible data structures through which application services can configure and request path computation and query established paths within the path computation domain, as described above. The southbound API 532 includes methods and / or accessible data structures through which the controller 512 receives topology information of the path computation domain and establishes paths by accessing and programming the data planes of aggregation nodes and / or access nodes within the path computation domain.
[0060] Path computation module 514 includes data structures that store path information used to compute and establish requested paths. These data structures include constraints 534, path requirements 536, operational configurations 538, and path exports 540. Application services can call northbound API 530 to install / query data from these data structures. Constraints 534 represent data structures that describe external constraints on path computation. Constraints 534 allow application services to modify link attributes such as metrics, for example, before path computation module 514 computes path combinations.
[0061] The application service may modify the attributes of the link to implement the resulting traffic engineering calculations. In this case, the link attributes may override the attributes received from the topology indication module 550 and remain valid for the duration of the node / attached port in the topology. For example, a link edit message to the constraint 534 may include a link descriptor specifying a node identifier and a port index, and link attributes specifying bandwidth, expected transmission time, shared link groups, and fate sharing groups. The link edit message may be sent by the controller 512.
[0062] Operational configuration 538 represents a data structure that provides configuration information to controller 512 to configure the path calculation algorithm regarding, for example, service class (CoS) descriptors and detour behavior. Operational configuration 538 can receive operational configuration information based on CCP. For example, the operational configuration message specifies CoS values, queue depths, queue depth priorities, scheduling rules, over-provisioning factors, detour types, path failure modes, and detour path failure modes. A single CoS profile can be used for the entire path calculation domain. Example CoS values are described in U.S. application Ser. No. 13 / 842,453, filed on Mar. 15, 2013, entitled “Aggregation Network with Centralized Control,” the entire contents of which are incorporated herein by reference. As an attribute of the path calculation domain, the service class assigned to the service class can be independent of the node.
[0063] Path export 540 represents an interface for storing path descriptors of all paths currently committed or established in the path computation domain. In response to a query received via the northbound API 530, the path export 540 returns one or more path descriptors. The received query may request a path between any two edges and access nodes that terminate the path(s). In some examples, the path descriptor may be used by an application service to set forwarding configurations at the edges and access nodes that terminate the path(s). The path descriptor may include an explicit routing object (ERO). In response to a query from an interested party, a path descriptor or "path information" may be sent. The path export message provides path information, including the path type (main path or detour path), bandwidth for each CoS value. In response to receiving the path descriptor, the receiving device may use RSVP-TE to signal the MPLS LSP from the ingress to the egress of the path.
[0064] Path requirements 536 represent an interface that receives path requests for paths to be calculated by path calculation module 536 and provides these path requests (including path requirements) to path engine 544 for calculation. Path requirements 536 can be received by a controller, or can be processed by a controller. In this case, the path requirement message can include a path descriptor with an ingress node identifier and an egress node identifier for a node terminating the specified path, and request parameters including a CoS value and bandwidth. The path requirement message can add to or delete an existing path requirement for a specified path.
[0065] The topology module 516 includes a topology indication module 550 to handle topology discovery and, when needed, maintain control channels between the controller 512 and nodes of the path computation domain. The topology indication module 550 may include an interface to describe the received topology to the path computation module 514.
[0066] The topology indication module 550 may use a topology discovery protocol to describe the path computation domain topology to the path computation module 514. In one example, using a cloud control protocol mechanism for topology discovery, the topology indication module 550 may receive a list of node neighbors, each neighbor including a node identifier, a local port index, and a remote port index, and a list of link attributes, each of which specifies a port index, a bandwidth, an expected transmission time, a shared link group, and a fate sharing group.
[0067] The topology indication module 550 may communicate with a topology server, such as a routing protocol route reflector, to receive topology information of a network layer of the network. The topology indication module 550 may include a routing protocol process that executes a routing protocol to receive routing protocol advertisements, such as Open Shortest Path First (OSPF) or Intermediate System to Intermediate System (IS-IS) Link State Advertisements (LSAs) or Border Gateway Protocol (BGP) update messages. In some cases, the topology indication module 550 may be a passive listener that neither forwards nor initiates routing protocol advertisements. In some cases, the topology indication module 550 alternatively or additionally executes a topology discovery mechanism, such as an interface for an Application Layer Traffic Optimization (ALTO) service. Thus, the topology indication module 550 may receive a summary of topology information collected by a topology server (e.g., an ALTO server) rather than executing a routing protocol to directly receive routing protocol advertisements.
[0068] In some examples, the topology indication module 550 receives topology information including traffic engineering (TE) information. For example, the topology indication module 550 may execute Intermediate System to Intermediate System (IS-IS-TE) with TE extensions or Open Shortest Path First (OSPF-TE) with TE extensions to receive TE information for advertised links. Such TE information includes one or more of link states, management attributes, and metrics such as bandwidth that can be used on various LSP priorities of links connecting routers in the path computation domain. In some cases, the indication module 550 executes BGP-TE to receive advertised TE information for inter-autonomous system and other extra-network links.
[0069] The traffic engineering database (TED) 542 stores topology information of the network constituting the path computation domain of the controller 512 received by the topology indication module 550 to a computer-readable storage medium (not shown). The TED 542 may include one or more link state databases (LSDBs) in which link and node data is received in routing protocol advertisements, received from a topology server, and / or discovered by a link layer entity such as an overlay controller and then provided to the topology indication module 550. In some cases, the operator may configure traffic engineering or other topology information within the MT TED 542 via a client interface.
[0070] Path engine 544 accepts a current topology snapshot of the path computation domain in the form of TED 542 and computes CoS-aware traffic engineering paths between nodes using TED 542, as dictated by configured node-specific policies (constraints 534) and / or through dynamic networking with external modules via APIs. Path engine 544 may also compute detour paths for all primary paths on a per-CoS basis according to configured failover and capacity requirements (as specified in operational configuration 538 and path requirements 536, respectively).
[0071] In general, to compute the requested path, the path engine 544 determines whether there is a path in the layer that satisfies the TE specification of the requested path for the duration of the requested time based on the TED 542 and all specified constraints. The path engine 544 may use the Dijkstra Constrained SPF (CSPF) 546 path computation algorithm to identify a satisfactory path through the path computation domain. If no TE constraints exist, the path engine 544 may revert to SPF. If a satisfactory computed path exists for the requested path, the path engine 544 provides the path descriptor of the computed path to the path manager 548 to establish the path using the path provisioning module 518. The path computed by the path engine 544 may be referred to as a "computed" path until, for example, the path provisioning 518 programs the scheduled path into the network, whereupon the scheduled path becomes an "active" or "committed" path. A scheduled or active path is a bandwidth channel that is temporarily dedicated for a scheduled time, during which time the path is or becomes operational for transmitting traffic.
[0072] The path manager 548 establishes the calculated scheduling path using the path provisioning module 518, which in this case includes a forwarding information base (FIB) configuration module 552 (shown as "FIB CONFIG.552"), a policyer configuration module 554 (shown as "POLICER CONFIG.554"), and a CoS scheduler configuration module 556 (shown as "COSSCHEDULER CONFIG.556").
[0073] The FIB configuration module 552 programs the data plane of the aggregation node or access node that forwards information to the path calculation domain. The FIB of the aggregation node or access node includes an MPLS switching table, a detour path for each main LSP, a CoS scheduler for each interface, and a policy device at the LSP entrance. The FIB configuration module 552 can implement a software-defined networking (SDN) protocol, such as an OpenFlow protocol or an I2RS protocol, to provide and guide nodes to install forwarding information to their respective data planes. Therefore, "FIB" can refer to, for example, a forwarding table in the form of one or more OpenFlow flow tables, each of which includes one or more flow table entries that specify the processing of matching packets. The FIB configuration module 552 can additionally or alternatively implement other interface types, such as a simple network management protocol (SNMP) interface, a path calculation element protocol (PCEP) interface, a device management interface (DMI), a CLI, an interface to a routing system (I2RS), or any other node configuration interface. The FIB configuration module interface 62 establishes a communication session with an aggregation node or access node to install forwarding information to receive path setup event information, such as confirmation that the received forwarding information has been successfully installed or that the received forwarding information cannot be installed (indicating a FIB configuration failure).
[0074] The FIB configuration module 552 may add, change (i.e., implicitly add), or delete forwarding table entries based on information received from the path computation module 514. A FIB configuration message from the path computation module 514 to the FIB configuration module 552 may specify an event type (addition or deletion); a node identifier; a path identifier; one or more forwarding table entries, each entry including an ingress port index, an ingress label, an egress port index, and an egress label; and a detour path specifying a path identifier and a CoS mode.
[0075] The policy configuration module 554 can be called by the path calculation module 514 to request that the policy is installed on a specific aggregation node or access node for a specific LSP entrance. As described above, the FIB of the aggregation node or access node includes the policy at the LSP entrance. The policy configuration module 554 can receive a policy configuration request. The policy configuration request message can specify an event type (add, change, or delete); a node identifier; an LSP identifier; and a policy information list including CoS values, maximum bandwidth, bursts, and discards / re-marks for each service category. The FIB configuration module 552 configures the policy according to the policy configuration request.
[0076] The CoS scheduler configuration module 556 may be called by the path computation module 514 to request configuration of the CoS scheduler on an aggregation node or an access node. The CoS scheduler configuration module 556 may receive CoS scheduler configuration information. For example, the scheduling configuration request message may specify an event type (change), a node identifier, a port identification value (port index), and configuration information specifying bandwidth, queue depth, and scheduling rules.
[0077] The path engine 544 can calculate a list of segment identifiers (SIDs) for each path in a multipath solution that satisfies a segment routing (SR) policy. The path provisioning module 518 can output the list of SIDs to SR-enabled network nodes to provision the network to forward traffic along multiple paths.
[0078] The controller 512 includes a hardware environment including processing circuitry 551 for executing machine-readable software instructions for implementing the modules, interfaces, managers, and other components shown and described with respect to the controller 512. These components may be implemented in software or hardware alone, or as a combination of software, hardware, or firmware. For example, the controller 512 may include one or more processors including processing circuitry 551 for executing program code in the form of software instructions. In this case, the various software components / modules may include executable instructions stored on a computer-readable storage medium such as a computer memory or hard disk (not shown).
[0079] The network configuration controller 570A-570P ("network configuration controller 570") is Figure 1 The network configuration controller 110 and Figure 2 The network configuration controller 570 is an example of a network configuration controller 210 and may be a software instance executed at the processing circuit 551 to provision and configure LSPs by maintaining sessions with network devices in the network. For example, the network configuration controller 570 may be a NETCONF configuration controller configured to maintain and manage active and persistent NETCONF sessions with network devices in order to provision NETCONF-based LSPs.
[0080] Each of the network configuration controllers 570 may maintain a persistent connection pool, such as NETCONF connections, to a collection of network devices, and the network configuration controllers 570 may use a consistent hashing algorithm to allocate connections to network devices to each network configuration controller 570. The network configuration controllers 570 may invoke remote procedure calls (RPCs) on the connected network devices to download configurations, retrieve device information, and the like.
[0081] The network configuration controller 570 may use consistent hashing to allocate and redistribute connections to network devices by generating a hash value for each connection to the network device by hashing a unique identifier of the network device, such as by hashing a device identifier of the network device to generate a hash value. Thus, the network configuration controller 570 may allocate each connection to the network device to one of the network configuration controllers 570 based at least in part on the hash value of the connection. In some examples, the network configuration controller 570 may use a consistent hashing ring to allocate each connection to the network device to one of the network configuration controllers 570 using consistent hashing. For example, the network configuration controller 570 may map itself to a position in the consistent hashing ring based at least in part on a unique identifier associated with the network configuration controller 570. The network configuration controller 570 may also map each connection to the network device to the hashing ring based on a hash value associated with the network device, and may determine, for each connection to the network device, a network configuration controller to allocate to the connection in the network configuration controller 570 based on the position of the connection to the network device on the hashing ring.
[0082] When the number of connections managed by the network configuration controller 570 changes, such as when a new network device registers with the controller 512, or when a network device exits the network, the network configuration controller 570 can use a consistent hashing algorithm to reallocate the connections managed by the network configuration controller 570. As described above, consistent hashing is a hashing technique in which, when the size of the hash table is adjusted, on average only n / m keys may need to be remapped, where n is the number of keys and m is the number of slots. In contrast, in other hashing techniques, a change in the number of slots in the hash table may cause almost all keys to be remapped. Therefore, when the network configuration controller 570 reallocates n connections between m network configuration controllers 570, on average, only n / m connections may have to be remapped to different network configuration controllers outside the network configuration controller 570.
[0083] Configuration service 562 may be Figure 2 An example of a configuration service 252 of the present invention. The configuration service 562 can be or host one or more services for handling requests to provision devices and / or requests for status or other information about devices connected to the network configuration controller 570. The configuration service 562 can, in response to receiving a request for information about a particular device connected to the network configuration controller 570, determine the network configuration controller among the network configuration controllers 570 that are assigned to and manage the particular device, and can route the request for information to the network configuration controller among the determined network configuration controllers 570 that are assigned to and manage the particular device. In some examples, the configuration service 562 can be or host a gRPC service or an AMPQ service.
[0084] The network configuration controller 570 may periodically register itself with the configuration service 562, such as every few seconds (e.g., every 3 seconds, every 5 seconds, etc.). If the network configuration service 562 determines that a network configuration controller among the network configuration controllers 570 has failed to register with the network configuration service 562, the network configuration controller 570 may determine that the network configuration controller that failed to register with the network configuration service 562 has been down (i.e., stopped working or otherwise failed). The network configuration controller 570 may respond to determining that the network configuration controller has been down by causing the network configuration controller 570 to use consistent hashing to redistribute connections to network devices among the network configuration controllers 570 that are still running.
[0085] The path provisioning module 518 may expose a customization API that provides the number of connections to network devices managed by each of the network configuration controllers 570 and the maximum number of connections to network devices that may be managed by each of the network configuration controllers 570. The configuration service 562 may be executed at the processing circuit 551 to provide the ability to customize, such as by an administrator of the controller 512, the maximum number of connections to devices that may be managed by each of the network configuration controllers 570.
[0086] The autoscaling service 564 may be Figure 2 An example of an auto-scaling service 254. The auto-scaling service 564 can be executed at the processing circuit 551 to use the exposed API to periodically determine the number of connections to network devices maintained by each of the network configuration controllers 570, and can compare the determined number of connections maintained by each of the network configuration controllers 570 with the maximum number of sessions that can be managed by each of the network configuration controllers 210 to determine whether to add additional network controllers to the network configuration controllers 570.
[0087] For example, the autoscaling service 564 may be a scheduled Kubernetes task with a configurable time window, such as one hour, that calls the exposed API once an hour to periodically determine the number of connections to network devices maintained by each of the network configuration controllers 570 and compare the number of connections to network devices maintained by each of the network configuration controllers 570 to the maximum number of sessions that can be managed by each of the network configuration controllers 210 to determine whether to add additional network controllers to the network configuration controllers 570. In some examples, the autoscaling service 564 may, in response to determining that the number of connections to devices served by at least one of the network configuration controllers 570 is greater than the maximum number of connections to devices that can be managed by each of the network configuration controllers 570, add an additional network controller to the network configuration controller 570 to manage connections to the devices, such as by instantiating an additional network configuration controller.
[0088] Figure 4 600 is a block diagram showing an example controller according to the techniques of the present disclosure. Figure 1 Controller 108, Figure 2 The controller 208 and Figure 3 An example implementation of controller 512 of , which uses NETCONF to maintain active and persistent sessions with network devices. Controller 600 may be or implement a WAN controller, a software defined networking (SDN) controller, and / or a path computation element, such as a North Star controller.
[0089] like Figure 4 As shown, the controller 600 may include a health module 602 configured to monitor Figure 1 Network 112 or Figure 2 The health of the network 212 of the network. Specifically, the health module 602 can diagnose network problems and find the root causes of network problems, detect network anomalies, predict potential network problems, and create real-time remediation for any problems that arise. The health module 602 includes agents 604A-604N ("agents 604") that perform such network health monitoring. The agent 604 can send the collected network health status information to the NETCONF service instances 607A-607N ("NETCONF service instances 607") of the NETCONF service 606, such as in the form of gRPC calls.
[0090] The controller 600 may also include a NETCONF service 606 configured to host a gRPC / AMQP message-based service for processing provisioning requests and / or state information requests from clients, and for configuring the NETCONF connection service 620. Specifically, the NETCONF service 606 may route such requests to a corresponding NETCONF connection service instance of the NETCONF connection service 620.
[0091] NETCONF service 606 includes NETCONF service instance 607. NETCONF service instance 607 is Figure 2 254 and configuration service 252. Each NETCONF service instance 607 can provide various NETCONF services to a corresponding NETCONF connection instance of NETCONF connection service 620. For example, NETCONF service instance 607 can include NETCONF agents 608A-608N ("NETCONF agents 608"), NETCONF daemons 610A-610N ("NETCONF daemons 610"), and NETCONF connection handlers 612A-612N ("NETCONF connection handlers 612").
[0092] NETCONF service instance 607 can communicate with AMQP service 614 and REDIS database 616. NETCONF service instance 607 can store information associated with each device in the network managed by controller 600 in REDIS database 616. AMQP service 646 can support various messaging applications and communication patterns and provide flow-controlled, message-oriented communication with message delivery guarantees. Other modules of controller 600, such as Polaris modules 618A-618N, can also use REDIS database 616 and AMQP service 614.
[0093] NETCONF connection service 620 is configured to maintain and manage a pool of persistent NETCONF connections to device 630. NETCONF connection service 620 includes Figure 1 The network configuration controller 110 and Figure 220 . NETCONF connection service instances 622A-622N ("NETCONF connection service instances 622") of the network configuration controller 210 are shown. The NETCONF connection service instances 622 can maintain persistent NETCONF connection sessions with the devices 630. The NETCONF connection service instances 622 can maintain device pools 626A-626N ("device pools 626") that manage such persistent NETCONF connection session pools with the devices 630 for each NETCONF connection service instance 622. The persistent NETCONF connections are assigned to the NETCONF connection service instances 622 using a consistent hashing algorithm.
[0094] The NETCONF connection service instance 622 may also include a NETCONF connection controller 624A-624N ("NETCONF connection controller 624") for determining, for example, in response to receiving a provisioning request from the NETCONF service instance 607 and using a consistent hashing algorithm to determine whether to remap and / or reallocate device 630 for establishing a NETCONF connection session when the NETCONF connection service instance 622 is removed from the network or when the device 630 is added to the device 630.
[0095] Figure 5 is a flowchart illustrating an example operation of a computing device according to one or more techniques of this disclosure. The computing device may be a computing device of controller 108, controller 208, controller 512, or other controllers described herein, or may represent a network node, such as a headend or ingress router for SR policy. However, the flowchart is described with respect to controller 208.
[0096] like Figure 4 As seen in the example of , a first plurality of network configuration controllers 210 of the controller 208 may use a consistent hashing algorithm to distribute a plurality of connection sessions with a plurality of network devices 219 among the first plurality of network configuration controllers (702). The controller 208 may monitor the number of connection sessions maintained by each of the first plurality of network configuration controllers 210 (704). The controller 208 may add additional network configuration controllers to the first plurality of network configuration controllers 210 to form a second plurality of network configuration controllers 210 based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers 210 (706). The second plurality of network configuration controllers 210 may, in response to adding the additional network configuration controllers to the first plurality of network configuration controllers 210, reallocate one or more of the plurality of connection sessions among the second plurality of network configuration controllers 210 using a consistent hashing algorithm (708).
[0097] This disclosure includes the following examples.
[0098] Example 1: A method comprising: distributing, by a first plurality of network configuration controllers of a controller and using a consistent hashing algorithm, a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers; monitoring, by the controller, the number of connection sessions maintained by each of the first plurality of network configuration controllers; adding, by the controller and based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; and in response to adding the additional network configuration controller to the first plurality of network configuration controllers, redistributing, by the second plurality of network configuration controllers and using a consistent hashing algorithm, one or more of the plurality of connection sessions among the second plurality of network configuration controllers.
[0099] Example 2: A method according to Example 1, wherein distributing multiple connection sessions with multiple network devices among a first plurality of network configuration controllers using a consistent hashing algorithm further includes: determining, by each of the first plurality of network configuration controllers and using a consistent hashing algorithm, corresponding non-overlapping portions of the multiple connection sessions to be maintained.
[0100] Example 3: A method according to any one of Examples 1 and 2, wherein distributing multiple connection sessions with multiple network devices among a first plurality of network configuration controllers using a consistent hashing algorithm further includes: hashing each of a plurality of device identifiers associated with the multiple network devices by the first plurality of network configuration controllers of the controller and using a consistent hashing algorithm to determine a corresponding hash value for each of the multiple network devices; and distributing the multiple connection sessions with the multiple network devices among the first plurality of network configuration controllers by the first plurality of network configuration controllers of the controller, at least in part based on the corresponding hash value of each of the multiple network devices.
[0101] Example 4: A method according to any one of Examples 1-3, wherein using a consistent hashing algorithm to distribute multiple connection sessions with multiple network devices among a first plurality of network configuration controllers further includes: using a consistent hashing ring by a first plurality of network configuration controllers to distribute multiple connection sessions with multiple network devices among the first plurality of network configuration controllers.
[0102] Example 5: A method according to any one of Examples 1-4, wherein monitoring the number of connection sessions maintained by each of the multiple connection sessions further includes: a timing task at the controller periodically determining the number of connection sessions maintained by each of the multiple connection sessions.
[0103] Example 6: A method according to any one of Examples 1-5, wherein adding an additional network configuration controller to the first plurality of network configuration controllers based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers further includes: determining, by the controller, whether to add an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers based at least in part on comparing that the number of connection sessions maintained by each of the first plurality of network configuration controllers is greater than the maximum number of connections that can be maintained by each of the first plurality of network configuration controllers.
[0104] Example 7: A method according to any one of Examples 1-6, wherein determining whether to add an additional network configuration controller to a first plurality of network configuration controllers is based at least in part on comparing that the number of connection sessions maintained by each of the first plurality of network configuration controllers is greater than the maximum number of connections that each of the first plurality of network configuration controllers can maintain, and further comprising: determining, by the controller, whether the number of connection sessions maintained by at least one of the first plurality of network configuration controllers is greater than the maximum number of connections that each of the first plurality of network configuration controllers can maintain; and in response to determining that the number of connection sessions maintained by at least one of the first plurality of network configuration controllers is greater than the maximum number of connections that each of the first plurality of network configuration controllers can maintain, adding, by the controller, the additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers.
[0105] Example 8: A method according to any one of Examples 1-7, wherein a consistent hashing algorithm is used to redistribute one or more of the multiple connection sessions among a second plurality of network configuration controllers, and further comprising: each of the second plurality of network configuration controllers at the controller uses a consistent hashing algorithm to determine a corresponding second non-overlapping portion of the multiple connection sessions to be maintained to redistribute one or more of the multiple connection sessions among the second plurality of network configuration controllers.
[0106] Example 9: The method according to any one of Examples 1-8 further includes: determining, by a controller, that a network configuration controller among a second plurality of network configuration controllers has stopped working; and in response to determining that a network configuration controller among the second plurality of network configuration controllers has stopped working, redistributing, by the second plurality of network configuration controllers, one or more connection sessions among the plurality of connection sessions using a consistent hashing algorithm.
[0107] Example 10: The method according to Example 9, wherein the controller determines that a network configuration controller among a second plurality of network configuration controllers has stopped working, further comprising: each network configuration controller among the second plurality of network configuration controllers periodically registering with the controller; and the controller determines that registration of the network configuration controller with the controller has failed.
[0108] Example 11: A method according to any one of Examples 1-10, wherein: the first plurality of network configuration controllers and the second plurality of network configuration controllers include a plurality of Network Configuration Protocol (NETCONF) controllers; and the plurality of connection sessions include a plurality of NETCONF sessions.
[0109] Example 12: A computing device comprising: a memory; and a processing circuit that communicates with the memory, the processing circuit being configured to: distribute a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers by a first plurality of network configuration controllers and using a consistent hashing algorithm; monitor the number of connection sessions maintained by each of the first plurality of network configuration controllers; based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, add an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; and in response to adding the additional network configuration controller to the first plurality of network configuration controllers, redistribute one or more of the plurality of connection sessions among the second plurality of network configuration controllers by the second plurality of network configuration controllers and using a consistent hashing algorithm.
[0110] Example 13: A computing device according to Example 12, wherein in order to use a consistent hashing algorithm to determine multiple connection sessions with multiple network devices between a first plurality of network configuration controllers, the processing circuit is also configured to: determine, by each network configuration controller in the first plurality of network configuration controllers and using a consistent hashing algorithm, corresponding non-overlapping portions of the multiple connection sessions to be maintained.
[0111] Example 14: A computing device according to any one of Examples 12 and 13, wherein in order to determine multiple connection sessions with multiple network devices between a first plurality of network configuration controllers using a consistent hashing algorithm, the processing circuit is also configured to: hash each of a plurality of device identifiers associated with the multiple network devices by the first plurality of network configuration controllers and using a consistent hashing algorithm to determine a corresponding hash value for each of the multiple network devices; and distribute the multiple connection sessions with the multiple network devices between the first plurality of network configuration controllers by the first plurality of network configuration controllers, based at least in part on the corresponding hash value of each of the multiple network devices.
[0112] Example 15: A computing device according to any one of Examples 12-14, wherein in order to use a consistent hashing algorithm to determine multiple connection sessions with multiple network devices between a first plurality of network configuration controllers, the processing circuit is also configured to: use a consistent hashing ring by the first plurality of network configuration controllers to distribute the multiple connection sessions with the multiple network devices among the first plurality of network configuration controllers.
[0113] Example 16: A computing device according to any one of Examples 12-15, wherein in order to monitor the number of connection sessions maintained by each network configuration controller in a first plurality of network configuration controllers, the processing circuit is further configured to: by a timing task, periodically determine the number of connection sessions maintained by each connection session in the plurality of connection sessions.
[0114] Example 17: A computing device according to any of Examples 12-16, wherein in order to add an additional network configuration controller to the first plurality of network configuration controllers based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, the processing circuit is also configured to: determine whether to add an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers based at least in part on comparing that the number of connection sessions maintained by each of the first plurality of network configuration controllers is greater than the maximum number of connections that can be maintained by each of the first plurality of network configuration controllers.
[0115] Example 18: A computing device according to Example 17, wherein in order to determine whether to add an additional network configuration controller to the first plurality of network configuration controllers based at least in part on comparing that the number of connection sessions maintained by each of the first plurality of network configuration controllers is greater than the maximum number of connections that each of the first plurality of network configuration controllers can maintain, the processing circuit is also configured to: determine whether the number of connection sessions maintained by at least one of the first plurality of network configuration controllers is greater than the maximum number of connections that each of the first plurality of network configuration controllers can maintain; and in response to determining that the number of connection sessions maintained by at least one of the first plurality of network configuration controllers is greater than the maximum number of connections that each of the first plurality of network configuration controllers can maintain, add the additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers.
[0116] Example 19: A computing device according to any one of Examples 12-18, wherein in order to use a consistent hashing algorithm to redistribute one or more connection sessions among a second plurality of network configuration controllers, the processing circuit is also configured to: each network configuration controller among the second plurality of network configuration controllers uses a consistent hashing algorithm to determine a corresponding second non-overlapping portion of the plurality of connection sessions to be maintained to redistribute one or more connection sessions among the second plurality of network configuration controllers.
[0117] Example 20: A non-transitory computer-readable storage medium encoded with instructions that, when executed, cause one or more programmable processors to: distribute a plurality of connection sessions with a plurality of network devices among a first plurality of network configuration controllers and using a consistent hashing algorithm; monitor the number of connection sessions maintained by each of the first plurality of network configuration controllers; based on monitoring the number of connection sessions maintained by each of the first plurality of network configuration controllers, add additional network configuration controllers to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; and in response to adding the additional network configuration controllers to the first plurality of network configuration controllers, redistribute one or more of the plurality of connection sessions among the second plurality of network configuration controllers by the second plurality of network configuration controllers and using a consistent hashing algorithm.
[0118] The techniques described herein may be implemented in hardware, software, firmware, or any combination thereof. The various features described as modules, units, or components may be implemented together in an integrated logic device, or separately as discrete but interoperable logic devices or other hardware devices. In some cases, the various features of the electronic circuit may be implemented as one or more integrated circuit devices, such as an integrated circuit chip or chipset.
[0119] If implemented in hardware, the present disclosure may be directed to an apparatus such as a processor or an integrated circuit device such as an integrated circuit chip or chipset. Alternatively or additionally, if implemented in software or firmware, the techniques may be implemented at least in part by a computer-readable data storage medium that includes instructions that, when executed, cause a processor to perform one or more of the above methods. For example, a computer-readable data storage medium may store such instructions for execution by a processor.
[0120] Computer-readable media or computer-readable storage devices may form part of a computer program product, which may include packaging materials. Computer-readable media may include computer data storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic or optical data storage media, etc. In some examples, an article of manufacture may include one or more computer-readable storage media.
[0121] In some examples, computer-readable storage media may include non-transient media. The term "non-transient" may mean that the storage medium is not contained in a carrier or propagated signal. In some examples, non-volatile storage media may store data that may change over time (e.g., in RAM or cache).
[0122] The code or instructions may be software and / or firmware executed by a processing circuit including one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FGAs), or other equivalent integrated circuits or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described in the present disclosure may be provided within a software module or a hardware module.
Claims
1. A method for network configuration, comprising: distributing, by a first plurality of network configuration controllers of the controller and using a consistent hashing algorithm, a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers; monitoring, by the controller, a number of connection sessions maintained by each of the first plurality of network configuration controllers; adding, by the controller, an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers in response to determining that the number of connection sessions maintained by one of the first plurality of network configuration controllers is greater than a maximum number of connections capable of being maintained by each of the first plurality of network configuration controllers; as well as In response to adding the additional network configuration controller to the first plurality of network configuration controllers, the second plurality of network configuration controllers and using the consistent hashing algorithm redistribute one or more of the plurality of connection sessions among the second plurality of network configuration controllers, including: each of the second plurality of network configuration controllers using the consistent hashing algorithm to separately determine corresponding non-overlapping portions of the plurality of connection sessions to be maintained.
2. The method of claim 1, wherein distributing the plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers using the consistent hashing algorithm further comprises: Determining, by each of the first plurality of network configuration controllers and using the consistent hashing algorithm, a different corresponding non-overlapping portion of the plurality of connection sessions to be maintained.
3. The method of claim 1 , wherein distributing the plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers using the consistent hashing algorithm further comprises: hashing, by the first plurality of network configuration controllers of the controller and using the consistent hashing algorithm, each of a plurality of device identifiers associated with the plurality of network devices to determine a corresponding hash value for each of the plurality of network devices; as well as The plurality of connection sessions with a plurality of network devices are distributed, by the first plurality of network configuration controllers of the controller, among the first plurality of network configuration controllers based at least in part on the corresponding hash value of each of the plurality of network devices.
4. The method of claim 1 , wherein distributing the plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers using the consistent hashing algorithm further comprises: The plurality of connection sessions with a plurality of network devices are distributed among the first plurality of network configuration controllers of the controller using a consistent hashing ring.
5. The method of claim 1 , wherein monitoring the number of connection sessions maintained by each of the plurality of connection sessions further comprises: The number of connection sessions maintained by each of the plurality of connection sessions is periodically determined by a timing task at the controller.
6. The method according to claim 1, further comprising: Determining, by the controller, that a network configuration controller in the second plurality of network configuration controllers has stopped operating; as well as In response to determining that the network configuration controller in the second plurality of network configuration controllers has ceased functioning, the second plurality of network configuration controllers redistribute the one or more of the plurality of connection sessions among the second plurality of network configuration controllers using the consistent hashing algorithm.
7. The method according to claim 6, wherein determining, by the controller, that the network configuration controller in the second plurality of network configuration controllers has stopped working further comprises: periodically registering with the controller by each of the second plurality of network configuration controllers; as well as By the controller, it is determined that registration of the network configuration controller with the controller has failed.
8. The method according to claim 1, wherein: The first plurality of network configuration controllers and the second plurality of network configuration controllers include a plurality of Network Configuration Protocol NETCONF controllers; and The multiple connection sessions include multiple NETCONF sessions.
9. A computing device comprising: Memory; as well as a processing circuit in communication with the memory, the processing circuit being configured to: distributing, by a first plurality of network configuration controllers and using a consistent hashing algorithm, a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers; monitoring a number of connection sessions maintained by each of the first plurality of network configuration controllers; in response to determining that the number of connection sessions maintained by one of the first plurality of network configuration controllers is greater than the number of connection sessions maintained by each of the first plurality of network configuration controllers, adding an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; as well as In response to adding the additional network configuration controller to the first plurality of network configuration controllers, the second plurality of network configuration controllers and using the consistent hashing algorithm redistribute one or more of the plurality of connection sessions among the second plurality of network configuration controllers, including: each of the second plurality of network configuration controllers using the consistent hashing algorithm to separately determine corresponding non-overlapping portions of the plurality of connection sessions to be maintained.
10. The computing device of claim 9, wherein to determine the plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers using the consistent hashing algorithm, the processing circuit is further configured to: Determining, by each of the first plurality of network configuration controllers and using the consistent hashing algorithm, a different corresponding non-overlapping portion of the plurality of connection sessions to be maintained.
11. The computing device of claim 9, wherein to determine the plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers using the consistent hashing algorithm, the processing circuit is further configured to: hashing, by the first plurality of network configuration controllers and using the consistent hashing algorithm, each of a plurality of device identifiers associated with the plurality of network devices to determine a corresponding hash value for each of the plurality of network devices; and The plurality of connection sessions with a plurality of network devices are distributed, by the first plurality of network configuration controllers, among the first plurality of network configuration controllers based at least in part on the corresponding hash value of each of the plurality of network devices.
12. The computing device of claim 9, wherein to determine the plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers using the consistent hashing algorithm, the processing circuit is further configured to: The plurality of connection sessions with a plurality of network devices are distributed among the first plurality of network configuration controllers using a consistent hashing ring.
13. The computing device of claim 9, wherein to monitor the number of connection sessions maintained by each of the plurality of connection sessions, the processing circuit is further configured to: The number of connection sessions maintained by each of the plurality of connection sessions is periodically determined by the timing task.
14. A non-transitory computer-readable storage medium encoded with instructions that, when executed, cause one or more programmable processors to: distributing, by a first plurality of network configuration controllers and using a consistent hashing algorithm, a plurality of connection sessions with a plurality of network devices among the first plurality of network configuration controllers; monitoring a number of connection sessions maintained by each of the first plurality of network configuration controllers; in response to determining that the number of connection sessions maintained by one of the first plurality of network configuration controllers is greater than a maximum number of connections capable of being maintained by each of the first plurality of network configuration controllers, adding an additional network configuration controller to the first plurality of network configuration controllers to form a second plurality of network configuration controllers; as well as In response to adding the additional network configuration controller to the first plurality of network configuration controllers, the second plurality of network configuration controllers and using the consistent hashing algorithm redistribute one or more of the plurality of connection sessions among the second plurality of network configuration controllers, including: each of the second plurality of network configuration controllers using the consistent hashing algorithm to separately determine corresponding non-overlapping portions of the plurality of connection sessions to be maintained.
