Data transmission system and method

By using the first gateway and dedicated line access switch in the data transmission system for encapsulation and decapsulation, and using the tunnel address and identification to send the data to the virtual private cloud, the problem of high data transmission cost is solved and the user's local data center and cloud are connected. High-speed, low-latency, stable and secure connections between virtual private clouds.

CN118869633AActive Publication Date: 2024-10-29JINAN INSPUR DATA TECH CO LTD

Patent Information

Application Number
CN202411186959.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-10-29
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

In the existing technology, when the self-built IDC computer room is connected redundantly to the cloud dedicated line transfer IDC computer room, the cost of bare fiber is high and the data interaction is controlled and forwarded by the customer's IDC-end routing device, which places high requirements on the customer's local equipment, resulting in high data transmission costs.

Method used

A data transmission system is designed, including the first gateway and a dedicated line access switch. By encapsulating and decapsulating the address information in the access message, the access data of the physical machine is sent to the virtual private cloud using the tunnel address and tunnel identifier to build a user A high-speed, low-latency, stable and secure dedicated connection channel between the local data center and the virtual private cloud on the cloud.

Benefits of technology

It reduces data transmission costs and realizes a high-speed, low-latency, stable and secure dedicated connection channel between the user's local data center and the virtual private cloud on the cloud, solving the problem of high data transmission costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869633A_ABST
    Figure CN118869633A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission system and method, and the system comprises a first gateway which is used for receiving an access message which is transmitted by a physical machine and is used for accessing a virtual private cloud; the private line access switch is used for receiving the access message and packaging the access message to obtain first packaging data, and the first packaging data comprises the access message, a first tunnel address of the private line access switch and a second tunnel address of the second gateway; the second gateway is used for decapsulating the first encapsulation data to obtain first decapsulated data, determining a third tunnel address and a tunnel identifier corresponding to a second address included in the first decapsulated data, and sending the third tunnel address and the tunnel identifier to the first decapsulated data; and sending the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier. Through the data transmission method and device, the problem that the data transmission cost is high in the prior art can be solved, and the effect of reducing the data transmission cost is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and more specifically, to a data transmission system and method. Background Art

[0002] In related technologies, redundant interconnection from self-built IDC computer rooms to cloud dedicated lines is achieved by usually pulling bare optical fiber from the customer's IDC to the POP nodes of each computer room. However, the cost of bare optical fiber is high and data interaction is controlled and forwarded by the customer's IDC-side routing equipment, which places high demands on the customer's local equipment.

[0003] It can be seen from this that the related technology has the problem of high data transmission cost.

[0004] Currently, no effective solution has been proposed for the above-mentioned problems existing in the related technologies. Summary of the invention

[0005] The embodiments of the present application provide a data transmission system and method to at least solve the problem of high data transmission cost existing in the related art.

[0006] According to one embodiment of the present application, a data transmission system is provided, comprising: a first gateway, the first gateway being connected to a physical machine, and being used to receive an access message sent by the physical machine to access a virtual private cloud, wherein the access message includes a first address of the physical machine and a second address of the virtual private cloud; a dedicated line access switch, the dedicated line access switch being connected to the first gateway, and being used to receive the access message, encapsulate the access message, and obtain first encapsulated data, wherein the first encapsulated data includes the access message, a first tunnel address of the dedicated line access switch, and a second tunnel address of a second gateway; a second gateway, the second gateway being connected to the dedicated line access switch, and being used to decapsulate the first encapsulated data, and obtain first decapsulated data, determine a third tunnel address and a tunnel identifier corresponding to the second address included in the first decapsulated data, and send the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier.

[0007] According to another embodiment of the present application, a data transmission method is provided, including: encapsulating a received access message to obtain first encapsulated data, wherein the access message is a message accessed by the first gateway through the virtual private network, the access message includes the first address of the physical machine and the second address of the virtual private cloud, and the first encapsulated data includes the access message, the first tunnel address of the dedicated access switch, and the second tunnel address of the second gateway; sending the first encapsulated data to the second gateway to instruct the second gateway to decapsulate the first encapsulated data to obtain first decapsulated data, determining a third tunnel address and a tunnel identifier corresponding to the second address included in the first decapsulated data, and sending the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier.

[0008] According to another embodiment of the present application, a data transmission device is provided, including: an encapsulation module, used to encapsulate a received access message to obtain first encapsulated data, wherein the access message is a message accessed by the first gateway through the virtual private network, the access message includes the first address of the physical machine and the second address of the virtual private cloud, and the first encapsulated data includes the access message, the first tunnel address of the dedicated access switch, and the second tunnel address of the second gateway; a conveying module, used to send the first encapsulated data to the second gateway to instruct the second gateway to decapsulate the first encapsulated data to obtain first decapsulated data, determine a third tunnel address and a tunnel identifier corresponding to the second address included in the first decapsulated data, and send the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier.

[0009] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0010] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0011] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0012] Through this application, the data transmission system includes a first gateway, a dedicated access switch, and a second gateway. The access message for accessing the virtual private cloud sent by the physical machine and received by the first gateway connected to the physical machine is sent to the dedicated access switch connected to the first gateway. The switch encapsulates it and sends it to the second gateway. Then, the second gateway connected to the dedicated access switch decapsulates the encapsulated data, which can realize sending the access data of the physical machine to the virtual private cloud, and building a high-speed, low-latency, stable and secure exclusive connection channel between the user's local data center and the virtual private cloud on the cloud. Therefore, the problem of high data transmission cost in related technologies can be solved, and the effect of reducing data transmission cost can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a structural schematic diagram of a data transmission system according to an embodiment of the present application;

[0014] Figure 2 It is a flowchart of a data transmission system according to an embodiment of the present application.

[0015] Figure 3 This is a schematic diagram of a process of accessing a VPC network from an external cloud network according to an embodiment of the present application;

[0016] Figure 4 This is a schematic diagram of a process in which a virtual machine in a VPC network accesses a physical machine outside the cloud according to an embodiment of the present application;

[0017] Figure 5 is a hardware structure block diagram of a server device according to a data transmission method of an embodiment of the present application;

[0018] Figure 6 It is a flowchart of a data transmission method according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0021] In this embodiment, a data transmission system is provided. Figure 1 is a structural diagram of a data transmission system according to an embodiment of the present application, such as Figure 1 As shown, the transmission system of the above data includes:

[0022] A first gateway 102, which is connected to a physical machine and is used to receive an access message sent by the physical machine to access a virtual private cloud, wherein the access message includes a first address of the physical machine and a second address of the virtual private cloud;

[0023] A dedicated line access switch 104, the dedicated line access switch is connected to the first gateway, and is used to receive the access message, encapsulate the access message, and obtain first encapsulation data, wherein the first encapsulation data includes the access message, the first tunnel address of the dedicated line access switch, and the second tunnel address of the second gateway;

[0024] The second gateway 106 is connected to the dedicated access switch, and is used to decapsulate the first encapsulated data to obtain first decapsulated data, determine a third tunnel address and a tunnel identifier corresponding to the second address included in the first decapsulated data, and send the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier.

[0025] In the above embodiment, the data transmission system flow chart can be found in the attached Figure 2 ,like Figure 2 As shown, the data transmission system may include an off-cloud network, a carrier VPN network, a dedicated access switch, a dedicated gateway, and a VPC network. The off-cloud network is the first gateway, and the dedicated gateway is the second gateway. The off-cloud network can be divided into different tenants through v1an (virtual local area network) to receive access messages sent from physical machines outside the cloud. The "cloud" can be a private cloud or a public cloud, which represents an application based on cloud computing and cloud services; the switch can forward data according to the CAM (ContextAddressMemory) table, where the CAM table can be understood as a mapping table between MAC addresses and switch ports. The physical machine can be a physical machine outside the cloud, carrying tenant local data. The virtual private cloud can be a VPC (Virtual Private Cloud), which is a set of logically isolated virtual network environments built for cloud resources such as cloud servers, cloud containers, and cloud databases, which are configured and managed by users themselves, which can improve the security of user resources and simplify user network deployment.

[0026] In the above embodiment, the dedicated line access switch can be understood as a device that combines a cloud dedicated line with a switch, which is used to achieve access and conversion between the cloud external network and the cloud computing VPC network, and is mainly configured and maintained by the computer room. The second gateway can be a dedicated line gateway DGW, which can be understood as a bridge connecting the private network VPC and the physical dedicated line, and is used to deliver the messages transmitted by the dedicated line access switch to the VPC.

[0027] In the above embodiment, since the transmission of the message must have detailed source and destination addresses, the receiving device will receive the message only after comparing the destination address in the message with its own address, so encapsulation and decapsulation are involved in the transmission process. Encapsulation can be understood as the process of adding the protocol header of the corresponding protocol that generates the message when the message is sent from the device interface, which is performed at the sending device end; decapsulation can be understood as the process of removing the protocol header added to the original message when the device interface receives the message, which is performed by the receiving end. Among them, encapsulation can be vlan subpackaging or vxlan (virtual extended local area network) encapsulation.

[0028] In the above embodiment, when creating a network, the user can use CIDR (Classless Inter-Domain Routing) as the IP address specified by the private network. The supported private network segments are any of the following: 10.0.0.0-10.255.255.255 (the mask range must be between 12-28); 175.15.0.0-172.31.255.255 (the mask range must be between 12-28); 192.158.0.0-192.158.255.255 (the mask range must be between 15-28). For the process of accessing the VPC network from the cloud network, please refer to Figure 3 ,like Figure 3As shown, the network segment of the physical machine outside the cloud can be 192.158.10.0 / 24, the VPC network segment to be accessed can be 172.15.10.0 / 24, and the message is transmitted to the gateway of the switch outside the cloud (i.e. the first gateway mentioned above, the network segment can be 192.158.10.1), wherein the message (i.e. the access message mentioned above) includes two addresses: the physical machine network segment 192.158.10.0 / 24 and Dst (destination address Distination), i.e. the VPC network segment 172.15.10.0 / 24 (i.e. the first address and the second address mentioned above); when the message reaches the switch gateway, the message is sent to the dedicated line access switch by searching for the routing nexthop configured in the computer room, wherein the computer room configuration can be operated by the administrator or the user. Nexthop can be understood as the next node that the data packet needs to reach during the routing process, which is used to indicate the next hop path of the data packet so that the data packet reaches the destination correctly. In the routing table, each destination has a corresponding nexthop, which is the address or interface to which the next data packet should be sent. For example, in the process of a physical machine outside the cloud entering a switch outside the cloud, the IP address of the switch outside the cloud is the nexthop of this step; the message enters the dedicated access switch for vxlan encapsulation, obtains encapsulated data (i.e., the first encapsulated data) containing the access message, the switch tunnel ip address 2.2.2.2 (i.e., the first tunnel address) and the DGW gateway tunnel ip address 3.3.3.3 (i.e., the second tunnel address), and sends it to the second gateway DGW dedicated gateway. When the message arrives at the dedicated gateway, the dedicated gateway decapsulates it, searches for the tunnel ip (i.e., the third tunnel) and tunnel vni (i.e., the tunnel identifier) ​​corresponding to the target VPC address 172.15.10.0 / 24, performs vxlan encapsulation, and sends the access data to the VPC. Among them, tunnel vni represents a tunnel identifier, which can also be called a virtual network identifier. It is a unique identifier used to distinguish different virtual networks and is usually used to configure and manage tunnel connections in the network.

[0029] In an exemplary embodiment, when the second gateway includes multiple transmission tunnels for transmitting data, a main transmission tunnel included in the multiple transmission tunnels is determined, and the tunnel address of the main transmission tunnel is determined as the second tunnel address.

[0030] In the above embodiment, when the dedicated line DGW gateway is in a high-availability state (i.e., the above-mentioned state including multiple transmission tunnels for transmitting data), the local tunnel VIP address of the dedicated line gateway (i.e., the address of the above-mentioned main transmission data, i.e., the second tunnel address) can be sent to the switch through the routing protocol on the DGW dedicated line gateway to form ECMP routing. Among them, ECMP routing (Equal-Cost Multipat Routing) means equal-cost multi-path, which can be understood as the existence of multiple paths with the same cost to the same destination address. The routing protocol can be the internal gateway routing information protocol RIP or the open shortest path first protocol OSPF, or it can be the external border gateway protocol BGP, but is not limited to this. When the device supports equal-cost routing, the three-layer forwarding traffic sent to the destination IP or destination network segment can be shared through different paths, which can achieve network load balancing, and when some of the paths fail, other paths will replace them to complete the forwarding process, thereby achieving route redundancy backup.

[0031] In an exemplary embodiment, the data transmission system also includes: a virtual private network, through which the first gateway is connected to the dedicated line access switch, for receiving the access message sent by the first gateway, and sending the access message to the dedicated line access switch; the dedicated line access switch is also used to encapsulate the tunnel identifier of the virtual private network into the first encapsulation data.

[0032] In the above embodiment, the virtual private network can be a carrier VPN network, which is connected to the cloud switch and the dedicated line access switch respectively, and is used to receive the access message sent by the cloud switch and send the access message to the dedicated line access switch, which can directly connect the physical machine and the dedicated network, ensuring that the data can be transmitted safely and stably. In addition, the first encapsulated data encapsulated by the dedicated line access switch also includes the tunnel identifier tnnnel vni of the carrier VPN network, such as Figure 3 Device: vpn-1000.

[0033] In an exemplary embodiment, the second gateway is further configured to modify the internal destination media access control address included in the access message to the first peer address of the second gateway.

[0034] In the above embodiment, since the second gateway needs to reply to the ARP message transmitted on all switches requesting the ip bound to the virtual machine VPC, the ARP message transmitted on all switches is terminated, and the inner layer routing is introduced to reduce the ARP storage capacity on the switch, that is, the inner layer routing is embodied by replacing the tunne1 ip with the DGB peer ip. Among them, the ARP protocol can be understood as the process of obtaining the destination MAC address through the destination IP address, and the DGB peer ip represents the peer ip address of the gateway (that is, the first peer address mentioned above), which is used to establish a peer relationship with other gateways to exchange routing information and forward data.

[0035] In an exemplary embodiment, the virtual private cloud is also used to encapsulate the transmission message to obtain second encapsulation data, and send the second encapsulation data to the second gateway, wherein the second encapsulation data includes the transmission message, the fourth tunnel address of the computing node that calculates the transmission message, the second tunnel address of the second gateway, the tunnel identifier used to transmit the transmission message, the sending address for sending the transmission message, and the receiving address for receiving the transmission message; the second gateway is also used to receive the second encapsulation data and send the transmission message to the physical machine based on the second encapsulation data.

[0036] In the above embodiment, the process of a virtual machine in a VPC network accessing a physical machine outside the cloud can be referred to Figure 4 ,like Figure 4 As shown, the virtual private cloud VPN performs vxlan encapsulation on the transmission message, the computing node tunnel ip 172.171.0.28 / 32 (i.e., the fourth tunnel address mentioned above), the dedicated gateway tunnel ip 172.171.0.23 / 23 (i.e., the second tunnel address mentioned above), tunnel vni 88 (i.e., the tunnel identifier mentioned above), the VPC network ip 172.15.10.0 / 24 (and the sending address of the transmission message mentioned above), and the physical machine ip 192.158.10.0 / 24 outside the cloud (and the receiving address mentioned above) to obtain the second encapsulation data mentioned above. Considering that the network segment on the VPC side and the network segment on the remote physical machine side cannot be repeated, the virtual machine on the VPC side uses a custom route custom route to transmit the message to the dedicated gateway DGW. After receiving the encapsulated data, the dedicated gateway DGW decapsulates the encapsulated data and sends it to the physical machine outside the cloud. In addition, the vxlan protocol will not be run on the switch and the dedicated gateway. It only needs to satisfy the encap / decap vxlan and continue to perform three-layer routing lookup after vxlan encap / decap.

[0037] In an exemplary embodiment, the sending of the transmission message to the physical machine based on the second encapsulation data includes: decapsulating the second encapsulation data to obtain second decapsulation data; determining the next hop address of the transmission message based on the receiving address included in the second decapsulation data; modifying the internal destination media access control address included in the transmission message to the second peer address of the dedicated line access switch to obtain a target transmission message; encapsulating the target transmission message, the second tunnel address of the second gateway, and the first tunnel address of the dedicated line access switch to obtain third encapsulation data; sending the third encapsulation data to the dedicated line access switch to instruct the dedicated line access switch to decapsulate the third encapsulation data to obtain third decapsulation data, and sending the target transmission message to the virtual private network indicated by the next hop through the second peer address included in the third decapsulation data; the virtual private network sends the target transmission message to the first gateway; the first gateway sends the target transmission message to the physical machine.

[0038] In the above embodiment, if Figure 4 As shown, when the dedicated gateway receives the second encapsulated data, it performs vxlan decapsulation on the vtep (virtual tunnel endpoint) 172.171.0.28 and 172.171.0.23 of the cloud tunnel to obtain the decapsulated data (i.e., the second decapsulated data mentioned above), performs route lookup based on Dst192.158.10.0 / 24 in the second encapsulated data, and determines the receiving address of the message (i.e., the next hop address mentioned above). In order to enable the message to continue to perform a three-layer route lookup after the message arrives at the switch and is decapsulated, the inner dstmac of the inner message (equivalent to the above-mentioned internal destination media access control address) can be changed to peer_remote_dst mac, i.e., the address of the port 10.235.100.2 of the cloud switch switch peer ip (equivalent to the above-mentioned second peer address).

[0039] In the above embodiment, when the Vpc-side virtual machine uses a custom route to direct the message to the DGW gateway, each dedicated line requires a local tunnel ip (local tunnel IP), a remote ip (remote IP) and a vni (unique identifier of the virtual network), so the flow table on the dedicated line gateway DGW needs to support the setting of tun_src, tun_dst and tunnelid (vni). Among them, tun_src can be understood as the Tunnel source address, that is, the starting address of the tunnel; tundst can be understood as the Tunnel destination address, that is, the target address of the tunnel; tunnelid (vni) can be understood as the Tunnel identifier. The dedicated line gateway performs outer vxlan encapsulation, including: target transmission message, vtep local encapsulation 3.3.3.3 (that is, the above-mentioned second tunnel address), vetp remote encapsulation 2.2.2.2 (that is, the above-mentioned first tunnel address), and obtains the third encapsulation data.

[0040] In the above embodiment, after the message enters the dedicated switch, the outer vxlan decapsulation is performed to obtain the third decapsulation data. According to the dst mac (i.e., the above second peer address), the next hop address is found, i.e., the operator VPN network. The operator VPN network transmits the transmission message to the cloud switch (first gateway), and the cloud switch sends the transmission message to the cloud physical machine. The MAC address is constantly changing during the three encapsulation processes. Through layer-by-layer encapsulation and decapsulation, the data can quickly and correctly reach the destination.

[0041] In an exemplary embodiment, the number of the dedicated line access switches is 1 or more. In the above embodiment, the dedicated line access switch can be 1 or more, each dedicated line gateway DGW may be connected to one or more dedicated line access switches, and each operator VPN network may also be connected to one or more dedicated line access switches. When some of the paths fail, network load balancing can be achieved.

[0042] In an exemplary embodiment, the number of the second gateways is at least one or more. In the above embodiment, a dedicated line can be bound to multiple dedicated line gateways DGW, and the traffic of the dedicated line access is shared by the bound dedicated line gateways DGW. Each VPC Network can be bound to multiple dedicated line access instances. By determining the main transmission tunnel, congestion of transmission data can be avoided and efficient transmission can be achieved.

[0043] In an exemplary embodiment, when there are multiple second gateways, all of the multiple second gateways can be connected to the dedicated access switch. When the dedicated access switch receives the target data sent by the virtual private network, it can determine the source of the target data, that is, determine the IP address of the physical machine that sends the target data, obtain the predetermined correspondence between the gateway and the physical machine, determine the target gateway corresponding to the physical machine where the target data occurs based on the correspondence, and forward the target data to the target gateway. In this embodiment, when there are multiple second gateways, the correspondence between the gateway and the physical machine can be predetermined, and one gateway is responsible for forwarding data sent by one physical machine or multiple physical machines. Load balancing of data forwarding is achieved, and the transmission efficiency of the system is improved.

[0044] In the above embodiment, when there are multiple second gateways, the second gateways may include a master gateway, which may be connected to other gateways included in the second gateways except the master gateway, and may send target data to the master gateway, which determines a transmission gateway in the second gateway for transmitting the target data. When the master gateway fails, the master gateway may determine a transmission gateway in other gateways, thereby achieving high availability of the system.

[0045] In the above embodiment, after receiving the target data, the target gateway can also parse the target data to determine the target data type of the target data, determine the correspondence between the data type pre-stored in the target gateway and the transmission tunnel, determine the target transmission tunnel corresponding to the target data type according to the correspondence, and send the target data to the virtual private cloud through the target transmission tunnel. One target transmission tunnel transmits one type of target data, which can prevent the problem of crosstalk between data caused by different types of data being transmitted in the same tunnel, thereby ensuring data security.

[0046] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 5 1 is a hardware structure block diagram of a server device of a data transmission method according to an embodiment of the present application. Figure 5 As shown, the server device may include one or more ( Figure 5 Only one is shown in the figure) a processor 502 (the processor 502 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 504 for storing data, wherein the above-mentioned server device may also include a transmission device 505 and an input and output device 508 for communication functions. It can be understood by those skilled in the art that Figure 5 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 5More or fewer components as shown, or with Figure 5 Different configurations are shown.

[0047] The memory 504 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data transmission method in the embodiment of the present application. The processor 502 executes various functional applications and data processing by running the computer program stored in the memory 504, that is, to implement the above method. The memory 504 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 504 may further include a memory remotely arranged relative to the processor 502, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0048] The transmission device 505 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 505 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 505 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0049] In this embodiment, a data transmission method is provided, which is applied to the data transmission system described in any of the above embodiments. Figure 6 is a flow chart of a data transmission method according to an embodiment of the present application, such as Figure 6 As shown, the process includes the following steps:

[0050] Step S602, encapsulating the received access message to obtain first encapsulated data, wherein the access message is a message accessed by the first gateway through the virtual private network, the access message includes the first address of the physical machine and the second address of the virtual private cloud, and the first encapsulated data includes the access message, the first tunnel address of the dedicated line access switch, and the second tunnel address of the second gateway;

[0051] Step S604: Send the first encapsulated data to the second gateway to instruct the second gateway to decapsulate the first encapsulated data to obtain first decapsulated data, determine a third tunnel address and a tunnel identifier corresponding to the second address included in the first decapsulated data, and send the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier.

[0052] In the above embodiments, encapsulation can be understood as the process of adding a protocol header of the corresponding protocol that generates the message when the message is sent from the device interface, which is performed at the sending device end; decapsulation can be understood as the process of removing the protocol header added to the original message when the device interface receives the message, which is performed by the receiving end. Among them, encapsulation can be vlan sub-packaging or vxlan encapsulation (virtual extended local area network). The first gateway can be an off-cloud switch for receiving access messages sent from a physical machine outside the cloud. The virtual private network can be an operator VPN network, which is connected to the off-cloud switch and the dedicated line access switch respectively, and is used to receive access messages sent by the off-cloud switch and send the access messages to the dedicated line access switch. The virtual private cloud can be a VPC (Virtual Private Cloud), which is a set of logically isolated virtual network environments built for cloud resources such as cloud servers, cloud containers, and cloud databases, which are configured and managed by users. The second gateway can be a dedicated line gateway DGW, which can be understood as a bridge connecting the private network VPC and the physical dedicated line, and is used to deliver messages transmitted by the dedicated line access switch to the VPN.

[0053] In the above embodiment, the process of accessing the VPC network from the cloud outside the network can refer to Figure 3 ,like Figure 3As shown, the cloud switch gateway (i.e., the first gateway) receives the access message from the operator's VPN network and performs vlan encapsulation on it to obtain the first encapsulated data, wherein the access message includes the physical machine network segment 192.158.10.0 / 24 and the Dst (destination address Distination) VPC network segment 172.15.10.0 / 24 (i.e., the first address and the second address); the first encapsulated data includes the access message, the switch tunnel ip address 2.2.2.2 (i.e., the first tunnel address) and the DGW gateway tunnel ip address 3.3.3.3 (i.e., the second tunnel address). The first encapsulated data is sent to the second gateway DGW dedicated gateway. When the message arrives at the dedicated gateway, the dedicated gateway decapsulates it to obtain the first decapsulated data. Find and determine the tunnel ip (i.e., the third tunnel) and tunnel vni (i.e., the tunnel identifier) ​​corresponding to the target VPC address 172.15.10.0 / 24, and send the access data of the physical machine to the VPC through this tunnel. Among them, tunnel vni represents the tunnel identifier, which can also be called the virtual network identifier. It is a unique identifier used to distinguish different virtual networks and is usually used to configure and manage tunnel connections in the network.

[0054] Through this application, the access message for accessing the virtual private cloud sent by the physical machine and received by the first gateway connected to the physical machine is sent to the dedicated line access switch connected to the first gateway, and the switch encapsulates it and sends it to the second gateway. Then, the second gateway connected to the dedicated line access switch decapsulates the encapsulated data, so that the access data of the physical machine can be sent to the virtual private cloud, and a high-speed, low-latency, stable and secure exclusive connection channel can be built between the user's local data center and the virtual private cloud on the cloud. Therefore, the problem of low data transmission performance in the related technology can be solved, and the effect of improving data transmission performance can be achieved.

[0055] The execution subject of the above steps may be a dedicated line access switch, but is not limited thereto.

[0056] In an exemplary embodiment, the method further includes: decapsulating the received third encapsulated data to obtain third decapsulated data, and sending the target transmission message included in the third encapsulated data to the virtual private network through the second peer address included in the third decapsulated data, so as to instruct the virtual private network to send the target transmission message to the first gateway, and to instruct the first gateway to send the target transmission message to the physical machine; wherein the third encapsulated data is obtained in the following manner: the second gateway modifies the internal destination media access control address included in the transmission message to the second peer address of the dedicated line access switch to obtain the target transmission message; and decapsulates the target transmission message, the second tunnel address of the second gateway, and the dedicated line access switch. The first tunnel address of the switch is encapsulated to obtain third encapsulated data; the virtual private network is determined in the following manner: the second gateway decapsulates the second encapsulated data to obtain second decapsulated data; the next hop address of the transmission message is determined based on the receiving address included in the second decapsulated data; the private network with the address as the next hop address is determined as the virtual private network; wherein the second encapsulated data is the data obtained by encapsulating the transmission message by the virtual private cloud, and the second encapsulated data includes the transmission message, the fourth tunnel address of the computing node for calculating the transmission message, the second tunnel address of the second gateway, a tunnel identifier for transmitting the transmission message, a sending address for sending the transmission message, and a receiving address for receiving the transmission message.

[0057] In the above embodiment, if Figure 4As shown, the virtual private cloud VPN performs vxlan encapsulation on the transmission message, the computing node tunnel ip 172.171.0.28 / 32 (i.e. the fourth tunnel address mentioned above), the dedicated gateway tunnel ip 172.171.0.23 / 23 (i.e. the second tunnel address mentioned above), the tunnel vni 88 (i.e. the tunnel identifier mentioned above), the VPC network ip 172.15.10.0 / 24 (and the sending address of the transmission message mentioned above) and the physical machine ip 192.158.10.0 / 24 outside the cloud (and the receiving address mentioned above) to obtain the second encapsulation data mentioned above. When the dedicated gateway receives the second encapsulated data, it performs vxlan decapsulation on the vtep (virtual tunnel endpoint) 172.171.0.28 and 172.171.0.23 of the cloud tunnel to obtain the decapsulated data (i.e. the second decapsulated data mentioned above), performs route lookup based on Dst 192.158.10.0 / 24 in the second encapsulated data and determines the receiving address of the message (i.e. the next hop address mentioned above). In order to enable the message to continue to perform layer 3 route lookup after the decapsulation is completed when it reaches the switch, the inner dst mac of the inner message (equivalent to the internal destination media access control address mentioned above) is changed to peer_remote_dst mac, i.e. the address of the port 10.235.100.2 of the cloud switch switch peer ip (equivalent to the second peer address mentioned above).

[0058] In the above embodiment, when the Vpc-side virtual machine uses customroute to direct the message to the dgw gateway, each dedicated line requires a localtunnelip (local tunnel IP), a remoteip (remote IP) and a vni (unique identifier of the virtual network), so the flow table on the dedicated gateway DGW needs to support the setting of tunsrc, tun_dst and tunnelid (vni). Among them, tun_src can be understood as the Tunnel source address, that is, the starting address of the tunnel; tun_dst can be understood as the Tunnel destination address, that is, the target address of the tunnel; tunnelid (vni) can be understood as the Tunnel identifier. The dedicated gateway performs outer vxlan encapsulation, including: target transmission message, vtep local encapsulation 3.3.3.3 (that is, the above-mentioned second tunnel address), vetpremote encapsulation 2.2.2.2 (that is, the above-mentioned first tunnel address), and obtains the third encapsulation data.

[0059] In the above embodiment, when the message enters the dedicated switch, the outer vxlan is decapsulated to obtain the third decapsulated data. The next hop address is found according to the dstmac (i.e., the second peer address), i.e., the operator VPN network. The operator VPN network transmits the transmission message to the cloud-outside switch (the first gateway), and the cloud-outside switch sends the transmission message to the cloud-outside physical machine.

[0060] In the above embodiment, by relying on the communication links and DGW dedicated gateways spread across the operator, a high-speed, low-latency, stable and secure exclusive connection channel is built between the user's local data center and the virtual private cloud (VPC) on the cloud. Flexible network connection is the cornerstone of integrating distributed environments. The data services of the VPC on the cloud and the user's data center can be connected through the cloud dedicated line. Users can connect the user network, data center, and host hosting area on the user side to the VPC dedicated line connection on the cloud through the cloud dedicated line, and enjoy a high-performance, low-latency, secure and dedicated data network.

[0061] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0062] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0063] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0064] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0065] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0066] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0067] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0068] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0069] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0070] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data transmission system, It is characterized in that include: a first gateway, the first gateway being connected to a physical machine and being used to receive an access message sent by the physical machine for accessing a virtual private cloud, wherein the access message includes a first address of the physical machine and a second address of the virtual private cloud; a dedicated line access switch, the dedicated line access switch being connected to the first gateway and being used to receive the access message, encapsulate the access message, and obtain first encapsulated data, wherein the first encapsulated data includes the access message, a first tunnel address of the dedicated line access switch, and a second tunnel address of a second gateway; The second gateway is connected to the dedicated line access switch, and is used to decapsulate the first encapsulated data to obtain first decapsulated data, determine a third tunnel address and a tunnel identifier corresponding to the second address included in the first decapsulated data, and send the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier.

2. The system according to claim 1, It is characterized in that In the case that the second gateway includes a plurality of transmission tunnels for transmitting data, a main transmission tunnel included in the plurality of transmission tunnels is determined, and a tunnel address of the main transmission tunnel is determined as the second tunnel address.

3. The system according to claim 1, It is characterized in that The data transmission system also includes: A virtual private network, wherein the first gateway is connected to the dedicated line access switch through the virtual private network, and is used to receive the access message sent by the first gateway, and send the access message to the dedicated line access switch; The dedicated line access switch is further used to encapsulate the tunnel identifier of the virtual private network into the first encapsulation data.

4. The system according to claim 1, It is characterized in that The second gateway is further configured to modify the internal destination media access control address included in the access message to the first peer address of the second gateway.

5. The system according to claim 1, It is characterized in that The virtual private cloud is further used to encapsulate the transmission message to obtain second encapsulation data, and send the second encapsulation data to the second gateway, wherein the second encapsulation data includes the transmission message, the fourth tunnel address of the computing node for calculating the transmission message, the second tunnel address of the second gateway, a tunnel identifier for transmitting the transmission message, a sending address for sending the transmission message, and a receiving address for receiving the transmission message; The second gateway is further configured to receive the second encapsulated data, and send the transmission message to the physical machine based on the second encapsulated data.

6. The system according to claim 5, It is characterized in that The sending the transmission message to the physical machine based on the second encapsulation data includes: Decapsulating the second encapsulated data to obtain second decapsulated data; Determine a next hop address of the transmission message based on the receiving address included in the second decapsulated data; Modify the internal destination media access control address included in the transmission message to the second peer address of the dedicated line access switch to obtain a target transmission message; Encapsulating the target transmission message, the second tunnel address of the second gateway, and the first tunnel address of the dedicated line access switch to obtain third encapsulation data; Sending the third encapsulated data to the dedicated line access switch to instruct the dedicated line access switch to decapsulate the third encapsulated data to obtain third decapsulated data, and sending the target transmission message to the virtual private network indicated by the next hop through the second peer address included in the third decapsulated data; The virtual private network sends the target transmission message to the first gateway; The first gateway sends the target transmission message to the physical machine.

7. The system according to claim 1, It is characterized in that The number of the dedicated line access switches is one or more.

8. The system according to claim 1, It is characterized in that The number of the second gateways is at least one or more.

9. A method for transmitting data, It is characterized in that A data transmission system according to any one of claims 1 to 8, include: Encapsulating the received access message to obtain first encapsulated data, wherein the access message is a message accessed by the first gateway through the virtual private network, the access message includes the first address of the physical machine and the second address of the virtual private cloud, and the first encapsulated data includes the access message, the first tunnel address of the dedicated line access switch, and the second tunnel address of the second gateway; The first encapsulated data is sent to the second gateway to instruct the second gateway to decapsulate the first encapsulated data to obtain first decapsulated data, determine a third tunnel address and a tunnel identifier corresponding to the second address included in the first decapsulated data, and send the access data of the physical machine to the virtual private cloud through a target tunnel determined based on the third tunnel address and the tunnel identifier.

10. The method according to claim 9, It is characterized in that The method further comprises: Decapsulate the received third encapsulated data to obtain third decapsulated data, and send the target transmission message included in the third encapsulated data to the virtual private network through the second peer address included in the third decapsulated data, so as to instruct the virtual private network to send the target transmission message to the first gateway, and instruct the first gateway to send the target transmission message to the physical machine; The third encapsulated data is obtained in the following manner: the second gateway modifies the internal destination media access control address included in the transmission message to the second peer address of the dedicated line access switch to obtain the target transmission message; the target transmission message, the second tunnel address of the second gateway, and the first tunnel address of the dedicated line access switch are encapsulated to obtain the third encapsulated data; The virtual private network is determined in the following manner: the second gateway decapsulates the second encapsulated data to obtain second decapsulated data; determines the next hop address of the transmission message based on the receiving address included in the second decapsulated data; and determines the private network with the address as the next hop address as the virtual private network; wherein the second encapsulated data is the data obtained by encapsulating the transmission message by the virtual private cloud, and the second encapsulated data includes the transmission message, the fourth tunnel address of the computing node that calculates the transmission message, the second tunnel address of the second gateway, the tunnel identifier used to transmit the transmission message, the sending address for sending the transmission message, and the receiving address for receiving the transmission message.

Citation Information

Patent Citations

  • BFD session establishing method, BFD session processing method and related equipment

    CN113225252A

  • Cloud network system and interaction method of cloud network system

    CN116996343A

  • Data transmission method and device, equipment, storage medium and program product

    CN118233379A

  • Data transmission method and apparatus, network adapter, and storage medium

    US20220070095A1

Cited By

  • VPN gateway traffic forwarding method and device, electronic equipment and storage medium

    CN119788602A

  • VPN gateway traffic forwarding method and apparatus, electronic device, and storage medium

    CN119788602B

  • Data transmission method, device and system, gateway, storage medium and program product

    CN120711073A