CN114205392B - Information transmission method and device based on cloud platform and computer readable storage medium - Google Patents

Information transmission method and device based on cloud platform and computer readable storage medium Download PDF

Info

Publication number
CN114205392B
CN114205392B CN202111509317.4A CN202111509317A CN114205392B CN 114205392 B CN114205392 B CN 114205392B CN 202111509317 A CN202111509317 A CN 202111509317A CN 114205392 B CN114205392 B CN 114205392B
Authority
CN
China
Prior art keywords
gateway
target
information
equipment
determining
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.)
Active
Application number
CN202111509317.4A
Other languages
Chinese (zh)
Other versions
CN114205392A (en
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111509317.4A priority Critical patent/CN114205392B/en
Publication of CN114205392A publication Critical patent/CN114205392A/en
Application granted granted Critical
Publication of CN114205392B publication Critical patent/CN114205392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an information transmission method based on a cloud platform, an information transmission device based on the cloud platform and a processor. Wherein, the method comprises the following steps: analyzing the information to be transmitted to obtain equipment information of target equipment, wherein the target equipment is a sending object of the information to be transmitted; acquiring a gateway connection identifier based on the equipment information, wherein the gateway connection identifier comprises a mapping relation between the equipment information and a target gateway; determining a target gateway based on the gateway connection identifier; and after the target equipment is determined to be successfully connected with the target gateway, the information to be transmitted is sent to the target equipment through the target gateway. The invention solves the technical problem of large platform load during multilink data transmission in the related technology.

Description

Information transmission method and device based on cloud platform and computer readable storage medium
Technical Field
The invention relates to the field of cloud platform data transmission, in particular to an information transmission method based on a cloud platform, an information transmission device based on the cloud platform and a processor.
Background
Along with the popularization of the internet of things, the internet of things equipment is used in various scenes, the number of the internet of things equipment is increasing day by day, a conventional single link mode cannot meet concurrency requirements, in order to guarantee the success rate of equipment data transmission and relieve concurrency pressure, a multi-link connection mode is adopted in the prior art to guarantee the connection quality of the equipment and target equipment, namely, one piece of equipment is connected with a cloud platform through a plurality of links, and information of the equipment is transmitted to the cloud platform through the plurality of links. In this connection mode, the problems of low transmission accuracy and easy repetition of information are caused.
In the related art, some devices can carry out verification before data transmission, select one of the connection modes, and send data to equipment through the connection mode, so that the problems that transmission information is easy to repeat and the accuracy rate is low are solved.
However, according to the scheme, connection confirmation needs to be performed once before each transmission, so that the workload of the cloud platform is greatly increased, and a great burden is caused on the cloud platform in a high-concurrency scene.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an information transmission method based on a cloud platform, a device and a processor thereof, which are used for at least solving the technical problem of large platform load during multilink data transmission in the related technology.
According to an aspect of an embodiment of the present invention, there is provided an information transmission method based on a cloud platform, including: analyzing information to be transmitted to obtain equipment information of target equipment, wherein the target equipment is a sending object of the information to be transmitted; acquiring a gateway connection identifier based on the equipment information, wherein the gateway connection identifier comprises a mapping relation between the equipment information and a target gateway; determining the target gateway based on the gateway connection identifier; and after the target equipment is determined to be successfully connected with the target gateway, the information to be transmitted is sent to the target equipment through the target gateway.
Optionally, before parsing the information to be transmitted, the method further includes: respectively carrying out communication test on the communication quality of a plurality of gateways and the target equipment to acquire network quality information of the communication test of the gateways and the target equipment; determining the target gateway from the plurality of gateways based on the network quality information; and generating and storing the mapping relation between the target device and the target gateway.
Optionally, determining the target gateway from the plurality of gateways based on the network quality information comprises: determining data transmission performance of the plurality of gateways based on the network quality information; and determining a gateway, of the plurality of gateways, of which the data transmission performance meets a preset condition as the target gateway.
Optionally, the method further comprises: and when the number of the gateways of which the data transmission performance meets the preset condition is at least two, selecting one gateway from the at least two gateways as the target gateway by utilizing a random algorithm.
Optionally, determining the target gateway based on the gateway connection identifier includes: analyzing the gateway connection identifier to obtain gateway information of the target gateway; determining the target gateway based on the gateway information.
Optionally, determining that the target device is successfully connected to the target gateway includes: determining to receive feedback information of the target device for the connection request, and determining that the target device and the target gateway are successfully connected when it is determined that a response of the target device to the connection request is normal based on the feedback information, wherein the connection request is a connection request initiated by the target gateway to the target device.
Optionally, the method comprises: when determining that feedback information of the target device for the connection request is not received, or when determining that a response of the target device to the connection request is abnormal based on the feedback information, determining that the target device and the target gateway are not successfully connected; and reselecting a new gateway as the target gateway.
According to an aspect of an embodiment of the present invention, there is provided an information transmission apparatus based on a cloud platform, including: the analysis module is used for analyzing the information to be transmitted to obtain the equipment information of the target equipment, wherein the target equipment is a sending object of the information to be transmitted; an obtaining module, configured to obtain a gateway connection identifier based on the device information, where the gateway connection identifier includes a mapping relationship between the device information and a target gateway; a first determining module, configured to determine the target gateway based on the gateway connection identifier; and the second determining module is used for sending the information to be transmitted to the target equipment through the target gateway after the target equipment is determined to be successfully connected with the target gateway.
Optionally, the apparatus further comprises: the testing module is used for respectively carrying out communication testing on the communication quality of the gateways and the target equipment before analyzing the information to be transmitted so as to obtain the network quality information of the communication testing of the gateways and the target equipment; a third determining module to determine the target gateway from the plurality of gateways based on the network quality information; and the generation module is used for generating and storing the mapping relation between the target equipment and the target gateway.
Optionally, the third determining module includes: a first determining unit configured to determine data transmission performance of the plurality of gateways based on the network quality information; a second determining unit, configured to determine, as the target gateway, a gateway whose data transmission performance satisfies a predetermined condition among the plurality of gateways.
Optionally, the apparatus further comprises: a first selecting module, configured to select one of the at least two gateways as the target gateway by using a random algorithm when the number of gateways whose data transmission performance satisfies a predetermined condition is at least two among the plurality of gateways.
Optionally, the first determining module includes: the analysis unit is used for analyzing the gateway connection identifier to obtain the gateway information of the target gateway; a third determining unit, configured to determine the target gateway based on the gateway information.
Optionally, the second determining module includes: a fourth determining unit, configured to determine to receive feedback information of the target device for a connection request, and determine that the target device and the target gateway are successfully connected when it is determined that a response of the target device to the connection request is normal based on the feedback information, where the connection request is a connection request initiated by the target gateway to the target device.
Optionally, the apparatus comprises: a third determining module, configured to determine that the target device and the target gateway are not successfully connected when it is determined that feedback information of the target device for the connection request is not received, or when it is determined that a response of the target device to the connection request is abnormal based on the feedback information; and the second selection module is used for reselecting a new gateway as the target gateway.
According to an aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program is executed by a processor, the computer-readable storage medium is controlled to execute any one of the above methods for information transmission based on a cloud platform.
According to an aspect of the embodiments of the present invention, there is provided a processor, configured to execute a computer program, where the computer program executes the cloud platform-based information transmission method according to any one of the above.
In the embodiment of the invention, the information to be transmitted is analyzed to obtain the equipment information of the target equipment, wherein the target equipment is a sending object of the information to be transmitted; acquiring a gateway connection identifier based on the equipment information, wherein the gateway connection identifier comprises a mapping relation between the equipment information and a target gateway; determining a target gateway based on the gateway connection identifier; and after the target equipment is determined to be successfully connected with the target gateway, the information to be transmitted is sent to the target equipment through the target gateway. By the information transmission method based on the cloud platform, the purpose of determining the target gateway to transmit information based on the related information in the information to be transmitted is achieved, the technical effect of reducing the platform load during multilink data transmission is achieved, and the technical problem of large platform load during multilink data transmission in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of an information transmission method based on a cloud platform according to an embodiment of the present invention;
FIG. 2 is a flow chart of a device pre-connection method according to an embodiment of the invention;
FIG. 3 is a flow chart of a gateway selection method according to an embodiment of the present invention;
fig. 4 is a flowchart of a device information transmission method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a device information transmission system according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an information transmission apparatus based on a cloud platform according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, system, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, apparatus, article, or device.
Example 1
In accordance with an embodiment of the present invention, there is provided an apparatus embodiment of a cloud platform-based information transmission method, it should be noted that the steps illustrated in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be executed in an order different from that herein.
Fig. 1 is a flowchart of an information transmission method based on a cloud platform according to an embodiment of the present invention, and as shown in fig. 1, the apparatus includes the following steps:
step S102, analyzing the information to be transmitted to obtain the device information of the target device, wherein the target device is a sending object of the information to be transmitted.
Optionally, in the above step, the information to be transmitted may be analyzed first, so as to analyze the device information of the target device interacted with the cloud platform.
Step S104, acquiring a gateway connection identifier based on the device information, wherein the gateway connection identifier comprises a mapping relation between the device information and the target gateway.
Optionally, in the above step, a mapping relationship between the device information stored in the target device and the target gateway (i.e. a gateway connection identifier) is obtained based on the device information.
And step S106, determining a target gateway based on the gateway connection identifier.
Optionally, in the foregoing step, the target gateway to be connected is determined through a mapping relationship between the device information and the target gateway.
And step S108, after the target equipment is successfully connected with the target gateway, the information to be transmitted is sent to the target equipment through the target gateway.
As can be seen from the above, in the embodiment of the present invention, first, information to be transmitted may be analyzed to obtain device information of a target device, where the target device is a sending object of the information to be transmitted; then, a gateway connection identifier can be obtained based on the device information, wherein the gateway connection identifier comprises a mapping relation between the device information and a target gateway; then, a target gateway can be determined based on the gateway connection identifier; and finally, after the target equipment is determined to be successfully connected with the target gateway, the information to be transmitted is sent to the target equipment through the target gateway. By the information transmission method based on the cloud platform, the purpose of determining the target gateway to transmit information based on the related information in the information to be transmitted is achieved, the technical effect of reducing the platform load during multilink data transmission is achieved, and the technical problem of large platform load during multilink data transmission in the related technology is solved.
As an optional embodiment, before analyzing the information to be transmitted, the information transmission method based on the cloud platform further includes: respectively carrying out communication test on the communication quality of the plurality of gateways and the target equipment to acquire network quality information of the communication test of the plurality of gateways and the target equipment; determining a target gateway from the plurality of gateways based on the network quality information; and generating and storing a mapping relation between the target device and the target gateway.
Fig. 2 is a flowchart of a device pre-connection method according to an embodiment of the present invention, and as shown in fig. 2, the steps of the device pre-connection method are described in detail below.
Step 1), the cloud platform tests and communicates the equipment through at least two gateways to obtain at least two communication states; specifically, the cloud platform includes at least two gateways, and performs test communication on the device through the at least two gateways, where the test communication is analog communication in which the cloud platform performs communication quality detection on the device through the gateways. It should be noted that the communication state may be a packet loss rate and an average transmission time obtained after the heartbeat packet is sent for multiple times.
Step 2), selecting a gateway with the optimal communication state as the optimal gateway of the equipment; specifically, parameters in the communication state are analyzed to obtain a gateway with the optimal communication state.
Step 3), the cloud platform stores the corresponding relation between the optimal gateway and the equipment information as a pre-connection identifier; specifically, the cloud platform combines the corresponding relation between the optimal gateway information and the device information into a pre-connection identifier for storage, wherein the optimal gateway information is ip of the optimal gateway, and the device information is a unique identifier of the device.
Through the steps provided by the embodiment, the cloud platform and each device store corresponding pre-connection identifiers (namely, network connection identifiers in the context), when the cloud platform needs to transmit information to the devices, the pre-connection identifiers of the corresponding devices are found according to the unique identifiers of the devices, the corresponding optimal gateways are found according to the pre-connection identifiers to connect the devices, and the burden of finding the optimal gateways when the devices are connected is reduced.
As an alternative embodiment, determining a target gateway from a plurality of gateways based on network quality information includes: determining data transmission performance of a plurality of gateways based on the network quality information; and determining a gateway with data transmission performance meeting a preset condition in the plurality of gateways as a target gateway.
Fig. 3 is a flowchart of a gateway selection method according to an embodiment of the present invention, and as shown in fig. 3, the following describes the steps of the gateway selection method in detail.
Step 1), obtaining communication state performance parameters; specifically, the communication state is analyzed to obtain the performance parameters of the communication state. In this embodiment, the performance parameters are a packet loss rate and an average transmission time.
Step 2), selecting the gateway to which the communication state with the optimal performance parameter belongs as the optimal gateway; specifically, the performance parameters of each gateway are analyzed, and the gateway with the optimal performance parameters is selected as the optimal gateway. In the steps provided by the embodiment of the present invention, the gateway with the lowest packet loss rate is selected as the optimal gateway, and if the packet loss rates are consistent, the gateway with the lowest average transmission time is selected as the optimal gateway. By this step, it is possible to select a gateway having the best communication state as the best gateway among the at least two gateways.
Step 3), a plurality of optimal gateways exist, and one of the optimal gateways is randomly selected as the optimal gateway of the equipment; specifically, the cloud platform is provided with a performance threshold, if the performance parameters of the plurality of gateways are different within the threshold range, the plurality of optimal gateways exist, and the cloud platform randomly selects one gateway as the optimal gateway of the device according to a random algorithm.
Through the steps provided by the embodiment of the invention, the gateway can be randomly selected under the condition that the performance parameters of a plurality of gateways are similar, and when a plurality of devices simultaneously select a plurality of gateways, the corresponding relation between the devices and the gateways can be effectively randomly specified, so that the problem that the same gateway is congested under the condition that the communication states of the plurality of devices to the plurality of gateways are similar is avoided.
As an optional embodiment, the information transmission method based on the cloud platform further includes: and when the number of the gateways of which the data transmission performance meets the preset condition is at least two, selecting one gateway from the at least two gateways as a target gateway by utilizing a random algorithm.
In the above optional embodiment, when the number of gateways whose data transmission performance satisfies the predetermined condition is at least two, one gateway is randomly extracted from the plurality of gateways by using a random algorithm as the target gateway.
As an alternative embodiment, determining the target gateway based on the gateway connection identifier includes: analyzing the gateway connection identifier to obtain gateway information of a target gateway; a target gateway is determined based on the gateway information.
In the above optional embodiment, the gateway connection identifier is analyzed to obtain gateway information of the target gateway, and then the gateway information is used to determine the target gateway.
It should be noted that the gateway information may indicate the communication state and the communication performance of the gateway, such as packet loss rate, bandwidth and transmission time.
As an alternative embodiment, determining that the target device is successfully connected to the target gateway includes: determining to receive feedback information of the target device for the connection request, and determining that the target device is successfully connected with the target gateway when determining that the response of the target device to the connection request is normal based on the feedback information, wherein the connection request is a connection request initiated to the target device by the target gateway.
In the above optional embodiment, after determining that the feedback information of the target device for the connection request is received, when determining that the response of the target device to the connection request is normal based on the obtained feedback information, it is determined that the target device and the target gateway are successfully connected.
As an optional embodiment, the information transmission method based on the cloud platform includes: when determining that the feedback information of the target equipment to the connection request is not received or when determining that the response of the target equipment to the connection request is abnormal based on the feedback information, determining that the target equipment and the target gateway are not successfully connected; and reselecting the new gateway as the target gateway.
Fig. 4 is a flowchart of a device information transmission method according to an embodiment of the present invention, and as shown in fig. 4, the following describes the steps of the device information transmission method in detail.
Step 1), the cloud platform analyzes information to be transmitted to obtain target equipment information (namely equipment information of the target equipment); specifically, the information to be transmitted includes a device instruction and target device information, the target device is found through the target device information, and the target device receives the device instruction and then changes correspondingly.
Step 2), acquiring a pre-connection identifier according to the target equipment information; specifically, the cloud platform stores the corresponding relationship between the optimal gateway and the device information, and uses the corresponding relationship as the pre-connection identifier, and the pre-connection identifier including the device information and the optimal gateway of the device information can be found through the device information.
Step 3), resolving the pre-connection identification to obtain an optimal gateway; specifically, the pre-connection identifier is analyzed to obtain an optimal gateway connected to the device.
Step 4), connecting the optimal gateway with the equipment to transmit data; specifically, the cloud platform is connected with the device through the optimal gateway and sends information to the device.
Step 5), judging whether the connection is successful; specifically, after the cloud platform is connected with the device through the optimal gateway, the quality of the connection is tested, in the embodiment, the cloud platform judges the quality of the connection by analyzing the communication state, if the response of the connection request is judged to be normal, if the response is successful, the connection is maintained, and the step is ended; if the answer is a connection failure, step 6) is entered.
Step 6), selecting the optimal gateway again for data transmission; specifically, if the connection is judged to be successful or not, the optimal gateway is reselected.
Through the steps provided by the method embodiment, because the communication state of each gateway of the cloud platform should be unchanged within a period of time due to the fixity of the device, an optimal gateway is selected as the gateway used for pre-connection in the pre-connection mode when the cloud platform is connected with the device, and the performance problem caused by the fact that the gateway needs to be reselected every time connection can be effectively solved.
Fig. 5 is a schematic diagram of an apparatus information transmission system according to an embodiment of the present invention, where the apparatus information transmission system is applied to the cloud platform-based information transmission method according to an embodiment of the present invention, and as shown in fig. 5, the apparatus information transmission system may include: a device (i.e., a target device) and a cloud platform, wherein the device may include: the processing module is responsible for processing the instructions received from the cloud platform and changing the state of the equipment; the sending module is responsible for communicating with the cloud platform; the cloud platform includes: the gateway cluster comprises at least two gateway modules and is used for communication connection between the cloud platform and the equipment; the analysis module is responsible for analyzing the communication state of communication with the equipment through each gateway, selecting an optimal gateway and generating a pre-connection identifier; the storage module is responsible for storing the pre-connection identifier; and the communication module is responsible for communicating with the equipment through the gateway and sending information to the equipment.
As can be seen from the above, according to the information transmission method based on the cloud platform provided by the embodiment of the present invention, the device may perform connection confirmation with the gateway at regular time, select an optimal gateway, and send a pre-connection identifier to the cloud platform. The cloud platform saves the pre-connection identification, when the equipment needs to be connected, the corresponding pre-connection identification is found, the equipment can be connected according to the content of the pre-connection identification, and the burden of screening connection modes before each data transmission of the cloud platform can be reduced through the pre-connection of the equipment and the cloud platform.
Example 2
According to an aspect of the embodiment of the present invention, there is provided an information transmission apparatus based on a cloud platform, and fig. 6 is a schematic diagram of the information transmission apparatus based on the cloud platform according to the embodiment of the present invention, as shown in fig. 6, including: an analysis module 61, an acquisition module 63, a first determination module 65, and a second determination module 67. The following describes the information transmission apparatus based on the cloud platform.
The analysis module 61 is configured to analyze the information to be transmitted to obtain device information of the target device, where the target device is a sending object of the information to be transmitted;
an obtaining module 63, configured to obtain a gateway connection identifier based on the device information, where the gateway connection identifier includes a mapping relationship between the device information and a target gateway;
a first determining module 65, configured to determine a target gateway based on the gateway connection identifier;
and the second determining module 67 is configured to send the information to be transmitted to the target device through the target gateway after determining that the target device is successfully connected to the target gateway.
It should be noted that the analyzing module 61, the obtaining module 63, the first determining module 65, and the second determining module 67 correspond to steps S102 to S108 in embodiment 1, and the modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above as part of the apparatus may be implemented in a computer system such as a set of computer executable instructions.
As can be seen from the above, in the embodiment of the present invention, the information to be transmitted may be analyzed by the analysis module 61 to obtain the device information of the target device, where the target device is a sending object of the information to be transmitted; then, a gateway connection identifier may be obtained based on the device information by using the obtaining module 63, where the gateway connection identifier includes a mapping relationship between the device information and the target gateway; the target gateway may then be determined based on the gateway connection identification by means of the first determination module 65; finally, after the second determining module 67 determines that the target device is successfully connected to the target gateway, the information to be transmitted is sent to the target device through the target gateway. The information transmission device based on the cloud platform achieves the purpose of determining the target gateway to transmit information based on the related information in the information to be transmitted, thereby achieving the technical effect of reducing the platform load during multilink data transmission and further solving the technical problem of large platform load during multilink data transmission in the related technology.
Optionally, the information transmission apparatus based on the cloud platform further includes: the testing module is used for respectively carrying out communication testing on the communication quality of the gateways and the target equipment before analyzing the information to be transmitted so as to obtain the network quality information for carrying out the communication testing on the gateways and the target equipment; a third determining module for determining a target gateway from the plurality of gateways based on the network quality information; and the generation module is used for generating and storing the mapping relation between the target equipment and the target gateway.
Optionally, the third determining module includes: a first determination unit configured to determine data transmission performance of the plurality of gateways based on the network quality information; and the second determining unit is used for determining the gateway with the data transmission performance meeting the preset condition in the plurality of gateways as the target gateway.
Optionally, the information transmission apparatus based on a cloud platform further includes: the first selection module is used for selecting one gateway from at least two gateways as a target gateway by utilizing a random algorithm when the number of the gateways of which the data transmission performance meets the preset condition is at least two.
Optionally, the first determining module includes: the analysis unit is used for analyzing the gateway connection identifier to obtain gateway information of the target gateway; and a third determining unit, configured to determine the target gateway based on the gateway information.
Optionally, the second determining module includes: and a fourth determining unit, configured to determine that feedback information of the target device for the connection request is received, and determine that the target device and the target gateway are successfully connected when it is determined that a response of the target device to the connection request is normal based on the feedback information, where the connection request is a connection request initiated by the target gateway to the target device.
Optionally, the information transmission apparatus based on the cloud platform includes: a third determining module, configured to determine that the target device and the target gateway are not successfully connected when it is determined that feedback information of the target device for the connection request is not received, or when it is determined that a response of the target device to the connection request is abnormal based on the feedback information; and the second selection module is used for reselecting the new gateway as the target gateway.
Example 3
According to an aspect of the embodiments of the present invention, there is provided a computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the apparatus where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned cloud platform-based information transmission methods.
Example 4
According to an aspect of the embodiments of the present invention, there is provided a processor, where the processor is configured to execute a computer program, where the computer program executes the cloud platform-based information transmission method described in any one of the foregoing descriptions.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the apparatus according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. An information transmission method based on a cloud platform is characterized by comprising the following steps:
analyzing information to be transmitted to obtain equipment information of target equipment, wherein the target equipment is a sending object of the information to be transmitted;
acquiring a gateway connection identifier based on the equipment information, wherein the gateway connection identifier comprises a mapping relation between the equipment information and a target gateway;
determining the target gateway based on the gateway connection identifier;
after the target equipment is determined to be successfully connected with the target gateway, the information to be transmitted is sent to the target equipment through the target gateway;
before analyzing the information to be transmitted, the method further comprises:
respectively carrying out communication test on the communication quality of a plurality of gateways and the target equipment to acquire network quality information of the communication test of the gateways and the target equipment;
determining the target gateway from the plurality of gateways based on the network quality information;
and generating and storing the mapping relation between the target device and the target gateway.
2. The method of claim 1, wherein determining the target gateway from the plurality of gateways based on the network quality information comprises:
determining data transmission performance of the plurality of gateways based on the network quality information;
and determining a gateway, of the plurality of gateways, of which the data transmission performance meets a preset condition as the target gateway.
3. The method of claim 2, further comprising:
and when the number of gateways of which the data transmission performance meets the preset condition is at least two, selecting one gateway from the at least two gateways as the target gateway by utilizing a random algorithm.
4. The method of claim 1, wherein determining the target gateway based on the gateway connection identity comprises:
analyzing the gateway connection identifier to obtain gateway information of the target gateway;
determining the target gateway based on the gateway information.
5. The method of claim 1, wherein determining that the target device is successfully connected with the target gateway comprises:
determining to receive feedback information of the target device for a connection request, and determining that the target device and the target gateway are successfully connected when determining that a response of the target device to the connection request is normal based on the feedback information, wherein the connection request is a connection request initiated by the target gateway to the target device.
6. The method according to any one of claims 1 to 5, characterized in that it comprises:
when determining that feedback information of the target equipment to the connection request is not received or when determining that the response of the target equipment to the connection request is abnormal based on the feedback information, determining that the target equipment and the target gateway are not successfully connected;
reselecting a new gateway as the target gateway.
7. An information transmission device based on a cloud platform, comprising:
the analysis module is used for analyzing the information to be transmitted to obtain the equipment information of the target equipment, wherein the target equipment is a sending object of the information to be transmitted;
an obtaining module, configured to obtain a gateway connection identifier based on the device information, where the gateway connection identifier includes a mapping relationship between the device information and a target gateway;
a first determining module, configured to determine the target gateway based on the gateway connection identifier;
the second determining module is used for sending the information to be transmitted to the target equipment through the target gateway after the target equipment is determined to be successfully connected with the target gateway;
wherein the apparatus further comprises: the testing module is used for respectively carrying out communication testing on the communication quality of the gateways and the target equipment before analyzing the information to be transmitted so as to obtain the network quality information of the communication testing of the gateways and the target equipment; a third determining module to determine the target gateway from the plurality of gateways based on the network quality information; and the generation module is used for generating and storing the mapping relation between the target equipment and the target gateway.
8. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program is executed by a processor, the computer-readable storage medium is controlled to execute the cloud platform-based information transmission method according to any one of claims 1 to 6.
CN202111509317.4A 2021-12-10 2021-12-10 Information transmission method and device based on cloud platform and computer readable storage medium Active CN114205392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111509317.4A CN114205392B (en) 2021-12-10 2021-12-10 Information transmission method and device based on cloud platform and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111509317.4A CN114205392B (en) 2021-12-10 2021-12-10 Information transmission method and device based on cloud platform and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114205392A CN114205392A (en) 2022-03-18
CN114205392B true CN114205392B (en) 2022-10-28

Family

ID=80652348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111509317.4A Active CN114205392B (en) 2021-12-10 2021-12-10 Information transmission method and device based on cloud platform and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114205392B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107980241B (en) * 2017-10-18 2021-12-10 深圳市奥星澳科技有限公司 Gateway multi-connection method and device
CN112003911A (en) * 2020-08-11 2020-11-27 上海博泰悦臻电子设备制造有限公司 Communication connection method for cloud platform and cloud platform
CN112887199B (en) * 2021-01-28 2022-11-25 深圳云里物里科技股份有限公司 Gateway, cloud platform, configuration method and device thereof, and computer-readable storage medium
CN113114665B (en) * 2021-04-08 2023-01-20 北京金山云网络技术有限公司 Data transmission method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114205392A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN107179995A (en) A kind of performance test methods of application program of computer network
CN106844220A (en) A kind of method of testing and system of simulation computer web application real running environment
CN110099398B (en) Network failure information collection method, network system, storage medium and network device
CN102045363A (en) Establishment, identification control method and device for network flow characteristic identification rule
CN109787827B (en) CDN network monitoring method and device
CN109167762B (en) IEC104 message checking method and device
CN109951537A (en) A kind of load balance distribution method towards block chain
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN107203464B (en) Method and device for positioning service problem
CN107395687B (en) Equipment monitoring method, device and system and air conditioner
KR101640476B1 (en) Test analysis system of network and analysis method thereof
CN115396529A (en) Multichannel communication method, device, terminal equipment and storage medium
CN113630418B (en) Network service identification method, device, equipment and medium
CN113422696B (en) Monitoring data updating method, system, equipment and readable storage medium
CN114785874A (en) Method for providing high-availability transmission channel based on multi-network protocol
CN114205392B (en) Information transmission method and device based on cloud platform and computer readable storage medium
CN106992893A (en) The management method and device of router
CN104376012B (en) A kind of reconnection method that goes offline of web application, device and system
CN105721231B (en) A kind of quality of service perception detection method and device
CN107948022B (en) Identification method and identification device for peer-to-peer network traffic
CN114500237B (en) Communication method and system
CN109831335A (en) A kind of data monitoring method, monitor terminal, storage medium and data monitoring system
CN115633359A (en) PFCP session security detection method, device, electronic equipment and storage medium
CN113746725B (en) Gateway selection method and device in multi-gateway environment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant