Computer networking method, computer system and computer equipment

By dynamically allocating processing cores in the virtual router based on the measurement of network traffic processing requirements, the load imbalance problem of the virtual router when processing network traffic is solved, and the utilization of the processing core and network performance are improved.

CN118573684APending Publication Date: 2024-08-30HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310687002.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2023-06-09
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult for existing virtual routers to dynamically balance the load of the processing core when processing network traffic, resulting in starvation or overload of the processing core, affecting overall utilization and network performance.

Method used

By dynamically allocating processing cores based on metrics of network traffic processing requirements, virtual routers can selectively allocate network traffic for different workloads to different processing cores, enabling intelligent and dynamic load balancing.

Benefits of technology

It effectively reduces the hunger and overload of the processing core, improves the overall utilization, reduces the network processing bottleneck, and improves the efficiency of the virtual router in processing network traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573684A
    Figure CN118573684A
Patent Text Reader

Abstract

The invention relates to a computer networking method, a computer system and computer equipment. In general, techniques are described for dynamic load balancing between processing cores with which a virtual router of a computing device processes network traffic associated with different workloads executing on the computing device. In some examples, a first computing device may allocate network traffic processing of a workload to a first processing core of a plurality of processing cores of a second computing device based on one or more metrics indicative of processing core utilization or indicative of network traffic processing requirements of the workload to execute on the second computing device. Network traffic of the workload may be processed based on the allocation of the virtual routers executing on the first processing core.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application claims the benefit of U.S. Application No. 18 / 176,245, filed on February 28, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to virtualized computing infrastructures and, more particularly, to load-balanced network traffic processing by virtual routers. Background Art

[0004] Virtualized data centers are becoming a core foundation of modern information technology (IT) infrastructure. In particular, modern data centers have extensively utilized virtualized environments in which virtual hosts (also referred to herein as workloads, such as virtual machines or pods of containers) are deployed and executed on underlying computing platforms of physical computing devices. Virtual routers create virtual overlay networks ("virtual networks") on top of physical underlying networks and process and forward data traffic between virtual hosts within the virtual overlay networks. Summary of the invention

[0005] In general, techniques are described for dynamic load balancing between processing cores that a virtual router of a computing device uses to process network traffic associated with different workloads executed on the computing device. The virtual router is responsible for processing network traffic from and to the workloads; such processing may include routing and forwarding, encapsulation and decapsulation of overlay tunnel network traffic, and other network traffic processing. As described in detail herein, the virtual router assigns (or is instructed to assign) network traffic processing tasks for a given workload to a specific processing core of the computing device based on a metric indicating the network traffic processing requirements of the workload. The virtual router uses the assigned processing core to process the network traffic of the workload. In some examples, the virtual router may rebalance the assignment due to new (or deleted) workloads, changes in the amount of network processing required by the corresponding workloads, or other factors.

[0006] The technology may provide one or more technical advantages that enable one or more practical applications. For example, by allocating network traffic processing to workloads in a manner informed by metrics, a virtual router may more efficiently and effectively load balance network processing of workloads among processing cores of a computing device than a static round-robin allocation scheme. Dynamic rebalancing of allocations may reduce processing core starvation (network processing load is too low) or overload (network processing load is too high), improve overall utilization, and / or reduce network processing bottlenecks and attendant latency that may occur due to overbooking of processing cores.

[0007] In one example, a computing system includes processing circuitry that has access to a storage device. The processing circuitry is configured to allocate network traffic processing of the workload to a first processing core among a plurality of processing cores of the computing device based on one or more metrics indicating processing core utilization or indicating network traffic processing requirements of the workload to be executed on the computing device. The processing circuitry is further configured to instruct a virtual router of the computing device to execute on the first processing core to process network traffic of the workload based on the allocation.

[0008] In another example, a computing device includes a processing circuit capable of accessing a storage device. The processing circuit is configured to obtain allocation data, wherein the allocation data is based on one or more metrics indicating processing core utilization or indicating network traffic processing requirements of a workload to be executed on the computing device, and wherein the allocation data maps the workload to a first processing core among a plurality of processing cores of the computing device. The processing circuit is further configured to process network traffic for the workload based on the mapping through a virtual router executed on the first processing core.

[0009] In one example, a method includes allocating, by a first computing device, network traffic processing of a workload to a first processing core of a plurality of processing cores of a second computing device based on one or more metrics indicating processing core utilization or indicating network traffic processing requirements of the workload to be executed on a second computing device. The method also includes processing, by a virtual router executed on the first processing core, network traffic of the workload based on the allocation.

[0010] The details of one or more examples of the disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A block diagram illustrating an example computing infrastructure in which examples of the techniques described herein may be implemented.

[0012] Figure 2 A block diagram of an example computing device is shown in which examples of the techniques described herein may be implemented.

[0013] Figure 3 A block diagram illustrating example components of an example computing device that executes a virtual router for a virtual network in accordance with the techniques described herein.

[0014] Figure 4 A flowchart illustrating example operations of a method according to the techniques described herein.

[0015] Figure 5A block diagram illustrating example components of an example computing device executing a workload and a virtual router for a virtual network according to the techniques described herein.

[0016] Like reference characters refer to like elements throughout the description and drawings. DETAILED DESCRIPTION

[0017] Figure 1 A block diagram of an example computing infrastructure 8 in which examples of the techniques described herein may be implemented is shown. In general, a data center 10 provides an operating environment for applications and services at a customer site 11 (illustrated as "customer 11"), which has one or more customer networks connected to the data center through a service provider network 7. For example, the data center 10 may host infrastructure equipment (such as network and storage systems, redundant power supply environmental controls). The service provider network 7 is connected to a public network 15, which may represent one or more networks managed by other providers and may therefore form part of a large-scale public network infrastructure (such as the Internet). For example, the public network 15 may represent a local area network (LAN), a wide area network (WAN), the Internet, a virtual LAN (VLAN), an enterprise LAN, a layer 3 virtual private network (VPN), an Internet Protocol (IP) intranet operated by a service provider operating the service provider network 7, an enterprise IP network, or some combination thereof.

[0018] Although customer sites 11 and public networks 15 are primarily illustrated and described as edge networks of service provider network 7, in some examples, one or more customer sites 11 and public networks 15 may be tenant networks within data center 10 or another data center. For example, data center 10 may host multiple tenants (customers), each tenant being associated with one or more virtual private networks (VPNs), each of which may implement one customer site 11.

[0019] The service provider network 7 provides packet-based connectivity to the connected customer sites 11, data centers 10, and public networks 15. The service provider network 7 may represent a network owned and operated by a service provider to interconnect multiple networks. The service provider network 7 may implement multi-protocol label switching (MPLS) forwarding, and in this case may be referred to as an MPLS network or MPLS backbone. In some cases, the service provider network 7 represents multiple interconnected autonomous systems, such as the Internet, which provide services from one or more service providers.

[0020] In some examples, data center 10 may represent one of many geographically distributed network data centers. Figure 1As shown in the example of , data center 10 can be a facility that provides network services to customers. Customers of a service provider can be collective entities, such as businesses and governments or individuals. For example, a network data center can host network services for several businesses and end users. Other example services may include data storage, virtual private networks, traffic engineering, file services, data mining, scientific or supercomputing, etc. Although shown as an independent edge network of the service provider network 7, elements of the data center 10 (e.g., one or more physical network functions (PNFs) or virtualized network functions (VNFs)) may be included in the core of the service provider network 7.

[0021] In this example, data center 10 includes storage and / or computing servers (or "nodes") having servers 12A through 12X (herein "servers 12") depicted as coupled to top-of-rack (TOR) switches 16A through 16N, which are interconnected via a switching fabric 14 provided by one or more layers of physical network switches and routers. Servers 12 are computing devices and may also be referred to herein as "hosts" or "host devices" because servers 12 host workloads 35 for execution by servers 12. Although in Figure 1 Only server 12A connected to TOR switch 16A is shown in detail, but data center 10 may include many additional servers connected to other TOR switches 16 in data center 10.

[0022] The switching fabric 14 in the illustrated example includes interconnected top-of-rack (TOR) (or other "leaf") switches 16A to 16N (collectively, "TOR switches 16") that are coupled to a distribution layer of rack (or "spine" or "core") switches 18A to 18M (collectively, "rack switches 18"). Although not shown, the data center 10 may also include, for example, one or more non-edge switches, routers, hubs, gateways, security devices (such as firewalls, intrusion detection and / or intrusion prevention devices), servers, computer terminals, laptops, printers, databases, wireless mobile devices (such as cellular phones or personal digital assistants), wireless access points, bridges, cable modems, application accelerators, or other network devices. The data center 10 may also include one or more physical network functions (PNFs) (such as physical firewalls, load balancers, routers, route reflectors, broadband network gateways (BNGs), mobile core network elements, and other PNFs).

[0023] In this example, the TOR switch 16 and the rack switch 18 provide redundant (multi-homed) connections to the IP structure 20 and the service provider network 7 for the server 12. The rack switch 18 aggregates traffic flows and provides connections between the TOR switches 16. The TOR switch 16 can be a network device that provides Layer 2 (MAC) and / or Layer 3 (such as, IP) routing and / or switching functions. The TOR switch 16 and the rack switch 18 can each include one or more processors and memories, and can execute one or more software processes. The rack switch 18 is connected to the IP structure 20, and the IP structure can perform Layer 3 routing to route network traffic between the data center 10 and the customer site 11 through the service provider network 7. The switching architecture of the data center 10 is only an example. For example, other switching architectures can have more or fewer switching layers. The IP structure 20 can include one or more gateway routers.

[0024] The term "packet flow", "traffic flow", or simply "flow" refers to a set of packets originating from a specific source device or endpoint and sent to a specific destination device or endpoint. For example, a single packet flow can be identified by a 5-tuple: <source network address, destination network address, source port, destination port, protocol>. The 5-tuple generally identifies the packet flow to which the received packets correspond. An n-tuple refers to any n items extracted from a 5-tuple. For example, a 2-tuple of a packet can refer to a combination of <source network address, destination network address> or <source network address, source port> for the packet.

[0025] The servers 12 may each represent a computing server or a storage server. For example, each server 12 may represent a computing device (such as a server based on an x86 processor) that is configured to operate according to the techniques described herein. The servers 12 may provide a network function virtualization infrastructure (NFVI) for the NFV architecture.

[0026] Server 12 may include one or more processing cores. Server 12A includes processing core 30A, server 12X includes processing core 30X (not shown), and so on. Each core of processing core 30 is an independent execution unit ("core") to execute instructions that conform to an instruction set architecture, i.e., instructions stored to a storage medium. The execution units may be implemented as separate integrated circuits (ICs), or may be combined in one or more multi-core processors (or "many-core" processors), each of which may be implemented using a single IC (i.e., a chip multiprocessor).

[0027] Any of the servers 12 can be configured with a workload 35 by virtualizing the server's resources to provide isolation between one or more processes (applications) executing on the server. "Hypervisor-based" or "hardware-level" or "platform" virtualization refers to the creation of virtual machines, each of which includes a guest operating system for executing one or more processes. Typically, a virtual machine provides a virtualized / guest operating system for executing applications in an isolated virtual environment. Because the virtual machine is virtualized from the physical hardware of the host server, the executed application is isolated from the hardware of the host and other virtual machines. Each virtual machine can be configured with one or more virtual network interfaces for communicating on a corresponding virtual network.

[0028] A virtual network is a logical structure implemented on top of a physical network. Virtual networks can be used to replace VLAN-based isolation and provide multi-tenancy in a virtualized data center, such as one of data centers 10. Each tenant or application can have one or more virtual networks. Each virtual network can be isolated from all other virtual networks unless explicitly allowed by security policy.

[0029] Virtual networks can use the data center 10 gateway router ( Figure 1 The virtual network can also be used to implement network function virtualization (NFV) and service chaining.

[0030] Virtual networks can be implemented using a variety of mechanisms. For example, each virtual network can be implemented as a virtual local area network (VLAN), a virtual private network (VPN), etc. Virtual networks can also be implemented using two networks - a physical underlying network consisting of an IP structure 20 and a switching structure 14, and a virtual overlay network. The role of the physical underlying network is to provide an "IP structure" that provides unicast IP connectivity from any physical device (server, storage device, router, or switch) to any other physical device. The underlying network can provide a unified, low-latency, non-blocking, high-bandwidth connection from any point in the network to any other point in the network.

[0031] Virtual routers (such as virtual router 21) running in server 12 use a dynamic "tunnel" grid between themselves to create a virtual overlay network on top of the physical underlying network. For example, these overlay tunnels can be MPLS tunnels over GRE / UDP, or VXLAN tunnels, or NVGRE tunnels. The underlying physical routers and switches may not store any per-tenant state (such as any media access control (MAC) addresses, IP addresses, or policies) for virtual machines or other workloads. For example, the forwarding table of the underlying physical routers and switches may only contain the IP prefix or MAC address of the physical server 12. The gateway router or switch that connects the virtual network to the physical network is an exception and may contain tenant MAC or IP addresses.

[0032] The virtual routers 21 of a server 12 typically contain per-tenant state. For example, they may contain a separate forwarding table (routing instance) for each virtual network. The forwarding table contains the IP prefixes (in the case of a layer 3 overlay) or MAC addresses (in the case of a layer 2 overlay) of the virtual machines or other workloads (such as a cocoon of a container). No single virtual router 21 needs to contain all IP prefixes or all MAC addresses of all virtual machines in the entire data center. A given virtual router 21 only needs to contain those routing instances that exist on the local server 12 (i.e., there is at least one workload on the server 12).

[0033] The server 12 hosts virtual network endpoints for one or more virtual networks that run on a physical network, represented herein by an IP fabric 20 and a switch fabric 14. Although primarily described with respect to a data center based switch network, other physical networks, such as a service provider network 7, may also serve as the basis for one or more virtual networks.

[0034] Each server 12 can host one or more workloads 35, each workload 35 having at least one virtual network endpoint for one or more virtual networks configured in the physical network. A virtual network endpoint of a virtual network can represent one or more workloads that share a virtual network interface of the virtual network. For example, a virtual network endpoint can be a virtual machine, one or more container sets (such as, a cocoon), or another other workload (such as a layer 3 endpoint of a virtual network). The term "workload" includes virtual machines, containers, and other virtualized computing resources, as well as native processes that provide at least partially independent execution environments for applications. The term "workload" may also include one or more container cocoons. As Figure 1As shown, server 12A hosts one or more virtual network endpoints as workload 35 in the form of cocoons 38A-38N (collectively, "cocoons 38") and virtual machines 36A-36N (collectively, "virtual machines 36"). Cocoon 38 may be a Kubernetes cocoon or another container deployment structure. Server 12 may host only cocoons, VMs, different numbers of cocoons and VMs, and / or may host other types of workloads.

[0035] Because of the hardware resource constraints of server 12A, server 12A can execute as much workload 35 as possible. Each virtual network endpoint can use one or more virtual network interfaces to perform packet I / O, or otherwise process packets. For example, a virtual network endpoint can use a virtual hardware component (such as an SR-IOV virtual function) enabled by NIC 13A to perform packet I / O and receive / send packets on one or more communication links with TOR switch 16A. Other examples of virtual network interfaces are described below.

[0036] The servers 12 each include at least one network interface card (NIC) 13, each of which includes at least one interface to exchange packets with the TOR switch 16 via a communication link. For example, server 12A includes NIC 13A. Any NIC 13 can provide one or more virtual hardware components 21 for virtualized input / output (I / O). The virtual hardware component for I / O can be a virtualization of a physical NIC ("physical function"). For example, in single root I / O virtualization (SR-IOV) described in the Peripheral Component Interface Special Interest Group SR-IOV specification, the PCIe physical function of a network interface card (or "network adapter") is virtualized to represent one or more virtual network interfaces as "virtual functions" for use by various endpoints executed on the server 12. In this way, virtual network endpoints can share the same PCIe physical hardware resources, and the virtual function is an example of a virtual hardware component 21. As another example, one or more servers 12 can implement Virtio, a paravirtualization framework that can be used in, for example, a Linux operating system, which provides emulated NIC functions as a virtual hardware component to provide virtual network interfaces to virtual network endpoints. As another example, one or more servers 12 may implement an open vSwitch to perform distributed virtual multilayer switching between one or more virtual NICs (vNICs) for hosted virtual machines, which vNICs may also represent a virtual hardware component that provides a virtual network interface to a virtual network endpoint. In some cases, the virtual hardware component is a virtual I / O (e.g., NIC) component. In some cases, the virtual hardware component is an SR-IOV virtual function. In some examples, any of the servers 12 may implement a Linux bridge that simulates a hardware bridge and forwards packets between the virtual network interfaces of the server, or between the virtual network interfaces of the server and the physical network interfaces of the server. For a Docker implementation of a container hosted by a server, a Linux bridge or other operating system bridge executed on the server that exchanges packets between containers may be referred to as a "Docker bridge." The term "virtual router" as used herein may include a Contrail or Tungsten Fabric virtual router, an Open vSwitch (OVS), an OVS bridge, a Linux bridge, a Docker bridge, or other device and / or software that resides on a host device and performs switching, bridging, or routing packets between virtual network endpoints of one or more virtual networks, where the virtual network endpoints are hosted by one or more servers 12.

[0037] Servers 12 each include one or more processing cores. Workloads 35 of server 12A are executed by processing core 30A according to the assignment, which is often referred to as "pinning" because the underlying processing of a given workload 35 is "pinned" to a specific core of processing core 30A, which executes the software instructions of the workload. For example, VM 36A may be pinned to a first core of processing core 30A, which executes VM 36A and any applications therein. Cocoon 38N may be pinned to a second core of processing core 30A, which executes cocoon 38N and any containerized applications therein. In the present disclosure, the processing core assigned to execute a workload may be different from the processing core assigned to handle network traffic for the workload.

[0038] One or more servers 12 may each include a separate virtual router 21 that executes one or more routing instances for a corresponding virtual network within the data center 10 to provide a virtual network interface and route packets between virtual network endpoints. Each routing instance may be associated with a network forwarding table. Each routing instance may represent a virtual routing and forwarding instance (VRF) for an Internet Protocol virtual private network (IP-VPN). For example, a packet received by the virtual router 21 of the server 12A from the underlying physical network structure (i.e., the IP structure 20 and the switching structure 14) of the data center 10 may include an outer header to allow the physical network structure to tunnel the payload or "internal packet" to the physical network address of the network interface card 13A of the server 12A executing the virtual router. The outer header may include not only the physical network address of the network interface card 13A of the server, but also a virtual network identifier, such as a VxLAN label or a multi-protocol label switching (MPLS) label that identifies one of the virtual networks and a corresponding routing instance executed by the virtual router 21. The inner packet includes an inner header having a destination network address that conforms to a virtual network addressing space of a virtual network identified by the virtual network identifier.

[0039] The virtual router 21 terminates the virtual network overlay tunnel and determines the virtual network of the received packet based on the packet-oriented tunnel encapsulation header, and forwards the packet to the appropriate destination virtual network endpoint. For example, for server 12A, for each packet outbound from a virtual network endpoint (e.g., VM 36A or cocoon 38A) hosted by server 12A, virtual router 21A appends a tunnel encapsulation header indicating the virtual network of the packet to generate an encapsulated packet or "tunnel" packet, and virtual router 21A outputs the encapsulated packet to a physical destination computing device (e.g., another device in server 12) via the overlay tunnel of the virtual network. As used herein, virtual router 21 can perform operations of a tunnel endpoint to encapsulate an internal packet initiated by a virtual network endpoint to generate a tunnel packet, and decapsulate the tunnel packet to obtain an internal packet for routing to other virtual network endpoints.

[0040] Each server 12 provides an operating environment for executing one or more application workloads 35. As described herein, the terms "application workload" or "workload" may be used interchangeably to refer to an application workload. Workloads 35 may be deployed using a virtualized environment, such as a virtual machine 36, cocoon 38, or other type of virtualized instance, or in some cases on a bare metal server that executes workload 35 directly, rather than indirectly, in a virtualized environment. Some or all of the servers 12 may be bare metal servers (BMS). A BMS may be a physical server dedicated to a particular customer or tenant.

[0041] Each workload 35 is executed by one of the processing cores 30A. That is, the processing core 30A executes the corresponding software instructions for the workload 35, and the workload 35 uses the virtual network managed in part by the controller 24 and the virtual router 21 to send and receive traffic.

[0042] Processing core 30A also executes virtual router 21A. Virtual router 21 uses processing core 30A to service the networking requirements of each workload, for example, to process (such as by routing, forwarding, or applying services) network traffic sent by or to the workload and thus associated with the workload. Different workloads 35 may be associated with different amounts of network traffic, which may also vary from time to time for each workload.

[0043] The virtual router 21A can load balance between the processing cores 30A that the virtual router 21A uses to process network traffic associated with different workloads 35. The virtual router 21 can use one or more processing cores 30A to serve the network capacity of the workload by processing the network traffic associated with the workload. The virtual router usually allocates processing cores to process the network traffic of different workloads in a round-robin manner, and the allocated processing cores continue to process the network traffic of the workload until the workload is deleted. In other words, the virtual router statically allocates the cores of the processing core 30A to process the network traffic of each workload. Traditional virtual routers can allocate network traffic processing to processing cores that are in an overloaded working state with respect to the existing load that has been allocated for the network traffic associated with the workload. In addition, some processing cores may be "hungry" for having the smallest load, and will be better equipped to handle the network capacity of the workload.

[0044] The techniques described herein provide intelligent and dynamic balancing of one or more processing cores processing network traffic for a workload. Based on a metric indicating network traffic processing associated with each workload 35, virtual router 21A selectively allocates different processing cores 30A to process network traffic for each workload 35.

[0045] In some examples, the controller 24 may receive one or more metrics 160 associated with the workload 35 and one or more metrics associated with the current utilization or load of each processing core in the processing core 30A. For each workload 35, the one or more metrics 160 may include: the number of packets or bytes sent and received in a time interval (e.g., every minute), the amount of memory used by the virtual router 21 to process the network traffic of the workload in the time interval, the cumulative number of packets or bytes sent and received, the amount of time the workload has been running, etc. The one or more metrics 160 may alternatively or additionally be based on the quantification of the processing cores 30A used by the virtual router 21 to process the network traffic of each workload. The metrics 160 may also include the current load of each processing core of the processing core 30 based on the percentage of resources of each processing core used in the time interval (e.g., every minute). The controller 24 may receive the one or more metrics from the virtual router 21A via an application programming interface (e.g., Prometheus, a telemetry interface) or via another interface.

[0046] The controller 24 may analyze one or more metrics to determine the allocation of the workload 35 to the processing core 30A. In some cases, the controller 24 may analyze one or more metrics by evaluating the current load or utilization of each processing core and determining the expected network traffic processing requirements of the workload 35. The controller 24 may also determine the expected network traffic processing requirements of the new workload to be deployed to the server 12A. The controller 24 may quantify the current load of each processing core based on the percentage of processing cores used by the virtual router 21A to process the network traffic of each workload. For example, the virtual router 21A may use 5% of the first processing core to process the network traffic of the first workload, and may use 7% of the first processing core to process the network traffic of the second workload. The controller 24 may also determine that the second processing core is not effectively utilized (i.e., "starved"). In this example, the controller 24 may determine that the virtual router 21A should use the second processing core to process the network traffic of the second workload to effectively rebalance the load between the processing cores 30A.

[0047] In other cases, the controller 24 may analyze one or more metrics 160 associated with the current load of each processing core of the processing core 30A by evaluating the current load of each processing core relative to one or more thresholds. The controller 24 may use a threshold representing the maximum allowed load of the processing core used by the virtual router 21A to process the network traffic of the workload. The controller 24 may alternatively use a threshold to classify the current load of each processing core. The controller 24 may assign a threshold for classification based on the percentage of the processing core currently being used. For example, the controller 24 may use two different thresholds to classify each processing core as a processing core with a "low load", "medium load" or "high load". If the current load of the processing core is below the low load threshold (e.g., 3% of the processing cores are currently being used), the controller 24 may classify the processing core as having a "low load". If the current load of the processing core is above the high load threshold (e.g., 25% of the CPU cores are currently being used), the controller 24 may classify the processing core as having a "high load". If the current load of the processing core is between the low load and high load thresholds, the controller 24 may classify the processing core as having a "medium load". Other thresholds at a more granular level may also be used.

[0048] Additionally or alternatively, the controller 24 may analyze one or more metrics 160 associated with the network traffic processing requirements of the workloads by evaluating the networking requirements of each workload relative to a threshold. For example, the controller 24 may classify each workload as a "low workload," "medium workload," or "high workload" using two different thresholds. If the networking requirements of the workload are below the low workload threshold, the controller 24 may classify the workload as a "low workload." If the networking requirements of the workload exceed the high workload threshold, the controller 24 may classify the workload as a "high workload." If the networking requirements of the workload are between the low workload threshold and the high workload threshold, the controller 24 may classify the workload as a "medium workload."

[0049] Once controller 24 has classified each processing core 30A based on the corresponding threshold value or thresholds, and classified each workload 35 based on the corresponding threshold value or thresholds, controller 24 can determine to which processing core 30A the workload should be reallocated (e.g., reallocating network traffic processing of a "high workload" currently allocated to a processing core with a "high load" to a processing core with a "low load"). Other thresholds at a more granular level can also be used.

[0050] In some cases, controller 24 may receive an indication of the workload of newly deployed workload 35. Based on metric 160, controller 24 may allocate network traffic processing of the newly deployed workload to one of processing cores 30A (e.g., a relatively underutilized core compared to other processing cores). Controller 24 may perform the allocation using the threshold scheme described above.

[0051] To rebalance, in response to controller 24 determining that network traffic processing of any workload 35 should be handled by a different processing core, controller 24 may instruct virtual router 21A to utilize a different processing core to process the network traffic of the workload. In some examples, controller 24 may instruct virtual router 21A to redistribute network traffic processing of workload 35 across processing cores 30 so that the load on each processing core is relatively equal. In some examples, controller 24 may instruct virtual router 21A to distribute network traffic processing of workload 35 across processing cores 30A based on processing core capacity, load, utilization, or other metrics indicating the ability of a processing core to handle additional network traffic processing load. In some examples, controller 24 may instruct virtual router 21A to redistribute network traffic processing of workload 35 across cores of processing core 30A so that controller 24 does not classify any core as having a "high load" and so that a minimum number of cores are classified as having a "low load."

[0052] To instruct virtual router 21A to allocate the determined allocation of network processing for workload 35 to the respective processing cores 30A, controller 24 may send allocation data 162 to virtual router 21A. Allocation data 162 may include a mapping of the workload to a specific one of processing cores 30A to instruct virtual router 21A to allocate network traffic processing for the workload to the processing core. Workloads in allocation data 162 may be identified using a workload identifier, name, or other identifier. Processing cores may be identified in allocation data 162 using a processor ID, a core ID, a combination thereof, or other identifiers that uniquely identify a processing core in processing core 30A. Allocation data 162 may include mappings for multiple workloads.

[0053] Controller 24 may receive one or more metrics 160, analyze one or more metrics 160, determine whether network traffic processing of the workload should be distributed to different processing cores, and instruct virtual router 21A to distribute or reallocate network traffic processing of the workload at periodic intervals (e.g., every ten minutes).

[0054] Virtual router 21A may allocate or reallocate workloads 35 according to allocation data 162 from controller 24. Virtual router 21A then services each workload 35 (ie, processes network traffic for each workload 35) using a corresponding allocated one of processing cores 30A.

[0055] In order to utilize the assigned one processing core 30A to process the network traffic of a specific workload from the workload 35, the virtual router 21A may use, for example, the following parameters: the name and identifier of the virtual router interface; one or more software queues associated with the network traffic of the workload; one or more hardware queues assigned to one or more corresponding forwarding cores of the virtual router 21A associated with the assigned processing core; and an identifier of each of the plurality of processing cores. For example, based on the assignment as described above, the network traffic of the workload (e.g., cocoon 38A or VM 36A) may be queued to a hardware queue mapped to a specific processing core along with the software queue. A thread of the virtual router 21A executing on the processing core (e.g., a forwarding core assigned by the virtual router 21A to process the corresponding hardware queue) services the software queue of the workload to process the network traffic of the workload. Other threads of the virtual router 21A may similarly operate for other processing cores to service the corresponding hardware queues of these processing cores.

[0056] The techniques described above with respect to server 12 and virtual router 21A may be applied in a similar manner in other servers 12 and by other virtual routers 21 to workloads executing on the servers based on allocations to processing cores of those servers. By allocating network traffic processing to workload 35 in a manner informed by metric 160, virtual router 21A can load balance the network processing of the workload among processing cores 30A more efficiently and effectively relative to a static round-robin allocation scheme. Dynamic rebalancing of allocations may: reduce processing core starvation (network processing load is too low) or overload (network processing load is too high); improve overall utilization; and / or reduce network processing bottlenecks that may occur due to overbooking of processing cores.

[0057] Figure 2 A block diagram of an example computing device in which examples of the techniques described herein may be implemented is shown. Computing device 200 may represent Figure 1 any server 12 or another device (e.g., any of the TOR switches 16).

[0058] In this example, the computing device 200 includes a system bus 342 that connects the hardware components of the computing device 200 hardware environment. The system bus 342 connects the memory 344, the network interface card 330, the storage disk 346, and the multi-core computing environment 102 having multiple processing cores 108A to 108J (collectively referred to as "cores 108"). The network interface card 330 includes an interface configured to exchange packets using the link of the underlying physical network. The multi-core computing environment 102 can include any number of processors and any number of hardware cores (e.g., from 4 to thousands). Each core 108 includes an independent execution unit to execute instructions that conform to the core instruction set architecture. The cores 108 can each be implemented as a separate integrated circuit (IC), or can be combined in one or more multi-core processors (or "multi-core" processors), each implemented using a single IC (i.e., a chip multiprocessor), package, or die.

[0059] Disk 346 represents a computer-readable storage medium, which includes volatile and / or non-volatile, removable and / or non-removable media implemented in any method or technology for storing information such as processor-readable instructions, data structures, process modules, or other data. Computer-readable storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), EEPROM, flash memory, CD-ROM, digital versatile disk (DVD) or other optical storage, cassettes, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by core 108.

[0060] The main memory 344 includes one or more computer-readable storage media, which may include random access memory (RAM) such as various forms of dynamic RAM (DRAM), such as DDR2 / DDR3 SDRAM, or static RAM (SRAM), flash memory, or any other form of fixed or removable storage media that can be used to execute or store desired program code and program data in the form of instructions or data structures and can be accessed by the computer. The main memory 344 provides a physical address space consisting of addressable memory locations.

[0061] In some examples, memory 344 may present a non-uniform memory access (NUMA) architecture to multi-core computing environment 102. That is, cores 108 may not have equal memory access times for the various storage media that make up memory 344. In some cases, cores 108 may be configured to use the portion of memory 344 that provides the lowest memory latency for the core to reduce overall memory latency.

[0062] In some cases, a physical address space for computer-readable storage media (i.e., shared memory) may be shared between one or more cores 108. For example, cores 108A, 108B may be connected to one or more DRAM packages, modules, and / or chips (also not shown) via a memory bus (not shown), which presents a physical address space accessible by cores 108A, 108B. Although the physical address space may provide the lowest memory access time to cores 108A, 108B for any portion of memory 344, at least some of the remaining portions of memory 344 may be directly accessed by cores 108A, 108B. One or more cores 108 may also include L1 / L2 / L3 caches or a combination thereof. The corresponding caches for cores 108 provide the lowest latency memory access to any storage media for cores 108. When rebalancing, controller 224 can apply load balancing module 252 to rebalance network traffic processing for a particular workload to a different core that has similar memory access times for the workload as the previous core (such as, from core 108A to core 108B in the above example). Load balancing module 252 incorporating this rebalancing factor (i.e., similar memory access times) can improve performance.

[0063] Memory 344, network interface card 330, storage disk 346, and multi-core computing environment 102 provide an operating environment for executing a software stack of virtual router 221 and one or more virtual machines 236A to 236N (collectively referred to as "virtual machines 236"). Virtual machines 236 may represent Figure 1The computing device 200 divides the virtual and / or physical address space provided by the main memory 344 and the virtual and / or physical address space provided by the disk 346 in the case of virtual memory into a user space 345 (assigned for running user processes) and a kernel space 314 (protected and generally inaccessible to users). An operating system kernel (not shown) can be executed in the kernel space and can include, for example, Linux, Berkeley Software Distribution (BSD), another Unix variant kernel, or a Windows server operating system core provided by Microsoft. In some cases, the computing device 200 can execute a hypervisor to manage the virtual machine 236 (also not shown). Examples of hypervisors include a kernel-based virtual machine (KVM) for the Linux kernel, Xen, ESXi provided by VMware, Windows Hyper-V provided by Microsoft, and other open source and dedicated hypervisors. In addition, the virtual machine 236 can also execute an application 237.

[0064] Cocoons 238A to 238N (collectively, "cocoons 238") may include containers 239A to 239N (collectively, "containers 239"). Container 239 may include virtualization of an operating system to run multiple isolated systems on a single machine (virtual or physical). Examples of container 239 include containers provided by the open source DOCKER container application or by CoreOSRkt ("Rocket"). Like a virtual machine, each container is virtualized and can be isolated from the host and other containers. However, unlike a virtual machine, each container can omit a separate operating system and provide an application suite and application-specific libraries. Typically, a container is executed by a host as an isolated user space instance and can share an operating system and common libraries with other containers executing on the host. Therefore, a container may require less processing power, storage, and network resources than a virtual machine. One or more container sets can be configured to share one or more virtual network interfaces for communication on corresponding virtual networks.

[0065] In some examples, containers are managed by their host kernel to allow for the limitation and prioritization of resources (CPU, memory, block I / O, network, etc.) without the need to start any virtual machines, in some cases using namespace isolation capabilities that allow for complete isolation of an application's view of the operating environment, including process trees, networks, user identifiers, and mounted file systems. In some examples, containers can be deployed in accordance with Linux Containers (LXC), which is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a control host using a single Linux kernel.

[0066] In this example, the computing device 200 of the virtual router includes a kernel space 314 module: virtual router 221, and a user space 345 module: virtual router agent 223. Virtual router 221 performs the "forwarding plane" or packet forwarding functions of the virtual router, while virtual router agent 223 performs the "control plane" functions of the virtual router. Some instances of the virtual router forwarding plane 221 can be executed in user space (e.g., as a DPDK virtual router) or on a SmartNIC. More description of virtual router agents and virtual router forwarding planes for implementing virtual routers can be found in U.S. Patent 9,571,394, issued on February 14, 2017, which is incorporated herein by reference in its entirety.

[0067] When a virtual router agent 223 of a virtual router receives an indication of a new workload to be deployed to computing device 200 , virtual router agent 223 may initially allocate a core of cores 108 to handle network traffic for the new workload (eg, cocoon 238 or virtual machine 236 ).

[0068] In this example, controller 224 may include processing circuitry 250 and load balancing module 252. Load balancing module 252 may execute on processing circuitry 250 to analyze metrics 160 and generate allocation data 162 that indicates which processing cores of core 108 virtual router 221 should use to process network traffic for a workload (e.g., VM 236 or cocoon 238).

[0069] According to the techniques described herein, the controller 224 can receive one or more metrics 160 associated with the cores 108 and with the network traffic processing of the workloads executed in the user space 345. For example, the metrics 160 may include data indicating the current load of the cores 108A to 108J and data indicating the network traffic processing requirements of the workloads 240A and 240B. The controller 224 can obtain the metrics 160 and analyze the data using the load balancing module 252. The load balancing module 252 can analyze the metrics 160 by classifying the network traffic processing requirements of each core of the cores 108 and each workload. The load balancing module 252 can also generate the allocation data 162 using the classification of the cores 108, the classification of the workloads (e.g., workloads 240A and 240B), or other means. For example, load balancing module 252 may generate allocation data 162 indicating that workload 240A (i.e., VMs 236A and 236B) should be allocated to core 108A and workload 240B (i.e., VMs 236N and cocoon 238A) should be allocated to core 108C. Load balancing module 252 may send allocation data 162 to virtual router agent 223. Virtual router agent may apply allocation data 162 to allocate or reallocate which core of core 108 is used by virtual router 221 to process network traffic for workloads 240A and 240B. In this example, based on allocation data 162, virtual router 221 may use core 108A when processing network traffic for workload 240A and use core 108C when processing network traffic for workload 240B.

[0070] The load balancing module 252 may also assign one or more cores of the cores 108 to specifically handle network traffic processing. For example, the load balancing module 252 may designate cores 108A and 108C to handle all network traffic processing for workloads executed in the user space 345. The load balancing module 252 may use the metric 160 to determine the current load of the core 108A (e.g., 2%) and the current load of the core 108C (e.g., 5%), and assign the workload 240A to the core 108A and the workload 240B to the core 108B as long as the current loads of the cores 108A and 108C do not exceed a certain threshold (e.g., 20%). If the metric 160 indicates that the cores 108A and 108C exceed the threshold, the load balancing module 252 may designate another core (e.g., core 108B) for the virtual router 221 to handle network traffic for the workloads executed on the user space 345.

[0071] In some cases, the controller 224 may generate a profile for the type of workload. The controller 224 may generate a profile based on one or more metrics associated with processing network traffic of the type of workload. In some examples, the controller 224 may apply a machine learning model trained using the metrics 160 to generate a profile based on a network traffic pattern associated with the type of workload. For example, the relevant pattern of network traffic discernible from the metrics 160 may include the amount of traffic or the periodicity of traffic (e.g., the highest traffic during the evening or weekend), which may be used to predict CPU utilization patterns by traffic also included in the metrics 160. For example, the controller 224 may learn the typical CPU core usage of various instances of the virtual router 221 used within the system based on one or more metrics 160 to process network traffic of the type of workload. The controller 224 may generate a profile for the type of workload based on its typical CPU core usage. The virtual router 221 may receive a profile for the type of workload from the controller 224.

[0072] Virtual router 221 may receive an indication of a new workload to be deployed to computing device 242, where the new workload is a type of workload with a matching profile. Virtual router 221 may distribute the workload to cores of cores 108 based on the profile of the type of workload and the current load classification or utilization of each core.

[0073] Figure 3 A block diagram illustrating example components of an example computing device 242 that executes a virtual router 221 for a virtual network according to the techniques described herein. The computing device 242 may be Figure 2 The computing device 200, or any one of the servers 12, or an example of another computing device described in the present disclosure.

[0074] The example computing device 242 includes a network interface card (NIC) 106, which is configured to direct packets received by the NIC 106 to the processing core 108A for processing. As shown, the NIC 106 receives packet streams 240A to 240C (collectively referred to as "packet streams 240") and can store the packet streams 240 to the memory 144 for final processing by the virtual router 221. Similarly, network traffic output by the workload via the virtual network interface 390 to the virtual router 221 is stored in the memory 144 for final processing by the virtual router 221.

[0075] The virtual router 221 includes a plurality of routing instances 122A to 122C (collectively referred to as "routing instances 122") for corresponding virtual machines 236A to 236K (collectively referred to as virtual machines 236). The virtual router 221 uses the routing instances 122 to process packet flows 240 originating from or destined for a particular workload 35 according to a workload allocation 382 that maps each of the workloads 35 to an allocated core in the core 108. The virtual router 221 may use a queue 380 to queue network traffic processing for the workload 35. The queue 380 may queue network traffic processing based on a mapping of the allocation of the workload 35 to the core 108 provided by the allocation 382. The virtual router agent 223 may update the allocation 382 based on the allocation data 162 to update the mapping. The allocation 382 may be based on the allocation data 162 sent by the controller 224. The allocation data 162 may be a mapping of which core in the core 108 should process the network traffic for each workload of the workload 35. As previously described, the load balancing module 252 of the controller 224 can generate allocation data 162 based on the metric 160. Further descriptions of hardware queues, DPDK, and software queues for workload interfaces (virtual interfaces) are included in U.S. Patent 2022 / 0278927 published on September 1, 2022, which is incorporated herein by reference in its entirety.

[0076] In this example, the network interface card 106 receives a packet flow 240. The network interface card 106 may store the packet flow 240 to the memory 144 for final processing by the virtual router 221 executing one or more cores 108. In this example, the packet flow 240A is destined for VM 36A, the packet flow 240B is destined for VM 36B, and the packet flow 240C is destined for cocoon 38A. The virtual router 221 may use the allocation 382 to determine which core in the core 108 will process the packet flow corresponding to each workload (e.g., VM 36A, VM 36B, and cocoon 38A). For example, the virtual router 221 may use the queue 380 to queue the packet flow 240A to be processed with the core 108A, the packet flow 240B to be processed with the core 108A, and the packet flow 240C to be processed with the core 108C. A similar process may be applied to the packet flows originating from each of the workloads.

[0077] In some cases, for example, load balancing module 252 may determine based on metric 160 that core 108B should be used to process packet flow 240B instead of core 108A because core 108A exceeds a maximum load threshold. In response to determining that core 108B should be used to process packet flow 240B, load balancing module 252 may send allocation data 162 to virtual router agent 223. Virtual router agent 223 may reconfigure allocation 382 to map network processing of VM 36B (associated with packet flow 240B) to core 108B. Virtual router 221 will apply the reconfigured allocation 382 to queue packet flow 240B to queue 380 for processing by virtual router 221 executing on core 108B.

[0078] Figure 4 A flow chart of example operations 400 of a method according to the techniques described herein is shown. A computing device may allocate network traffic processing for a workload to a first processing core of a plurality of processing cores of a second computing device based on one or more metrics indicating processing core utilization or indicating network traffic processing requirements of the workload to be executed on a second computing device (402). A virtual router may execute on the first processing core based on the allocation of processing network traffic to the workload (404). In this way, the techniques may improve the functionality of a processing core used to process network traffic for the workload.

[0079] Figure 5 A block diagram showing example components of an example computing device 500 and a virtual router for a virtual network executing a workload according to the techniques described herein. The virtual router 521 may represent Figure 3 The virtual router 521 may include a queue 580 and an allocation 582, which may represent Figure 3 The queue 580 and the allocation 382 are shown in FIG. 580. The queue 580 may include one or more forwarding cores (eg, LCORE 584A and LCORE 584B), each of which is associated with a NIC (eg, Figure 3 NIC 106) on the corresponding processing core (e.g., Figure 3 The hardware core used when processing traffic on the core 108) is associated with the hardware core used when processing traffic on the core 108).

[0080] The virtual router 521 may have forwarding cores LCORE 584A and LCORE 584B, which are associated with hardware queues assigned by a NIC connected to the virtual router and configured with a virtual router interface. When a workload (e.g., workloads 535A to E) is created, the virtual interface of the workload may have one or more software queues (e.g., software queue 537), wherein each software queue allocation 582 is allocated to the forwarding core of the virtual router 521 via allocation 582. Typically, allocation 582 allocates the forwarding cores of the assigned queues 580 to the software queues of the workload (e.g., software queue 537) in a round-robin manner. For example, the software queue Q0 of workload 535A may be allocated to LCORE 584A, the software queue Q0 of workload 535B may be allocated to LCORE 584B, the software queue Q0 of workload 535C may be allocated to LCORE 584A, the software queue Q1 of workload 535C may be allocated to LCORE 584B, and the like.

[0081] In another example, a virtual router may have assigned four forwarding cores corresponding to four hardware queues to service network traffic for multiple workloads each associated with one or more software queues. The following example of assigning software queues to forwarding cores of a virtual router is different from Figure 5 This example demonstrates how software queues are typically assigned to forwarding cores in a round-robin fashion. First, the virtual router obtains a physical function from the NIC and dispatches the same number of hardware queues (identified by hardware queue IDs) in the NIC as the number of forwarding cores (identified by LCORE) of the virtual routers (identified by the virtual router interface). In this example, the NIC has four hardware queues, which causes the virtual router to dispatch four forwarding cores, one for each hardware queue.

[0082] LCORE584C:

[0083] Virtual router interface: 0000:17:01.1 Hardware queue ID: 0

[0084] LCORE584D:

[0085] Virtual router interface: 0000:17:01.1 Hardware queue ID: 1

[0086] LCORE584E:

[0087] Virtual router interface: 0000:17:01.1 Hardware queue ID: 2

[0088] LCORE584F:

[0089] Virtual router interface: 0000:17:01.1 Hardware queue ID: 3

[0090] Second, when a workload is created or instantiated, one or more software queues (identified by SW queue IDs) for each workload (identified by workload interface) are assigned to each forwarding core of the virtual router in a round-robin manner.

[0091] LCORE584C:

[0092] Virtual router interface: 0000:17:01.1 Hardware Queue ID: 0 Workload interface: vhostnet1-XXX-a1 Software Queue ID: 0 Workload interface: vhostnet1-XXX-b1 Software Queue ID: 0 Workload interface: vhostnet1-XXX-c1 Software Queue ID: 0 Workload interface: vhostnet1-XXX-d1 Software Queue ID: 0LCORE584D:

[0093] Virtual router interface: 0000:17:01.1 Hardware Queue ID: 1 Workload interface: vhostnet1-XXX-a2 Software Queue ID: 0 Workload interface: vhostnet1-XXX-b1 Software Queue ID: 1 Workload interface: vhostnet1-XXX-c2 Software Queue ID: 0 Workload interface: vhostnet1-XXX-d2 Software Queue ID: 0 LCORE584E:

[0094] Virtual router interface: 0000:17:01.1 Hardware queue ID: 2 Workload interface: vhostnet1-XXX-a3 Software queue ID: 0 Workload interface: vhostnet1-XXX-b1 Software queue ID: 2 Workload interface: vhostnet1-XXX-c2 Software queue ID: 1 LCORE584F:

[0095] Virtual router interface: 0000:17:01.1 Hardware queue ID: 3

[0096] Workload interface: vhostnet1-XXX-a3 Software queue ID: 1

[0097] Workload interface: vhostnet1-XXX-b2 Software queue ID: 0

[0098] Workload interface: vhostnet1-XXX-c2 Software queue ID: 2

[0099] However, when workloads are created and / or deleted, the forwarding core of virtual router 21A may become unbalanced because virtual router 21A does not actively redistribute the software cores of the workloads to the forwarding cores. For example, a workload with workload interfaces of vhostnet1-XXX-a3, vhostnet1-XXX-b2, and vhostnet1-XXX-c2 may be deleted, and a workload with workload interface of vhostnet1-XXX-e1 may be created using only one software queue, which results in the following:

[0100] LCORE584C:

[0101] Virtual router interface: 0000:17:01.1 Hardware queue ID: 0

[0102] Workload interface: vhostnet1-XXX-a1 Software queue ID: 0

[0103] Workload interface: vhostnet1-XXX-b1 Software queue ID: 0

[0104] Workload interface: vhostnet1-XXX-c1 Software queue ID: 0

[0105] Workload interface: vhostnet1-XXX-d1 Software queue ID: 0

[0106] LCORE584D:

[0107] Virtual router interface: 0000:17:01.1 Hardware queue ID: 1

[0108] Workload interface: vhostnet1-XXX-a2 Software queue ID: 0

[0109] Workload interface: vhostnet1-XXX-b1 Software queue ID: 1

[0110] Workload interface: vhostnet1-XXX-c2 Software queue ID: 0

[0111] Workload interface: vhostnet1-XXX-d2 Software queue ID: 0

[0112] LCORE584E:

[0113] Virtual router interface: 0000:17:01.1 Hardware queue ID: 2

[0114] Workload interface: vhostnet1-XXX-b1 Software queue ID: 2

[0115] Workload interface: vhostnet1-XXX-c2 Software queue ID: 1

[0116] Workload interface: vhostnet1-XXX-e1 Software queue ID: 0

[0117] LCORE584F:

[0118] Virtual router interface: 0000:17:01.1 Hardware queue ID: 3

[0119] This example demonstrates how the dynamic nature of removing and creating workloads can lead to an uneven distribution of software queues to forwarding cores. Here, no software queues are assigned to LCORE584F, while LCORE584C and LCORE584D are assigned four software queues. If the assignment of software queues to forwarding queues continues in a round-robin fashion, the unequal distribution of software queues to forwarding cores may never be resolved.

[0120] According to the techniques of the present disclosure, since workloads can be dynamically created or deleted, it may be necessary to readjust the queue allocation to the forwarding core. In some cases, an external controller (e.g., Figure 3 The controller 224 may periodically, or in response to one or more workloads being created or deleted, obtain a metric (e.g., Figure 3 160). In this example, the metric may include the allocation of software queues to the forwarding cores of the virtual router and a reference to which forwarding core the newly created software core is assigned. In the example above, the metric may include a reference to the allocation of the next software queue to LCORE 584F because the last software queue (i.e., software queue ID of workload interface: 0:vhostnet1-XXX-e1) was assigned to LCORE 584E. The external controller may determine that the allocation of software queues to the forwarding cores may need to be reallocated to ensure that subsequent round-robin allocations of software queues to the forwarding cores result in the same number of software queues allocated to each forwarding core for each given cycle of the round-robin allocation (i.e., before a new software queue is assigned to the first assigned forwarding core or after a new software queue is assigned to the last assigned forwarding core). In this case, the external controller may send the allocation data (e.g., Figure 3 The allocation data 162) is used to instruct the virtual router to reallocate the software queues to the forwarding cores, as shown below:

[0121] LCORE584C:

[0122] Virtual router interface: 0000:17:01.1 Hardware queue ID: 0

[0123] Workload interface: vhostnet1-XXX-a1 Software queue ID: 0

[0124] Workload interface: vhostnet1-XXX-b1 Software queue ID: 0

[0125] Workload interface: vhostnet1-XXX-c1 Software queue ID: 0

[0126] LCORE584D:

[0127] Virtual router interface: 0000:17:01.1 Hardware queue ID: 1

[0128] Workload interface: vhostnet1-XXX-a2 Software queue ID: 0

[0129] Workload interface: vhostnet1-XXX-b1 Software queue ID: 1

[0130] Workload interface: vhostnet1-XXX-c2 Software queue ID: 0

[0131] LCORE584E:

[0132] Virtual router interface: 0000:17:01.1 Hardware queue ID: 2

[0133] Workload interface: vhostnet1-XXX-b1 Software queue ID: 2

[0134] Workload interface: vhostnet1-XXX-c2 Software queue ID: 1

[0135] Workload interface: vhostnet1-XXX-e1 Software queue ID: 0

[0136] LCORE584F:

[0137] Virtual router interface: 0000:17:01.1 Hardware queue ID: 3

[0138] Workload interface: vhostnet1-XXX-d1 Software queue ID: 0

[0139] Workload interface: vhostnet1-XXX-d2 Software queue ID: 0

[0140] In other cases, the external controller may send allocation data to instruct the virtual router to allocate resources based on periodically obtained metrics (e.g., Figure 3 160 in), reallocate software queues to forwarding queues. For example, the metric may include: a workload with a vhostnet1-XXX-b1 workload interface may generate more traffic than other workloads and require a large amount of processing power. In this example, the external controller may obtain a metric indicating that the workload with workload interface vhostnet1-XXX-b1 has a greater processing requirement than other workloads. In response to the external controller obtaining a metric indicating that the workload with workload interface vhostnet1-XXX-b1 has a greater processing requirement than other workloads, the external controller may send allocation data to the virtual router agent to instruct the virtual router to reallocate software queues for the workload with workload interface vhostnet1-XXX-b1 to the LCORE 584F to balance the processing requirements of each workload across each hardware queue.

[0141] LCORE584C:

[0142] Virtual router interface: 0000:17:01.1 Hardware queue ID: 0

[0143] Workload interface: vhostnet1-XXX-a1 Software queue ID: 0

[0144] Workload interface: vhostnet1-XXX-c1 Software queue ID: 0

[0145] Workload interface: vhostnet1-XXX-d1 Software queue ID: 0

[0146] LCORE584D:

[0147] Virtual router interface: 0000:17:01.1 Hardware queue ID: 1

[0148] Workload interface: vhostnet1-XXX-a2 Software queue ID: 0

[0149] Workload interface: vhostnet1-XXX-c2 Software queue ID: 0

[0150] Workload interface: vhostnet1-XXX-d2 Software queue ID: 0

[0151] LCORE584E:

[0152] Virtual router interface: 0000:17:01.1 Hardware queue ID: 2

[0153] Workload interface: vhostnet1-XXX-c2 Software queue ID: 1

[0154] Workload interface: vhostnet1-XXX-e1 Software queue ID: 0

[0155] LCORE584F:

[0156] Virtual router interface: 0000:17:01.1 Hardware queue ID: 3

[0157] Workload interface: vhostnet1-XXX-b1 Software queue ID: 0

[0158] Workload interface: vhostnet1-XXX-b1 Software queue ID: 1

[0159] Workload interface: vhostnet1-XXX-b1 Software queue ID: 2

[0160] Typically, the external controller (e.g. Figure 3 Any operation of the controller 224) can be performed by a virtual router (e.g., Figure 3 virtual router 221), virtual router proxy (e.g., Figure 3 This may be accomplished using a virtual router proxy 223) or any other server component included in the technology described herein.

[0161] The techniques described herein, including any of the foregoing, 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 separate but interoperable logic devices or other hardware devices. In some cases, various features of the electronic circuitry may be implemented as one or more integrated circuit devices, such as an integrated circuit chip or chipset.

[0162] 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 technology may be implemented at least in part by a computer-readable data storage medium including 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 that are executed by a processor.

[0163] The computer-readable medium may form part of a computer program product, which may include packaging materials. The computer-readable medium 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.

[0164] In some examples, computer-readable storage media may include non-transitory media. The term "non-transitory" may mean that the storage medium is not contained in a carrier wave or propagating signal. In some examples, non-transitory storage media may store data that may change over time (e.g., in RAM or cache).

[0165] The code or instructions may be software and / or firmware executed by a processing circuit that includes 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 (FPGAs), or other equivalent integrated 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. In addition, in some aspects, the functionality described in the present disclosure may also be provided in software modules or hardware modules.

Claims

1. A computer networking method, comprising: allocating, by the first computing device, network traffic processing of the workload to a first processing core among a plurality of processing cores of the second computing device based on one or more metrics indicative of processing core utilization or indicative of network traffic processing requirements of the workload to be executed on the second computing device; as well as Network traffic of the workload is processed based on the allocation by a virtual router executed on the first processing core.

2. The computer networking method according to claim 1, wherein: The first computing device includes one of the following: a controller for a network of servers, the network for servers comprising the second computing device, or the second computing device.

3. The computer networking method according to claim 1, wherein: The workload is to be executed on a second processing core different from the first processing core.

4. The computer networking method according to claim 1, further comprising: The one or more metrics are received by the first computing device and from the virtual router.

5. The computer networking method according to claim 1, further comprising: determining, by the first computing device, whether the virtual router should utilize a different second processing core to process network traffic of the workload based on the additional one or more metrics; In response to the first computing device determining that the virtual router should utilize the second processing core to process network traffic of the workload, the first computing device assigning network traffic processing of the workload to the second processing core; as well as Network traffic of the workload is processed by the virtual router executed on the second processing core based on allocation to the second processing core.

6. The computer networking method according to claim 1, wherein: The allocation by the first computing device is performed at periodic intervals.

7. The computer networking method according to claim 1, wherein: The one or more metrics include one or more of the following: a number of packets sent in a time interval from each of a plurality of workloads, the plurality of workloads including the workload; a number of packets received by each of the plurality of workloads in the time interval; a number of bytes of network traffic used by the virtual router to process each of the plurality of workloads during the time interval; and A processing core utilization of each of the plurality of processing cores during the time interval.

8. The computer networking method according to any one of claims 1 to 7, further comprising: classifying, by the first computing device, each of a plurality of workloads based on a first set of thresholds associated with networking requirements of the plurality of workloads, the plurality of workloads including the workload; classifying, by the first computing device, each of the plurality of processing cores based on a second set of thresholds associated with processing core utilization of the plurality of processing cores; as well as The first computing device determines whether network traffic processing of the workload should be allocated to a different second processing core based on the classification of each of the plurality of workloads and the classification of each of the plurality of processing cores.

9. The computer networking method according to claim 8, wherein: The first set of thresholds includes a low workload threshold and a high workload threshold, and wherein classifying each of the plurality of workloads further includes: assigning, by the first computing device, a low workload classification to workloads having metric values ​​below the low workload threshold; Assigning, by the first computing device, a medium workload classification to workloads having metric values ​​above the low workload threshold and below the high workload threshold; and A high workload classification is assigned, by the first computing device, to workloads having metric values ​​above the high workload threshold.

10. The computer networking method according to claim 8, wherein: The second set of thresholds includes a low load threshold and a high load threshold, and wherein classifying each of the plurality of processing cores further comprises: assigning, by the first computing device, a low load classification to processing cores having metric values ​​below the low load threshold; assigning, by the first computing device, a medium load classification to processing cores having metric values ​​above the low load threshold and below the high load threshold; and A high load classification is assigned, by the first computing device, to processing cores having metric values ​​above the high load threshold.

11. The computer networking method according to any one of claims 1 to 7, further comprising: generating, by the first computing device, a configuration file for the type of workload based on networking requirements of the type of workload; as well as A new workload of the type of the workload is allocated to the first processing core by the first computing device based on the configuration file.

12. The computer networking method according to claim 11, wherein: Generating, by the first computing device, a profile for the workload includes applying a machine learning model, wherein the machine learning model is trained to predict networking requirements for a workload that is a type of workload associated with the profile.

13. The computer networking method according to any one of claims 1 to 7, further comprising: allocating, by the virtual router, a queue to the first processing core; queuing the network traffic of the workload to the queue based on allocating the processing of the network traffic of the workload to the first processing core; as well as Before processing the network traffic of the workload, the network traffic of the workload is obtained based on the queue.

14. A computing system comprising a processing circuit capable of accessing a storage device, the processing circuit being configured to: allocating network traffic processing of the workload to a first processing core among a plurality of processing cores of the computing device based on one or more metrics indicative of processing core utilization or indicative of network traffic processing requirements of the workload to be executed on the computing device; Based on the allocation, a virtual router of the computing device is instructed to execute on the first processing core to process network traffic of the workload.

15. The system of claim 14, wherein: The processing circuit is further configured to: The one or more metrics are received from the virtual router.

16. The system of claim 14, wherein: The processing circuit is further configured to: determining, based on the additional one or more metrics, whether the virtual router should utilize a different second processing core to process network traffic for the workload; in response to determining that the virtual router should utilize a different second processing core to process network traffic of the workload, reallocating network traffic processing of the workload to the second processing core; as well as Based on the reallocation to the second processing core, the virtual router of the computing device is instructed to execute on the second processing core to process network traffic of the workload.

17. The system of claim 14, wherein: The processing circuitry is configured to distribute network traffic processing of the workload executing on the computing device at periodic intervals.

18. A system according to any one of claims 14 to 17, wherein: The processing circuit is further configured to: generating a profile for the type of workload based on networking requirements for the type of workload; and A new workload of the type of the workload is allocated to the first processing core based on the profile.

19. The system of claim 18, wherein: The processing circuit is further configured to: Using machine learning models to predict networking requirements for types of workloads; and A profile for the type of workload is generated based on the prediction of the networking requirements for the type of workload.

20. A computing device comprising a processing circuit capable of accessing a storage device, the processing circuit being configured to: Get allocation data, where The allocation data is based on one or more metrics indicative of processing core utilization or indicative of network traffic processing requirements of a workload to be executed on the computing device, and wherein the allocation data maps the workload to a first processing core of a plurality of processing cores of the computing device; and Network traffic of the workload is processed based on the mapping by a virtual router executing on the first processing core.