CN109155745B - Payment gateway is connected to the network detection method and terminal device - Google Patents
Payment gateway is connected to the network detection method and terminal device Download PDFInfo
- Publication number
- CN109155745B CN109155745B CN201880000836.8A CN201880000836A CN109155745B CN 109155745 B CN109155745 B CN 109155745B CN 201880000836 A CN201880000836 A CN 201880000836A CN 109155745 B CN109155745 B CN 109155745B
- Authority
- CN
- China
- Prior art keywords
- payment gateway
- network connection
- time
- detection data
- state
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
- G06Q20/027—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] involving a payment switch or gateway
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
This programme belongs to field of communication technology, this programme provides a kind of payment gateway network connection detection method and terminal device, this method comprises: sending network connection detection request to payment gateway, it receives payment gateway and the network connection detection data that request returns is detected according to network connection, being connected to the network includes several Testing index in detection data, according to the comparing result of network connection detection data and the detection data level threshold value prestored, the connection status of payment gateway network connection is determined.The network connection detection data that the payment gateway network connection detection method of this programme embodiment is sent by obtaining payment gateway, according to the comparing result of network connection detection data and the detection data level threshold value prestored, determine the connection status of payment gateway network connection, have the advantages that detection efficiency is high, at low cost, accuracy is high, avoid inefficiency caused by artificial detection, need to expend biggish human cost, and the problem that the accuracy artificially detected is poor.
Description
Technical field
This programme belongs to field of communication technology more particularly to a kind of payment gateway network connection detection method and terminal is set
It is standby.
Background technique
With the continuous development of computer technology, internet finance has permeated the every aspect of people's life, network branch
Paying becomes the indispensable service of people.After consumer completes network payment, payment gateway can send payment result information
To trade company, so that trade company obtains payment result.Gateway is paid in the limited amount in the whole nation, while payment gateway needs to be national
Trade company provides payment services, it is therefore necessary to guarantee that the network connection of service server and payment gateway is unimpeded.
Currently, the mode of existing detection service device and payment gateway network connectivity fai_lure is usually, when server and branch
Pay gateway communication failure when, manually detected by service personnel, determine failure cause, for debugging provide according to
According to.But the mode inefficiency of this artificial detection, the accuracy for needing to expend biggish human cost, and artificially detecting compared with
Difference.
Plan content
In view of this, this programme embodiment provides a kind of payment gateway network connection detection method and terminal device, energy
Enough to solve in the prior art when there is network congestion, payment result information will not then be sent to trade company side, cause quotient
The problem of family cannot obtain payment result, influence the transaction between trade company and consumer.
This programme embodiment in a first aspect, providing a kind of payment gateway network connection detection method, comprising:
Network connection detection request is sent to payment gateway;
Receive the network connection detection data that the payment gateway is returned according to the network connection detection request, the net
It include several Testing index in network connecting detection data;
According to the comparing result of network connection detection data and the detection data level threshold value prestored, determining and payment gateway
The connection status of network connection.
The second aspect of this programme embodiment provides a kind of payment gateway network connection detection device, comprising:
Connecting detection request sending module, for sending network connection detection request to payment gateway;
It is connected to the network detection data receiving module, request is detected according to the network connection for receiving the payment gateway
The network connection detection data of return includes several Testing index in the network connection detection data;
Network connection state determining module, for according to network connection detection data and the detection data level threshold value prestored
Comparing result, the determining connection status with payment gateway network connection.
The third aspect of this programme embodiment, provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing above-mentioned payment gateway network connection detection method.
The fourth aspect of this programme embodiment, provides a kind of computer readable storage medium, described computer-readable to deposit
Storage media is stored with computer program, and the computer program realizes above-mentioned payment gateway network connection when being executed by processor
The step of detection method.
The beneficial effect of this programme embodiment compared with prior art is: the payment gateway network that this programme embodiment provides
Connecting detection method and terminal device send network connection detection request to payment gateway, receive payment gateway and connected according to network
The network connection detection data that detection request returns is connect, being connected to the network in detection data includes several Testing index, according to network
The comparing result of connecting detection data and the detection data level threshold value prestored determines the connection shape of payment gateway network connection
State.The network connection testing number that the payment gateway network connection detection method of this programme embodiment is sent by obtaining payment gateway
According to determining that payment gateway network connects according to network connection detection data and the comparing result of detection data level threshold value prestored
The connection status connect has the advantages that detection efficiency is high, at low cost, accuracy is high, avoids inefficiency caused by artificial detection,
Need to expend biggish human cost, and the problem that the accuracy artificially detected is poor.
Detailed description of the invention
It, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical solution in this programme embodiment
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of this programme
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the flow diagram that a kind of payment gateway that one embodiment of this programme provides is connected to the network detection method;
Fig. 2 is the flow diagram that a kind of payment gateway that another embodiment of this programme provides is connected to the network detection method;
Fig. 3 is the flow diagram that a kind of payment gateway that this programme another embodiment provides is connected to the network detection method;
Fig. 4 is the flow diagram that a kind of payment gateway that the another embodiment of this programme provides is connected to the network detection method;
Fig. 5 is the flow diagram that a kind of payment gateway that the another embodiment of this programme provides is connected to the network detection method;
Fig. 6 is the structural block diagram that a kind of payment gateway that one embodiment of this programme provides is connected to the network detection device;
Fig. 7 is a kind of schematic block diagram for terminal device that one embodiment of this programme provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly this programme embodiment.However, it will be clear to one skilled in the art that there is no these specific
This programme also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes the description of this programme.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that in this this programme term used in the description merely for the sake of the mesh of description specific embodiment
And be not intended to limit this programme.As used in this programme specification and appended book, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in this programme specification and appended book is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described in this programme, the following is a description of specific embodiments.
With reference to Fig. 1, Fig. 1 is that a kind of process for payment gateway network connection detection method that one embodiment of this programme provides is shown
It is intended to.This can be applied to server, particularly can be applied to payment transaction server, details are as follows for the method:
S101: network connection detection request is sent to payment gateway.
In the present embodiment, payment gateway can be the relay device of processing payment transaction, such as switching equipment or road
By equipment.The server device identification for sending network connection detection request can be carried in network connection detection request.Preferably,
The mode that network connection detection request is sent to payment gateway is heartbeat data packets.
S102: payment gateway is received according to network connection and detects the network connection detection data that request returns, network connection
It include several Testing index in detection data.
In the present embodiment, network connection detection data can be the data packet comprising several Testing index.Several detections
Index includes but is not limited to DNS (Domain Name System, domain name system) analysis state, sends network connection detection request
The time of the network connection detection data is generated to the time of payment gateway, payment gateway, receives the net of payment gateway return
The time etc. of network connecting detection data.
S103: it according to the comparing result of network connection detection data and the detection data level threshold value prestored, determines and props up
Pay the connection status of gateway network connection.
In the present embodiment, the detection data level threshold value prestored can be configured according to demand.Wherein network connection inspection
Measured data includes several Testing index, and the detection data level threshold value prestored is to refer in the corresponding several detections of several Testing index
Mark threshold value.
From above-described embodiment it is found that then receiving payment first by sending network connection detection request to payment gateway
The network connection monitoring data that gateway returns, wherein including several Testing index in network connection detection data, finally according to net
The comparing result of network connecting detection data and the detection data level threshold value prestored, the determining connection with payment gateway network connection
State, due to not needing artificial detection, detection efficiency is high, at low cost, accuracy is high.
With reference to Fig. 2, Fig. 2 is the process that a kind of payment gateway that another embodiment of this programme provides is connected to the network detection method
Schematic diagram.On the basis of the above embodiments, the step S103 includes:
S201: each Testing index is compared with the metrics-thresholds prestored.
In the present embodiment, the metrics-thresholds prestored can be configured according to demand.Testing index may include DNS solution
Analysis state sends to be connected to the network to detect and the time to payment gateway, payment gateway is requested to generate the network connection detection data
Time, receive time of network connection detection data etc. that payment gateway returns.
S202: when any Testing index exceeds the metrics-thresholds prestored, determine that any Testing index is abnormal.
Specifically, it is determined that the concrete mode of any Testing index exception can be, in corresponding network connection detection data
Corresponding Indexes Abnormality label in upper addition.
S203: judge whether each Testing index is abnormal, obtains the testing result of each Testing index.
Specifically, each corresponding Indexes Abnormality label is added in corresponding network connection detection data.
S204: according to the testing result of all Testing index, the company of payment gateway network connection is determined according to preset strategy
Connect state.
In the present embodiment, preset strategy can be arranged according to the demand of user.For example, working as the testing result of Testing index
In a few items be Indexes Abnormality when, determine payment gateway network connection connection status be congestion or failure exception.
From above-described embodiment it is found that determining payment gateway according to preset strategy by the testing results of all Testing index
The connection status of network connection can more accurately determine the different connection status of payment gateway network connection.
With reference to Fig. 3, Fig. 3 is the process that a kind of payment gateway that this programme another embodiment provides is connected to the network detection method
Schematic diagram.On the basis of the above embodiments, several Testing index include: dns resolution state, send network connection detection
The first time to payment gateway, payment gateway is requested to generate the second time of the network connection detection data, receive payment
The third time for the network connection detection data that gateway returns, details are as follows by above-mentioned steps S204:
S301: within a preset period of time, when dns resolution state fault-free, and at the first time, the second time and third time
When being not above first time threshold, second time threshold, third time threshold respectively, payment gateway network connection state is determined
It is normal.
In the present embodiment, it is service server parsing payment gateway as a result, packet that dns resolution state, which is dns server,
Include normal or abnormal state.The first time for sending network connection detection request to payment gateway is that service server sends network
Connecting detection request starts to payment gateway to receive the time that network connection detection request terminates.Described in payment gateway generates
Network connection detection data the second time be payment gateway receive network connection detection request start to generate be connected to the network
The time of detection data.The third time for receiving the network connection detection data that payment gateway returns is that payment gateway generates network
Connecting detection data receive the time of network connection detection data to service server.
Wherein, first time threshold, second time threshold, third time threshold can be configured according to demand, we
Case is not intended to be limited in any.
S302: when dns resolution state fault-free, and being more than first time threshold within a preset period of time at the first time, or
Second time was more than that second time threshold determines payment gateway network connection state when the third time is more than third time threshold
For congestion.
In the present embodiment, the congestion of payment gateway network connection state includes the connection line with payment gateway network connection
The process that congestion or payment gateway processing generate network connection detection data is slower.
S303: within a preset period of time, when dns resolution state in the event of failure, determine that payment gateway network connection state is
Dns server failure.
In the present embodiment, it includes that dns server cannot provide domain name solution for service server that dns resolution state is faulty
Analysis service, service server cannot effectively establish the network connection with payment gateway.
From above-described embodiment it is found that by domain name system DNS analysis state, sending network connection detection request to payment net
The first time of pass, payment gateway generate the second time of the network connection detection data, receive the net that payment gateway returns
The third time of network connecting detection data can determine that the connection status of payment gateway network connection is normal, congestion or DNS
It is specific any in server failure.
With reference to Fig. 4, Fig. 4 is the process that a kind of payment gateway that the another embodiment of this programme provides is connected to the network detection method
Schematic diagram.On that basi of the above embodiments, further includes:
S401: being more than the 4th time threshold when second time within a preset period of time, the 4th time threshold is big
When the second time threshold, determine that the payment gateway network connection state is the payment gateway overload.
In the present embodiment, payment gateway overload refers to the overlong time of processing network connection detection request, the branch
The processing capacity for paying gateway is poor, and the business of payment gateway processing is too many, and over-burden.
With reference to Fig. 5, Fig. 5 is the process that a kind of payment gateway that the another embodiment of this programme provides is connected to the network detection method
Schematic diagram.On that basi of the above embodiments, the method also includes:
S501: the connection status and the corresponding relation data of time of payment gateway network connection are obtained.
In the present embodiment, the connection shape of the payment gateway network connection in available preset time period (in such as 1 year)
The corresponding relation data of state and time, and saved in the form of database.
S502: determining the probability of malfunction of the payment gateway network connection, wherein the probability of malfunction is the corresponding pass
Coefficient abnormal time in accounts for the ratio of connection status total time.
In the present embodiment, the connection status of gateway network connection includes normal condition and abnormality, wherein abnormal shape
State may include the states such as congestion, dns server failure, payment gateway overload.
S503: if it is determined that the probability of malfunction is more than preset probability threshold value, it is determined that the payment gateway network connection
For unstable state.
In the present embodiment, preset probability threshold value can be configured according to demand.The payment gateway network connection
Illustrate the work for the service server being connected to the network with the payment gateway vulnerable to influence for unstable state.
From above-described embodiment it is found that determining payment by determining whether the probability of malfunction is more than preset probability threshold value
Whether gateway network is connected as stable, can be the whether stable progress of business of server that is connected to the network using the payment gateway
Reference frame is provided.
It further include service provider's code in the Testing index, however, it is determined that the payment in one embodiment of this programme
Gateway network connection status is congestion, then obtains service provider's code, and replace network line according to service provider's code.
It further include payment gateway identity in the Testing index, however, it is determined that institute in one embodiment of this programme
Stating payment gateway network connection state is the payment gateway overload, then obtains the payment gateway identity, and root
Payment gateway is replaced according to the payment gateway identity.
It further include dns server identity in the Testing index in one embodiment of this programme, described in determination
Payment gateway network connection state is dns server failure, then obtains the dns server identity, and according to the DNS
Server identity mark replacement dns server.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with this programme embodiment constitutes any limit
It is fixed.
Payment gateway corresponding to foregoing embodiments is connected to the network detection method, and Fig. 6 is what one embodiment of this programme provided
A kind of structural block diagram of payment gateway network connection detection device.For ease of description, it illustrates only and this programme embodiment phase
The part of pass.Referring to Fig. 6, which includes: connecting detection request sending module 601, network connection detection data receiving module
602 and network connection state determining module 603.
Wherein, connecting detection request sending module 601, for sending network connection detection request to payment gateway;
It is connected to the network detection data receiving module 602, is detected for receiving the payment gateway according to the network connection
The network connection detection data returned is requested, includes several Testing index in the network connection detection data;
Network connection state determining module 603, for according to network connection detection data and the detection data standard prestored
The comparing result of threshold value, the determining connection status with payment gateway network connection.
With reference to Fig. 6, in one embodiment of this programme, the network connection state determining module 603, comprising:
Testing index comparing unit 6031, for each Testing index to be compared with the metrics-thresholds prestored;
Indexes Abnormality determination unit 6032, described in determining when any Testing index exceeds the metrics-thresholds prestored
Any Testing index is abnormal;
Testing result acquiring unit 6033, for judging whether each Testing index is abnormal, obtains each Testing index
Testing result;
Network connection state determination unit 6034, for the testing result according to all Testing index, according to preset strategy
Determine the connection status of payment gateway network connection.
With reference to Fig. 6, in one embodiment of this programme, several Testing index include: domain name system DNS parsing shape
State sends to be connected to the network to detect and the first time to payment gateway, payment gateway is requested to generate the network connection detection data
The second time, receive payment gateway return network connection detection data the third time;
The network connection state determination unit 6034, be specifically used within a preset period of time, when dns resolution state without reason
Barrier, and the first time, the second time and the third time are not above first time threshold, the second time threshold respectively
When value, third time threshold, determine that the payment gateway network connection state is normal;
In the preset time period, when dns resolution state fault-free, and the first time is more than the first time
Threshold value or second time are more than the second time threshold, when the third time is more than the third time threshold, really
The fixed payment gateway network connection state is congestion;
In the preset time period, when dns resolution state in the event of failure, determine the payment gateway network connection state
For dns server failure.
With reference to Fig. 6, in one embodiment of this programme, the network connection state determination unit 6034 is also used to
It is more than the 4th time threshold when second time in preset time period, the 4th time threshold is greater than second time
When threshold value, determine that the payment gateway network connection state is the payment gateway overload.
With reference to Fig. 6, in one embodiment of this programme, the network connection state determination unit 6034 is also used to obtain
The connection status and the corresponding relation data of time for taking payment gateway to be connected to the network;
The probability of malfunction for determining the payment gateway network connection, wherein the probability of malfunction is the corresponding relation data
Middle abnormal time accounts for the ratio of connection status total time;
If it is determined that the probability of malfunction is more than preset probability threshold value, it is determined that the payment gateway network connection is shakiness
Determine state.
With reference to Fig. 6, in one embodiment of this programme, described device further include: replacement module 604 is used for the inspection
Surveying in index further includes service provider's code, however, it is determined that the payment gateway network connection state is congestion, then obtains the service
Shang dynasty code, and network line is replaced according to service provider's code.
In one embodiment of this programme, the replacement module 604 is also used in the Testing index further include payment
Gateway identity mark, however, it is determined that the payment gateway network connection state is the payment gateway overload, then described in acquisition
Payment gateway identity, and payment gateway is replaced according to the payment gateway identity.
In one embodiment of this programme, the replacement module 604 is also used in the Testing index further include DNS
Server identity mark determines that the payment gateway network connection state is dns server failure, then obtains the DNS service
Device identity, and dns server is replaced according to the dns server identity.
Referring to Fig. 7, Fig. 7 is a kind of schematic block diagram for terminal device that one embodiment of this programme provides.Sheet as shown in Figure 7
Terminal 700 in embodiment may include: one or more processors 701, one or more input equipments 702, one or more
A then output equipment 703 and one or more memories 704.Above-mentioned processor 701, input equipment 702, then output equipment 703
And memory 704 completes mutual communication by communication bus 705.Memory 704 is for storing computer program, the meter
Calculation machine program includes program instruction.Processor 701 is used to execute the program instruction of the storage of memory 704.Wherein, processor 701
It is configured for the function of calling described program instruction execution or less to operate each module/unit in above-mentioned each Installation practice, example
The function of module 601 to 603 as shown in Figure 6.
It should be appreciated that alleged processor 701 can be central processing unit (Central in this programme embodiment
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 702 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user
Directional information), microphone etc., output equipment 703 may include display (LCD etc.), loudspeaker etc..
The memory 704 may include read-only memory and random access memory, and to processor 701 provide instruction and
Data.The a part of of memory 704 can also include nonvolatile RAM.For example, memory 704 can also be deposited
Store up the information of device type.
In the specific implementation, processor 701, input equipment 702 described in this programme embodiment, output equipment 703 can
Implementation described in the first embodiment and second embodiment for the service request method that this programme embodiment provides is executed,
Also the implementation of terminal described in this programme embodiment can be performed, details are not described herein.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of this programme
Matter is stored with computer program, and the computer program includes program instruction, realization when described program instruction is executed by processor
All or part of the process in above-described embodiment method can also instruct relevant hardware to complete by computer program,
The computer program can be stored in a computer readable storage medium, the computer program when being executed by processor,
The step of above-mentioned each embodiment of the method can be achieved.Wherein, the computer program includes computer program code, the meter
Calculation machine program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The calculating
Machine readable medium may include: any entity or device, recording medium, USB flash disk, the shifting that can carry the computer program code
Dynamic hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier wave
Signal and telecommunication signal.
The computer readable storage medium can be the internal storage unit of terminal described in aforementioned any embodiment, example
Such as the hard disk or memory of terminal.The computer readable storage medium is also possible to the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both
The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing
Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily
Ground stores the data that has exported or will export.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as the range beyond this programme.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description
The specific work process at end and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.In addition, shown or discussed phase
Mutually between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection is also possible to electricity, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize this programme example scheme according to the actual needs
Purpose.
It, can also be in addition, each functional unit in each embodiment of this programme can integrate in one processing unit
It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
The above, the only specific embodiment of this programme, but the protection scope of this programme is not limited thereto, it is any
Those familiar with the art can readily occur in various equivalent modifications or replace in the technical scope that this programme discloses
It changes, these modifications or substitutions should all cover within the protection scope of this programme.Therefore, the protection scope of this programme should be with right
It is required that protection scope subject to.
Claims (8)
1. a kind of payment gateway is connected to the network detection method characterized by comprising
Network connection detection request is sent to payment gateway;
The network connection detection data that the payment gateway is returned according to the network connection detection request is received, the network connects
Connecing includes several Testing index in detection data;
According to the comparing result of network connection detection data and the detection data level threshold value prestored, determining and payment gateway network
The connection status of connection;
Wherein, the comparing result according to network connection detection data and the detection data level threshold value prestored, determines payment
Gateway network connection connection status include:
Each Testing index is compared with the metrics-thresholds prestored;
When any Testing index exceeds the metrics-thresholds prestored, determine that any Testing index is abnormal;
Judge whether each Testing index is abnormal, obtains the testing result of each Testing index;
According to the testing result of all Testing index, the connection status of payment gateway network connection is determined according to preset strategy,
In, the connection status of the payment gateway network connection of the determination includes one in following state: normal, congestion, DNS service
Device failure, payment gateway overload and unstable state.
2. payment gateway according to claim 1 is connected to the network detection method, which is characterized in that several Testing index
Include: domain name system DNS analysis state, send to be connected to the network to detect and request the first time to payment gateway, payment gateway raw
At it is described network connection detection data the second time, receive payment gateway return network connection detection data third when
Between;
The testing result according to all Testing index determines the connection status of payment gateway network connection according to preset strategy
Include:
Within a preset period of time, when dns resolution state fault-free, and the first time, the second time and the third time
When being not above first time threshold, second time threshold, third time threshold respectively, the payment gateway network connection is determined
State is normal;
In the preset time period, when dns resolution state fault-free, and the first time is more than the first time threshold
Value or second time are more than the second time threshold, when the third time is more than the third time threshold, are determined
The payment gateway network connection state is congestion;
In the preset time period, when dns resolution state in the event of failure, determine that the payment gateway network connection state is
Dns server failure.
3. payment gateway according to claim 2 is connected to the network detection method, which is characterized in that further include: when default
Between in section, be more than the 4th time threshold when second time, when the 4th time threshold is greater than the second time threshold,
Determine that the payment gateway network connection state is the payment gateway overload.
4. payment gateway according to claim 2 is connected to the network detection method, which is characterized in that further include:
Obtain the connection status and the corresponding relation data of time of payment gateway network connection;
The probability of malfunction for determining the payment gateway network connection, wherein the probability of malfunction is different in the corresponding relation data
The normal time accounts for the ratio of connection status total time;
If it is determined that the probability of malfunction is more than preset probability threshold value, it is determined that the payment gateway network connection is unstable shape
State.
5. a kind of payment gateway is connected to the network detection device characterized by comprising
Connecting detection request sending module, for sending network connection detection request to payment gateway;
It is connected to the network detection data receiving module, request return is detected according to the network connection for receiving the payment gateway
Network connection detection data, include several Testing index in the network connection detection data;
Network connection state determining module, for pair according to network connection detection data and the detection data level threshold value prestored
Than as a result, the determining connection status with payment gateway network connection;
Wherein, the network connection state determining module, comprising:
Testing index comparing unit, for each Testing index to be compared with the metrics-thresholds prestored;
Indexes Abnormality determination unit, for determining any detection when any Testing index exceeds the metrics-thresholds prestored
Indexes Abnormality;
Testing result acquiring unit, for judging whether each Testing index is abnormal, obtains the testing result of each Testing index;
Network connection state determination unit is determined according to preset strategy and is paid for the testing result according to all Testing index
The connection status of gateway network connection, wherein the connection status of the payment gateway network connection of the determination includes following state
In one: normal, congestion, dns server failure, payment gateway overload and unstable state.
6. payment gateway according to claim 5 is connected to the network detection device, which is characterized in that several Testing index
Include: domain name system DNS analysis state, send to be connected to the network to detect and request the first time to payment gateway, payment gateway raw
At it is described network connection detection data the second time, receive payment gateway return network connection detection data third when
Between;
The network connection state determination unit is specifically used within a preset period of time, when dns resolution state fault-free, and institute
State at the first time, the second time and the third time is when being not above first time threshold, second time threshold, third respectively
Between threshold value when, determine that the payment gateway network connection state is normal;
In the preset time period, when dns resolution state fault-free, and the first time is more than the first time threshold
Value or second time are more than the second time threshold, when the third time is more than the third time threshold, are determined
The payment gateway network connection state is congestion;
In the preset time period, when dns resolution state in the event of failure, determine that the payment gateway network connection state is
Dns server failure.
7. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as Claims 1-4 when executing the computer program
The step of described in any item payment gateway network connection detection methods.
8. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization such as Claims 1-4 described in any item payment gateways network connections when the computer program is executed by processor
The step of detection method.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/095818 WO2020014829A1 (en) | 2018-07-16 | 2018-07-16 | Method for detecting network connection of payment gateway, and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109155745A CN109155745A (en) | 2019-01-04 |
CN109155745B true CN109155745B (en) | 2019-08-30 |
Family
ID=64806248
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201880000836.8A Active CN109155745B (en) | 2018-07-16 | 2018-07-16 | Payment gateway is connected to the network detection method and terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109155745B (en) |
WO (1) | WO2020014829A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114189460A (en) * | 2021-09-17 | 2022-03-15 | 惠州高盛达智显科技有限公司 | Cash register quick and stable networking method and system |
CN113839961B (en) * | 2021-11-25 | 2022-04-19 | 北京华电众信技术股份有限公司 | Method and apparatus for controlling gateway device, and computer-readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107835098A (en) * | 2017-11-28 | 2018-03-23 | 车智互联(北京)科技有限公司 | A kind of network fault detecting method and system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159678A (en) * | 2003-12-08 | 2008-04-09 | 华为技术有限公司 | Method and system for detecting default gateway state |
CN103874106A (en) * | 2012-12-10 | 2014-06-18 | 北京信威通信技术股份有限公司 | Method for self-adaptively closing base station radio frequency in wireless communication |
US20150127578A1 (en) * | 2013-11-01 | 2015-05-07 | Amazon Technologies, Inc. | Stateless simulation service |
CN106100926A (en) * | 2016-06-17 | 2016-11-09 | 山东超越数控电子有限公司 | A kind of Network Load Balance link physical examination method |
CN107483350A (en) * | 2017-07-11 | 2017-12-15 | 北京潘达互娱科技有限公司 | A kind of gateway distribution method and device |
CN107612772B (en) * | 2017-09-07 | 2020-12-04 | 银清科技有限公司 | Node state detection method and device of payment system |
-
2018
- 2018-07-16 WO PCT/CN2018/095818 patent/WO2020014829A1/en active Application Filing
- 2018-07-16 CN CN201880000836.8A patent/CN109155745B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107835098A (en) * | 2017-11-28 | 2018-03-23 | 车智互联(北京)科技有限公司 | A kind of network fault detecting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109155745A (en) | 2019-01-04 |
WO2020014829A1 (en) | 2020-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106548402B (en) | Resource transfer monitoring method and device | |
CN107392722A (en) | Order processing method, apparatus, electronic equipment and storage medium | |
CN109155745B (en) | Payment gateway is connected to the network detection method and terminal device | |
CN107818369A (en) | Transformer fault handling method and terminal device | |
CN109523276A (en) | The pre-warning monitoring method and device of customer complaint | |
CN108540218A (en) | Electric power optical cable safety failure processing method and processing device | |
CN108769179A (en) | A kind of service health state evaluation method and device | |
CN109962953A (en) | client communication establishing method and device | |
CN110020851A (en) | A kind of payment environment monitoring method, system, terminal and medium | |
CN107463767A (en) | Cloud HIS medical insurances data processing method and system | |
CN109085811A (en) | Equipment point-detecting method and device | |
CN108181546A (en) | Localization method, positioning device and the terminal device of distribution network failure | |
CN110059139A (en) | Business datum archiving method, equipment, server and computer readable storage medium | |
CN109861857A (en) | Fault detection method and device | |
CN110175833A (en) | A kind of computer installation, method, system and medium for binding bank card information | |
CN108629014A (en) | A kind of data processing method, device, computer equipment and storage medium | |
AU2012207000B2 (en) | Utility meters configured to execute multiple collection agents | |
CN109934693A (en) | Classification account checking method and system, storage medium, electronic equipment | |
CN106443171A (en) | System and method for metering data of power bus during power failure of power utilization equipment | |
CN108133540A (en) | Detection method, detection device and the electronic equipment of bank note quantity exception in cash box | |
CN107909747A (en) | A kind of acquisition methods, acquisition device and the terminal device of bank note information | |
CN113660244B (en) | Website availability detection method, system, readable storage medium and device | |
CN110928748A (en) | Business system operation monitoring method and device | |
CN111008243A (en) | Block chain-based donation flow direction recording supervision method, device and storage medium | |
CN115729786A (en) | Monitoring method, device, equipment and storage medium applied to multiple systems |
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 | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Wang Wenxing Inventor after: Huang Jun Inventor after: Xiang Ting Inventor after: Wang Zhenxing Inventor after: Wang Tong Inventor before: Huang Jun Inventor before: Xiang Ting Inventor before: Wang Zhenxing |