Routing information processing method and device, equipment, storage medium and program product
By constructing a global routing table in the cloud intelligent network and rewriting it to the regional routing table, the high cost and stability issues of Full mesh connections in cloud computing are solved, and unified management and efficient forwarding of global routing information are achieved.
Patent Information
- Application Number
- CN202411252236.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-19
AI Technical Summary
In cloud computing, establishing full mesh connections one by one results in high operational costs and numerous network stability risks. How to automatically distribute routes and select the optimal transmission path is a challenge.
A global routing table is built on the cloud intelligent network instance to record the routing information of each region, and then rewritten to the regional routing table of each transit gateway instance to achieve unified management of global routing information and complete routing information acquisition in a single operation.
It enables correct traffic forwarding in the cloud intelligent network, while providing convenient viewing and modification capabilities of global routing information, reducing operational complexity and cost.
Smart Images

Figure CN118984296A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, specifically to technical fields such as cloud computing, cloud intelligent network, transit gateway, traffic forwarding, and more particularly to a routing information processing method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] As the cloud market develops, more and more businesses are migrating to the cloud. The typical VPC (Virtual Private Cloud) network architecture can no longer meet business needs, and the requirements for VPC networks are getting higher and higher. From the most primitive traditional VPC network, to the point-to-point linear VPC network, to the current star network.
[0003] Although there are currently peer-to-peer connection products, VPN (Virtual Private Network) products and dedicated line products that can meet existing needs, with the increasing number of cloud resources, if Fullmesh (a form of network connection, that is, all nodes are directly connected) connections are established one by one, it will result in high operating costs and cumbersome operations, and will also create many hidden dangers to network stability.
[0004] How to automatically distribute and learn routes and intelligently select the optimal transmission path is currently the focus of technical personnel in the process of designing the Cloud Smart Network (CSN) architecture. Summary of the invention
[0005] The embodiments of the present disclosure provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for processing routing information.
[0006] In a first aspect, an embodiment of the present disclosure proposes a method for processing routing information, including: receiving routing information uploaded by each business network through its own transit gateway instance, multiple transit gateway instances constitute a cloud intelligent network instance, different transit gateway instances correspond to different regions, and the business network in each region only transmits data with the transit gateway instance in the region; recording the routing information in a pre-created global routing table; and rewriting the routing information recorded in the global routing table into the regional routing tables pre-created for each transit gateway instance.
[0007] In the second aspect, an embodiment of the present disclosure proposes a routing information processing device, including: a routing information receiving unit, configured to receive routing information uploaded by each business network through its own transit gateway instance, multiple transit gateway instances constitute a cloud intelligent network instance, different transit gateway instances correspond to different regions, and the business network in each region only transmits data with the transit gateway instance in the region; a routing information recording unit, configured to record the routing information in a pre-created global routing table; a routing information rewriting unit, configured to rewrite the routing information recorded in the global routing table into the regional routing tables pre-created for each transit gateway instance.
[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the routing information processing method described in any implementation method in the first aspect when executing.
[0009] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to implement the routing information processing method described in any implementation manner in the first aspect when executed.
[0010] In a fifth aspect, an embodiment of the present disclosure provides a computer program product including a computer program, which, when executed by a processor, can implement the steps of the routing information processing method as described in any implementation manner in the first aspect.
[0011] The routing information processing scheme provided by the present disclosure first constructs a global routing table on a cloud intelligent network instance composed of multiple transit gateway instances, and then uniformly records the routing information sent by each business network through the transit gateway instances in the region to which it belongs in the global routing table, so that the global routing table records the routing information of all business networks in each region, which can be directly provided in a single query, making it easier to view and modify operations; on the basis of having the global routing table, the routing information recorded in the global routing table is rewritten to the regional routing table constructed on each transit gateway instance, so that the specific forwarding behavior of the traffic to be forwarded can be specifically executed with the help of the regional routing table. In summary, by applying this scheme, the ability to obtain a global routing table with comprehensive and complete routing information in a single operation can be provided while ensuring the correct forwarding of cloud intelligent network traffic.
[0012] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0014] Figure 1 is an exemplary system architecture in which the present disclosure may be applied;
[0015] Figure 2 A flowchart of a method for processing routing information provided by an embodiment of the present disclosure;
[0016] Figure 3 A flowchart of a method for correctly forwarding traffic to be forwarded to a target service network provided by an embodiment of the present disclosure;
[0017] Figure 4 A flowchart of a method for processing a routing information query request and a routing information modification instruction provided by an embodiment of the present disclosure;
[0018] Figure 5 A flowchart of a method for creating multiple groups of routing tables and selecting matching routing tables in combination with service types to correctly forward traffic to be forwarded provided in an embodiment of the present disclosure;
[0019] Figure 6 A flowchart of a method for correctly forwarding traffic to be forwarded according to detour information provided by an embodiment of the present disclosure;
[0020] Figure 7-1 to Figure 7-6 All of them are structural flow diagrams of a routing information processing method in a specific application scenario provided by an embodiment of the present disclosure;
[0021] Figure 8 A structural block diagram of a routing information processing device provided by an embodiment of the present disclosure;
[0022] Fig. 9 A schematic diagram of the structure of an electronic device suitable for executing a routing information processing method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict.
[0024] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0025] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the routing information processing method, apparatus, electronic device, and computer-readable storage medium of the present disclosure can be applied.
[0026] like Figure 1 As shown, the system architecture 100 may include a cloud intelligent network instance 10, transit gateway instances 101, 102, and 103, and a business network 1011 in the same area as the transit gateway instance 101, a business network 1021 in the same area as the transit gateway instance 102, and business networks 1031 and 1032 in the same area as the transit gateway instance 103.
[0027] Among them, transit gateway instances 101, 102, and 103 are respectively set in different areas to realize traffic forwarding in the corresponding areas. Cloud intelligent network instance 10 is jointly constructed based on transit gateway instances 101, 102, and 103. It can also be understood as the transit gateway instances of various areas under the jurisdiction of cloud intelligent network instance 10. Data connections are established between each transit gateway instance. Different types of business networks can be set up in different areas, such as VPC, VPN, IDC (Internet Data Center), dedicated lines, etc. Different business networks in the same area only establish data connections with the transit gateway instances in the area, that is, they can only send information to or receive information from the transit gateway instances in the same area. Communication between the various entities can be achieved through various data transmission methods including wired transmission or wireless transmission, such as wired, wireless communication links or optical fiber cables, etc.
[0028] Various applications for realizing information communication between the cloud intelligent network instance 10 and the transit gateway instances 101, 102, 103 can be installed, such as routing information processing applications, routing table creation applications, instant messaging applications, etc.
[0029] The cloud intelligent network instance 10, the transit gateway instances 101, 102, 103, and the service networks 1011, 1021, 1031, and 1032 may be hardware or software. When it is hardware, it may be implemented as a distributed server cluster consisting of multiple servers or a single server; when it is software, it may be implemented as multiple software or software modules or a single software or software module, and no specific limitation is made here.
[0030] The cloud intelligent network instance 10 can provide various services through various built-in applications. Taking the routing information processing application that can provide global routing information processing services as an example, the cloud intelligent network instance 10 can achieve the following effects when running the routing information processing application: first, receive the routing information uploaded by the business networks 1011, 1021, 1031 and 1032 through their respective transit gateway instances 101, 102, 103; then, record all the received routing information in the pre-created global routing table; finally, rewrite the routing information recorded in the global routing table into the regional routing tables pre-created for each transit gateway instance 101, 102, 103.
[0031] Based on the above-mentioned cloud network architecture, the routing information processing method provided in the subsequent embodiments of the present disclosure is generally executed by a cloud intelligent network instance 10 having stronger computing power, more computing resources, and at a higher level. Accordingly, the routing information processing device is generally also arranged in the physical hardware that carries the cloud intelligent network instance 10.
[0032] It should be understood that Figure 1 The number of cloud intelligent network instances, transit gateway instances, and service networks in the example is only illustrative. Any number of cloud intelligent network instances, transit gateway instances, and service networks may be provided according to implementation requirements.
[0033] Please refer to Figure 2 , Figure 2 A flowchart of a method for processing routing information provided by an embodiment of the present disclosure, wherein process 200 includes the following steps:
[0034] Step 201: receiving routing information uploaded by each service network through its transit gateway instance;
[0035] This step is intended to be performed by the execution subject of the routing information processing method (for example Figure 1 The cloud intelligent network instance 10 shown receives the routing information uploaded by each business network through the transit gateway instance. The relationship between the cloud intelligent network instance, the transit gateway instance, and the business network can be seen in Figure 1The structural diagram shown, that is, the cloud intelligent network instance as the execution body of this embodiment is composed of multiple transit gateway instances, different transit gateway instances correspond to different regions, and data connections are established between different transit gateway instances. The business network in each region only transmits data with the transit gateway instance in the region, and the routing information sent by the business network (such as VPC, VPN, IDC, dedicated line, etc.) to the transit gateway instance in the region is used to characterize that the network segment corresponds to the business network. Assume that IDC1 in region A sends a routing information of 10.1.0.0 / 24 to the transit gateway instance in region A, which means that the forwarding object of all to-be-forwarded traffic with a destination of 10.1.0.0 / 24 should be IDC1.
[0036] Step 202: Record the routing information in a pre-created global routing table;
[0037] On the basis of step 201, this step aims at recording the routing information in a pre-created global routing table by the above-mentioned execution subject. The global routing table is a routing table pre-created on the execution subject (i.e., the cloud intelligent network instance) and managed and maintained by the execution subject, and is used to record the routing information sent by all business networks managed by all transit gateway instances under its jurisdiction. Since the routing information of all business networks in all regions is recorded, rather than only the routing information of all business networks in a single region, the present disclosure names or refers to the routing table as a global routing table.
[0038] Step 203: rewrite the routing information recorded in the global routing table into the regional routing table pre-created for each transit gateway instance.
[0039] On the basis of step 202, this step aims to cause the above-mentioned execution subject to rewrite the routing information recorded in the global routing table into the regional routing table created in advance for each transit gateway instance, so as to implement the correct forwarding behavior of the traffic to be forwarded through the regional routing table specifically maintained by each transit gateway instance, and forward the traffic to be forwarded to the correct business network.
[0040] That is, the global-level routing information is rewritten into the regional-level routing information of the transit gateway instances scattered in various regions. That is, the regional routing table is used to distinguish the global routing table and only records the routing information related to each business network in the region where the corresponding transit gateway instance is located.
[0041] Assume that in an example, a cloud intelligent network instance has three transit gateway instances, corresponding to regions A, B, and C respectively. An IDC1 in region A publishes a routing information of 10.1.0.0 / 24 through the transit gateway instance in region A. Then, first, a correspondence between 10.1.0.0 / 24 and IDC1 can be recorded in the global routing table of the cloud intelligent network instance (this correspondence is the simplest and most basic correspondence. In addition to this key information, it can also include other relevant information, such as additional records of the affiliation between IDC1 and the code of the transit gateway instance in the region to which it belongs, etc.), which means that the optimal next hop for all traffic to be forwarded with a destination pointing to 10.1.0.0 / 24 is IDC1.
[0042] When the corresponding relationship of 10.1.0.0 / 24-IDC1 recorded in the global routing table is rewritten to the regional routing tables of the three areas A, B, and C, it is specifically as follows:
[0043] For the regional routing table of area A, add a new route 10.1.0.0 / 24 pointing to the address of IDC1;
[0044] For the regional routing table in region B, add a new route 10.1.0.0 / 24 pointing to the address of the transit gateway instance in region A (that is, when the transit gateway instance in region B receives traffic to be forwarded with a destination of 10.1.0.0 / 24, it forwards it to the transit gateway instance in region A);
[0045] For the regional routing table in region C, add a new route 10.1.0.0 / 24, which points to the address of the transit gateway instance in region A (that is, when the transit gateway instance in region C receives traffic to be forwarded with a destination of 10.1.0.0 / 24, it forwards it to the transit gateway instance in region A).
[0046] The routing information processing method provided by the embodiment of the present disclosure first builds a global routing table on a cloud intelligent network instance composed of multiple transit gateway instances, and then uniformly records the routing information sent by each business network through the transit gateway instance of the region to which it belongs in the global routing table, so that the global routing table records the routing information of all business networks in each region, which can be directly provided in a single query, making it easier to view and modify operations; on the basis of having the global routing table, the routing information recorded in the global routing table is rewritten to the regional routing table built on each transit gateway instance, so that the specific forwarding behavior of the traffic to be forwarded can be specifically executed with the help of the regional routing table. In summary, by applying this solution, the ability to obtain a global routing table with comprehensive and complete routing information in a single operation can be provided while ensuring the correct forwarding of cloud intelligent network traffic.
[0047] On the basis of the previous embodiment, after completely rewriting the routing information recorded in the global routing table to each regional routing table, how to use the global routing table and the regional routing table to send the traffic to be forwarded to the destination in the subsequent process, this embodiment also Figure 3 A specific implementation is provided, wherein process 300 includes the following steps:
[0048] Step 301: Determine the target transit gateway instance to which the target service network corresponding to the received traffic to be forwarded belongs according to the global routing table;
[0049] The purpose of this step is to have the above-mentioned execution entity first receive the traffic to be forwarded, and then, based on the relevant information pointing to the destination carried in the traffic to be forwarded, further confirm the target transit gateway instance to which the target business network corresponding to the traffic to be forwarded belongs with the help of the routing information recorded in the global routing table.
[0050] Step 302: Send the traffic to be forwarded to the target transit gateway instance;
[0051] Based on step 301, this step aims to enable the above-mentioned execution subject to send the traffic to be forwarded to the target transit gateway instance.
[0052] Step 303: Control the target transit gateway instance to forward the traffic to be forwarded to the target service network according to the routing information recorded in the corresponding regional routing table.
[0053] Based on step 302, this step aims to control the target transit gateway instance to perform the following operations by the above-mentioned execution subject:
[0054] The target transit gateway instance queries the specific service network corresponding to the destination information of the received traffic to be forwarded based on the routing information recorded in its regional routing table, and obtains the target service network;
[0055] The target transit gateway instance forwards the traffic to be forwarded to the target business network.
[0056] Specifically, the control effect on the target transit gateway instance can be achieved by issuing control instructions or other similar methods.
[0057] This embodiment provides a specific implementation method through steps 301-303, which first uses the global routing table to determine the target transit gateway instance, and then uses the regional routing table on the target transit gateway instance to determine the target business network, thereby achieving correct forwarding of the forwarding traffic.
[0058] In the case where the global routing table has been formed in the above embodiment, in order to facilitate the subsequent user's access, query, and modification operations, this embodiment also Figure 4 An implementation method for processing a request initiated by a user is provided, wherein process 400 includes the following steps:
[0059] Step 401: receiving a routing information viewing request initiated by a target user;
[0060] Step 402: Return the latest global routing table to the target user as a request response;
[0061] This step is intended to enable the above-mentioned execution subject to return the latest global routing table to the user as a request response (or response result) of the request initiated by the user when receiving the routing information viewing request initiated by the user, so as to achieve the purpose of the request.
[0062] It should be noted that in this embodiment, for the routing information query request initiated by the user, only the global routing table is returned and presented to the user as the request query result, while each regional routing table exists on the transit gateway instance of the corresponding area as a hidden routing table that is not exposed to the outside world, and is only used when each transit gateway instance is actually running and processing the traffic to be forwarded.
[0063] Step 403: Determine a routing information modification method according to the received routing information modification instruction for the global routing table;
[0064] On the basis of step 402, this step is intended for the execution subject to determine, when receiving a routing information modification instruction for the global routing table initiated by a user, a modification method for the routing information currently recorded in the global routing table according to the routing information modification instruction. The modification method is used to characterize the relevant information of what new routing information the original routing information needs to be modified into.
[0065] Step 404: modify the routing information recorded in the global routing table according to the routing information modification method to obtain a modified global routing table;
[0066] On the basis of step 403, this step aims at having the above-mentioned execution subject modify the routing information recorded in the global routing table according to the determined routing information modification method, thereby obtaining a modified global routing table recording the new routing information.
[0067] In order to ensure the security of the routing information modification behavior and prevent malicious attacks or malicious modifications, before executing step 404, an additional permission verification step can be added. An implementation method including but not limited to: determining the actual permission level of the user who initiated the routing information modification instruction, and only when the actual permission level is higher than the preset permission level, the step of modifying the routing information recorded in the global routing table according to the routing information modification method (i.e., step 404) is performed. That is, by introducing a permission authentication mechanism, it is ensured that the user who initiated the routing information modification instruction is a legitimate user with the routing information modification authority. Otherwise, step 404 is not continued and the response to the routing information modification instruction that has not passed the permission authentication is terminated.
[0068] In addition to the permission authentication mechanism specifically provided here, other similar or different implementation methods that can also achieve similar effects can be set up, which are not listed here one by one.
[0069] Step 405: Determine the difference in routing information before and after the modification according to the modified global routing table and the global routing table before the modification;
[0070] On the basis of step 404, this step aims to determine the difference routing information before and after the modification by comparing the difference between the modified global routing table and the global routing table before the modification by the above-mentioned execution subject.
[0071] Step 406: Modify the routing information recorded in the corresponding regional routing table according to the difference routing information.
[0072] On the basis of step 405, this step aims to modify the routing information recorded in the corresponding regional routing table according to the differential routing information by the above-mentioned execution subject, so that the routing information recorded in each modified regional routing table matches the routing information recorded in the modified global routing table.
[0073] A feasible implementation method including but not limited to:
[0074] First, the affected target transit gateway instance is determined according to the differential routing information; then, the routing information recorded in the regional routing table of the target transit gateway instance is modified according to the differential routing information to obtain a modified regional routing table.
[0075] This embodiment first provides, through steps 401-402, an implementation method for using only the global routing table as a response to a routing information query request, so that users who need to view routing information can view comprehensive and complete routing information through only a single query operation, without having to initiate query requests to each transit gateway instance multiple times; then, through steps 403-404, an implementation method for processing routing information modification instructions for the global routing table is provided, that is, the routing information is modified according to the routing information modification method corresponding to the routing information modification instruction, and then a modified global routing table is obtained; finally, on the basis of step 404, steps 405-406 are further provided to synchronously modify the routing information recorded in each regional routing table by comparing the differences in the routing information recorded in the global routing table before and after the modification, so as to ensure that the modification of the routing information in the global routing table will also be synchronized to each regional routing table.
[0076] It should be noted that the follow-up of the routing information query request processing solution provided by steps 401-402 may not necessarily be the solution provided by steps 403-404, that is, steps 403-404 are only a feasible follow-up processing solution based on the solution provided by steps 401-402; similarly, the follow-up of the routing information modification solution provided by steps 403-404 may not necessarily be the solution provided by steps 405-406, that is, steps 405-406 are only a feasible follow-up processing solution based on steps 403-404, and the existence of other feasible solutions is not excluded.
[0077] In other words, different schemes without causal and dependent relationships can be independently combined with the above embodiments to form separate embodiments. This embodiment only exists as a preferred embodiment that includes the above three preferred schemes at the same time, and does not forcibly bundle the above three schemes for execution.
[0078] Based on the above embodiments, different service networks may need to be isolated according to business requirements, that is, under different business types, some service networks need to be isolated from each other. To meet this requirement, this embodiment also Figure 5 A solution for processing business isolation requirements is provided, wherein the process 500 includes the following steps:
[0079] Step 501: Determine the number of routing table groups that meet the service isolation requirements according to the existing service isolation requirements;
[0080] The purpose of this step is for the above-mentioned execution entity to first determine the number of routing table groups that meet the business isolation requirements based on the existing business isolation requirements, for example, 3 groups, namely, Group 1, Group 2 and Group 3 respectively correspond to the business types that need to be isolated from each other, that is, under each business type, it is necessary to comply with the dedicated routing table under the business type to realize the forwarding of the traffic to be forwarded under the business type.
[0081] Specifically, business types may include: testing, production, updating, and experimenting, etc.
[0082] Step 502: Create multiple routing tables with the same number as the number of routing table groups;
[0083] On the basis of step 501, this step aims to create multiple groups of routing tables with the same number as the number of routing table groups by the above-mentioned execution subject, that is, each group of routing tables includes a global routing table with the same group number and regional routing tables with the same number of transit gateway instances. Assuming that the number of routing table groups that meet the service isolation requirements is 3, and there are different transit gateway instances corresponding to regions A, B, and C respectively, then the corresponding first group of routing tables can be expressed as set 1: (global routing table 1, A region routing table 1, B region routing table 1, C region routing table 1);
[0084] The second group of routing tables can be expressed as set 2: (global routing table 2, A area routing table 2, B area routing table 2, C area routing table 2);
[0085] The third group of routing tables can be expressed as set 3: (global routing table 3, A area routing table 3, B area routing table 3, C area routing table 3).
[0086] Step 503: Determine the service type to which the received traffic to be forwarded belongs;
[0087] After the creation of routing tables for each group and the recording of relevant routing information have been completed in step 502, this step is intended to allow the above-mentioned execution entity to determine the service type to which the received traffic to be forwarded belongs. The service type can be determined based on the relevant information characterizing the service type carried or recorded in the traffic header of the traffic to be forwarded, or it can be determined by extracting or analyzing from other sources or information, and is not specifically limited here.
[0088] Step 504: Determine the corresponding target routing table group number according to the service type;
[0089] Based on step 503, this step aims to allow the above-mentioned execution entity to determine the corresponding target routing table group number according to the business type, that is, to pre-maintain the correspondence between different business types and different routing table group numbers. This correspondence can be maintained only by the cloud intelligent network instance, or it can be maintained jointly by the cloud intelligent network instance and the transit gateway instances in each region.
[0090] Step 505: Determine the target transit gateway instance to which the target service network corresponding to the traffic to be forwarded belongs according to the global routing table corresponding to the target routing table group number;
[0091] Step 506: Send the traffic to be forwarded to the target transit gateway instance;
[0092] Step 507: Control the target transit gateway instance to forward the traffic to be forwarded to the target service network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
[0093] Steps 505-507 can be considered as adaptive adjustments to the schemes of steps 301-303 in the case where multiple groups of routing tables are additionally introduced based on business isolation requirements. That is, after the business type of the traffic to be forwarded is initially determined, subsequent forwarding should be carried out using the routing information recorded in the group of routing tables that matches the business type, and other non-matching groups of routing tables should not be used, so as to avoid erroneous forwarding.
[0094] This embodiment first provides an implementation method of creating multiple groups of routing tables to meet the service isolation requirements through steps 501-502, and then provides a specific implementation scheme of how to use the matching group of routing tables to achieve accurate forwarding of the traffic to be forwarded in combination with the service type described therein through steps 503-507. It should be understood that in addition to the specific implementation methods provided by steps 503-507, other specific implementation methods that can also achieve similar effects can also be used. This embodiment exists only as a comprehensive embodiment using a specific implementation method provided by steps 503-507 as an example, and does not mean that there is only the specific implementation method provided by steps 503-507, that is, the solution provided by steps 501-502 can also be combined with the main body of the solution to form a separate embodiment.
[0095] In such Figure 5 Based on the embodiment shown, considering that sometimes the forwarding traffic of the traffic to be forwarded does not necessarily have to follow the principle of the shortest path and the least number of hops, for example, in some scenarios, there may be a special requirement that the traffic sent by a certain business network must pass through at least a certain area or a certain business network, that is, because of the special requirement, it may take a "detour" during the forwarding process. In order to meet the special requirement, this embodiment also Figure 6 A specific implementation is provided, wherein the process 600 includes the following steps:
[0096] Step 601: In response to the detour information being pre-set for the target service network, determine the first transit gateway instance that the to-be-forwarded traffic should first reach during the detour process according to the global routing table corresponding to the target routing table group number and the detour information;
[0097] This step is based on the premise that detour information has been set for the target business network in advance, and is intended for the above-mentioned execution entity to determine the first transit gateway instance that the forwarded traffic should first reach during the detour process based on the global routing table and detour information corresponding to the target routing table group number.
[0098] Step 602: Send the traffic to be forwarded to the first transit gateway instance;
[0099] Based on step 601, this step aims to enable the above-mentioned execution subject to send the traffic to be forwarded to the first transit gateway instance.
[0100] Step 603: In response to the target service network not belonging to the service network in the area where the first transit gateway instance is located, control the first transit gateway instance to pass the traffic to be forwarded to the second transit gateway instance in the detour information in the form of an additional target routing table group number;
[0101] This step is established when the target business network does not belong to the business network in the area where the first transit gateway instance is located. It is intended for the above-mentioned execution entity to control the first transit gateway instance to pass the to-be-forwarded traffic to the second transit gateway instance in the detour information in the form of an additional target routing table group number.
[0102] Step 604: In response to the target business network belonging to the business network of the area where the second transit gateway instance is located, control the second transit gateway instance to forward the traffic to be forwarded to the target business network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
[0103] This step is established when the target business network belongs to the business network of the area where the second transit gateway instance is located, and is intended for the above-mentioned execution entity to control the second transit gateway instance to forward the traffic to be forwarded to the target business network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
[0104] That is, this embodiment provides a method through steps 601-604 in which, when detour forwarding is required, the traffic to be forwarded needs to carry the target routing table group number representing the business type to which it belongs during the transmission process of different transit gateway instances, so that the current transit gateway instance that receives the traffic to be forwarded forwarded from other transit gateway instances can clearly know which regional routing table it should use to forward the traffic to the next hop.
[0105] To deepen understanding, the present disclosure also provides a specific implementation solution in combination with a specific application scenario:
[0106] More and more companies need to build a global enterprise-level network on the cloud with multiple regional cloud private networks, proprietary networks and local data center networks. In related technologies, users need to maintain a routing table in each region. This routing table has regional attributes and can only be associated with the local domain network instance (equivalent to the business network mentioned in the above embodiment), can only learn the network instance routing of the local domain, and can only control the traffic forwarding of the local domain core node. As the number of regions increases, the number of routing tables maintained will increase. If users want to support network isolation, each region needs to maintain multiple routing tables, and the number of routing tables maintained will increase exponentially.
[0107] To solve the above problems, the embodiments of the present disclosure propose a method and device for implementing distributed routing, where users can control the forwarding of core nodes in each region in the routing table of the global view, without having to pay attention to the routing table information of the core nodes in each region. That is, the distributed routing table provided by the embodiments of the present disclosure can help users better manage the cloud network. Through the controller's arrangement of routing tables and routing entries and the innovation of the communication protocol of core nodes in each region, the regional attributes of the routing table are broken. The distributed routing table can associate network instances in each region, learn the routes of network instances in each region, and guide the traffic forwarding of core nodes in each region.
[0108] The specific control logic includes the following:
[0109] 1. Orchestration of distributed routing tables
[0110] Default routing table: The CSN controller will create a distributed default routing table for each CSN instance by default (equivalent to the global routing table mentioned in the above embodiment;
[0111] Custom routing table: Create one or more custom routing tables. Custom routing tables are similar to Virtual Routing Forwarding (VRF, virtual routing and forwarding, a network technology used to create multiple virtual routing tables on the same physical network infrastructure to achieve logical isolation of the network) configured in traditional routers. They are completely isolated from the default routing table and other routing tables in the forwarding router and are not connected to each other. Network instances can achieve traffic isolation by associating custom routing tables.
[0112] The CSN controller allocates VRF (Virtual routing and forwarding) to each distributed routing table instance. The default routing table VRF = 0, the custom routing table VRF> = 1, and increases in sequence, supporting a maximum of 1024.
[0113] The CSN controller creates a TGW routing table for each region based on the created distributed routing table instance and the TGW instance within the CSN instance. The VRF-ID of the TGW routing table is consistent with the VRF-ID of the CSN distributed routing table. The VRF-ID is unique in the CSN distributed routing table, and the VRF-ID in the routing table of the TGW instance in each region is also unique.
[0114] 2. Routing entry arrangement
[0115] After the distributed routing table learns a routing entry for a VPC or dedicated line, the controller performs routing calculation to obtain the optimal routing entry.
[0116] The controller orchestrates based on the optimal routing entry in the distributed routing table. By default, cross-regional traffic can be reached in one hop, and can also be translated to other regions for detours based on user intent.
[0117] by Figure 7-1 For example, Baoding VPC1, Beijing VPC2, Guangzhou VPC3, and Guangzhou IDC1 are interconnected through a CSN instance. After Guangzhou IDC1 publishes a route to 10.1.0.0 / 24 through a dedicated line, assuming that the dedicated line of IDC1 is associated with CSN distributed routing table 2, then distributed routing table 2 will learn this route, the destination is 10.1.0.0 / 24, and the next hop is the route of IDC1.
[0118] The CSN controller calculates the optimal route according to the route attributes in the distributed routing table. The optimal next hop of 10.1.0.0 / 24 is IDC1. Therefore, the optimal route is the route with the destination being 10.1.0.0 / 24 and the next hop being IDC1. The CSN controller translates the optimal route into the TGW routing table. By default, the translation results of each TGW routing table are as follows: Figure 7-2 As shown, Figure 7-2 The qc1, qc2, qc3, qc4, qc5 and qz shown in the figure correspond to different interfaces respectively.
[0119] If the user wants to bypass Beijing when VPC1 accesses IDC1, the translation result can be as follows Figure 7-3 shown.
[0120] It also includes the following forwarding logic:
[0121] 1. TGW forwarding logic - traffic from the local domain
[0122] For packets from local domain network instances (VPC, dedicated lines), find the association relationship of the inbound port to obtain the VRF-ID, and find the corresponding routing entry in the routing table based on the VRF-ID. If the next hop is other network instances in the local domain, it is directly forwarded. If the next hop is a TGW instance in another region, the VRF-ID is recorded in the VXLAN header.
[0123] 2. VRF-ID transmission
[0124] The traffic between TGWs is a VXLAN message. The present invention encapsulates the VRF-ID in the VXLAN header. The format of the standard VXLAN Header is defined as follows:
[0125] VXLAN Header:
[0126]
[0127] Among them, Reserved1[22:23] represents the type of Reserved1, 1 indicates that the following is VRF-ID information, and Reserved1[0:9] represents the specific VRF-ID information.
[0128] 3. TGW forwarding logic - TGW traffic from across regions
[0129] After receiving the VXLAN message, the TGW first parses the VXLAN Header to see if it carries the VRF-ID:
[0130] If the VRF-ID is carried, the carried VRF-ID is directly used to search the routing table corresponding to the VRF-ID and match the routing entries. If the matching result is a local domain network instance, it is directly forwarded without encapsulating the VRF-ID information. If it is forwarded to a TGW instance in another region, the VRF-ID is encapsulated in the VXLAN Header.
[0131] If the VRF-ID is not carried, it means that the message is from the network instance, not cross-region traffic. The association relationship of the network instance is directly searched to obtain the VRF-ID, and the routing table corresponding to the VRF-ID is searched to match the routing entries. If the matching result is a local domain network instance, it is directly forwarded without encapsulating the VRF-ID information. If it is forwarded to a TGW instance in another region, the VRF-ID is encapsulated in the VXLAN Header.
[0132] By applying the technical solution provided in this embodiment, the following technical effects can be achieved:
[0133] 1. One routing table enables interconnection of all regional networks. CSN products support distributed routing tables. The CSN network is like a global router. Users can manage their own networks from a global perspective. As long as the network instance is connected to the CSN network, only one global routing table is maintained in the CSN to control the traffic forwarding path between network instances loaded by the CSN. Users do not need to maintain corresponding routing tables on the TGWs in each region. The controller completes the complex routing configuration and traffic scheduling configuration on the TGWs in each region. The global routing table can learn the routes of the network instances in the entire region. After learning the routes, the CSN controller calculates and translates the optimal route to each cross-regional TGW, and synchronizes the optimal route of each Region TGW routing table in real time (see Figure 7-4 ).
[0134] 2. Implement network isolation with multiple global routes. When network instances within a CSN instance require network isolation, it is not possible to learn network instance routes by learning relationships in a routing table. If isolation is achieved by using policy routing, the maintenance cost is high. CSN supports custom global distribution routing tables, so that the association and learning relationships of CSN are not restricted by region. The default routing table learns the routes of all network instances by default. The custom routing table is isolated from the default routing table, and access isolation can be achieved. For example, a user has VPC1 (10.0.0.0 / 16) and VPC2 (10.1.0.0 / 16) in Beijing, VPC3 (10.2.0.0 / 16), VPC4 (10.3.0.0 / 16) and a local data center (10.4.0.0 / 16) in Guangzhou. It is expected that the production environment VPC1, production VPC3 and IDC can communicate with each other, and the test VPC2, test VPC4 and IDC can communicate with each other, and the production VPC1, production VPC3 and test VPC2, test VPC4 networks are isolated. Create three custom routing tables in CSN: test routing table, production routing table, and IDC routing table. Configure the association and learning relationships according to Table 1 below. Figure 7-5 :
[0135] Table 1 Correspondence table
[0136]
[0137]
[0138] 3. Support complex network scenarios. Since the routing table of CSN is a globally distributed routing table, CSN can quickly realize the cross-regional ServiceChain capabilities through custom routing tables, custom routing entries, associations, and learning relationships. Create two VPC1 and VPC2 on the cloud, and deploy services for Business 1 and Business 2 respectively. VPC1 and VPC2 are associated with custom routing table 1, and the traffic that has not undergone security audit is forwarded to IDC. IDC is associated with custom routing table 2. After the traffic from VPC1 to VPC2 reaches CSN, it will search for the route in custom routing table 1 and forward it to IDC. After the security audit of IDC, the message will be sent to the cloud again, and the routing entry in custom routing table 2 will be searched and forwarded to VPC2. You can flexibly build a service chain network on the cloud to ensure smooth cloud migration of services (see Figure 7-6 ).
[0139] Further references Figure 8 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a routing information processing device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0140] like Figure 8 As shown, the routing information processing device 800 of this embodiment may include: a routing information receiving unit 801, a routing information recording unit 802, and a routing information rewriting unit 803. Among them, the routing information receiving unit 801 is configured to receive routing information uploaded by each business network through the transit gateway instance to which it belongs. Multiple transit gateway instances constitute a cloud intelligent network instance. Different transit gateway instances correspond to different regions. The business network in each region only transmits data with the transit gateway instance in the region; the routing information recording unit 802 is configured to record the routing information in a pre-created global routing table; the routing information rewriting unit 803 is configured to rewrite the routing information recorded in the global routing table into the regional routing table pre-created for each transit gateway instance.
[0141] In this embodiment, in the routing information processing device 800, the specific processing of the routing information receiving unit 801, the routing information recording unit 802, and the routing information rewriting unit 803 and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of steps 201 - 203 in the corresponding embodiment are not repeated here.
[0142] In some optional implementations of this embodiment, the routing information processing device 800 may further include:
[0143] The target transit gateway instance determination unit is configured to determine the target transit gateway instance to which the target service network corresponding to the received traffic to be forwarded belongs according to the global routing table;
[0144] The first sending unit of the traffic to be forwarded is configured to send the traffic to be forwarded to the target transit gateway instance;
[0145] The first forwarding unit for the traffic to be forwarded is configured to control the target transit gateway instance to forward the traffic to be forwarded to the target service network according to the routing information recorded in the corresponding regional routing table.
[0146] In some optional implementations of this embodiment, the routing information processing device 800 may further include:
[0147] A viewing request receiving unit, configured to receive a routing information viewing request initiated by a target user;
[0148] The global routing table returning unit is configured to return the latest global routing table to the target user as a request response. The regional routing table exists on the transit gateway instance of the region as a hidden routing table that is not exposed to the outside.
[0149] In some optional implementations of this embodiment, the routing information processing device 800 may further include:
[0150] A modification mode determining unit, configured to determine a routing information modification mode according to a received routing information modification instruction for a global routing table;
[0151] The global routing table modification unit is configured to modify the routing information recorded in the global routing table according to the routing information modification method to obtain a modified global routing table.
[0152] In some optional implementations of this embodiment, the routing information processing device 800 may further include:
[0153] The actual authority level determination unit is configured to determine the actual authority level of the user who initiates the routing information modification instruction before modifying the routing information recorded in the global routing table according to the routing information modification method;
[0154] The authority verification execution unit is configured to execute the step of modifying the routing information recorded in the global routing table according to the routing information modification method in response to the actual authority level being higher than the preset authority level.
[0155] In some optional implementations of this embodiment, the routing information processing device 800 may further include:
[0156] The difference routing information determining unit is configured to determine the difference routing information before and after the modification according to the modified global routing table and the global routing table before the modification;
[0157] The regional routing table modification unit is configured to modify the routing information recorded in the corresponding regional routing table according to the difference routing information.
[0158] In some optional implementations of this embodiment, the regional routing table modification unit may be further configured to:
[0159] Determine the affected target transit gateway instance based on the differential routing information;
[0160] The routing information recorded in the regional routing table of the target transit gateway instance is modified according to the difference routing information to obtain a modified regional routing table.
[0161] In some optional implementations of this embodiment, the routing information processing device 800 may further include:
[0162] A service isolation requirement processing unit is configured to determine the number of routing table groups that meet the service isolation requirement according to the existing service isolation requirement;
[0163] The multiple routing table creation unit is configured to create multiple routing tables of the same number as the number of routing table groups, each routing table including a global routing table with the same group number and regional routing tables of the same number as the transit gateway instances.
[0164] In some optional implementations of this embodiment, the routing information processing device 800 may further include:
[0165] A service type unit is configured to determine a service type to which the received traffic to be forwarded belongs, the service types including: testing, production, updating, and experimenting;
[0166] A group number determination unit, configured to determine a corresponding target routing table group number according to a service type;
[0167] The target transit gateway instance determination unit under the corresponding group is configured to determine the target transit gateway instance to which the target service network corresponding to the to-be-forwarded traffic belongs according to the global routing table corresponding to the target routing table group number;
[0168] The second sending unit of the traffic to be forwarded is configured to send the traffic to be forwarded to the target transit gateway instance;
[0169] The second forwarding unit for the traffic to be forwarded is configured to control the target transit gateway instance to forward the traffic to be forwarded to the target business network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
[0170] In some optional implementations of this embodiment, the target transit gateway instance determination unit under the corresponding group may be further configured to:
[0171] In response to the detour information being pre-set for the target service network, determining a first transit gateway instance that the to-be-forwarded traffic should first reach during the detour process according to the global routing table corresponding to the target routing table group number and the detour information;
[0172] Correspondingly, the second sending unit of the traffic to be forwarded can be further configured as follows:
[0173] Send the traffic to be forwarded to the first transit gateway instance;
[0174] Correspondingly, the second forwarding unit of the traffic to be forwarded can be further configured as follows:
[0175] In response to the target service network not belonging to the service network in the area where the first transit gateway instance is located, controlling the first transit gateway instance to pass the to-be-forwarded traffic to the second transit gateway instance in the detour information in the form of an additional target routing table group number;
[0176] In response to the target business network belonging to the business network of the region where the second transit gateway instance is located, the second transit gateway instance is controlled to forward the traffic to be forwarded to the target business network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
[0177] This embodiment exists as a device embodiment corresponding to the above-mentioned method embodiment. The routing information processing device provided by this embodiment first constructs a global routing table on a cloud intelligent network instance composed of multiple transit gateway instances, and then uniformly records the routing information sent by each business network through the transit gateway instance of the region to which it belongs in the global routing table, so that the global routing table records the routing information of all business networks in each region, which can be directly provided in a single query, making it easier to view and modify operations; on the basis of having the global routing table, the routing information recorded in the global routing table is rewritten to the regional routing table constructed on each transit gateway instance, so that the specific forwarding behavior of the traffic to be forwarded can be specifically executed with the help of the regional routing table. In summary, by applying this solution, the ability to obtain a global routing table with comprehensive and complete routing information in a single operation can be provided while ensuring the correct forwarding of cloud intelligent network traffic.
[0178] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the routing information processing method described in any of the above embodiments can be implemented when the at least one processor executes.
[0179] According to an embodiment of the present disclosure, the present disclosure further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the routing information processing method described in any of the above embodiments when executed.
[0180] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, which, when executed by a processor, can implement the routing information processing method described in any of the above embodiments.
[0181] Fig. 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0182] like Fig. 9 As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0183] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0184] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as the routing information processing method. For example, in some embodiments, the routing information processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the routing information processing method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the routing information processing method in any other appropriate manner (e.g., by means of firmware).
[0185] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0186] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0187] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0188] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0189] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0190] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.
[0191] According to the technical solution of the embodiment of the present disclosure, a global routing table is first constructed on a cloud intelligent network instance composed of multiple transit gateway instances, and then the routing information sent by each business network through the transit gateway instance of the region to which it belongs is uniformly recorded in the global routing table, so that the routing information of all business networks in each region is recorded in the global routing table, which can be directly provided in a single query, making it easier to view and modify operations; on the basis of having the global routing table, the routing information recorded in the global routing table is rewritten to the regional routing table constructed on each transit gateway instance, so that the specific forwarding behavior of the traffic to be forwarded can be specifically executed with the help of the regional routing table. In summary, by applying this solution, the ability to obtain a global routing table with comprehensive and complete routing information in a single operation can be provided while ensuring the correct forwarding of cloud intelligent network traffic.
[0192] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0193] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for processing routing information, include: Receive routing information uploaded by each business network through its transit gateway instance, where multiple transit gateway instances constitute a cloud intelligent network instance, and different transit gateway instances correspond to different regions. The business network in each region only transmits data with the transit gateway instance in the region; Recording the routing information in a pre-created global routing table; The routing information recorded in the global routing table is rewritten into the regional routing table created in advance for each transit gateway instance.
2. The method according to claim 1, further comprising: include: Determine, according to the global routing table, a target transit gateway instance to which a target service network corresponding to the received traffic to be forwarded belongs; Sending the traffic to be forwarded to the target transit gateway instance; Control the target transit gateway instance to forward the traffic to be forwarded to the target business network according to the routing information recorded in the corresponding regional routing table.
3. The method according to claim 1, further comprising: include: Receive a routing information viewing request initiated by a target user; The latest global routing table is returned to the target user as a request response, and the regional routing table exists on the transit gateway instance of the region to which it belongs as a hidden routing table that is not exposed to the outside.
4. The method according to claim 3, further comprising: include: Determining a routing information modification method according to a received routing information modification instruction for the global routing table; The routing information recorded in the global routing table is modified according to the routing information modification method to obtain a modified global routing table.
5. The method according to claim 4, in, Before modifying the routing information recorded in the global routing table according to the routing information modification method, the method further includes: Determining the actual authority level of the user who initiated the routing information modification instruction; In response to the actual authority level being higher than the preset authority level, the step of modifying the routing information recorded in the global routing table according to the routing information modification method is performed.
6. The method according to claim 4, further comprising: include: Determine the difference in routing information before and after the modification according to the modified global routing table and the global routing table before the modification; The routing information recorded in the corresponding regional routing table is modified according to the differential routing information.
7. The method according to claim 6, in, The modifying of the routing information recorded in the corresponding regional routing table according to the difference routing information includes: Determine the affected target transit gateway instance according to the differential routing information; The routing information recorded in the regional routing table of the target transit gateway instance is modified according to the differential routing information to obtain a modified regional routing table.
8. The method according to any one of claims 1 to 7, further comprising: include: According to the existing business isolation requirements, determine the number of routing table groups that meet the business isolation requirements; Create multiple groups of routing tables with the same number as the number of routing table groups, each group of routing tables includes a global routing table with the same group number and regional routing tables with the same number as the transit gateway instances.
9. The method according to claim 8, further comprising: include: Determine the service type to which the received traffic to be forwarded belongs, the service type including: testing, production, updating and experimenting; Determine the corresponding target routing table group number according to the business type; Determine, according to the global routing table corresponding to the target routing table group number, the target transit gateway instance to which the target service network corresponding to the traffic to be forwarded belongs; Sending the traffic to be forwarded to the target transit gateway instance; Control the target transit gateway instance to forward the traffic to be forwarded to the target business network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
10. The method according to claim 9, in, The determining, according to the global routing table corresponding to the target routing table group number, a target transit gateway instance to which the target service network corresponding to the to-be-forwarded traffic belongs includes: In response to the detour information being pre-set for the target service network, determining a first transit gateway instance that the to-be-forwarded traffic should first reach during the detour according to the global routing table corresponding to the target routing table group number and the detour information; Correspondingly, sending the traffic to be forwarded to the target transit gateway instance includes: Sending the traffic to be forwarded to the first transit gateway instance; Correspondingly, the controlling the target transit gateway instance to forward the traffic to be forwarded to the target service network according to the routing information recorded in the regional routing table corresponding to the target routing table group number includes: In response to the target service network not belonging to the service network in the area where the first transit gateway instance is located, controlling the first transit gateway instance to pass the to-be-forwarded traffic to the second transit gateway instance in the detour information in the form of attaching the target routing table group number; In response to the target business network belonging to the business network of the area where the second transit gateway instance is located, the second transit gateway instance is controlled to forward the traffic to be forwarded to the target business network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
11. A routing information processing device, include: A routing information receiving unit is configured to receive routing information uploaded by each service network through its transit gateway instance, wherein a plurality of transit gateway instances constitute a cloud intelligent network instance, and different transit gateway instances correspond to different regions, respectively. A service network in each region only transmits data to the transit gateway instance in the region; a routing information recording unit, configured to record the routing information in a pre-created global routing table; The routing information rewriting unit is configured to rewrite the routing information recorded in the global routing table into the regional routing tables pre-created for each of the transit gateway instances.
12. The device according to claim 11, further comprising: include: A target transit gateway instance determining unit is configured to determine, according to the global routing table, a target transit gateway instance to which a target service network corresponding to the received traffic to be forwarded belongs; A first sending unit for the traffic to be forwarded is configured to send the traffic to be forwarded to the target transit gateway instance; The first forwarding unit for the traffic to be forwarded is configured to control the target transit gateway instance to forward the traffic to be forwarded to the target service network according to the routing information recorded in the corresponding regional routing table.
13. The device according to claim 11, further comprising: include: A viewing request receiving unit, configured to receive a routing information viewing request initiated by a target user; The global routing table returning unit is configured to return the latest global routing table to the target user as a request response, and the regional routing table exists on the transit gateway instance of the region as a hidden routing table that is not exposed to the outside.
14. The device according to claim 13, further comprising: include: a modification mode determining unit, configured to determine a routing information modification mode according to a received routing information modification instruction for the global routing table; The global routing table modification unit is configured to modify the routing information recorded in the global routing table according to the routing information modification method to obtain a modified global routing table.
15. The device according to claim 14, further comprising: include: an actual authority level determination unit, configured to determine the actual authority level of the user who initiated the routing information modification instruction before modifying the routing information recorded in the global routing table according to the routing information modification method; The authority verification execution unit is configured to execute the step of modifying the routing information recorded in the global routing table according to the routing information modification method in response to the actual authority level being higher than the preset authority level.
16. The device according to claim 14, further comprising: include: The difference routing information determining unit is configured to determine the difference routing information before and after the modification according to the modified global routing table and the global routing table before the modification; The regional routing table modification unit is configured to modify the routing information recorded in the corresponding regional routing table according to the differential routing information.
17. The device according to claim 16, in, The regional routing table modification unit is further configured to: Determine the affected target transit gateway instance according to the differential routing information; The routing information recorded in the regional routing table of the target transit gateway instance is modified according to the differential routing information to obtain a modified regional routing table.
18. The device according to any one of claims 11 to 17, further comprising: include: A service isolation requirement processing unit, configured to determine the number of routing table groups that meet the service isolation requirement according to the existing service isolation requirement; The multiple routing table creation unit is configured to create multiple routing tables of the same number as the routing table groups, each routing table group includes a global routing table with the same group number and regional routing tables of the same number as the transit gateway instances.
19. The device according to claim 18, further comprising: include: A service type unit, configured to determine a service type to which the received traffic to be forwarded belongs, wherein the service type includes: testing, production, updating, and experimenting; A group number determination unit, configured to determine a corresponding target routing table group number according to the service type; The target transit gateway instance determination unit under the corresponding group is configured to determine the target transit gateway instance to which the target service network corresponding to the to-be-forwarded traffic belongs according to the global routing table corresponding to the target routing table group number; The second sending unit of the traffic to be forwarded is configured to send the traffic to be forwarded to the target transit gateway instance; The second forwarding unit for the traffic to be forwarded is configured to control the target transit gateway instance to forward the traffic to be forwarded to the target service network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
20. The device according to claim 19, in, The target transit gateway instance determination unit under the corresponding group is further configured to: In response to the detour information being pre-set for the target service network, determining a first transit gateway instance that the to-be-forwarded traffic should first reach during the detour according to the global routing table corresponding to the target routing table group number and the detour information; Correspondingly, the second sending unit of the traffic to be forwarded is further configured as follows: Sending the traffic to be forwarded to the first transit gateway instance; Correspondingly, the second forwarding unit of the traffic to be forwarded is further configured as follows: In response to the target service network not belonging to the service network in the area where the first transit gateway instance is located, controlling the first transit gateway instance to pass the to-be-forwarded traffic to the second transit gateway instance in the detour information in the form of attaching the target routing table group number; In response to the target business network belonging to the business network of the area where the second transit gateway instance is located, the second transit gateway instance is controlled to forward the traffic to be forwarded to the target business network according to the routing information recorded in the regional routing table corresponding to the target routing table group number.
21. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the routing information processing method according to any one of claims 1 to 10.
22. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the routing information processing method according to any one of claims 1 to 10.
23. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the method for processing routing information according to any one of claims 1 to 10 are implemented.
