TW201818699A - Data transmission method, equipment, device and system - Google Patents
Data transmission method, equipment, device and system Download PDFInfo
- Publication number
- TW201818699A TW201818699A TW106126942A TW106126942A TW201818699A TW 201818699 A TW201818699 A TW 201818699A TW 106126942 A TW106126942 A TW 106126942A TW 106126942 A TW106126942 A TW 106126942A TW 201818699 A TW201818699 A TW 201818699A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- information
- data information
- target
- target device
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 126
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000012545 processing Methods 0.000 claims abstract description 61
- 230000004044 response Effects 0.000 claims abstract description 19
- 238000007405 data analysis Methods 0.000 claims description 22
- 239000000463 material Substances 0.000 claims description 7
- 239000002994 raw material Substances 0.000 claims description 7
- 239000002699 waste material Substances 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 8
- 238000013507 mapping Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000005641 tunneling Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000007123 defense Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 208000037805 labour Diseases 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
Description
本申請案涉及網路技術領域,尤其涉及一種資料傳輸的方法、設備、裝置及系統。 The present application relates to the field of network technologies, and in particular, to a method, device, device, and system for data transmission.
隨著網路技術的不斷發展,雲端技術也越來越成熟,使人們的生活和工作變得更加方便。越來越多的雲端計算服務商向大眾提供各種雲端計算平臺,每個雲端計算平臺中具有豐富的計算資源,包括:虛擬機器,資料庫,負載等化器,雲端儲存平臺,雲端網路安全防禦平臺等,這些計算資源相互協調工作,能夠為使用者提供多種服務。每個雲端計算平臺的計算資源均處於同一個私網內,因此對應於同一個雲端計算平臺的計算資源可以通過私網位址相互進接。但是使用者設備和雲端計算平臺中的計算資源不在同一私網內,因此,不能通過私網位址相互進接。 With the continuous development of network technology, cloud technology has become more and more mature, making people's lives and work more convenient. More and more cloud computing service providers provide various cloud computing platforms to the public. Each cloud computing platform has rich computing resources, including: virtual machines, databases, load equalizers, cloud storage platforms, and cloud network security. Defense platforms, etc. These computing resources work in coordination with each other and can provide users with multiple services. The computing resources of each cloud computing platform are in the same private network, so the computing resources corresponding to the same cloud computing platform can access each other through the private network address. However, the computing resources in the user equipment and the cloud computing platform are not in the same private network, so they cannot access each other through the private network address.
在現有技術中,一般通過給雲端計算平臺的計算資源配置公網IP位址,以實現與使用者設備的相互進接。但目前公網IP位址比較緊缺,如果給大量的雲端計算平臺計算資源配置公網IP位址,會消耗大量的公網IP位址,造成了資源的浪費。 In the prior art, a public network IP address is generally allocated to a computing resource of a cloud computing platform to achieve mutual access with user equipment. However, the current public network IP address is relatively scarce. If a large number of cloud computing platform computing resources are allocated to the public network IP address, a large amount of public network IP address will be consumed, resulting in a waste of resources.
為了解決上述技術問題,本申請案提供了一種資料傳輸的方法、設備、裝置及系統。 In order to solve the above technical problems, the present application provides a method, equipment, device and system for data transmission.
根據本申請案實施例的第一方面,提供一種資料傳輸方法,所述方法包括:回應於接收到資料資訊,判斷所述資料資訊所源自的來源設備是雲端設備還是使用者設備;基於所述判斷的結果,對所述資料資訊進行對應的處理,以獲取處理後的資料;確定所述資料資訊指示的目標設備;基於所述處理後的資料向所述目標設備傳輸資料。 According to a first aspect of the embodiments of the present application, a data transmission method is provided. The method includes: in response to receiving data information, determining whether a source device from which the data information originates is a cloud device or a user device; According to the result of the judgment, corresponding processing is performed on the data information to obtain processed data; a target device indicated by the data information is determined; and data is transmitted to the target device based on the processed data.
根據本申請案實施例的第二方面,提供一種資料傳輸方法,所述方法包括:回應於獲取到資料資訊,判斷所述資料資訊所源自的來源設備是雲端設備還是使用者設備;若所述來源設備是雲端設備,獲取傳輸所述資料資訊的資料傳輸通道匹配的隧道協定資訊;根據所述隧道協定資訊對所述資料資訊進行解封裝,以獲得原始資料資訊;確定所述資料資訊指示的目標設備作為第一目標設備;向所述第一目標設備包括的預定單元傳輸所述原始資料資訊。 According to a second aspect of the embodiments of the present application, a data transmission method is provided. The method includes: in response to obtaining data information, determining whether a source device from which the data information originates is a cloud device or a user device; The source device is a cloud device, and obtains tunnel agreement information matching a data transmission channel transmitting the data information; decapsulates the data information according to the tunnel agreement information to obtain original data information; and determines the data information instruction The target device of is the first target device; and the raw material information is transmitted to a predetermined unit included in the first target device.
根據本申請案實施例的第三方面,提供一種閘道設備,所述閘道設備包括:接收器、中央處理單元、處理單元、資料解析單元、發送器;其中,由所述接收器接收資料資訊,中央處理單元回應於所述接收器接收到資料資訊,判斷所述資料資訊所源自的來源設備是雲端設備還是使用者設備,所述處理單元基於所述中央處理單元判斷的結果,對所述資料資訊進行對應的處理,以獲取處理後的資料,所述資料解析單元確定所述資料資訊指示的目標設備,由所述發送器基於所述處理後的資料向所述目標設備傳輸資料。 According to a third aspect of the embodiments of the present application, a gateway device is provided. The gateway device includes a receiver, a central processing unit, a processing unit, a data analysis unit, and a transmitter; wherein the receiver receives data. Information, in response to the receiver receiving the data information, the central processing unit determines whether the source device from which the data information originates is a cloud device or a user device, and the processing unit determines the result based on the result of the determination by the central processing unit. The data information is processed correspondingly to obtain processed data, the data analysis unit determines a target device indicated by the data information, and the transmitter transmits data to the target device based on the processed data .
根據本申請案實施例的第四方面,提供一種設備,所述設備包括:資訊獲取單元、中央處理單元、處理單元、資料解析單元、傳輸單元;其中,由所述資訊獲取單元獲取資料資訊,中央處理單元回應於所述資訊獲取單元獲取到資料資訊,判斷所述資料資訊所源自的來源設備是雲端設備還是使用者設備,若所述中央處理單元判斷的結果為來源設備是雲端設備,則所述處理單元根據所述隧道協定資訊對所述資料資訊進行解封裝,以獲得原始資料資訊,所述資料解析單元確定所述資料資訊指示的目標設備作為第一目標設備;由所述傳輸單元向所述第一目標設備包括的預定單元傳輸所述原始資料資訊。 According to a fourth aspect of the embodiments of the present application, a device is provided, which includes: an information acquisition unit, a central processing unit, a processing unit, a data analysis unit, and a transmission unit; wherein the information acquisition unit obtains data information, The central processing unit responds to the information obtained by the information obtaining unit, and determines whether the source device from which the data information originates is a cloud device or a user device. If the result of the determination by the central processing unit is that the source device is a cloud device, The processing unit decapsulates the data information according to the tunnel agreement information to obtain original data information, and the data analysis unit determines a target device indicated by the data information as a first target device; The unit transmits the raw material information to a predetermined unit included in the first target device.
根據本申請案實施例的第五方面,提供一種資料傳輸裝置,所述裝置包括: 判斷單元,用於回應於接收到資料資訊,判斷所述資料資訊所源自的來源設備是雲端設備還是使用者設備;處理單元,用於基於所述判斷的結果,對所述資料資訊進行對應的處理,以獲取處理後的資料;確定單元,用於確定所述資料資訊指示的目標設備;傳輸單元,用於基於所述處理後的資料向所述目標設備傳輸資料。 According to a fifth aspect of the embodiments of the present application, a data transmission device is provided. The device includes: a judging unit configured to determine whether a source device from which the data information originates is a cloud device or a response in response to receiving the data information. A processing unit, configured to perform corresponding processing on the data information based on a result of the judgment, to obtain processed data; a determination unit, configured to determine a target device indicated by the data information; a transmission unit, And used for transmitting data to the target device based on the processed data.
根據本申請案實施例的第六方面,提供一種資料傳輸裝置,所述裝置包括:判斷單元,用於回應於獲取到資料資訊,判斷所述資料資訊所源自的來源設備是雲端設備還是使用者設備;獲取單元,用於在所述來源設備是雲端設備時,獲取傳輸所述資料資訊的資料傳輸通道匹配的隧道協定資訊;解封裝單元,用於根據所述隧道協定資訊對所述資料資訊進行解封裝,以獲得原始資料資訊;確定單元,用於確定所述資料資訊指示的目標設備作為第一目標設備;傳輸單元,用於向所述第一目標設備包括的預定單元傳輸資料所述原始資料資訊。 According to a sixth aspect of the embodiments of the present application, a data transmission device is provided. The device includes a judgment unit configured to determine whether the source device from which the data information originates is a cloud device or a response in response to obtaining the data information. An acquisition unit, configured to obtain tunnel agreement information matching a data transmission channel for transmitting the data information when the source device is a cloud device; and a decapsulation unit, configured to compare the data according to the tunnel agreement information Information is decapsulated to obtain original data information; a determination unit is configured to determine a target device indicated by the data information as a first target device; a transmission unit is configured to transmit a data office to a predetermined unit included in the first target device The source information is described.
根據本申請案實施例的第七方面,提供一種系統,所述系統包括多個雲端設備,多個使用者設備,至少一個閘道設備;其中,所述閘道設備包括第三方面所述的閘道設備,或如第五方面所述的資料傳輸裝置; 所述使用者設備包括第四方面所述的設備,或如第六方面所述的資料傳輸裝置。 According to a seventh aspect of the embodiments of the present application, a system is provided. The system includes multiple cloud devices, multiple user devices, and at least one gateway device. The gateway device includes the gateway device described in the third aspect. The gateway device, or the data transmission device according to the fifth aspect; the user equipment includes the device according to the fourth aspect, or the data transmission device according to the sixth aspect.
應用上述實施例,通過判斷接收到的資料資訊所源自的來源設備是雲端設備還是使用者設備的判斷結果,對接收到的資料資訊進行相應的處理,並在確定該資料資訊指示的目標設備後,基於處理後的資料向目標設備傳輸資料。從而實現了雲端設備和使用者設備的相互進接,避免了因向雲端設備分配公網IP位址而造成的公共資源的浪費,節省了公共資源。 Applying the above embodiment, the judgment result of the source device from which the received data information is derived is a cloud device or a user device, the corresponding processing is performed on the received data information, and the target device indicated by the data information is determined Then, the data is transmitted to the target device based on the processed data. As a result, mutual access between the cloud device and the user device is achieved, public resources are not wasted due to the allocation of public network IP addresses to the cloud devices, and public resources are saved.
應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,並不能限制本申請案。 It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and should not limit the present application.
100‧‧‧系統架構 100‧‧‧System Architecture
101、102‧‧‧雲端設備 101, 102‧‧‧ cloud devices
103‧‧‧閘道設備 103‧‧‧Gateway equipment
104、105、106‧‧‧使用者設備 104, 105, 106‧‧‧ user equipment
700‧‧‧設備 700‧‧‧ equipment
701‧‧‧資料傳輸裝置 701‧‧‧data transmission device
702‧‧‧處理器 702‧‧‧ processor
703‧‧‧記憶體 703‧‧‧Memory
704‧‧‧網路介面 704‧‧‧Interface
705‧‧‧非易失性記憶體 705‧‧‧Non-volatile memory
706‧‧‧內部匯流排 706‧‧‧ Internal bus
801‧‧‧接收器 801‧‧‧ Receiver
802‧‧‧中央處理單元 802‧‧‧Central Processing Unit
803‧‧‧處理單元 803‧‧‧processing unit
804‧‧‧資料解析單元 804‧‧‧Data Analysis Unit
805‧‧‧發送器 805‧‧‧ transmitter
901‧‧‧資訊獲取單元 901‧‧‧ Information Acquisition Unit
902‧‧‧中央處理單元 902‧‧‧Central Processing Unit
903‧‧‧處理單元 903‧‧‧processing unit
904‧‧‧資料解析單元 904‧‧‧Data Analysis Unit
905‧‧‧傳輸單元 905‧‧‧Transmission Unit
1001‧‧‧判斷單元 1001‧‧‧Judgment unit
1002‧‧‧處理單元 1002‧‧‧Processing unit
1003‧‧‧確定單元 1003‧‧‧ Confirmation unit
1004‧‧‧傳輸單元 1004‧‧‧Transmission Unit
1101‧‧‧判斷單元 1101‧‧‧Judgment Unit
1102‧‧‧獲取單元 1102‧‧‧Get Unit
1103‧‧‧解封裝單元 1103‧‧‧Unpacking Unit
1104‧‧‧確定單元 1104‧‧‧Determine unit
1105‧‧‧傳輸單元 1105‧‧‧Transmission Unit
此處的附圖被併入說明書中並構成本說明書的一部分,示出了符合本申請案的實施例,並與說明書一起用於解釋本申請案的原理。 The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description serve to explain the principles of the application.
圖1為應用本申請案實施例的示例性系統架構示意圖;圖2為本申請案資料傳輸方法的一個實施例流程圖;圖3A為本申請案資料傳輸方法的另一個實施例流程圖;圖3B為本申請案資料傳輸方法的另一個實施例流程圖;圖4為本申請案資料傳輸方法的另一個實施例流程 圖;圖5為本申請案資料傳輸方法的另一個實施例流程圖;圖6為本申請案資料傳輸方法的另一個實施例流程圖;圖7為本申請案資料傳輸裝置所在設備的一種硬體結構圖;圖8為本申請案閘道設備的一個實施例方塊圖;圖9為本申請案一種設備的一個實施例方塊圖;圖10為本申請案資料傳輸裝置的一個實施例方塊圖;圖11為本申請案資料傳輸裝置的另一個實施例方塊圖。 1 is a schematic diagram of an exemplary system architecture to which an embodiment of the present application is applied; FIG. 2 is a flowchart of an embodiment of a data transmission method of the application; FIG. 3A is a flowchart of another embodiment of a data transmission method of the application; 3B is a flowchart of another embodiment of the data transmission method of the application; FIG. 4 is a flowchart of another embodiment of the data transmission method of the application; FIG. 5 is a flowchart of another embodiment of the data transmission method of the application; 6 is a flowchart of another embodiment of a data transmission method of the present application; FIG. 7 is a hardware structure diagram of a device where the data transmission device of the present application is located; FIG. 8 is a block diagram of an embodiment of a gateway device of the present application 9 is a block diagram of an embodiment of a device of the present application; FIG. 10 is a block diagram of an embodiment of a data transmission device of the present application; FIG. 11 is a block diagram of another embodiment of a data transmission device of the present application.
這裡將詳細地對示例性實施例進行說明,其示例表示在附圖中。下面的描述涉及附圖時,除非另有表示,不同附圖中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本申請案相一致的所有實施方式。相反,它們僅是與如所附申請專利範圍中所詳述的、本申請案的一些方面相一致的裝置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the scope of the appended application patents.
在本申請案使用的術語是僅僅出於描述特定實施例的目的,而非旨在限制本申請案。在本申請案和所附申請專利範圍中所使用的單數形式的“一種”、“所述”和“該”也旨 在包括多數形式,除非上下文清楚地表示其他含義。還應當理解,本文中使用的術語“和/或”是指並包含一個或多個相關聯的列出專案的任何或所有可能組合。 The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms "a", "said" and "the" used in this application and the scope of the appended patents are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed projects.
應當理解,儘管在本申請案可能採用術語第一、第二、第三等來描述各種資訊,但這些資訊不應限於這些術語。這些術語僅用來將同一類型的資訊彼此區分開。例如,在不脫離本申請案範圍的情況下,第一資訊也可以被稱為第二資訊,類似地,第二資訊也可以被稱為第一資訊。取決於語境,如在此所使用的詞語“如果”可以被解釋成為“在......時”或“當......時”或“回應於確定”。 It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at" or "when" or "responding to determination".
參見圖1,為應用本申請案實施例的示例性系統架構示意圖:如圖1所示,系統架構100可以包括雲端設備101、102,使用者設備104、105、106,閘道設備103。 Referring to FIG. 1, a schematic diagram of an exemplary system architecture to which an embodiment of the present application is applied is shown. As shown in FIG. 1, the system architecture 100 may include cloud devices 101, 102, user devices 104, 105, 106, and gateway devices 103.
雲端設備101、102可以是雲端計算平臺中的各種計算設備(如可以是終端,也可以是伺服器),雲端設備101、102以及閘道設備103均處於雲端計算平臺的私網內,相互之間可以直接進行互動,以接收或發送請求或資訊等。閘道設備103可以是管理雲端設備與上述私網外的設備進行通信的閘道設備。雲端設備101、102可以通過任意有線或無線的方式與閘道設備103建立通信連接,並通過閘道設備103與該私網外的設備進行互動。 The cloud devices 101 and 102 can be various computing devices (such as terminals and servers) in the cloud computing platform. The cloud devices 101, 102 and the gateway device 103 are all in the private network of the cloud computing platform. You can interact directly with each other to receive or send requests or information. The gateway device 103 may be a gateway device that manages communication between the cloud device and the device outside the private network. The cloud devices 101 and 102 can establish a communication connection with the gateway device 103 in any wired or wireless manner, and interact with devices outside the private network through the gateway device 103.
使用者設備104、105、106可以是雲端計算平臺以外的各種計算設備(如可以是終端,也可以是伺服器,還可 以是閘道設備等)。並且,使用者設備104、105、106與雲端設備101、102並不在同一個私網內,因此,不能與雲端設備101、102直接進行互動,需要通過閘道設備103與雲端設備101、102進行互動。 The user equipment 104, 105, 106 may be various computing devices other than the cloud computing platform (such as a terminal, a server, a gateway device, etc.). In addition, the user equipment 104, 105, 106 and the cloud devices 101, 102 are not in the same private network. Therefore, the user equipment 104, 105, 106 and the cloud devices 101, 102 cannot directly interact with the cloud devices 101, 102, and need to perform the gateway device 103 and the cloud devices 101, 102 interactive.
應該理解,圖1中的雲端設備、使用者設備和閘道設備的數目僅僅是示意性的。根據實現需要,可以具有任意數目的雲端設備、使用者設備和閘道設備。 It should be understood that the number of cloud devices, user devices, and gateway devices in FIG. 1 is merely exemplary. According to implementation needs, there can be any number of cloud devices, user devices, and gateway devices.
下面將結合具體的實施例對本申請案進行詳細描述。 The following describes the present application in detail with reference to specific embodiments.
參見圖2,為本申請案資料傳輸方法的一個實施例流程圖,該實施例可以應用在雲端閘道設備中,包括如下步驟:在步驟201中,回應於接收到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備。 Referring to FIG. 2, a flowchart of an embodiment of a data transmission method of the present application. This embodiment can be applied to a cloud gateway device and includes the following steps: In step 201, in response to receiving data information, determining the data information Whether the source device is from a cloud device or a user device.
一般來說,雲端計算平臺中可以包括一些計算資源,這些計算資源相互協調工作,可以實現雲端計算平臺的對外服務功能。雲端計算平臺中的計算資源可以包括但不限於虛擬機器,資料庫,負載等化器,雲端儲存平臺,雲端網路安全防禦平臺等等。 Generally speaking, a cloud computing platform can include some computing resources. These computing resources work in coordination with each other to achieve the external service function of the cloud computing platform. The computing resources in the cloud computing platform may include, but are not limited to, virtual machines, databases, load equalizers, cloud storage platforms, cloud network security defense platforms, and so on.
在本實施例中,雲端設備可以為雲端計算平臺中包括的各種計算設備(如終端,或者伺服器等)。例如,雲端設備可以為運行虛擬機器的電腦,儲存資料庫的存放裝置,負載等化器,運行雲端儲存平臺的伺服器等等。使用者設備可以為雲端計算平臺包括的設備以外的設備。例如,使用者設備可以為個人電腦,也可能是企業、政府等 機構的網際網路資料中心、機房中的設備等。 In this embodiment, the cloud device may be various computing devices (such as a terminal, or a server, etc.) included in a cloud computing platform. For example, the cloud device may be a computer running a virtual machine, a storage device for storing a database, a load equalizer, a server running a cloud storage platform, and so on. The user equipment may be a device other than the devices included in the cloud computing platform. For example, the user equipment can be a personal computer, or it can be an Internet data center in an enterprise, government, or other organization, or equipment in a computer room.
在本實施例中,執行主體可以是雲端閘道設備,雲端閘道設備與上述雲端設備均處於雲端計算平臺的私網內,雲端閘道設備可以用於管理雲端設備與上述私網外的設備(如使用者設備等)之間的通信。 In this embodiment, the execution subject may be a cloud gateway device, and the cloud gateway device and the above-mentioned cloud device are both in the private network of the cloud computing platform. The cloud gateway device may be used to manage the cloud device and the device outside the private network. (Such as user equipment, etc.).
在步驟202中,基於上述判斷的結果,對上述資料資訊進行對應的處理,以獲取處理後的資料。 In step 202, based on the result of the above judgment, corresponding processing is performed on the above-mentioned data information to obtain processed data.
在本實施例中,可以根據上述判斷的不同結果,對上述資料資訊進行不同的處理,以得到處理後的資料。例如,如果來源設備是雲端設備,則可以獲取資料傳輸通道匹配的隧道協定資訊,並根據該隧道協定資訊將上述資料資訊封裝成隧道協定資料包,該隧道協定資料包即為處理後的資料。 In this embodiment, different processing may be performed on the above-mentioned data information according to different results of the foregoing judgments to obtain processed data. For example, if the source device is a cloud device, the tunnel agreement information matched by the data transmission channel can be obtained, and the above data information is encapsulated into a tunnel agreement data packet according to the tunnel agreement information, and the tunnel agreement data packet is the processed data.
如果來源設備是使用者設備,則確定上述資料資訊是否包括位址解析協定ARP請求。若未包括ARP請求,獲取傳輸該資料資訊的資料傳輸通道匹配的隧道協定資訊,並根據該隧道協定資訊對上述資料資訊進行解封裝,以獲得原始資料資訊,該原始資料資訊即為處理後的資料。 If the source device is a user device, it is determined whether the data information includes an address resolution protocol ARP request. If the ARP request is not included, obtain the tunnel protocol information matching the data transmission channel transmitting the data information, and decapsulate the above data information according to the tunnel protocol information to obtain the original data information, which is the processed data information. data.
在步驟203中,確定上述資料資訊指示的目標設備。 In step 203, the target device indicated by the data information is determined.
在本實施例中,上述資料資訊中包括目標設備的資訊,可以對上述資料資訊進行解析,從中獲取目標設備的資訊,以確定該資料資訊指示的目標設備。其中,目標設備為資料資訊的最終傳輸目標。 In this embodiment, the above-mentioned data information includes information of the target device, and the above-mentioned data information may be parsed to obtain the information of the target device from which to determine the target device indicated by the data information. The target device is the final transmission target of the data information.
一般來說,如果來源設備是雲端設備,則目標設備通 常為使用者設備,如果來源設備是使用者設備,則目標設備通常為雲端設備。 Generally, if the source device is a cloud device, the target device is usually a user device, and if the source device is a user device, the target device is usually a cloud device.
在步驟204中,基於上述處理後的資料向上述目標設備傳輸資料。 In step 204, data is transmitted to the target device based on the processed data.
在本實施例中,可以基於上述處理後的資料向上述目標設備傳輸資料。例如,如果來源設備是雲端設備,處理後的資料為得到的隧道協定資料包。則可以通過專用的資料傳輸通道向對應的目標設備發送該隧道協定資料包,該目標設備可以將隧道協定資料包解封裝後,獲取上述資料資訊。也可以通過專用的資料傳輸通道向目標設備對應的閘道(用於管理該目標設備與其它設備進行通信的閘道)發送該隧道協定資料包,該閘道將隧道協定資料包解封裝後,得到上述資料資訊,並將該資料資訊發送給目標設備。 In this embodiment, data may be transmitted to the target device based on the processed data. For example, if the source device is a cloud device, the processed data is the obtained tunnel agreement data packet. Then, the tunnel agreement data packet can be sent to a corresponding target device through a dedicated data transmission channel, and the target device can decapsulate the tunnel agreement data packet to obtain the above-mentioned data information. The tunnel agreement data packet can also be sent to the gateway corresponding to the target device (the gateway used to manage the communication between the target device and other devices) through a dedicated data transmission channel. After decapsulating the tunnel agreement data packet, Get the above information and send it to the target device.
如果來源設備是使用者設備,且上述資料資訊中不包括ARP請求,處理後的資料為原始資料資訊。則可以直接向對應的目標雲端設備發送該原始資料資訊。 If the source device is a user device and the above data information does not include an ARP request, the processed data is the original data information. Then the raw data information can be sent directly to the corresponding target cloud device.
應用上述實施例,通過判斷接收到的資料資訊所源自的來源設備是雲端設備還是使用者設備的判斷結果,對接收到的資料資訊進行相應的處理,並在確定該資料資訊指示的目標設備後,基於處理後的資料向目標設備傳輸資料。從而實現了雲端設備和使用者設備的相互進接,避免了因向雲端設備分配公網IP位址而造成的公共資源的浪費,節省了公共資源。 Applying the above embodiment, the judgment result of the source device from which the received data information is derived is a cloud device or a user device, the corresponding processing is performed on the received data information, and the target device indicated by the data information is determined Then, the data is transmitted to the target device based on the processed data. As a result, mutual access between the cloud device and the user device is achieved, public resources are not wasted due to the allocation of public network IP addresses to the cloud devices, and public resources are saved.
參見圖3A和圖3B,為本申請案資料傳輸方法的另一個實施例流程圖,該實施例可以應用在雲端閘道設備中,該實施例在圖2實施例的基礎上結合具體的例子對對資料資訊進行處理以及向目標設備傳輸資料的過程進行了進一步詳細的描述,該方法包括如下步驟:在步驟301中,回應於接收到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備。 Referring to FIG. 3A and FIG. 3B, a flowchart of another embodiment of a data transmission method of the present application. This embodiment can be applied to a cloud gateway device. This embodiment is based on the embodiment of FIG. 2 and combines specific examples. The process of processing the data information and transmitting the data to the target device is described in further detail. The method includes the following steps. In step 301, in response to receiving the data information, it is determined that the source device from which the data information originates is the cloud. The device is also the user device.
在本實施例中,當上述雲端閘道設備接收到資料資訊時,首先需要確定發送該資料資訊的來源設備。發送資料資訊的來源設備可以是雲端設備,也可以是使用者設備。如果上述來源設備為雲端設備,則說明該資料資訊從雲端設備向使用者設備傳輸。如果上述來源設備為使用者設備,則說明該資料資訊從使用者設備向雲端設備傳輸。 In this embodiment, when the cloud gateway device receives data information, it is necessary to first determine a source device that sends the data information. The source device for sending data information can be a cloud device or a user device. If the source device is a cloud device, the data information is transmitted from the cloud device to the user device. If the source device is a user device, the data information is transmitted from the user device to the cloud device.
在步驟302中,若來源設備是雲端設備,獲取資料傳輸通道匹配的隧道協定資訊。 In step 302, if the source device is a cloud device, the tunnel agreement information matching the data transmission channel is obtained.
在步驟303中,根據該隧道協定資訊將上述資料資訊封裝成隧道協定資料包。 In step 303, the above data information is encapsulated into a tunnel agreement data packet according to the tunnel agreement information.
在本實施例中,可以通過預先設置的資料傳輸通道將該資料資訊發送給目標設備。其中,資料傳輸通道為預先設置在雲端閘道設備和使用者設備之間的專用通道,專用於在雲端閘道設備和使用者設備之間提供通信鏈路的媒體,可以包括各種連接類型,例如有線、無線通訊鏈路或者光纖電纜等等。 In this embodiment, the material information may be sent to the target device through a preset data transmission channel. The data transmission channel is a dedicated channel set in advance between the cloud gateway device and the user device, and the media dedicated to providing a communication link between the cloud gateway device and the user device may include various connection types, such as Wired, wireless communication links or fiber optic cables, etc.
具體來說,首先,可以獲取與上述資料傳輸通道匹配 的隧道協定資訊。可以從計算平臺的計算資源與隧道協定資訊(如vxlan(virtual Extensible LAN,虛擬可擴展局域網)的vni值(VXLAN Network Identifier,VXLAN網路識別符))的映射表中獲取上述隧道協定資訊。 Specifically, first, the tunnel protocol information matching the above data transmission channel can be obtained. The above-mentioned tunneling agreement information may be obtained from a mapping table of computing resources of the computing platform and tunneling agreement information (such as a vxlan (VXLAN Network Identifier, VXLAN network identifier) of vxlan (virtual Extensible LAN)).
接著,根據隧道協定資訊將該資料資訊封裝成隧道協定資料包,隧道協定資料包為在原始資料包的基礎上增加了一個外層包頭而生成的資料包,外層包頭中包含目標設備的位址資訊,或者包含目標設備對應的閘道的位址資訊。 Then, the data information is encapsulated into a tunnel agreement data packet according to the tunnel agreement information. The tunnel agreement data packet is a data packet generated by adding an outer header to the original data packet. The outer header contains the address information of the target device. , Or contain the address information of the gateway corresponding to the target device.
在步驟304中,從資料資訊中解析出該資料資訊傳輸的目標使用者設備,作為第一目標設備。 In step 304, the target user equipment of the data information transmission is parsed from the data information as the first target device.
在本實施例中,若來源設備為雲端設備,則可以確定資料資訊從雲端設備向使用者設備傳輸。首先,需要確定上述資料資訊指示的目標使用者設備作為第一目標設備。其中,該資料資訊指示的目標使用者設備即為該資料資訊的最終傳輸目標。一般來說,資料資訊中攜帶傳輸目標的相關資訊,因此,可以通過對資料資訊的解析確定該資料資訊傳輸的目標使用者設備,作為第一目標設備。 In this embodiment, if the source device is a cloud device, it can be determined that data information is transmitted from the cloud device to the user device. First, the target user equipment indicated by the data information needs to be determined as the first target device. The target user equipment indicated by the data information is the final transmission target of the data information. Generally, the data information carries information about the transmission target. Therefore, the target user device for the data information transmission can be determined as the first target device by analyzing the data information.
在步驟305a中,通過上述資料傳輸通道向第一目標設備發送該隧道協定資料包。 In step 305a, the tunnel agreement data packet is sent to the first target device through the data transmission channel.
在步驟305b中,通過上述資料傳輸通道向第一目標設備對應的閘道發送隧道協定資料包。 In step 305b, a tunnel agreement data packet is sent to the gateway corresponding to the first target device through the data transmission channel.
在本實施例中,第一目標設備可以直接與雲端閘道設備進行通信,也可以通過使用者閘道設備與雲端閘道設備 進行通信。當第一目標設備能夠直接與雲端閘道設備進行通信時,雲端閘道設備可以通過上述預先設置的資料傳輸通道,向第一目標設備發送該隧道協定資料包,以供第一目標設備將該隧道協定資料包進行解封裝,去除外層包頭後,獲取該資料資訊。 In this embodiment, the first target device may directly communicate with the cloud gateway device, or may communicate with the cloud gateway device through the user gateway device. When the first target device can directly communicate with the cloud gateway device, the cloud gateway device may send the tunnel agreement data packet to the first target device through the foregoing preset data transmission channel, so that the first target device may send the tunnel agreement data packet The tunnel protocol data packet is decapsulated, and the data information is obtained after removing the outer header.
當第一目標設備需要通過使用者閘道設備與雲端閘道設備進行通信時,雲端閘道設備可以通過上述預先設置的資料傳輸通道,向第一目標設備對應的使用者閘道設備發送該隧道協定資料包,以供該使用者閘道設備將該隧道協定資料包進行解封裝,去除外層包頭後,獲取上述資料資訊,並將該資料資訊發送給第一目標設備。 When the first target device needs to communicate with the cloud gateway device through the user gateway device, the cloud gateway device can send the tunnel to the user gateway device corresponding to the first target device through the aforementioned pre-set data transmission channel. An agreement data packet for the user gateway device to decapsulate the tunnel agreement data packet, remove the outer header, obtain the above-mentioned data information, and send the data information to the first target device.
應用上述實施例,在來源設備是雲端設備時,根據資料傳輸通道匹配的隧道協定資訊將接收到的資料資訊封裝成隧道協定資料包,確定目標使用者設備,並通過資料傳輸通道向目標使用者設備或者向目標使用者設備對應的閘道發送該隧道協定資料包。從而實現了雲端設備和使用者設備的相互進接,避免了因向雲端設備分配公網IP位址而造成的公共資源的浪費,節省了公共資源。 Applying the above embodiment, when the source device is a cloud device, the received data information is packaged into a tunnel protocol data packet according to the tunnel protocol information matched by the data transmission channel, the target user device is determined, and the target user is transmitted to the target user through the data transmission channel. The device sends the tunnel agreement data packet to the gateway corresponding to the target user equipment. As a result, mutual access between the cloud device and the user device is achieved, public resources are not wasted due to the allocation of public network IP addresses to the cloud devices, and public resources are saved.
參見圖4,為本申請案資料傳輸方法的另一個實施例流程圖,該實施例可以應用在雲端閘道設備中,該實施例在圖2實施例的基礎上結合具體的例子對對資料資訊進行處理以及向目標設備傳輸資料的過程進行了進一步詳細的描述,該方法包括如下步驟:在步驟401中,回應於接收到資料資訊,判斷該資料 資訊所源自的來源設備是雲端設備還是使用者設備。 Referring to FIG. 4, a flowchart of another embodiment of a data transmission method of this application. This embodiment can be applied to a cloud gateway device. This embodiment is based on the embodiment of FIG. The process of processing and transmitting data to the target device is described in further detail. The method includes the following steps: In step 401, in response to receiving the data information, determining whether the source device from which the data information originates is a cloud device or is used Person equipment.
在步驟402中,若來源設備是使用者設備,則確定上述資料資訊是否包括位址解析協定ARP請求。 In step 402, if the source device is a user device, it is determined whether the data information includes an address resolution protocol ARP request.
在本實施例中,雲端閘道設備還可以具有ARP(Address Resolution Protocol,位址解析協定)代理功能,該代理功能能夠處理使用者設備的ARP請求。因此,若上述來源設備為使用者設備時,則可以進一步確定上述資料資訊是否包括ARP請求。ARP即位址解析協定,是根據IP位址獲取物理位址的一個TCP/IP協定。使用者設備可以向雲端閘道設備發送包含目標設備IP位址的ARP請求,以獲取目標設備的物理位址,從而可以基於目標設備的物理位址通過預先設置的資料傳輸通道與目標設備直接進行通信。 In this embodiment, the cloud gateway device may also have an ARP (Address Resolution Protocol, Address Resolution Protocol) proxy function, which can process the ARP request of the user device. Therefore, if the source device is a user device, it can be further determined whether the data information includes an ARP request. ARP stands for Address Resolution Protocol. It is a TCP / IP protocol for obtaining a physical address based on an IP address. The user device can send an ARP request containing the IP address of the target device to the cloud gateway device to obtain the physical address of the target device, so that it can be directly performed with the target device through the pre-set data transmission channel based on the physical address of the target device. Communication.
在步驟403中,若上述資料資訊未包括ARP請求,獲取傳輸上述資料資訊的資料傳輸通道匹配的隧道協定資訊。 In step 403, if the data information does not include an ARP request, the tunnel protocol information matching the data transmission channel for transmitting the data information is obtained.
在步驟404中,根據該隧道協定資訊對該資料資訊進行解封裝,以獲得原始資料資訊。 In step 404, the data information is decapsulated according to the tunnel agreement information to obtain the original data information.
在步驟405中,從該資料資訊中解析出上述資料資訊傳輸的目標雲端設備,作為第二目標設備。 In step 405, the target cloud device for the data information transmission is parsed from the data information as the second target device.
在步驟406中,向該第二目標設備發送上述原始資料資訊。 In step 406, the original data information is sent to the second target device.
在本實施例中,若上述資料資訊不包括ARP請求,則可以確定資料資訊從使用者設備向雲端設備傳輸。因此, 可以進一步確定該資料資訊指示的目標雲端設備作為第二目標設備。然後,獲取該資料資訊對應的原始資料資訊。具體地,首先可以獲取與該資料傳輸通道匹配的隧道協定資訊,根據該隧道協定資訊對該資料資訊進行解封裝,去除外層包頭,以獲得原始資料資訊。然後,向第二目標設備發送該資料包對應的原始資料資訊。 In this embodiment, if the data information does not include an ARP request, it can be determined that the data information is transmitted from the user device to the cloud device. Therefore, the target cloud device indicated by the data information can be further determined as the second target device. Then, obtain the raw data information corresponding to the data information. Specifically, first, the tunnel agreement information matching the data transmission channel can be obtained, and the data information is decapsulated according to the tunnel agreement information, and the outer header is removed to obtain the original data information. Then, the original data information corresponding to the data package is sent to the second target device.
在步驟407中,若上述資料資訊包括ARP請求,則查找出第三目標設備的物理位址,該第三目標設備為上述ARP請求指示的目標雲端設備。 In step 407, if the data information includes an ARP request, the physical address of a third target device is found, and the third target device is the target cloud device indicated by the ARP request.
在步驟408中,向來源設備返回該物理位址,以供來源設備基於物理位址與第三目標設備進行通信。 In step 408, the physical address is returned to the source device for the source device to communicate with the third target device based on the physical address.
在本實施例中,若來源設備為使用者設備,並且上述資料資訊包括ARP請求,則查找出第三目標設備(該ARP請求指示的目標雲端設備)的物理位址。一般來說,在雲端閘道設備的本地快取中,可能儲存有部分雲端設備的IP位址與物理位址的映射關係,因此,可以首先從快取中查找該第三目標設備的物理位址。若未從快取中查找出第三目標設備的物理位址,還可以將該ARP請求在雲端計算平臺的私網中用廣播的方式廣播ARP請求,從而查找出該ARP請求指示的第三目標設備的物理位址。 In this embodiment, if the source device is a user device and the above-mentioned data information includes an ARP request, the physical address of the third target device (the target cloud device indicated by the ARP request) is found. Generally speaking, in the local cache of the cloud gateway device, the mapping relationship between the IP address and the physical address of some cloud devices may be stored. Therefore, the physical bit of the third target device may be found from the cache first. site. If the physical address of the third target device is not found in the cache, the ARP request can also be broadcasted on the private network of the cloud computing platform by broadcasting, so as to find the third target indicated by the ARP request. The physical address of the device.
應用上述實施例,在來源設備是使用者設備時,若上述資料資訊未包括ARP請求,可以根據傳輸上述資料資訊的資料傳輸通道匹配的隧道協定資訊對該資料資訊進行解封裝,以獲得原始資料資訊,並確定目標雲端設備,向該 目標雲端設備發送上述原始資料資訊。若上述資料資訊包括ARP請求,可以通過雲端閘道設備具有的ARP代理功能,向使用者設備提供目標雲端設備的物理位址,從而進一步實現了雲端設備和使用者設備的相互進接,避免了因向使用者設備分配公網IP位址而造成的公共資源的浪費,節省了公共資源。 Applying the above embodiment, when the source device is a user device, if the data information does not include an ARP request, the data information may be decapsulated according to the tunnel protocol information matched by the data transmission channel transmitting the data information to obtain the original data. Information, and determine the target cloud device, and send the original data information to the target cloud device. If the above information includes an ARP request, the physical address of the target cloud device can be provided to the user device through the ARP proxy function of the cloud gateway device, thereby further achieving mutual access between the cloud device and the user device, avoiding The waste of public resources caused by assigning public network IP addresses to user equipment saves public resources.
參見圖5,為本申請案資料傳輸方法的另一個實施例流程圖,該實施例可以應用在使用者設備中,包括如下步驟:在步驟501中,回應於獲取到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備。 5 is a flowchart of another embodiment of a data transmission method of this application. This embodiment can be applied to user equipment and includes the following steps: In step 501, in response to obtaining data information, determining the data information Whether the source device is from a cloud device or a user device.
在本實施例中,執行主體為使用者設備,使用者設備可以是終端,也可以是伺服器,還可以閘道設備,本申請案對使用者設備的具體形式方面不限定。使用者設備可以通過雲端閘道設備進接雲端計算平臺中的雲端設備,並且使用者設備可以直接與雲端閘道設備進行通信,也可以通過使用者閘道設備與雲端閘道設備進行通信。 In this embodiment, the execution subject is user equipment. The user equipment may be a terminal, a server, or a gateway device. The specific form of the user equipment is not limited in this application. The user device can access the cloud device in the cloud computing platform through the cloud gateway device, and the user device can directly communicate with the cloud gateway device, or can communicate with the cloud gateway device through the user gateway device.
在步驟502中,若來源設備是雲端設備,獲取傳輸上述資料資訊的資料傳輸通道匹配的隧道協定資訊。 In step 502, if the source device is a cloud device, the tunnel protocol information matching the data transmission channel for transmitting the above data information is obtained.
在步驟503中,根據該隧道協定資訊對上述資料資訊進行解封裝,以獲得原始資料資訊。 In step 503, the above data information is decapsulated according to the tunnel agreement information to obtain original data information.
在本實施例中,首先可以獲取與該資料傳輸通道匹配的隧道協定資訊,然後根據該隧道協定資訊對該資料包進行解封裝,去除外層包頭,以獲得原始資料資訊。 In this embodiment, first, the tunnel agreement information matching the data transmission channel can be obtained, and then the data packet is decapsulated according to the tunnel agreement information, and the outer header is removed to obtain the original data information.
在步驟504中,確定該資料資訊指示的目標設備作為第一目標設備。 In step 504, the target device indicated by the profile information is determined as the first target device.
在本實施例中,若來源設備為雲端設備,則可以確定上述資料資訊從雲端設備向使用者設備傳輸。並需要確定該資料資訊指示的目標使用者設備作為第一目標設備。其中,該資料資訊為雲端設備通過預先設置的資料傳輸通道發送的。該資料資訊指示的第一目標設備即為該資料資訊的最終傳輸目標。一般來說,資料資訊中攜帶傳輸目標的相關資訊,因此,可以通過對資料資訊的解析確定該資料資訊指示的第一目標設備。 In this embodiment, if the source device is a cloud device, it can be determined that the above-mentioned data information is transmitted from the cloud device to the user device. It is also necessary to determine the target user equipment indicated by the data information as the first target device. The data information is sent by the cloud device through a preset data transmission channel. The first target device indicated by the data information is the final transmission target of the data information. Generally, the data information carries information about the transmission target. Therefore, the first target device indicated by the data information can be determined by analyzing the data information.
在步驟505中,向第一目標設備包括的預定單元傳輸原始資料資訊。 In step 505, the original material information is transmitted to a predetermined unit included in the first target device.
在本實施例中,第一目標設備可以是作為本實施例執行主體的使用者設備,也可以是除執行主體以外的使用者設備。如果第一目標設備是作為本實施例執行主體的使用者設備,則由該使用者設備中獲得原始資料資訊的單元向該使用者設備中包括的預定單元傳輸原始資料資訊。如果第一目標設備是除執行主體以外的使用者設備,則由作為本實施例執行主體的使用者設備向第一目標設備中包括的預定單元傳輸原始資料資訊。其中,預定單元為第一目標設備中請求獲取原始資料資訊的單元。 In this embodiment, the first target device may be a user equipment as an execution subject of this embodiment, or a user equipment other than the execution subject. If the first target device is the user equipment that is the subject of execution of this embodiment, the unit that obtains the original data information in the user equipment transmits the original data information to a predetermined unit included in the user equipment. If the first target device is a user device other than the execution subject, the user device serving as the execution subject of this embodiment transmits original data information to a predetermined unit included in the first target device. The predetermined unit is a unit in the first target device that requests to obtain raw material information.
應用上述實施例,在獲取到的資料資訊的來源設備是雲端設備時,根據資料傳輸通道匹配的隧道協定資訊將接收到的資料資訊進行解封裝,以獲得原始資料資訊,確定 目標使用者設備,並向目標使用者設備包括的預定單元傳輸原始資料資訊。從而實現了雲端設備和使用者設備的相互進接,避免了因向雲端設備分配公網IP位址而造成的公共資源的浪費,節省了公共資源。 Applying the foregoing embodiment, when the source device of the obtained data information is a cloud device, the received data information is decapsulated according to the tunneling protocol information matched by the data transmission channel to obtain the original data information and determine the target user device. The original data information is transmitted to a predetermined unit included in the target user equipment. As a result, mutual access between the cloud device and the user device is achieved, public resources are not wasted due to the allocation of public network IP addresses to the cloud devices, and public resources are saved.
參見圖6,為本申請案資料傳輸方法的另一個實施例流程圖,該實施例可以應用在使用者設備中,該實施例在圖5實施例的基礎上結合具體的例子對來源設備為使用者設備的情況下該方法的過程進行了進一步詳細的描述,該方法包括如下步驟:在步驟601中,回應於獲取到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備。 6 is a flowchart of another embodiment of a data transmission method of this application. This embodiment can be applied to user equipment. This embodiment uses a specific example to use a source device based on the embodiment of FIG. 5. The process of the method in the case of a user device is described in further detail. The method includes the following steps: In step 601, in response to obtaining the data information, it is determined whether the source device from which the data information originates is a cloud device or a user. device.
在步驟602中,若來源設備是雲端設備,獲取傳輸上述資料資訊的資料傳輸通道匹配的隧道協定資訊。 In step 602, if the source device is a cloud device, the tunnel protocol information matching the data transmission channel for transmitting the data information is obtained.
在步驟603中,根據該隧道協定資訊對上述資料資訊進行解封裝,以獲得原始資料資訊。 In step 603, the above data information is decapsulated according to the tunnel agreement information to obtain original data information.
在步驟604中,確定該資料資訊指示的目標設備作為第一目標設備。 In step 604, the target device indicated by the profile information is determined as the first target device.
在步驟605中,向第一目標設備包括的預定單元傳輸原始資料資訊。 In step 605, the original material information is transmitted to a predetermined unit included in the first target device.
在步驟606中,若來源設備為使用者設備,則確定該資料資訊是否包括位址解析協定ARP請求。 In step 606, if the source device is a user device, it is determined whether the data information includes an address resolution protocol ARP request.
在本實施例中,使用者設備可以通過雲端閘道設備進接雲端設備,也可以向雲端閘道設備發送ARP請求,以獲取需要進接的目標雲端設備對應的物理位址,從而直接通 過該物理位址進接該目標雲端設備。因此,從使用者設備向雲端設備傳輸的資料資訊也可以是ARP請求資料資訊,可以理解,本申請案對資料資訊的具體內容方面不限定。一般來說,ARP請求資料資訊中攜帶傳輸目標的相關資訊,因此,可以通過對資料資訊的解析確定該資料資訊指示的目標雲端設備以及對應的雲端閘道設備。 In this embodiment, the user device can access the cloud device through the cloud gateway device, or can send an ARP request to the cloud gateway device to obtain the physical address corresponding to the target cloud device that needs to be accessed, so as to pass directly through the cloud gateway device. The physical address accesses the target cloud device. Therefore, the data information transmitted from the user device to the cloud device may also be ARP request data information. It can be understood that the specific content of the data information is not limited in this application. Generally, the ARP request data information carries information about the transmission target. Therefore, the target cloud device indicated by the data information and the corresponding cloud gateway device can be determined by analyzing the data information.
在步驟607中,若該資料資訊未包括ARP請求,獲取資料傳輸通道匹配的隧道協定資訊。 In step 607, if the data information does not include an ARP request, the tunnel protocol information matching the data transmission channel is obtained.
在步驟608中,根據該隧道協定資訊將該資料資訊封裝成隧道協定資料包。 In step 608, the data information is encapsulated into a tunnel agreement data packet according to the tunnel agreement information.
在步驟609中,確定該資料資訊指示的目標設備作為第二目標設備。 In step 609, the target device indicated by the profile information is determined as the second target device.
在步驟610中,通過資料傳輸通道向第二目標設備對應的閘道發送隧道協定資料包。 In step 610, a tunnel agreement data packet is sent to the gateway corresponding to the second target device through the data transmission channel.
在本實施例中,若來源設備為使用者設備,且該資料資訊未包括ARP請求,則可以確定該資料資訊從使用者設備向雲端設備傳輸。因此,可以進一步確定該資料資訊指示的目標雲端設備作為第二目標設備。可以通過預先設置的資料傳輸通道將該資料資訊發送給第二目標設備。 In this embodiment, if the source device is a user device and the data information does not include an ARP request, it can be determined that the data information is transmitted from the user device to the cloud device. Therefore, the target cloud device indicated by the data information can be further determined as the second target device. The data information may be sent to the second target device through a preset data transmission channel.
具體地,首先,可以獲取與上述資料傳輸通道匹配的隧道協定資訊。可以從計算平臺的計算資源與隧道協定資訊的映射表中獲取上述隧道協定資訊。接著,根據隧道協定資訊將該資料資訊封裝成隧道協定資料包,隧道協定資料包為在原始資料包的基礎上增加了一個外層包頭而生成 的資料資訊。 Specifically, first, the tunnel agreement information matching the data transmission channel can be obtained. The above-mentioned tunnel agreement information can be obtained from a mapping table of the computing resources of the computing platform and the tunnel agreement information. Then, the data information is encapsulated into a tunnel agreement data packet according to the tunnel agreement information. The tunnel agreement data packet is data information generated by adding an outer header to the original data packet.
最後,通過預先設置的資料傳輸通道,向第二目標設備對應的閘道發送該隧道協定資料包,以供該閘道將該隧道協定資料包進行解封裝,去除外層包頭以得到資料資訊,將該資料資訊發送給第二目標設備。 Finally, the tunnel agreement data packet is sent to the gateway corresponding to the second target device through the preset data transmission channel, so that the gateway can decapsulate the tunnel agreement data packet, remove the outer header to obtain data information, and The information is sent to the second target device.
在步驟611中,若該資料資訊包括ARP請求,則確定第三目標設備對應的閘道,第三目標設備為ARP請求指示的目標雲端設備。 In step 611, if the data information includes an ARP request, a gateway corresponding to the third target device is determined, and the third target device is a target cloud device indicated by the ARP request.
在步驟612中,向上述閘道發送該資料資訊,以供該閘道查找出第三目標設備的物理位址。 In step 612, the data information is sent to the gateway for the gateway to find out the physical address of the third target device.
在步驟613中,接收該閘道返回的第三目標設備的物理位址。 In step 613, the physical address of the third target device returned by the gateway is received.
在本實施例中,接收雲端上資源對應的閘道返回的第三目標設備的物理位址,然後將該物理位址返回給發送ARP請求的使用者設備。 In this embodiment, the physical address of the third target device returned by the gateway corresponding to the resource on the cloud is received, and then the physical address is returned to the user equipment that sends the ARP request.
應用上述實施例,在接收到的資料資訊的來源設備是使用者設備時,若該資料資訊未包括ARP請求,可以根據傳輸上述資料資訊的資料傳輸通道匹配的隧道協定資訊,將該資料資訊封裝成隧道協定資料包,並確定目標雲端設備,基於隧道協定資料包向該目標雲端設備傳輸上述資料資訊。若上述資料資訊包括ARP請求,可以通過雲端閘道設備具有的ARP代理功能,向使用者設備提供目標雲端設備的物理位址,從而進一步實現了雲端設備和使用者設備的相互進接,避免了因向雲端設備分配公網IP位址而造成 的公共資源的浪費,節省了公共資源。 Applying the foregoing embodiment, when the source device of the received data information is a user device, if the data information does not include an ARP request, the data information may be encapsulated according to the tunnel protocol information matched by the data transmission channel transmitting the data information. A tunnel agreement data packet is formed, and a target cloud device is determined, and the above data information is transmitted to the target cloud device based on the tunnel agreement data packet. If the above information includes an ARP request, the physical address of the target cloud device can be provided to the user device through the ARP proxy function of the cloud gateway device, thereby further achieving mutual access between the cloud device and the user device, avoiding The waste of public resources caused by the allocation of public network IP addresses to cloud devices saves public resources.
應當注意,儘管在附圖中以特定順序描述了本申請案方法的操作,但是,這並非要求或者暗示必須按照該特定順序來執行這些操作,或是必須執行全部所示的操作才能實現期望的結果。相反,流程圖中描繪的步驟可以改變執行順序。附加地或備選地,可以省略某些步驟,將多個步驟合併為一個步驟執行,和/或將一個步驟分解為多個步驟執行。 It should be noted that although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that these operations must be performed in that specific order, or that all operations shown must be performed to achieve the desired result. Instead, the steps depicted in the flowchart can change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be split into multiple steps for execution.
下面結合一個完整的資料傳輸應用實例,對本申請案方案進行示意性說明。 In the following, a complete data transmission application example is used to schematically illustrate the solution of this application.
應用場景可以為:使用者設備A從雲端計算平臺獲取計算資來源資料的過程,以及使用者設備A向雲端計算平臺發送計算資來源資料的過程。 The application scenario may be: a process in which user equipment A obtains computing resource source data from the cloud computing platform, and a process in which user equipment A sends computing resource source data to the cloud computing platform.
具體來說,首先,可以預先在雲端計算平臺的雲端閘道設備與使用者設備A之間設置專用的資料傳輸通道,以使該雲端閘道設備能夠通過該專用的資料傳輸通道與使用者設備A進行通信。 Specifically, first, a dedicated data transmission channel can be set in advance between the cloud gateway device of the cloud computing platform and the user device A, so that the cloud gateway device can communicate with the user device through the dedicated data transmission channel. A communicates.
當使用者設備A請求從雲端計算平臺獲取計算資來源資料時,雲端計算平臺中的雲端設備可以將使用者設備A請求的計算資來源資料發送給雲端閘道設備。雲端閘道設備將上述計算資來源資料封裝成隧道協定資料包,如果使用者設備A具有閘道設備的功能,則可以將該隧道協定資料包直接發送給使用者設備A,由使用者設備A對隧道協定資料包解封裝,以還原上述計算資來源資料。如果使用 者設備A不具有閘道設備的功能,則可以將該隧道協定資料包發送給使用者設備A對應的使用者閘道設備,再由使用者閘道設備將隧道協定資料包解封裝,以還原上述計算資來源資料,並將該計算資來源資料發送給使用者設備A。 When user equipment A requests computing resource source data from the cloud computing platform, the cloud device in the cloud computing platform may send the computing resource source data requested by user device A to the cloud gateway device. The cloud gateway device encapsulates the above computing resource source data into a tunnel agreement data package. If user equipment A has the function of a gateway device, the tunnel agreement data package can be sent directly to user equipment A, and user equipment A Decapsulate the tunnel agreement data package to restore the above-mentioned computing resource source data. If the user equipment A does not have the function of a gateway device, the tunnel agreement data packet can be sent to the user gateway device corresponding to the user equipment A, and the user gateway device decapsulates the tunnel agreement data packet. The computing resource source data is restored, and the computing resource source data is sent to the user device A.
當使用者設備A向雲端計算平臺傳輸計算資來源資料時,如果使用者設備A具有閘道設備的功能,則可以直接將該計算資來源資料封裝成隧道協定資料包,然後,將隧道協定資料包發送給雲端計算平臺中的雲端閘道設備。如果使用者設備A不具有閘道設備的功能,則可以將該計算資來源資料發送給使用者設備A對應的使用者閘道設備,由該使用者閘道設備將計算資來源資料封裝成隧道協定資料包,並將隧道協定資料包發送給雲端計算平臺中的雲端閘道設備。最後,雲端閘道設備將隧道協定資料包解封裝,以還原上述計算資來源資料,並將該計算資來源資料發送給雲端設備。 When user equipment A transmits computing resource source data to the cloud computing platform, if user equipment A has the function of a gateway device, the computing resource source data can be directly packaged into a tunnel agreement data package, and then the tunnel agreement data The package is sent to the cloud gateway device in the cloud computing platform. If the user equipment A does not have the function of a gateway device, the computing resource source data can be sent to the user gateway device corresponding to the user equipment A, and the user gateway device encapsulates the computing resource source data into a tunnel. Agreement data package, and send the tunnel agreement data package to the cloud gateway device in the cloud computing platform. Finally, the cloud gateway device decapsulates the tunnel agreement data package to restore the above-mentioned computing resource source data, and sends the computing resource source data to the cloud device.
使用者設備A還可以向雲端閘道設備發送ARP請求,該ARP請求包括目標雲端設備的IP位址,雲端閘道設備可以從本地快取中獲取映射關係表,該映射關係表記錄了部分雲端設備的IP位址與物理位址的映射關係。從該映射關係表中查找出目標雲端設備的物理位址。將目標雲端設備的物理位址返回給上述使用者設備A,使用者設備A可以根據該物理位址,通過資料傳輸通道直接與目標雲端設備進行通信,以發送或者請求獲取計算資來源資料。 User device A can also send an ARP request to the cloud gateway device. The ARP request includes the IP address of the target cloud device. The cloud gateway device can obtain a mapping relationship table from the local cache. The mapping relationship table records part of the cloud. The mapping between the IP address and physical address of the device. Find out the physical address of the target cloud device from the mapping relationship table. The physical address of the target cloud device is returned to the above-mentioned user device A, and the user device A can directly communicate with the target cloud device through the data transmission channel according to the physical address to send or request to obtain the computing resource source data.
可見,應用上述方案,無需向雲端設備分配公網IP位址,就可以實現雲端設備和使用者設備的相互進接,從而節省了公共資源。 It can be seen that by applying the above solution, the cloud device and the user device can be connected to each other without assigning a public network IP address to the cloud device, thereby saving public resources.
與本申請案資料傳輸方法的實施例相對應,本申請案還提供了資料傳輸設備、裝置及系統的實施例。 Corresponding to the embodiments of the data transmission method of the present application, the present application also provides embodiments of data transmission equipment, devices, and systems.
本申請案資料傳輸裝置的實施例可以應用在設備上。裝置實施例可以通過軟體實現,也可以通過硬體或者軟硬體結合的方式實現。以軟體實現為例,作為一個邏輯意義上的裝置,是通過其所在設備的處理器將非易失性記憶體中對應的電腦程式指令讀取到記憶體中運行形成的。從硬體層面而言,如圖7所示,為本申請案資料傳輸裝置701所在設備700的一種硬體結構圖,設備700包括處理器702、記憶體703、網路介面704、非易失性記憶體705以及內部匯流排706,其中,處理器702、記憶體703、網路介面704以及非易失性記憶體705相互之間可以通過內部匯流排706進行通信。除了圖7所示的處理器702、記憶體703、網路介面704、非易失性記憶體705以及內部匯流排706之外,實施例中裝置所在的設備700通常根據該設備的實際功能,還可以包括其他硬體,圖7中不再一一示出。 The embodiments of the data transmission device of this application can be applied to a device. The device embodiments can be implemented by software, or by a combination of hardware or software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the device in which it is located. In terms of hardware, as shown in FIG. 7, it is a hardware structure diagram of the device 700 where the data transmission device 701 of this application is located. The device 700 includes a processor 702, a memory 703, a network interface 704, and a nonvolatile memory. The internal memory 705 and the internal bus 706, among which the processor 702, the memory 703, the network interface 704, and the non-volatile memory 705 can communicate with each other through the internal bus 706. Except for the processor 702, the memory 703, the network interface 704, the non-volatile memory 705, and the internal bus 706 shown in FIG. 7, the device 700 in which the device is located in the embodiment is generally based on the actual function of the device. Other hardware may also be included, which are not shown one by one in FIG. 7.
參見圖8,為本申請案閘道設備的一個實施例方塊圖。 Referring to FIG. 8, a block diagram of an embodiment of a gateway device according to the present application is shown.
該閘道設備包括:接收器801、中央處理單元802、處理單元803、資料解析單元804和發送器805;其中,由接收器801接收資料資訊,中央處理單元802 回應於接收器801接收到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備,處理單元803基於中央處理單元802判斷的結果,對資料資訊進行對應的處理,以獲取處理後的資料,資料解析單元804確定資料資訊指示的目標設備,由發送器805基於處理後的資料向目標設備傳輸資料。 The gateway device includes a receiver 801, a central processing unit 802, a processing unit 803, a data analysis unit 804, and a transmitter 805. Among them, the receiver 801 receives data information, and the central processing unit 802 responds to the receiver 801 receiving data Information to determine whether the source device from which the data information originates is a cloud device or a user device. The processing unit 803 performs corresponding processing on the data information based on the result of the determination by the central processing unit 802 to obtain processed data and a data analysis unit 804 determines the target device indicated by the data information, and the transmitter 805 transmits data to the target device based on the processed data.
在一個可選的實現方式中,處理單元803配置用於:在來源設備是雲端設備時,根據資料傳輸通道匹配的隧道協定資訊,將該資料資訊封裝成隧道協定資料包。 In an optional implementation manner, the processing unit 803 is configured to: when the source device is a cloud device, package the data information into a tunnel agreement data packet according to the tunnel agreement information matched by the data transmission channel.
在另一個可選的實現方式中,資料解析單元804配置用於:從資料資訊中解析出資料資訊傳輸的目標使用者設備,作為第一目標設備。 In another optional implementation manner, the data analysis unit 804 is configured to: parse out the target user equipment for data information transmission from the data information as the first target device.
發送器805配置用於:通過資料傳輸通道向第一目標設備發送隧道協定資料包,以供第一目標設備將隧道協定資料包解封裝後,獲取資料資訊。或者通過資料傳輸通道向第一目標設備對應的閘道發送隧道協定資料包,以供上述閘道將隧道協定資料包解封裝後,將該資料資訊發送給第一目標設備。 The transmitter 805 is configured to send a tunnel agreement data packet to the first target device through a data transmission channel, so that the first target device decapsulates the tunnel agreement data packet to obtain data information. Alternatively, a tunnel agreement data packet is sent to a gateway corresponding to the first target device through a data transmission channel, so that the gateway decapsulates the tunnel agreement data packet and sends the data information to the first target device.
在另一個可選的實現方式中,處理單元803配置用於:在來源設備是使用者設備,並且該資料資訊未包括ARP請求時,根據傳輸該所述資料資訊的資料傳輸通道匹配的隧道協定資訊對該資料資訊進行解封裝,以獲得原始資料資訊。 In another optional implementation manner, the processing unit 803 is configured to: when the source device is a user device and the data information does not include an ARP request, match a tunneling protocol that matches a data transmission channel for transmitting the data information Information decapsulates the data information to obtain the original data information.
在另一個可選的實現方式中,資料解析單元804配置 用於:從資料資訊中解析出資料資訊傳輸的目標雲端設備,作為第二目標設備。 In another optional implementation manner, the data analysis unit 804 is configured to: parse the target cloud device for data information transmission from the data information as the second target device.
發送器805配置用於:向第二目標設備發送原始資料資訊。 The transmitter 805 is configured to: send raw material information to the second target device.
在另一個可選的實現方式中,上述閘道設備還包括物理位址查找單元(圖8中未示出):該物理位址查找單元在上述資料資訊包括ARP請求時,查找出第三目標設備的物理位址,該第三目標設備為該ARP請求指示的目標雲端設備。 In another optional implementation manner, the gateway device further includes a physical address search unit (not shown in FIG. 8): the physical address search unit finds a third target when the above-mentioned information includes an ARP request The physical address of the device, and the third target device is the target cloud device indicated by the ARP request.
發送器805還配置用於:向來源設備返回物理位址,以供來源設備基於該物理位址與第三目標設備進行通信。 The transmitter 805 is further configured to: return a physical address to the source device for the source device to communicate with the third target device based on the physical address.
參見圖9,為本申請案一種設備的一個實施例方塊圖。 Referring to FIG. 9, a block diagram of an embodiment of a device according to the present application is shown.
該設備包括:資訊獲取單元901、中央處理單元902、處理單元903、資料解析單元904和傳輸單元905。 The device includes: an information acquisition unit 901, a central processing unit 902, a processing unit 903, a data analysis unit 904, and a transmission unit 905.
其中,由資訊獲取單元901獲取資料資訊,中央處理單元902回應於資訊獲取單元901獲取到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備,若中央處理單元902判斷的結果為來源設備是雲端設備,則處理單元903根據隧道協定資訊對上述資料資訊進行解封裝,以獲得原始資料資訊,資料解析單元904確定資料資訊指示的目標設備作為第一目標設備,由傳輸單元905向第一目標設備包括的預定單元傳輸上述原始資料資訊。 The information acquisition unit 901 obtains the data information, and the central processing unit 902 responds to the information acquisition unit 901 to obtain the data information, and determines whether the source device from which the data information originates is a cloud device or a user device. As a result, the source device is a cloud device, the processing unit 903 decapsulates the above data information according to the tunnel agreement information to obtain the original data information, and the data analysis unit 904 determines the target device indicated by the data information as the first target device, which is transmitted by The unit 905 transmits the original data information to a predetermined unit included in the first target device.
在一個可選的實現方式中,若中央處理單元902判斷 的結果為來源設備是使用者設備,則處理單元903配置用於在上述資料資訊未包括ARP請求時,根據資料傳輸通道匹配的隧道協定資訊將該資料資訊封裝成隧道協定資料包,資料解析單元904確定該資料資訊指示的目標設備作為第二目標設備,傳輸單元905通過資料傳輸通道向第二目標設備對應的閘道發送該隧道協定資料包,以供該閘道將該隧道協定資料包解封裝後,將資料資訊發送給第二目標設備。 In an optional implementation manner, if the result of the determination by the central processing unit 902 is that the source device is a user device, the processing unit 903 is configured to match the tunneling protocol according to the data transmission channel when the above data information does not include an ARP request. The information encapsulates the data information into a tunnel agreement data packet, the data analysis unit 904 determines the target device indicated by the data information as the second target device, and the transmission unit 905 sends the tunnel agreement to the gateway corresponding to the second target device through the data transmission channel A data packet for the gateway to decapsulate the tunnel agreement data packet and send the data information to the second target device.
在另一個可選的實現方式中,資料解析單元904還配置用於在上述資料資訊包括ARP請求時,確定第三目標設備對應的閘道,第三目標設備為ARP請求指示的目標雲端設備。傳輸單元905還配置用於向上述閘道發送上述資料資訊,以供該閘道查找出第三目標設備的物理位址。資訊獲取單元901還配置用於接收該閘道返回的第三目標設備的物理位址。 In another optional implementation manner, the data analysis unit 904 is further configured to determine a gateway corresponding to a third target device when the foregoing data information includes an ARP request, and the third target device is a target cloud device indicated by the ARP request. The transmission unit 905 is further configured to send the data information to the gateway for the gateway to find out the physical address of the third target device. The information obtaining unit 901 is further configured to receive a physical address of a third target device returned by the gateway.
參見圖10,為本申請案一種資料傳輸裝置的一個實施例方塊圖。 Referring to FIG. 10, a block diagram of a data transmission device according to an embodiment of the present application is shown.
該裝置包括:判斷單元1001,處理單元1002,確定單元1003和傳輸單元1004。 The device includes a judgment unit 1001, a processing unit 1002, a determination unit 1003, and a transmission unit 1004.
其中,判斷單元1001,用於回應於接收到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備。 The determining unit 1001 is configured to determine whether the source device from which the data information originates is a cloud device or a user device in response to receiving the data information.
處理單元1002,用於基於上述判斷的結果,對該資料資訊進行對應的處理,以獲取處理後的資料。 The processing unit 1002 is configured to perform corresponding processing on the data information based on a result of the foregoing judgment to obtain processed data.
確定單元1003,用於確定該資料資訊指示的目標設備。 A determining unit 1003 is configured to determine a target device indicated by the material information.
傳輸單元1004,用於基於處理後的資料向目標設備傳輸資料。 The transmission unit 1004 is configured to transmit data to the target device based on the processed data.
參見圖11,為本申請案另一種資料傳輸裝置的一個實施例方塊圖。 Referring to FIG. 11, it is a block diagram of another embodiment of a data transmission device of this application.
該裝置包括:判斷單元1101,獲取單元1102,解封裝單元1103,確定單元1104和傳輸單元1105。 The device includes a judgment unit 1101, an acquisition unit 1102, a decapsulation unit 1103, a determination unit 1104, and a transmission unit 1105.
其中,判斷單元1101,用於回應於獲取到資料資訊,判斷該資料資訊所源自的來源設備是雲端設備還是使用者設備。 The determining unit 1101 is configured to determine whether the source device from which the data information originates is a cloud device or a user device in response to the obtained data information.
獲取單元1102,用於在來源設備是雲端設備時,獲取傳輸上述資料資訊的資料傳輸通道匹配的隧道協定資訊。 The obtaining unit 1102 is configured to obtain tunnel agreement information matching a data transmission channel for transmitting the foregoing data information when the source device is a cloud device.
解封裝單元1103,用於根據該隧道協定資訊對上述資料資訊進行解封裝,以獲得原始資料資訊。 The decapsulating unit 1103 is configured to decapsulate the foregoing data information according to the tunnel protocol information to obtain original data information.
確定單元1104,用於確定上述資料資訊指示的目標設備作為第一目標設備。 The determining unit 1104 is configured to determine a target device indicated by the material information as a first target device.
傳輸單元1105,用於向第一目標設備包括的預定單元傳輸資料原始資料資訊。 The transmission unit 1105 is configured to transmit data source information to a predetermined unit included in the first target device.
上述裝置中各個單元的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,在此不再贅述。 For details about the implementation process of the functions and functions of the units in the foregoing device, see the implementation process of the corresponding steps in the foregoing method for details, and details are not described herein again.
對於裝置實施例而言,由於其基本對應於方法實施例,所以相關之處參見方法實施例的部分說明即可。以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離 部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本申請案方案的目的。本領域普通技術人員在不付出進步性勞動的情況下,即可以理解並實施。 As for the device embodiment, since it basically corresponds to the method embodiment, the relevant part may refer to the description of the method embodiment. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located One place, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. Those of ordinary skill in the art can understand and implement it without paying progressive labor.
本領域技術人員在考慮說明書及實踐這裡公開的發明後,將容易想到本申請案的其它實施方案。本申請案旨在涵蓋本申請案的任何變型、用途或者適應性變化,這些變型、用途或者適應性變化遵循本申請案的一般性原理並包括本申請案未公開的本技術領域中的公知常識或慣用技術手段。說明書和實施例僅被視為示例性的,本申請案的真正範圍和精神由下面的申請專利範圍指出。 Those skilled in the art will readily contemplate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application. These variations, uses, or adaptations follow the general principles of this application and include common general knowledge in the technical field not disclosed in this application. Or conventional technical means. The description and examples are to be regarded as merely exemplary, and the true scope and spirit of this application is indicated by the scope of the patent application below.
應當理解的是,本申請案並不局限於上面已經描述並在附圖中示出的精確結構,並且可以在不脫離其範圍進行各種修改和改變。本申請案的範圍僅由所附的申請專利範圍來限制。 It should be understood that the present application is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of this application is limited only by the scope of the accompanying patent applications.
Claims (21)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
??201610942774.5 | 2016-11-01 | ||
CN201610942774.5A CN108011801B (en) | 2016-11-01 | 2016-11-01 | Data transmission method, equipment, device and system |
CN201610942774.5 | 2016-11-01 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201818699A true TW201818699A (en) | 2018-05-16 |
TWI735633B TWI735633B (en) | 2021-08-11 |
Family
ID=62047935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106126942A TWI735633B (en) | 2016-11-01 | 2017-08-09 | Data transmission method, equipment, device and system |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN108011801B (en) |
TW (1) | TWI735633B (en) |
WO (1) | WO2018082452A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI744002B (en) * | 2020-09-22 | 2021-10-21 | 財團法人資訊工業策進會 | Data transmission system and data transmission method |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111225403A (en) * | 2018-11-23 | 2020-06-02 | 广州慧睿思通信息科技有限公司 | Induction method and device based on mobile communication terminal IP address |
CN110971482B (en) * | 2019-11-05 | 2021-07-23 | 北京字节跳动网络技术有限公司 | Back-end server detection method and device based on ebpf and electronic equipment |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8259571B1 (en) * | 2010-03-26 | 2012-09-04 | Zscaler, Inc. | Handling overlapping IP addresses in multi-tenant architecture |
US8493851B2 (en) * | 2010-05-07 | 2013-07-23 | Broadcom Corporation | Method and system for offloading tunnel packet processing in cloud computing |
US8374183B2 (en) * | 2010-06-22 | 2013-02-12 | Microsoft Corporation | Distributed virtual network gateways |
CN102882758B (en) * | 2011-07-12 | 2018-12-07 | 华为技术有限公司 | Method, network side equipment and the data center apparatus of virtual private cloud access network |
US8811409B2 (en) * | 2012-06-04 | 2014-08-19 | Telefonaktiebolaget L M Ericsson (Publ) | Routing VLAN tagged packets to far end addresses of virtual forwarding instances using separate administrations |
CN102891790B (en) * | 2012-09-21 | 2016-03-02 | 中国电信股份有限公司 | The VPN virtual method of the privately owned cloud of a kind of accesses virtual and system |
CN103200069B (en) * | 2013-03-29 | 2016-01-27 | 华为技术有限公司 | A kind of method and apparatus of Message processing |
TW201526588A (en) * | 2013-12-17 | 2015-07-01 | Edgewater Networks Inc | Methods and systems to split equipment control between local and remote processing units |
KR20150113597A (en) * | 2014-03-31 | 2015-10-08 | 한국전자통신연구원 | Method and apparatus for processing arp packet |
CN104113879B (en) * | 2014-08-13 | 2018-03-06 | 成都西加云杉科技有限公司 | It is deployed with cloud AC WiFi communication system and communication means |
-
2016
- 2016-11-01 CN CN201610942774.5A patent/CN108011801B/en active Active
-
2017
- 2017-08-09 TW TW106126942A patent/TWI735633B/en active
- 2017-10-20 WO PCT/CN2017/106985 patent/WO2018082452A1/en active Application Filing
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI744002B (en) * | 2020-09-22 | 2021-10-21 | 財團法人資訊工業策進會 | Data transmission system and data transmission method |
Also Published As
Publication number | Publication date |
---|---|
WO2018082452A1 (en) | 2018-05-11 |
TWI735633B (en) | 2021-08-11 |
CN108011801A (en) | 2018-05-08 |
CN108011801B (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108449282B (en) | Load balancing method and device | |
CN112511611B (en) | Communication method, device and system of node cluster and electronic equipment | |
KR102388195B1 (en) | BRAS system-based message packaging method and device | |
CN106790420B (en) | A kind of more session channel method for building up and system | |
US10389628B2 (en) | Exposing a subset of hosts on an overlay network to components external to the overlay network without exposing another subset of hosts on the overlay network | |
WO2017054526A1 (en) | Arp entry generation method and device | |
JP2017528832A5 (en) | ||
US20140067914A1 (en) | Computer system and packet transfer method | |
US9843514B2 (en) | Packet processing method and background server | |
TW201517563A (en) | Could gateway establishing and configuring system and method | |
WO2021063028A1 (en) | Method and apparatus for providing network service for service, and computing device | |
CN112583910B (en) | Equipment access method and device of Internet of things platform, electronic equipment and storage medium | |
TWI735633B (en) | Data transmission method, equipment, device and system | |
CN110691110B (en) | Communication method, device, system, terminal, equipment and medium | |
WO2017124965A1 (en) | Network access method for multiple operating system terminal and multiple operating system terminal | |
CN113361913A (en) | Communication service arranging method, device, computer equipment and storage medium | |
WO2014206152A1 (en) | Network safety monitoring method and system | |
CN105897542B (en) | Tunnel establishment method and video monitoring system | |
CN114025009B (en) | Method, system, proxy server and device for forwarding request | |
CN105991755A (en) | Service message distribution method and service message distribution device | |
US20120300776A1 (en) | Method for creating virtual link, communication network element, and ethernet network system | |
CN111565237B (en) | Network parameter determination method and device, computer equipment and storage medium | |
CN107547680B (en) | Data processing method and device | |
CN109167759B (en) | Mobile phone number acquisition method and device | |
CN109660459B (en) | Physical gateway and method for multiplexing IP address |