CN117938760A - Method and device for transmitting data - Google Patents

Method and device for transmitting data Download PDF

Info

Publication number
CN117938760A
CN117938760A CN202211734961.6A CN202211734961A CN117938760A CN 117938760 A CN117938760 A CN 117938760A CN 202211734961 A CN202211734961 A CN 202211734961A CN 117938760 A CN117938760 A CN 117938760A
Authority
CN
China
Prior art keywords
communication link
internet
link
edge gateway
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211734961.6A
Other languages
Chinese (zh)
Inventor
郭洪戈
周苏敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Cloud Computing Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Cloud Computing Technologies Co Ltd filed Critical Huawei Cloud Computing Technologies Co Ltd
Priority to PCT/CN2023/104842 priority Critical patent/WO2024078050A1/en
Publication of CN117938760A publication Critical patent/CN117938760A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the application discloses a method and a device for data transmission, and belongs to the technical field of Internet of things. The method comprises the following steps: establishing a first communication link with an Internet of things platform; transmitting a multi-link access request to the internet of things platform based on the first communication link, wherein the multi-link access request carries a first number of internet of things devices accessing the edge gateway; receiving link establishment information corresponding to at least one second communication link sent by the Internet of things platform; establishing the at least one second communication link with the internet of things platform based on the link establishment information corresponding to the at least one second communication link; and carrying out data transmission with the Internet of things platform based on the first communication link and the second communication link. By adopting the method and the device, the problem that the communication link between the edge gateway and the Internet of things platform is jammed can be avoided.

Description

Method and device for transmitting data
The present application claims priority from chinese patent application No. 202211262656.1 entitled "method and apparatus for data transfer" filed on 10/14 of 2022, the entire contents of which are incorporated herein by reference.
Technical Field
The application relates to the technical field of the internet of things, in particular to a method and a device for data transmission.
Background
In the internet of things system, various internet of things devices are often required to be accessed, but some internet of things devices do not have the capability of network communication and can be accessed to the internet of things platform through an edge gateway.
With the enhancement of computing power of the edge gateway, a single edge gateway may access a large number of internet of things devices, so that a communication link between the edge gateway and the internet of things platform needs to carry a large amount of internet of things device data, which may cause congestion of the communication link.
Disclosure of Invention
The embodiment of the application provides a method and a device for data transmission, which can avoid the problem of congestion of a communication link between an edge gateway and an Internet of things platform. The technical scheme is as follows:
In a first aspect, a method for performing data transmission is provided, where the method is applied to an edge gateway, and the method includes: establishing a first communication link with an Internet of things platform; based on a first communication link, sending a multilink access request to the internet of things platform, wherein the multilink access request carries a first number of internet of things devices accessing an edge gateway; receiving link establishment information corresponding to at least one second communication link sent by the Internet of things platform; establishing at least one second communication link with the Internet of things platform based on the link establishment information corresponding to the at least one second communication link; and based on the first communication link and the second communication link, carrying out data transmission with the Internet of things platform.
In the scheme shown in the application, the edge gateway can firstly communicate with the first communication link of the Internet of things platform, and then send a multilink access request to the Internet of things platform through the first communication link so as to establish at least one second communication link with the Internet of things platform. Therefore, the edge gateway and the internet of things platform can transmit data through a plurality of communication links (the first communication link and at least one second communication link), so that the probability of congestion of the communication links can be reduced.
In one implementation manner, based on the link establishment information corresponding to the at least one second communication link, the at least one second communication link is established with the internet of things platform, including: based on the link establishment information corresponding to the at least one second communication link, sending at least one link establishment request corresponding to the second communication link respectively to the Internet of things platform, wherein the link establishment request carries gateway identifications of edge gateways, the gateway identifications are different from the gateway identifications adopted when the edge gateways establish the first communication link, and in the case that the number of the link establishment requests is multiple, the gateway identifications carried in each link establishment request are different.
In the scheme shown in the application, the edge gateway can generate a plurality of different gateway identifications according to the gateway identifications thereof, and the gateway identifications carried in the link establishment requests corresponding to the second communication links sent by the edge gateway to the internet of things platform are different. Therefore, a plurality of communication links can be established with the internet of things platform based on different gateway identifications, and the probability of congestion of the communication links can be reduced.
In one implementation, the link establishment information includes a private port number of the service instance corresponding to the second communication link. Based on the link establishment information corresponding to the at least one second communication link, establishing the at least one second communication link with the internet of things platform, wherein the link establishment information comprises: and sending at least one link establishment request corresponding to the second communication links to the Internet of things platform, wherein the link establishment request carries a private port number corresponding to the second communication links.
In the scheme shown in the application, the port number corresponding to the service instance is the private port number, so that the Internet of things platform can establish a second communication link with the designated service instance according to the private port number, and can realize the balanced load of the service instance.
In one implementation, based on the first communication link and the second communication link, performing data transmission with the internet of things platform includes: when data is required to be sent to the internet of things platform each time, selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy; data is sent over the target communication link.
In the scheme shown in the application, the edge gateway can select a strategy for selecting a communication link, and a target communication link for sending data to the internet of things platform is selected from the first communication link and the second communication link. Therefore, the data originally transmitted by one communication link can be successively shared to different communication links for transmission, and the probability of congestion of the communication links can be reduced.
In one implementation, the communication link selection policy includes a random selection or a sequential selection.
In one implementation manner, the multilink access request further carries a communication frequency of the internet of things device.
In the scheme, the multi-link access request sent by the edge gateway to the internet of things platform can further comprise communication frequency, so that the service instance in the internet of things platform can determine the data volume of communication between the edge gateway and the internet of things platform according to the first number of internet of things devices accessed to the edge gateway and the communication frequency of the internet of things devices, and the internet of things platform can further determine the number of establishing second communication links with the edge gateway according to the data volume. Therefore, the dynamic allocation of the communication links can be realized, and the probability of congestion of the communication links between the edge gateway and the Internet of things platform is reduced.
In a second aspect, a method for performing data transmission is provided, where the method is applied to an internet of things platform, and the method includes: receiving a multilink access request sent by an edge gateway through a first communication link, wherein the multilink access request carries a first number of Internet of things devices accessing the edge gateway; determining a second number of establishing a second communication link with the edge gateway based on the first number; acquiring link establishment information corresponding to a second number of second communication links; the link establishment information corresponding to the second number of second communication links is sent to the edge gateway, and the link establishment information is used for indicating the edge gateway to establish the second number of second communication links with the Internet of things platform; and transmitting data with the edge gateway based on the first communication link and the second communication link.
In the scheme, after the first communication link is established between the internet of things platform and the edge gateway, the first number of multilink access requests, which are sent by the edge gateway through the first communication link and carry the internet of things equipment with the access edge gateway, can be received. And then the internet of things platform can determine a second number of second communication links with the edge gateway according to the first number of internet of things equipment of the edge gateway, and then can send link establishment information corresponding to the second number of second communication links to the edge gateway so as to establish the second number of second communication links with the edge gateway. Therefore, the data can be transmitted between the internet of things platform and the edge gateway through a plurality of communication links (the first communication link and at least one second communication link), so that the probability of congestion of the communication links can be reduced.
In one implementation, determining a second number of established second communication links with the edge gateway based on the first number includes: based on the first correspondence, a second number of second communication links with the edge gateway corresponding to the first number is determined.
In the scheme, the first number of the internet of things devices accessed by the edge gateway, the second number of the communication links between the internet of things platform and the edge gateway can be set in the internet of things platform. In the corresponding relation, the first number and the second number are positively correlated, that is, the more the internet of things equipment accessed by the edge gateway is, the more communication links are established between the edge gateway and the internet of things platform. Therefore, the number of communication links established between the edge gateway and the Internet of things platform can be dynamically determined according to the first number of the Internet of things devices accessed by the edge gateway, and resource waste is avoided.
In one implementation, the multilink access request also carries the communication frequency of the internet of things device accessing the edge gateway. Determining, based on the first number, a second number of establishing a second communication link with the edge gateway, comprising: a second number of establishing a second communication link with the edge gateway is determined based on the first number and the communication frequency.
In one implementation, determining a second number of establishing a second communication link with the edge gateway based on the first number and the communication frequency includes: determining a product of the first number and the communication frequency; based on the second correspondence, a second number of second communication links established with the edge gateway corresponding to the product is determined.
In the scheme, the multi-link access request sent by the edge gateway to the internet of things platform can further comprise communication frequency, so that the service instance in the internet of things platform can determine the data volume of communication between the edge gateway and the internet of things platform according to the first number of internet of things devices accessed to the edge gateway and the communication frequency of the internet of things devices, and the internet of things platform can further determine the number of establishing second communication links with the edge gateway according to the data volume. Therefore, the dynamic allocation of the communication links can be realized, the probability of congestion of the communication links between the edge gateway and the Internet of things platform is reduced, and the resource waste can be avoided.
In one implementation manner, obtaining link establishment information corresponding to a second number of second communication links includes: determining a second number of service instances with the least corresponding load in other service instances except the service instance corresponding to the first communication link; and acquiring the link establishment information corresponding to the second number of service instances respectively.
In the scheme shown in the application, when determining a plurality of service instances of the edge gateway link establishment, the second number of service instances with the least load can be determined as the service instance for establishing the second communication link with the edge gateway. Load balancing between service instances may be achieved.
In one implementation, the link establishment information includes a private port number corresponding to the service instance. Based on the first communication link and the second communication link, before the data transmission with the edge gateway, the method further comprises: receiving a link establishment request carrying a private port number sent by an edge gateway; and establishing a second communication link between the edge gateway and the service instance corresponding to the private port number.
In the scheme shown in the application, the port number corresponding to the service instance can be set as the private port number. The internet of things platform can establish a second communication link between the edge gateway and the appointed service instance according to the private port number carried in the link establishment information sent by the edge gateway, and further can realize balanced load of the service instance.
In one implementation, data transmission with an edge gateway based on a first communication link and a second communication link includes: selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy when data needs to be sent to the edge gateway each time; data is sent over the target communication link.
In one implementation, the communication link selection policy includes a random selection or a sequential selection.
In the scheme shown in the application, the platform of the Internet of things can select a strategy for selecting a communication link, and a target communication link for sending data to the edge gateway is selected from the first communication link and the second communication link. Therefore, the data originally transmitted by one communication link can be successively shared to different communication links for transmission, and the probability of congestion of the communication links can be reduced.
In a third aspect, there is provided an apparatus for data transmission, the apparatus comprising at least one module for implementing the method for data transmission provided in the first aspect or any of the achievable manners of the first aspect.
In a fourth aspect, there is provided an apparatus for data transmission, the apparatus comprising at least one module for implementing the method for data transmission provided in the second aspect or any of the realizable modes of the second aspect.
In a fifth aspect, a system for performing data transmission is provided, the system comprising an edge gateway and an internet of things platform, wherein: the edge gateway is configured to implement the method for performing data transmission provided in the first aspect or any of the realizable modes of the first aspect, and the internet of things platform implements the method for performing data transmission provided in the second aspect or any of the realizable modes of the second aspect.
In a sixth aspect, an edge gateway is provided, the edge gateway comprising a processor and a memory; the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the method of data transmission as provided in the first aspect or any of the examples of the first aspect above.
In a seventh aspect, a cluster of computing devices is provided, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the method of data transmission as provided in the second aspect or any of the examples of the second aspect above.
In an eighth aspect, there is provided a computer program product comprising instructions which, when executed by an edge gateway, cause the edge gateway to perform a method of data transmission as provided in the first aspect or any of the examples of the first aspect above.
In a ninth aspect, there is provided a computer program product comprising instructions which, when executed by a cluster of computing devices, cause the cluster of computing devices to perform a method of data transmission as provided in the above second aspect or any of the examples of the second aspect.
In a tenth aspect, there is provided a computer readable storage medium comprising computer program instructions which, when executed by an edge gateway, perform a method of data transmission as provided in the first aspect or any of the examples of the first aspect above.
In an eleventh aspect, there is provided a computer readable storage medium comprising computer program instructions which, when executed by a cluster of computing devices, perform the method of data transmission as provided in the above second aspect or any of the examples of the second aspect.
Drawings
Fig. 1 is a system architecture diagram of an internet of things system provided by the application;
FIG. 2 is a flow chart of a method for data transmission according to the present application;
FIG. 3 is a flow chart of a method for data transmission according to the present application;
Fig. 4 is a flowchart of a method for establishing multiple links between an edge gateway and a server according to the present application;
FIG. 5 is a flow chart of a method for reporting data by an edge gateway according to the present application;
FIG. 6 is a flowchart of a method for an Internet of things platform to send a message to an edge network;
Fig. 7 is a flowchart of a method for disconnecting an edge gateway in a multi-link mode according to the present application;
fig. 8 is a schematic diagram of a device for performing data transmission according to the present application;
fig. 9 is a schematic diagram of a device for performing data transmission according to the present application;
FIG. 10 is a schematic diagram of a computing device provided by the present application;
FIG. 11 is a schematic diagram of a cluster of computing devices provided by the present application;
FIG. 12 is a schematic diagram of a computing device connection provided by the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Fig. 1 is a system architecture diagram of an internet of things system provided by the application. Referring to fig. 1, an internet of things system includes an internet of things device 101, an edge gateway 102, and an internet of things platform 103.
The internet of things device 101 can be various intelligent home (such as intelligent refrigerator, intelligent air conditioner, etc.), various industrial devices (such as intelligent water meter, intelligent ammeter, etc.), various intelligent sensors (such as smoke sensor, temperature and humidity sensor), etc. Edge gateway 102 has functions such as data exchange and may be a router, a switch, etc. The internet of things platform 103 may be an internet of things server, which may be a separate server or may be a server cluster. One or more internet of things devices 101 can access the edge gateway 102, and a communication link can be established between the edge gateway 102 and the internet of things platform 103 for data transmission.
A plurality of service instances are provided in the internet of things platform 103, and each service instance may be a program set running in a server and capable of independently providing services for the internet of things device. Wherein, the plurality of service examples at least comprise a load balancing service, an access service and a business processing service. In the related art, the edge gateway may first send a link establishment request to the load balancing service, where the load balancing service may select one access service from a plurality of access services, and establish a communication link with the edge gateway for data transmission.
After the communication link is established between the edge gateway and the access service in the internet of things platform, the internet of things device accessing the edge gateway can send data (such as acquisition data of industrial data) to the access service in the internet of things platform through the communication link, and after receiving the data sent by the internet of things device, the access service can forward corresponding data to corresponding business processing service, and the corresponding business processing service processes the data. The business process service may also send data (e.g., control instructions for the industrial equipment) to the edge gateway via the access service.
With the enhancement of computing power of the edge gateway, a single edge gateway may access a large number of internet of things devices, so that data transmission is performed between the edge gateway and the internet of things platform through only one communication link, which may cause congestion of the communication link.
The application provides a method for transmitting data, which can avoid congestion of a transmission link between an edge gateway and an Internet of things platform. The method for transmitting data provided by the application is described below with reference to the accompanying drawings:
fig. 2 is a method for data transmission, which is applicable to an edge gateway and shown in fig. 2, and includes:
Step 201, an edge gateway establishes a first communication link with an internet of things platform.
The first communication link is a first communication link established by the edge gateway and a service instance corresponding to the access service in the internet of things platform. The establishment of this first communication link is referred to in the prior art and will not be described here. The service instance accessed by the edge gateway over the first communication link may subsequently be referred to as a first service instance.
Step 202, a multilink access request is sent to an internet of things platform based on a first communication link, wherein the multilink access request carries a first number of internet of things devices accessing an edge gateway.
After the edge gateway establishes a first communication link in a service instance in the internet of things platform, if it is determined that the multilink establishment condition is currently satisfied, a multilink access request can be sent to a first service instance connected with the first communication link through the first communication link. The multilink establishment condition may be that the first number of the edge gateway access internet of things devices is greater than a set threshold of the number of the internet of things devices.
The first number of the internet of things devices accessing the edge gateway is carried in the multilink access request sent to the internet of things platform, so that the internet of things platform determines the second number of the second communication links with the edge gateway according to the first number of the internet of things devices accessing the edge gateway. The second communication link refers to a communication link established by the edge gateway with other service instances other than the first service instance in the internet of things platform. The service instance accessed by the edge gateway over the second communication link may subsequently be referred to as a second service instance.
The communication frequency of the internet of things equipment can be carried in the multilink access request sent to the internet of things platform, and the communication frequency refers to the frequency of the internet of things equipment for data transmission to the internet of things platform. The internet of things platform may determine a number of reestablished second communication links with the edge gateway according to the first number of internet of things devices accessing the edge gateway and the communication frequency of the internet of things devices.
Step 203, receiving link establishment information corresponding to at least one second communication link sent by the internet of things platform.
After receiving the multilink access request sent by the edge gateway, the service instance corresponding to the first communication link in the internet of things platform can determine link establishment information corresponding to at least one second communication link according to the multilink access request, and return to the edge gateway. Wherein the number of second communication links is the same as the number of second service instances.
Step 204, establishing at least one second communication link with the internet of things platform based on the link establishment information corresponding to the at least one second communication link.
After receiving the link establishment information corresponding to at least one second communication link, the edge gateway can send a link establishment request to the internet of things platform according to the link establishment information corresponding to each second communication link so as to establish a communication link with a second service instance in the internet of things platform.
In one example, gateway identifications carried in multiple chaining requests sent by an edge gateway to an internet of things platform are different. The plurality of gateway identifications are gateway identifications corresponding to the edge gateway, and the plurality of link establishment requests comprise link establishment requests sent when the edge gateway establishes a first communication link with the Internet of things platform and link establishment requests sent when the edge gateway establishes a second communication link with the Internet of things platform. For example, the edge gateway can generate different gateway identifications based on the original gateway identifications of the edge gateway according to the number of times of sending the link establishment request to the internet of things platform.
For example, the gateway identifier of the edge gateway is GW001, the gateway identifier carried by the edge gateway is GW001-1 when the edge gateway sends a link establishment request to the Internet of things platform for the first time, the gateway identifier carried by the edge gateway is GW001-2 when the edge gateway sends a link establishment request to the Internet of things platform for the second time, and the gateway identifier carried by the edge gateway is GW001-N when the edge gateway sends a link establishment request to the Internet of things platform for the nth time. In this way, for the platform of the internet of things, the respectively received link establishment requests carrying different gateway identifications can be considered to be sent by different edge gateways, so that the condition that the plurality of link establishment requests are treated as the same link establishment request due to the fact that the gateway identifications carried in the plurality of link establishment requests are the same can be avoided. The internet of things platform can respectively verify different link establishment requests, and then establish a plurality of second communication links with the edge gateway.
In addition, the link establishment information corresponding to the second communication link further includes a port number of the second service instance, where in an example, the port number of the second service instance is a private port number, so that the private port number corresponding to the second service instance can be carried in the link establishment request sent by the edge gateway to the internet of things platform, and further the second communication link is established with the designated second service instance in the internet of things platform.
Step 205, data transmission is performed with the internet of things platform based on the first communication link and the second communication link.
After the edge gateway and the internet of things platform establish the first communication link and the second communication link, data transmission can be performed with the internet of things platform according to the first communication link and the second communication link.
When the edge gateway needs to send data to the internet of things platform every time, the edge gateway can select a target communication link from the first communication link and the second communication link according to a set communication link selection strategy. And then sending data to the Internet of things platform through the selected target communication link. Wherein the communication link selection policy comprises a random selection or a sequential selection. In addition, when the edge gateway and the internet of things platform disconnect the communication link, a link disconnection notification can be sent to the internet of things platform for a plurality of communication links (a first communication link and a second communication link) established with the internet of things platform, so that a plurality of communication links established with the internet of things platform are disconnected.
According to the embodiment of the application, a plurality of communication links can be established between the edge gateway and the Internet of things platform to transmit data, and each communication link can transmit data with different service instances in the Internet of things platform. Therefore, the communication link between the edge gateway and the Internet of things platform is increased, the pressure of each communication link for transmitting data is reduced, and the probability of congestion of the communication link can be further reduced.
Fig. 3 is a method for data transmission, which is provided by the present application, and the method can be applied to an internet of things platform, referring to fig. 3, and the method includes:
Step 301, an internet of things platform receives a multilink access request sent by an edge gateway through a first communication link, where the multilink access request carries a first number of internet of things devices accessing the edge gateway.
The first communication link refers to a first communication link established between the edge gateway and a service instance in the internet of things platform. The establishment of this first communication link is referred to in the prior art and will not be described here. The service instance accessed by the edge gateway over the first communication link may subsequently be referred to as a first service instance. Before step 301 is performed, a first communication link may be established between the edge gateway and a first service instance in the internet of things platform.
Step 302, determining a second number of establishing a second communication link with the edge gateway based on the first number.
The multi-link access request sent by the edge gateway carries a first number of internet of things devices accessing the edge gateway, and the first service instance can determine a second number of communication links between the internet of things platform and the edge gateway according to the first number of internet of things devices accessing the edge gateway. The communication link established by the internet of things platform and the edge gateway can be called a second communication link.
In an example, a first correspondence between the number of devices of the internet of things and the number of communication links may be stored in the platform of the internet of things, and for a second number of communication links established between the platform of the internet of things and the edge gateway, the first service example may determine, by searching for the first correspondence, the second number of second communication links established between the first number and the edge gateway.
In another example, the multilink access request further carries a communication frequency of the internet of things device accessing the edge gateway, where the communication frequency refers to a frequency of data transmission from the internet of things device to the internet of things platform. The first service instance may calculate a product of the communication frequency and the first number to obtain a total communication frequency corresponding to the edge gateway. The second correspondence between the communication frequency of the edge gateway and the number of communication links may be stored in the internet of things platform. The first service instance may determine a second number of second communication links established with the edge gateway corresponding to the total communication frequency by looking up the second correspondence.
Step 303, obtaining link establishment information corresponding to the second number of second communication links.
After determining the second number of second communication links established with the edge gateway, the first service instance may acquire link establishment information corresponding to the second number of second communication links.
The link establishment information corresponding to the second communication link may be link establishment information corresponding to other service instances except the first communication link in the internet of things platform, and the other service instances are service instances corresponding to the access service, where the other service instances may be referred to as a second service instance. The link establishment information corresponding to the second communication link may include a port number corresponding to the second service instance.
In one example, the port number corresponding to the second service instance may be a private port number. Therefore, after receiving the link establishment information, the edge gateway can carry the private port number included in the link establishment information in the link establishment request and send the link establishment request to the load balancing service of the Internet of things platform. The load balancing service can send the corresponding link establishment request to the second service instance corresponding to the private port number according to the private port number carried in the link establishment request, so as to establish the second service instance between the edge gateway and the second service instance.
In an example, the second number of second service instances may be a second number of service instances with the least load, except the first service instance, in the platform of the internet of things.
After determining that the re-edge gateway establishes the second number of the second communication links, the first service instance may acquire load information corresponding to each second service instance, then determine, according to the load information, a second number of service instances with the least load among the plurality of second service instances, and then determine the second number of service instances with the least load as a service instance providing access service to the edge gateway.
Step 304, the link establishment information corresponding to the second communication links is sent to the edge gateway.
Step 305, data transmission is performed with the edge gateway based on the first communication link and the second communication link.
After the edge gateway and the internet of things platform establish the first communication link and the second communication link, the internet of things platform can perform data transmission with the edge gateway according to the first communication link and the second communication link.
When data needs to be sent to the edge gateway each time in the internet of things platform, a target communication link can be selected from the first communication link and the second communication link according to a set communication link selection strategy. The data is then sent to the edge gateway over the selected target communication link. Wherein the communication link selection policy comprises a random selection or a sequential selection.
According to the embodiment of the application, a plurality of communication links can be established between the edge gateway and the Internet of things platform to transmit data, and each communication link can transmit data with different service instances in the Internet of things platform. Therefore, the communication link between the edge gateway and the Internet of things platform is increased, the pressure of each communication link for transmitting data is reduced, and the probability of congestion of the communication link can be further reduced.
In the application, a communication link can be established between the edge gateway and a service instance in the Internet of things platform based on an MQTT (message queue telemetry transport) protocol. Opening a plurality of ports on an MQTT (message queue telemetry transport) interface accessed by an Internet of things platform aiming at an edge gateway, and completing configuration of port route distribution strategies on a load balancing service (LB), wherein the configuration route distribution strategies are as follows:
1 known port (such as 8883), and the edge gateway can be initially accessed to the LB of the Internet of things platform through the known port of the externally provided MQTT interface. The route distribution policy configured on LB is: under the condition of receiving a link establishment request carrying a well-known port number, the corresponding link establishment request is polled and distributed in an access service cluster at the rear end of the Internet of things platform.
The number of the private ports (such as 8981, 8982, 8983 …) is the same as the service number of the access service at the rear end of the internet of things platform. The route distribution policy configured on LB is: and under the condition of receiving a link establishment request carrying the private port number, sending the corresponding link establishment request to the access service corresponding to the private port number.
Fig. 4 is a flowchart of a method for establishing a plurality of communication links between an edge gateway and an internet of things platform according to the present application, and referring to fig. 4, the method includes:
Step 401, edge gateway initialization configuration: the edge gateway completes configuration of key parameters, wherein the key parameters comprise a user name (username) and a password (password) for authentication of the internet of things platform, and a server address and a well-known port number of a load service in the internet of things platform.
Step 402, initializing and configuring an internet of things platform: and the internet of things platform completes the route distribution strategy configuration of load balancing according to the self service deployment condition.
Step 403, the edge gateway initiates a link establishment request: and the edge gateway sends a link establishment request to the LB according to the server address and the well-known port of the load service so as to complete link establishment with the load service.
Step 404, the LB performs route distribution on the well-known ports carried in the link establishment request: the LB adopts a polling strategy for the distribution of the known port, and selects a first service instance (such as a service instance 1) from the access service cluster of the back end, so as to complete the link establishment between the LB and the first service instance.
Step 405, the edge gateway sends an MQTT CONNECT message to the LB: and the edge gateway sends an MQTT CONNECT message to the Internet of things platform according to a standard MQTT interface, wherein the MQTT CONNECT carries basic identity information (device Id) of the edge gateway and authentication information (username and password) of the edge gateway.
Step 406, LB performs message distribution: the LB sends an MQTT CONNECT message to the first service instance based on the link that has been established with the first service instance.
Step 407, the first service instance completes authentication and performs connection binding: the first service instance authenticates the authentication information carried in the MQTT CONNECT message and simultaneously carries out connection binding, and the first service instance is bound to the edge gateway as an available route.
Step 408, the first service instance returns authentication success.
Steps 409, LB return authentication success based on the link that has been established with the edge gateway. At this point, the first communication link is successfully established between the edge gateway and the first service instance.
Step 410, the edge gateway sends an MQTT PUBLISH message (i.e. a multi-link access request) to the first service instance: the edge gateway determines whether to send an MQTT PUBLISH message to the first service instance based on the number of sub-devices it accesses. If the number of sub-devices accessed by the edge gateway exceeds a set number threshold, the edge gateway can be considered as a large gateway, and the multi-link access can be applied to the Internet of things platform.
MQTT PUBLISH message sample:
topic:$oc/devices/{device Id}/sys/links/request;
payload:{"devices_number":10000、"Frequency":60}
The device Id is an identifier of the edge gateway, the device_number is the number of sub-devices accessed by the edge gateway, and the Frequency is the communication Frequency of the sub-devices.
Step 411, the first service instance responds to MQTT PUBLISH: the first service example determines a second number of communication links with the edge gateway according to the number of sub-devices and the communication frequency carried in the MQTT PUBLISH. And determining the link establishment information of the second number of second service instance pairs according to the actual load conditions of the other current service instances, and sending the link establishment information to the edge gateway through the MQTT message.
MQTT message sample:
topic:$oc/devices/{device_id}/sys/links/response;
payload:{"services_num":2,"list":[{"client_id":"id1",port:8902},{"client_id":"id2",port:8903}]}
Wherein, the client_id is an instance identifier of the second service instance, and the port is a private port number corresponding to the second service instance.
Step 412, the edge gateway sends an MQTT CONNECT message to LB: the edge gateway links with the second service instance based on the requested linking information, e.g., from 8902 port.
The MQTT connection message carries basic identity information of the edge gateway, authentication information of the edge gateway, and an instance identifier and a port number corresponding to the second service instance (8902).
Step 413, LB route distribution: the LB routes the MQTT CONNECT message to the second service instance (e.g., service instance 2) based on the fixed distribution policy of the 8902 port.
Step 414, service instance 2 completes authentication and performs connection binding: based on the designated client_id, the access authentication is completed, the establishment of the second communication link is completed, and meanwhile, connection binding is performed, and the service instance 2 is bound to the edge gateway as an available route.
At this time, the second communication link is successfully established between the edge gateway and the service instance 2, that is, the first communication link is successfully established between the current edge gateway and the service instance 1, and the second communication link is successfully established between the current edge gateway and the service instance 2.
Step 415, the edge gateway sends an MQTT CONNECT message to LB: the edge gateway links with the second service instance based on the requested linking information, such as from 8903 port.
Step 416, LB route distribution: the LB routes the MQTT CONNECT message to the second service instance (e.g., service instance 3) based on the fixed distribution policy of the 8903 port.
Step 417, service instance 3 authenticates and performs connection binding: based on the specified client_id, the access authentication is completed, the establishment of the second communication link is completed, and meanwhile, connection binding is performed, and the service instance 3 is bound to the edge gateway as an available route.
At this time, the second communication link is successfully established between the edge gateway and the service instance 3, that is, the first communication link is established between the current edge gateway and the service instance 1, the second communication link is successfully established between the current edge gateway and the service instance 2, and the second communication link is successfully established between the current edge gateway and the service instance 3. Therefore, the edge gateway can perform data transmission with the Internet of things platform through the three communication links, and the data of each communication link are processed by different service examples, so that the blocking of the communication links between the edge gateway and the Internet of things platform can be avoided.
Fig. 5 is a flowchart of a method for reporting data to an internet of things platform by an edge gateway, based on uplink communication of multiple links, the internet of things gateway actively sends a message (such as reporting collected data sent by an internet of things device) to the internet of things platform, referring to fig. 5, and the method includes:
step 501, the edge gateway reports data to the internet of things platform based on the service scene.
Step 502, the edge gateway randomly selects one communication link to report data (e.g. select communication link 1).
Step 503, the LB routes to the service instance 1 corresponding to the internet of things platform backend communication link 1 according to the corresponding connection.
Step 504, the backend service corresponding to the service instance 1 normally processes the service request.
Step 505, the edge gateway reports data to the internet of things platform based on the service scene.
Step 506, the edge gateway randomly selects one communication link to report data (e.g. selecting communication link 2).
And step 507, routing to a service instance 2 corresponding to the communication link 2 at the back end of the internet of things platform by the LB according to the corresponding connection.
Step 508, the backend service corresponding to the service instance 2 normally processes the service request.
In the method for reporting data to the internet of things platform by the edge gateway provided by the embodiment of the application, the edge gateway can report data to different service examples through a plurality of communication links, so that the blocking of the communication links between the edge gateway and the internet of things platform can be avoided.
Fig. 6 is a flowchart of a method for sending a message to an edge gateway by an internet of things platform, based on downlink communication of multiple links, the internet of things platform actively sends the message to the edge gateway (such as a control command is issued), and referring to fig. 6, the method includes:
In step 601, a plurality of communication links are established between the edge gateway and the platform of the internet of things.
In step 602, the cluster management service in the platform of the internet of things sends a message (such as a control command) to the edge gateway.
The cluster management service may refer to service instances other than the access service and the load balancing service in the internet of things platform, and a correspondence between each edge gateway and the accessed service instance may be recorded in the cluster management service.
In step 603, the cluster management service randomly selects a service instance (such as service instance 1) to send a message in each service instance accessed by the edge gateway.
Step 604, the LB sends the corresponding message to the edge gateway according to the communication link of the corresponding service instance 1.
Step 605, after receiving the message on any communication link, the edge gateway processes the service request normally.
Step 606, the cluster management service in the platform of the internet of things sends a message (such as a control command) to the edge gateway.
In step 607, the cluster management service randomly selects a service instance (e.g. service instance 2) from the service instances accessed by the edge gateway to send a message.
Steps 608, LB sends the corresponding message to the edge gateway according to the corresponding service instance 2 communication link.
Step 609, after receiving the message on any communication link, the edge gateway processes the service request normally.
In the method for sending the message to the edge gateway by the internet of things platform provided by the embodiment of the application, the internet of things platform can send the message to the edge gateway through a plurality of communication links, so that the blocking of the communication links between the edge gateway and the internet of things platform can be avoided.
Fig. 7 is a flowchart of a method for disconnecting an edge gateway in a multilink mode, which is provided in the present application, referring to fig. 7, and includes:
in step 701, the edge gateway sequentially disconnects the communication link established with the platform of the internet of things.
Step 702, the edge gateway disconnects the communication link 1.
In step 703, LB interrupts the communication link with service instance 1, and unbinds the edge gateway corresponding to the communication link 1 from the service instance 1.
Step 704, the service example 1 interrupts the link with the edge gateway, and unbinds the link with the edge gateway.
Step 705, the edge gateway disconnects the communication link 2.
In step 706, LB interrupts the communication link with service instance 2, and unbinds the edge gateway corresponding to the communication link 2 from the service instance 2.
Step 707, service example 2 interrupts the link with the edge gateway and unbundles the binding relationship with the edge gateway.
Fig. 8 is a schematic structural diagram of an apparatus for performing data transmission according to an embodiment of the present application, where the apparatus may be an edge gateway in the foregoing embodiment, as shown in fig. 8, and the apparatus includes:
The link establishment module 810 is configured to establish a first communication link with the platform of the internet of things. The method is particularly applicable to implementing the link establishment function corresponding to the step 201 and the implicit step.
A transceiver module 820 configured to send a multilink access request to the internet of things platform based on the first communication link, where the multilink access request carries a first number of internet of things devices accessing an edge gateway; and receiving link establishment information corresponding to at least one second communication link sent by the Internet of things platform. The method can be specifically used for realizing the transceiving functions corresponding to the steps 202 and 203 and the implicit steps thereof.
The link establishment module 810 is configured to establish the at least one second communication link with the internet of things platform based on link establishment information corresponding to the at least one second communication link. The method can be specifically used for implementing the above step 204 and the link establishment function corresponding to the hidden step.
And the transmission module 830 is configured to perform data transmission with the internet of things platform based on the first communication link and the second communication link. The method can be specifically used for realizing the transmission function corresponding to the step 205 and the implicit step thereof.
Optionally, the chain building module 810 is configured to: based on the link establishment information corresponding to the at least one second communication link, sending link establishment requests corresponding to the at least one second communication link respectively to the internet of things platform, wherein the link establishment requests carry gateway identifications of the edge gateways, the gateway identifications are different from gateway identifications adopted when the edge gateways establish the first communication link, and in the case that the number of the link establishment requests is multiple, the gateway identifications carried in each link establishment request are different.
Optionally, the link establishment information includes a private port number of a service instance corresponding to the second communication link; the link establishment module 810 is configured to: and sending a link establishment request corresponding to the at least one second communication link respectively to the Internet of things platform, wherein the link establishment request carries a private port number corresponding to the second communication link.
Optionally, the transmission module 830 is configured to: when data is required to be sent to the Internet of things platform each time, selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy; and transmitting data through the target communication link.
Optionally, the communication link selection policy includes a random selection or a sequential selection.
Optionally, the multilink access request further carries a communication frequency of the internet of things device.
An embodiment of the present application further provides an edge gateway, where the edge gateway includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement a method for performing data transmission according to the first aspect. It should be noted that, the above-mentioned link building module 810, the transceiver module 820, and the transmission module 830 may be implemented by a processor, or implemented by a processor and a memory.
Fig. 9 is a schematic structural diagram of a device for performing data transmission according to an embodiment of the present application, where the device may be an internet of things platform in the foregoing embodiment, and as shown in fig. 9, the device includes:
A transceiver module 910, configured to receive a multi-link access request sent by an edge gateway through a first communication link, where the multi-link access request carries a first number of internet of things devices accessing the edge gateway. The method can be specifically used for realizing the transceiving functions corresponding to the step 301 and the implicit step thereof.
A determining module 920, configured to determine, based on the first number, a second number of second communication links established with the edge gateway. The method can be specifically used for realizing the determining function corresponding to the step 302 and the implicit step.
The obtaining module 930 is configured to obtain link establishment information corresponding to the second number of second communication links. The method can be specifically used for realizing the step 303 and the acquisition function corresponding to the hidden step.
The transceiver module 910 is configured to send link establishment information corresponding to the second number of second communication links to the edge gateway, where the link establishment information is used to instruct the edge gateway to establish the second number of second communication links with the platform of the internet of things. The method can be specifically used for implementing the transceiving functions corresponding to the step 304 and the implicit steps thereof.
And a transmission module 940, configured to perform data transmission with the edge gateway based on the first communication link and the second communication link. The method can be specifically used for realizing the transmission function corresponding to the step 305 and the implicit step thereof.
Optionally, the determining module 920 is configured to: and determining a second number of second communication links which correspond to the first number and are established with the edge gateway based on the first corresponding relation.
Optionally, the multilink access request further carries a communication frequency of the internet of things device accessing the edge gateway; the determining module 920 is configured to: a second number of establishing a second communication link with the edge gateway is determined based on the first number and the communication frequency.
Optionally, the determining module 920 is configured to: determining a product of the first number and the communication frequency; and determining a second number of second communication links which correspond to the product and are established with the edge gateway based on a second corresponding relation.
Optionally, the acquiring module 930 is configured to: determining a second number of service instances with the least corresponding load in other service instances except the service instance corresponding to the first communication link; and acquiring the link establishment information corresponding to the second number of service instances respectively.
Optionally, the link establishment information includes a private port number of the corresponding service instance; the transceiver module 910 is further configured to: receiving a link establishment request carrying a private port number sent by the edge gateway; and establishing a second communication link between the edge gateway and the service instance corresponding to the private port number.
Optionally, the transmission module 940 is configured to: selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy when data needs to be sent to the edge gateway each time; and transmitting data through the target communication link.
Optionally, the communication link selection policy includes a random selection or a sequential selection.
The transceiver module 910, the determining module 920, the obtaining module 930, and the transmitting module 940 may be implemented by software, or may be implemented by hardware. Illustratively, the implementation of the transceiver module 910 is described below as an example of the transceiver module 910. Similarly, the implementation of the determining module 920, the acquiring module 930, and the transmitting module 940 may refer to the implementation of the transceiver module 910.
Module as an example of a software functional unit, the transceiver module 910 may include code that runs on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container, among others. Further, the above-described computing examples may be one or more. For example, the transceiver module 910 may include code that runs on multiple hosts/virtual machines/containers. It should be noted that, multiple hosts/virtual machines/containers for running the code may be distributed in the same region (region), or may be distributed in different regions. Further, multiple hosts/virtual machines/containers for running the code may be distributed in the same availability zone (availability zone, AZ) or may be distributed in different AZs, each AZ comprising one data center or multiple geographically close data centers. Wherein typically a region may comprise a plurality of AZs.
Also, multiple hosts/virtual machines/containers for running the code may be distributed in the same virtual private cloud (virtual private cloud, VPC) or may be distributed in multiple VPCs. In general, one VPC is disposed in one region, and a communication gateway is disposed in each VPC for implementing inter-connection between VPCs in the same region and between VPCs in different regions.
Module as an example of a hardware functional unit, the transceiver module 910 may include at least one computing device, such as a server, etc. Alternatively, the transceiver module 910 may be a device implemented using an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD), or the like. The PLD may be implemented as a complex program logic device (complex programmable logical device, CPLD), a field-programmable gate array (FPGA) GATE ARRAY, a general-purpose array logic (GENERIC ARRAY logic, GAL), or any combination thereof.
The transceiver module 910 may include multiple computing devices that are distributed in the same region or may be distributed in different regions. The transceiver module 910 may include multiple computing devices distributed among the same AZ or among different AZ. Likewise, the plurality of computing devices included in transceiver module 910 may be distributed in the same VPC or may be distributed among multiple VPCs. Wherein the plurality of computing devices may be any combination of computing devices such as servers, ASIC, PLD, CPLD, FPGA, and GAL.
It should be noted that, in other embodiments, the transceiver module 910 may be configured to perform any step in the method for performing data transmission, the determining module 920 may be configured to perform any step in the method for performing data transmission, the sending module 930 may be configured to perform any step in the method for performing data transmission, and the steps responsible for implementing by the transceiver module 910, the determining module 920, the obtaining module 930 and the transmitting module 940 may be specified as needed, and all functions of the apparatus for performing data transmission are implemented by implementing different steps in the methods for performing data transmission by the transceiver module 910, the determining module 920, the obtaining module 930 and the transmitting module 940, respectively.
The present application also provides a computing device 100. The computing device 100 may be a server in the above-mentioned internet of things platform, as shown in fig. 10, the computing device 100 includes: bus 102, processor 104, memory 106, and communication interface 108. Communication between the processor 104, the memory 106, and the communication interface 108 is via the bus 102. Computing device 100 may be a server or a terminal device. It should be understood that the present application is not limited to the number of processors, memories in computing device 100.
Bus 102 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one line is shown in fig. 10, but not only one bus or one type of bus. Bus 104 may include a path to transfer information between various components of computing device 100 (e.g., memory 106, processor 104, communication interface 108).
The processor 104 may include any one or more of a central processing unit (central processing unit, CPU), a graphics processor (graphics processing unit, GPU), a Microprocessor (MP), or a digital signal processor (DIGITAL SIGNAL processor, DSP).
The memory 106 may include volatile memory (RAM), such as random access memory (random access memory). The processor 104 may also include non-volatile memory (non-volatile memory), such as read-only memory (ROM), flash memory, mechanical hard disk (HARD DISK DRIVE, HDD) or Solid State Disk (SSD).
The memory 106 stores executable program codes, and the processor 104 executes the executable program codes to implement the functions of the transceiver module 910, the determining module 920, the obtaining module 930, and the transmitting module 940, respectively, so as to implement a method for transmitting data. That is, the memory 106 has stored thereon instructions for performing the method of data transmission.
Communication interface 103 enables communication between computing device 100 and other devices or communication networks using a transceiver module such as, but not limited to, a network interface card, transceiver, or the like.
The embodiment of the application also provides a computing device cluster. The computing device cluster may be a server cluster in the above-mentioned internet of things platform, where the computing device cluster includes at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop, notebook, or smart phone.
As shown in fig. 11, the cluster of computing devices includes at least one computing device 100. The same instructions for performing the method for data transfer may be stored in memory 106 in one or more computing devices 100 in the computing device cluster.
In some possible implementations, portions of instructions for performing the method of data transmission may also be stored separately in the memory 106 of one or more computing devices 100 in the computing device cluster. In other words, a combination of one or more computing devices 100 may collectively execute instructions for performing the method for data transmission.
It should be noted that, the memories 106 in different computing devices 100 in the computing device cluster may store different instructions for performing part of the functions of the apparatus for performing data transmission. That is, the instructions stored by the memory 106 in the different computing devices 100 may implement the functionality of one or more of the transceiver module 910, the determination module 920, the acquisition module 930, and the transmission module 940.
In some possible implementations, one or more computing devices in a cluster of computing devices may be connected through a network. Wherein the network may be a wide area network or a local area network, etc. Fig. 12 shows one possible implementation. As shown in fig. 12, two computing devices 100A and 100B are connected by a network. Specifically, the connection to the network is made through a communication interface in each computing device. In this type of possible implementation, instructions to perform the functions of transceiver module 910 are stored in memory 106 in computing device 100A. Meanwhile, the memory 106 in the computing device 100B has stored therein instructions for performing the functions of the determining module 920, the acquiring module 930, and the transmitting module 940.
The connection manner between the clusters of computing devices shown in fig. 12 may be in consideration of the large amount of computation required in the method for performing data transmission provided by the present application, so that the functions implemented by the determining module 920, the obtaining module 930, and the transmitting module 940 are considered to be performed by the computing device 100B.
It should be appreciated that the functionality of computing device 100A shown in fig. 12 may also be performed by multiple computing devices 100. Likewise, the functionality of computing device 100B may also be performed by multiple computing devices 100.
The embodiment of the application also provides another computing device cluster. The connection between computing devices in the computing device cluster may be similar to the connection of the computing device cluster described with reference to fig. 11 and 12. In contrast, the same instructions for performing the method for data transfer may be stored in memory 106 in one or more computing devices 100 in the cluster of computing devices.
In some possible implementations, portions of instructions for performing the method of data transmission may also be stored separately in the memory 106 of one or more computing devices 100 in the computing device cluster. In other words, a combination of one or more computing devices 100 may collectively execute instructions for performing the method for data transmission.
The embodiment of the application also provides a system for data transmission, which comprises an edge gateway and an Internet of things platform, wherein the edge gateway can realize the method for data transmission realized by the edge gateway in the embodiment, and the Internet of things platform can realize the method for data transmission realized by the Internet of things platform in the embodiment.
Embodiments of the present application also provide a computer program product comprising instructions, which may be a software or program product comprising instructions, capable of running on an edge gateway or stored in any available medium. The computer program product, when run on an edge gateway, causes the edge gateway to perform a method of data transmission.
Embodiments of the present application also provide a computer program product comprising instructions. The computer program product may be software or a program product containing instructions capable of running on a computing device or stored in any useful medium. The computer program product, when run on at least one computing device, causes the at least one computing device to perform a method of data transmission.
The embodiment of the application also provides a computer readable storage medium. The computer readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc. The computer-readable storage medium includes instructions that direct an edge gateway to perform a method of data transmission or direct a computing device to perform a method of data transmission.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; these modifications or substitutions do not depart from the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present application.
The foregoing description of the preferred embodiment of the application is not intended to limit the application to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the application are intended to be included within the scope of the application.

Claims (33)

1. A method for data transmission, the method being applied to an edge gateway, the method comprising:
Establishing a first communication link with an Internet of things platform;
Transmitting a multi-link access request to the internet of things platform based on the first communication link, wherein the multi-link access request carries a first number of internet of things devices accessing the edge gateway;
receiving link establishment information corresponding to at least one second communication link sent by the Internet of things platform;
Establishing the at least one second communication link with the internet of things platform based on the link establishment information corresponding to the at least one second communication link;
And carrying out data transmission with the Internet of things platform based on the first communication link and the second communication link.
2. The method of claim 1, wherein the establishing the at least one second communication link with the internet of things platform based on the link establishment information corresponding to the at least one second communication link comprises:
Based on the link establishment information corresponding to the at least one second communication link, sending link establishment requests corresponding to the at least one second communication link respectively to the internet of things platform, wherein the link establishment requests carry gateway identifications of the edge gateways, the gateway identifications are different from gateway identifications adopted when the edge gateways establish the first communication link, and in the case that the number of the link establishment requests is multiple, the gateway identifications carried in each link establishment request are different.
3. The method according to claim 1 or 2, wherein the link establishment information includes a private port number of a service instance corresponding to the second communication link;
the establishing the at least one second communication link with the internet of things platform based on the link establishment information corresponding to the at least one second communication link includes:
And sending a link establishment request corresponding to the at least one second communication link respectively to the Internet of things platform, wherein the link establishment request carries a private port number corresponding to the second communication link.
4. A method according to any one of claims 1-3, wherein said transmitting data with the internet of things platform based on the first communication link and the second communication link comprises:
when data is required to be sent to the Internet of things platform each time, selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy;
and transmitting data through the target communication link.
5. The method of claim 4, wherein the communication link selection policy comprises a random selection or a sequential selection.
6. The method according to any one of claims 1-5, wherein the multilink access request further carries a communication frequency of the internet of things device.
7. A method for performing data transmission, wherein the method is applied to an internet of things platform, the method comprising:
receiving a multi-link access request sent by an edge gateway through a first communication link, wherein the multi-link access request carries a first number of Internet of things devices accessing the edge gateway;
determining a second number of establishing a second communication link with the edge gateway based on the first number;
Acquiring link establishment information corresponding to a second number of second communication links;
the link establishment information corresponding to the second number of second communication links is sent to the edge gateway, and the link establishment information is used for indicating the edge gateway to establish the second number of second communication links with the internet of things platform;
and carrying out data transmission with the edge gateway based on the first communication link and the second communication link.
8. The method of claim 7, wherein determining a second number of second communication links established with the edge gateway based on the first number comprises:
and determining a second number of second communication links which correspond to the first number and are established with the edge gateway based on the first corresponding relation.
9. The method according to claim 7 or 8, wherein the multi-link access request further carries a communication frequency of an internet of things device accessing the edge gateway;
the determining, based on the first number, a second number of communication links to establish with the edge gateway, comprising:
a second number of establishing a second communication link with the edge gateway is determined based on the first number and the communication frequency.
10. The method of claim 9, wherein the determining a second number of second communication links with the edge gateway based on the first number and the communication frequency comprises:
Determining a product of the first number and the communication frequency;
And determining a second number of second communication links which correspond to the product and are established with the edge gateway based on a second corresponding relation.
11. The method according to any one of claims 7-10, wherein the obtaining the link establishment information corresponding to the second number of second communication links includes:
Determining a second number of service instances with the least corresponding load in other service instances except the service instance corresponding to the first communication link;
and acquiring the link establishment information corresponding to the second number of service instances respectively.
12. The method according to any of claims 7-11, wherein the chaining information includes a private port number of the corresponding service instance;
before the data transmission with the edge gateway based on the first communication link and the second communication link, the method further includes:
Receiving a link establishment request carrying a private port number sent by the edge gateway;
and establishing a second communication link between the edge gateway and the service instance corresponding to the private port number.
13. The method according to any one of claims 7-12, wherein said transmitting data with the edge gateway based on the first communication link and the second communication link comprises:
Selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy when data needs to be sent to the edge gateway each time;
and transmitting data through the target communication link.
14. The method of claim 13, wherein the communication link selection policy comprises a random selection or a sequential selection.
15. An apparatus for transmitting data, the apparatus comprising:
The link establishment module is used for establishing a first communication link with the Internet of things platform;
A transceiver module, configured to send a multilink access request to the internet of things platform based on the first communication link, where the multilink access request carries a first number of internet of things devices that access an edge gateway; receiving link establishment information corresponding to at least one second communication link sent by the Internet of things platform;
the link establishment module is configured to establish the at least one second communication link with the internet of things platform based on link establishment information corresponding to the at least one second communication link;
And the transmission module is used for carrying out data transmission with the Internet of things platform based on the first communication link and the second communication link.
16. The apparatus of claim 15, wherein the chain building module is configured to:
Based on the link establishment information corresponding to the at least one second communication link, sending link establishment requests corresponding to the at least one second communication link respectively to the internet of things platform, wherein the link establishment requests carry gateway identifications of the edge gateways, the gateway identifications are different from gateway identifications adopted when the edge gateways establish the first communication link, and in the case that the number of the link establishment requests is multiple, the gateway identifications carried in each link establishment request are different.
17. The apparatus according to claim 15 or 16, wherein the chaining information includes a private port number of a service instance corresponding to the second communication link;
The chain building module is used for:
And sending a link establishment request corresponding to the at least one second communication link respectively to the Internet of things platform, wherein the link establishment request carries a private port number corresponding to the second communication link.
18. The apparatus according to any one of claims 15-17, wherein the transmission module is configured to:
when data is required to be sent to the Internet of things platform each time, selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy;
and transmitting data through the target communication link.
19. The apparatus of claim 18, wherein the communication link selection policy comprises a random selection or a sequential selection.
20. The apparatus according to any one of claims 15-19, wherein the multilink access request further carries a communication frequency of the internet of things device.
21. An apparatus for transmitting data, the method comprising:
The receiving and transmitting module is used for receiving a multilink access request sent by an edge gateway through a first communication link, wherein the multilink access request carries a first number of Internet of things devices accessed to the edge gateway;
a determining module configured to determine, based on the first number, a second number of second communication links established with the edge gateway;
the acquisition module is used for acquiring link establishment information corresponding to a second number of second communication links;
The transceiver module is configured to send link establishment information corresponding to the second number of second communication links to the edge gateway, where the link establishment information is used to instruct the edge gateway to establish the second number of second communication links with the internet of things platform;
and the transmission module is used for carrying out data transmission with the edge gateway based on the first communication link and the second communication link.
22. The apparatus of claim 21, wherein the means for determining is configured to:
and determining a second number of second communication links which correspond to the first number and are established with the edge gateway based on the first corresponding relation.
23. The apparatus according to claim 21 or 22, wherein the multi-link access request further carries a communication frequency of an internet of things device accessing the edge gateway;
The determining module is used for:
a second number of establishing a second communication link with the edge gateway is determined based on the first number and the communication frequency.
24. The apparatus of claim 23, wherein the means for determining is configured to:
Determining a product of the first number and the communication frequency;
And determining a second number of second communication links which correspond to the product and are established with the edge gateway based on a second corresponding relation.
25. The apparatus of any one of claims 21-24, wherein the acquisition module is configured to:
Determining a second number of service instances with the least corresponding load in other service instances except the service instance corresponding to the first communication link;
and acquiring the link establishment information corresponding to the second number of service instances respectively.
26. The apparatus according to any of claims 21-25, wherein the chaining information includes a private port number of a corresponding service instance;
the transceiver module is further configured to:
Receiving a link establishment request carrying a private port number sent by the edge gateway;
and establishing a second communication link between the edge gateway and the service instance corresponding to the private port number.
27. The apparatus of any one of claims 21-26, wherein the transmission module is configured to:
Selecting a target communication link from the first communication link and the second communication link according to a set communication link selection strategy when data needs to be sent to the edge gateway each time;
and transmitting data through the target communication link.
28. The apparatus of claim 27, wherein the communication link selection policy comprises a random selection or a sequential selection.
29. The system for data transmission is characterized by comprising an edge gateway and an Internet of things platform, wherein:
The edge gateway is used for establishing a first communication link with the internet of things platform, and sending a multi-link access request to the internet of things platform based on the first communication link, wherein the multi-link access request carries a first number of internet of things devices accessing the edge gateway;
The internet of things platform is used for determining a second number of second communication links established with the edge gateway based on the first number, acquiring link establishment information corresponding to the second number of second communication links, and sending the link establishment information corresponding to the second number of second communication links to the edge gateway;
The edge gateway is configured to establish the at least one second communication link with the internet of things platform based on link establishment information corresponding to the at least one second communication link;
and the edge gateway is used for carrying out data transmission with the Internet of things platform based on the first communication link and the second communication link.
30. An edge gateway, the edge gateway comprising a processor and a memory;
the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the method for data transmission of any of claims 1-6.
31. A cluster of computing devices, comprising at least one computing device, each computing device comprising a processor and a memory;
the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the method of data transmission of any of claims 7-14.
32. A computer readable storage medium comprising computer program instructions which, when executed by an edge gateway, perform the method of data transmission of any of claims 1-6.
33. A computer readable storage medium comprising computer program instructions which, when executed by a cluster of computing devices, perform the method of data transmission of any of claims 7-14.
CN202211734961.6A 2022-10-14 2022-12-30 Method and device for transmitting data Pending CN117938760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2023/104842 WO2024078050A1 (en) 2022-10-14 2023-06-30 Method and apparatus for performing data transmission

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2022112626561 2022-10-14
CN202211262656 2022-10-14

Publications (1)

Publication Number Publication Date
CN117938760A true CN117938760A (en) 2024-04-26

Family

ID=90752807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211734961.6A Pending CN117938760A (en) 2022-10-14 2022-12-30 Method and device for transmitting data

Country Status (1)

Country Link
CN (1) CN117938760A (en)

Similar Documents

Publication Publication Date Title
US8739179B2 (en) Method and system for low-overhead data transfer
US7532619B2 (en) Packet transfer apparatus with multiple general-purpose processors
CN102571756B (en) Multichannel in file system session connects
US7965714B2 (en) Method and system for offloading network processing
US10313247B2 (en) System, method, and device for network load balance processing
US20070070904A1 (en) Feedback mechanism for flexible load balancing in a flow-based processor affinity scheme
CN110808948B (en) Remote procedure calling method, device and system
CN1954576A (en) Technique for handling initiation requests
CN105791381A (en) Access control method and apparatus
US8416754B2 (en) Network location based processing of data communication connection requests
CN113965521B (en) Data packet transmission method, server and storage medium
CN112243036B (en) Data processing method and device for PaaS service, equipment and storage medium
US7466699B2 (en) System for communicating between network end-points using a payload offset and buffer pool handle
US7783784B1 (en) Method and apparatus for adaptive selection of algorithms to load and spread traffic on an aggregation of network interface cards
US7966401B2 (en) Method and apparatus for containing a denial of service attack using hardware resources on a network interface card
CN117938760A (en) Method and device for transmitting data
KR101794200B1 (en) Method for transmitting and receiving protocol packet using packet processor based LINUX in distributed packet transport network
WO2024078050A1 (en) Method and apparatus for performing data transmission
US20080002701A1 (en) Network interface card virtualization based on hardware resources and software rings
CN111726372B (en) Thermal migration method, device, equipment and storage medium
CN116471343B (en) Equipment board card management method, load balancing method, device, server and medium
CN113923187B (en) Network access method and device, electronic equipment and storage medium
CN111049754B (en) Data communication method, device, equipment and computer readable storage medium
JP2916185B2 (en) Dynamic selection method of incoming communication adapter
CN116599902A (en) Data forwarding method and device, computer equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication