Routing task processing method and apparatus, computer device and storage medium

By splitting routing computing tasks into topology computing tasks and graph computing tasks, and distributing parallel processing in edge cloud technology, the problem of slow processing speed and low efficiency of routing computing tasks caused by the large number of edge nodes is solved, and high efficiency is achieved. Route calculation and networking.

WO2024199357A1PCT designated stage expired Publication Date: 2024-10-03BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/084414
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-28
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In edge cloud technology, when there are a large number of edge nodes or the same node triggers multiple route calculation tasks, the processing speed of route calculation tasks is too slow and inefficient, and there are problems of race conditions and wide-ranging errors.

Method used

By splitting routing calculation tasks into topology calculation tasks and graph calculation tasks, and scheduling them to different routing calculation instances for processing, distributed parallel computing is achieved, avoiding race conditions and reducing the scope of fault impact.

Benefits of technology

Significantly improves the processing speed and efficiency of routing calculation tasks, ensuring the ultimate consistency of routing calculation results and the reliability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084414_03102024_PF_FP_ABST
    Figure CN2024084414_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure is able to provide a routing task processing method and apparatus, a computer device, and a storage medium. The routing task processing method comprises: receiving a networking request, and creating a topology computing task according to the networking request; scheduling the topology computing task to a first routing instance, and executing the topology computing task using the first routing instance, to obtain a topology set comprising multiple first edge boundary routing tables; determining multiple graph computing tasks corresponding one-to-one with the multiple first edge boundary routing tables, scheduling the multiple graph computing tasks to multiple corresponding second routing instances, respectively, and executing the graph computing tasks using the second routing instances; updating the first edge boundary routing tables into second edge boundary routing tables according to the execution results of the graph computing tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for processing routing calculation tasks, computer equipment, and storage medium

[0001] This application is based on the Chinese application with application number 202310343118.3 and application date March 31, 2023, and claims its priority. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0002] The present disclosure relates to the field of edge cloud technology, and more specifically, to a method and apparatus for processing routing computing tasks, a computer device, and a storage medium. Background Art

[0003] Edge cloud technology is a cloud platform built on edge infrastructure based on cloud computing and edge computing technologies. The edge network involved in edge cloud technology can provide users with local and / or cross-domain interconnection of multiple edge nodes to provide optimal network services. Edge network solutions, such as VPC (Virtual Private Cloud) solutions, focus on calculating routing information forwarded by each edge node.

[0004] In the related art, a common solution is for a central controller to perform routing calculations based on routing calculation task priorities or time sequence to obtain routing information forwarded by each edge node.

[0005] However, when there are a large number of edge nodes or the same edge node triggers multiple routing calculation tasks at the same time, the related technology may easily lead to problems such as slow routing calculation task processing speed and low routing calculation task processing efficiency.

[0006] Summary of the Invention

[0007] To address the problems of slow processing speed and low efficiency of routing calculation tasks in related technologies, the present disclosure provides a method and device, computer equipment, and storage medium for processing routing calculation tasks, so as to achieve the purposes of improving the processing speed and efficiency of routing calculation tasks.

[0008] To achieve the above technical objectives, the present disclosure provides a method for processing routing calculation tasks, wherein the routing calculation tasks include topology calculation tasks and graph calculation tasks; the method includes: receiving a networking request, and creating a topology calculation task according to the networking request; scheduling the topology calculation task to a first routing calculation instance, and executing the topology calculation task using the first routing calculation instance to obtain an edge boundary routing table topology set; the topology set includes multiple first edge boundary routing tables; determining multiple graph calculation tasks corresponding to the multiple first edge boundary routing tables, and scheduling the multiple graph calculation tasks to corresponding multiple second routing calculation instances, respectively, and executing the graph calculation tasks using the second routing calculation instances; updating the first edge boundary routing table to a second edge boundary routing table according to the execution result of the graph calculation task, and the routing calculation task is used to determine the second edge boundary routing table used for networking.

[0009] To achieve the above technical objectives, the present disclosure also provides a device for processing routing calculation tasks, wherein the routing calculation tasks include topology calculation tasks and graph calculation tasks; the device includes: a task creation module, used to receive a networking request and create a topology calculation task based on the networking request; a first scheduling module, used to schedule the topology calculation task to a first routing calculation instance and use the first routing calculation instance to execute the topology calculation task to obtain an edge boundary routing table topology set; the topology set includes multiple first edge boundary routing tables; a second scheduling module, used to determine multiple graph calculation tasks corresponding to the multiple first edge boundary routing tables and respectively schedule the multiple graph calculation tasks to the corresponding multiple second routing calculation instances, and use the second routing calculation instances to execute the graph calculation tasks; a routing table update module, used to update the first edge boundary routing table to a second edge boundary routing table based on the execution result of the graph calculation task, and the routing calculation task is used to determine the second edge boundary routing table used for networking.

[0010] To achieve the above technical objectives, the present disclosure may also provide a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the method for processing routing calculation tasks in any embodiment of the present disclosure.

[0011] To achieve the above technical objectives, the present disclosure can also provide a storage medium storing computer-readable instructions, characterized in that when the computer-readable instructions are executed by one or more processors, the one or more processors execute the method for processing routing calculation tasks in any embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG1 is a flow chart showing a method for processing routing calculation tasks in one or more embodiments of the present disclosure.

[0013] FIG2 shows a schematic diagram of a process for creating a topology calculation task according to a networking request in one or more embodiments of the present disclosure.

[0014] FIG3 shows a schematic diagram of a process of executing a topology calculation task by using a first routing calculation instance in one or more embodiments of the present disclosure.

[0015] FIG4 shows a schematic diagram of a process of constructing a topology set by using multiple third edge boundary routing tables in one or more embodiments of the present disclosure.

[0016] FIG5 is a schematic diagram showing the processing flow of topology computing tasks and graph computing tasks in one or more embodiments of the present disclosure.

[0017] FIG6 shows a schematic diagram of a process for performing asynchronous task scheduling based on a routing calculation instance in one or more embodiments of the present disclosure.

[0018] FIG7 is a schematic diagram showing a process of processing a topology calculation task in one or more embodiments of the present disclosure.

[0019] FIG8 is a schematic diagram showing the implementation principle of updating the edge border routing table of an edge node in one or more embodiments of the present disclosure.

[0020] FIG9 shows a schematic diagram of a virtual private cloud networking view from the perspective of an underlying network element in one or more embodiments of the present disclosure.

[0021] FIG10 shows a schematic diagram of a virtual private cloud networking view from a user's perspective in one or more embodiments of the present disclosure.

[0022] FIG11 shows a schematic structural diagram of an apparatus for processing routing computation tasks in one or more embodiments of the present disclosure.

[0023] FIG12 shows a schematic diagram of the internal structure of a computer device in one or more embodiments of the present disclosure. DETAILED DESCRIPTION

[0024] In the related art, when there are a large number of edge nodes, the serial routing calculation method adopted causes the routing calculation speed to drop rapidly, that is, the routing calculation task processing speed is too slow; when the same edge node triggers multiple routing calculation tasks at the same time, in order to avoid the occurrence of race conditions, multiple routing calculation tasks need to be queued, which seriously affects the routing calculation efficiency; in addition, in the related art, any error or failure in a certain routing calculation process will cause the entire routing calculation task to be retried, and the error has a wide impact range.

[0025] In view of this, the present disclosure provides a method and apparatus for processing routing computing tasks, a computer device, and a storage medium to effectively solve at least one problem existing in the related art.

[0026] As shown in FIG1 , one or more embodiments of the present disclosure provide a method for processing routing calculation tasks, where routing calculation tasks include topology calculation tasks and graph calculation tasks.

[0027] The method for processing the routing calculation task may include but is not limited to steps S101 to S104, which are described in detail below.

[0028] Step S101: receiving a networking request and creating a topology calculation task according to the networking request.

[0029] There may be one or more topology calculation tasks.

[0030] Step S102: dispatching a topology calculation task to a first routing calculation instance, and executing the topology calculation task using the first routing calculation instance to obtain an edge boundary routing table topology set; the topology set includes a plurality of first edge boundary routing tables.

[0031] For multiple topology calculation tasks, the multiple topology calculation tasks are dispatched one by one to multiple first routing calculation instances. The topology calculation task is a single task, and the execution result involves all EBRs of the route change. The edge boundary routing table topology set can specifically be an EBR topology list.

[0032] The EBR involved in the embodiments of the present disclosure refers to an Edge Border Router, and the edge border routing table refers to an EBR routing table.

[0033] Step S103: determine a plurality of graph computing tasks corresponding to the plurality of first edge boundary routing tables, and respectively schedule the plurality of graph computing tasks to the corresponding plurality of second routing computing instances, and use the second routing computing instances to execute the graph computing tasks.

[0034] For each first edge boundary routing table in the edge boundary routing table topology set, a graph computing task is submitted accordingly. A complete routing computing task is a graph computing task (eg, a DAG (Directed Acyclic Graph) Task) used to update a single EBR routing table.

[0035] Step S104: updating the first edge boundary routing table to a second edge boundary routing table according to the execution result of the graph computing task. The routing computing task is used to determine the second edge boundary routing table used in the networking.

[0036] Thus, the embodiment of the present disclosure obtains the latest routing configuration, that is, the second edge boundary routing table used in the networking and the routing entries contained in the second edge boundary routing table.

[0037] Based on the scheduling of topology calculation tasks and graph calculation tasks respectively, the embodiment of the present disclosure realizes distributed parallel calculation of routing between multiple edge nodes, and effectively solves the problem of queuing multiple routing calculation tasks to avoid competition, thereby avoiding the competition problem caused by re-entrant calculation at a single node granularity, and thus ensuring the final consistency of the routing calculation results. The embodiment of the present disclosure significantly improves the overall routing calculation performance, accelerates the routing calculation speed, and improves the efficiency of edge network networking.

[0038] As shown in FIG. 2 , in an optional embodiment of the present disclosure, creating a topology calculation task according to a networking request includes but is not limited to steps S201 and S202 .

[0039] Step S201: Determine an edge interconnection instance allocated for a networking request, where the edge interconnection instance is used to configure a private network for the networking request.

[0040] The edge interconnection instance involved in this disclosure does not have a location attribute and does not belong to a specific edge node. It is a carrier for interconnection between edge node VPCs, and the routes of multiple VPC instances added to the same edge interconnection instance are automatically connected.

[0041] Step S202: Create a topology calculation task corresponding to the edge interconnection instance.

[0042] The topology calculation task is used to determine a topology set including a plurality of first edge boundary routing tables under the current edge interconnection instance.

[0043] The above-mentioned embodiment of the present disclosure determines the edge interconnection instance allocated to the networking request based on the networking request, thereby ensuring that the networking process covers all relevant edge boundary routing tables and improving the reliability of the networking.

[0044] As shown in FIG. 3 , and in combination with FIG. 7 , in an optional embodiment of the present disclosure, a topology calculation task is performed using a first routing calculation instance, including but not limited to steps S301 to S303 .

[0045] Step S301: traverse each third edge border routing table in the edge interconnection instance.

[0046] For the edge interconnection instance corresponding to the networking request, this embodiment first obtains all EBR routing tables in the edge interconnection instance, such as EBR:A, EBR:B, EBR:C, etc.

[0047] Step S302 : determining routing forwarding information from each third edge border routing table to the private network, the routing forwarding information indicating whether the routing type between the third edge border routing table and the edge border routing table in the private network is a direct connection type or a relay type.

[0048] The direct connection type can be expressed as source EBR→destination EBR, and the relay type can be expressed as source EBR→relay EBR→destination EBR.

[0049] This embodiment traverses each EBR routing table in the edge interconnection instance, and obtains a route from each EBR routing table to the private network based on whether the routing type is a direct connection type or a relay type.

[0050] Step S303: Based on the routing forwarding information, a topology set is constructed using a plurality of third edge boundary routing tables, and the third edge boundary routing table used for constructing the topology set is used as the first edge boundary routing table.

[0051] The topology set can represent the topological relationship between multiple third edge boundary routing tables. For example, based on the above example, it can be represented as {EBR:A, EBR:B, EBR:C}.

[0052] The embodiment of the present disclosure constructs multiple third edge boundary routing tables to construct a topology set based on a routing policy with a direct connection type or a relay type. This approach can improve the integrity and accuracy of the topology set construction.

[0053] In this embodiment, the third edge border routing table, whose routing type with the edge border routing table in the private network is a direct connection type, is directly added to the topology set without additional processing.

[0054] As shown in FIG4 , in an optional embodiment of the present disclosure, a topology set is constructed using multiple third edge boundary routing tables based on routing forwarding information, including but not limited to steps S401 to S403 .

[0055] In step S401, a third edge border routing table having a relay type of routing between the edge border routing table in the private network is divided into a first routing table and a second routing table, wherein the first routing table is a routing table associated with the edge interconnection instance, and the second routing table is a routing table not associated with the edge interconnection instance.

[0056] The first routing table and the second routing table involved are both third edge boundary routing tables, and this embodiment specifically differentiates them. The first routing table can be directly added to the topology set without additional processing.

[0057] Step S402: Create a corresponding third routing table associated with the edge interconnect instance according to the second routing table.

[0058] The embodiment of the present disclosure indirectly associates the second routing table with the edge interconnection instance by creating a third routing table corresponding to the second routing table. If the forwarding device in the region corresponding to the second routing table is not registered, an error is returned.

[0059] Step S403: construct a topology set using the first routing table, the third routing table, and the third edge border routing table whose routing type with the edge border routing table in the private network is a direct connection type; wherein the second edge border routing table in the topology set is added as the first edge border routing table.

[0060] The above-mentioned embodiment of the present disclosure implements the addition of the third edge boundary routing table with routing types of direct connection type and relay type to the topology set, ensuring that the topology set covers all EBRs under the edge interconnection instance, and ensuring that the topology calculation task execution process of this embodiment is complete, reliable and effective.

[0061] As shown in Figure 5, in an optional embodiment of the present disclosure, a second routing calculation instance is used to execute a graph computing task, including: calculating the full routes of multiple first edge boundary routing tables corresponding to multiple graph computing tasks one by one, and obtaining a full routing calculation result; the execution result of the graph computing task includes the full routing calculation result.

[0062] Among them, (1) if the target version of EBR differs from the current version by 1, the full route is calculated and written to Redis in KV format, and the current version + 1 is written to the MySQL (relational database management system) db (data block), and then returns; (2) if the target version of EBR differs from the current version by 2, wait until the difference between the two versions is 1, and then perform the above step (1); (3) if the target version of EBR differs from the current version by more than 2, exit directly because there is a waiting state in the above (2), and no additional calculation is required.

[0063] In the embodiment of the present disclosure, the obtained full routing calculation result can be written into Redis (remote dictionary service) in a preset format, wherein the preset format can be, for example, KV format (source code file format written in Kivy language).

[0064] The above-mentioned embodiments of the present disclosure can realize the determination of the full route of each first edge boundary routing table, and the failure of the full route calculation process in the entire graph computing task will not affect other processes.

[0065] As shown in Figure 5, in an optional embodiment of the present disclosure, using the second routing calculation instance to execute the graph computing task also includes: updating the target version field values ​​in multiple first edge boundary routing tables respectively to obtain updated version field values; the execution result of the graph computing task includes the updated version field value.

[0066] The first edge boundary routing table disclosed herein has a current version field and a target version field. In this embodiment, the target version field value can be increased by 1 to obtain a new target version field value, ie, an updated version field value.

[0067] The above-mentioned embodiments of the present disclosure can determine the target version field value of each first edge boundary routing table, and a failure in the target version field value update process in the entire graph computing task will not affect other processes.

[0068] As shown in Figure 5, in an optional embodiment of the present disclosure, using the second routing calculation instance to execute the graph computing task also includes: according to the full route corresponding to the target version field value and the full route corresponding to the updated version field value, the incremental routes of multiple first edge boundary routing tables corresponding to multiple graph computing tasks are calculated one by one to obtain incremental routing calculation results; the execution result of the graph computing task includes the incremental routing calculation result.

[0069] In this embodiment, the incremental route is calculated based on the difference between the full route of the updated target version and the full route of the previous version.

[0070] The above-mentioned embodiments of the present disclosure can realize the determination of the incremental routing of each first edge boundary routing table, and furthermore, a failure of the incremental routing calculation process in the entire graph computing task will not affect other processes.

[0071] As shown in Figure 5, in an optional embodiment of the present disclosure, using a second routing calculation instance to execute a graph computing task also includes: detecting routing conflicts of multiple first edge boundary routing tables corresponding one-to-one to multiple graph computing tasks to obtain routing conflict detection results; the execution results of the graph computing task include routing conflict detection results.

[0072] This embodiment detects routing conflicts. If routing conflicts are detected, the routing entry state is set to a conflict state; otherwise, the routing entry state is set to a normal state.

[0073] The above-mentioned embodiments of the present disclosure can realize the determination of routing conflicts in each first edge boundary routing table, and furthermore, a failure in the routing conflict detection process in the entire graph computing task will not affect other processes.

[0074] Based on the version field value update process, route conflict detection process, full route calculation process, and incremental route calculation process, the above-mentioned embodiments of the present disclosure achieve fine-grained segmentation of the route calculation process, realize task decomposition, and achieve the goals of optimizing the impact range of fault retry and reducing the rollback surface.

[0075] As shown in Figure 5, in an optional embodiment of the present disclosure, the method for processing routing calculation tasks also includes: if an exception occurs in any process of topology calculation task execution, full routing calculation, version field value update, incremental routing calculation, and routing conflict detection, the process in which the exception occurs is re-executed.

[0076] Among them, abnormal situations include but are not limited to abnormalities or failures of routing calculation instances, task execution return errors, etc.

[0077] The present disclosure re-executes the process where an exception occurs, including a rescheduling process, which is a process of scheduling the process where an exception occurs to a new routing calculation instance for processing. When an exception occurs in the topology calculation task execution process, the topology calculation task execution process is re-executed; when an exception occurs in the full routing calculation process, the full routing calculation process is re-executed; when an exception occurs in the version field value update process, the version field value update process is re-executed; when an exception occurs in the incremental routing calculation process, the incremental routing calculation process is re-executed; when an exception occurs in the routing conflict detection process, the routing conflict detection process is re-executed.

[0078] Compared to conventional solutions where any error or failure in a route calculation process results in a retry of the entire route calculation task, the above-described embodiments of the present disclosure significantly reduce the scope of error impact and further improve the efficiency of route calculation task processing. If a failure occurs on the node used to deploy the first route calculation instance or the node on which the first route calculation instance is deployed, the present disclosure ensures the integrity and validity of the route calculation task processing results through the above-described abnormal rescheduling method.

[0079] As shown in FIG5 , a routing calculation model based on the present disclosure is provided. The topology calculation task involved in the present disclosure is a single task (Simple Task), and its execution result is all EBRs involved in the routing change, for example, {EBR:A, EBR:B, EBR:C} shown in the figure, but of course it is not limited to this.

[0080] As described above, the present disclosure decomposes each graph computing task into the version field value update phase (A1), the routing conflict detection phase (A2), the full routing calculation phase (A3), and the incremental routing calculation phase (A4), and summarizes the task status.

[0081] As shown in Figure 6, the networking request in this embodiment is an API (Application Programming Interface) request. This embodiment dispatches the received networking request to a routing calculation instance (e.g., routing calculation instance 1, routing calculation instance 2, ... routing calculation instance n) through load balancing. Routing calculation instances can be horizontally scaled. When computing pressure is high, capacity expansion instances can be used to resolve computing resource bottlenecks.

[0082] The intermediate states and final results of the calculations of each task in this embodiment are stored by MySQL (relational database management system) / Redis (remote dictionary service).

[0083] In conjunction with Figure 7, a detailed flowchart for processing a topology calculation task is provided. This embodiment determines and obtains the version number of the edge interconnect instance assigned to the networking request based on the received networking request, thereby determining the edge interconnect instance assigned to the networking request. All EBR instances under the edge interconnect instance are then obtained. All EBR instances may include each of the aforementioned third edge border routing tables. Each third edge border routing table in the edge interconnect instance is traversed by traversing all EBR instances under the edge interconnect instance.

[0084] Then, determine whether the routing type between the third edge border routing table and the edge border routing table in the private network is a direct connection type. If yes, continue traversing; if not, execute steps S401 to S403 in Figure 4 to add the relay node to the topology set.

[0085] After the traversal is complete, a topologically complete EBR topology list is obtained, that is, an edge boundary routing table topology set is obtained. After obtaining the topologically complete EBR topology list, this embodiment uses MySQL optimistic locking to update the EIC (edge ​​interconnect) instance version number, for example, version + 1 (version number plus 1), and then determines whether the version number is updated successfully. If the update is successful, the topologically complete EBR topology list is output. If the update fails, the process returns to the above step of obtaining the version number of the edge interconnect instance assigned to the networking request.

[0086] As shown in Figure 8, the execution entity of the method for processing routing calculation tasks provided by the present disclosure can be an edge interconnection (EIC) core controller, which can be connected to a control platform through an intranet. The control platform is, for example, a Volcano control platform, which can be used for edge interconnection instance lifecycle management, product management, billing-related management, etc.

[0087] The edge interconnect core controller is deployed at the center and provides a global view of all edge node forwarding links. It primarily performs routing calculation, control, and delivery for networking, such as VPC networking. The edge interconnect core controller connects to each edge node via a secure public network channel and encrypts transmitted data. Examples of edge nodes include, but are not limited to, the L1-node A, L1-node B, and L2-node N shown in the figure.

[0088] Each user can send a networking request to the edge interconnection core controller through the control platform. The networking request can be, for example, InnerAPIs (internal application program interface call request), and then obtain the second edge boundary routing table based on the solution provided by the present disclosure and send it to each edge node respectively.

[0089] EGW (Edge Gateway) is a centralized gateway device deployed on the edge node, which carries the traffic forwarded across nodes and is also the physical entity that carries EBR. Compared with EGW, EBR belongs to the edge boundary routing in a logical concept. Each edge networking instance has a logical EBR instance at each node, which carries the routing table of the edge interconnection instance at a certain node. The EGW Controller shown in Figure 8 of this embodiment represents the EGW controller on the edge node side, which is responsible for pulling the routing configuration generated by the edge interconnection core controller and sending it to the device Agent. The device Agent is used to send the routing configuration pulled by the EGW Controller to the specific EGW.

[0090] 9 , the networking request includes a virtual private cloud (VPC) networking request. This shows that when the disclosed solution is applied to a VPC (Virtual Private Cloud) networking scenario, a routing calculation method for edge node VPC networking can also be provided based on the disclosed solution.

[0091] Through VPC networking scenarios, an isolated, self-configured, and managed virtual network environment is built for edge cloud resources. Network features such as IP (Internet Protocol) address segments, security groups, and routing policies can be customized in the private network to facilitate the management and configuration of the cloud network and make network changes safely and quickly.

[0092] In the VPC networking of edge nodes, routing information is key to controlling the forwarding actions of the underlying network elements (NEs) at each edge node. Therefore, the core of the entire VPC networking solution lies in calculating the routing information forwarded by each edge node.

[0093] As shown in Figure 9, computing the routing information forwarded by the edge node is reflected in determining the EBR routing table for each edge node in the current edge interconnect instance. Figure 9 illustrates an edge node at a first location and an edge node at a second location. The first location and the second location are two different locations, for example, Ningbo and Hengyang, respectively. Although the first and second locations are cross-domain connections, the edge node at the first location and the edge node at the second location are in the same edge interconnect instance.

[0094] For the first-location edge node (EBR), the target network segments include but are not limited to 172.16.1.0 / 24, 172.16.2.0 / 24, 192.168.1.0 / 24, and 192.168.2.0 / 24. The next hop for target network segment 172.16.1.0 / 24 is VPC1, and the type is local. The next hop for target network segment 172.16.2.0 / 24 is VPC2, and the type is local. The next hop for target network segment 192.168.1.0 / 24 is the second-location edge node (EBR), and the type is cross-domain. The next hop for target network segment 192.168.2.0 / 24 is the second-location edge node (EBR), and the type is cross-domain.

[0095] As shown in FIG10 , one or more embodiments of the present disclosure provide a schematic diagram of a VPC network from a user's perspective.

[0096] VPC instances can be deployed on edge nodes in the edge cloud, and each VPC instance is configured with EBR so that the edge network products of the edge cloud have basic VPC product capabilities within the nodes, such as supporting edge computing product network capabilities such as virtual machines / containers.

[0097] Among them, VPC networking of cross-regional edge nodes belongs to the basic edge Iaas (Infrastructure as a Service) network layer, providing the ability to interconnect multiple edge nodes across regions. It is the basis for building multi-access and unified network coordination capabilities of edge nodes.

[0098] Therefore, for users, in the process of applying the solution of the present disclosure to provide the capability of interconnecting multiple edge nodes across regions, one or more embodiments of the present disclosure can increase the speed of routing calculation and improve the efficiency of routing calculation.

[0099] The beneficial effects of the present disclosure include: the present disclosure splits the routing calculation task into a topology calculation task and a graph calculation task, and schedules the topology calculation task to be processed on the first routing calculation instance and the graph calculation task to be processed on the second routing calculation instance through task scheduling, thereby realizing distributed parallel calculation of multi-node routing. Even if there are a large number of edge nodes or the same edge node triggers multiple routing calculation tasks at the same time, the impact on the routing calculation task processing speed of this solution is very small. Compared with conventional technologies, the present disclosure can greatly improve the routing calculation task processing speed and enhance the routing calculation task processing efficiency.

[0100] As shown in Figure 11, the method for processing routing calculation tasks in one or more embodiments of the present disclosure is based on the same inventive technical concept. At least one embodiment of the present disclosure can also provide a device for processing routing calculation tasks, which routing calculation tasks include topology calculation tasks and graph calculation tasks.

[0101] The apparatus for processing the routing calculation task may include but is not limited to a task creation module 111 , a first scheduling module 112 , a second scheduling module 113 and a routing table updating module 114 .

[0102] The task creation module 111 is configured to receive a networking request and create a topology calculation task according to the networking request.

[0103] The first scheduling module 112 is configured to schedule the topology calculation task to the first routing calculation instance and execute the topology calculation task using the first routing calculation instance to obtain an edge boundary routing table topology set; the topology set includes multiple first edge boundary routing tables.

[0104] The second scheduling module 113 is used to determine a plurality of graph computing tasks corresponding to the plurality of first edge boundary routing tables, and respectively schedule the plurality of graph computing tasks to the corresponding plurality of second routing computing instances, and execute the graph computing tasks using the second routing computing instances.

[0105] The routing table updating module 114 is configured to update the first edge boundary routing table to a second edge boundary routing table according to the execution result of the graph computing task, wherein the routing computing task is used to determine the second edge boundary routing table used in the networking.

[0106] Optionally, the task creation module 111 includes an instance determination unit and a task creation unit.

[0107] The instance determination unit is used to determine the edge interconnection instance allocated for the networking request, and the edge interconnection instance is used to configure a private network for the networking request.

[0108] The task creation unit is used to create topology computing tasks corresponding to edge interconnection instances.

[0109] Optionally, the first scheduling module 112 includes a routing table traversal unit, a forwarding information determination unit, and a topology set creation unit.

[0110] The routing table traversal unit is configured to traverse each third edge border routing table in the edge interconnection instance.

[0111] The forwarding information determining unit is used to respectively determine the routing forwarding information from each third edge border routing table to the private network, wherein the routing forwarding information indicates whether the routing type between the third edge border routing table and the edge border routing table in the private network is a direct connection type or a relay type.

[0112] The topology set creating unit is configured to construct a topology set based on the routing forwarding information using a plurality of third edge boundary routing tables, and use the third edge boundary routing table used for constructing the topology set as the first edge boundary routing table.

[0113] Optionally, the topology set creating unit includes a routing table dividing unit, a routing table creating unit and a topology set creating sub-unit.

[0114] A routing table division unit is used to divide a third edge border routing table whose routing type with the edge border routing table in the private network is a relay type into a first routing table and a second routing table, wherein the first routing table is a routing table associated with the edge interconnection instance, and the second routing table is a routing table not associated with the edge interconnection instance.

[0115] The routing table creation unit is configured to create a corresponding third routing table associated with the edge interconnection instance according to the second routing table.

[0116] A topology set creation subunit is used to construct a topology set through the first routing table, the third routing table and the third edge border routing table whose routing type is a direct connection type with the edge border routing table in the private network; wherein the second edge border routing table in the topology set is added as the first edge border routing table.

[0117] Optionally, the second scheduling module 113 includes a full routing calculation unit.

[0118] The full routing calculation unit is used to calculate the full routing of multiple first edge boundary routing tables corresponding to multiple graph computing tasks one by one, and obtain the full routing calculation result; the execution result of the graph computing task includes the full routing calculation result.

[0119] Optionally, the second scheduling module 113 includes a version field value updating unit.

[0120] The version field value updating unit is used to update the target version field values ​​in multiple first edge boundary routing tables respectively to obtain updated version field values; the execution result of the graph computing task includes the updated version field value.

[0121] Optionally, the second scheduling module 113 includes an incremental routing calculation unit.

[0122] An incremental routing calculation unit is used to calculate the incremental routing of multiple first edge boundary routing tables corresponding to multiple graph computing tasks one by one according to the full routing corresponding to the target version field value and the full routing corresponding to the updated version field value, to obtain the incremental routing calculation result; the execution result of the graph computing task includes the incremental routing calculation result.

[0123] Optionally, the second scheduling module 113 includes a routing conflict detection unit.

[0124] The routing conflict detection unit is used to detect routing conflicts in multiple first edge boundary routing tables corresponding to multiple graph computing tasks one by one, and obtain routing conflict detection results; the execution results of the graph computing tasks include the routing conflict detection results.

[0125] Optionally, the second scheduling module 113 further includes an abnormal rescheduling unit.

[0126] The exception rescheduling unit is used to re-execute the abnormal process if an abnormality occurs in any process of topology calculation task execution, full route calculation, version field value update, incremental route calculation, and route conflict detection.

[0127] Optionally, the networking request includes a virtual private cloud networking request.

[0128] As shown in Figure 12, based on the same inventive technical concept as the method for processing routing calculation tasks provided in at least one embodiment of the present disclosure, at least one embodiment of the present disclosure can also provide a computer device. The computer device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the method for processing routing calculation tasks in any embodiment of the present disclosure. The detailed implementation process of the method for processing routing calculation tasks has been described in detail in this specification and will not be repeated here.

[0129] As shown in Figure 12, based on the same inventive technical concept as the method for processing routing calculation tasks provided in at least one embodiment of the present disclosure, at least one embodiment of the present disclosure can also provide a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the method for processing routing calculation tasks in any embodiment of the present disclosure. The detailed implementation process of the method for processing routing calculation tasks has been described in detail in this specification and will not be repeated here.

[0130] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0131] It should be understood that various parts of the present disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement the present invention: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0132] In the description of this specification, the description with reference to the terms "this embodiment", "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are mutually inconsistent.

[0133] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0134] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent replacements, and simple improvements made to the essential contents of the present disclosure shall be included in the scope of protection of the present disclosure.

Claims

1. A method for processing a routing calculation task, wherein the routing calculation task includes a topology calculation task and a graph calculation task; the method comprises: Receive a networking request, and create a topology calculation task according to the networking request; The topology calculation task is scheduled to the first routing calculation instance, and the first routing calculation instance is used to execute the topology calculation task to obtain an edge boundary routing table topology set; the topology set includes multiple first edge boundary routing tables; Determine a plurality of graph computing tasks corresponding one-to-one to the plurality of first edge boundary routing tables, and respectively schedule the plurality of graph computing tasks to the corresponding plurality of second routing computing instances, and use the second routing computing instances to execute the graph computing tasks; The first edge boundary routing table is updated to a second edge boundary routing table according to the execution result of the graph computing task, and the routing computing task is used to determine the second edge boundary routing table used for networking.

2. The method for processing routing calculation tasks according to claim 1, wherein: The creating a topology calculation task according to the networking request includes: Determine an edge interconnection instance allocated for the networking request, the edge interconnection instance being used to configure a private network for the networking request; A topology computing task corresponding to the edge interconnect instance is created.

3. The method for processing routing calculation tasks according to claim 2, wherein: The using the first routing calculation instance to perform the topology calculation task includes: Traversing each third edge border routing table in the edge interconnect instance; Determine respectively the routing forwarding information from each third edge border routing table to the private network, wherein the routing forwarding information indicates that the routing type between the third edge border routing table and the edge border routing table in the private network is a direct connection type or a relay type; Based on the routing forwarding information, the topology set is constructed using a plurality of third edge border routing tables, and the third edge border routing table used for constructing the topology set is used as the first edge border routing table.

4. The method for processing routing calculation tasks according to claim 3, wherein: The constructing the topology set based on the routing forwarding information using a plurality of third edge boundary routing tables includes: Divide a third edge border routing table whose routing type with the edge border routing table in the private network is a relay type into a first routing table and a second routing table, wherein the first routing table is a routing table associated with the edge interconnection instance, and the second routing table is a routing table not associated with the edge interconnection instance; Creating a corresponding third routing table associated with the edge interconnection instance according to the second routing table; The topology set is constructed by using the first routing table, the third routing table, and the third edge border routing table whose routing type is a direct connection type with the edge border routing table in the private network; The second edge border routing table in the topology set is added as the first edge border routing table.

5. The method for processing routing calculation tasks according to any one of claims 1 to 4, wherein: The using the second routing calculation instance to perform the graph calculation task includes: The full routes of the multiple first edge boundary routing tables corresponding to the multiple graph computing tasks are calculated respectively to obtain a full route calculation result; the execution result of the graph computing task includes the full route calculation result.

6. The method for processing routing calculation tasks according to claim 5, wherein: The using the second routing calculation instance to perform the graph calculation task also includes: The target version field values ​​in the multiple first edge boundary routing tables are updated respectively to obtain updated version field values; and the execution result of the graph computing task includes the updated version field value.

7. The method for processing routing calculation tasks according to claim 6, wherein: The using the second routing calculation instance to perform the graph calculation task also includes: According to the full route corresponding to the target version field value and the full route corresponding to the updated version field value, the incremental routes of the multiple first edge boundary routing tables corresponding to the multiple graph computing tasks are calculated respectively to obtain incremental routing calculation results; the execution results of the graph computing tasks include the incremental routing calculation results.

8. The method for processing routing calculation tasks according to claim 7, wherein: The using the second routing calculation instance to perform the graph calculation task also includes: The routing conflicts of the multiple first edge boundary routing tables corresponding to the multiple graph computing tasks are detected to obtain routing conflict detection results; the execution results of the graph computing tasks include the routing conflict detection results.

9. The method for processing routing calculation tasks according to claim 8, wherein: The method further comprises: If an exception occurs in any process of topology calculation task execution, full route calculation, version field value update, incremental route calculation, and route conflict detection, the process where the exception occurs is re-executed.

10. The method for processing routing calculation tasks according to any one of claims 1 to 9, characterized in that: The networking request includes a virtual private cloud networking request.

11. A device for processing routing calculation tasks, wherein: The routing calculation task includes a topology calculation task and a graph calculation task; the device includes: A task creation module, used to receive a networking request and create a topology calculation task according to the networking request; A first scheduling module, configured to schedule the topology calculation task to a first routing calculation instance and execute the topology calculation task using the first routing calculation instance to obtain a topology set of edge boundary routing tables; the topology set includes a plurality of first edge boundary routing tables; A second scheduling module is used to determine a plurality of graph computing tasks corresponding to the plurality of first edge boundary routing tables one by one and respectively schedule the plurality of graph computing tasks to the corresponding plurality of second routing computing instances, and execute the graph computing tasks using the second routing computing instances; The routing table updating module is used to update the first edge boundary routing table to a second edge boundary routing table according to the execution result of the graph computing task, and the routing computing task is used to determine the second edge boundary routing table used for networking.

12. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the method for processing routing calculation tasks as claimed in any one of claims 1 to 10.

13. A storage medium storing computer-readable instructions, wherein: When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to perform the method for processing routing calculation tasks as claimed in any one of claims 1 to 10.

14. A computer program, which, when executed by one or more processors, enables the one or more processors to execute the method for processing routing calculation tasks according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Deployment method and device of edge computing App

    CN111427590A

  • Edge calculation routing table establishing and usage method based on NDN (Named Data Networking)

    CN112910785A

  • Routing computing task processing method and device, computer equipment and storage medium

    CN116366537A

  • System and method for distribution of routes in a telecommunications network

    US20220086077A1