Method and device for subnet to access public network, computer equipment and storage medium

By utilizing the boundary gateway protocol and the open shortest path priority protocol in the OpenStack network architecture, the subnet routing information is forwarded to the physical switch, which solves the problem that virtual machines need to convert source addresses to access the public network, improves performance and prevents neighbor table overload.

CN119583424APending Publication Date: 2025-03-07CHINA TELECOM CLOUD TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411760839.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

In the traditional OpenStack network architecture, the subnet address obtained by the virtual machine needs to be converted into the source address in order to access the public network, resulting in performance degradation and increased complexity.

Method used

By obtaining the subnet routing information sent by the cloud computing management platform at the first routing node, and republishing it to the second routing node based on the boundary gateway protocol. The second routing node forwards the subnet routing information to the physical switch based on the open shortest path priority protocol and adds it to the switch routing table.

Benefits of technology

It realizes that the access performance of subnets to the public network in the cloud computing management platform can be improved without large-scale changes to the existing cloud computing management platform, prevent neighbor tables from being overloaded in physical switches, and improve overall performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583424A_ABST
    Figure CN119583424A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for accessing a public network by a subnetwork, computer equipment and a storage medium. The method comprises the following steps: acquiring subnet routing information sent by a cloud computing management platform; reissuing the sub-network routing information to a second routing node based on a border gateway protocol, so that the second routing node forwards the sub-network routing information to a physical switch based on an open shortest path first protocol, and adds the sub-network routing information to a switch routing table through the physical switch; wherein the second routing node and the first routing node are deployed in the same intermediate forwarding platform. By adopting the method, the access of the sub-network to the public network in the cloud computing management platform can be realized without performing large-scale modification on the existing cloud computing management platform, the situation that the neighbor table in the physical switch is overloaded due to the increase of the service volume is effectively prevented, and the overall performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for a subnet to access a public network. Background Art

[0002] With the popularization and development of cloud computing technology, more and more enterprises and service providers are adopting open source platforms such as cloud computing management platform (OpenStack) to build and manage cloud infrastructure.

[0003] In the traditional OpenStack network architecture, the subnet address obtained by the virtual machine usually needs to be converted before it can access the public network. Although this method can solve the problem of public network access, it introduces additional delays and complexity, which in turn leads to performance degradation. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for subnet access to the public network that can improve performance in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for a subnet to access a public network, which is applied to a first routing node and includes:

[0006] Obtain subnet routing information sent by the cloud computing management platform;

[0007] Based on the border gateway protocol, the subnet routing information is republished to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch;

[0008] The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

[0009] In one embodiment, based on the border gateway protocol, republishing the subnet routing information to the second routing node includes:

[0010] Based on the Border Gateway Protocol, convert the Border Gateway Protocol corresponding routing information in the subnet routing information into the Open Shortest Path First protocol routing information;

[0011] Adding the routing information corresponding to the Open Shortest Path First protocol to the first routing table of the first routing node; and,

[0012] The routing information corresponding to the Border Gateway Protocol and the subnet routing information are sent to the second routing node; the routing information corresponding to the Border Gateway Protocol is used to update the second routing table of the second routing node.

[0013] In one embodiment, the method further comprises:

[0014] When the subnet routing information is successfully added to the switch routing table of the physical switch, the traffic data sent by the cloud computing management platform is obtained;

[0015] The traffic data is forwarded to the second routing node, so that the second routing node forwards the traffic data to the public network via the physical switch.

[0016] In a second aspect, the present application provides a method for a subnet to access a public network, which is applied to a second routing node, and the method includes:

[0017] Obtaining subnet routing information of a cloud computing management platform republished by a first routing node based on a border gateway protocol; wherein the first routing node and the second routing node are in the same intermediate forwarding platform;

[0018] Based on the open shortest path first protocol, the subnet routing information is forwarded to the physical switch, so that the physical switch adds the subnet routing information to the switch routing table.

[0019] In one of the embodiments, during the re-issuance process, the method further comprises:

[0020] Obtaining routing information corresponding to the Border Gateway Protocol sent by the first routing node;

[0021] Add the routing information corresponding to the Border Gateway Protocol to the second routing table of the second routing node.

[0022] In one embodiment, the method further comprises:

[0023] Obtaining traffic data of the cloud computing management platform forwarded by the first routing node; wherein the traffic data is forwarded by the first routing node when the subnet routing information is successfully added to the switch routing table of the physical switch;

[0024] Forward the traffic data to the physical switch, so that the physical switch forwards the traffic data to the public network.

[0025] In a third aspect, the present application further provides a subnet access public network device, which is applied to a first routing node, including:

[0026] An information acquisition module, used to acquire subnet routing information sent by the cloud computing management platform;

[0027] An information forwarding module, configured to republish the subnet routing information to the second routing node based on the border gateway protocol, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch;

[0028] The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

[0029] In a fourth aspect, the present application further provides a subnet access public network device, which is applied to a second routing node, including:

[0030] An information receiving module, used to obtain subnet routing information of a cloud computing management platform republished by a first routing node based on a border gateway protocol; wherein the first routing node and the second routing node are in the same intermediate forwarding platform;

[0031] The information adding module is used to forward the subnet routing information to the physical switch based on the open shortest path first protocol, so that the physical switch adds the subnet routing information to the switch routing table.

[0032] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] Obtain subnet routing information sent by the cloud computing management platform;

[0034] Based on the border gateway protocol, the subnet routing information is republished to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch;

[0035] The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

[0036] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0037] Obtain subnet routing information sent by the cloud computing management platform;

[0038] Based on the border gateway protocol, the subnet routing information is republished to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch;

[0039] The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

[0040] In a seventh aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0041] Obtain subnet routing information sent by the cloud computing management platform;

[0042] Based on the border gateway protocol, the subnet routing information is republished to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch;

[0043] The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

[0044] The above-mentioned method, device, computer equipment and storage medium for subnet access to the public network obtain the subnet routing information sent by the cloud computing management platform; based on the border gateway protocol, the subnet routing information is republished to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch; wherein the second routing node and the first routing node are deployed in the same intermediate forwarding platform. In this embodiment, there is no need to make large-scale changes to the existing cloud computing management platform to realize the access of the subnet in the cloud computing management platform to the public network, which effectively prevents the overload of the neighbor table in the physical switch due to the increase in business volume, and improves the overall performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 An application environment diagram of a method for a subnet to access a public network provided in this embodiment;

[0047] Figure 2 A schematic diagram of a flow chart of a method for a first sub-network to access a public network provided in this embodiment;

[0048] Figure 3 A schematic diagram of a flow chart of a second method for a sub-network to access a public network provided in this embodiment;

[0049] Figure 4 A structural block diagram of a first sub-network access public network device provided in this embodiment;

[0050] Figure 5 A structural block diagram of a second sub-network access public network device provided in this embodiment;

[0051] Figure 6This is a diagram of the internal structure of a computer device provided in this embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The method for subnet accessing the public network provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The second routing node 102 and the first routing node 101 are deployed in the same intermediate forwarding platform 10; the cloud computing management platform 11 is used to obtain the subnet routing information and traffic data transmitted by the virtual machine; the virtual machine is used to manage and schedule virtual machine instances, allocate subnets (such as Internet Protocol Version 6, IPv6) to virtual machines, realize internal network communication, create and manage virtual networks, and virtual routers (Virtual Router) are responsible for traffic forwarding between virtual machines and external networks; the first routing node is used to establish a Border Gateway Protocol (BGP) connection with the virtual machine in the cloud computing management platform, and receive subnet routing information from the cloud computing management platform; the second routing node is used to establish an Open Shortest Path First (OSPF) connection with the physical switch, and announce the IPv6 subnet routing information to the physical switch. The first routing node 101 obtains the subnet routing information sent by the cloud computing management platform 11; based on the border gateway protocol, the subnet routing information is republished to the second routing node, so that the second routing node 102 forwards the subnet routing information to the physical switch 12 based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch 103.

[0054] In an exemplary embodiment, Figure 2 As shown, a method for a subnet to access a public network is provided, and the method is applied to Figure 1 Taking the first routing node 101 in the example as an example, the method includes the following steps 201 to 202. Among them:

[0055] Step 201: Obtain subnet routing information sent by a cloud computing management platform.

[0056] Specifically, the cloud computing management platform creates a subnet and assigns the subnet to a virtual machine instance to ensure that each virtual machine has a unique subnet address; establishes a connection with the first routing node in the intermediate forwarding platform based on the border gateway protocol; sends the subnet routing information to the first routing node; the first routing node obtains the subnet routing information sent by the cloud computing management platform.

[0057] It should be noted that the cloud computing management platform can introduce a dynamic routing (Neutron Dynamic Routing) component to establish a connection with the first routing node in the intermediate forwarding platform through the border gateway protocol.

[0058] Step 202, based on the border gateway protocol, republish the subnet routing information to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch.

[0059] The second routing node and the first routing node are deployed in the same intermediate forwarding platform. The intermediate forwarding platform reduces the occupancy of the switch neighbor table by centrally managing the conversion between the border gateway protocol and the open shortest path first protocol, and prevents network performance bottlenecks and failures caused by excessive neighbor table capacity.

[0060] In one of the embodiments, an open shortest path first protocol is configured on the second routing node, and an OSPF connection is established with the physical switch through a port on the second routing node; the first routing node republishes the subnet routing information received through the border gateway protocol to the second routing node to achieve routing protocol conversion, and then forwards it to the public network through the physical switch to achieve direct access without passive address translation (SNAT).

[0061] In another embodiment, based on the border gateway protocol, the subnet routing information is republished to the second routing node, including: based on the border gateway protocol, converting the border gateway protocol corresponding routing information in the subnet routing information into the routing information of the open shortest path first protocol; adding the open shortest path first protocol corresponding routing information to the first routing table of the first routing node; and sending the border gateway protocol corresponding routing information and the subnet routing information to the second routing node. The advantage of this setting is that it reduces the number of virtual machines directly connected to the physical switch, thereby reducing the occupancy of the neighbor table in the physical switch, and avoiding network failures caused by overload of the neighbor table.

[0062] The border gateway protocol corresponds to routing information, which is used to update the second routing table of the second routing node.

[0063] Specifically, through the Border Gateway Protocol, the routing information corresponding to the Border Gateway Protocol in the subnet routing information is converted into the routing information of the Open Shortest Path First Protocol; the routing information corresponding to the Open Shortest Path First Protocol is added to the first routing table of the first routing node, and at the same time, the routing information corresponding to the Border Gateway Protocol and the subnet routing information are sent to the second routing node.

[0064] It should be noted that this embodiment can also obtain the traffic data sent by the cloud computing management platform when the subnet routing information is successfully added to the switch routing table of the physical switch; forward the traffic data to the second routing node, so that the second routing node forwards the traffic data to the public network via the physical switch.

[0065] Specifically, when the subnet routing information is successfully added to the switch routing table of the physical switch, it proves that data transmission can be successfully completed between the virtual machine and the physical switch. Therefore, the cloud computing management platform obtains the traffic data sent by the virtual machine and sends the traffic data to the first routing node; the first routing node receives the traffic data sent by the cloud computing management platform; forwards the traffic data to the second routing node; the second routing node forwards the traffic data to the public network via the physical switch.

[0066] The above-mentioned method for subnet accessing the public network obtains the subnet routing information sent by the cloud computing management platform; based on the border gateway protocol, the subnet routing information is republished to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch; wherein the second routing node and the first routing node are deployed in the same intermediate forwarding platform. In this embodiment, the access of the subnet in the cloud computing management platform to the public network can be realized without making large-scale changes to the existing cloud computing management platform, which effectively prevents the overload of the neighbor table in the physical switch due to the increase in business volume, and improves the overall performance.

[0067] In an exemplary embodiment, Figure 3 As shown, a method for a subnet to access a public network is provided, and the method is applied to Figure 1 Taking the first routing node 101 in the example as an example, the method includes the following steps 301 to 302. Among them:

[0068] Step 301: Obtain subnet routing information of a cloud computing management platform republished by a first routing node based on a border gateway protocol.

[0069] In one of the embodiments, the first routing node republishes subnet routing information of the cloud computing management platform to the second routing node based on the border gateway protocol; the second routing node receives the subnet routing information.

[0070] In another embodiment, the routing information corresponding to the Border Gateway Protocol sent by the first routing node is obtained; and the routing information corresponding to the Border Gateway Protocol is added to the second routing table of the second routing node.

[0071] Specifically, the first routing node republishes the subnet routing information of the cloud computing management platform and the routing information corresponding to the border gateway protocol to the second routing node based on the border gateway protocol; the second routing node receives the routing information corresponding to the border gateway protocol and the subnet routing information; and adds the routing information corresponding to the border gateway protocol to the second routing table of the second routing node.

[0072] Step 302: forward the subnet routing information to the physical switch based on the Open Shortest Path First protocol, so that the physical switch adds the subnet routing information to the switch routing table.

[0073] Specifically, by opening the shortest path first protocol, the second routing node forwards the subnet routing information to the physical switch; the physical switch adds the subnet routing information to the switch routing table.

[0074] It should be noted that the flow data of the cloud computing management platform forwarded by the first routing node is obtained; the flow data is forwarded to the physical switch, so that the physical switch forwards the flow data to the public network.

[0075] Wherein, the traffic data is forwarded by the first routing node when the subnet routing information is successfully added to the switch routing table of the physical switch;

[0076] Specifically, the first routing node forwards the traffic data of the cloud computing management platform to the second routing node; the second routing node receives the traffic data; forwards the traffic data to the physical switch; and the physical switch forwards the traffic data to the public network.

[0077] The above-mentioned method for subnet accessing the public network obtains the subnet routing information of the cloud computing management platform republished by the first routing node based on the border gateway protocol; wherein the first routing node and the second routing node are in the same intermediate forwarding platform; based on the open shortest path first protocol, the subnet routing information is forwarded to the physical switch, so that the physical switch adds the subnet routing information to the switch routing table. In this embodiment, the access of the subnet in the cloud computing management platform to the public network can be realized without making large-scale changes to the existing cloud computing management platform, which effectively prevents the overload of the neighbor table in the physical switch due to the increase in business volume, and improves the overall performance.

[0078] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0079] Based on the same inventive concept, the embodiment of the present application also provides a subnet access to the public network device for implementing the above-mentioned subnet access to the public network method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more subnet access to the public network device embodiments provided below can refer to the limitations of the subnet access to the public network method above, and will not be repeated here.

[0080] In an exemplary embodiment, Figure 4 As shown, a subnet access public network device is provided, including: an information acquisition module 10 and an information forwarding module 11, wherein:

[0081] The information acquisition module 10 is used to acquire the subnet routing information sent by the cloud computing management platform;

[0082] The information forwarding module 11 is used to republish the subnet routing information to the second routing node based on the border gateway protocol, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch;

[0083] The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

[0084] In one embodiment, the information forwarding module 11 is also used to convert the border gateway protocol corresponding routing information in the subnet routing information into the routing information of the open shortest path first protocol based on the border gateway protocol; add the open shortest path first protocol corresponding routing information to the first routing table of the first routing node; and send the border gateway protocol corresponding routing information and the subnet routing information to the second routing node; the border gateway protocol corresponding routing information is used to update the second routing table of the second routing node.

[0085] In one embodiment, the subnet access public network device is also used to obtain traffic data sent by the cloud computing management platform when the subnet routing information is successfully added to the switch routing table of the physical switch; forward the traffic data to the second routing node, so that the second routing node forwards the traffic data to the public network via the physical switch.

[0086] In an exemplary embodiment, Figure 5 As shown, a subnet access public network device is provided, including: an information receiving module 20 and an information adding module 21, wherein:

[0087] The information receiving module 20 is used to obtain the subnet routing information of the cloud computing management platform republished by the first routing node based on the border gateway protocol; wherein the first routing node and the second routing node are in the same intermediate forwarding platform;

[0088] The information adding module 21 is used to forward the subnet routing information to the physical switch based on the Open Shortest Path First protocol, so that the physical switch adds the subnet routing information to the switch routing table.

[0089] In one embodiment, the subnet access public network device is further used to obtain the border gateway protocol corresponding routing information sent by the first routing node; and add the border gateway protocol corresponding routing information to the second routing table of the second routing node.

[0090] In one embodiment, the subnet access public network device is also used to obtain traffic data of the cloud computing management platform forwarded by the first routing node; wherein the traffic data is forwarded by the first routing node when the subnet routing information is successfully added to the switch routing table of the physical switch; and the traffic data is forwarded to the physical switch so that the physical switch forwards the traffic data to the public network.

[0091] Each module in the above-mentioned subnet access public network device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0092] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for a subnet to access a public network is implemented.

[0093] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0094] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0095] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0096] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0097] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0099] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0100] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for a subnet to access a public network, characterized in that: Applied to a first routing node, the method comprises: Obtain subnet routing information sent by the cloud computing management platform; Based on the border gateway protocol, republishing the subnet routing information to the second routing node, so that the second routing node forwards the subnet routing information to the physical switch based on the open shortest path first protocol, and adds the subnet routing information to the switch routing table via the physical switch; The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

2. The method according to claim 1, characterized in that The method of republishing the subnet routing information to the second routing node based on the border gateway protocol includes: Based on the Border Gateway Protocol, convert the Border Gateway Protocol corresponding routing information in the subnet routing information into the Open Shortest Path First protocol routing information; Adding the routing information corresponding to the Open Shortest Path First protocol to the first routing table of the first routing node; and The routing information corresponding to the Border Gateway Protocol and the subnet routing information are sent to the second routing node; the routing information corresponding to the Border Gateway Protocol is used to update the second routing table of the second routing node.

3. The method according to claim 1, characterized in that The method further comprises: When the subnet routing information is successfully added to the switch routing table of the physical switch, traffic data sent by the cloud computing management platform is obtained; The traffic data is forwarded to the second routing node, so that the second routing node forwards the traffic data to the public network via the physical switch.

4. A method for a subnet to access a public network, characterized in that: Applied to a second routing node, the method comprises: Obtain subnet routing information of a cloud computing management platform republished by a first routing node based on a border gateway protocol; wherein the first routing node and the second routing node are in the same intermediate forwarding platform; Based on the Open Shortest Path First protocol, the subnet routing information is forwarded to the physical switch, so that the physical switch adds the subnet routing information to the switch routing table.

5. The method according to claim 4, characterized in that During the re-issuance process, the method further includes: Obtaining routing information corresponding to the Border Gateway Protocol sent by the first routing node; Add the routing information corresponding to the Border Gateway Protocol to the second routing table of the second routing node.

6. The method according to any one of claims 4 or 5, characterized in that: The method further comprises: Obtaining traffic data of the cloud computing management platform forwarded by the first routing node; wherein the traffic data is forwarded by the first routing node when the subnet routing information is successfully added to the switch routing table of the physical switch; The flow data is forwarded to a physical switch, so that the physical switch forwards the flow data to a public network.

7. A device for accessing a public network from a subnet, characterized in that: Applied to a first routing node, the device comprises: An information acquisition module, used to acquire subnet routing information sent by the cloud computing management platform; An information forwarding module, configured to republish the subnet routing information to a second routing node based on a border gateway protocol, so that the second routing node forwards the subnet routing information to a physical switch based on an open shortest path first protocol, and adds the subnet routing information to a switch routing table via the physical switch; The second routing node and the first routing node are deployed in the same intermediate forwarding platform.

8. A device for accessing a public network from a subnet, characterized in that: Applied to a second routing node, the device comprises: An information receiving module, used to obtain subnet routing information of a cloud computing management platform republished by a first routing node based on a border gateway protocol; wherein the first routing node and the second routing node are in the same intermediate forwarding platform; The information adding module is used to forward the subnet routing information to the physical switch based on the open shortest path first protocol, so that the physical switch adds the subnet routing information to the switch routing table.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Automated transitioning of networks between protocols

    CN103416010A

  • Method for directly accessing a public network by virtual machine IPv6 in cloud environment

    CN111654443A

  • Data transmission method and device based on SDWAN main and standby links, electronic equipment and storage medium

    CN116319536A

  • Method and device for transmitting BGP (Border Gateway Protocol) community attribute value in OSPF (Open Shortest Path First)

    CN117614887A

  • Cloud internal and external communication method and device, electronic equipment and computer readable storage medium

    CN118250066A