Information transmission method, device and system

By receiving and processing information identifiers in the load balancing device and associating the device identification information, the problem of message receipt and withdrawal routing selection caused by the load balancing device not identifying service content is solved, and the accurate routing of message transmission is realized.

CN114301989BActive Publication Date: 2024-12-13CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111631118.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-12-13
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The load balancing device does not recognize the service content, resulting in the routing problem of message receipt or message retraction has not been effectively solved in the prior art.

Method used

By receiving the target information, determining the information identifier, and associating the first device identification information and the second device identification information, querying the device identification information of the target information device in the target database based on the information identifier, ensuring that the message receipt and withdrawal instructions can be accurately routed .

Benefits of technology

It realizes accurate routing of message delivery, solves the routing problem caused by insufficient identification of load balancing devices, and ensures that message receipts and withdrawal instructions can be delivered correctly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114301989B_ABST
    Figure CN114301989B_ABST
Patent Text Reader

Abstract

The present application discloses an information transmission method, device and system. The method includes: receiving target information; determining the information identifier of the target information, and associating the first device identification information, the second device identification information and the information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; in the case of receiving the associated information of the target information, determining the device identification information of the target information device that receives the associated information based on the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; based on the device identification information of the target information device, sending the associated information to the target information device. The present application solves the technical problem that the load balancing device does not identify the business content, resulting in the routing selection of message receipts or message withdrawals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an information transmission method, device and system. Background Art

[0002] The basic function of a gateway device is generally used for conversion between different interface protocols. For example, the gateway device related to MaaP messages in the 5G message system platform performs protocol conversion between HTTP, RESTful, API interface and SIP interface, or conversion between parameters between HTTP, RESTful, API interface and internal private interface (such as Kafka). In cluster deployment applications, the external interface of the gateway device is usually pre-loaded with a load balancing device to distribute external business message requests to internal gateway device instances. Because the pre-load balancing device generally does not identify the specific content of the business, there are usually routing selection issues for message receipts or message withdrawals.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide an information transmission method, device and system to at least solve the technical problem that the load balancing device does not recognize the business content, resulting in routing selection with message receipts or message withdrawals.

[0005] According to one aspect of an embodiment of the present application, there is provided an information transmission method, applicable to any gateway instance in a gateway cluster, comprising: receiving target information; determining an information identifier of the target information, and associating first device identification information, second device identification information and an information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; when receiving associated information of the target information, determining the device identification information of the target information device that receives the associated information based on the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; and sending the associated information to the target information device based on the device identification information of the target information device.

[0006] Optionally, associating the first device identification information, the second device identification information and the information identifier includes: determining the first device identification information of the first information device; determining the second information device according to a preset rule, and obtaining the second device identification information of the second information device; storing the information identifier in a target database, and storing the association relationship between the first device identification information, the second device identification information and the information identifier.

[0007] Optionally, determining the device identification information of the target information device that receives the associated information based on the information identifier includes: when the associated information is receipt information of the target information, obtaining the information identifier of the target information carried in the receipt information; based on the information identifier, querying the first device identification information associated with the information identifier in the target database, and determining that the first information device corresponding to the first device identification information is the target information device.

[0008] Optionally, determining the device identification information of the target information device that receives the associated information based on the information identifier includes: when the associated information is withdrawal instruction information of the target information, obtaining the information identifier of the target information carried in the withdrawal instruction information; based on the information identifier, querying the second device identification information associated with the information identifier in the target database, and determining that the second information device corresponding to the second device identification information is the target information device.

[0009] Optionally, before receiving the target information, the information transmission method further includes: determining a load status of each gateway in the gateway cluster; and determining a first target gateway instance for receiving the target information from the gateway cluster according to the load status.

[0010] Optionally, before receiving the associated information of the target information, the information transmission method further includes: determining the load status of each gateway in the gateway cluster; and determining a second target gateway instance for receiving the associated information of the target information from the gateway cluster according to the load status.

[0011] Optionally, the target information is uplink information or downlink information, wherein: when the target information is downlink information, the first information device is a northbound interface device and the second information device is a southbound interface device; when the target information is uplink information, the first information device is a southbound interface device and the second information device is a northbound interface device.

[0012] According to another aspect of an embodiment of the present application, there is also provided an information transmission device, which is suitable for use in a gateway, and includes: a receiving module, used to receive target information; a processing module, used to determine an information identifier of the target information, and to associate first device identification information, second device identification information and an information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; a retrieval module, used to determine the device identification information of the target information device that receives the associated information based on the information identifier when receiving associated information of the target information, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; a sending module, used to send the associated information to the target information device based on the device identification information of the target information device.

[0013] According to another aspect of the embodiment of the present application, an information transmission system is also provided, which includes multiple northbound interface devices, multiple southbound interface devices, and gateway cluster devices, wherein the gateway cluster device includes a northbound load balancing device, a southbound load balancing device, multiple gateway instances, and a storage module, wherein the northbound load balancing device is used to determine a first target gateway instance for processing downlink information sent by the northbound interface device based on the load status of each gateway instance in the gateway cluster; the southbound load balancing device is used to determine a second target gateway instance for processing uplink information sent by the southbound interface device based on the load status of each gateway instance in the gateway cluster; any one of the multiple gateway instances is used to execute receiving target information; determine an information identifier of the target information, and associate the first target gateway instance with the southbound load balancing device; A device identification information, a second device identification information and an information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; when the associated information of the target information is received, the device identification information of the target information device that receives the associated information is determined based on the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; based on the device identification information of the target information device, the associated information is sent to the target information device; a storage module is used to store a target database, the target database is used to store the device identification information of multiple northbound interface devices and multiple southbound interface devices, and the information identifier of the target information.

[0014] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, which includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above-mentioned information transmission method.

[0015] According to another aspect of the embodiments of the present application, an electronic device is provided. The electronic device includes a processor, and the processor is used to run a program, wherein the above-mentioned information transmission method is executed when the program is run.

[0016] In an embodiment of the present application, by associating the first device identifier, the second device identifier and the information identifier, and when receiving the associated information of the target information, determining the device identification information of the target information device that receives the associated information based on the information identifier, the purpose of sending the associated information to the target information device is achieved, thereby achieving the technical effect of information transmission, and further solving the technical problem of routing selection in which the load balancing device does not recognize the business content, resulting in message receipts or message withdrawals. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 It is a hardware structure block diagram of a computer terminal (or electronic device) for implementing an information transmission method according to an embodiment of the present application;

[0019] Figure 2 is a flow chart of an information transmission method according to an embodiment of the present application;

[0020] Figure 3 is a flow chart of associating device identification information and information identifier according to an embodiment of the present application;

[0021] Figure 4 is a flow chart of determining device identification information of a target information device for receiving associated information based on an information identifier according to an embodiment of the present application;

[0022] Figure 5 is another flow chart of determining device identification information of a target information device for receiving associated information based on an information identifier according to an embodiment of the present application;

[0023] Figure 6 is a flowchart of determining a first target gateway instance from a gateway cluster according to an embodiment of the present application;

[0024] Figure 7 is a flow chart of determining a second target gateway instance from a gateway cluster according to an embodiment of the present application;

[0025] Figure 8 is a structural diagram of an information transmission device according to an embodiment of the present application;

[0026] Fig. 9 is a schematic diagram of forwarding downlink information and corresponding receipt information according to an embodiment of the present application;

[0027] Fig.10 is a schematic diagram of forwarding downlink information and corresponding withdrawal instruction information according to an embodiment of the present application;

[0028] Fig.11 It is a schematic diagram of forwarding uplink information and corresponding receipt information according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] The information transmission method embodiment provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or electronic device) for implementing an information transmission method. Figure 1 As shown, the computer terminal 10 (or electronic device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0032] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or electronic device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

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

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

[0035] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or electronic device).

[0036] It should be noted that, in some optional embodiments, the above Figure 1 The computer device (or electronic device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above-described computer device (or electronic device).

[0037] Under the above operating environment, this application provides the following Figure 2 It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] Figure 2 is a flow chart of an information transmission method according to an embodiment of the present application, which is applicable to any gateway instance in a gateway cluster, such as Figure 2 As shown, the method comprises the following steps:

[0039] Step S202, receiving target information;

[0040] Step S204, determining the information identifier of the target information, and associating the first device identification information, the second device identification information and the information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information;

[0041] Step S206, when the associated information of the target information is received, determining the device identification information of the target information device receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device;

[0042] Step S208: sending the associated information to the target information device according to the device identification information of the target information device.

[0043] The information transmission method described in steps S202 to S208 can be applied to a 5G message system. When the message gateway in the 5G message system is deployed on a gateway cluster, message forwarding and transmission are achieved through the gateway cluster. The information transmission method can be used to provide an accurate routing selection method for delivering message receipts and message withdrawals.

[0044] In step S204 of the information transmission method, the first device identification information, the second device identification information and the information identifier are associated, such as Figure 3 The flowchart shown specifically includes the following steps:

[0045] Step S302, determining first device identification information of a first information device;

[0046] Step S304, determining the second information device according to a preset rule, and obtaining the second device identification information of the second information device;

[0047] Step S306: store the information identifier in the target database, and store the association relationship between the first device identification information, the second device identification information and the information identifier.

[0048] In step S302 to step S306, the first device identification information of the target information is determined, the target information carries an information identifier, the information identifier can be represented by Message ID, the first device identification information at least includes the device identification, device address, etc. of the first information device, the second device identification information at least includes the device identification, device address, etc. of the second information device, and the second information device receiving the target information is determined according to the preset rules, the preset rules can be the original business routing rules of the gateway instance, because there are multiple gateway instances in the gateway cluster, the multiple gateway instances share a set of northbound interface device configuration information, including the device identification, device address, etc. of the northbound interface device, and the multiple gateway instances share a set of southbound interface device configuration information, including the device identification, device address, etc. of the southbound interface device. Multiple gateway instances share a key-value-based memory database, which is the target database in the embodiment of the present application, and can quickly save and obtain related information according to the input key value.

[0049] For example, when the gateway instance receives target information forwarded from a northbound interface device, the southbound interface device is selected through routing rules, and the target information is sent to the southbound interface device. In this case, the first information device is a northbound interface device, and the first device identification information includes at least information such as the device identification and device address of the northbound interface device; the second information device is a southbound interface device, and the second device identification information includes at least information such as the device identification and device address of the southbound interface device; in another optional embodiment, for example, when the gateway receives target information forwarded from a southbound interface, the northbound interface device is selected through routing rules, and the target information is sent to the northbound interface device. In this case, the first information device is a southbound interface device, and the first device identification information includes at least information such as the device identification and device address of the southbound interface device; the second information device is a northbound interface device, and the second device identification information includes at least information such as the device identification and device address of the northbound interface device.

[0050] The second information device associated with the first information device is determined by preset rules, so that the first device identification information, the second device identification information and the information identifier carried in the target information are associated, and the association relationship is stored in the target database, so as to facilitate the determination of the device identification information of the receiving target information when forwarding the target information.

[0051] In step S206 of the information transmission method, the device identification information of the target information device receiving the associated information is determined according to the information identifier, such as Figure 4 The flowchart shown specifically includes the following steps:

[0052] Step S402, when the associated information is the receipt information of the target information, obtaining the information identifier of the target information carried in the receipt information;

[0053] Step S404: According to the information identifier, query the target database for the first device identification information associated with the information identifier, and determine that the first information device corresponding to the first device identification information is the target information device.

[0054] In step S402 to step S404, after the target information is sent to the second information device, the second information device needs to send a receipt information of the target information. When the gateway instance in the gateway cluster receives the receipt information from the second information device forwarded by the load balancing device, the gateway instance obtains the information identifier in the receipt information, that is, the Message ID. It should be noted that the information identifier carried in the target information and the information identifier carried in the receipt information of the target information are the same information identifier, both represented by Message ID. The source identifier of the target information associated with the Message ID is searched in the target database. The source identifier is the first device identification information of the first information device, that is, the device identification information corresponding to the device sending the target information. The first information device is determined as the target information device, and the receipt information of the target information is returned to the first information device, completing the information transmission once.

[0055] In step S206 of the information transmission method, the device identification information of the target information device receiving the associated information is determined according to the information identifier, such as Figure 5 The flowchart shown specifically includes the following steps:

[0056] Step S502, when the associated information is the withdrawal instruction information of the target information, obtaining the information identifier of the target information carried in the withdrawal instruction information;

[0057] Step S504: According to the information identifier, query the target database for the second device identification information associated with the information identifier, and determine that the second information device corresponding to the second device identification information is the target information device.

[0058] In step S502 to step S504, after the target information is sent to the second information device and before the second information device sends the receipt information of the target information, the first information device that sent the target information sends the withdrawal instruction information of the target information. When the gateway instance in the gateway cluster receives the withdrawal instruction information from the first information device forwarded by the load balancing device, the gateway instance obtains the information identifier in the withdrawal instruction information, that is, the Message ID. It should be noted that the information identifier carried in the target information is the same as the information identifier carried in the withdrawal instruction information of the target information, and both are represented by Message ID. The target database is searched for the destination identifier of the target information associated with the Message ID. The destination identifier is the second device identification information of the second information device, that is, the device identification information corresponding to the device that needs to receive the withdrawal instruction information of the target information. The second information device is determined as the target information device, thereby sending the withdrawal instruction information of the target information to the second information device.

[0059] In step S202 of the information transmission method, before receiving the target information, Figure 6 As shown in the flowchart, the information transmission method further includes the following steps:

[0060] Step S602, determining the load status of each gateway in the gateway cluster;

[0061] Step S604: determining a first target gateway instance for receiving target information from the gateway cluster according to the load status.

[0062] In steps S602 to S604, before receiving the target information, the load balancing device in the gateway cluster needs to first determine the load status of each gateway instance in the gateway cluster. When all gateway instances are not in an idle state, it is necessary to wait until there is a gateway instance in an idle state, and then randomly select a gateway instance from the idle gateway instances as the first target gateway instance to receive the target information; in another optional embodiment, if the load balancing device in the gateway cluster determines that there is an idle gateway instance in the cluster, there is no need to wait, and directly randomly select a gateway instance from the idle gateway instances as the first target gateway instance to receive the target information.

[0063] In step S206 of the information transmission method, before receiving the associated information of the target information, such as Figure 7 As shown in the flowchart, the information transmission method further includes the following steps:

[0064] Step S702, determining the load status of each gateway in the gateway cluster;

[0065] Step S704: determining, according to the load status, from the gateway cluster, a second target gateway instance for receiving associated information of the target information.

[0066] In steps S702 to S704, after the target information is sent to the target information device and before the associated information of the target information is received, the associated information includes the receipt information of the target information or the withdrawal instruction information of the target information. It is necessary to judge the load status of each gateway instance in the gateway cluster again. When the load balancing device in the gateway cluster determines that all gateway instances in the gateway cluster are not in an idle state, it is necessary to wait until there is a gateway instance in an idle state, and then randomly select a gateway instance from the idle gateway instances as the second target gateway instance for receiving the associated information of the target information; in another optional embodiment, if the load balancing device in the gateway cluster determines that there is an idle gateway instance in the cluster, there is no need to wait, and directly randomly select a gateway instance from the idle gateway instances as the second target gateway instance for receiving the associated information of the target information.

[0067] In the information transmission method, the target information is uplink information or downlink information, wherein: when the target information is downlink information, the first information device is a northbound interface device, and the second information device is a southbound interface device; when the target information is uplink information, the first information device is a southbound interface device, and the second information device is a northbound interface device.

[0068] Through the above steps, the first device identifier, the second device identifier and the information identifier are associated, and when the associated information of the target information is received, the device identifier information of the target information device receiving the associated information is determined based on the information identifier, thereby achieving the purpose of sending the associated information to the target information device, thereby realizing the technical effect of information transmission, and further solving the technical problem of the load balancing device not identifying the business content, resulting in routing selection of message receipts or message withdrawals.

[0069] The information transmission method provided in the embodiment of the present application can be closely integrated with the 5G message transmission scenario, and is suitable for the cluster deployment of 5G message gateways. At the same time, the load balancing distribution device and shared memory can be implemented using common open source technologies in the industry, reducing development costs.

[0070] Figure 8 is a structural diagram of an information transmission device according to an embodiment of the present application, such as Figure 8 As shown, the device is suitable for use in a gateway, and includes:

[0071] A receiving module 802, used for receiving target information;

[0072] The processing module 804 is used to determine the information identifier of the target information, and associate the first device identification information, the second device identification information and the information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information;

[0073] A retrieval module 806 is used to determine the device identification information of the target information device receiving the associated information according to the information identifier when the associated information of the target information is received, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device;

[0074] The sending module 808 is used to send the associated information to the target information device according to the device identification information of the target information device.

[0075] The processing module 804 in the information transmission device associates the first device identification information, the second device identification information and the information identifier, and specifically needs to implement the following process: determine the first device identification information of the first information device; determine the second information device according to a preset rule, and obtain the second device identification information of the second information device; store the information identifier in the target database, and store the association relationship between the first device identification information, the second device identification information and the information identifier.

[0076] The retrieval module 806 in the information transmission device determines the device identification information of the target information device that receives the associated information based on the information identifier. Specifically, the following process needs to be implemented: when the associated information is the receipt information of the target information, the information identifier of the target information carried in the receipt information is obtained; based on the information identifier, the first device identification information associated with the information identifier is queried in the target database, and the first information device corresponding to the first device identification information is determined to be the target information device.

[0077] The retrieval module 806 in the information transmission device determines the device identification information of the target information device that receives the associated information based on the information identifier, and specifically needs to implement the following process: when the associated information is the withdrawal instruction information of the target information, obtain the information identifier of the target information carried in the withdrawal instruction information; based on the information identifier, query the second device identification information associated with the information identifier in the target database, and determine that the second information device corresponding to the second device identification information is the target information device.

[0078] The receiving module 802 in the information transmission device needs to implement the following process before receiving the target information: determining the load status of each gateway in the gateway cluster; and determining the first target gateway instance to receive the target information from the gateway cluster based on the load status.

[0079] The retrieval module 806 in the information transmission device needs to implement the following process before receiving the associated information of the target information: determining the load status of each gateway in the gateway cluster; and determining the second target gateway instance that receives the associated information of the target information from the gateway cluster based on the load status.

[0080] In the above-mentioned information transmission device, the target information is uplink information or downlink information, wherein: when the target information is downlink information, the first information device is a northbound interface device, and the second information device is a southbound interface device; when the target information is uplink information, the first information device is a southbound interface device, and the second information device is a northbound interface device.

[0081] It should be noted that Figure 8 The information transmission device shown is used to perform Figures 2 to 7 The information transmission method shown, therefore the relevant explanations in the above information transmission method are also applicable to the information transmission device, and will not be repeated here.

[0082] An embodiment of the present application also provides a non-volatile storage medium, which includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the following information transmission method: receiving target information; determining an information identifier of the target information, and associating first device identification information, second device identification information and an information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; when receiving associated information of the target information, determining the device identification information of the target information device that receives the associated information based on the information identifier, wherein the associated information carries an information identifier, and the target information device is the first information device or the second information device; and sending the associated information to the target information device based on the device identification information of the target information device.

[0083] In the above-mentioned information transmission method, the first device identification information, the second device identification information and the information identifier are associated, which specifically includes the following steps: determining the first device identification information of the first information device; determining the second information device according to a preset rule, and obtaining the second device identification information of the second information device; storing the information identifier in the target database, and storing the association relationship between the first device identification information, the second device identification information and the information identifier.

[0084] In the above-mentioned information transmission method, the device identification information of the target information device that receives the associated information is determined based on the information identifier, which specifically includes the following steps: when the associated information is the receipt information of the target information, the information identifier of the target information carried in the receipt information is obtained; based on the information identifier, the first device identification information associated with the information identifier is queried in the target database, and the first information device corresponding to the first device identification information is determined to be the target information device.

[0085] In the above-mentioned information transmission method, the device identification information of the target information device that receives the associated information is determined based on the information identifier, which specifically includes the following steps: when the associated information is the withdrawal instruction information of the target information, the information identifier of the target information carried in the withdrawal instruction information is obtained; based on the information identifier, the second device identification information associated with the information identifier is queried in the target database, and the second information device corresponding to the second device identification information is determined to be the target information device.

[0086] In the above information transmission method, before receiving the target information, the following steps are also included: determining the load status of each gateway in the gateway cluster; and determining the first target gateway instance to receive the target information from the gateway cluster based on the load status.

[0087] In the above information transmission method, before receiving the associated information of the target information, the following steps are also included: determining the load status of each gateway in the gateway cluster; and determining a second target gateway instance from the gateway cluster to receive the associated information of the target information based on the load status.

[0088] In the above-mentioned information transmission method, the target information is uplink information or downlink information, wherein: when the target information is downlink information, the first information device is a northbound interface device, and the second information device is a southbound interface device; when the target information is uplink information, the first information device is a southbound interface device, and the second information device is a northbound interface device.

[0089] Fig. 9 is a schematic diagram of forwarding downlink information and corresponding receipt information according to an embodiment of the present application, such as Fig. 9 As shown, when the target information is downlink information, the first information device is a northbound interface device, the second information device is a southbound interface device, and there are multiple northbound interface devices and southbound interface devices. Fig. 9In the embodiment, step (1) indicates that the northbound interface device 1 sends a downlink message to the northbound load balancing distribution device, and the downlink message carries at least a message identifier (MessageID). When the northbound load balancing device determines that there is an idle gateway instance in the gateway cluster device, it randomly selects a gateway instance from the idle gateway instances, such as selecting gateway instance 1. Step (2) indicates that the northbound load balancing distribution device transmits the downlink message to gateway instance 1, and gateway instance 1 selects the southbound interface device according to the original routing rules. Step (3) indicates that the association relationship between the message identifier (Message ID) carried in the downlink message, the device identification information (device identification, device address, etc.) of the northbound interface device, and the device identification information (device identification, device address, etc.) of the southbound interface device is stored in a shared memory database (target database), and the device identification information of the receiving downlink message is determined according to the routing rules, and the corresponding information device is found through the device identification information. Fig. 9 In the embodiment, the information device receiving the downlink information is the southbound interface device 1, step (4) indicates that the downlink information is transmitted to the southbound interface device 1, step (5) indicates that the southbound interface device 1 sends the receipt information of the downlink information to the southbound load balancing distribution device, the receipt information of the downlink information carries the same information identifier (Message ID) as that carried in the downlink information, the southbound load balancing distribution device randomly selects a gateway instance from the idle gateway instances when determining that there is an idle gateway instance in the gateway cluster device, such as selecting gateway instance n, step (6) indicates that the southbound load balancing distribution device transmits the receipt information of the downlink information to the gateway instance n, step (7) indicates that the gateway instance n searches the shared memory database for the source identifier of the downlink information associated with the information identifier carried in the receipt information, the source identifier being in Fig. 9 The middle part refers to the device identification information corresponding to the information device sending the downlink message, that is, the device identification information corresponding to the northbound interface device 1, and the northbound interface device 1 is determined as the target information device. Therefore, the gateway instance n returns the receipt information of the downlink information to the northbound interface device 1 according to step (8), completing the forwarding of the downlink information and the corresponding receipt information.

[0090] In the embodiment of the present application, the information transmission method is oriented to the information content being distributed on each gateway instance in the gateway cluster device for processing, so no burden is added to the load balancing distribution device; at the same time, the device identification information of the southbound interface device and the northbound interface device is stored in the shared memory database, which can speed up the interaction speed between the gateway instance and the shared memory.

[0091] Fig.10 is a schematic diagram of forwarding downlink information and corresponding withdrawal instruction information according to an embodiment of the present application, such as Fig.10As shown, step (1) indicates that the northbound interface device 1 sends downlink information to the northbound load balancing distribution device, and the downlink information carries at least an information identifier (Message ID). When the northbound load balancing device determines that there is an idle gateway instance in the gateway cluster device, it randomly selects a gateway instance from the idle gateway instances, such as selecting gateway instance 1. Step (2) indicates that the northbound load balancing distribution device transmits the downlink information to gateway instance 1, and gateway instance 1 selects the southbound interface device according to the original routing rules. Step (3) indicates that the association relationship between the information identifier (MessageID) carried in the downlink information, the device identification information (device identification, device address, etc.) of the northbound interface device, and the device identification information (device identification, device address, etc.) of the southbound interface device is stored in the shared memory database (target database), and the device identification information of the receiving downlink information is determined according to the routing rules, and the corresponding information device is found through the device identification information. Fig.10 In the embodiment, the information device receiving the downlink information is the southbound interface device 1, and step (4) indicates that the downlink information is transmitted to the southbound interface device 1. Before the southbound interface device 1 returns the receipt information of the downlink information, the northbound interface device 1 sends the withdrawal instruction information of the downlink information to the northbound load balancing distribution device through step (5). The withdrawal instruction information of the downlink information carries the same information identifier (Message ID) as that carried in the downlink information. When the northbound load balancing distribution device determines that there is an idle gateway instance in the gateway cluster device, it randomly selects a gateway instance from the idle gateway instances, such as selecting gateway instance n. Step (6) indicates that the northbound load balancing distribution device transmits the withdrawal instruction information of the downlink information to the gateway instance n. Step (7) indicates that the gateway instance n searches the shared memory database for the destination identifier of the downlink information associated with the information identifier carried in the withdrawal instruction information. The destination identifier is in Fig.10 The middle part refers to the device identification information corresponding to the information device receiving the downlink information, that is, the device identification information corresponding to the southbound interface device 1, and the southbound interface device 1 is determined as the target information device, so that the gateway instance n sends the withdrawal instruction information of the downlink information to the southbound interface device 1 according to step (8), completing the process of forwarding the downlink information and the corresponding withdrawal instruction information.

[0092] Fig.11 is a schematic diagram of forwarding uplink information and corresponding receipt information according to an embodiment of the present application, such as Fig.11 As shown, when the target information is uplink information, the first information device is a southbound interface device, the second information device is a northbound interface device, and there are multiple northbound interface devices and southbound interface devices. Fig.11In the embodiment, step (1) indicates that the southbound interface device 1 sends an uplink message to the southbound load balancing distribution device, and the uplink message carries at least an information identifier (MessageID). When the southbound load balancing device determines that there is an idle gateway instance in the gateway cluster device, it randomly selects a gateway instance from the idle gateway instances, such as selecting gateway instance 2. Step (2) indicates that the southbound load balancing distribution device transmits the uplink message to gateway instance 2, and gateway instance 2 selects the northbound interface device according to the original routing rules. Step (3) indicates that the association relationship between the information identifier (Message ID) carried in the uplink message, the device identification information (device identification, device address, etc.) of the southbound interface device, and the device identification information (device identification, device address, etc.) of the northbound interface device is stored in the shared memory database (target database), and the device identification information of the receiving uplink message is determined according to the routing rules, and the corresponding information device is found through the device identification information. Fig.11 In the embodiment, the information device receiving the uplink information is the northbound interface device 1, step (4) indicates that the uplink information is transmitted to the northbound interface device 1, step (5) indicates that the northbound interface device 1 sends the receipt information of the uplink information to the northbound load balancing distribution device, the receipt information of the uplink information carries the same information identifier (Message ID) as that carried in the uplink information, the northbound load balancing distribution device randomly selects a gateway instance from the idle gateway instances when determining that there is an idle gateway instance in the gateway cluster device, such as selecting gateway instance n, step (6) indicates that the northbound load balancing distribution device transmits the receipt information of the uplink information to the gateway instance n, step (7) indicates that the gateway instance n searches the shared memory database for the source identifier of the uplink information associated with the information identifier carried in the receipt information, the source identifier being in Fig.11 The middle part refers to the device identification information corresponding to the information device sending the uplink message, that is, the device identification information corresponding to the southbound interface device 1, and the southbound interface device 1 is determined as the target information device. Therefore, the gateway instance n returns the receipt information of the uplink information to the southbound interface device 1 according to step (8), completing the forwarding of the uplink information and the corresponding receipt information.

[0093] According to an embodiment of the present invention, an embodiment of an information transmission system is also provided. The information transmission system includes multiple northbound interface devices, multiple southbound interface devices, and a gateway cluster device, wherein the gateway cluster device includes a northbound load balancing device, a southbound load balancing device, multiple gateway instances, and a storage module, wherein the northbound load balancing device is used to determine the first target gateway instance for processing the downlink information sent by the northbound interface device according to the load status of each gateway instance in the gateway cluster; the southbound load balancing device is used to determine the second target gateway instance for processing the uplink information sent by the southbound interface device according to the load status of each gateway instance in the gateway cluster; any one of the multiple gateway instances is used to execute the reception of the target information; determine the information identifier of the target information, and associate the first device identification information, the second device identification information, and the target information with the information identifier of the target information; identification information and an information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; in the case of receiving the associated information of the target information, determining the device identification information of the target information device that receives the associated information based on the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; based on the device identification information of the target information device, sending the associated information to the target information device; a storage module, used to store a target database, the target database is used to store the device identification information of multiple northbound interface devices and multiple southbound interface devices, and the information identifier of the target information.

[0094] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0095] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0096] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0097] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0100] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for transmitting information, applicable to any gateway instance in a gateway cluster, It is characterized in that include: Receive target information; Determine the information identifier of the target information, and associate first device identification information, second device identification information and the information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; In the case of receiving the associated information of the target information, determining the device identification information of the target information device receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; the information type of the associated information includes: receipt information of the target information, or withdrawal instruction information of the target information; The associated information is sent to the target information device according to the device identification information of the target information device.

2. The information transmission method according to claim 1, It is characterized in that Associating the first device identification information, the second device identification information and the information identifier includes: Determine first device identification information of the first information device; According to a preset rule, determine the second information device, and obtain second device identification information of the second information device; The information identifier is stored in a target database, and an association relationship between the first device identification information, the second device identification information and the information identifier is stored.

3. The information transmission method according to claim 2, It is characterized in that Determining the device identification information of the target information device receiving the associated information according to the information identifier includes: In a case where the associated information is receipt information of the target information, obtaining the information identifier of the target information carried in the receipt information; According to the information identifier, the first device identification information associated with the information identifier is searched in the target database, and the first information device corresponding to the first device identification information is determined to be the target information device.

4. The information transmission method according to claim 2, It is characterized in that Determining the device identification information of the target information device receiving the associated information according to the information identifier includes: In a case where the associated information is withdrawal instruction information of the target information, acquiring the information identifier of the target information carried in the withdrawal instruction information; According to the information identifier, the second device identification information associated with the information identifier is searched in the target database, and the second information device corresponding to the second device identification information is determined to be the target information device.

5. The information transmission method according to claim 1, It is characterized in that Before receiving the target information, the information transmission method further includes: Determine the load status of each gateway in the gateway cluster; According to the load status, a first target gateway instance for receiving the target information is determined from the gateway cluster.

6. The information transmission method according to claim 1, It is characterized in that Before receiving the associated information of the target information, the information transmission method further includes: Determine the load status of each gateway in the gateway cluster; According to the load status, a second target gateway instance that receives the associated information of the target information is determined from the gateway cluster.

7. The information transmission method according to any one of claims 1 to 5, It is characterized in that The target information is uplink information or downlink information, wherein: In the case where the target information is the downlink information, the first information device is a northbound interface device, and the second information device is a southbound interface device; In a case where the target information is the uplink information, the first information device is the southbound interface device, and the second information device is the northbound interface device.

8. An information transmission device, suitable for use in a gateway, It is characterized in that include: A receiving module, used for receiving target information; a processing module, configured to determine an information identifier of the target information, and associate first device identification information, second device identification information, and the information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; A retrieval module, configured to determine, upon receiving the associated information of the target information, device identification information of the target information device receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; the information type of the associated information includes: receipt information of the target information, or withdrawal instruction information of the target information; A sending module is used to send the associated information to the target information device according to the device identification information of the target information device.

9. An information transmission system, It is characterized in that The information transmission system includes a plurality of northbound interface devices, a plurality of southbound interface devices, and a gateway cluster device, wherein: The gateway cluster device includes a northbound load balancing device, a southbound load balancing device, a plurality of gateway instances and a storage module, wherein the northbound load balancing device is used to determine a first target gateway instance for processing downlink information sent by the northbound interface device according to the load status of each gateway instance in the gateway cluster; The southbound load balancing device is used to determine the second target gateway instance for processing the uplink information sent by the southbound interface device according to the load status of each gateway instance in the gateway cluster; Any one of the multiple gateway instances is used to execute receiving target information; determining an information identifier of the target information, and associating first device identification information, second device identification information and the information identifier, wherein the first device identification information is the device identification information of the first information device that sends the target information, and the second device identification information is the device identification information of the second information device that receives the target information; in the case of receiving the associated information of the target information, determining the device identification information of the target information device that receives the associated information based on the information identifier, wherein the associated information carries the information identifier, and the target information device is the first information device or the second information device; the information type of the associated information includes: receipt information of the target information, or withdrawal instruction information of the target information; based on the device identification information of the target information device, sending the associated information to the target information device; The storage module is used to store a target database, and the target database is used to store device identification information of the multiple northbound interface devices and the multiple southbound interface devices, and an information identifier of the target information.

10. A non-volatile storage medium, It is characterized in that The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the information transmission method according to any one of claims 1 to 7.

11. An electronic device, It is characterized in that The electronic device comprises a processor, and the processor is used to run a program, wherein the program executes the information transmission method according to any one of claims 1 to 7 when running.