Routing configuration method, communication system, apparatus, device, and storage medium

By controlling the automated collection and conversion of routing information through equipment and configuring multiple VRF routing tables, the problems of low efficiency and lack of service isolation in existing technologies have been solved, thus achieving efficient and stable overlay network services.

CN122120184APending Publication Date: 2026-05-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2026-04-29
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, the routing configuration process for overlaying network services relies on manual operation, which is inefficient, and the routing information of different services is not isolated, which can easily lead to abnormal data transmission.

Method used

By setting up control devices, routing information is automatically collected and converted into routing information required for overlay network services. Multiple VRF routing tables are configured to isolate routing information for different services, thereby achieving automated routing configuration.

Benefits of technology

It improves the efficiency of routing information configuration, avoids the delay of manual configuration, enhances the immediacy of overlay network services, and realizes the isolation of business routes, ensuring the stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120184A_ABST
    Figure CN122120184A_ABST
Patent Text Reader

Abstract

The application discloses a routing configuration method, a communication system, an apparatus, a device and a storage medium, and relates to the technical field of communication. The method comprises the following steps: collecting routing information from a first network; determining a target path set according to the routing information; and setting an attribute value of a next hop attribute in the routing information as identification information of the target path set to obtain updated routing information. According to the scheme, the routing information in the first network can be automatically converted into routing information for providing overlay network services after the routing information is collected, without manual intervention, and the scheme is relatively efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a routing configuration method, communication system, apparatus, device, and storage medium. Background Technology

[0002] In related technologies, some types of networks, such as DCI (Data Center Interconnect) networks, are used to enable communication between network nodes that are physically dispersed in different geographical areas.

[0003] Building upon the aforementioned networks, overlay networks, such as vDCI (virtual DCI) networks, can be further constructed. This overlay network provides differentiated network services (hereinafter referred to as overlay network services) for different communication services occurring between network nodes. In related technologies, after initial configuration, routing information matching the communication services handled by each network node is configured in its routing table to achieve the aforementioned overlay network services.

[0004] Configuring routing information to match communication services essentially involves configuring the routing information to guide data forwarding between different network nodes. Currently, this configuration process is completed by the operations and maintenance personnel of the overlay network services, which is inefficient. Summary of the Invention

[0005] This application provides a routing configuration method, a communication system, an apparatus, a device, and a storage medium. The technical solutions provided by this application include the following aspects.

[0006] According to one aspect of the embodiments of this application, a routing configuration method is provided, the method comprising: Routing information is collected from the first network, which is used to provide communication for M network nodes, where M is an integer greater than 2; A set of target paths is determined based on the routing information. The set of target paths includes at least one transmission path, which is a path through which data transmission is performed by at least two of the M network nodes. The updated routing information is obtained by setting the value of the next-hop attribute in the routing information to the identifier information of the target path set. The updated routing information is used to add to the routing table of the first network node, which is the recipient of the routing information among the M network nodes.

[0007] According to one aspect of the embodiments of this application, a communication system is provided, the communication system including a control device and M network nodes, where M is an integer greater than 2; The control device is used to collect routing information from a first network, which is used for communication between the M network nodes. The control device is further configured to determine a set of target paths based on the routing information, the set of target paths including at least one transmission path, the transmission path being a path through which data transmission is performed by at least two of the M network nodes; The control device is further configured to set the attribute value of the next-hop attribute in the routing information to the identifier information of the target path set, thereby obtaining updated routing information; The control device is also used to send routing configuration information to a first network node, where the first network node is the recipient of the routing information among the M network nodes. The first network node is used to add the updated routing information to its routing table upon receiving the routing configuration information.

[0008] According to one aspect of the embodiments of this application, a routing configuration method is provided, the method being applied to a communication system, the communication system including a control device and M network nodes, where M is an integer greater than 2; the method includes: The control device collects routing information from a first network, which is used for communication between the M network nodes. The control device determines a set of target paths based on the routing information. The set of target paths includes at least one transmission path, which is a path through which data transmission is performed by at least two of the M network nodes. The control device sets the attribute value of the next-hop attribute in the routing information to the identifier information of the target path set to obtain the updated routing information; The control device sends routing configuration information to the first network node, where the first network node is the recipient of the routing information among the M network nodes. Upon receiving the routing configuration information, the first network node adds the updated routing information to its routing table.

[0009] According to one aspect of the embodiments of this application, a routing configuration apparatus is provided, the apparatus comprising: The routing acquisition module is used to collect routing information from the first network, which is used for communication between M network nodes, where M is an integer greater than 2. A set determination module is used to determine a set of target paths based on the routing information. The set of target paths includes at least one transmission path, which is a path through which data transmission is performed by at least two of the M network nodes. The route update module is used to set the attribute value of the next hop attribute in the route information to the identifier information of the target path set to obtain the updated route information; The updated routing information is used to add to the routing table of the first network node, which is the recipient of the routing information among the M network nodes.

[0010] According to one aspect of the embodiments of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-described routing configuration method.

[0011] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the above-described routing configuration method.

[0012] According to one aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program executed by a processor to implement the above-described routing configuration method.

[0013] The technical solution provided in this application can bring the following beneficial effects: After collecting routing information from the first network, the next-hop attribute value in the routing information is reset to obtain updated routing information for adding nodes to the first network. Since the next-hop attribute in the updated routing information, which indicates the objects through which data traffic will pass during data transmission, is the identifier of the target path set, and the transmission paths included in the target path set are precisely the paths through which data transmission is performed by network nodes served by the first network, the above process enables the first network node to provide overlay network services based on the updated routing information in the routing table. Furthermore, the target path set can be determined based on the routing information during the above routing information conversion process. Therefore, after collecting routing information from the first network, the above scheme can automatically convert it into routing information for providing overlay network services without manual intervention. In summary, the above scheme achieves automated configuration of network node routing information by collecting routing information from the first network, thereby avoiding the delay caused by manual configuration and is more efficient. In addition, by improving the efficiency of routing information configuration, this scheme can correspondingly improve the timeliness of providing overlay network services to network nodes. Attached Figure Description

[0014] Figure 1 This is a schematic diagram illustrating an example of communication between different network nodes via a first network, provided in one embodiment of this application. Figure 2 This is a schematic diagram of a vDCI network service provided in one embodiment of this application; Figure 3 This is a schematic diagram illustrating the configuration process of vDCI routing information provided in one embodiment of this application; Figure 4 This is a schematic diagram of a communication system provided in one embodiment of this application; Figure 5 This is a schematic diagram of a routing configuration process and a data packet forwarding process provided in one embodiment of this application; Figure 6 This is a flowchart of a routing configuration method provided in one embodiment of this application; Figure 7 This is a schematic diagram illustrating an example of route advertising provided in one embodiment of this application; Figure 8 This is a logical diagram illustrating the process of generating updated routing information according to one embodiment of this application; Figure 9 This is a schematic diagram illustrating an example of the configuration mechanism for routing information in a vDCI routing table provided in one embodiment of this application; Figure 10 This is a flowchart of a routing configuration method provided in yet another embodiment of this application; Figure 11 This is a logical diagram illustrating the configuration and matching process of a path set provided in one embodiment of this application; Figure 12 This is a flowchart of a routing information processing method provided in one embodiment of this application; Figure 13 This is a schematic diagram of the logic for generating routing information in a VRF routing table provided in one embodiment of this application; Figure 14 This is a flowchart of a route deletion method provided in one embodiment of this application; Figure 15 This is a flowchart of a method for processing the cancellation of routing information provided in one embodiment of this application; Figure 16 This is a schematic diagram of the synchronization mechanism of DCI routing and vDCI routing provided in one embodiment of this application; Figure 17 This is a flowchart of a data packet forwarding method provided in one embodiment of this application; Figure 18 This is a schematic diagram of a vDCI route generation and usage process implemented by a control device and a vDCI device according to an embodiment of this application; Figure 19 This is a block diagram of a routing configuration apparatus provided in one embodiment of this application; Figure 20 This is a structural block diagram of a computer device provided in one embodiment of this application. Detailed Implementation

[0015] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0016] Before introducing the technical solutions provided in this application, some terms involved in this application will be explained. The following related explanations are optional and can be combined with the technical solutions of the embodiments of this application in any way, all of which fall within the protection scope of this application. The embodiments of this application include at least some of the following contents.

[0017] DCI network: Data Center Interconnection Network. It connects physically distributed data centers in different geographical areas, enabling them to communicate with each other. DCI networks are often also called backbone networks; the two are the same concept and are interchangeable.

[0018] vDCI network: Built on DCI network, it is used to provide differentiated network services for different communication services occurring between data centers.

[0019] DCN (Data Center Network): Responsible for communication between servers within the data center, as well as between servers and users.

[0020] RPC (Remote Procedure Call): A distributed communication technology that allows a device to call data, methods, or functions from another device over a network.

[0021] BGP (Border Gateway Protocol): A protocol used to discover and propagate routing information in DCI networks, thereby guiding and controlling traffic forwarding. It is a cornerstone of the Internet. VRF (Virtual Routing Forward): A network traffic isolation technology that essentially divides a network device into at least two independent virtual router instances. Each virtual router instance maintains its own routing table, and the routing tables maintained by different virtual router instances are completely isolated.

[0022] SR (Segment Routing): Unlike traditional forwarding (where each network device looks up the routing table based on the destination IP of the packet and forwards it without knowing where the packet came from or where it will eventually go), segment routing technology determines the forwarding path in the network (divided into multiple segments) at the header of the packet (i.e., the first hop, where the packet is sent). Other network devices only need to forward the packet according to the segment route.

[0023] SR-Path (Segment Routing Path): It fully describes the multi-segment forwarding path in SR technology.

[0024] DSCP (Differentiated Services Code Point): A marker field (usually 6 bits) in a data packet that indicates the priority of the data packet, enabling network devices to implement differentiated traffic forwarding policies based on this priority.

[0025] Please refer to Figure 1 It illustrates a schematic diagram of an example of communication between different network nodes via a first network, provided in one embodiment of this application.

[0026] In this example, each network node 10 includes a server 11 for implementing the business functions of that network node and a communication device 12 for connecting the network node 10 to a first network. The servers 11 within the same network node can communicate with each other through the network node's internal network and with the user terminals 13 served by the network node. Simultaneously, the network node 10 can use the communication device 12 to transmit data with other network nodes, thereby facilitating various cross-network node services. Optionally, the communication device can be any device that supports providing network communication services, such as a switch, router, or bridge. In one example, the communication device is a box-type switch.

[0027] The aforementioned network node 10 can be any node within the coverage area of ​​the first network that has data transmission needs and capabilities, such as a computer room, data center, computing center, computing resource cluster, etc. Optionally, the aforementioned first network is a WAN (Wide Area Network), and the aforementioned network node 10 can be a computer room, data center, computing center, computing resource cluster, etc. covered by the first network.

[0028] Optionally, the first network mentioned above is a DCI network, and correspondingly, the network node mentioned above is a data center, the communication equipment mentioned above can also be called DCI equipment, and the internal network of the network node is a DCN.

[0029] The booming development of cloud computing and the explosive growth in AI (Artificial Intelligence) computing demands have brought increasing challenges to the basic DCI network. This is because different services have significantly different network service requirements. For example, game streaming services require a stable, reliable, and low-latency high-quality network, while offline services such as data warehousing require larger network bandwidth and lower-cost networks. Other services need to strike a balance between quality and cost. It is difficult to simultaneously meet the network requirements of all services without them interfering with each other within a single, large DCI network.

[0030] Against this backdrop of complex and ever-changing business needs, vDCI networks emerged. vDCI technology uses overlay tunneling to create separate transmission paths for different types of services and performs flexible, on-demand scheduling based on the service provider's routing information. In this scenario, each transmission path can be viewed as a "tunnel" created within the DCI network, "packing" data traffic from different services into different tunnels and transmitting the traffic through different paths—this is the differentiated service offered by vDCI networks.

[0031] For example, please refer to Figure 2 Between data center A and data center B, corresponding transmission paths can be created for various network service requirements, such as low latency, high quality, and low cost. Customers can choose different network service requirements based on their actual needs. Management device 20 is the vDCI service entry point; it can directly initiate the activation, scheduling, and revocation of vDCI network services. Taking data center A as the source of the transmission path as an example, in this case, management device 20 only needs to configure routing information that guides the transmission path in the routing tables of the vDCI devices included in data center A that provide vDCI network services to achieve the aforementioned vDCI network service. To distinguish it from the routing information published and propagated in the DCI network, the routing information created in the routing tables of vDCI devices can also be called vDCI routing information. Figure 3 As shown, the vDCI network is overlaid on the DCI network. The operation and maintenance personnel only need to perform vDCI configuration orchestration through the vDCI device management device 20 to create tunnels corresponding to different network service requirements for the vDCI device. Then, the operation and maintenance personnel can use the management device 20 to perform vDCI route scheduling to send the corresponding vDCI route information to the routing table of the vDCI device to complete the configuration process of vDCI route information.

[0032] However, the above routing configuration process still has the following problems: (1) Manual routing configuration is required. For example, when the IP address involved in a certain service changes, which requires updating the vDCI routing information, the update process relies on manual intervention. It requires the operation and maintenance personnel to remove the original vDCI routing information in the routing table of the vDCI device and then reissue the new vDCI routing information.

[0033] (2) Service routes are not isolated. The vDCI routing information for different services is in the same routing table. If the IP addresses of multiple services belong to the same network segment, they will affect each other in terms of network services. Furthermore, since there is only one routing table on the vDCI device, if the routing table is missed, incorrectly recorded, or mistakenly deleted, it will cause abnormal data transmission services for various services.

[0034] To address the aforementioned issues, this application establishes a control device to configure multiple routing tables for vDCI devices corresponding to different network service requirements, and to achieve automatic configuration of vDCI routing information. This will be further described in the following embodiments.

[0035] Please refer to Figure 4 The diagram illustrates a communication system provided in one embodiment of this application. The communication system includes a control device 30 and M network nodes 10, where M is an integer greater than 2.

[0036] Control device 30 is a computer device used to control network device 40 to provide overlay network services (such as vDCI network services) to network node 10. Optionally, network device 40 is a vDCI device for providing vDCI network services as described in the above embodiments. Network device 40 can be any device that supports providing network services, such as a switch, router, or bridge. In one example, network device 40 is a box switch.

[0037] The following section will briefly describe the routing configuration and data packet forwarding process involved in this application based on the communication system.

[0038] Please refer to Figure 5 This diagram illustrates a routing configuration process and a data packet forwarding process provided in one embodiment of this application. The routing configuration process and data packet forwarding process include the following stages 1 to 5.

[0039] In Phase 1, the control device issues configuration information to enable network devices to create N VRF routing tables and configure path sets for each of the N VRF routing tables, where N is an integer greater than 1. Different VRF routing tables are bound to different DSCP values. Therefore, the path set configured for a VRF routing table can also be considered as a set of paths that can satisfy the network service requirements reflected by the DSCP values ​​bound to the VRF routing table during data transmission.

[0040] Phase 2: The control device collects routing information from the DCI network.

[0041] In Phase 3, the control device sets the next-hop attribute of the collected routing information to the identifier information of the path set configured in the VRF routing table of the network device, thereby converting the DCI routing information into vDCI routing information.

[0042] Phase 4: The control device sends vDCI routing information to the network device, and the network device adds the vDCI routing information to its own VRF routing table.

[0043] Phase 5: After receiving a data packet, the network device determines the VRF routing table to use based on the DSCP value carried in the data packet, and forwards the data packet by querying the VRF routing table.

[0044] As can be seen, in the above scheme, on the one hand, by converting DCI routing information into vDCI routing information, automated configuration of vDCI routing information is achieved. On the other hand, by configuring N VRF routing tables for network devices, isolation of vDCI routing information for services with different requirements is achieved. In the following embodiments, the above scheme will be described in more detail from the perspective of the control device.

[0045] Please refer to Figure 6 The diagram illustrates a flowchart of a routing configuration method provided in one embodiment of this application. The execution entity for each step of the method is a computer device, such as control device 30. The method may include at least one of the following steps (610-630).

[0046] Step 610: Collect routing information from the first network.

[0047] The first network is used to facilitate communication between M network nodes, where M is an integer greater than 2.

[0048] In some embodiments, the first network is used to enable M network nodes to communicate with each other.

[0049] In some embodiments, the first network is a WAN (Wide Area Network), and the network nodes can be any network node covered by the WAN that is configured with network devices, such as computer rooms, data centers, computing centers, computing resource clusters, etc.

[0050] Optionally, the first network mentioned above is a DCI network, and correspondingly, the network nodes mentioned above are data centers.

[0051] The routing information mentioned in this application embodiment can be any routing information collected from the DCI network. This routing information is sent from one of the M network nodes to another network node, providing path guidance for the receiving network node to perform data transmission. In some embodiments, the routing information includes a destination address, which indicates the final address to which the data traffic will reach during data transmission. Optionally, the destination address is the IP (Internet Protocol) address of the server in the network node that serves as the destination in the data transmission process.

[0052] In some embodiments, collecting routing information from the first network means collecting routing information reported by the communication devices (such as DCI devices) of M network nodes.

[0053] In some embodiments, the routing information further includes a next-hop attribute, the value of which indicates the object through which the data traffic will pass during data transmission. In the routing information collected from the first network, the value of the next-hop attribute indicates the network node through which the data traffic will pass during data transmission. Optionally, the value of the next-hop attribute in the routing information indicates the communication device of the second network node, which is the publisher of the routing information among the M network nodes; that is, the routing information is published through the communication device (such as a DCI device) of the second network node. In some embodiments, the next-hop attribute mentioned in this application refers to the inherent attribute NEXT_HOP defined by the BGP protocol. The value of the next-hop attribute in the above routing information indicates the address of the communication device of the next network node to which the data packet should be forwarded to in order to transmit the data packet to its destination address.

[0054] For example, please refer to Figure 7There are M network nodes, including data centers A, B, and C. In one scenario, the DCI device in data center B can act as a routing information publisher, publishing routing information to the DCI device in data center A. The destination address of this routing information can be the IP address of a server in data center C, and the next-hop attribute value can be the IP address of the DCI device in data center B. In this case, the routing information instructs the DCI device in data center A that if a data packet needs to be transmitted to a server in data center C, it should first be sent to the DCI device in data center B. In another scenario, the DCI device in data center C can also act as a routing information publisher, publishing routing information to the DCI device in data center A. The destination address of this routing information can be the IP address of a server in data center C, and the next-hop attribute value can be the IP address of the DCI device in data center C. In this case, the routing information instructs the DCI device in data center A that if a data packet needs to be transmitted to a server in data center C, it can be sent directly to the DCI device in data center C. Furthermore, after receiving the routing information, data center A can report it to the control device so that the control device can collect the routing information.

[0055] It should be noted that, in this embodiment, only a single routing information collected from the first network is used as an example. In practical applications, the processing described in this embodiment can be performed on all routing information collected from the first network.

[0056] Step 620: Determine the set of target paths based on the routing information.

[0057] The target path set includes at least one transmission path, which is a path through which data transmission is performed by at least two of the M network nodes.

[0058] Optionally, the transmission path is a path through which data transmission is performed by network devices at least two of the M network nodes. The network device mentioned in this embodiment is the aforementioned network device 40, such as a vDCI device.

[0059] For example, in the case of M network nodes including data center A, data center B and data center C, "network device of data center A -> network device of data center C" and "network device of data center A -> network device of data center B -> network device of data center C" can be regarded as two different transmission paths.

[0060] Optionally, the transmission paths mentioned in this application, due to their segmentation, can also be referred to as SR paths. Finding the optimal SR path for different types of vDCI services is a primary focus of backbone network traffic engineering (TE). This application merely references TE's SR paths and associates them with routing information. Optionally, the set of paths mentioned in this application can also be referred to as SR-Nexthop-Group.

[0061] The target path set is the set of paths that match the routing information from among the pre-configured path sets. Each pre-configured path set includes the path sets configured for the routing tables of M network nodes (or, in other words, the network devices of the network nodes).

[0062] For a more detailed configuration process of the above path set, and the process of matching the path set with routing information, please refer to the following examples, which will not be repeated here.

[0063] In some embodiments, step 620 includes at least one of steps 622 to 624 (not shown in the figures).

[0064] Step 622: Determine the network type information based on the routing information.

[0065] Network type information is used to indicate the type of network service requirement that uses routing information to perform data transmission.

[0066] For example, the network service requirements can be low latency, high quality, low cost, etc., which can be set as needed according to the actual business situation. This application does not limit this.

[0067] In some embodiments, the routing information carries network type information, so the network type information can be directly extracted from the routing information. Optionally, the publisher of the routing information (such as the communication device of the second network node) directly appends the aforementioned network type information to the routing information when publishing it. Therefore, when the receiver of the routing information (such as the communication device of the first network node) reports the routing information, the routing information already carries the aforementioned network type information.

[0068] In other embodiments, the routing information carries calculation parameters for network type information, and pre-configured calculation operations (such as multiplying by a fixed coefficient) can be performed on these calculation parameters to obtain the network type information.

[0069] Step 624: Determine the target path set based on the network type information.

[0070] In some embodiments, a set of paths matching the network type information is determined from a pre-configured set of paths, and this set is used as the target path set.

[0071] In the above embodiments, routing information can be used to determine network type information. Therefore, after determining the target path set based on the network type information and obtaining the updated routing information, it can be ensured that when data transmission is performed using the updated routing information, the network service requirements of the original routing information (i.e., the aforementioned network service requirement type) can be met, thereby ensuring the smooth construction of the overlay network used to provide differentiated network services.

[0072] In some embodiments, at least one transmission path in the aforementioned target path set uses a first network node as the source and a second network node as the destination. The first network node is the receiver of routing information among the M data centers, and the second network node is the publisher of routing information among the M network nodes.

[0073] Optionally, at least one transmission path in the aforementioned set of target paths uses the first network device as the source and the second network device as the destination, where the second network device is the network device of the second network node. The first network device is the network device of the first network node.

[0074] Step 624 includes the following steps: determining the target path set based on network type information, source information, and destination information.

[0075] In this application, the source information indicates the first network node among the M network nodes, and the destination information indicates the second network node among the M network nodes. That is, the source information indicates the receiver of the routing information among the M network nodes, and the destination information indicates the publisher of the routing information among the M network nodes. Furthermore, it should be noted that the source information can directly indicate the first network node, or it can be indicated by a network device that indicates the first network node. Similarly, the destination information can directly indicate the second network node, or it can be indicated by a network device that indicates the second network node; this application does not impose any limitations on this.

[0076] In some embodiments, a set of paths that simultaneously match network type information, source information, and destination information is determined from a pre-configured set of paths, and this set is used as the target path set.

[0077] In some embodiments, each pre-configured path set has corresponding identification information, and the identification information of different path sets is different. Optionally, the identification information of a path set can simultaneously indicate the source end, destination end, and network service requirement type matching the path set in that path set. Therefore, by matching the identification information of each pre-configured path set with the network type information, source end information, and destination end information respectively, the identification information of the target path set can be determined, thereby determining the target path set. For example, assuming that the first network node is data center B, the second data center is data center A, and the network service requirement type indicated by the network type information is low latency, the identification information of the target path set can be in the following form: NG_01_A_B_Low-Delay (NG_01_A_B_Low-Delay).

[0078] In the above embodiment, when determining the target path set, not only network type information but also source and destination information are considered. This ensures that all transmission paths in the target path set use the receiver of the original routing information as the destination and the publisher of the original routing information as the source. Consequently, the data transmission direction indicated by the updated routing information does not change compared to the data transmission direction of the original routing information, guaranteeing the correctness of the updated routing information.

[0079] Step 630: Set the attribute value of the next hop attribute in the routing information to the identifier information of the target path set to obtain the updated routing information.

[0080] In other words, after setting the value of the next-hop attribute in the routing information to the identifier of the target path set, the routing information with the above settings is used as the updated routing information. Therefore, the value of the next-hop attribute in the updated routing information is the identifier of the target path set.

[0081] The identification information of the target path set is used to indicate the target path set. Optionally, the identification information of the target path set can be used to indicate the target path set from the various pre-configured path sets.

[0082] In some embodiments, the original attribute value of the next-hop attribute in the routing information is the IP address of the network device of the second network node.

[0083] In some embodiments, step 630 includes: using the original attribute value of the next-hop attribute in the routing information as the attribute value of the backup next-hop attribute in the routing information, and then setting the attribute value of the next-hop attribute in the routing information as the identification information of the target path set, so as to change the routing information to the updated routing information.

[0084] For the next-hop attribute and backup next-hop attribute in the same routing information, the backup next-hop attribute is used to take over the function of the next-hop attribute when the attribute value of the next-hop attribute is invalid, and guides the objects that the data traffic should pass through during the data transmission process.

[0085] In other words, in the updated routing information, the value of the next-hop attribute is set to the identifier information of the target path set. In this case, the data traffic traverses the data path set during the data transmission process indicated by the value of the next-hop attribute. The backup next-hop attribute value is the original attribute value of the next-hop attribute in the routing information, such as the IP address of the communication device of the second network node.

[0086] In the above embodiment, before setting the attribute value of the next-hop attribute in the routing information to the identifier information of the target path set, the original attribute value in the next-hop attribute is retained as a backup in the updated routing information. This ensures that when the superimposed network service fails and the transmission path in the target path set cannot be used for data traffic transmission, the first network node (first network device) can still perform data packet forwarding according to the original next-hop attribute, thereby ensuring the fault tolerance of the data transmission process.

[0087] The updated routing information is used to add to the routing table of the first network node, which is the recipient of the routing information among the M network nodes.

[0088] In some embodiments, routing configuration information is sent to a first network node, which instructs that the updated routing information be added to the routing table of the first network node.

[0089] In some embodiments, the routing table of a network node is the routing table of the network device of the network node.

[0090] In some embodiments, routing configuration information is sent to a first network device, which is a network device of a first network node.

[0091] In some embodiments, the routing information is received by the communication device of the first network node, and the routing information is reported to the control device.

[0092] In some embodiments, the routing configuration information includes the updated routing information described above.

[0093] In some embodiments, routing configuration information containing updated routing information is sent to a first network node (or a first network device) via an RPC channel to control the first network node (or the first network device) to add the updated routing information to the routing table of the first network node.

[0094] A network node's routing table guides its data packet forwarding behavior; in other words, it guides the data packet forwarding behavior of the network devices within the network node. Optionally, when a network node receives a data packet, it looks up the destination address carried in the data packet in its own routing table. If the destination address matches the one carried in the data packet, it uses this as the routing information and forwards the data packet according to the next-hop attribute in the routing information.

[0095] The technical solutions provided in the embodiments of this application, such as Figure 8 As shown, after collecting routing information from the first network, the next-hop attribute value in the routing information is reset to obtain updated routing information for adding nodes to the first network. Since the next-hop attribute in the updated routing information, which indicates the objects through which data traffic will pass during data transmission, is the identifier information of the target path set, and the transmission paths included in the target path set are precisely the paths through which data transmission is performed by network nodes served by the first network, the above process enables the first network node to provide overlay network services (such as vDCI network services) based on the updated routing information in the routing table. Furthermore, the target path set can be determined based on the routing information during the above routing information conversion process. Therefore, after collecting routing information from the first network, the above scheme can automatically convert it into routing information for providing overlay network services without manual intervention. In summary, the above scheme achieves automated configuration of network node routing information by collecting routing information from the first network, thereby avoiding the delay caused by manual configuration and is more efficient. In addition, by improving the efficiency of routing information configuration, this scheme can correspondingly improve the immediacy of providing overlay network services to network nodes.

[0096] For example, please refer to Figure 9 This illustration shows a schematic diagram of an example of the configuration mechanism for routing information in a vDCI routing table provided in one embodiment of this application.

[0097] In this example, after collecting the raw BGP routing information reported by data center A, the path set table is queried to determine the set of paths whose attribute values ​​will be used as the primary next hop for the vDCI routing information corresponding to the raw BGP route. Simultaneously, the attribute values ​​of the next hop in the raw BGP routing information are retained in the vDCI routing information as backup next hop attribute values. It is evident that the vDCI routing information obtained through this mechanism is generated based on the raw BGP routing information; therefore, it can be dynamically generated to adapt to changes in the DCI network topology. Furthermore, this configuration mechanism defines the path set as the set of all SR forwarding paths between the source and destination ends for a certain type of vDCI network (a type of vDCI network corresponds to a type of network service requirement). Therefore, when the path set is used as the primary next hop for the vDCI routing information, load balancing across multiple tunnels can be achieved. Moreover, this backup mechanism introduces a dual next-hop backup mechanism, where the attribute value of the primary next hop is the path set, used to guide traffic forwarding along SR paths, thereby achieving traffic engineering and load balancing. The attribute value of the backup next hop is consistent with the original next hop of the BGP route, which can be used as a fallback when the SR path fails, ensuring network reliability. In summary, the vDCI routing configuration mechanism provided in this application has the following advantages and effects: fully utilizing SR paths to balance load, realizing on-demand scheduling of differentiated services, automatically adapting to network topology changes, ensuring reliability through a backup mechanism, and simplifying operation and maintenance complexity.

[0098] In addition, this application also supports the creation of multiple VRF routing tables for a network node to cope with services with different network service requirements. This will be described in more detail in the following embodiments.

[0099] Please refer to Figure 10 The diagram illustrates a flowchart of a routing configuration method provided in another embodiment of this application. The execution entity for each step of this method is a computer device, such as control device 30. The method may include at least one of the following steps (910-980).

[0100] Step 910: Send the first configuration information to the first network node. The first configuration information is used to create N routing tables for the first network node.

[0101] N is an integer greater than 1. The N routing tables correspond to different network service demand types. The N routing tables include the first routing table described below. All N routing tables are empty when initially created.

[0102] In some embodiments, first configuration information is sent to a first network device. The first network device creates and stores N routing tables.

[0103] In some embodiments, the first configuration information is further used to create DSCP values ​​corresponding to N routing tables, and the DSCP values ​​corresponding to the routing tables are used to determine whether to use the routing table when performing data packet forwarding.

[0104] For example, the first configuration information is used to configure three routing tables for the first network node. The network service requirement type corresponding to the first routing table in the three routing tables is low latency, the network service requirement type corresponding to the second routing table in the three routing tables is high quality, and the network service requirement type corresponding to the third routing table in the three routing tables is low cost.

[0105] In some embodiments, the N routing tables are isolated from each other through VRF technology, and therefore can also be called VRF routing tables.

[0106] For example, the DSCP values ​​and network service requirement types corresponding to the N routing tables configured through the first configuration information are shown in Table 1 below.

[0107]

[0108] As can be seen, the three routing tables correspond to different types of network service requirements and different DSCP values.

[0109] Step 920: Send second configuration information to the first network node. The second configuration information is used to configure path sets for at least one of the N routing tables, and the transmission paths in the path sets configured for at least one routing table all use the first network node as the source.

[0110] In some embodiments, second configuration information is sent to the first network device. The transmission paths in the path sets configured for at least one routing table all originate from the first network device.

[0111] In some embodiments, the destinations of transmission paths within the same path set are the same.

[0112] In some embodiments, the second configuration information includes at least one sub-configuration information. The sub-configuration information is used to configure path sets for X routing tables out of N routing tables, wherein the transmission paths in the path sets configured for each of the X routing tables all use the first network node (or the first network device) as the source and have the same destination, where X is a positive integer less than or equal to N. When the second configuration information includes at least two sub-configuration information, the at least two sub-configuration information can be sent simultaneously or at different times; this application does not limit this.

[0113] For example, for the three routing tables shown in Table 1 above, a single sub-configuration information can be used to configure a transmission path set NG_01_A_B_Low-Delay (including two transmission paths) for Low-Delay-Vrf, a transmission path set NG_02_A_B_Normal (including eight transmission paths) for Normal-Vrf, and a transmission path set NG_03_A_B_Low-Cost (including four transmission paths) for Low-Cost-Vrf, for a total of 14 transmission paths. All 14 transmission paths use the first network device as the source and the same network device as the destination. For example, the two transmission paths in NG_01_A_B_Low-Delay are shown in Table 2 below. They both use the vDCI-A device (the first network device) as the source and the vDCI-B device (another vDCI device different from vDCI-A) as the destination.

[0114]

[0115] For example, the path sets configured for the three routing tables in Table 1 above, the identification information of these path sets, the correspondence between these path sets and the routing tables, and the source and destination ends of the transmission paths in these path sets can be shown in Table 3 below through the second configuration information.

[0116]

[0117] It is evident that the transmission paths within the same path set have the same destination, while different path sets configured for the same routing table can have different destinations. The transmission paths within any path set configured for the first network device all use the first network device as the source.

[0118] In some embodiments, configuring a path set for at least one of the N routing tables includes at least one of the following: determining the path set configured for each of the at least one routing table, and completing the creation of transmission paths in the path set configured for each of the at least one routing table. The creation of the transmission path may include any preparatory work performed before data transmission using the transmission path, such as data generation, port specification, hardware allocation, etc., which are not limited in this application.

[0119] In this embodiment, as Figure 11As shown, multiple routing tables are configured for network nodes by issuing the first configuration information. Since these multiple routing tables correspond to different network service requirement types, the above scheme can support the management and use of routing information for different services with different network service requirements in different routing tables, thereby avoiding interference between services and reducing the frequency of abnormal phenomena caused by overlapping network services. Furthermore, in the above embodiment, the corresponding path set is configured for the routing table of the network node by issuing the second configuration information, thereby enabling the matching of network service requirement types and path sets by utilizing the matching relationship between routing tables and network service requirement types.

[0120] Furthermore, in related technologies, since all vDCI routing information for all services is maintained in a single routing table on the vDCI device, to ensure the stability of the routing table application, all vDCI routing information needs to be configured strictly according to a pre-defined format. For example, the mask length of all vDCI routing information needs to be 32 bits. However, using the technical solution of this application, after creating N routing tables for the same vDCI device (such as the network device of the first network node), due to the implementation of service separation, it is no longer necessary for all vDCI routing information to use a 32-bit mask length. For example, a 28-bit / 26-bit mask length can be used instead, thereby reducing the total table size of the routing table in the vDCI device, saving resources, and making the device operation more stable and reliable.

[0121] Step 930: Collect routing information from the first network.

[0122] Step 940: Determine the network type information based on the routing information.

[0123] In some embodiments, step 940 includes: extracting at least one BGP community attribute value carried by the routing information.

[0124] The BGP community attribute values ​​carried in the routing information include network type attribute values ​​and source attribute values. Each network type attribute value is used to indicate a type of network service requirement. The network type information includes each network type attribute value from at least one BGP community attribute value.

[0125] For example, the routing information carries a BGP community attribute value, and the network type attribute value in the BGP community attribute value can be directly used as network type information.

[0126] For example, the routing information carries two BGP community attribute values, and the network type information includes the network type attribute values ​​included in each of the two BGP community attribute values.

[0127] Optionally, different network type attribute values ​​indicate different types of network service requirements.

[0128] For example, Table 4 below shows an example of the correspondence between network service requirement types and BGP community attribute values.

[0129]

[0130] Among them, 65001, 65002, and 65003 are the network type attribute values.

[0131] The source attribute value is used to determine the source information. That is, the source attribute value is used to determine the recipient of the routing information (the first network node) among M network nodes. In some embodiments, the source information directly indicates the first network node, and the source attribute value is precisely the identification information of the first network node; therefore, the source attribute value can be directly used as the source information. In other embodiments, the source information indicates the first network node by indicating its network device; therefore, the first network node can be determined based on the source attribute value, and then the IP address of the first network node's network device can be determined as the source information.

[0132] In some embodiments, the above method further includes the step of determining the destination information based on the next-hop attribute in the routing information.

[0133] In some embodiments, the next-hop attribute value in the routing information is the IP address of the communication device of the second network node. This IP address can be mapped to the identification information of the second network node as destination information, or it can be mapped to the IP address of the network device (vDCI device) of the second data center as destination information.

[0134] Step 950: Determine the first routing table from the existing routing tables that matches both the network type information and the source information.

[0135] Each routing table corresponds to a network service requirement type. The network service requirement type indicated by the network type information includes the network service requirement type corresponding to the first routing table, and the first routing table is the routing table configured for the first network node (first network device).

[0136] In some embodiments, the routing table configured for a network node is the same as the routing table configured for the network device of the network node.

[0137] In some embodiments, each created routing table refers to the full routing tables created by M network nodes. Since these routing tables are created by the control device issuing configuration information (such as the first configuration information mentioned above), these routing tables are known to the control device.

[0138] In some embodiments, the created routing tables are the full routing tables created by the respective network devices of the M network nodes.

[0139] For example, assuming that the network service requirement type indicated by the network type information includes low latency, and the first network node indicated by the source information is the network node where vDCI-A is located, then according to the network type information and the source information, the routing table Low-Delay-Vrf in Table 3 above can be determined as the first routing table. The network service requirement type corresponding to the first routing table is low latency, and it is a routing table configured for the first network device vDCI-A.

[0140] In some embodiments, step 950 includes: determining, based on the correspondence data, a routing table corresponding to the BGP community attribute value carried in the routing information from the various routing tables that have been created, and using it as the first routing table.

[0141] The mapping data is used to record the mapping relationship between each created routing table and the BGP community attribute value. The BGP community attribute value corresponding to the routing table is used to indicate the network service requirement type corresponding to the routing table, and to indicate the network node that is configured with the routing table.

[0142] For example, the BGP community attribute value corresponding to the routing table Low-Delay-Vrf in Table 3 above is 65001:A. 65001 indicates that the network service requirement type corresponding to this routing table is low latency, and A indicates that the network device configured with this routing table belongs to data center A. In this case, if the routing information also carries the BGP community attribute value 65001:A, the routing table Low-Delay-Vrf can be used as the first routing table.

[0143] In the above embodiment, network type information is carried in the routing information by introducing a new definition for the community attribute value in the standard protocol. On the one hand, there is no need to add fields to the existing BGP routing information, thus controlling the implementation cost of the scheme. On the other hand, the first routing table can be selected by comparing whether the BGP community attribute value carried in the routing information is consistent with the BGP community attribute value corresponding to the routing table. The logic is simple and helps to quickly determine the set of target paths.

[0144] Step 960: From the various path sets configured for the first routing table, query the path set that matches the destination information, and use it as the target path set.

[0145] Within the same path set, transmission paths share the same source and destination, and all transmission paths in the path set matching the destination information use the second network node as the destination. Optionally, all transmission paths in the path set matching the destination information use the second network device as the destination.

[0146] For example, assuming the first routing table is the Low-Delay-Vrf routing table in Table 3 above, and the second network node indicated by the destination information is the network node where vDCI-B is located, since the transmission paths in {Transmission Path 1, Transmission Path 2} and {Transmission Path 101, Transmission Path 102} configured for Low-Delay-Vrf all use vDCI-B as the destination, {Transmission Path 1, Transmission Path 2} is taken as the target path set.

[0147] In the above embodiments, such as Figure 11 As shown, the first routing table is determined based on network type information and source information (the routing table corresponding to the low-cost network service requirement type is found based on network type information, and the routing table for the first network node is determined based on source information, thus enabling the determination of the first routing table from the various created routing tables). Then, based on destination information, the target path set (with the second network node as the destination) is determined from the various path sets configured for the first routing table. This process determines the target path set in two steps, with the second step refining the matching to the path set level. Therefore, it is unnecessary to traverse all path sets configured for M network nodes, thereby improving the efficiency of the routing configuration process.

[0148] Step 970: Set the attribute value of the next hop attribute in the routing information to the identifier information of the target path set to obtain the updated routing information.

[0149] For example, when the target path set is {transmission path 1, transmission path 2} in Table 3, the attribute value of the next hop attribute in the routing information is set to the identifier information NG_01_A_B_Low-Delay of the target path set to obtain the updated routing information.

[0150] It should be noted that in some embodiments, network type information can indicate at least two types of network service requests. Correspondingly, there can be at least two first routing tables that match both the network type information and the source information. From these at least two first routing tables, a path set can be retrieved to determine at least two target path sets. Furthermore, by using the identification information of each of the at least two target path sets, the attribute value setting process for the aforementioned next-hop attribute is completed, thus obtaining at least two updated routing information sets. That is to say, in this embodiment, at least two updated routing information sets can be obtained based on one routing information set.

[0151] Step 980: Send routing configuration information to the first network node. The routing configuration information is used to instruct the first network node to add the updated routing information to its first routing table.

[0152] In some embodiments, sending routing configuration information to the first network node is equivalent to sending routing configuration information to the first network device.

[0153] In some embodiments, step 980 includes: packaging P updated routing information into routing configuration information and sending it to the first network node.

[0154] Here, the P updated routing information includes the updated routing information, and the attribute value of the next hop in each of the P updated routing information is the identification information of the path set configured for the first routing table. The routing configuration information is used to indicate that the P updated routing information should be added to the first routing table. P is an integer greater than 1.

[0155] Optionally, routing configuration information containing P updated routing information can be sent to the first network node via an RPC channel to control the first network node to add the P updated routing information to the first routing table of the first network node.

[0156] For example, P=2, the first routing table is Low-Delay-Vrf as shown in Table 3, one of the two updated routing information has a next-hop attribute of NG_01_A_B_Low-Delay, and the other has a next-hop attribute of NG_04_A_C_Low-Delay.

[0157] The process of obtaining the P updated routing information can be found in the process of obtaining the updated routing information described above, and will not be repeated here.

[0158] In the above embodiment, updated routing information that needs to be added to the same routing table is distributed in batches, thereby ensuring the independence of routing information in different routing tables. In addition, distributing updated routing information in batches also helps to reduce the communication overhead of the routing configuration process.

[0159] The following example illustrates the process of processing the full routing information collected from the DCI network.

[0160] Please refer to Figure 12 The diagram illustrates a flowchart of a routing information processing method provided in one embodiment of this application. The method includes at least one of the following steps 1010-1080.

[0161] Step 1010: Traverse the routing information collected from the DCI network.

[0162] Step 1020: Traverse all the created routing tables.

[0163] Step 1030: Determine whether the BGP community attribute value carried in the current routing information is consistent with the BGP community attribute value corresponding to the current routing table. If yes, proceed to step 1040; otherwise, start from step 1020.

[0164] Current routing information refers to the latest route information traversed, and current routing table refers to the latest routing table traversed.

[0165] Step 1040: Determine the destination information based on the next-hop attribute in the current routing information.

[0166] Step 1050: Determine whether a target path set matching the destination information can be found in the current routing table's configured path set. If yes, proceed to step 1060; otherwise, start from step 1020.

[0167] Step 1060: Use the original attribute value of the next-hop attribute in the current routing information as the attribute value of the backup next-hop attribute in the current routing information. Then, set the attribute value of the next-hop attribute in the current routing information to the identifier information of the target path set, so as to change the current routing information to the updated routing information.

[0168] Step 1070: Send the updated routing information to the current routing table.

[0169] Step 1080: Determine if all created routing tables have been traversed. If yes, proceed from step 1010; otherwise, proceed from step 1020.

[0170] For example, please refer to Figure 13 This diagram illustrates the logic for generating routing information in a VRF routing table according to an embodiment of this application.

[0171] The input to this generation logic is the BGP route in the DCI network, and the output is the route in the VRF routing table in the vDCI network. This generation logic includes the following steps 1 through 4.

[0172] Step 1, BGP route collection: The control device collects all routes from the DCI network device through the BGP protocol. Each route carries a Community attribute value in the format ASN:No (e.g., 65001:100).

[0173] Step 2, Community attribute identification and classification: Parse the Community attribute value of the BGP route and map it to the corresponding VRF routing table: 65001 -> Low latency VRF routing table, 65002 -> High quality VRF routing table, 65003 -> Low cost VRF routing table.

[0174] Step 3, Path set query and replacement: Based on the attribute value of the next-hop attribute of the BGP route, query the target path set used to replace the attribute value from the path set corresponding to the VRF routing table, and use the original attribute value of the next-hop attribute as the attribute value of the backup next-hop attribute to obtain the route in the VRF routing table.

[0175] Step 4, Batch Distribution and Installation: Routes from the same VRF routing table are packaged in batches and distributed to vDCI devices via the RPC channel, thereby being installed into the corresponding VRF routing tables.

[0176] In some embodiments, please refer to Figure 14 The above routing configuration method also includes at least one of the following steps 1210 to 1230.

[0177] Step 1210: Collect cancelled routing information from the first network. Cancelled routing information refers to routing information that is no longer in use.

[0178] The process of canceling the publication, reception, and collection of routing information can be referred to the above description, and will not be repeated here.

[0179] Step 1220: Determine the target routing information from the various routing tables that have been created, based on the destination address and next-hop attribute of the cancelled routing information.

[0180] The destination address of the target routing information is the same as the destination address of the withdrawn routing information, and the attribute value of the backup next hop attribute in the target routing information is the same as the attribute value of the next hop attribute in the withdrawn routing information.

[0181] Optionally, in each of the created routing tables, any routing information that meets both of the following conditions—that the destination address matches the destination address of the withdrawn routing information, and that the value of the backup next-hop attribute matches the value of the next-hop attribute in the withdrawn routing information—is used as the destination routing information. Therefore, there can be one or at least two destination routing entries. At least two destination routing entries are recorded in different routing tables.

[0182] Step 1230: If the target routing information is recorded in the second routing table, send the configuration cancellation information to the third network node.

[0183] The third network node is the network node among the M network nodes that has a second routing table configured. The unconfiguration information is used to indicate that the target routing information is deleted from the second routing table.

[0184] In some embodiments, configuration cancellation information is sent to a third network device, which is a network device of a third network node and therefore has a second routing table configured thereon.

[0185] In some embodiments, the revocation configuration information includes the aforementioned target routing information.

[0186] In some embodiments, a revocation configuration message containing the target routing information is sent to a third network node (or a third network device) via an RPC channel to control the third network node (or the third network device) to delete the target routing information from the second routing table.

[0187] In some embodiments, sending revocation configuration information to a third network node includes: packaging Q deleted route information into revocation configuration information and sending it to the third network node. The Q deleted route information includes the aforementioned target route information, and all Q deleted route information is recorded in the second routing table. The process for determining the Q deleted route information can refer to the process for determining the target route information, and will not be elaborated here.

[0188] In some embodiments, a revocation configuration message containing Q deleted route information is sent to a third network node via an RPC channel to control the third network node to delete the Q deleted route information from the second routing table.

[0189] In the above embodiments, the deletion step of routing information (such as vDCI routing information) for network nodes can also be automatically implemented based on the undo routing information collected in the first network, so that this solution can provide complete automatic management functions (addition function + deletion function) for the routing table of network nodes (such as the routing table of vDCI devices).

[0190] In other embodiments, if the target routing information is recorded in a second routing table, a next-hop cancellation message is sent to a third network node (or a third network device). The next-hop cancellation message indicates that the next-hop attribute in the target routing information should be deleted, while retaining the backup next-hop attribute in the target routing information.

[0191] The following example illustrates the process of processing the full revocation routing information collected from the DCI network.

[0192] Please refer to Figure 15 The diagram illustrates a flowchart of a method for processing the cancellation of routing information according to an embodiment of this application. The method includes at least one of the following steps 1310-1350.

[0193] Step 1310: Traverse the revocation route information collected from the DCI network.

[0194] Step 1320: Traverse all the created routing tables.

[0195] Step 1330: Determine if the target route information exists in the current routing table. If yes, proceed to step 1340; otherwise, start from step 1320.

[0196] The destination address of the target routing information is the same as the destination address of the currently withdrawn routing information, and the attribute value of the backup next hop attribute in the target routing information is the same as the attribute value of the next hop attribute in the currently withdrawn routing information.

[0197] The currently withdrawn route information refers to the most recently withdrawn route information traversed, and the current routing table refers to the most recently traversed routing table.

[0198] Step 1340: Issue a cancellation configuration message to delete the target route information from the current routing table.

[0199] Step 1350: Determine if all created routing tables have been traversed. If yes, proceed from step 1310; otherwise, proceed from step 1320.

[0200] For example, please refer to Figure 16 It shows a schematic diagram of the synchronization mechanism of DCI routing and vDCI routing provided in one embodiment of this application.

[0201] In this synchronization mechanism, the control device monitors DCI route change events in real time, such as DCI route cancellation and DCI route addition, and triggers corresponding cancellations and additions of vDCI routes. Furthermore, cancellations or additions of routes within the same VRF routing table are processed in batches, thereby reducing communication overhead while ensuring the isolation of different VRF routing tables. Additionally, when performing vDCI route cancellation, this synchronization mechanism introduces two schemes: Scheme A directly deletes the vDCI route, thus saving table entry resources; Scheme B deletes the set of paths used as the primary next hop in the vDCI route, while retaining the original BGP route. This application prefers Scheme A because in Scheme B, there is no essential difference between the vDCI route and the DCI route, and timely cleanup of these invalid routes can avoid remnants causing forwarding anomalies or wasting table entry resources.

[0202] The following example will illustrate the data packet forwarding process on the first network node side after introducing N routing tables.

[0203] Please refer to Figure 17 The diagram illustrates a flowchart of a data packet forwarding method provided in one embodiment of this application. The execution entity of each step of the method is a first network node, such as the network device of the first network node (i.e., the first network device). The method may include at least one of the following steps 1510 to 1540.

[0204] Step 1510: Upon receiving the first configuration information, determine the DSCP values ​​corresponding to the N routing tables created by the first network node.

[0205] The N routing tables correspond to different types of network service requirements.

[0206] The N routing tables created by the first network node are the same as the N routing tables created by the first network device.

[0207] For example, the DSCP values ​​corresponding to the N routing tables created by the first network node can be as shown in Table 1 of the above embodiment.

[0208] Step 1520: Upon receiving a data packet, determine the third routing table from the N routing tables based on the DSCP value carried in the data packet.

[0209] The DSCP value corresponding to the third routing table includes the DSCP value carried in the data packet.

[0210] For example, the DSCP value carried by the data packet is 24, so the routing table Low-Delay-Vrf in Table 1 is determined as the third routing table.

[0211] Step 1530: Determine the routing information to be used from the third routing table based on the destination address carried in the data packet.

[0212] The destination address used in the routing information is the same as the destination address carried in the data packet.

[0213] The destination address carried in a data packet is used to indicate the final address to which the data packet should arrive.

[0214] Step 1540: Forward the data packet according to the next-hop attribute in the routing information.

[0215] The attribute value of the next-hop attribute in the routing information is essentially the identification information of the path set.

[0216] In some embodiments, data packets are forwarded according to the transmission paths included in the set of transmission paths indicated by the attribute value of the next-hop attribute in the routing information.

[0217] For example, if the next-hop attribute value in the routing information is NG_01_A_B_Low-Delay as shown in Table 2, then data packets are forwarded to vDCI_B via transmission path 1 and transmission path 2. In this case, there are two different transmission paths from vDCI_A (the first network device) to vDCI_B. By forwarding data packets along these two transmission paths, the data traffic will be load-balanced between the two transmission paths, with each transmission path handling approximately 50% of the traffic.

[0218] Additionally, it should be noted that in the third routing table, there may be at least two routing information entries. In this case, data packets will be forwarded according to the next-hop attributes included in each of the at least two routing information entries. At this time, the transmission path sets indicated by the next-hop attributes of the at least two routing information entries (each transmission path in each transmission path set) will participate in the sharing of data traffic.

[0219] In the data packet forwarding process provided in the above embodiment, the DSCP value carried in the data packet directly determines which routing table to use for forwarding the data packet in the N routing tables. The other routing tables have no impact on this forwarding. This achieves complete isolation of network transmission resources with different costs, ensuring the stability of communication performance and facilitating accurate calculation of network costs for services and customers.

[0220] For example, please refer to Figure 18 This illustration shows a schematic diagram of a vDCI route generation and usage process implemented through a control device and a vDCI device, according to an embodiment of this application. The process mainly includes: 1. The control device controls the vDCI device to generate independent routing tables for each VRF, such as low-latency vDCI network routing tables, high-quality vDCI network routing tables, and low-cost vDCI network routing tables.

[0221] 2. Control equipment collects BGP routes from the DCI network.

[0222] 3. Identify the vDCI network type based on the Community attribute in the BGP route.

[0223] 4. Based on the binding relationship between the SR path (tunnel) and the VRF routing table, and the identified vDCI network type, query the path set to set the attribute value of the next hop in the BGP route to obtain the vDCI route.

[0224] 5. Batch distribute vDCI routes from the same VRF routing table to vDCI devices.

[0225] 6. The vDCI device determines the corresponding VRF routing table and performs forwarding based on the DSCP value carried in the data packet.

[0226] It should be noted that the different embodiments mentioned above, such as the different steps in different embodiments, can be arbitrarily combined to form new embodiments. All embodiments formed by combining the content described in the above embodiments should also fall within the protection scope of this application.

[0227] One embodiment of this application also provides a communication system, which can be as follows: Figure 4 The communication system shown includes a control device and M network nodes, where M is an integer greater than 2.

[0228] In some embodiments, the communication information includes the control device and the respective network devices of the M network nodes.

[0229] The control device is used to collect routing information from the first network, which is used for communication between M network nodes.

[0230] The control device is also used to determine a set of target paths based on routing information. The set of target paths includes at least one transmission path, which is a path through which data transmission is performed by at least two of the M network nodes.

[0231] The control device is also used to set the attribute value of the next-hop attribute in the routing information to the identification information of the target path set, so as to obtain the updated routing information.

[0232] The control device is also used to send routing configuration information to the first network node, which is the recipient of routing information among the M network nodes.

[0233] The first network node is used to add the updated routing information to its routing table upon receiving the routing configuration information.

[0234] In some embodiments, the control device is configured to determine network type information based on routing information, wherein the network type information is used to indicate the type of network service requirement for performing data transmission using the routing information; and to determine a set of target paths based on the network type information.

[0235] In some embodiments, at least one transmission path uses a first network node as the source and a second network node as the destination, where the second network node is the publisher of routing information among the M network nodes.

[0236] The control device is used to determine the target path set based on network type information, source information, and destination information, wherein the source information is used to indicate the first network node among M network nodes, and the destination information is used to indicate the second network node among M network nodes.

[0237] In some embodiments, the control device is configured to determine a first routing table from the various routing tables that match both network type information and source information, wherein each routing table corresponds to a network service requirement type, the network service requirement type indicated by the network type information includes the network service requirement type corresponding to the first routing table, and the first routing table is a routing table configured for the network device of the first network node; and query the set of paths that match the destination information from the various path sets configured for the first routing table, as the target path set, wherein the transmission paths in the same path set have the same source and destination, and the transmission paths in the path set that match the destination information all take the second network node as the destination.

[0238] In some embodiments, the control device is further configured to send first configuration information to the first network node.

[0239] The first network node is also used to create N routing tables upon receiving the first configuration information, where N is an integer greater than 1. Different routing tables in the N routing tables correspond to different network service requirement types, and the N routing tables include the first routing table.

[0240] The control device is also used to send second configuration information to the first network node.

[0241] The first network node is also used to configure a path set for at least one of the N routing tables when it receives the second configuration information, and the transmission paths in the path set configured for the at least one routing table all use the first network node as the source.

[0242] In some embodiments, the first network node is further configured to determine the Differentiated Services Code Point (DSCP) values ​​corresponding to the N routing tables upon receiving the first configuration information.

[0243] The first network node is also used to determine a third routing table from N routing tables based on the DSCP value carried in the data packet when a data packet is received. The DSCP value corresponding to the third routing table includes the DSCP value carried in the data packet.

[0244] The first network node is also used to determine the routing information to be used from the third routing table based on the destination address carried in the data packet, and the destination address of the routing information is consistent with the destination address carried in the data packet.

[0245] The first network node is also used to forward data packets according to the next-hop attribute in the routing information.

[0246] In some embodiments, the control device is used to package P updated routing information into routing configuration information and send it to the first network node, wherein the P updated routing information includes the updated routing information, and the attribute value of the next hop attribute in the P updated routing information is the identification information of the path set configured for the first routing table, and P is an integer greater than 1.

[0247] The first network node is used to add P updated routing information to the first routing table upon receiving routing configuration information.

[0248] In some embodiments, the control device is used to take the original attribute value of the next-hop attribute in the routing information as the attribute value of the backup next-hop attribute in the routing information, and then set the attribute value of the next-hop attribute in the routing information as the identification information of the target path set, so as to change the routing information to the updated routing information.

[0249] In some embodiments, the control device is further configured to collect revocation routing information from the first network, wherein revocation routing information refers to routing information that has been discontinued.

[0250] The control device is also used to determine the target routing information from the various routing tables that have been created based on the destination address and next-hop attribute of the cancelled routing information. The destination address of the target routing information is consistent with the destination address of the cancelled routing information, and the attribute value of the backup next-hop attribute in the target routing information is consistent with the attribute value of the next-hop attribute in the cancelled routing information.

[0251] The control device is also used to send a revocation configuration message to a third network node when the target routing information is recorded in the second routing table. The third network node is one of M network nodes that has the second routing table configured. The revocation configuration message is used to instruct the target routing information to be deleted from the second routing table.

[0252] The third network node is used to delete the target route information from the second routing table upon receiving the revocation configuration information.

[0253] One embodiment of this application also provides a routing configuration method, which is applied to a communication system, the communication system being as follows: Figure 4 The communication system shown includes a control device and M network nodes, where M is an integer greater than 2. The method includes at least one of the following steps S11 to S15 (not shown in the figures).

[0254] Step S11: The control device collects routing information from the first network, which is used for communication between M network nodes, where M is an integer greater than 2.

[0255] Step S12: The control device determines the target path set based on the routing information. The target path set includes at least one transmission path, which is a path through which data transmission is performed by at least two of the M network nodes.

[0256] Step S13: The control device sets the attribute value of the next hop attribute in the routing information to the identifier information of the target path set to obtain the updated routing information.

[0257] Step S14: The control device sends routing configuration information to the first network node, which is the recipient of routing information among the M network nodes.

[0258] Step S15: Upon receiving the routing configuration information, the first network node adds the updated routing information to its routing table.

[0259] In some embodiments, step S12 includes at least one of the following steps S121 to S122.

[0260] Step S121: The control device determines the network type information based on the routing information. The network type information is used to indicate the type of network service requirement for performing data transmission using the routing information.

[0261] Step S122: The control device determines the target path set based on the network type information.

[0262] In some embodiments, at least one transmission path uses a first network node as the source and a second network node as the destination, where the second network node is the publisher of routing information among the M network nodes.

[0263] Step S122 includes: the control device determines the target path set based on network type information, source information and destination information, wherein the source information is used to indicate the first network node among the M network nodes and the destination information is used to indicate the second network node among the M network nodes.

[0264] In some embodiments, step S122 includes: the control device determining a first routing table from each of the created routing tables that matches both network type information and source information, wherein each routing table corresponds to a network service requirement type, the network service requirement type indicated by the network type information includes the network service requirement type corresponding to the first routing table, and the first routing table is a routing table configured for the first network node; querying a set of paths that match the destination information from each set of paths configured for the first routing table, as a target path set, wherein the transmission paths in the same path set have the same source and destination, and the transmission paths in the path set that match the destination information all take the second network node as the destination.

[0265] In some embodiments, the method further includes: a control device sending first configuration information to a first network node. Upon receiving the first configuration information, the first network node creates N routing tables, where N is an integer greater than 1. Different routing tables in the N routing tables correspond to different network service requirement types, and the N routing tables include the first routing table. The control device then sends second configuration information to the first network node. Upon receiving the second configuration information, the first network node configures a path set for at least one of the N routing tables, and all transmission paths in the path sets configured for the at least one routing table use the first network node as the source.

[0266] In some embodiments, the method further includes: upon receiving first configuration information, the first network node determines the Differentiated Service Code Point (DSCP) values ​​corresponding to the N routing tables. Upon receiving a data packet, the first network node determines a third routing table from the N routing tables based on the DSCP values ​​carried in the data packet, wherein the DSCP values ​​corresponding to the third routing table include the DSCP values ​​carried in the data packet. The first network node determines the routing information to be used from the third routing table based on the destination address carried in the data packet, wherein the destination address of the routing information is consistent with the destination address carried in the data packet. The first network node forwards the data packet according to the next-hop attribute in the routing information.

[0267] In some embodiments, step S14 includes: the control device packages P updated routing information into routing configuration information and sends it to the first network node, wherein the P updated routing information includes updated routing information, and the attribute values ​​of the next-hop attribute in the P updated routing information are all identification information of the path set configured for the first routing table, and P is an integer greater than 1.

[0268] Step S15 includes: Upon receiving the routing configuration information, the first network node adds P updated routing information to the first routing table.

[0269] In some embodiments, step S13 includes: the control device uses the original attribute value of the next-hop attribute in the routing information as the attribute value of the backup next-hop attribute in the routing information, and then sets the attribute value of the next-hop attribute in the routing information as the identification information of the target path set, so as to change the routing information to the updated routing information.

[0270] In some embodiments, the method further includes: a control device collecting revocation routing information from a first network, wherein the revocation routing information refers to routing information that is no longer in use. The control device determines target routing information from each created routing table based on the destination address and next-hop attribute of the revocation routing information. The destination address of the target routing information is consistent with the destination address of the revocation routing information, and the attribute value of the backup next-hop attribute in the target routing information is consistent with the attribute value of the next-hop attribute in the revocation routing information. If the target routing information is recorded in a second routing table, the control device sends revocation configuration information to a third network node. The third network node is one of M network nodes that has a second routing table configured. The revocation configuration information instructs the target routing information to be deleted from the second routing table. Upon receiving the revocation configuration information, the third network node deletes the target routing information from the second routing table.

[0271] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0272] Please refer to Figure 19 This diagram illustrates a block diagram of a routing configuration apparatus according to an embodiment of this application. The apparatus has the function of implementing the routing configuration method described above; this function can be implemented in hardware or by hardware executing corresponding software. The apparatus 1700 can be a control device or can be housed within a control device. The apparatus 1700 includes: a route acquisition module 1710, a set determination module 1720, and a route update module 1730.

[0273] The routing acquisition module 1710 is used to acquire routing information from a first network, which is used for communication between M network nodes, where M is an integer greater than 2.

[0274] The set determination module 1720 is used to determine a set of target paths based on the routing information. The set of target paths includes at least one transmission path, which is a path through which data transmission is performed by at least two of the M network nodes.

[0275] The routing update module 1730 is used to set the attribute value of the next hop attribute in the routing information to the identifier information of the target path set, so as to obtain the updated routing information.

[0276] The updated routing information is used to add to the routing table of the first network node, which is the recipient of the routing information among the M network nodes.

[0277] In some embodiments, the set determination module 1720 is configured to determine network type information based on the routing information, wherein the network type information is used to indicate the network service requirement type for performing data transmission using the routing information; and determine the target path set based on the network type information.

[0278] In some embodiments, each of the at least one transmission path uses the first network node as the source and the second network node as the destination, where the second network node is the publisher of the routing information among the M network nodes.

[0279] The set determination module 1720 is used to determine the target path set based on the network type information, source information and destination information, wherein the source information is used to indicate the first network node among the M network nodes, and the destination information is used to indicate the second network node among the M network nodes.

[0280] In some embodiments, the set determination module 1720 is configured to determine, from each of the created routing tables, a first routing table that matches both the network type information and the source information, wherein each routing table corresponds to a network service requirement type, the network service requirement type indicated by the network type information includes the network service requirement type corresponding to the first routing table, and the first routing table is a routing table configured for the first network node; from each path set configured for the first routing table, a path set that matches the destination information is queried as the target path set, wherein the transmission paths in the same path set have the same source and destination, and the transmission paths in the path set that match the destination information all use the second network node as the destination.

[0281] In some embodiments, the above-described apparatus 1700 further includes a transmitting module ( Figure 17 (Not shown in the image).

[0282] The sending module is further configured to send first configuration information to the first network node, wherein the first configuration information is used to create N routing tables for the first network node, where N is an integer greater than 1, and different routing tables in the N routing tables correspond to different network service requirement types, and the N routing tables include the first routing table; and to send second configuration information to the first network node, wherein the second configuration information is used to configure path sets for at least one of the N routing tables respectively, and the transmission paths in the path sets configured for the at least one routing table all take the first network node as the source.

[0283] In some embodiments, the set determination module 1720 is configured to extract at least one Border Gateway Protocol (BGP) community attribute value carried in the routing information. The BGP community attribute value carried in the routing information includes a network type attribute value and a source attribute value. Each network type attribute value is used to indicate a network service requirement type. The network type information includes each network type attribute value among the at least one BGP community attribute value. The source attribute value is used to determine the source information. Based on the correspondence data, a routing table corresponding to the BGP community attribute value carried in the routing information is determined from the various created routing tables and used as the first routing table. The correspondence data is used to record the correspondence between the various created routing tables and the BGP community attribute values. The BGP community attribute value corresponding to the routing table is used to indicate the network service requirement type corresponding to the routing table and to indicate the network node configured with the routing table.

[0284] In some embodiments, the sending module is configured to package P updated routing information into the routing configuration information and send it to the first network node, wherein the P updated routing information includes the updated routing information, and the attribute values ​​of the next-hop attributes in the P updated routing information are all identification information of the path set configured for the first routing table, and the routing configuration information is used to indicate that the P updated routing information be added to the first routing table, where P is an integer greater than 1.

[0285] In some embodiments, the routing update module 1730 is used to take the original attribute value of the next-hop attribute in the routing information as the attribute value of the backup next-hop attribute in the routing information, and then set the attribute value of the next-hop attribute in the routing information as the identification information of the target path set, so as to change the routing information to the updated routing information.

[0286] In some embodiments, the route acquisition module 1710 is further configured to acquire cancelled route information from the first network, wherein the cancelled route information refers to route information that has been discontinued.

[0287] The set determination module 1720 is further configured to determine target routing information from each of the created routing tables based on the destination address and next-hop attribute of the cancelled routing information, wherein the destination address of the target routing information is consistent with the destination address of the cancelled routing information, and the attribute value of the backup next-hop attribute in the target routing information is consistent with the attribute value of the next-hop attribute in the cancelled routing information.

[0288] The sending module is further configured to send revocation configuration information to a third network node when the target routing information is recorded in the second routing table. The third network node is one of the M network nodes that has the second routing table configured. The revocation configuration information is used to indicate that the target routing information is deleted from the second routing table.

[0289] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0290] Please refer to Figure 20 This diagram illustrates a structural block diagram of a computer device 1800 provided in one embodiment of this application. The computer device 1800 may be... Figure 4 The control device 30 in the communication system shown is used to implement the routing configuration method provided in the above embodiments. Specifically: Typically, computer device 1800 includes a processor 1801 and a memory 1802.

[0291] Processor 1801 may include one or at least two processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1801 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1801 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1801 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1801 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0292] The memory 1802 may include one or at least two computer-readable storage media, which may be non-transitory. The memory 1802 may also include high-speed random access memory and non-volatile memory, such as one or at least two disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 are used to store a computer program configured to be executed by one or more processors to implement the routing configuration method described above.

[0293] Those skilled in the art will understand that Figure 18 The structure shown does not constitute a limitation on the computer device 1800, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0294] In an exemplary embodiment, a network device is also provided, which may be the first network device described above, for implementing the data packet forwarding method described above. Optionally, the network device includes a processor and a memory, wherein the memory stores a computer program, which is loaded and executed by the processor to implement the data packet forwarding method described above.

[0295] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored in the storage medium. When executed by a processor, the computer program implements the above-described routing configuration method or the above-described data packet forwarding method. Optionally, the computer-readable storage medium may include ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), or optical disc, etc. The random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0296] In an exemplary embodiment, a computer program product is also provided, the computer program product including a computer program that is executed by a processor to implement the above-described routing configuration method, or to implement the above-described data packet forwarding method.

[0297] In an exemplary embodiment, a computer program product is also provided, comprising a computer program stored in a computer-readable storage medium. A processor reads the computer program from the computer-readable storage medium and executes the computer program to implement the above-described routing configuration method, or to implement the above-described data packet forwarding method.

[0298] It should be noted that the data collection and processing in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0299] It should be understood that "at least two" as mentioned herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.

[0300] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A routing configuration method, characterized in that, The method includes: Routing information is collected from the first network, which is used to provide communication for M network nodes, where M is an integer greater than 2; Based on the routing information, network type information is determined, which indicates the type of network service requirement for performing data transmission using the routing information. Based on the network type information, a set of target paths is determined, the set of target paths including at least one transmission path, the transmission path being a path through which data transmission is performed by at least two of the M network nodes; The updated routing information is obtained by setting the value of the next-hop attribute in the routing information to the identifier information of the target path set. The updated routing information is used to add to the routing table of the first network node, which is the recipient of the routing information among the M network nodes.

2. The method according to claim 1, characterized in that, Each of the at least one transmission path uses the first network node as the source and the second network node as the destination, where the second network node is the publisher of the routing information among the M network nodes. The step of determining the target path set based on the network type information includes: The target path set is determined based on the network type information, source information, and destination information, wherein the source information is used to indicate the first network node among the M network nodes, and the destination information is used to indicate the second network node among the M network nodes.

3. The method according to claim 2, characterized in that, Determining the target path set based on the network type information, source information, and destination information includes: From the various routing tables that have been created, a first routing table that matches both the network type information and the source information is determined. Each routing table corresponds to a network service requirement type. The network service requirement type indicated by the network type information includes the network service requirement type corresponding to the first routing table. The first routing table is a routing table configured for the first network node. From the various path sets configured for the first routing table, query the path set that matches the destination information, and use it as the target path set. The transmission paths in the same path set have the same source and destination, and the transmission paths in the path set that match the destination information all use the second network node as the destination.

4. The method according to claim 3, characterized in that, The method further includes: Send first configuration information to the first network node. The first configuration information is used to create N routing tables for the first network node, where N is an integer greater than 1. Different routing tables in the N routing tables correspond to different network service requirement types. The N routing tables include the first routing table. Send second configuration information to the first network node. The second configuration information is used to configure path sets for at least one of the N routing tables, and the transmission paths in the path sets configured for the at least one routing table all use the first network node as the source.

5. The method according to claim 3, characterized in that, The step of determining network type information based on the routing information includes: Extract at least one Border Gateway Protocol (BGP) community attribute value carried in the routing information. The BGP community attribute value carried in the routing information includes a network type attribute value and a source attribute value. Each network type attribute value is used to indicate a network service demand type. The network type information includes each network type attribute value in the at least one BGP community attribute value. The source attribute value is used to determine the source information. The step of determining a first routing table from the various created routing tables that matches both the network type information and the source information includes: Based on the correspondence data, a routing table corresponding to the BGP community attribute value carried by the routing information is determined from each of the created routing tables and used as the first routing table. The correspondence data is used to record the correspondence between each of the created routing tables and the BGP community attribute value. The BGP community attribute value corresponding to the routing table is used to indicate the network service requirement type corresponding to the routing table and to indicate the network node configured with the routing table.

6. The method according to claim 3, characterized in that, The method further includes: P updated routing information pieces are packaged into routing configuration information and sent to the first network node. The P updated routing information pieces include the updated routing information, and the attribute values ​​of the next hop attribute in the P updated routing information pieces are all identification information of the path set configured for the first routing table. The routing configuration information is used to indicate that the P updated routing information pieces are added to the first routing table, where P is an integer greater than 1.

7. The method according to any one of claims 1 to 6, characterized in that, The step of setting the attribute value of the next-hop attribute in the routing information to the identifier information of the target path set to obtain the updated routing information includes: The original attribute value of the next-hop attribute in the routing information is used as the attribute value of the backup next-hop attribute in the routing information, and the attribute value of the next-hop attribute in the routing information is set as the identification information of the target path set, so as to change the routing information to the updated routing information.

8. The method according to claim 7, characterized in that, The method further includes: Collect cancelled routing information from the first network, where cancelled routing information refers to routing information that is no longer in use; Based on the destination address and next-hop attribute of the cancelled routing information, target routing information is determined from each of the created routing tables. The destination address of the target routing information is consistent with the destination address of the cancelled routing information, and the attribute value of the backup next-hop attribute in the target routing information is consistent with the attribute value of the next-hop attribute in the cancelled routing information. If the target routing information is recorded in the second routing table, a revocation configuration information is sent to a third network node, which is one of the M network nodes that has the second routing table configured. The revocation configuration information is used to instruct the target routing information to be deleted from the second routing table.

9. A communication system, characterized in that, The communication system includes a control device and M network nodes, where M is an integer greater than 2; The control device is used to collect routing information from a first network, which is used for communication between the M network nodes. The control device is further configured to determine network type information based on the routing information, the network type information being used to indicate the network service requirement type for performing data transmission using the routing information; and to determine a set of target paths based on the network type information, the set of target paths including at least one transmission path, the transmission path being a path through which data transmission is performed by at least two of the M network nodes; The control device is further configured to set the attribute value of the next-hop attribute in the routing information to the identifier information of the target path set, thereby obtaining updated routing information; The control device is also used to send routing configuration information to a first network node, where the first network node is the recipient of the routing information among the M network nodes. The first network node is used to add the updated routing information to its routing table upon receiving the routing configuration information.

10. The communication system according to claim 9, characterized in that, Each of the at least one transmission path uses the first network node as the source and the second network node as the destination, where the second network node is the publisher of the routing information among the M network nodes. The control device is used to determine the target path set based on the network type information, source information, and destination information, wherein the source information is used to indicate the first network node among the M network nodes, and the destination information is used to indicate the second network node among the M network nodes.

11. The communication system according to claim 10, characterized in that, The control device is used to determine a first routing table from the various routing tables that match both the network type information and the source information, wherein each routing table corresponds to a network service requirement type, the network service requirement type indicated by the network type information includes the network service requirement type corresponding to the first routing table, and the first routing table is a routing table configured for the first network node; from the various path sets configured for the first routing table, a set of paths that match the destination information is queried as the target path set, wherein the transmission paths in the same path set have the same source and destination, and the transmission paths in the path set that match the destination information all take the second network node as the destination.

12. The communication system according to claim 11, characterized in that, The control device is also used to send first configuration information to the first network node; The first network node is further configured to create N routing tables upon receiving the first configuration information, where N is an integer greater than 1. Different routing tables in the N routing tables correspond to different network service requirement types, and the N routing tables include the first routing table. The control device is also used to send second configuration information to the first network node. The first network node is further configured, upon receiving the second configuration information, to configure a path set for at least one of the N routing tables, wherein the transmission paths in the path sets configured for the at least one routing table all use the first network node as the source.

13. The communication system according to claim 11, characterized in that, The first network node is further configured to, upon receiving the first configuration information, determine the Differentiated Service Code Point (DSCP) values ​​corresponding to the N routing tables respectively; The first network node is further configured to, upon receiving a data packet, determine a third routing table from the N routing tables based on the DSCP value carried by the data packet, wherein the DSCP value corresponding to the third routing table includes the DSCP value carried by the data packet. The first network node is further configured to determine, from the third routing table, to use routing information based on the destination address carried in the data packet, wherein the destination address of the routing information used is consistent with the destination address carried in the data packet; The first network node is also configured to forward the data packet according to the next-hop attribute in the routing information.

14. The communication system according to claim 11, characterized in that, The control device is used to package P updated routing information into the routing configuration information and send it to the first network node. The P updated routing information includes the updated routing information, and the attribute value of the next hop attribute in the P updated routing information is the identification information of the path set configured for the first routing table. P is an integer greater than 1. The first network node is used to add the P updated routing information to the first routing table upon receiving the routing configuration information.

15. The communication system according to any one of claims 9 to 14, characterized in that, The control device is used to take the original attribute value of the next-hop attribute in the routing information as the attribute value of the backup next-hop attribute in the routing information, and set the attribute value of the next-hop attribute in the routing information as the identification information of the target path set, so as to change the routing information to the updated routing information.

16. The communication system according to claim 15, characterized in that, The control device is also used to collect route cancellation information from the first network, wherein the route cancellation information refers to route information that has been discontinued. The control device is further configured to determine target routing information from each of the created routing tables based on the destination address and next-hop attribute of the cancelled routing information, wherein the destination address of the target routing information is consistent with the destination address of the cancelled routing information, and the attribute value of the backup next-hop attribute in the target routing information is consistent with the attribute value of the next-hop attribute in the cancelled routing information. The control device is further configured to send a revocation configuration information to a third network node when the target routing information is recorded in the second routing table. The third network node is one of the M network nodes that has the second routing table configured. The revocation configuration information is used to instruct the target routing information to be deleted from the second routing table. The third network node is used to delete the target routing information from the second routing table upon receiving the revocation configuration information.

17. A routing configuration method, characterized in that, Applied to a communication system, the communication system including a control device and M network nodes, where M is an integer greater than 2; the method includes: The control device collects routing information from a first network, which is used for communication between the M network nodes. The control device determines network type information based on the routing information, the network type information being used to indicate the type of network service requirement for performing data transmission using the routing information; and determines a set of target paths based on the network type information, the set of target paths including at least one transmission path, the transmission path being a path through which data transmission is performed by at least two of the M network nodes; The control device sets the attribute value of the next-hop attribute in the routing information to the identifier information of the target path set to obtain the updated routing information; The control device sends routing configuration information to the first network node, where the first network node is the recipient of the routing information among the M network nodes. Upon receiving the routing configuration information, the first network node adds the updated routing information to its routing table.

18. A routing configuration device, characterized in that, The device includes: The routing acquisition module is used to collect routing information from the first network, which is used for communication between M network nodes, where M is an integer greater than 2. The set determination module is used to determine network type information based on the routing information, wherein the network type information is used to indicate the network service requirement type for performing data transmission using the routing information; and to determine a target path set based on the network type information, wherein the target path set includes at least one transmission path, wherein the transmission path is a path through which data transmission is performed by at least two of the M network nodes; The route update module is used to set the attribute value of the next hop attribute in the route information to the identifier information of the target path set to obtain the updated route information; The updated routing information is used to add to the routing table of the first network node, which is the recipient of the routing information among the M network nodes.

19. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the routing configuration method as described in any one of claims 1 to 8.

20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the routing configuration method as described in any one of claims 1 to 8.

21. A computer program product, characterized in that, The computer program product includes a computer program that is executed by a processor to implement the routing configuration method as described in any one of claims 1 to 8.