CN111130714B - Data transmission method, device, electronic equipment and computer readable medium - Google Patents
Data transmission method, device, electronic equipment and computer readable medium Download PDFInfo
- Publication number
- CN111130714B CN111130714B CN201911193794.7A CN201911193794A CN111130714B CN 111130714 B CN111130714 B CN 111130714B CN 201911193794 A CN201911193794 A CN 201911193794A CN 111130714 B CN111130714 B CN 111130714B
- Authority
- CN
- China
- Prior art keywords
- information transmission
- transmission channel
- information
- retry
- retry request
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 384
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000004044 response Effects 0.000 claims abstract description 64
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 12
- 230000003993 interaction Effects 0.000 description 6
- 230000009471 action Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1867—Arrangements specially adapted for the transmitter end
- H04L1/1893—Physical mapping arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The application relates to a data transmission method, a data transmission device, an electronic device and a computer readable medium, wherein a first retry failure response which is sent by an information provider through a first information transmission channel and responds to a first retry request is received; determining whether a second information transmission channel different from the first information transmission channel exists in the information transmission channels corresponding to the information providers; determining a second retry request corresponding to a second information transmission channel according to the first retry request; and sending a second retry request to the information provider through a second information transmission channel, so as to achieve the purpose of sending the retry request to the information provider again through an information transmission channel different from the first information transmission channel, and generating a second retry request corresponding to the second information transmission channel according to the content of the first retry request, so as to achieve the purpose of selecting different payment channels for retry without using the original channel for retry, thereby improving the success rate of request retry.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data transmission method, an apparatus, an electronic device, and a computer-readable medium.
Background
With the development of the internet era, various online payment channels are released by various banks, the era of going to bank for deposit and taking money is close to the end, and more people begin to favor a convenient and quick online payment mode.
The existing transaction system mainly adopts an asynchronous interaction mode to process a payment order of a user, when the transaction system receives the payment order of the user, a transaction request is generated and sent to a target bank system through a pre-established payment channel, at present, the transaction system mainly adopts the asynchronous interaction mode transaction request, and the asynchronous interaction mode transaction system has the advantages that after the transaction system sends the transaction request to the bank system, the transaction system does not need to wait for a response corresponding to the transaction request returned by the bank system, and can send the next request to the bank system at any time, for example: the transaction system sends the transaction request of the order A to the bank system through the payment channel, and then sends the transaction request of the order B, at the moment, the transaction system receives the transaction failure information of the order A fed back by the bank system, and the transaction feedback result of the order B does not need to be waited for, and the transaction request of the order A can be sent to the bank system through the payment channel again to realize the process of order supplement.
However, in the process of implementing the invention, the inventor finds that in the prior art, when the order is supplemented in an asynchronous interaction mode, the transaction request is transmitted through the same payment channel, and when the payment channel is in failure or is closed, the order transaction cannot be completed no matter how many times the order is supplemented.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present application provide a data transmission method, an apparatus, an electronic device, and a computer-readable medium.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method includes:
receiving a first retry failure response sent by the information provider through the first information transmission channel and responding to the first retry request;
determining whether a second information transmission channel different from the first information transmission channel exists in an information transmission channel corresponding to the information provider;
if a second information transmission channel different from the first information transmission channel exists, determining a second retry request corresponding to the second information transmission channel according to the first retry request;
and sending the second retry request to the information provider through the second information transmission channel.
Optionally, before the step of determining a second retry request corresponding to a second information transmission channel according to the first retry request, the method further includes:
determining whether there are a plurality of information transmission channels different from the first information transmission channel;
if a plurality of information transmission channels different from the first information transmission channel exist, acquiring the historical transmission success rate of each information transmission channel;
and determining the information transmission channel with the highest historical transmission success rate as the second information transmission channel, and executing the step of generating a second retry request corresponding to the second information transmission channel according to the first retry request.
Optionally, the method further comprises:
receiving an information transmission response returned by the information provider through a second information transmission channel;
and determining the historical transmission success rate of the second information transmission channel according to the information transmission response received in the history.
Optionally, the step of determining a second retry request corresponding to a second information transmission channel according to the first retry request includes:
acquiring channel configuration information corresponding to the second information transmission channel;
and generating the second retry request according to the first retry request and the channel configuration information.
Optionally, after the step of sending the second retry request to the information provider through the second information transmission channel, the method further includes:
if a second retry failure response which is sent by the information provider through a second information transmission channel and responds to a second retry request is received, sending the second retry request to the information provider through the second information transmission channel again to perform transmission retry of the second information transmission channel;
if the second information transmission channel fails to retry transmission, determining whether a third information transmission channel different from the second information transmission channel exists in the information transmission channel corresponding to the information provider;
determining a third retry request corresponding to a third transmission channel according to the first retry request or the second retry request;
and sending the third retry request to the information provider through the third information transmission channel.
Or,
after the step of sending the second retry request to the information provider again through the second information transmission channel, the method further includes:
if a second retry failure response sent by the information provider is received, sending the second retry request to the information provider through the second information transmission channel again;
and if the number of times of receiving the second retry failure response is greater than a first preset threshold value, or the retry duration of the second information transmission channel transmission retry for multiple times is greater than the first preset duration, determining that the second information transmission channel transmission retry fails.
Optionally, before the step of receiving a first retry failure response in response to the first retry request sent by the information provider through the first information transmission channel, the method further includes:
sending an information transmission request to an information provider through a first information transmission channel;
judging whether an information transmission failure response sent by an information provider in response to the information transmission request is received;
and if the information transmission failure response is received, sending a first retry request to the information provider through a first information transmission channel.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, further including:
a receiving module, configured to receive a first retry failure response sent by an information provider through a first information transmission channel in response to a first retry request;
a determining module configured to determine whether a second information transmission channel different from the first information transmission channel exists in an information transmission channel corresponding to the information provider;
a generating module, configured to determine, according to the first retry request, a second retry request corresponding to a second information transmission channel if the second information transmission channel different from the first information transmission channel exists;
and the sending module is used for sending the second retry request to the information provider through the second information transmission channel.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor configured to implement the data transmission method according to any one of the first aspect when executing a program stored in the memory.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program of a data transmission method is stored on the computer-readable storage medium, and when executed by a processor, the program of the data transmission method implements the steps of the data transmission method according to any one of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the embodiment of the application receives a first retry failure response which is sent by an information provider through a first information transmission channel and responds to a first retry request; determining whether a second information transmission channel different from the first information transmission channel exists in an information transmission channel corresponding to the information provider; if a second information transmission channel different from the first information transmission channel exists, determining a second retry request corresponding to the second information transmission channel according to the first retry request; and sending the second retry request to the information provider through the second information transmission channel, so as to fulfill the aim of sending the retry request to the information provider again through an information transmission channel different from the first information transmission channel.
According to the embodiment of the application, the second information transmission channel different from the first information transmission channel is determined, and the second retry request corresponding to the second information transmission channel is generated according to the content of the first retry request, so that the purpose that the original channel is not used for retry, but different payment channels are selected for retry is achieved, and the success rate of request retry is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a channel control method according to an embodiment of the present disclosure;
fig. 2 is another schematic flow chart of a channel control method according to an embodiment of the present disclosure;
fig. 3 is another schematic flow chart of a channel control method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of step S103 in fig. 1 according to an embodiment of the present disclosure;
fig. 5 is another schematic flow chart of a channel control method according to an embodiment of the present disclosure;
fig. 6 is another schematic flow chart of a channel control method according to an embodiment of the present disclosure;
fig. 7 is a structural diagram of a channel control device according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, in the prior art, in the process of order replenishment in an asynchronous interaction mode, transaction requests are transmitted through the same payment channel, and when the payment channel is in fault or is closed, order transaction cannot be completed no matter how many times the order is replenished. For example: in the payment field, the same bank system may be connected to a server through a plurality of payment channels, where a payment channel may be a unionpay payment channel, or an internet payment channel, or other channels for payment, and when a server receives a transaction order corresponding to the bank, the server sends the transaction order to the bank system through a payment channel a, at this time, because of a bank system maintenance or other network problems, the bank system may feed back a transaction failure response to the server, and currently, only a retry request is continuously sent to the bank system through the payment channel a until the bank system feeds back a transaction success response, but if the payment channel a fails or the payment channel a is disabled due to an internet problem, even if the transaction is attempted for many times, a normal information interaction process cannot be implemented, based on which, the present embodiment provides a data transmission method, which may be applied to the payment field, and the data transmission may be applied to the server, that is implemented by the following method embodiments, as shown in fig. 1, the method includes:
step S101, receiving a first retry failure response which is sent by an information provider through a first information transmission channel and responds to a first retry request;
in an embodiment of the present invention, the information provider may be a system connected to a server, for example, in the payment field, the information provider may be an a bank system, a B bank system, or other bank systems. The information transmission channel may refer to a third-party financial institution through which a bank (information provider) makes a payment to a payee, a transaction channel provided by the third-party financial institution, and may exemplarily refer to a unionpay channel or an internetwork payment channel, and the like.
The first retry request may refer to request information for transmission in the first information transmission channel, and specifically may be a transaction retry request, or a login retry request, and the first retry failure response corresponds to the first retry request, where after receiving the first retry request, the information provider returns the server first retry failure response if the first retry request does not satisfy processing conditions of the information provider, and for example, when an authentication password carried in the first retry request is incorrect, the information provider returns the server first retry failure response, or when the information provider cannot process the first retry request, the server first retry failure response is also returned, and the specific situation may be determined according to an actual situation.
Step S102, determining whether a second information transmission channel different from the first information transmission channel exists in the information transmission channel corresponding to the information provider;
in the embodiment of the present invention, the same information provider may have multiple information transmission channels connected to the server, for example: the bank system A is connected with the server through 2 bank payment channels and 5 network payment channels.
The manner of specifically determining whether or not there is a second information transmission channel different from the first information transmission channel in this step is not certain, for example: and acquiring an information transmission channel identifier corresponding to the information provider from a database, and searching whether an identifier different from the first information transmission channel identifier exists or not, thereby determining a second information transmission channel different from the first information transmission channel. The specific implementation may depend on the actual situation.
If a second information transmission channel different from the first information transmission channel exists, executing step S103, determining a second retry request corresponding to the second information transmission channel according to the first retry request;
in the embodiment of the present invention, the first retry request may include request content and a protocol cipher, or other content, and because the first information transmission channel is different from the second information transmission channel, and may be different in the used transmission protocol and different in the transmission format, the determination manner of the second retry request may exemplarily retain the content information and the protocol cipher in the first retry request, and then encapsulate the content information and the protocol cipher into the second retry request meeting the transmission condition of the second information transmission channel, so as to achieve the purpose of sending the retry request to the information provider by using the second information transmission channel, and no longer use the original channel for retry, thereby avoiding the situation that multiple retries fail due to a failure of the information transmission channel, and further improving the success rate of request retries.
In addition, if there is no second information transmission channel different from the first information transmission channel, the running program is ended.
And step S104, sending the second retry request to the information provider through the second information transmission channel.
In the embodiment of the invention, first, a first retry failure response which is sent by an information provider through a first information transmission channel and responds to a first retry request is received, so that a second information transmission channel which is different from the first information transmission channel is determined in the information transmission channel connected with the information provider, then a second retry request which can be transmitted in the second information transmission channel is generated according to the first retry request, and finally the second retry request is sent to the information provider through the second information transmission channel, so that the aim of sending the retry request to the information provider again after the information transmission channel is switched is fulfilled, the original channel is prevented from being retried, and the success rate of request retry is improved due to the condition that the retry failure is caused by the failure of the information transmission channel.
In another embodiment provided by the present invention, an optional implementation manner is further provided, and further, as shown in fig. 2, before the step of determining, according to the first retry request, a second retry request corresponding to a second information transmission channel in step S103, the method further includes:
step S201, determining whether a plurality of information transmission channels different from the first information transmission channel exist;
in the embodiment of the present invention, the information transmission channel may refer to an information transmission channel different from the first information transmission channel, for example: there are 4 information transmission channels corresponding to the information provider, the information transmission channel 01, the information transmission channel 02, the information transmission channel 03, and the information transmission channel 04, and when the information transmission channel 02 is used for the first retry request, the information transmission channel 01, the information transmission channel 03, and the information transmission channel 04 may be all information transmission channels different from the first information transmission channel, wherein there may be a plurality of information transmission channels different from the first information transmission channel.
Step S202, if a plurality of information transmission channels different from the first information transmission channel exist, the historical transmission success rate of each information transmission channel is obtained;
in the embodiment of the present invention, each information transmission channel has a corresponding historical transmission success rate, and illustratively, a quotient obtained by dividing the successful transmission times by the historical transmission times may be calculated to obtain the historical success rate corresponding to the information transmission channel.
In this step, optionally, at least two information transmission channels different from the first information transmission channel need to be determined, so as to select preferentially from the two information transmission channels, specifically, in the embodiment of the present invention, for each information transmission channel, a historical transmission success rate corresponding to the information transmission channel is obtained, and an information transmission channel with the highest priority is determined from the at least two information transmission channels by comparing the historical transmission success rates.
The historical transmission success rate reflects the robustness of the information transmission channel, and it can also be understood that the information transmission channel with a high historical transmission success rate has a low probability of failure.
Step S203, determining the information transmission channel with the highest historical transmission success rate as the second information transmission channel, and executing a step of generating a second retry request corresponding to the second information transmission channel according to the first retry request.
In the embodiment of the invention, the information transmission channel with the highest historical transmission success rate is selected as the second information transmission channel, so that the request retry success rate can be further increased, and the request retry period is further shortened.
After sending the retry request to the information provider through the second information transmission channel, an information transmission success response or an information transmission failure response returned by the information provider may be received, and based on this, as shown in fig. 3, in the embodiment of the present invention, the method further includes:
step S301, receiving a message transmission success response or a message transmission failure response returned by the message provider through a second message transmission channel;
step S302, recording a response to successful information transmission or a response to failed information transmission received each time, so as to count the historical transmission success rate of the second information transmission channel.
In the embodiment of the present invention, if an information transmission success response is received, it represents that the retry is successful, the number of successful transmissions in the history transmission record corresponding to the second information transmission channel may be increased by one, and the total number of transmissions is also increased by one, and if an information transmission failure response is received, it represents that the retry is failed, the total number of transmissions in the history transmission record corresponding to the second information transmission channel may be increased by one, and then the history success rate corresponding to the information transmission channel may be obtained by calculating a quotient of the successful transmission number divided by the total number of transmissions.
In this embodiment of the present invention, step S103 determines, according to the first retry request, a second retry request corresponding to a second information transmission channel, as shown in fig. 4, where the method includes:
step S401, obtaining channel configuration information corresponding to the second information transmission channel;
in this embodiment of the present invention, the channel configuration information may include a field of an information transmission channel that needs to update the request, or other information such as a transmission protocol format, where each information transmission channel corresponds to one channel configuration information, for example: the information transmission channel A is provided, the header of the data packet transmitted in the information transmission channel A needs to be provided with an identifier a, and the channel configuration information corresponding to the information transmission channel A contains the identifier a.
Step S402, generating the second retry request according to the first retry request and the channel configuration information.
In this embodiment of the present invention, the first retry request includes request contents, for example: in the payment field, the first retry request may include a transaction order and a transaction password, and specifically, the first retry request may be analyzed to obtain transmission information, and then the transmission information is encapsulated by channel configuration information corresponding to the second information transmission channel to obtain a second retry request that can be transmitted in the second information transmission channel, so as to finally achieve an effect of switching the information transmission channel to perform request retry, thereby avoiding a situation that a success rate of retry is affected due to a failure of the information transmission channel, and improving a success rate of request retry.
In this embodiment of the present invention, after step S104 sends the second retry request to the information provider through the second information transmission channel, as shown in fig. 5, the method further includes:
step S501, if a second retry failure response which is sent by the information provider through a second information transmission channel and responds to a second retry request is received, sending the second retry request to the information provider through the second information transmission channel again;
in the embodiment of the present invention, the purpose of retrying the transmission in the second information transmission channel is achieved by sending the second retry request to the information provider through the second information transmission channel again.
Step S502, if the second information transmission channel fails to retry transmission, determining whether a third information transmission channel different from the second information transmission channel exists in the information transmission channel corresponding to the information provider;
in the embodiment of the invention, if the second information transmission channel fails to retry transmission, the second information transmission channel is determined not to be retried, so that whether a third information transmission channel different from the second information transmission channel exists or not can be determined, and the aims of switching the information transmission channel again and requesting retry are fulfilled.
Further, after the second retry request is sent to the information provider by switching to the second information transmission channel, if the second retry failure response is received, which may be due to a network failure of the information provider or other reasons that may cause a retry failure, the retry may be performed again by re-executing step S501, and if the retry is successful, the running procedure is ended. Based on this, after the step of sending the second retry request to the information provider again through the second information transmission channel at step S501, the method further includes:
if a second retry failure response sent by the information provider is received, sending the second retry request to the information provider through the second information transmission channel again;
in the embodiment of the present invention, if the second retry request is sent to the information provider through the second information transmission channel for the first time and a second retry failure response sent by the information provider is received, the second retry request may be sent to the information provider through the second information transmission channel again, so as to achieve the purpose of performing retry for multiple times in the transmission of the second information transmission channel, eliminate the possibility of failure of the information provider, and avoid the occurrence of a situation that the retry is not successful even if the information transmission channel is replaced due to the failure of the information provider (a network failure occurs or other reasons that may cause retry failure).
And if the number of times of receiving the second retry failure response is greater than a first preset threshold value, or the retry time length for carrying out transmission retry on the second information transmission channel for multiple times is greater than a first preset time length, determining that the transmission retry of the second information transmission channel fails.
In the embodiment of the present invention, in order to ensure the operation efficiency, a first preset threshold may be set, which is used to limit the retry number, and when the number of times of receiving the second retry failure response exceeds the first preset threshold, it is determined that the second information transmission channel fails to retry transmission, or a first preset duration may be set, and when the number of times of receiving the second retry failure response is greater than the first preset duration, it is determined that the second information transmission channel fails to retry transmission.
Step S503, determining a third retry request corresponding to a third transmission channel according to the first retry request or the second retry request;
in this embodiment of the present invention, the first retry request may be repackaged or adjusted according to the channel configuration information of the third transmission channel to obtain a third retry request that can be transmitted in the third transmission channel, and in addition, because the contents (order transaction or login information, etc.) of the first retry request and the second retry request are the same, the second retry request may also be repackaged or adjusted according to the channel configuration information of the third transmission channel to obtain a third retry request that can be transmitted in the third transmission channel, and a specific implementation process may refer to a process of generating a second retry request corresponding to the second transmission channel according to the first retry request, which is not described herein again.
Step S504, sending the third retry request to the information provider through the third information transmission channel.
In the embodiment of the present invention, after the retry of the second information transmission channel fails, a third information transmission channel different from both the first information conventional channel and the second information transmission channel may be selected again, and further, if the retry of the third information transmission channel fails, a fourth information transmission channel may be selected according to the above implementation process until all the information transmission channels corresponding to the information provider are retried. The embodiment of the invention can avoid the influence of the failure of the information transmission channel on the retry result by switching the channel and then performing the retry request, and can ensure the success rate of the retry by switching for many times.
In this embodiment of the present invention, before receiving a first retry failure response in response to a first retry request sent by an information provider through a first information transmission channel in step S101, as shown in fig. 6, the method further includes:
step S601, sending an information transmission request to an information provider through a first information transmission channel;
in the embodiment of the invention, the information transmission request refers to information which is sent to the information provider by the server for the first time. For example: in the payment field, the information transmission request may be an original transaction order, and if the transaction of the order fails, the transaction request when the server makes multiple attempts is a retry request.
Step S602, judging whether an information transmission failure response sent by an information provider in response to the information transmission request is received;
if the information transmission failure response is received, step S603 sends a first retry request to the information provider through a first information transmission channel;
in the embodiment of the present invention, if an information transmission failure response is received, the first retry request may be sent to the information provider through the first information transmission channel again, where the first retry request may be the same as the information transmission request or different from the information transmission request, and the specific situation may be set according to an actual situation.
In step S604, if the first information transmission channel fails to retry transmission, step S101 is executed.
In the embodiment of the present invention, after determining that the retry fails, the above embodiment may be referred to, and the attempt is performed after the information transmission channel is switched, which is not described herein again.
The embodiment of the invention can avoid the influence of accidental factors on the retry result by performing multiple attempts on the original information transmission channel and selecting and switching other information transmission channels after determining that the retry fails, such as: the information provider has huge number of received requests, and the condition of request failure is easy to occur, so that the problem that the original information transmission channel is utilized to perform multiple attempts can be solved, other information transmission channels do not need to be occupied, and delayed influence is caused on data packets queued in the other information transmission channels.
In another embodiment of the present invention, there is further provided a data transmission apparatus, as shown in fig. 7, further including:
a receiving module 01, configured to receive a first retry failure response that is sent by an information provider through a first information transmission channel and responds to the first retry request;
a determining module 02, configured to determine whether a second information transmission channel different from the first information transmission channel exists in an information transmission channel corresponding to the information provider;
a generating module 03, configured to determine, according to the first retry request, a second retry request corresponding to a second information transmission channel if the second information transmission channel different from the first information transmission channel exists;
and the sending module is used for sending the second retry request to the information provider through the second information transmission channel.
In still another embodiment of the present invention, there is also provided an electronic apparatus including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the channel method in the embodiment of the method when executing the program stored in the memory.
In the electronic device provided by the embodiment of the present invention, the processor implements, by executing the program stored in the memory, a first retry failure response in response to the first retry request, which is sent by the information provider through the first information transmission channel; determining whether a second information transmission channel different from the first information transmission channel exists in an information transmission channel corresponding to the information provider; if a second information transmission channel different from the first information transmission channel exists, determining a second retry request corresponding to the second information transmission channel according to the first retry request; and sending the second retry request to the information provider through the second information transmission channel, so as to achieve the purpose of sending the retry request to the information provider again through an information transmission channel different from the first information transmission channel, and generating a second retry request corresponding to the second information transmission channel according to the content of the first retry request, so as to achieve the purpose of selecting different payment channels for retry instead of using the original channel for retry, thereby improving the success rate of request retry.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In still another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a program of an information transmission method, which when executed by a processor, implements the steps of the information transmission method described in the method embodiment.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. Computer-readable storage media can be any available media that can be accessed by a computer or a data storage device, such as a server, data center, etc., that includes one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid State Disks (SSDs)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice 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 (10)
1. A method of data transmission, the method comprising:
receiving a first retry failure response in response to the first retry request, which is sent by the information provider through the first information transmission channel;
determining whether a second information transmission channel different from the first information transmission channel exists in an information transmission channel corresponding to the information provider;
if a second information transmission channel different from the first information transmission channel exists, determining a second retry request corresponding to the second information transmission channel according to the first retry request, wherein the second retry request is obtained by analyzing the first retry request and encapsulating transmission information through channel configuration information corresponding to the second information transmission channel;
sending the second retry request to the information provider through the second information transmission channel; and if a second retry failure response which is sent by the information provider through a second information transmission channel and responds to a second retry request is received, sending the second retry request to the information provider through the second information transmission channel again.
2. The data transmission method according to claim 1, wherein before the step of determining a second retry request corresponding to a second information transmission channel based on the first retry request, the method further comprises:
determining whether there are a plurality of information transmission channels different from the first information transmission channel;
if a plurality of information transmission channels different from the first information transmission channel exist, acquiring the historical transmission success rate of each information transmission channel;
and determining the information transmission channel with the highest historical transmission success rate as the second information transmission channel, and executing the step of generating a second retry request corresponding to the second information transmission channel according to the first retry request.
3. The data transmission method of claim 1, further comprising:
receiving an information transmission response returned by the information provider through a second information transmission channel;
and determining the historical transmission success rate of the second information transmission channel according to the information transmission response received in history.
4. The data transmission method according to claim 1, wherein the step of determining a second retry request corresponding to a second information transmission channel based on the first retry request comprises:
acquiring channel configuration information corresponding to the second information transmission channel;
and generating the second retry request according to the first retry request and the channel configuration information.
5. The data transmission method according to claim 1, wherein after the step of sending the second retry request to the information provider through the second information transmission channel, further comprising:
if a second retry failure response which is sent by the information provider through a second information transmission channel and responds to a second retry request is received, sending the second retry request to the information provider through the second information transmission channel again to perform transmission retry of the second information transmission channel;
if the second information transmission channel fails to retry transmission, determining whether a third information transmission channel different from the second information transmission channel exists in the information transmission channel corresponding to the information provider;
determining a third retry request corresponding to a third transmission channel according to the first retry request or the second retry request;
and sending the third retry request to the information provider through the third information transmission channel.
6. The data transmission method according to claim 5, wherein after the step of sending the second retry request to the information provider again through the second information transmission channel, the method further comprises:
if a second retry failure response sent by the information provider is received, sending the second retry request to the information provider through the second information transmission channel again;
and if the number of times of receiving the second retry failure response is greater than a first preset threshold value, or the retry time length for carrying out transmission retry on the second information transmission channel for multiple times is greater than a first preset time length, determining that the transmission retry of the second information transmission channel fails.
7. The data transmission method according to claim 1, wherein the step of receiving a first retry failure response in response to the first retry request sent by the information provider through the first information transmission channel is preceded by the method further comprising:
sending an information transmission request to an information provider through a first information transmission channel;
judging whether an information transmission failure response sent by an information provider in response to the information transmission request is received;
and if the information transmission failure response is received, sending a first retry request to the information provider through a first information transmission channel.
8. A data transmission apparatus, characterized by further comprising:
a receiving module, configured to receive a first retry failure response sent by an information provider through a first information transmission channel in response to a first retry request;
a determining module configured to determine whether a second information transmission channel different from the first information transmission channel exists in an information transmission channel corresponding to the information provider;
a generating module, configured to determine, according to the first retry request, a second retry request corresponding to a second information transmission channel if the second information transmission channel different from the first information transmission channel exists, where the second retry request is transmission information obtained by analyzing the first retry request, and the transmission information is obtained by encapsulating, through channel configuration information corresponding to the second information transmission channel;
a sending module, configured to send the second retry request to the information provider through the second information transmission channel; and if a second retry failure response which is sent by the information provider through a second information transmission channel and responds to a second retry request is received, sending the second retry request to the information provider through the second information transmission channel again.
9. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the data transmission method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, characterized in that a program of a data transmission method is stored on the computer-readable storage medium, which program, when executed by a processor, implements the steps of the data transmission method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911193794.7A CN111130714B (en) | 2019-11-28 | 2019-11-28 | Data transmission method, device, electronic equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911193794.7A CN111130714B (en) | 2019-11-28 | 2019-11-28 | Data transmission method, device, electronic equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111130714A CN111130714A (en) | 2020-05-08 |
CN111130714B true CN111130714B (en) | 2023-04-07 |
Family
ID=70497044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911193794.7A Active CN111130714B (en) | 2019-11-28 | 2019-11-28 | Data transmission method, device, electronic equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111130714B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112288416A (en) * | 2020-09-29 | 2021-01-29 | 长沙市到家悠享网络科技有限公司 | Fault processing method, device and system, electronic equipment and storage medium |
CN112395134A (en) * | 2020-11-18 | 2021-02-23 | 平安普惠企业管理有限公司 | Retry method, device, equipment and medium for application execution exception |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968719A (en) * | 2012-11-07 | 2013-03-13 | 东莞宇龙通信科技有限公司 | Payment server, terminal and payment channel access method |
CN105490825A (en) * | 2014-09-15 | 2016-04-13 | 阿里巴巴集团控股有限公司 | Business processing method and device |
CN107169756A (en) * | 2017-05-10 | 2017-09-15 | 北京凤凰理理它信息技术有限公司 | Payment channel distribution method, device, storage medium and payment route system |
CN108551402A (en) * | 2018-04-09 | 2018-09-18 | 网易宝有限公司 | Method for sending information and its system, medium and computing device |
CN108965164A (en) * | 2017-05-17 | 2018-12-07 | 北京京东尚科信息技术有限公司 | Service request repeating method, device and readable storage medium storing program for executing based on message queue |
CN109447610A (en) * | 2018-11-02 | 2019-03-08 | 北京京东金融科技控股有限公司 | Method and apparatus for determining payment channel |
CN110336742A (en) * | 2019-06-20 | 2019-10-15 | 网联清算有限公司 | Method for sending information, device, computer equipment and storage medium |
CN110377410A (en) * | 2019-07-16 | 2019-10-25 | 中信百信银行股份有限公司 | Method for scheduling task, system, electronic equipment and computer readable storage medium |
CN110392381A (en) * | 2019-06-11 | 2019-10-29 | 岭澳核电有限公司 | A kind of channel wireless radio multi means of communication, device and terminal device for nuclear power station |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217543B (en) * | 2008-01-21 | 2011-05-25 | 中兴通讯股份有限公司 | A method of communications in sequence according to PRI in multi physical channels of the cluster |
CN105335850A (en) * | 2014-07-31 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Network payment control method and apparatus |
CN105741088A (en) * | 2016-01-27 | 2016-07-06 | 广州唯品会信息科技有限公司 | Routing matching payment method and device |
CN108022087A (en) * | 2017-11-22 | 2018-05-11 | 深圳市牛鼎丰科技有限公司 | payment data processing method, device, storage medium and computer equipment |
CN109829717A (en) * | 2018-12-15 | 2019-05-31 | 深圳壹账通智能科技有限公司 | O&M method, apparatus, computer installation and the storage medium of payment channel |
CN110084578A (en) * | 2019-03-27 | 2019-08-02 | 北京三快在线科技有限公司 | Method, apparatus and storage medium based on Third-party payment platform payment |
CN110474722A (en) * | 2019-08-15 | 2019-11-19 | 中国平安财产保险股份有限公司 | A kind of data channel switching method and device |
-
2019
- 2019-11-28 CN CN201911193794.7A patent/CN111130714B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968719A (en) * | 2012-11-07 | 2013-03-13 | 东莞宇龙通信科技有限公司 | Payment server, terminal and payment channel access method |
CN105490825A (en) * | 2014-09-15 | 2016-04-13 | 阿里巴巴集团控股有限公司 | Business processing method and device |
CN107169756A (en) * | 2017-05-10 | 2017-09-15 | 北京凤凰理理它信息技术有限公司 | Payment channel distribution method, device, storage medium and payment route system |
CN108965164A (en) * | 2017-05-17 | 2018-12-07 | 北京京东尚科信息技术有限公司 | Service request repeating method, device and readable storage medium storing program for executing based on message queue |
CN108551402A (en) * | 2018-04-09 | 2018-09-18 | 网易宝有限公司 | Method for sending information and its system, medium and computing device |
CN109447610A (en) * | 2018-11-02 | 2019-03-08 | 北京京东金融科技控股有限公司 | Method and apparatus for determining payment channel |
CN110392381A (en) * | 2019-06-11 | 2019-10-29 | 岭澳核电有限公司 | A kind of channel wireless radio multi means of communication, device and terminal device for nuclear power station |
CN110336742A (en) * | 2019-06-20 | 2019-10-15 | 网联清算有限公司 | Method for sending information, device, computer equipment and storage medium |
CN110377410A (en) * | 2019-07-16 | 2019-10-25 | 中信百信银行股份有限公司 | Method for scheduling task, system, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111130714A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11411837B2 (en) | Systems and methods for providing notifications of changes in a cloud-based file system | |
US10476833B2 (en) | Warning method and apparatus, and processing server | |
JP6533236B2 (en) | Digital certificate processing and verification | |
JP5404825B2 (en) | Content categorization method and system | |
US20200184035A1 (en) | Managing content delivery to client devices | |
CN111130714B (en) | Data transmission method, device, electronic equipment and computer readable medium | |
CN112288577B (en) | Transaction processing method, device, electronic equipment and medium for distributed service | |
US10218659B1 (en) | Persistent connections for email web applications | |
US20240184774A1 (en) | Transaction Processing Failover | |
CN106612263B (en) | Method and equipment for processing application access request | |
CN114827280A (en) | Request processing method, device, equipment and medium | |
WO2019047345A1 (en) | Method of generating one-time password sending policy, and one-time password sending method | |
CN111200637A (en) | Cache processing method and device | |
US10911459B1 (en) | Automatic transaction processing failover | |
CN107241451A (en) | Interference method, apparatus and system are distorted based on content distributing network | |
CN111338607A (en) | Method and device for selecting service data for testing and electronic equipment | |
CN116414628A (en) | Transaction request processing method and device in new and old system switching process | |
CN113225348B (en) | Request anti-replay verification method and device | |
CN110941805B (en) | Identity authentication method and device | |
CN106506660A (en) | A kind of online request processing method, server and system | |
CN111586115A (en) | Data transmission system and method | |
WO2017173967A1 (en) | Redirection method, service provider, unstructured supplementary service data center, and system | |
WO2019144522A1 (en) | Identity information authentication method and apparatus, terminal device, and medium | |
CN109347933B (en) | Method and device for establishing connection | |
CN113489726B (en) | Flow limiting method and device |
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 |