Gateway message distribution method and device, equipment and storage medium

A message distribution and gateway technology, which is applied in the transmission system, electrical components, etc., can solve the problem of low efficiency of gateway message distribution, facilitate system modularization and system transplantation, improve flexibility, improve uniformity and distribution efficiency Effect

Pending Publication Date: 2022-05-13
WEIKUN (SHANGHAI) TECH SERVICE CO LTD
0 Cites 1 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] The main purpose of this application is to provide a gateway message distribution method, device, equipment...
View more

Method used

For step S61, the present embodiment first encrypts the message information and the analytical model before sending the message information, and sends the decryption key and the first ciphertext separately, even if one of them is maliciously intercepted, it cannot Tampering with message content. After the target gateway receives the decryption key, it sends the encrypted first ciphertext to the target gateway, so that the target gateway can analyze and obtain the original message information and the analysis model. In addition, by encrypting the message information and the analysis model together, the first ciphertext of a whole packet can be obtained, which can avoid the loss of one of the data packets that may be caused by network fluctuations when the message information and the analysis model are sent separately, that is, to avoid the target After the gateway receives the message information, there is no analysis model for data analysis, and the problem of no message for analysis after the target gateway receives the analysis model is avoided, which improves the stability of data transmission.
The gateway message distribution method of above-mentioned execution, the present embodiment uniformly receives the business request instruction of different business systems through the first receiving interface, and identifies corresponding target system and business type by business request instruction, has avoided the need of business system The problem of adapting the channel gateway of each target system simplifies the complexity of the business system, improves the uniformity and efficiency of message distribution, and facilitates system modularization and system transplantation; through a set of preset general message rules Generate message information, so that this embodiment can output messages separately, without setting different message rules for each channel; after obtaining the target system corresponding to the above business request instruction, you can send the The target gateway initiates a communication request, so that the target gateway returns a connection signal after receiving the broadcast communication request, and the connection signal includes the address or domain name information of the target gateway, so as to obtain all possible communication paths directly with the target gateway, which improves the reporting rate. The flexibility of file transmission; by obtaining the path length, bandwidth and current load value of each communication path, and calculating the transmission status parameters, the current congestion status of each communication path can be obtained, so as to select a better communication According to the order of the path length from short to long, the transmission status parameters of the message channel are calculated according to the bandwidth and the current load value. Once a communication path is calculated to meet the first threshold range, it can be determined that the path is The length of all unobstructed paths is the shortest, thereby reducing the calculation amount of transmission state parameters, saving computing resources and computing time, and improving distribution efficiency.
This embodiment uniformly receives the service request instructions of different business systems through the first receiving interface, and identifies the corresponding target system and service type through the service request instructions, avoiding the need for the service system to adapt the channel gateway of each target system problem, which simplifies the complexity of the business system, improves the uniformity and efficiency of message distribution, and facilitates system modularization and system transplantation; message information is generated through a set of preset general message rules, making this embodiment It can output messages independently, without setting different message rules for each channel; after obtaining the target system corresponding to the above business request command, it can initiate a communication request to the target gateway of the target system, so that the target The gateway returns a connection signal after receiving the broadcast communication request, the connection signal includes the address or domain name information of the target gateway, thereby obtaining all possible communication paths directly with the target gateway, and improving the flexibility of message transmission; Acquire the path length, bandwidth and current load value of a communication path, and calculate the transmission status parameters, so as to obtain the current congestion state of each communication path, so as to select a better communication path for message distribution; according to the path length In order from short to long, the transmission status parameters of the message channel are calculated according to the bandwidth and the current load value. Once a communication path is calculated to meet the first threshold range, it can be determined that the path is the shortest among all unobstructed paths. Therefore, the calculation amount of transmission state parameters is reduced, calculation resources and calculation time are saved, and distribution efficiency is improved.
[0056] For step S1, the gateway message distribution of this embodiment, especially in the gateway message distribution process of the payment channel, can be based on artificial intelligence technology for service request instruction reception, target path selection and message distribution. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. . Since the distribution of gateway messages in the prior art is often carried out by the business system, the business system needs to adapt to different channel parameter requests. Therefore, a gateway message distribution method provided in this embodiment, through the first receiv...
View more

Abstract

The invention relates to the technical field of artificial intelligence, and discloses a gateway message distribution method and device, equipment and a storage medium, and the method comprises the steps: obtaining a corresponding target system and a service type according to a service request instruction; generating message information carrying the first identifier and an analysis model according to a preset message rule; obtaining each communication path with the target gateway; calculating a transmission state parameter of the message channel until the transmission state parameter of at least one communication path meets a first threshold range; taking the communication path of which the transmission state parameter meets the first threshold range as a target path; and placing the message information and the analysis model in a sending queue of the message channel, so that the target gateway analyzes the message information according to the received analysis model, and sends the analyzed message information to a corresponding function module of the target system according to the first identifier, thereby improving the distribution efficiency of the gateway message.

Application Domain

Transmission

Technology Topic

EngineeringReal-time computing +2

Image

  • Gateway message distribution method and device, equipment and storage medium
  • Gateway message distribution method and device, equipment and storage medium
  • Gateway message distribution method and device, equipment and storage medium

Examples

  • Experimental program(1)

Example Embodiment

[0047] In order to make the purpose of the present application, the technical solution and the advantages more clearly understood, the following combined with the accompanying drawings and embodiments, the present application will be further detailed in detail. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] Reference Figure 1 , in order to achieve the above-described object of invention, the present application proposes a gateway message distribution method, the method comprising:
[0049] S1: Receive the service request instructions sent by the service system through the first receiving interface, and obtain the corresponding target system and service type according to the service request instructions;
[0050] S2: Generate the corresponding first identifier according to the service type, generate the message information carrying the first identifier according to the preset message rules, and generate the resolution model of the message information;
[0051] S3: Broadcasts a communication request to the target gateway of the target system, and after receiving the connection signal returned by the target gateway, obtains each communication path between the target gateway and the target gateway;
[0052] S4: Obtain the path length, bandwidth and current load value of each communication path, and calculate the transmission status parameters of the message channel according to the order of the path length from short to long in the order of the path length from short to long, until there is at least one communication path of the transmission state parameters meet the first threshold range;
[0053] S5: The transmission status parameter satisfies the first threshold range of the communication path as the destination path;
[0054] S6: According to the target path to establish a message channel, the message information and the resolution model is placed in the transmission queue of the message channel, so that the target gateway according to the received resolution model to resolve the message information, according to the first identification of the resolved message information is sent to the corresponding functional module of the target system.
[0055] The present embodiment uniformly receives business request instructions of different service systems through the first receiving interface, and identifies the corresponding target system and service type through the service request instructions, avoids the problem that the service system needs to adapt to the channel gateway of each target system, simplifies the complexity of the business system, improves the uniformity and distribution efficiency of message distribution, facilitates system modularization and system portability, generates message information through a set of preset general message rules, so that the present embodiment can be output separately from the outside world, There is no need to set different message rules for each channel; when the target system corresponding to the above-mentioned business request instructions is obtained, a communication request can be initiated to the target gateway of the target system, so that the target gateway returns a connection signal after receiving the broadcast communication request, the connection signal includes the address or domain name information of the target gateway, thereby obtaining all possible communication paths directly with the target gateway, improving the flexibility of message transmission; through the path length of each communication path, Bandwidth and current load value are obtained, and the transmission status parameters are calculated, so as to obtain the current congestion state of each communication path, so as to facilitate the selection of a better communication path for packet distribution; according to the order of path length from short to long, the transmission status parameters of the message channel are calculated sequentially according to the bandwidth and the current load value, once a communication path meets the first threshold range, it can be determined that the path is the shortest length of all unobstructed paths, thereby reducing the amount of computation of transmission status parameters. Save computing resources and computing time, and improve distribution efficiency.
[0056] For step S1, the present embodiment of the gateway message distribution, especially the payment channel gateway message distribution process, may be based on artificial intelligence technology for business request instruction reception, target path selection and message distribution. Among them, artificial intelligence (AI) is the use of digital computers or digital computer-controlled machines to simulate, extend and extend human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results of the theory, method, technology and application system. Since the gateway message distribution in the prior art is often carried out by the business system, resulting in the service system needs to adapt to different channel parameter requests, therefore, a gateway message distribution method provided in the present embodiment, through the first receiving interface to uniformly receive business request instructions of the business system, such as payment instructions, withdrawal instructions, etc., that is, the business system directly outputs business request instructions, and there is no need to modify the business system to adapt to different channel gateways. Specifically, the above-described business request instruction carries a business channel and business type identification, so that the present embodiment through the identification of the corresponding target system and business type of the business request instruction, the above target system may be industrial and commercial bank, agricultural bank, Bank of China, Ping An pay and other payment platforms, business types may be recharge, withdrawal, transfer and the like. This application uniformly receives the service request instructions of different service systems through the first receiving interface, and identifies the corresponding target system and service type through the service request instructions, avoids the problem that the business system needs to adapt to the channel gateway of each target system, simplifies the complexity of the business system, and improves the unity and distribution efficiency of message distribution.
[0057] For step S2, the message information is generated by a set of preset universal message rules, so that the present embodiment can be output separately from the outside, and there is no need to set different message rules for each channel. Exemplarily, the target gateway message can be used to general Json format specification: the above first identification is defined as a businessType field, the field is used to mark the type of business that needs to be called, such as transfer, withdrawal, etc., through the businessType field can know which business interface to dock the target system; the above target system is defined as a paymentChannel field, Through the paymentChannel field, you can know which bank or payment company channel is docked, so as to accurately distribute the message information to the corresponding target gateway; the Gson string of the channel request parameter of the target system is defined as the dataStr field, and the dataStr field is an abstract channel request parameter, which means that the target gateway of each target system is parsed through the parsing model to achieve decoupling of business data and different channel request parameters. The versatility and scope of application of this application has been improved.
[0058] For step S3, when obtaining the target system corresponding to the above-described service request instructions, a communication request can be initiated to the target gateway of the target system, so that the target gateway returns a connection signal after receiving the broadcast communication request, the connection signal includes the address or domain name information of the target gateway, thereby obtaining all possible communication paths directly with the target gateway, improving the flexibility of message transmission.
[0059] For step S4, because in the process of data transmission, some transmission paths may pass through workstations, servers and other network nodes, in order to facilitate the comparison of the current advantages and disadvantages of each communication path, the present application of each feasible communication path path length, bandwidth and current load value to obtain, and in the order of path length from short to long; in general, other conditions of the same case The shorter the path length, the shorter the transmission time to the target gateway, however, in the actual communication process, Shorter length of the communication path may be because the current transmission load is too large into the congestion state, therefore, need to combine the bandwidth of the communication path and the current load value to calculate its transmission status parameters, if the parameter does not meet the preset threshold range, it means that the communication path is more congested, currently not suitable for data transmission; if the parameter meets the preset threshold range, it means that the communication path is more smooth, the current more suitable for data transmission. The present application obtains the path length, bandwidth and current load value of each communication path, and calculates the transmission status parameters, so as to obtain the current congestion state of each communication path, so as to facilitate the selection of a better communication path for message distribution.
[0060] For step S5, if each packet distribution needs to be calculated for each communication path transmission status parameters, the same will also cause a reduction in transmission efficiency, therefore, the present application according to the path length from short to long order, in turn according to the bandwidth and the current load value to calculate the transmission status parameters of the message channel, once calculated to a communication path to meet the first threshold range, it can be determined that the path is the shortest length of all smooth paths. Exemplarily, if there is a path L1, L2, L3, respectively, the corresponding path length is l1, l2, l3, and l1 < l2< l3, in the calculation process, the transmission state parameters of path L1 are preferentially calculated, if the first threshold range is not met, the transmission state parameters of the path L2 are calculated, if the first threshold range is met, the L2 is used as the target path, and the transmission status parameters of the path L3 are no longer calculated, thereby reducing the amount of transmission status parameters, saving computing resources and calculation time, Improved distribution efficiency.
[0061] For step S6, after calculating the optimal communication path, the communication path is used as the above target path, so that the target path is used as a message channel to avoid the problem of reduced transmission efficiency due to path congestion; after the establishment of the message channel, the message information and the corresponding parsing model are placed in the send queue, when the target gateway of the target system receives the above parsing model, the request parameter Gson string in the packet information is parsed according to the above parsing model, and the parsing result is obtained. And according to the first identifier, the message information is sent to the corresponding functional module; exemplarily, if the first identifier corresponds to the transfer business, the analysis result obtained after the parsing is sent to the transfer business module of the target system, so as to facilitate the target system to respond to the transfer function. This application by sending the message information and the parsing model together to the target gateway, so that the technical output can be provided separately to the outside world; the external company can quickly dock as long as it follows the general specifications of the message.
[0062] In one embodiment, the calculation method of the current load value, comprising:
[0063] S41: In the first time period, the first load value of several of the communication paths is obtained at preset intervals;
[0064] S42: The first load value is normally distributed calculation, the abnormal load value in the first load value is filtered, and the filtered first load value is taken as the second load value;
[0065] S43: The second load value is weighted to correct, to obtain the current load value.
[0066] The present embodiment by correcting the load value, to avoid the problem of large deviation of the load value obtained at a certain time due to network fluctuations and other reasons in the load value acquisition of the communication path.
[0067] For step S42, in the acquisition of the load value of the communication path, there will inevitably be a problem of a large deviation in the load value obtained at a certain time due to network fluctuations and other reasons, in order to solve the above problem, the present embodiment in the first time period T1, in accordance with the preset interval t1 sequentially obtain n times the first load value, so as to use the normal distribution calculation method to exclude the value of the large deviation in the first load value, specifically, according to the definition of the normal distribution can be known, The probability of the load falling within a 1x standard deviation from the mean is 68.2%, the probability of falling within a 2-fold standard deviation from the mean is 95.4%, and the probability of falling within a 3-fold standard deviation from the mean is 99.6%, so the values of the above first load values that fall within the 2-fold standard deviation from the mean and within the plus-minus 3 standard deviations from the mean can be used as abnormal load values, filter the above abnormal load values, and re-use the remaining first load values as several second load values.
[0068] For step S43, after filtering the abnormal load value, it is understandable that if the mean of the second load value is directly calculated and the mean is taken as the current load value, it means that the second load value at each moment is consistent with the contribution of the current load value, but in the actual communication path, the closer the acquisition time to the current moment, the greater the proportion of the influence of the second load value on the current load value, therefore, the weight of each second load value may be set incrementally according to the acquisition time, exemplary, when including three of the above second load values , the weight can be corrected to 5%, 20%, 75% of the proportion.
[0069] In one embodiment, the transmission state parameters of the message channel are calculated according to the bandwidth and the current load value, comprising:
[0070] S44: set the first weighting factor corresponding to the bandwidth, and the second weighting coefficient corresponding to the current load value;
[0071] S45: The bandwidth is weighted according to the first weighting coefficient and the second weighting coefficient, and the transmission status parameters are obtained.
[0072] The present embodiment by setting a weighting factor, and according to the first weighting coefficient and the second weighting coefficient of the bandwidth weighted calculation to obtain the transmission state parameters, thereby achieving quantification of the communication path state.
[0073] For step S45, in the communication process, when other variables are unchanged, the greater the bandwidth, the higher the transmission efficiency of the data; the smaller the current load value of a communication path, the greater the transmission efficiency of the data, however, in the actual communication, if the current load value of the communication path with large bandwidth is large, it also means that its transmission efficiency may be lower than the communication path with small bandwidth; therefore, in order to quantify the transmission state parameters, the present embodiment sets a weighting factor by respectively the bandwidth and the current load value, In order to more fully reflect the impact of the two on the transmission status parameters. Since the bandwidth size is positively correlated with the transmission efficiency, and the current load value is negatively correlated with the transmission efficiency, the first weighting coefficient and the second weighting coefficient may be set as the opposite of the sign, exemplary, the first weighting coefficient may be 70%, and the second weighting coefficient may be -30%.
[0074] In one embodiment, after broadcasting a communication request to the target gateway of the target system, further comprising:
[0075] S31: Performs the first wait time timing;
[0076] S32: If the first waiting time exceeds the preset timeout timeout, the connection signal is not received, the target gateway of the target system broadcasts the communication again requested, and the second waiting time is performed technical timing;
[0077] S33: If the second waiting time exceeds the timeout time, the connection signal is not received, the target error signal is returned to the business system, so that the business system retransmits the service request instruction until the connection signal is received.
[0078] By waiting time, the present embodiment determines whether the cause of the corresponding target system cannot be queried is a network problem or an abnormal instruction problem, so as to initiate the correct service request again, and improve the efficiency and stability of the service request.
[0079] For step S32, since the present embodiment is based on the business request instructions to obtain the corresponding target system, if the business system sends a business request instruction error, it will cause the corresponding target system can not be queried. In actual communication, in order to exclude the impact of the communication network, after a broadcast, wait for a certain amount of time, if the connection information is not received within that time, then initiate another request.
[0080] For step S33, if the above connection signal is still not received within the timeout period, it is determined that the service request instruction is abnormal, and the target error signal is sent to the business system at this time, so that the business system automatically or the management personnel of the business system manually regenerate and send the corresponding business request instructions.
[0081] In one embodiment, the target gateway broadcast communication request to the target system, comprising:
[0082] S34: The signal analysis of the connection signal, to obtain the identity information of the target system carried in the connection signal;
[0083] S35: Verify whether the identity information is consistent with the request object information carried in the communication request, if consistent, obtain each communication path between the target gateway, if inconsistent, rebroadcast the communication request.
[0084] The present embodiment by signal analysis of the connection signal, to obtain the identity information of the target system carried in the connection signal, and the identity information is verified, thereby avoiding the problem of establishing a communication connection with the wrong target gateway.
[0085] For step S34, in order to avoid the problem of establishing a communication connection with the wrong target gateway, the present embodiment adopts the form of authentication, the connection signal returned by the target system is parsed to obtain its identity information.
[0086] For step S35, if the identity information is consistent with the request object, it may be considered that the target system returning the connection signal is correct, at which point each feasible communication path to the target gateway of the target system can be obtained, in order to facilitate the finding of a suitable communication path handshake to establish a communication connection. If the identity information is inconsistent with the requested object, the above communication request is rebroadcast to facilitate connection to the correct target system.
[0087] In one embodiment, the message channel is established according to the target path, further comprising:
[0088] S601: The message information and the parsing model are encrypted according to the encryption key, and the first ciphertext is obtained;
[0089] The message information and the resolution model are placed in the transmission queue of the message channel, so that the target gateway parses the message information according to the parsing model received, comprising:
[0090] S61: The decryption key corresponding to the encryption key is sent to the target gateway, so that the target gateway returns a received success signal;
[0091] S62: After receiving the received successful signal, the first ciphertext is placed in the transmission queue of the message channel, so that the target gateway decrypts the first ciphertext according to the decryption key received, to obtain the message information and the parsing model.
[0092] The present embodiment encrypts the data to be sent by the encryption key, improves the security of the communication process, and avoids being maliciously intercepted or tampered with the message information leading to economic losses to the customer and the payment platform.
[0093] For step S61, the present embodiment before sending the message information, the message information and the parsing model are first encrypted, and the decryption key and the first ciphertext are sent separately, even if one of them is maliciously intercepted, the message content can not be tampered with. When the target gateway receives the decryption key, the first encrypted ciphertext is sent to the target gateway so that the target gateway can parse the original message information and the parsing model. In addition, by encrypting the packet information and the parsing model together, a whole packet of the first ciphertext can be obtained, which can avoid the loss of one of the packets due to network fluctuations when sending the packet information separately, that is, to avoid the problem that the target gateway has no parsing model to parse the data after receiving the packet information, and to avoid the problem that the target gateway has no packet parsable after receiving the parsing model, which improves the stability of data transmission.
[0094] In one embodiment, the transmission status parameter satisfies the first threshold range of the communication path as the target path, further comprising:
[0095] S501: When the transmission status parameter of the communication path does not exist to meet the first threshold range, the path busy signal is transmitted to the user;
[0096] S502: Receiving the path selection signal returned by the user according to the path busy signal, the corresponding communication path of the signal is selected according to the path as the target path.
[0097] The present embodiment by sending a busy path signal to the user and selecting the target path according to the path busy signal, to avoid the problem of low efficiency in the selection of the target path due to the busy path.
[0098] For step S501, in a specific embodiment, if it is in a busy period of time, there may be a situation where each communication path does not meet the transmission status parameters, if the transmission status parameters have been calculated until at least one communication path meets the first threshold range, it will lead to a reduction in the transmission efficiency of the message. Therefore, when the transmission status parameters of each communication path are identified and do not meet the first threshold range, a busy path signal can be sent to the user so that the user can actively select the message transmission path.
[0099] For step S502, when the user receives a busy path signal, the path selection signal can be returned manually, at this time the communication path selected by the user can be used as the target path for sending messages according to the path selection signal.
[0100] Reference Figure 2 The present application also proposes a gateway message distribution device, comprising:
[0101] Service acquisition module 100, for receiving business request instructions sent by the business system through the first receiving interface, obtaining the corresponding target system and service type according to the service request instructions;
[0102] Parsing model generation module 200, for generating a corresponding first identifier according to the business type, generating a message information carrying the first identifier according to the preset message rules, and generating the resolution model of the message information;
[0103] Communication path acquisition module 300 for broadcasting a communication request to the target gateway of the target system, and after receiving the connection signal returned by the target gateway, each communication path between the target gateway and the target gateway is obtained;
[0104] Path state calculation module 400, for obtaining the path length, bandwidth and current load value of each of the communication paths, and in the order of the path length from short to long, according to the bandwidth and the current load value in turn to calculate the transmission status parameters of the message channel, until there is at least one communication path of the transmission status parameters meet the first threshold range;
[0105] Target path selection module 500 for the transmission status parameter satisfies the first threshold range of the communication path as the destination path;
[0106] Message information transmission module 600, for establishing a message channel according to the target path, the message information and the parsing model are placed in the transmission queue of the message channel, so that the target gateway parses the message information according to the parsing model received, and transmits the resolved message information to the corresponding functional module of the target system according to the first identification.
[0107] The present embodiment uniformly receives business request instructions of different service systems through the first receiving interface, and identifies the corresponding target system and service type through the service request instructions, avoids the problem that the service system needs to adapt to the channel gateway of each target system, simplifies the complexity of the business system, improves the uniformity and distribution efficiency of message distribution, facilitates system modularization and system portability, generates message information through a set of preset general message rules, so that the present embodiment can be output separately from the outside world, There is no need to set different message rules for each channel; when the target system corresponding to the above-mentioned business request instructions is obtained, a communication request can be initiated to the target gateway of the target system, so that the target gateway returns a connection signal after receiving the broadcast communication request, the connection signal includes the address or domain name information of the target gateway, thereby obtaining all possible communication paths directly with the target gateway, improving the flexibility of message transmission; through the path length of each communication path, Bandwidth and current load value are obtained, and the transmission status parameters are calculated, so as to obtain the current congestion state of each communication path, so as to facilitate the selection of a better communication path for packet distribution; according to the order of path length from short to long, the transmission status parameters of the message channel are calculated sequentially according to the bandwidth and the current load value, once a communication path meets the first threshold range, it can be determined that the path is the shortest length of all unobstructed paths, thereby reducing the amount of computation of transmission status parameters. Save computing resources and computing time, and improve distribution efficiency.
[0108] In one embodiment, the path state calculation module 400, further for:
[0109] In the first time period, the first load value of several of the communication paths is obtained at preset time intervals;
[0110] The first load value is normally distributed calculation, the abnormal load value in the first load value is filtered, and the filtered first load value is taken as the second load value;
[0111] The second load value is weighted to obtain the current load value.
[0112] In one embodiment, the path state calculation module 400, further for:
[0113] Set the first weighting factor corresponding to the bandwidth, and the second weighting coefficient corresponding to the current load value;
[0114] According to the first weighting coefficient and the second weighting coefficient, the bandwidth is weighted to obtain the transmission status parameters.
[0115] In one embodiment, the communication path acquisition module 300, further for:
[0116] Perform the first wait time timing;
[0117] If the first waiting time exceeds the preset timeout timeout, the connection signal is not received, the target gateway broadcast communication to the target system is requested again, and the second waiting time is performed technical timing;
[0118] If the second waiting time exceeds the timeout time, the connection signal is not received, the target error signal is returned to the business system, so that the business system retransmits the service request instruction until the connection signal is received.
[0119] In one embodiment, the communication path acquisition module 300, further for:
[0120] The signal analysis of the connection signal, to obtain the identity information of the target system carried in the connection signal;
[0121] Verify whether the identity information is consistent with the information of the request object carried in the communication request, if consistent, obtain each communication path between the gateway and the target, if inconsistent, rebroadcast the communication request.
[0122] In one embodiment, the message message transmitting module 600, further for:
[0123] According to the encryption key, the message information and the parsing model are encrypted, and the first ciphertext is obtained;
[0124] The message information and the resolution model are placed in the transmission queue of the message channel, so that the target gateway parses the message information according to the parsing model received, comprising:
[0125] The decryption key corresponding to the encryption key is sent to the target gateway, so that the target gateway returns a signal of receiving success;
[0126] After receiving the receiving success signal, the first ciphertext is placed in the transmission queue of the message channel, so that the target gateway decrypts the first ciphertext according to the decryption key received, to obtain the message information and the parsing model.
[0127] In one embodiment, further comprising a manual selection module 700 for:
[0128] When the transmission status parameter of the communication path does not exist to meet the first threshold range, the path busy signal is transmitted to the user;
[0129] Receiving the path selection signal returned by the user according to the path busy signal, the corresponding communication path of the signal is selected according to the path as the target path.
[0130] Reference Figure 3 , in the embodiment of the present application also provides a computer apparatus, the computer apparatus may be a server, its internal structure may be as follows Figure 3 as shown. The computer apparatus comprises a processor, memory, network interface and database connected via a system bus. Among them, the computer is designed with processors designed to provide computing and control capabilities. The memory of the computer apparatus includes a nonvolatile storage medium, an internal memory. This non-volatile storage medium stores the operating system, computer programs, and databases. The memory device provides an environment for the operation of operating systems and computer programs in non-volatile storage media. The database of the computer device is used to store data such as the gateway message distribution method. The network interface of the computer device is used to communicate with external terminals through a network connection. The computer program is executed by the processor to implement a gateway message distribution method. The gateway message distribution method, comprising: receiving business request instructions sent by the service system through the first receiving interface, obtaining the corresponding target system and service type according to the service request instructions; generating a corresponding first identifier according to the service type, generating a message information carrying the first identification according to the preset message rules, and generating the resolution model of the message information; Obtain each communication path between the target gateway and the path length, bandwidth and current load value of each of the communication paths, and in the order of the path length from short to long, the transmission status parameters of the message channel are calculated sequentially according to the bandwidth and the current load value, until there is at least one communication path of the transmission state parameter satisfies the first threshold range; the transmission state parameter satisfies the first threshold range of the communication path as the target path Establish a message channel according to the target path, the message information and the resolution model are placed in the transmission queue of the message channel, so that the target gateway resolves the message information according to the parsing model received, and the resolved message information is sent to the corresponding functional module of the target system according to the first identification.
[0131] One embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program is executed by the processor to implement a gateway message distribution method, comprising steps: receiving a business request instruction sent by the business system through the first receiving interface, obtaining the corresponding target system and business type according to the business request instructions; And generate the resolution model of the message information; broadcast the communication request to the target gateway of the target system, and after receiving the connection signal returned by the target gateway, obtain each communication path between the target gateway; obtain the path length, bandwidth and current load value of each of the communication paths, and calculate the transmission status parameters of the message channel according to the order of the path length from short to long, Until there is at least one communication path of the transmission state parameter satisfies the first threshold range; the transmission status parameter satisfies the first threshold range of the communication path as the target path; according to the target path to establish a message channel, the message information and the resolution model is placed in the transmission queue of the message channel, so that the target gateway parses the message information according to the parsing model received, According to the first identification, the resolved message information is transmitted to the corresponding functional module of the target system.
[0132] The above-described gateway message distribution method, the present embodiment uniformly receives business request instructions of different business systems through the first receiving interface, and identifies the corresponding target system and service type through the business request instructions, avoids the problem that the business system needs to adapt to the channel gateway of each target system, simplifies the complexity of the business system, improves the uniformity and distribution efficiency of message distribution, facilitates system modularization and system transplantation, and generates message information through a set of preset general message rules, So that the present embodiment can be a separate external message output, do not need to set different message rules for each channel; when obtaining the target system corresponding to the above-described business request instructions, the target gateway can initiate a communication request to the target gateway of the target system, so that the target gateway returns the connection signal after receiving the broadcast communication request, the connection signal includes the address or domain name information of the target gateway, thereby obtaining all possible communication paths directly with the target gateway, improving the flexibility of message transmission By obtaining the path length, bandwidth and current load value of each communication path, and calculating the transmission status parameters, so as to obtain the current congestion state of each communication path, so as to facilitate the selection of the better communication path for packet distribution; according to the order of path length from short to long, the transmission status parameters of the message channel are calculated sequentially according to the bandwidth and the current load value, and once a communication path meets the first threshold range, it can be determined that the path is the shortest length of all smooth paths. Therefore, the amount of computation of transmission status parameters is reduced, computing resources and computing time are saved, and distribution efficiency is improved.
[0133] Those of ordinary skill in the art will appreciate that all or part of the process of implementing the above embodiment method, may be completed by a computer program to instruct the relevant hardware, the computer program may be stored in a nonvolatile computer-readable storage medium, the computer program when executed, may include a process such as embodiments of the above methods. Wherein, any reference to memory, storage, database, or other media used in the present application and embodiments may include nonvolatile and / or volatile memory. Nonvolatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration rather than a limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), two-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchlink (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM ( DRDRAM), as well as memory bus dynamic RAM (RDRAM), etc.
[0134] It should be noted that, in this context, the term "comprising", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, apparatus, article or method comprising a series of elements includes not only those elements, but also other elements not expressly listed, or also elements inherent in such processes, devices, articles or methods. In the absence of further restrictions, an element defined by the statement "including a ..."does not preclude the existence of another identical element in the process, apparatus, article or method of including that element.
[0135] The above is only a preferred embodiment of the present application, and does not therefore limit the patent scope of the present application, where the equivalent structure or equivalent process transformation made by using the contents of the present application specification and drawings, or directly or indirectly applied to other relevant technical fields, are similarly included in the scope of patent protection of this application.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Virtual reality system free viewpoint switching method

ActiveCN103871109Asimplify complexity
Owner:HUIZHOU DESAY AUTOMATION TECH

Fuzzy control irrigation method

InactiveCN104719100Asimplify complexityEliminate volatility issues
Owner:WUXI WISEN INNOVATION TECH

SISO balancing method based on sampling rate data and balancer

Owner:CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST

Classification and recommendation of technical efficacy words

  • simplify complexity
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products