CN114301989A - Information transmission method, device and system - Google Patents

Information transmission method, device and system Download PDF

Info

Publication number
CN114301989A
CN114301989A CN202111631118.0A CN202111631118A CN114301989A CN 114301989 A CN114301989 A CN 114301989A CN 202111631118 A CN202111631118 A CN 202111631118A CN 114301989 A CN114301989 A CN 114301989A
Authority
CN
China
Prior art keywords
information
target
equipment
identifier
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111631118.0A
Other languages
Chinese (zh)
Inventor
刘维
赵斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111631118.0A priority Critical patent/CN114301989A/en
Publication of CN114301989A publication Critical patent/CN114301989A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses an information transmission method, device and system. Wherein, the method comprises the following steps: receiving target information; determining an information identifier of target information, and associating first equipment identification information, second equipment identification information and the information identifier, wherein the first equipment identification information is the equipment identification information of first information equipment for sending the target information, and the second equipment identification information is the equipment identification information of second information equipment for receiving the target information; under the condition of receiving the associated information of the target information, determining equipment identification information of target information equipment for receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is first information equipment or second information equipment; and sending the associated information to the target information equipment according to the equipment identification information of the target information equipment. The method and the device solve the technical problem that the load balancing device does not recognize the service content, so that the routing selection of message receipt or message withdrawal exists.

Description

Information transmission method, device and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information transfer method, apparatus, and system.
Background
The basic functionality of the gateway device is typically to translate between different interface protocols, for example, in the 5G messaging system platform, the gateway device associated with MaaP messages performs protocol interconversion between HTTP, RESTful, API interface and SIP interface, or interconversion between parameters of HTTP, RESTful, API interface and internal private interface (e.g., Kafka). In the cluster deployment application, an external interface of the gateway device is usually configured with a load balancing device in front, and is used for distributing an external service message request to an instance of the internal gateway device. Since the pre-load balancing device does not generally identify the specific content of the service, there is usually a routing problem of message receipt or message withdrawal.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides an information transmission method, an information transmission device and an information transmission system, which are used for at least solving the technical problem that a load balancing device does not identify service content, so that routing of message receipt or message withdrawal exists.
According to an aspect of the embodiments of the present application, there is provided an information delivery method, which is applied to any one gateway instance in a gateway cluster, and includes: receiving target information; determining an information identifier of target information, and associating first equipment identification information, second equipment identification information and the information identifier, wherein the first equipment identification information is the equipment identification information of first information equipment for sending the target information, and the second equipment identification information is the equipment identification information of second information equipment for receiving the target information; under the condition of receiving the associated information of the target information, determining equipment identification information of target information equipment for receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is first information equipment or second information equipment; and sending the associated information to the target information equipment according to the equipment identification information of the target information equipment.
Optionally, associating the first device identification information, the second device identification information and the information identifier includes: determining first device identification information of a first information device; determining second information equipment according to a preset rule, and acquiring second equipment identification information of the second information equipment; storing the information identifier in the target database, and storing the association relationship among the first device identification information, the second device identification information and the information identifier.
Optionally, determining the device identification information of the target information device receiving the association information according to the information identifier includes: under the condition that the associated information is receipt information of the target information, acquiring an information identifier of the target information carried in the receipt information; according to the information identifier, first equipment identification information associated with the information identifier is inquired in the target database, and first information equipment corresponding to the first equipment identification information is determined to be target information equipment.
Optionally, determining the device identification information of the target information device receiving the association information according to the information identifier includes: under the condition that the associated information is withdrawal instruction information of the target information, acquiring an information identifier of the target information carried in the withdrawal instruction information; and inquiring second equipment identification information associated with the information identifier in the target database according to the information identifier, and determining second information equipment corresponding to the second equipment identification information as target information equipment.
Optionally, before receiving the target information, the information delivery method further includes: determining the load state of each gateway in the gateway cluster; a first target gateway instance receiving target information is determined from the gateway cluster according to the load state.
Optionally, before receiving the association information of the target information, the information delivery method further includes: determining the load state 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 state.
Optionally, the target information is uplink information or downlink information, where: under the condition that the target information is downlink information, the first information equipment is northbound interface equipment, and the second information equipment is southbound interface equipment; and under the condition that the target information is uplink information, the first information equipment is south interface equipment, and the second information equipment is north interface equipment.
According to another aspect of the embodiments of the present application, there is also provided an information delivery apparatus, adapted to a gateway, including: the receiving module is used for receiving the target information; the processing module is used for determining an information identifier of the target information and associating first equipment identification information, second equipment identification information and the information identifier, wherein the first equipment identification information is the equipment identification information of first information equipment for sending the target information, and the second equipment identification information is the equipment identification information of second information equipment for receiving the target information; the retrieval module is used for determining equipment identification information of target information equipment for receiving the associated information according to the information identifier under the condition of receiving the associated information of the target information, wherein the associated information carries the information identifier, and the target information equipment is first information equipment or second information equipment; and the sending module is used for sending the associated information to the target information equipment according to the equipment identification information of the target information equipment.
According to another aspect of the embodiments of the present application, there is also provided an information delivery system, where the information delivery system includes a plurality of northbound interface devices, a plurality of southbound interface devices, and a gateway cluster device, where the gateway cluster device includes a northbound load balancing apparatus, a southbound load balancing apparatus, a plurality of gateway instances, and a storage module, where the northbound load balancing apparatus is configured to determine, according to a load state of each gateway instance in a gateway cluster, a first target gateway instance that processes downlink information sent by the northbound interface device; the southbound load balancing device is used for determining a second target gateway instance for processing uplink information sent by the southbound interface device according to the load state of each gateway instance in the gateway cluster; any one of the plurality of gateway instances, configured to perform receiving the target information; determining an information identifier of target information, and associating first equipment identification information, second equipment identification information and the information identifier, wherein the first equipment identification information is the equipment identification information of first information equipment for sending the target information, and the second equipment identification information is the equipment identification information of second information equipment for receiving the target information; under the condition of receiving the associated information of the target information, determining equipment identification information of target information equipment for receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is first information equipment or second information equipment; sending the associated information to the target information equipment according to the equipment identification information of the target information equipment; and the storage module is used for storing a target database, and the target database is used for storing the equipment identification information of the plurality of northbound interface equipment and the plurality of southbound interface equipment and the information identifier of the target information.
According to still another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium including a stored program, wherein when the program runs, a device in which the non-volatile storage medium is controlled to execute the information transfer method.
According to still another aspect of the embodiments of the present application, there is also provided an electronic device, which includes a processor, and the processor is configured to execute a program, where the program executes to perform the information delivery method described above.
In the embodiment of the application, the first device identifier, the second device identifier and the information identifier are associated, and under the condition that the associated information of the target information is received, the device identifier information of the target information device receiving the associated information is determined according to the information identifier, so that the purpose of sending the associated information to the target information device is achieved, the technical effect of information transmission is achieved, and the technical problem that the load balancing device does not identify service content, so that the routing selection of message receipt or message withdrawal exists is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal (or an electronic device) for implementing an information delivery method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of information delivery according to an embodiment of the present application;
FIG. 3 is a flow chart of associating device identification information with an information identifier according to an embodiment of the application;
FIG. 4 is a flow chart of determining device identification information of a target information device receiving association information from an information identifier according to an embodiment of the present application;
FIG. 5 is a flow diagram of another method for determining device identification information of a target information device receiving association information based on an information identifier according to an embodiment of the present application;
FIG. 6 is a flow diagram of determining a first target gateway instance from a gateway cluster according to an embodiment of the present application;
FIG. 7 is a flow diagram of determining a second target gateway instance from a gateway cluster according to an embodiment of the present application;
fig. 8 is a structural diagram of an information delivery apparatus according to an embodiment of the present application;
FIG. 9 is a schematic diagram of the forwarding of downstream information and corresponding response piece information according to an embodiment of the present application;
fig. 10 is a schematic diagram of forwarding of downstream information and corresponding revocation instruction information according to an embodiment of the present application;
fig. 11 is a schematic diagram of forwarding of uplink information and corresponding response piece information according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application 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 application described herein are capable of operation in sequences other 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, method, system, article, or apparatus 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, method, article, or apparatus.
The information transmission method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or electronic device) for implementing an information delivery method. As shown in fig. 1, the computer terminal 10 (or electronic device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are 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. Besides, the method can also comprise the following steps: 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 source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or electronic device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the information delivery method in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the information delivery method of the application program. The memory 104 may include high speed random access memory, and may also include 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 memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 106 is used to receive or transmit data via a network. Specific examples of the network described above 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 (NIC) that can be connected to other Network devices through a base station 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 in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or electronic device).
It should be noted here that in some alternative embodiments, the computer device (or electronic device) shown in fig. 1 may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or electronic device) described above.
Under the operating environment, the application provides an information transfer method as shown in fig. 2. It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Fig. 2 is a flowchart of an information delivery method according to an embodiment of the present application, the method is applied to any gateway instance in a gateway cluster, as shown in fig. 2, and the method includes the following steps:
step S202, receiving target information;
step S204, determining an information identifier of the target information, and associating first equipment identification information, second equipment identification information and the information identifier, wherein the first equipment identification information is the equipment identification information of the first information equipment for sending the target information, and the second equipment identification information is the equipment identification information of the second information equipment for receiving the target information;
step S206, under the condition of receiving the associated information of the target information, determining the equipment identification information of the target information equipment receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is the first information equipment or the second information equipment;
step S208, sending the associated information to the target information device according to the device identification information of the target information device.
The information transmission method described in step S202 to step S208 may be applied to a 5G message system, and when a message gateway in the 5G message system is deployed on a gateway cluster, forwarding and transmission of a message are implemented by the gateway cluster.
In step S204 in the information delivery method, associating the first device identification information, the second device identification information, and the information identifier, as shown in the flowchart shown in fig. 3, specifically includes the following steps:
step S302, determining first equipment identification information of first information equipment;
step S304, determining a second information device according to a preset rule, and acquiring second device identification information of the second information device;
step S306, storing the information identifier in the target database, and storing the association relationship among the first device identification information, the second device identification information and the information identifier.
In steps S302 to S306, first device identification information for sending target information is determined, where the target information carries an information identifier, where the information identifier may be represented by a Message ID, the first device identification information at least includes a device identifier, a device address, and the like of a first information device, and the second device identification information at least includes a device identifier, a device address, and the like of a second information device, and a second information device for receiving the target information is determined according to a preset rule, where the preset rule may be an original service routing rule of a gateway instance, and since there are multiple gateway instances in a gateway cluster, a set of device configuration information of a northbound interface is shared among the multiple gateway instances, and the device configuration information includes information of a device identifier, a device address, and the like of a northbound interface, and the multiple gateway instances share a set of device configuration information of a southbound interface, including a device identifier, a device address, and the like of a southbound interface device, Device address, etc. A plurality of gateway instances share one key-value-based memory database, which is a target database in the embodiment of the application and can rapidly store and acquire associated information according to an input key value.
If the gateway instance receives the target information forwarded by the northbound interface device, the southbound interface device is selected through the routing rule, and the target information is sent to the southbound interface device, in this case, the first information device is the northbound interface device, the first device identification information at least includes information such as device identification, device address and the like of the northbound interface device, the second information device is the southbound interface device, and the second device identification information at least includes information such as device identification, device address and the like of the southbound interface device; in another optional embodiment, for example, when the gateway receives target information forwarded from the southbound interface, the northbound interface device is selected by the routing rule, and the target information is sent to the northbound interface device, in this case, the first information device is the southbound interface device, the first device identification information at least includes information such as device identification, device address, and the like of the southbound interface device, the second information device is the northbound interface device, and the second device identification information at least includes information such as device identification, device address, and the like of the northbound interface device.
And determining a second information device associated with the first information device through a preset rule, so that after the first device identification information, the second device identification information and an information identifier carried in the target information are associated, the association relation is stored in a target database, and the device identification information for receiving the target information is conveniently determined when the target information is forwarded.
In step S206 of the information delivery method, the device identification information of the target information device that receives the association information is determined according to the information identifier, and as shown in the flowchart of fig. 4, the method specifically includes the following steps:
step S402, under the condition that the associated information is receipt information of the target information, acquiring an information identifier of the target information carried in the receipt information;
step S404, according to the information identifier, first device identification information associated with the information identifier is inquired in the target database, and the first information device corresponding to the first device identification information is determined to be the target information device.
In steps S402 to S404, after the target information is sent to the second information device, the second information device needs to send the 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 apparatus, the gateway instance obtains an information identifier, i.e., a Message ID, in the receipt information, it is to 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 and are both represented by the Message ID, a 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, i.e., the device identification information corresponding to the device sending the target information, the first information device is determined as the target information device, and thus the receipt information of the target information is returned to the first information device, completing the information transmission once.
In step S206 of the information delivery method, the device identification information of the target information device that receives the association information is determined according to the information identifier, and as shown in the flowchart of fig. 5, the method specifically includes the following steps:
step S502, under the condition that the associated information is withdrawal instruction information of the target information, acquiring an information identifier of the target information carried in the withdrawal instruction information;
step S504, according to the information identifier, second device identification information associated with the information identifier is inquired in the target database, and a second information device corresponding to the second device identification information is determined to be a target information device.
In steps S502 to S504, after the target information is sent to the second information device, before the second information device sends the receipt information of the target information, the first information device sending 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 apparatus, the gateway instance obtains an information identifier, namely a Message ID, in the withdrawal instruction information, it is to be noted that the information identifiers carried in the target information and the withdrawal instruction information of the target information are the same information identifier, which are all represented by the Message ID, the destination identifier of the target information associated with the Message ID is searched in the target database, which is the second device identification information of the second information device, namely 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, and the withdrawal instruction information of the target information is transmitted to the second information device.
In step S202 in the information delivery method, before receiving the target information, as shown in the flowchart of fig. 6, the information delivery method further includes the steps of:
step S602, determining the load state of each gateway in the gateway cluster;
step S604, determining a first target gateway instance receiving the target information from the gateway cluster according to the load status.
In steps S602 to S604, before receiving the target information, the load balancing apparatus in the gateway cluster needs to determine the load state of each gateway instance in the gateway cluster, and when all gateway instances are not in an idle state, it needs to wait until there is a gateway instance in the idle state, and then randomly select one gateway instance from the idle gateway instances as a first target gateway instance for receiving the target information; in another optional embodiment, if the load balancing apparatus in the gateway cluster determines that there is an idle gateway instance in the cluster, it does not need to wait, and directly selects a gateway instance randomly from the idle gateway instances as the first target gateway instance for receiving the target information.
In step S206 in the information delivery method, before receiving the associated information of the target information, as shown in the flowchart of fig. 7, the information delivery method further includes the following steps:
step S702, determining the load state of each gateway in the gateway cluster;
step S704, determining a second target gateway instance receiving the association information of the target information from the gateway cluster according to the load status.
In steps S702 to S704, after sending the target information to the target information device, before receiving the associated information of the target information, where the associated information includes receipt information of the target information or withdrawal instruction information of the target information, it is necessary to judge a load state of each gateway instance in the gateway cluster again, and when a 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 the idle state, and then randomly select one gateway instance from the idle gateway instances as a second target gateway instance for receiving the associated information of the target information; in another optional embodiment, if the load balancing apparatus in the gateway cluster determines that there is an idle gateway instance in the cluster, it does not need to wait, and directly selects one gateway instance randomly from the idle gateway instances as a second target gateway instance for receiving the association information of the target information.
In the information transmission method, the target information is uplink information or downlink information, wherein: under the condition that the target information is downlink information, the first information equipment is northbound interface equipment, and the second information equipment is southbound interface equipment; and under the condition that the target information is uplink information, the first information equipment is south interface equipment, and the second information equipment is north interface equipment.
Through the steps, the first equipment identifier, the second equipment identifier and the information identifier are associated, and under the condition that the associated information of the target information is received, the equipment identifier information of the target information equipment receiving the associated information is determined according to the information identifier, so that the purpose of sending the associated information to the target information equipment is achieved, the technical effect of information transmission is achieved, and the technical problem of routing selection caused by message receipt or message withdrawal due to the fact that the load balancing device does not recognize service content is solved.
The information transmission method provided by the embodiment of the application can be closely combined with a transmission scene of the 5G message, is suitable for cluster deployment of the 5G message gateway, and meanwhile, the load balancing distribution device and the shared memory can be realized by adopting an internal universal open source technology, so that the development cost is reduced.
Fig. 8 is a block diagram of an information delivery apparatus according to an embodiment of the present application, which is adapted to a gateway, as shown in fig. 8, and includes:
a receiving module 802, configured to receive target information;
a processing module 804, configured to determine an information identifier of target information, and associate first device identification information, second device identification information, and the information identifier, where the first device identification information is device identification information of a first information device that sends the target information, and the second device identification information is device identification information of a second information device that receives the target information;
a retrieving module 806, configured to determine, according to an information identifier, device identification information of a target information device that receives associated information when the associated information of the target information is received, where the associated information carries the information identifier, and the target information device is a first information device or a second information device;
a sending module 808, configured to send the association information to the target information device according to the device identification information of the target information device.
The processing module 804 in the information delivery apparatus associates the first device identification information, the second device identification information, and the information identifier, and specifically needs to implement the following processes: determining first device identification information of a first information device; determining second information equipment according to a preset rule, and acquiring second equipment identification information of the second information equipment; storing the information identifier in the target database, and storing the association relationship among the first device identification information, the second device identification information and the information identifier.
The retrieving module 806 in the information delivery apparatus determines the device identification information of the target information device that receives the associated information according to the information identifier, and specifically needs to implement the following process: under the condition that the associated information is receipt information of the target information, acquiring an information identifier of the target information carried in the receipt information; according to the information identifier, first equipment identification information associated with the information identifier is inquired in the target database, and first information equipment corresponding to the first equipment identification information is determined to be target information equipment.
The retrieving module 806 in the information delivery apparatus determines the device identification information of the target information device that receives the associated information according to the information identifier, and specifically needs to implement the following process: under the condition that the associated information is withdrawal instruction information of the target information, acquiring an information identifier of the target information carried in the withdrawal instruction information; and inquiring second equipment identification information associated with the information identifier in the target database according to the information identifier, and determining second information equipment corresponding to the second equipment identification information as target information equipment.
The receiving module 802 in the information delivery apparatus needs to implement the following process before receiving the target information: determining the load state of each gateway in the gateway cluster; a first target gateway instance receiving target information is determined from the gateway cluster according to the load state.
The retrieval module 806 in the information delivery apparatus needs to implement the following process before receiving the associated information of the target information: determining the load state 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 state.
In the above information delivery apparatus, the target information is uplink information or downlink information, wherein: under the condition that the target information is downlink information, the first information equipment is northbound interface equipment, and the second information equipment is southbound interface equipment; and under the condition that the target information is uplink information, the first information equipment is south interface equipment, and the second information equipment is north interface equipment.
It should be noted that the information delivery apparatus shown in fig. 8 is used for executing the information delivery methods shown in fig. 2 to fig. 7, and therefore the explanation of the information delivery methods is also applicable to the information delivery apparatus, and is not repeated here.
The embodiment of the application also provides a nonvolatile storage medium, which includes a stored program, wherein when the program runs, the apparatus where the nonvolatile storage medium is located is controlled to execute the following information transfer method: receiving target information; determining an information identifier of target information, and associating first equipment identification information, second equipment identification information and the information identifier, wherein the first equipment identification information is the equipment identification information of first information equipment for sending the target information, and the second equipment identification information is the equipment identification information of second information equipment for receiving the target information; under the condition of receiving the associated information of the target information, determining equipment identification information of target information equipment for receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is first information equipment or second information equipment; and sending the associated information to the target information equipment according to the equipment identification information of the target information equipment.
In the above information transfer method, associating the first device identification information, the second device identification information, and the information identifier specifically includes the following steps: determining first device identification information of a first information device; determining second information equipment according to a preset rule, and acquiring second equipment identification information of the second information equipment; storing the information identifier in the target database, and storing the association relationship among the first device identification information, the second device identification information and the information identifier.
In the above information delivery method, determining device identification information of a target information device that receives the associated information according to the information identifier specifically includes the following steps: under the condition that the associated information is receipt information of the target information, acquiring an information identifier of the target information carried in the receipt information; according to the information identifier, first equipment identification information associated with the information identifier is inquired in the target database, and first information equipment corresponding to the first equipment identification information is determined to be target information equipment.
In the above information delivery method, determining device identification information of a target information device that receives the associated information according to the information identifier specifically includes the following steps: under the condition that the associated information is withdrawal instruction information of the target information, acquiring an information identifier of the target information carried in the withdrawal instruction information; and inquiring second equipment identification information associated with the information identifier in the target database according to the information identifier, and determining second information equipment corresponding to the second equipment identification information as target information equipment.
In the above information delivery method, before receiving the target information, the method further includes the steps of: determining the load state of each gateway in the gateway cluster; a first target gateway instance receiving target information is determined from the gateway cluster according to the load state.
In the above information delivery method, before receiving the associated information of the target information, the method further includes the following steps: determining the load state 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 state.
In the above information transfer method, the target information is uplink information or downlink information, where: under the condition that the target information is downlink information, the first information equipment is northbound interface equipment, and the second information equipment is southbound interface equipment; and under the condition that the target information is uplink information, the first information equipment is south interface equipment, and the second information equipment is north interface equipment.
Fig. 9 is a schematic diagram of forwarding downlink information and corresponding receipt information according to an embodiment of the present application, where as shown in fig. 9, 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, in fig. 9, step (1) indicates that the northbound interface device 1 sends the downlink information, which at least carries an information identifier (Message ID), to a northbound load balancing apparatus, and when determining that there is an idle gateway instance in a gateway cluster device, the northbound load balancing apparatus randomly selects one gateway instance from the idle gateway instances, such as selecting gateway instance 1, step (2) indicates that the northbound load balancing apparatus transmits the downlink information to gateway instance 1, and gateway instance 1 selects the southbound interface device according to an original routing rule, step (3) represents that the association relationship between the information identifier (Message ID) carried in the downlink information, the device identification information (device identifier, device address, etc.) of the northbound interface device, and the device identification information (device identifier, device address, etc.) of the southbound interface device is stored in the shared memory database (target database), and the device identification information of the received downlink information is determined according to the routing rule, and the corresponding information device is found through the device identification information, in fig. 9, the information device of the received downlink information is the southbound interface device 1, step (4) represents that the downlink information is transmitted to the southbound interface device 1, step (5) represents that the southbound interface device 1 transmits the receipt information of the downlink information to the southbound load balancing distribution device, and the receipt information of the downlink information carries the same information identifier (Message ID) carried in the downlink information, the southbound load balancing distribution device randomly selects one gateway example from the idle gateway examples under the condition of determining that the idle gateway examples exist in the gateway cluster equipment, if a gateway instance n is selected, step (6) represents that the southbound load balancing distribution device transmits the receipt information of the downlink information to the gateway instance n, step (7) represents that the gateway instance n searches the source identifier of the downlink information associated with the information identifier carried in the receipt information from the shared memory database, the source identifier refers to the device identification information corresponding to the information device sending the downlink message in figure 9, i.e., the device identification information corresponding to the northbound interface device 1, determines the northbound interface device 1 as the target information device, and the gateway instance n returns the receipt information of the downlink information to the northbound interface device 1 according to the step (8), and completes the forwarding of the downlink information and the corresponding receipt information once.
In the embodiment of the application, the information transmission mode is distributed on each gateway instance in the gateway cluster equipment for processing aiming at the information content, so that the load is not added to the load balancing distribution device; meanwhile, the device identification information of the south interface device and the north interface device is stored in the shared memory database, so that the interaction speed between the gateway instance and the shared memory can be increased.
Fig. 10 is a schematic diagram of forwarding downlink information and corresponding withdrawal instruction information according to an embodiment of the present application, as shown in fig. 10, step (1) indicates that the northbound interface device 1 sends the downlink information to the northbound load balancing distribution apparatus, where the downlink information at least carries an information identifier (Message ID), the northbound load balancing apparatus randomly selects one gateway instance from the idle gateway instances when determining that there is an idle gateway instance in the gateway cluster device, such as selecting the gateway instance 1, step (2) indicates that the northbound load balancing distribution apparatus transmits the downlink information to the gateway instance 1, the gateway instance 1 selects the southbound interface device according to the original routing rule, step (3) indicates that the information identifier (Message ID) carried in the downlink information, the device identification information (device identification, device address, etc.) of the northbound interface device, and the association relation of 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 received downlink information is determined according to the routing rule, the corresponding information device is found through the device identification information, in fig. 10, the information device receiving the downlink information is the southbound interface device 1, step (4) represents 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) carried in the downlink information, and the northbound load balancing distribution device, under the condition that the gateway cluster device has a free gateway instance, randomly selecting a gateway instance from idle gateway instances, for example, selecting the gateway instance n, wherein step (6) shows that the northbound load balancing distribution device transmits withdrawal instruction information of downlink information to the gateway instance n, and step (7) shows that the gateway instance n searches for a destination identifier of the downlink information associated with an information identifier carried in the withdrawal instruction information from a shared memory database, where the destination identifier indicates, in fig. 10, device identifier information corresponding to an information device that receives the downlink information, that is, device identifier information corresponding to the southbound interface device 1, and determines the southbound interface device 1 as a 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), and completes a forwarding process of the downlink information and the corresponding withdrawal instruction information.
Fig. 11 is a schematic diagram of forwarding uplink information and corresponding receipt information according to an embodiment of the present application, as shown in fig. 11, when target information is uplink information, a first information device is a south interface device, a second information device is a north interface device, and there are multiple north interface devices and south interface devices, in fig. 11, step (1) indicates that the south interface device 1 sends uplink information to a south load balancing distribution apparatus, where the uplink information at least carries an information identifier (Message ID), the south load balancing apparatus randomly selects one gateway instance from idle gateway instances, such as selecting gateway instance 2, step (2) indicates that the south load balancing distribution apparatus transmits the uplink information to gateway instance 2, and the gateway instance 2 selects a north interface device according to an original routing rule, step (3) represents that the association relationship between the information identifier (Message ID) carried in the uplink information, the device identification information (device identifier, device address, etc.) of the southbound interface device, and the device identification information (device identifier, device address, etc.) of the northbound interface device is stored in the shared memory database (target database), and the device identification information for receiving the uplink information is determined according to the routing rule, and the corresponding information device is found through the device identification information, in fig. 11, the information device for receiving the uplink information is the northbound interface device 1, step (4) represents that the uplink information is transmitted to the northbound interface device 1, step (5) represents that the northbound interface device 1 sends the receipt information of the uplink information to the northbound load balancing distribution device, and the receipt information of the uplink information carries the same information identifier (Message ID) carried in the uplink information, the northbound load balancing distribution device randomly selects one gateway example from the idle gateway examples under the condition of determining that the idle gateway examples exist in the gateway cluster equipment, if a gateway instance n is selected, step (6) shows that the northbound load balancing distribution device transmits the receipt information of the uplink information to the gateway instance n, step (7) shows that the gateway instance n searches the source identifier of the uplink information associated with the information identifier carried in the receipt information from the shared memory database, the source identifier refers to the device identification information corresponding to the information device sending the uplink message in fig. 11, i.e., the device identification information corresponding to the southbound interface device 1, determines the southbound interface device 1 as the target information device, and the gateway instance n returns the receipt information of the uplink information to the southbound interface device 1 according to the step (8), and the forwarding of the uplink information and the corresponding receipt information is completed once.
According to the embodiment of the invention, the embodiment of the information transmission system is also provided. The information transmission system comprises a plurality of northbound interface devices, a plurality of southbound interface devices and gateway cluster devices, wherein each gateway cluster device comprises a northbound load balancing device, a southbound load balancing device, a plurality of gateway instances and a storage module, wherein each northbound load balancing device is used for determining a first target gateway instance for processing downlink information sent by each northbound interface device according to the load state of each gateway instance in a gateway cluster; the southbound load balancing device is used for determining a second target gateway instance for processing uplink information sent by the southbound interface device according to the load state of each gateway instance in the gateway cluster; any one of the plurality of gateway instances, configured to perform receiving the target information; determining an information identifier of target information, and associating first equipment identification information, second equipment identification information and the information identifier, wherein the first equipment identification information is the equipment identification information of first information equipment for sending the target information, and the second equipment identification information is the equipment identification information of second information equipment for receiving the target information; under the condition of receiving the associated information of the target information, determining equipment identification information of target information equipment for receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is first information equipment or second information equipment; sending the associated information to the target information equipment according to the equipment identification information of the target information equipment; and the storage module is used for storing a target database, and the target database is used for storing the equipment identification information of the plurality of northbound interface equipment and the plurality of southbound interface equipment and the information identifier of the target information.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, 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 embodiments of the apparatus 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 integrated into another system, or some features may be omitted, or not 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 application 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 application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. 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 or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (11)

1. An information transfer method, which is applied to any gateway instance in a gateway cluster, is characterized by comprising:
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 device identification information of a first information device which sends the target information, and the second device identification information is device identification information of a second information device which receives the target information;
under the condition of receiving the associated information of the target information, determining equipment identification information of target information equipment for receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is the first information equipment or the second information equipment;
and sending the associated information to the target information equipment according to the equipment identification information of the target information equipment.
2. The information delivery method of claim 1, wherein associating first device identification information, second device identification information, and the information identifier comprises:
determining first device identification information of the first information device;
determining the second information equipment according to a preset rule, and acquiring second equipment identification information of the second information equipment;
storing the information identifier in a target database, and storing an association between the first device identification information, the second device identification information, and the information identifier.
3. The information delivery method of claim 2, wherein determining device identification information of a target information device that receives the association information from the information identifier comprises:
under the condition that the associated information is receipt information of the target information, acquiring the information identifier of the target information carried in the receipt information;
according to the information identifier, inquiring the first equipment identification information associated with the information identifier in the target database, and determining the first information equipment corresponding to the first equipment identification information as the target information equipment.
4. The information delivery method of claim 2, wherein determining device identification information of a target information device that receives the association information from the information identifier comprises:
under the condition that 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;
and inquiring the second equipment identification information associated with the information identifier in the target database according to the information identifier, and determining the second information equipment corresponding to the second equipment identification information as the target information equipment.
5. The information delivery method of claim 1, wherein prior to receiving the target information, the information delivery method further comprises:
determining the load state 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 state.
6. The information delivery method according to claim 1, wherein before receiving the association information of the target information, the information delivery method further comprises:
determining the load state 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 state.
7. The information delivery method according to any one of claims 1 to 5, wherein the target information is uplink information or downlink information, and wherein:
when 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;
and under the condition that the target information is the uplink information, the first information equipment is the south interface equipment, and the second information equipment is the north interface equipment.
8. An information transfer apparatus adapted to be used in a gateway, comprising:
the receiving module is used for receiving the 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, where the first device identification information is device identification information of a first information device that sends the target information, and the second device identification information is device identification information of a second information device that receives the target information;
a retrieval module, configured to determine, when associated information of the target information is received, device identification information of a target information device that receives the associated information according to the information identifier, where the associated information carries the information identifier, and the target information device is the first information device or the second information device;
and the sending module is used for sending the associated information to the target information equipment according to the equipment identification information of the target information equipment.
9. An information delivery system comprising a plurality of northbound interface devices, a plurality of southbound interface devices, a gateway cluster device, wherein,
the gateway cluster equipment comprises a north load balancing device, a south load balancing device, a plurality of gateway instances and a storage module, wherein the north load balancing device is used for determining a first target gateway instance for processing downlink information sent by the north interface equipment according to the load state of each gateway instance in the gateway cluster;
the southbound load balancing device is used for determining a second target gateway instance for processing uplink information sent by the southbound interface device according to the load state of each gateway instance in the gateway cluster;
any one gateway instance in the plurality of gateway instances is used for receiving the 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 device identification information of a first information device which sends the target information, and the second device identification information is device identification information of a second information device which receives the target information; under the condition of receiving the associated information of the target information, determining equipment identification information of target information equipment for receiving the associated information according to the information identifier, wherein the associated information carries the information identifier, and the target information equipment is the first information equipment or the second information equipment; sending the associated information to the target information equipment according to the equipment identification information of the target information equipment;
the storage module is configured to store a target database, where the target database is configured to store device identification information of the plurality of northbound interface devices and the plurality of southbound interface devices, and an information identifier of the target information.
10. A non-volatile storage medium, comprising a stored program, wherein when the program runs, a device in which the non-volatile storage medium is located is controlled to execute the information transfer method according to any one of claims 1 to 7.
11. An electronic device, comprising a processor configured to execute a program, wherein the program executes to perform the information delivery method according to any one of claims 1 to 7.
CN202111631118.0A 2021-12-28 2021-12-28 Information transmission method, device and system Pending CN114301989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111631118.0A CN114301989A (en) 2021-12-28 2021-12-28 Information transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111631118.0A CN114301989A (en) 2021-12-28 2021-12-28 Information transmission method, device and system

Publications (1)

Publication Number Publication Date
CN114301989A true CN114301989A (en) 2022-04-08

Family

ID=80971201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111631118.0A Pending CN114301989A (en) 2021-12-28 2021-12-28 Information transmission method, device and system

Country Status (1)

Country Link
CN (1) CN114301989A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604199A (en) * 2022-10-09 2023-01-13 上海道客网络科技有限公司(Cn) Service routing method and system for cloud native platform micro-service gateway

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070983A (en) * 2017-01-23 2017-08-18 天地融科技股份有限公司 A kind of load-balancing method, equipment and system forwarded based on address
CN109245984A (en) * 2018-07-13 2019-01-18 华为技术有限公司 A kind of message transmitting method, a kind of information processing method and its relevant device
WO2020057445A1 (en) * 2018-09-19 2020-03-26 华为技术有限公司 Communication system, method, and device
CN112616176A (en) * 2020-12-22 2021-04-06 广州视源电子科技股份有限公司 Wake-up method and device and control method and device of equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070983A (en) * 2017-01-23 2017-08-18 天地融科技股份有限公司 A kind of load-balancing method, equipment and system forwarded based on address
CN109245984A (en) * 2018-07-13 2019-01-18 华为技术有限公司 A kind of message transmitting method, a kind of information processing method and its relevant device
WO2020057445A1 (en) * 2018-09-19 2020-03-26 华为技术有限公司 Communication system, method, and device
CN112616176A (en) * 2020-12-22 2021-04-06 广州视源电子科技股份有限公司 Wake-up method and device and control method and device of equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604199A (en) * 2022-10-09 2023-01-13 上海道客网络科技有限公司(Cn) Service routing method and system for cloud native platform micro-service gateway

Similar Documents

Publication Publication Date Title
CN106850402B (en) Message transmission method and device
CN102638586B (en) Sharing method, system and device for application program information
CN105376107B (en) Terminal testing method and proxy server
EP3116189A1 (en) Service link selection control method and device
EP3057281B1 (en) M2m application remote registration method, device, system and storage medium
CN110995554A (en) Method and device for configuring and accessing intelligent household electrical appliance network and storage medium
US10887745B2 (en) Method and device for sharing file between different terminals
CN104702665A (en) Information sharing method and information sharing device
CN106255226B (en) Network connection processing method and device
CN104301141A (en) Method, device and system for storing configuration information
US20170126828A1 (en) Sending Method and Apparatus and Computer Storage Medium of Notification Message
CN110704158A (en) Method, apparatus and storage medium for forwarding access requests within a container cluster
CN104394577A (en) Wireless network access method of wireless route equipment and electronic equipment
CN105959188B (en) Method and device for controlling user terminal to be on-line
CN104539508A (en) Access control method and device
EP3244587A1 (en) Method, device and system for precision time protocol time synchronization in aggregation network
CN114301989A (en) Information transmission method, device and system
CN104426816B (en) A kind of virtual machine communication method and device
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
JP2023530608A (en) Network slice switching method, terminal, storage medium, and electronic device
CN104735174A (en) HTTP transparent proxy implementing method and device
CN108632355B (en) Routing method for household appliance network, control terminal, readable storage medium and equipment
CN110661697B (en) Message synchronization method, device, readable storage medium, electronic device and system
CN106330787B (en) Data packet transmission method, equipment and system
CN109194571B (en) Method, apparatus and storage medium for distributing information based on priority

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