CN112202614B - Method and device for communication between systems - Google Patents

Method and device for communication between systems Download PDF

Info

Publication number
CN112202614B
CN112202614B CN202011062731.0A CN202011062731A CN112202614B CN 112202614 B CN112202614 B CN 112202614B CN 202011062731 A CN202011062731 A CN 202011062731A CN 112202614 B CN112202614 B CN 112202614B
Authority
CN
China
Prior art keywords
message queue
message
communication
transaction
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011062731.0A
Other languages
Chinese (zh)
Other versions
CN112202614A (en
Inventor
王旭明
王安定
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202011062731.0A priority Critical patent/CN112202614B/en
Publication of CN112202614A publication Critical patent/CN112202614A/en
Application granted granted Critical
Publication of CN112202614B publication Critical patent/CN112202614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method and a device for intersystem communication, which are applied to a message queue communication route, wherein the message queue communication route is respectively connected with at least one superior system and at least one inferior system; the message queue communication route comprises message queue channels for each superior system to communicate with each subordinate system; the method comprises the following steps: under the condition that a communication processing host in a message queue communication route works normally, when a transaction message sent by any one superior system is received, route configuration parameters in the transaction message are acquired; determining a message queue channel corresponding to the routing configuration parameters as a target message queue channel; and adding the transaction message into the target message queue channel so as to transmit the transaction message to the lower system corresponding to the target message queue channel, so as to complete the communication between the upper system and the lower system. The invention can effectively reduce the coupling of the communication between systems and save the communication cost and communication resources.

Description

Inter-system communication method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for intersystem communication.
Background
At present, the main system of each large enterprise or organization usually consists of a plurality of systems, and through communication among the systems, business can be handled or corresponding functions can be realized. At present, a plurality of systems usually communicate with each other by establishing a communication link between terminals, and when information between the communication links is transmitted, the information is usually transmitted in a Message Queue (MQ) manner.
With the development of technology, more and more systems are provided for forming a main system of each large enterprise or institution, for example, a bank system in a financial institution, and the bank system can be divided into a plurality of head office systems and a plurality of branch office systems, and a communication link is established between each head office system and each branch office system for communication. With the increasing number of the head office system and the branch office system, the communication links between the head office system and the branch office system are more and more, so that a great deal of cost is needed to establish the communication links, and a great deal of communication cost is needed.
Disclosure of Invention
In view of this, the present invention provides an intersystem communication method and apparatus, where the method and apparatus are applied to a message queue communication route, and the message queue communication route is respectively connected to at least one superior system and at least one inferior system; the message queue communication route comprises a message queue channel for communication between each superior system and each subordinate system; by applying the invention, the communication among multiple systems is realized by using the message queue communication route, the connected links among the systems are reduced, a large number of communication links do not need to be established, and the communication cost is saved.
In order to achieve the purpose, the invention provides the following technical scheme:
a communication method between systems is applied to a message queue communication route which is respectively connected with at least one superior system and at least one subordinate system; the message queue communication route comprises a message queue channel for communication between each superior system and each subordinate system; the method comprises the following steps:
when a communication processing host in the message queue communication route works normally and a transaction message sent by any superior system is received, analyzing the transaction message to acquire a route configuration parameter in the transaction message;
determining a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel;
adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue channel through the target message queue channel, so as to complete the communication between the upper system and the lower system.
Optionally, the foregoing method, determining, as a target message queue channel, a message queue channel in the message queue communication route, where the message queue channel corresponds to the route configuration parameter, includes:
determining a forwarding identifier in the route configuration parameter;
acquiring queue parameters of each message queue channel in the message queue communication route;
comparing the forwarding identifier with the queue identifier in each queue parameter to determine the queue identifier consistent with the forwarding identifier;
and determining the message queue channel corresponding to the queue identifier consistent with the forwarding identifier as a target message queue channel.
The above method, optionally, further includes:
counting the transaction message volume of each message queue channel in the message queue communication route in real time;
and for each message queue channel, judging whether the message queue channel currently meets a preset early warning condition or not based on the current statistical transaction message quantity of the message queue channel, and if the message queue channel currently meets the early warning condition, sending preset alarm information.
Optionally, the above method, determining whether the message queue channel currently meets a preset early warning condition based on the transaction message amount currently counted by the message queue channel, includes:
comparing the current statistical transaction message quantity of the message queue channel with a preset threshold interval to determine whether the current statistical transaction message quantity of the message queue channel is in the threshold interval;
and when the current statistical transaction message amount of the message queue channel is determined not to be in the threshold interval, judging that the message queue channel currently meets the early warning condition.
The above method, optionally, further includes:
for each message queue channel, determining a transaction data set of the message queue channel, wherein the transaction data set consists of transaction message volumes of the message queue channel;
determining the time point of each transaction message volume in the transaction data set, and determining a preset time period to which each transaction message volume belongs based on the time point of each transaction message volume;
and determining the communication bandwidth of each preset time period based on the transaction message amount of each preset time period so as to obtain the communication bandwidth of the message queue channel in each preset time period.
The method described above, optionally, further includes:
and when the communication processing host in the message queue communication route is in an abnormal condition, activating a preset communication processing standby machine to enable the communication processing standby machine to replace the communication processing host to work so as to enable the message queue communication route to normally run.
An intersystem communication device is applied to a message queue communication route, and the message queue communication route is respectively connected with at least one superior system and at least one inferior system; the message queue communication route comprises a message queue channel for communication between each superior system and each subordinate system; the device comprises:
the receiving unit is used for analyzing the transaction message when the transaction message sent by any superior system is received under the condition that the communication processing host in the message queue communication route works normally so as to acquire the route configuration parameters in the transaction message;
a first determining unit, configured to determine a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel;
the communication unit is used for adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue channel through the target message queue channel, so that the communication between the upper system and the lower system is completed.
The above apparatus, optionally, the first determining unit includes:
a first determining subunit, configured to determine a forwarding identifier in the route configuration parameter;
an obtaining subunit, configured to obtain a queue parameter of each message queue channel in the message queue communication route;
the first comparison subunit is configured to compare the forwarding identifier with a queue identifier in each queue parameter, so as to determine a queue identifier consistent with the forwarding identifier;
and the second determining subunit is configured to determine, as the target message queue channel, the message queue channel corresponding to the queue identifier that is consistent with the forwarding identifier.
The above apparatus, optionally, further comprises:
the statistical unit is used for carrying out real-time statistics on the transaction message amount of each message queue channel in the message queue communication route;
and the judging unit is used for judging whether the message queue channel currently meets a preset early warning condition or not based on the transaction message amount counted currently for the message queue channel for each message queue channel, and sending preset alarm information if the message queue channel is determined to currently meet the early warning condition.
The above apparatus, optionally, the determining unit includes:
the second comparison subunit is used for comparing the transaction message amount currently counted by the message queue channel with a preset threshold interval so as to determine whether the transaction message amount currently counted by the message queue channel is within the threshold interval;
and the judging subunit is used for judging that the message queue channel currently meets the early warning condition when the current statistical transaction message amount of the message queue channel is determined not to be within the threshold interval.
The above apparatus, optionally, further comprises:
a second determining unit, configured to determine, for each message queue channel, a transaction data set of the message queue channel, where the transaction data set is composed of transaction message amounts of the message queue channel;
a third determining unit, configured to determine a time point of each transaction message amount in the transaction data set, and determine a preset time period to which each transaction message amount belongs based on the time point of each transaction message amount;
a fourth determining unit, configured to determine, based on each transaction message amount in each preset time period, a communication bandwidth in each preset time period, so as to obtain a communication bandwidth of the message queue channel in each preset time period.
The above apparatus, optionally, further comprises:
and the activation unit is used for activating a preset communication processing standby machine when the communication processing host machine in the message queue communication route is in an abnormal condition, so that the communication processing standby machine replaces the communication processing host machine to work, and the message queue communication route is enabled to normally run.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a communication method between systems, which is applied to a message queue communication route, wherein the message queue communication route is respectively connected with at least one superior system and at least one inferior system; the message queue communication route comprises a message queue channel for communicating each superior system and each inferior system; the method comprises the following steps: under the condition that a communication processing host in the message queue communication route works normally, when a transaction message sent by any one superior system is received, the transaction message is analyzed to obtain a route configuration parameter in the transaction message; determining a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel; adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue channel through the target message queue channel, so as to complete the communication between the upper system and the lower system. The invention can effectively reduce the communication links between the systems, reduce the coupling of the communication between the systems and save the cost and the communication resources of the communication between the systems.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method of intersystem communication according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method of intersystem communication according to an embodiment of the present invention;
fig. 3 is a flowchart of another method of intersystem communication according to an embodiment of the present invention;
fig. 4 is a diagram illustrating a scenario of an intersystem communication method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an inter-system communication apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The methods provided by embodiments of the present invention may be applied to a wide variety of general purpose or special purpose computing devices or environment aggregations. For example: multiprocessor devices, server computers, personal computers, distributed computing environments, and the like.
The invention provides a communication method between systems, which can be used for communication between multiple systems, such as bank systems in the financial industry. The method provided by the invention is applied to the message queue communication route which is respectively connected with at least one superior system and at least one subordinate system; the message queue communication route includes a message queue channel for each upper level system to communicate with each lower level system, and the method flow of the method is shown in fig. 1, which is specifically described as follows:
s101, under the condition that a communication processing host in the message queue communication route works normally, when a transaction message sent by any upper-level system is received, the transaction message is analyzed to obtain a route configuration parameter in the transaction message.
In the method provided by the embodiment of the present invention, the upper level system may also be referred to as a front end system, and the lower level system may also be referred to as a back end system; the Message Queue (MQ) communication route selects an MQ communication bottom layer, that is, the MQ communication route transmits data in a Message queue manner. The MQ communication route is internally provided with a communication processing host, the communication processing host is used for supporting the normal operation of the MQ communication route, and the communication processing host is used for processing the transaction message or the transaction data received by the MQ communication route; and when the communication processing host is in normal operation, the communication processing host indicates that the communication carding host does not have a fault. When a communication processing host in the message queue communication route works normally and a transaction message sent by any superior system is received, the communication processing host analyzes the transaction message to obtain a route configuration parameter in the transaction message, wherein the transaction message comprises a preset route configuration parameter and communication data; it should be noted that the communication processing host in the MQ communication route can forward the transaction message according to the route configuration parameters; the routing configuration parameters include, but are not limited to, interface parameters related to the upper level system, corresponding message queue parameters, and communication bandwidth of the upper level system.
S102, determining a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel.
In the method provided by the embodiment of the invention, a message queue channel corresponding to the route configuration parameter is determined in each message queue channel in the message queue communication route, and the message queue channel corresponding to the route configuration parameter is determined as a target message queue channel; it should be noted that, a message queue channel for communication between each upper system and each lower system is preset in the message queue communication route; further, the message queue channels may also be referred to as message queue links, each message queue corresponds to one upper system and one lower system, the message queue channels are used for forwarding transaction messages, and each message queue channel is integrated in a message queue communication route.
S103, adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue channel through the target message queue channel, so as to complete communication between the upper system and the lower system.
In the method provided by the embodiment of the invention, after a target message queue channel is determined, a transaction message is added into the target message queue channel so as to be sent to a lower system corresponding to the target message queue channel through the target message queue channel, and therefore, the communication between a higher system and the lower system can be completed; it should be noted that the upper system and the lower system can pass through each other in two directions, that is, the upper system can send a transaction message to the lower system, and the lower system can also send a transaction message to the upper system.
In the method provided by the embodiment of the invention, when a communication processing host in a message queue communication route is in normal work and a transaction message sent by any superior system is received, the transaction message is analyzed to obtain the route configuration parameters in the transaction message; determining a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel; adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue through the target message queue channel, so as to complete the communication between the upper system and the lower system; the message queue communication route is applied to connect a plurality of systems, the message queue channels in the message queue communication route are used for realizing communication among the systems, the channels occupied by the systems during communication are fewer, the communication coupling condition is effectively avoided, the complexity of the communication link is effectively reduced, a large number of communication links do not need to be established, the cost for establishing the communication link is saved, and the cost for communication among the systems is reduced.
In the method provided by the invention, in order to ensure the working stability of the message queue communication route and the communication stability among multiple systems, a communication processing standby machine is also preset in the message queue communication route, and when the communication processing host in the message queue communication route is in an abnormal condition, the communication processing standby machine is activated to work by replacing the communication processing host in the abnormal condition so as to ensure the normal operation of the message queue communication route, wherein the setting and the configuration of the communication processing standby machine are the same as the setting and the configuration of the communication processing host. It should be noted that, when the communication processing host is in an abnormal condition, it indicates that the communication processing host is in a state in which the communication processing host cannot normally operate, for example, the communication processing host goes down or fails in a server; the communication processing host and the communication processing standby machine may both be MQ multi-instance machines. By arranging the communication processing standby machine in the message queue communication route, the communication processing standby machine can replace the abnormal communication processing host machine to work when the communication processing host machine in the message queue communication route is abnormal, so that the message queue communication route works normally, and the communication among multiple systems is ensured.
In the method provided in the embodiment of the present invention, after obtaining the route configuration parameter in the transaction message, the target message queue channel needs to be determined based on the route configuration parameter, and a specific flow is shown in fig. 2 and specifically described as follows:
s201, determining the forwarding identification in the route configuration parameters.
In the method provided by the embodiment of the invention, the forwarding identifier in the route configuration parameters is determined, the forwarding identifier can be composed of numbers and letters, the forwarding identifier is used for determining the message queue channel, and the forwarding identifier is used as the identity recognition characteristic of the message queue channel.
S202, obtaining queue parameters of each message queue channel in the message queue communication route.
In the method provided in the embodiment of the present invention, queue parameters of each message queue channel in the message queue communication route are obtained, it should be noted that the message queue communication route is configured with the queue parameters of each message queue channel, the queue parameters of each message queue can be configured by using syntax, and one syntax configuration of the queue parameters may be: DEFINE QREMOTE (remote queue name) RNAME ('receive queue name') RQMNAME ('receive queue manager alias') XMITQ (transmit queue) REPLACE; the remote queue name can be the unique identification feature of a message queue channel and can consist of numbers and letters, and the remote queue name in the queue parameter of each message queue is unique; the receive queue name may be a name of a system under the control of the transaction message, and the receive queue manager alias may be a name of a server of the system under the control of the transaction message.
S203, comparing the forwarding identifier with the queue identifier in each queue parameter to determine the queue identifier consistent with the forwarding identifier.
In the method provided by the embodiment of the invention, the forwarding identifier is compared with the queue identifier in the queue parameter of each message queue channel, so as to determine the queue identifier consistent with the forwarding identifier in each queue identifier.
S204, determining the message queue channel corresponding to the queue identifier consistent with the forwarding identifier as a target message queue channel.
In the method provided by the embodiment of the invention, after the transaction message is received, the transaction message is analyzed to obtain the route configuration parameter in the transaction message, and the target message queue channel is determined in each message queue channel of the message queue communication route based on the forwarding identifier in the route configuration parameter, so that the transaction message can be transmitted to a lower system corresponding to the target message queue channel by using the target message queue channel; the target message queue is determined based on the forwarding identifier in the route configuration parameter, the target message queue channel can be accurately determined in each message queue channel of the message queue communication route, and the accuracy of determining the target message queue channel is ensured.
In the method provided by the embodiment of the present invention, when multiple systems perform communication, the message queue communication route may further perform the following operations:
counting the transaction message volume of each message queue channel in the message queue communication route in real time;
and for each message queue channel, judging whether the message queue channel currently meets a preset early warning condition or not based on the transaction message amount currently counted for the message queue channel, and if the message queue channel currently meets the early warning condition, sending preset alarm information.
In the method provided by the embodiment of the invention, the transaction message amount of each message queue channel in the message queue communication route is counted, wherein the transaction message amount is the transaction message amount and can be further understood as the transaction flow of the message queue; for each message queue channel, when the transaction message volume of the message queue channel is counted, whether the message queue channel meets the preset early warning condition is judged, namely, the message queue channel meets the early warning condition at present on the basis of the transaction message volume counted at present for the message queue channel, so that whether the message queue channel meets the early warning condition is judged in real time according to the transaction message volume counted for the message queue channel; if the message queue channel is determined to meet the early warning condition currently, sending preset warning information; it should be noted that the alarm information is preset information, and the alarm information can be fed back to the staff, so that the staff can check the message queue in the message queue communication route in time to ensure the stability of the message queue channel and the communication of the message queue communication route; it should be noted that if it is determined that the message queue channel does not currently satisfy the early warning condition, the preset warning information is not sent.
In the method provided by the embodiment of the present invention, a process of determining whether the message queue currently satisfies a preset early warning condition is as follows:
comparing the current statistical transaction message quantity of the message queue channel with a preset threshold interval to determine whether the current statistical transaction message quantity of the message queue channel is in the threshold interval;
and when the current statistical transaction message amount of the message queue channel is determined not to be in the threshold interval, judging that the message queue channel currently meets the early warning condition.
In the method provided by the embodiment of the present invention, the threshold interval may be set according to actual requirements, for example, the threshold interval is [30,150], and when the transaction message amount is greater than 30 and not greater than 150, the transaction message amount is within the threshold interval; when the transaction message amount is larger than 150 or smaller than 30, the transaction message amount is not within the threshold interval; when the current statistical transaction message amount of the message queue channel is determined to be within a threshold interval, judging that the message queue channel currently meets an early warning condition; and when the transaction message amount counted currently for the message queue channel is determined to be within the threshold interval, judging that the message queue channel does not meet the early warning condition currently. Further, when the transaction message volume of the message queue channel is not within the threshold interval, it may be determined that the transaction volume of the message queue channel is abnormal, and the abnormal condition is: (1) The transaction message volume is too high, namely when the transaction message volume is larger than the maximum value in the threshold interval; (2) The transaction message volume is too low, i.e. when the transaction message volume is less than the minimum value within the threshold interval; illustratively, the transaction message amount is a positive integer greater than or equal to zero.
Referring to fig. 3, a flowchart of a method for determining whether a message queue currently meets a preset warning condition under the condition of performing statistics on transaction message amount of each message queue channel according to the embodiment of the present invention is specifically described as follows:
s301, for each message queue channel, determining the current statistical transaction message amount of the message queue channel.
S302, judging whether the current transaction message amount counted by the message queue channel is within a preset threshold interval; if the transaction message volume counted currently for the message queue channel is within the threshold interval, executing S303; if the transaction message amount currently counted by the message queue channel is not within the threshold interval, S304 is executed.
And S303, judging that the message queue channel does not meet the preset early warning condition at present, and not sending preset warning information.
S304, judging that the message queue channel currently meets a preset early warning condition, and sending preset warning information.
In the method provided by the embodiment of the invention, the transaction message volume of each message queue channel is counted in real time, whether the message queue channel meets the early warning condition is judged based on the transaction message volume obtained through counting, and when the message queue channel meets the early warning condition is judged, the preset warning information is sent, so that when the transaction message volume of the message queue channel is abnormal, the warning information can be timely sent to a worker, the worker can timely adjust the message queue channel, and the normal communication of the message queue channel is ensured.
In the method provided by the embodiment of the invention, the corresponding communication bandwidth can be set for each message queue channel in each time period, and the specific process is as follows:
for each message queue channel, determining a transaction data set of the message queue channel, wherein the transaction data set consists of transaction message quantities of the message queue channel;
determining the time point of each transaction message volume in the transaction data set, and determining a preset time period to which each transaction message volume belongs based on the time point of each transaction message volume;
and determining the communication bandwidth of each preset time period based on the transaction message amount of each preset time period so as to obtain the communication bandwidth of the message queue channel in each preset time period.
In the method provided by the embodiment of the invention, the transaction data set of each message queue channel comprises each transaction message amount for counting the message queue channel; the time point of the transaction message volume is the time for counting the transaction message volume, such as 9 o 'clock, 15 o' clock, 17 o 'clock, 12 o' clock, etc.; grouping the transaction message volumes in each transaction data set, namely determining a preset time period to which each transaction message volume belongs; the preset time periods are multiple, for example, 24 hours a day is divided into 4 preset time periods which can be a first preset time period, a second preset time period, a third preset time period and a fourth preset time period; a first preset time period: the method comprises the following steps of (0, 6) indicating that a preset time period is from 0 point to 6 points, a second preset time period (6, 12) indicating that a preset time period is from 6 points to 12 points, a third preset time period (12, 18) indicating that a preset time period is from 12 points to 18 points, and a fourth preset time period (18, 24) indicating that a preset time period is from 18 points to 24 points, after the preset time period to which each transaction message quantity in a transaction data set belongs is determined, distributing corresponding communication bandwidth for each preset time period based on each transaction message quantity in each preset time period corresponding to the transaction data set to determine the communication bandwidth of a message queue channel in each time period, wherein when the corresponding communication bandwidth is distributed for each preset time period, distribution can be carried out according to the transaction message average quantity in each preset time period, the transaction message average quantity = the sum of each transaction message quantity/the number of the transaction message quantities, and the larger the communication bandwidth is distributed.
In the method provided by the embodiment of the invention, the preset time period to which each transaction message volume belongs in the transaction data set of each message queue channel is determined, and the communication bandwidth of each preset time period is determined based on each transaction message volume corresponding to each preset time period, so that the communication bandwidth of the message queue channel in the corresponding preset time period can be determined. By applying the invention, the corresponding communication bandwidth can be distributed to the message queue channel according to the peak value of the transaction message flow, so that the transaction flow of each message queue channel can be adjusted, the resource cost is reduced, the resource of the communication bandwidth is effectively utilized, the effective distribution of the communication bandwidth resource is ensured, and the high-efficiency utilization of the communication bandwidth resource is ensured.
Referring to fig. 4, in a scenario embodiment provided by the embodiment of the present invention, it can be seen that there are m upper level systems, i.e., upper level system 1, upper level system 2, and upper level system 3 \8230 \ 8230; the system comprises n lower systems, namely a lower system 1, a lower system 2 and a lower system 3 \8230, wherein the lower system 8230is connected with the upper system n; wherein the values of m and n are positive integers; there is also a message queue communication route; each superior system and each subordinate system are connected with a message queue communication route, and as can be seen from the figure, by using the message queue communication route, the connection links to be constructed when the superior system and the subordinate system communicate with each other are fewer, so that the occupied communication resources are fewer, and the coupling degree of communication is effectively reduced. Further, the communication processing host and the communication processing standby machine are arranged in the message queue communication route, and the communication processing host and the communication processing standby machine are arranged and configured identically, so that the communication processing standby machine can replace the communication processing host to work when the communication processing host is in an abnormal state, and further normal work of the message queue communication route is ensured, wherein the message queue communication route includes a message queue channel of each superior system to each inferior system, and the message queue channel is used for transmitting transaction messages.
Further, the configuration of the communication processing host is described, and the configuration of the communication processing standby machine may refer to the communication processing host, which is not described herein again. The communication processing host is integrated with a transaction statistical module, a transaction early warning module, a transaction intelligent routing module and a transaction intelligent flow control module, and a message queue communication routing gateway is arranged in the communication processing host. The transaction counting module is used for counting the transaction message amount in each message queue channel in real time and preparing data for subsequent communication early warning, intelligent route forwarding and intelligent route control; the transaction early warning module is used for judging whether the message queue channel currently meets a preset early warning condition or not based on the transaction message volume counted currently for each message queue channel, and if the message queue channel currently meets the preset early warning condition, sending preset alarm information to carry out early warning in time, so that the message queue channel is maintained simply and conveniently; the transaction intelligent routing module is used for analyzing the transaction message when receiving the transaction message sent by the superior system, acquiring a routing configuration parameter in the transaction message, determining a target message queue channel based on the routing configuration parameter, and adding the transaction message into the target message queue channel so as to transmit the transaction message to the inferior system corresponding to the target queue message through the target message queue channel, thereby completing the communication between the superior system and the inferior system and realizing the forwarding of the transaction message; the transaction intelligent flow control module is used for allocating communication bandwidth for each message queue channel in each preset time period based on the transaction message number counted for each message queue channel, so that the communication bandwidth can be allocated reasonably, and communication resources are utilized effectively.
Corresponding to fig. 1, the present invention further provides an inter-system communication apparatus for supporting practical applications and implementations of the method provided by the embodiment of the present invention, where the apparatus provided by the present invention is applicable to message queue communication routes, and the message queue communication routes are respectively connected to at least one upper-level system and at least one lower-level system; the message queue communication route includes a message queue channel for each upper level system to communicate with each lower level system, and a schematic structural diagram of the apparatus is shown in fig. 5, which specifically describes the following:
a receiving unit 501, configured to, when a communication processing host in the message queue communication route is in normal operation and receives a transaction message sent by any upper-level system, parse the transaction message to obtain a route configuration parameter in the transaction message;
a first determining unit 502, configured to determine a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel;
a communication unit 503, configured to add the transaction message to the target message queue channel, so as to transmit the transaction message to a lower system corresponding to the target message queue channel through the target message queue channel, so as to complete communication between the upper system and the lower system.
In the device provided by the embodiment of the invention, when a transaction message sent by any superior system is received under the condition that a communication processing host in a message queue communication route works normally, the transaction message is analyzed to obtain the route configuration parameters in the transaction message; determining a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel; adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue through the target message queue channel, so as to complete the communication between the upper system and the lower system; the message queue communication route is applied to connect a plurality of systems, and the message queue channel in the message queue communication route is used for realizing the communication between the systems, so that the links connected between the systems are reduced, and the complexity of the links between the systems is reduced, thereby avoiding the establishment of a large number of links, effectively reducing the communication coupling, saving the cost for establishing the communication links and reducing the cost for the communication between the systems.
Based on the foregoing solution, in the apparatus provided in the present invention, the first determining unit 502 may be configured to:
a first determining subunit, configured to determine a forwarding identifier in the route configuration parameter;
an obtaining subunit, configured to obtain a queue parameter of each message queue channel in the message queue communication route;
the first comparison subunit is configured to compare the forwarding identifier with a queue identifier in each queue parameter, so as to determine a queue identifier consistent with the forwarding identifier;
and the second determining subunit is configured to determine, as the target message queue channel, the message queue channel corresponding to the queue identifier that is consistent with the forwarding identifier.
Based on the above scheme, the apparatus provided by the present invention may further be configured to:
the statistical unit is used for carrying out real-time statistics on the transaction message amount of each message queue channel in the message queue communication route;
and the judging unit is used for judging whether the message queue channel currently meets a preset early warning condition or not based on the transaction message amount counted currently for the message queue channel for each message queue channel, and sending preset alarm information if the message queue channel is determined to currently meet the early warning condition.
Based on the above scheme, in the apparatus provided by the present invention, the determining unit may be configured to:
the second comparison subunit is used for comparing the transaction message amount currently counted by the message queue channel with a preset threshold interval so as to determine whether the transaction message amount currently counted by the message queue channel is within the threshold interval;
and the judging subunit is used for judging that the message queue channel currently meets the early warning condition when the current statistical transaction message quantity of the message queue channel is determined not to be in the threshold interval.
Based on the above scheme, the apparatus provided by the present invention may also be configured as:
a second determining unit, configured to determine, for each message queue channel, a transaction data set of the message queue channel, where the transaction data set is composed of transaction message amounts of the message queue channel;
a third determining unit, configured to determine a time point of each transaction message amount in the transaction data set, and determine a preset time period to which each transaction message amount belongs based on the time point of each transaction message amount;
a fourth determining unit, configured to determine, based on each transaction message amount in each preset time period, a communication bandwidth in each preset time period, so as to obtain a communication bandwidth of the message queue channel in each preset time period.
Based on the above scheme, the apparatus provided by the present invention may also be configured as:
and the activation unit is used for activating a preset communication processing standby machine when the communication processing host machine in the message queue communication route is in an abnormal condition, so that the communication processing standby machine replaces the communication processing host machine to work, and the message queue communication route is enabled to normally run.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the 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 network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. The intersystem communication method is characterized by being applied to message queue communication routes which are respectively connected with at least one superior system and at least one inferior system; the message queue communication route comprises a message queue channel for communicating each superior system and each inferior system; the method comprises the following steps:
under the condition that a communication processing host in the message queue communication route works normally, when a transaction message sent by any one superior system is received, the transaction message is analyzed to obtain a route configuration parameter in the transaction message;
determining a forwarding identifier in the route configuration parameter;
acquiring queue parameters of each message queue channel in the message queue communication route;
comparing the forwarding identifier with the queue identifier in each queue parameter to determine the queue identifier consistent with the forwarding identifier;
determining a message queue channel corresponding to the queue identifier consistent with the forwarding identifier as a target message queue channel;
adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue channel through the target message queue channel, so as to complete communication between the upper system and the lower system;
for each message queue channel, determining a transaction data set of the message queue channel, wherein the transaction data set consists of transaction message quantities of the message queue channel;
determining the time point of each transaction message volume in the transaction data set, and determining a preset time period to which each transaction message volume belongs based on the time point of each transaction message volume;
determining the communication bandwidth of each preset time period based on each transaction message amount of each preset time period to obtain the communication bandwidth of the message queue channel in each preset time period;
and when the communication processing host in the message queue communication route is in an abnormal condition, activating a preset communication processing standby machine to enable the communication processing standby machine to replace the communication processing host to work so as to enable the message queue communication route to normally run.
2. The method of claim 1, further comprising:
counting the transaction message volume of each message queue channel in the message queue communication route in real time;
and for each message queue channel, judging whether the message queue channel currently meets a preset early warning condition or not based on the current statistical transaction message quantity of the message queue channel, and if the message queue channel currently meets the early warning condition, sending preset alarm information.
3. The method of claim 2, wherein the determining whether the message queue channel currently satisfies a preset warning condition based on the transaction message amount currently counted for the message queue channel comprises:
comparing the transaction message volume currently counted by the message queue channel with a preset threshold interval to determine whether the transaction message volume currently counted by the message queue channel is within the threshold interval;
and when the current statistical transaction message amount of the message queue channel is determined not to be in the threshold interval, judging that the message queue channel currently meets the early warning condition.
4. An intersystem communication apparatus, applied to a message queue communication route, wherein the message queue communication route is connected to at least one upper system and at least one lower system respectively; the message queue communication route comprises a message queue channel for communicating each superior system and each inferior system; the device comprises:
the receiving unit is used for analyzing the transaction message when the transaction message sent by any superior system is received under the condition that the communication processing host in the message queue communication route works normally so as to obtain the route configuration parameters in the transaction message;
a first determining unit, configured to determine a message queue channel corresponding to the route configuration parameter in the message queue communication route as a target message queue channel;
the communication unit is used for adding the transaction message into the target message queue channel so as to transmit the transaction message to a lower system corresponding to the target message queue channel through the target message queue channel, so that the communication between the upper system and the lower system is completed;
the first determination unit includes:
a first determining subunit, configured to determine a forwarding identifier in the route configuration parameter;
an obtaining subunit, configured to obtain a queue parameter of each message queue channel in the message queue communication route;
the first comparison subunit is configured to compare the forwarding identifier with a queue identifier in each queue parameter, so as to determine a queue identifier consistent with the forwarding identifier;
a second determining subunit, configured to determine, as a target message queue channel, a message queue channel corresponding to a queue identifier that is consistent with the forwarding identifier;
a second determining unit, configured to determine, for each message queue channel, a transaction data set of the message queue channel, where the transaction data set is composed of transaction message amounts of the message queue channel;
a third determining unit, configured to determine a time point of each transaction message amount in the transaction data set, and determine a preset time period to which each transaction message amount belongs based on the time point of each transaction message amount;
a fourth determining unit, configured to determine, based on each transaction message amount in each preset time period, a communication bandwidth in each preset time period to obtain a communication bandwidth of the message queue channel in each preset time period;
and the activation unit is used for activating a preset communication processing standby machine when the communication processing host machine in the message queue communication route is in an abnormal condition, so that the communication processing standby machine replaces the communication processing host machine to work, and the message queue communication route is enabled to normally run.
5. The apparatus of claim 4, further comprising:
the statistical unit is used for carrying out real-time statistics on the transaction message amount of each message queue channel in the message queue communication route;
and the judging unit is used for judging whether the message queue channel currently meets a preset early warning condition or not based on the transaction message amount counted currently for the message queue channel for each message queue channel, and sending preset alarm information if the message queue channel is determined to currently meet the early warning condition.
6. The apparatus according to claim 5, wherein the determining unit comprises:
the second comparison subunit is used for comparing the transaction message amount currently counted by the message queue channel with a preset threshold interval so as to determine whether the transaction message amount currently counted by the message queue channel is within the threshold interval;
and the judging subunit is used for judging that the message queue channel currently meets the early warning condition when the current statistical transaction message quantity of the message queue channel is determined not to be in the threshold interval.
CN202011062731.0A 2020-09-30 2020-09-30 Method and device for communication between systems Active CN112202614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011062731.0A CN112202614B (en) 2020-09-30 2020-09-30 Method and device for communication between systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011062731.0A CN112202614B (en) 2020-09-30 2020-09-30 Method and device for communication between systems

Publications (2)

Publication Number Publication Date
CN112202614A CN112202614A (en) 2021-01-08
CN112202614B true CN112202614B (en) 2023-01-24

Family

ID=74013858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011062731.0A Active CN112202614B (en) 2020-09-30 2020-09-30 Method and device for communication between systems

Country Status (1)

Country Link
CN (1) CN112202614B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116258B (en) * 2021-11-12 2024-05-07 苏州浪潮智能科技有限公司 Queue manager hot standby method, system, terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681462A (en) * 2016-03-14 2016-06-15 南京邮电大学 Cluster system based on message router, and data communication transfer method
CN105868032A (en) * 2016-03-28 2016-08-17 中国建设银行股份有限公司 Message processing system and method supporting multi-system access

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10341463B2 (en) * 2017-05-03 2019-07-02 International Business Machines Corporation System and method for message queue configuration in a network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681462A (en) * 2016-03-14 2016-06-15 南京邮电大学 Cluster system based on message router, and data communication transfer method
CN105868032A (en) * 2016-03-28 2016-08-17 中国建设银行股份有限公司 Message processing system and method supporting multi-system access

Also Published As

Publication number Publication date
CN112202614A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
US20150142940A1 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
CN102255926B (en) Method for allocating tasks in Map Reduce system, system and device
CN103338230B (en) A kind of processing method of business datum and system
CN114143270B (en) Bandwidth adjustment method and device
CN106657212A (en) Self-service terminal state monitoring method and system
CN102404760B (en) Method and device for real-time measurement of system performance
CN112202614B (en) Method and device for communication between systems
CN110602004A (en) Supervision data reporting, electronic device, equipment and computer readable storage medium
CN115002238A (en) Traffic transmission method, device, equipment and storage medium
CN102316483A (en) Method and device for ensuring quality of service (QoS) of application service in evolution-data optimized (EVDO) system
CN113055416B (en) Management method and device for container cluster node resource pool
CN112866985A (en) Flow control method, resource downloading method, device, equipment and storage medium
CN105376155B (en) A kind of Intelligent routing system and method based on distributed type assemblies framework
CN107707598A (en) The method and Internet of Things communication equipment of a kind of remote control Internet of Things communication equipment
CN103974224A (en) Credit control method and equipment
CN116703071A (en) Resource sharing method, device and equipment and storage medium
CN104244445A (en) Data package transmission method, access point and wireless communication system
CN106790411A (en) The non-polymeric port cascade system and method for virtual switch and physical switches
CN102523164A (en) System and method for implementing complex homologous and homoclinic flow division in network card
CN113727386B (en) Communication method and device
CN110209475B (en) Data acquisition method and device
CN113242292A (en) Message transmission method, device, equipment, medium and product
CN103546331A (en) Method, device and system for acquiring monitoring information
CN106408793A (en) Service-component sharing method and system applicable to ATM (Automatic Teller Machine) services
CN103516738A (en) Message distribution method, device and system

Legal Events

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