WO2020014829A1 - Method for detecting network connection of payment gateway, and terminal device - Google Patents

Method for detecting network connection of payment gateway, and terminal device Download PDF

Info

Publication number
WO2020014829A1
WO2020014829A1 PCT/CN2018/095818 CN2018095818W WO2020014829A1 WO 2020014829 A1 WO2020014829 A1 WO 2020014829A1 CN 2018095818 W CN2018095818 W CN 2018095818W WO 2020014829 A1 WO2020014829 A1 WO 2020014829A1
Authority
WO
WIPO (PCT)
Prior art keywords
network connection
payment gateway
detection
time
threshold
Prior art date
Application number
PCT/CN2018/095818
Other languages
French (fr)
Chinese (zh)
Inventor
黄军
向婷
王振兴
Original Assignee
威富通科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 威富通科技有限公司 filed Critical 威富通科技有限公司
Priority to PCT/CN2018/095818 priority Critical patent/WO2020014829A1/en
Priority to CN201880000836.8A priority patent/CN109155745B/en
Publication of WO2020014829A1 publication Critical patent/WO2020014829A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
    • G06Q20/027Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] involving a payment switch or gateway
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Definitions

  • This solution belongs to the field of communication technology, and particularly relates to a method and terminal device for detecting a network connection of a payment gateway.
  • the payment gateway After the consumer completes the online payment, the payment gateway sends the payment result information to the merchant so that the merchant can obtain the payment result.
  • the number of payment gateways in the country is limited. At the same time, payment gateways need to provide payment services for merchants across the country. Therefore, the network connection between the business server and the payment gateway must be smooth.
  • the existing method for detecting a network connection failure between the server and the payment gateway is generally that when the communication between the server and the payment gateway fails, the maintenance personnel perform manual detection to determine the cause of the failure and provide a basis for troubleshooting.
  • this method of manual detection is inefficient, requires large labor costs, and the accuracy of human detection is poor.
  • embodiments of this solution provide a payment gateway network connection detection method and terminal device, which can solve the problem that when the network is congested in the prior art, the payment result information will not be sent to the merchant side, causing the merchant to fail. Issues in obtaining payment results that affect transactions between merchants and consumers.
  • a method for detecting a payment gateway network connection including:
  • a payment gateway network connection detection device including:
  • a connection detection request sending module configured to send a network connection detection request to a payment gateway
  • a network connection detection data receiving module configured to receive network connection detection data returned by the payment gateway according to the network connection detection request, where the network connection detection data includes several detection indicators;
  • the network connection state determination module is configured to determine a connection state of the network connection with the payment gateway according to a comparison result between the network connection detection data and a pre-stored detection data standard threshold.
  • a terminal device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program
  • a computer-readable storage medium stores a computer program that, when executed by a processor, implements the foregoing payment gateway network connection detection method. step.
  • the beneficial effects of this embodiment of the solution compared with the prior art are: the payment gateway network connection detection method and the terminal device provided by this embodiment of the solution, send a network connection detection request to the payment gateway, and receive the payment gateway returned according to the network connection detection request.
  • Network connection detection data includes several detection indicators. According to the comparison result between the network connection detection data and the pre-stored detection data standard threshold, the connection status of the payment gateway network connection is determined.
  • the method for detecting the network connection of the payment gateway obtains the network connection detection data sent by the payment gateway, and determines the connection status of the network connection of the payment gateway according to the comparison result between the network connection detection data and the pre-stored detection data standard threshold, which has detection efficiency It has the advantages of high cost, low cost, and high accuracy, avoiding the inefficiency caused by manual detection, which requires large labor costs and poor accuracy of human detection.
  • FIG. 1 is a schematic flowchart of a payment gateway network connection detection method according to an embodiment of the solution
  • FIG. 2 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present solution
  • FIG. 3 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution.
  • FIG. 4 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present solution.
  • FIG. 5 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present solution.
  • FIG. 6 is a structural block diagram of a payment gateway network connection detection device according to an embodiment of the solution.
  • FIG. 7 is a schematic block diagram of a terminal device according to an embodiment of the solution.
  • the term “if” can be construed as “when” or “once” or “in response to a determination” or “in response to a detection” depending on the context .
  • the phrase “if determined” or “if [the described condition or event] is detected” can be interpreted, depending on the context, to mean “once determined” or “in response to the determination” or “once [the condition or event described ] “Or” In response to [Description of condition or event] detected ".
  • FIG. 1 is a schematic flowchart of a payment gateway network connection detection method according to an embodiment of the solution. This method can be applied to a server, in particular, to a payment service server. The method is described in detail as follows:
  • S101 Send a network connection detection request to a payment gateway.
  • the payment-only gateway may be a transit device that processes payment services, such as a switching device or a routing device.
  • the network connection detection request may carry a server device identifier that sends the network connection detection request.
  • the way of sending the network connection detection request to the payment gateway is a heartbeat data packet.
  • S102 Receive network connection detection data returned by the payment gateway according to the network connection detection request, and the network connection detection data includes several detection indicators.
  • the network connection detection data may be a data packet including several detection indicators.
  • detection indicators include, but are not limited to, DNS (Domain Name System, Domain Name System) resolution status, time when a network connection detection request is sent to the payment gateway, time when the payment gateway generates the network connection detection data, and network connection detection returned by the payment gateway. Time of data, etc.
  • S103 Determine the connection status of the network connection with the payment gateway according to the comparison result between the network connection detection data and the pre-stored detection data standard threshold.
  • the pre-stored standard threshold value of the detection data can be set according to requirements.
  • the network connection detection data includes several detection indicators, and the standard threshold of the pre-stored detection data is the thresholds of the detection indicators corresponding to the detection indicators.
  • the network connection detection request is first sent to the payment gateway, and then the network connection monitoring data returned by the payment gateway is received.
  • the network connection detection data includes several detection indicators, and finally, the network connection detection data and the pre-stored detection data
  • the comparison result of the standard threshold determines the connection status with the payment gateway network connection. Since no manual detection is required, the detection efficiency is high, the cost is low, and the accuracy is high.
  • FIG. 2 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution. Based on the above embodiment, the step S103 includes:
  • the pre-stored index threshold can be set according to requirements.
  • the detection indicators may include the DNS resolution status, the time when the network connection detection request is sent to the payment gateway, the time when the payment gateway generates the network connection detection data, the time when the network connection detection data returned by the payment gateway is received, and so on.
  • a specific way to determine that any of the detection index abnormalities is to add a corresponding index abnormality label to the corresponding network connection detection data.
  • each corresponding index abnormality label is added to the corresponding network connection detection data.
  • S204 Determine the connection status of the payment gateway network connection according to the detection results of all detection indicators and according to a preset policy.
  • the preset policy can be set according to the needs of the user. For example, when some of the detection results of the detection indicators are abnormal indicators, it is determined that the connection status of the payment gateway network connection is congestion or failure.
  • connection status of the payment gateway network connection can be determined more accurately according to the detection results of all detection indicators according to a preset policy, and different connection statuses of the payment gateway network connection can be determined more accurately.
  • FIG. 3 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution.
  • the several detection indicators include: DNS resolution status, the first time when a network connection detection request is sent to the payment gateway, the second time when the payment gateway generates the network connection detection data, and the return from the payment gateway is received.
  • the third time of the network connection detection data, the above step S204 is detailed as follows:
  • S301 In the preset time period, when the DNS resolution status is not faulty, and the first time, the second time, and the third time do not exceed the first time threshold, the second time threshold, and the third time threshold, respectively, determine the payment gateway.
  • the network connection status is normal.
  • the DNS resolution status is the result of the DNS server resolving the payment gateway for the service server, including normal or abnormal status.
  • the first time when the network connection detection request is sent to the payment gateway is the time from when the service server sends the network connection detection request to the time when the payment gateway receives the network connection detection request.
  • the second time when the payment gateway generates the network connection detection data is the time from when the payment gateway receives the network connection detection request to when the network connection detection data is generated.
  • the third time of receiving the network connection detection data returned by the payment gateway is the time from when the payment gateway generates the network connection detection data to when the service server receives the network connection detection data.
  • the first time threshold, the second time threshold, and the third time threshold can be set according to requirements, and there are no restrictions in this solution.
  • the congestion of the payment gateway network connection status includes congestion of the connection lines connected to the payment gateway network, or the payment gateway processes a slower process of generating network connection detection data.
  • the failure of the DNS resolution status includes that the DNS server cannot provide a domain name resolution service for the business server, and the business server cannot effectively establish a network connection with the payment gateway.
  • the domain name system DNS resolves the status, the first time when the network connection detection request is sent to the payment gateway, the second time when the payment gateway generates the network connection detection data, and the time when the network connection detection data returned by the payment gateway is received. At the third time, it can be determined whether the connection status of the payment gateway network connection is normal, congested, or DNS server failure.
  • FIG. 4 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution. Based on the above embodiment, it further includes:
  • the overload of the payment gateway means that the processing time of the network connection detection request is too long, the processing capability of the payment gateway is poor, and the payment gateway processes too many services and is overloaded.
  • FIG. 5 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present invention. Based on the above embodiments, the method further includes:
  • S501 Obtain correspondence data of a connection state and time of a payment gateway network connection.
  • the data of the correspondence between the connection status and time of the payment gateway network connection within a preset time period (for example, within one year) can be obtained and stored in the form of a database.
  • S502 Determine a failure probability of the payment gateway network connection, where the failure probability is a ratio of abnormal time in the corresponding relationship data to the total time of the connection state.
  • connection state of the gateway network connection includes a normal state and an abnormal state, where the abnormal state may include states such as congestion, DNS server failure, and excessive load on the payment gateway.
  • the preset probability threshold can be set according to requirements.
  • the unstable state of the payment gateway network connection indicates that the work of the service server connected to the payment gateway network is easily affected.
  • determining whether the failure probability exceeds a preset probability threshold and determining whether the payment gateway network connection is stable can provide a reference basis for whether the service of the server connected to the payment gateway network is stable.
  • the detection index further includes a service provider code. If it is determined that the payment gateway network connection status is congested, the service provider code is obtained, and the network line is replaced according to the service provider code. .
  • the detection indicator further includes a payment gateway identity. If it is determined that the payment gateway network connection status is that the payment gateway is overloaded, the payment gateway identity is obtained, and according to The payment gateway identity replaces the payment gateway.
  • the detection indicator further includes a DNS server identity, and if it is determined that the payment gateway network connection status is a DNS server failure, the DNS server identity is obtained, and according to the DNS server identity Identify the replacement DNS server.
  • FIG. 6 is a structural block diagram of a payment gateway network connection detection device according to an embodiment of the solution. For convenience of explanation, only parts related to the embodiment of the present solution are shown.
  • the apparatus includes a connection detection request sending module 601, a network connection detection data receiving module 602, and a network connection status determination module 603.
  • the connection detection request sending module 601 is configured to send a network connection detection request to a payment gateway;
  • the network connection detection data receiving module 602 is configured to receive network connection detection data returned by the payment gateway according to the network connection detection request, where the network connection detection data includes several detection indicators;
  • the network connection state determining module 603 is configured to determine a connection state of the network connection with the payment gateway according to a comparison result between the network connection detection data and a pre-stored detection data standard threshold.
  • the network connection status determination module 603 includes:
  • a detection index comparison unit 6031 is configured to compare each detection index with a pre-stored index threshold
  • An indicator abnormality determining unit 6032 is configured to determine that any one of the detected indicators is abnormal when any one of the detected indicators exceeds a pre-stored indicator threshold;
  • a detection result obtaining unit 6033 is configured to determine whether each detection index is abnormal, and obtain a detection result of each detection index
  • the network connection state determining unit 6034 is configured to determine a connection state of the payment gateway network connection according to a detection result of all detection indicators and according to a preset policy.
  • the several detection indicators include: a DNS resolution status of a domain name system, a first time to send a network connection detection request to a payment gateway, and a first time the payment gateway generates the network connection detection data. Second time, the third time to receive the network connection detection data returned by the payment gateway;
  • the network connection status determining unit 6034 is specifically configured to: when the DNS resolution status is not faulty within a preset time period, and the first time, the second time, and the third time do not exceed the first time threshold, When the second time threshold and the third time threshold are determined, the payment gateway network connection status is normal;
  • the DNS resolution status is faulty, it is determined that the payment gateway network connection status is a DNS server fault.
  • the network connection status determining unit 6034 is further configured to, within a preset time period, when the second time exceeds a fourth time threshold, the fourth time threshold When it is greater than the second time threshold, it is determined that the payment gateway network connection state is that the payment gateway is overloaded.
  • the network connection state determining unit 6034 is further configured to obtain data on a correspondence between a connection state and a time of a payment gateway network connection;
  • a failure probability of the payment gateway network connection Determining a failure probability of the payment gateway network connection, where the failure probability is a ratio of abnormal time in the corresponding relationship data to the total time of the connection state;
  • the device further includes: a replacement module 604, where the detection indicator further includes a service provider code, and if it is determined that the payment gateway network connection status is congested, obtain The service provider code, and a network line is replaced according to the service provider code.
  • the replacement module 604 is further used for the detection indicator to further include a payment gateway identity. If it is determined that the payment gateway network connection status is that the payment gateway is overloaded, obtain The payment gateway identity, and replacing the payment gateway according to the payment gateway identity.
  • the replacement module 604 is further configured to include a DNS server identity in the detection index. If it is determined that the payment gateway network connection status is a DNS server failure, then obtain the DNS server identity. Identify, and replace the DNS server according to the DNS server identity.
  • FIG. 7 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
  • the terminal 700 in this embodiment as shown in FIG. 7 may include: one or more processors 701, one or more input devices 702, one or more output devices 703, and one or more memories 704.
  • the processor 701, the input device 702, the output device 703, and the memory 704 complete communication with each other through the communication bus 705.
  • the memory 704 is configured to store a computer program, where the computer program includes program instructions.
  • the processor 701 is configured to execute program instructions stored in the memory 704.
  • the processor 701 is configured to call the program instructions to perform the following operations on the functions of each module / unit in each of the foregoing device embodiments, for example, the functions of modules 601 to 603 shown in FIG. 6.
  • the processor 701 may be a central processing unit. (Central Processing Unit, CPU), the processor can also be other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • DSPs digital signal processors
  • ASIC application-specific integrated circuits
  • FPGA off-the-shelf Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 702 may include a touch panel, a fingerprint sensor (for collecting fingerprint information and orientation information of a user), a microphone, and the like, and the output device 703 may include a display (LCD, etc.), a speaker, and the like.
  • a fingerprint sensor for collecting fingerprint information and orientation information of a user
  • a microphone for collecting fingerprint information and orientation information of a user
  • the output device 703 may include a display (LCD, etc.), a speaker, and the like.
  • the memory 704 may include a read-only memory and a random access memory, and provide instructions and data to the processor 701. A portion of the memory 704 may also include non-volatile random access memory. For example, the memory 704 may also store device type information.
  • the processor 701, the input device 702, and the output device 703 described in the embodiment of this solution can execute the implementation manners described in the first and second embodiments of the service request method provided by this embodiment of the solution.
  • the implementation manner of the terminal described in this embodiment of the present invention may also be performed, and details are not described herein again.
  • a computer-readable storage medium stores a computer program, where the computer program includes program instructions, and the program instructions are implemented by a processor to implement the foregoing implementation. All or part of the processes in the example method can also be completed by a computer program instructing related hardware.
  • the computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the computer program can be implemented. Steps of the above method embodiments. .
  • the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electric carrier signals telecommunication signals
  • software distribution media any entity or device capable of carrying the computer program code
  • a recording medium a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.
  • the computer-readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, such as a hard disk or a memory of the terminal.
  • the computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), Secure Digital, SD) card, flash card, etc.
  • the computer-readable storage medium may include both an internal storage unit of the terminal and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the computer-readable storage medium may also be used to temporarily store data that has been or will be output.
  • the disclosed terminals and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of this solution.
  • each functional unit in each embodiment of the solution may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.

Abstract

The present solution relates to the technical field of communications, and provides a method for detecting network connection of a payment gateway, and a terminal device. The method comprises: sending a network connection detection request to the payment gateway; receiving network connection detection data returned by the payment gateway according to the network connection detection request, the network connection detection data comprising a plurality of detection indicators; and determining a connection state of the payment gateway network connection according to a comparison result between the network connection detection data and a pre-stored detection data standard threshold. The method for detecting the network connection of the payment gateway in embodiments of the present solution, by obtaining the network connection detection data sent by the payment gateway, and determining the connection state of the payment gateway network connection according to the comparison result between the network connection detection data and the pre-stored detection data standard threshold, has the advantages of high detection efficiency, low costs, and high accuracy, and avoids problems that the efficiency of manual detection is low, large labor costs are required, and the accuracy of human detection is poor.

Description

支付网关网络连接检测方法及终端设备Payment gateway network connection detection method and terminal equipment 技术领域Technical field
本方案属于通信技术领域,尤其涉及一种支付网关网络连接检测方法及终端设备。This solution belongs to the field of communication technology, and particularly relates to a method and terminal device for detecting a network connection of a payment gateway.
背景技术Background technique
随着计算机技术的不断发展,互联网金融已经渗透人们生活的方方面面,网络支付成为人们不可缺少的服务。在消费者完成网络支付后,支付网关会将支付结果信息发送给商户,以使商户获得支付结果。付网关在在全国的数量有限,同时支付网关需要为全国的商户提供支付服务,因此必须保证业务服务器与支付网关的网络连接畅通。With the continuous development of computer technology, Internet finance has penetrated all aspects of people's lives, and online payment has become an indispensable service for people. After the consumer completes the online payment, the payment gateway sends the payment result information to the merchant so that the merchant can obtain the payment result. The number of payment gateways in the country is limited. At the same time, payment gateways need to provide payment services for merchants across the country. Therefore, the network connection between the business server and the payment gateway must be smooth.
目前,现有的检测服务器与支付网关网络连接故障的方式一般是,当服务器与支付网关的通信发生故障时,由检修人员人工进行检测,确定故障原因,为排除故障提供依据。但是这种人工检测的方式效率低下,需要耗费较大的人力成本,且人为检测的准确性较差。At present, the existing method for detecting a network connection failure between the server and the payment gateway is generally that when the communication between the server and the payment gateway fails, the maintenance personnel perform manual detection to determine the cause of the failure and provide a basis for troubleshooting. However, this method of manual detection is inefficient, requires large labor costs, and the accuracy of human detection is poor.
技术问题technical problem
有鉴于此,本方案实施例提供了一种支付网关网络连接检测方法及终端设备,能够解决现有技术中当出现网络拥堵等情况时,支付结果信息则不会发送到商户侧,造成商户不能获得支付结果,影响商户与消费者之间的交易的问题。In view of this, embodiments of this solution provide a payment gateway network connection detection method and terminal device, which can solve the problem that when the network is congested in the prior art, the payment result information will not be sent to the merchant side, causing the merchant to fail. Issues in obtaining payment results that affect transactions between merchants and consumers.
技术解决方案Technical solutions
本方案实施例的第一方面,提供了一种支付网关网络连接检测方法,包括:According to a first aspect of this embodiment of the present invention, a method for detecting a payment gateway network connection is provided, including:
向支付网关发送网络连接检测请求;Send a network connection detection request to the payment gateway;
接收所述支付网关根据所述网络连接检测请求返回的网络连接检测数据,所述网络连接检测数据中包括若干检测指标;Receiving network connection detection data returned by the payment gateway according to the network connection detection request, where the network connection detection data includes several detection indicators;
根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定与支付网关网络连接的连接状态。According to the comparison result between the network connection detection data and the pre-stored detection data standard threshold, determine the connection status with the payment gateway network connection.
本方案实施例的第二方面,提供了一种支付网关网络连接检测装置,包括:According to a second aspect of this embodiment of the present invention, a payment gateway network connection detection device is provided, including:
连接检测请求发送模块,用于向支付网关发送网络连接检测请求;A connection detection request sending module, configured to send a network connection detection request to a payment gateway;
网络连接检测数据接收模块,用于接收所述支付网关根据所述网络连接检测请求返回的网络连接检测数据,所述网络连接检测数据中包括若干检测指标;A network connection detection data receiving module, configured to receive network connection detection data returned by the payment gateway according to the network connection detection request, where the network connection detection data includes several detection indicators;
网络连接状态确定模块,用于根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定与支付网关网络连接的连接状态。The network connection state determination module is configured to determine a connection state of the network connection with the payment gateway according to a comparison result between the network connection detection data and a pre-stored detection data standard threshold.
本方案实施例的第三方面,提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的支付网关网络连接检测方法的步骤。According to a third aspect of this embodiment of the present invention, a terminal device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program The steps of the above-mentioned method for detecting the network connection of the payment gateway are implemented at times.
本方案实施例的第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述的支付网关网络连接检测方法的步骤。According to a fourth aspect of this embodiment of the present invention, a computer-readable storage medium is provided, where the computer-readable storage medium stores a computer program that, when executed by a processor, implements the foregoing payment gateway network connection detection method. step.
有益效果Beneficial effect
本方案实施例与现有技术相比的有益效果是:本方案实施例提供的支付网关网络连接检测方法及终端设备,向支付网关发送网络连接检测请求,接收支付网关根据网络连接检测请求返回的网络连接检测数据,网络连接检测数据中包括若干检测指标,根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定支付网关网络连接的连接状态。本方案实施例的支付网关网络连接检测方法通过获取支付网关发送的网络连接检测数据,根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定支付网关网络连接的连接状态,具有检测效率高、成本低、准确性高的优点,避免人工检测导致的效率低下,需要耗费较大的人力成本,且人为检测的准确性较差的问题。The beneficial effects of this embodiment of the solution compared with the prior art are: the payment gateway network connection detection method and the terminal device provided by this embodiment of the solution, send a network connection detection request to the payment gateway, and receive the payment gateway returned according to the network connection detection request. Network connection detection data. The network connection detection data includes several detection indicators. According to the comparison result between the network connection detection data and the pre-stored detection data standard threshold, the connection status of the payment gateway network connection is determined. The method for detecting the network connection of the payment gateway according to the embodiment of the present invention obtains the network connection detection data sent by the payment gateway, and determines the connection status of the network connection of the payment gateway according to the comparison result between the network connection detection data and the pre-stored detection data standard threshold, which has detection efficiency It has the advantages of high cost, low cost, and high accuracy, avoiding the inefficiency caused by manual detection, which requires large labor costs and poor accuracy of human detection.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本方案实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本方案的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present solution, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for this solution. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
图1为本方案一实施例提供的一种支付网关网络连接检测方法的流程示意图;FIG. 1 is a schematic flowchart of a payment gateway network connection detection method according to an embodiment of the solution; FIG.
图2为本方案另一实施例提供的一种支付网关网络连接检测方法的流程示意图;2 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present solution;
图3为本方案再一实施例提供的一种支付网关网络连接检测方法的流程示意图;FIG. 3 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution; FIG.
图4为本方案又一实施例提供的一种支付网关网络连接检测方法的流程示意图;4 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present solution;
图5为本方案又一实施例提供的一种支付网关网络连接检测方法的流程示意图;5 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present solution;
图6为本方案一实施例提供的一种支付网关网络连接检测装置的结构框图;FIG. 6 is a structural block diagram of a payment gateway network connection detection device according to an embodiment of the solution; FIG.
图7为本方案一实施例提供的一种终端设备的示意框图。FIG. 7 is a schematic block diagram of a terminal device according to an embodiment of the solution.
本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本方案实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本方案。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本方案的描述。In the following description, for the purpose of explanation rather than limitation, specific details such as a specific system structure and technology are provided in order to thoroughly understand the embodiments of the solution. However, it should be clear to a person skilled in the art that this solution can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted, so as not to prevent unnecessary details from obstructing the description of this solution.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the terms "including" and "comprising" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude one or The presence or addition of a number of other features, wholes, steps, operations, elements, components, and / or sets thereof.
还应当理解,在此本方案说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本方案。如在本方案说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in this description of the scheme is merely for the purpose of describing particular embodiments and is not intended to limit the scheme. As used in the specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
还应当进一步理解,在本方案说明书和所附权利要求书中使用的术语“和/ 或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should be further understood that the term "and / or" used in this specification and the appended claims refers to any combination of one or more of the listed items and all possible combinations, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当... 时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" can be construed as "when" or "once" or "in response to a determination" or "in response to a detection" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted, depending on the context, to mean "once determined" or "in response to the determination" or "once [the condition or event described ] "Or" In response to [Description of condition or event] detected ".
为了说明本方案所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solution described in this solution, the following description is made through specific embodiments.
参考图1,图1为本方案一实施例提供的一种支付网关网络连接检测方法的流程示意图。该可以应用于服务器,特别的可以应用于支付业务服务器,所述方法详述如下:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a payment gateway network connection detection method according to an embodiment of the solution. This method can be applied to a server, in particular, to a payment service server. The method is described in detail as follows:
S101:向支付网关发送网络连接检测请求。S101: Send a network connection detection request to a payment gateway.
在本实施例中,只支付网关可以是处理支付业务的中转设备,例如交换设备或路由设备。网络连接检测请求中可以携带发送网络连接检测请求的服务器设备标识。优选地,向支付网关发送网络连接检测请求的方式为心跳数据包。In this embodiment, the payment-only gateway may be a transit device that processes payment services, such as a switching device or a routing device. The network connection detection request may carry a server device identifier that sends the network connection detection request. Preferably, the way of sending the network connection detection request to the payment gateway is a heartbeat data packet.
S102:接收支付网关根据网络连接检测请求返回的网络连接检测数据,网络连接检测数据中包括若干检测指标。S102: Receive network connection detection data returned by the payment gateway according to the network connection detection request, and the network connection detection data includes several detection indicators.
在本实施例中,网络连接检测数据可以是包含若干检测指标的数据包。若干检测指标包括但不限于DNS(Domain Name System,域名系统)解析状态、发送网络连接检测请求到支付网关的时间、支付网关生成所述网络连接检测数据的时间、接收支付网关返回的网络连接检测数据的时间等。In this embodiment, the network connection detection data may be a data packet including several detection indicators. Several detection indicators include, but are not limited to, DNS (Domain Name System, Domain Name System) resolution status, time when a network connection detection request is sent to the payment gateway, time when the payment gateway generates the network connection detection data, and network connection detection returned by the payment gateway. Time of data, etc.
S103:根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定与支付网关网络连接的连接状态。S103: Determine the connection status of the network connection with the payment gateway according to the comparison result between the network connection detection data and the pre-stored detection data standard threshold.
在本实施例中,预存的检测数据标准阈值可根据需求进行设置。其中网络连接检测数据包括若干检测指标,预存的检测数据标准阈值为于若干检测指标对应的若干检测指标阈值。In this embodiment, the pre-stored standard threshold value of the detection data can be set according to requirements. The network connection detection data includes several detection indicators, and the standard threshold of the pre-stored detection data is the thresholds of the detection indicators corresponding to the detection indicators.
从上述实施例可知,首先通过向支付网关发送网络连接检测请求,然后接受支付网关返回的网络连接监测数据,其中网络连接检测数据中包括若干检测指标,最后根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定与支付网关网络连接的连接状态,由于不需要人工检测,检测效率高、成本低、准确性高。It can be known from the foregoing embodiments that the network connection detection request is first sent to the payment gateway, and then the network connection monitoring data returned by the payment gateway is received. The network connection detection data includes several detection indicators, and finally, the network connection detection data and the pre-stored detection data The comparison result of the standard threshold determines the connection status with the payment gateway network connection. Since no manual detection is required, the detection efficiency is high, the cost is low, and the accuracy is high.
参考图2,图2为本方案另一实施例提供的一种支付网关网络连接检测方法的流程示意图。在上述实施例的基础上,所述步骤S103包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution. Based on the above embodiment, the step S103 includes:
S201:将每个检测指标与预存的指标阈值进行比较。S201: Compare each detection index with a pre-stored index threshold.
在本实施例中,预存的指标阈值可以根据需求进行设置。检测指标可以包括DNS解析状态、发送网络连接检测请求到支付网关的时间、支付网关生成所述网络连接检测数据的时间、接收支付网关返回的网络连接检测数据的时间等等。In this embodiment, the pre-stored index threshold can be set according to requirements. The detection indicators may include the DNS resolution status, the time when the network connection detection request is sent to the payment gateway, the time when the payment gateway generates the network connection detection data, the time when the network connection detection data returned by the payment gateway is received, and so on.
S202:当任一检测指标超出预存的指标阈值时,确定任一检测指标异常。S202: When any detection index exceeds a pre-stored index threshold, determine that any detection index is abnormal.
具体地,确定任一检测指标异常的具体方式可以是,在对应的网络连接检测数据上添加上对应的指标异常标签。Specifically, a specific way to determine that any of the detection index abnormalities is to add a corresponding index abnormality label to the corresponding network connection detection data.
S203:判断每个检测指标是否异常,得到每个检测指标的检测结果。S203: Determine whether each detection index is abnormal, and obtain a detection result of each detection index.
具体地,将每个对应的指标异常标签添加到对应的网络连接检测数据上。Specifically, each corresponding index abnormality label is added to the corresponding network connection detection data.
S204:根据所有检测指标的检测结果,按照预设策略确定支付网关网络连接的连接状态。S204: Determine the connection status of the payment gateway network connection according to the detection results of all detection indicators and according to a preset policy.
在本实施例中,预设策略可以根据用户的需求设置。例如,当检测指标的检测结果中某几项为指标异常时,确定支付网关网络连接的连接状态为拥堵或故障异常。In this embodiment, the preset policy can be set according to the needs of the user. For example, when some of the detection results of the detection indicators are abnormal indicators, it is determined that the connection status of the payment gateway network connection is congestion or failure.
从上述实施例可知,通过所有检测指标的检测结果,按照预设策略确定支付网关网络连接的连接状态,能够更准确的确定支付网关网络连接的不同的连接状态。It can be known from the above embodiments that the connection status of the payment gateway network connection can be determined more accurately according to the detection results of all detection indicators according to a preset policy, and different connection statuses of the payment gateway network connection can be determined more accurately.
参考图3,图3为本方案再一实施例提供的一种支付网关网络连接检测方法的流程示意图。在上述实施例的基础上,所述若干检测指标包括:DNS解析状态、发送网络连接检测请求到支付网关的第一时间、支付网关生成所述网络连接检测数据的第二时间、接收支付网关返回的网络连接检测数据的第三时间,上述步骤S204详述如下:Referring to FIG. 3, FIG. 3 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution. Based on the above embodiment, the several detection indicators include: DNS resolution status, the first time when a network connection detection request is sent to the payment gateway, the second time when the payment gateway generates the network connection detection data, and the return from the payment gateway is received. The third time of the network connection detection data, the above step S204 is detailed as follows:
S301:在预设时间段内,当DNS解析状态无故障,且第一时间、第二时间和第三时间分别没有超过第一时间阈值、第二时间阈值、第三时间阈值时,确定支付网关网络连接状态为正常。S301: In the preset time period, when the DNS resolution status is not faulty, and the first time, the second time, and the third time do not exceed the first time threshold, the second time threshold, and the third time threshold, respectively, determine the payment gateway. The network connection status is normal.
在本实施例中,DNS解析状态为DNS服务器为业务服务器解析支付网关的结果,包括正常或异常状态。发送网络连接检测请求到支付网关的第一时间为业务服务器发送网络连接检测请求开始到支付网关接收到该网络连接检测请求结束的时间。支付网关生成所述网络连接检测数据的第二时间为支付网关接收到网络连接检测请求开始到生成网络连接检测数据的时间。接收支付网关返回的网络连接检测数据的第三时间为支付网关生成网络连接检测数据到业务服务器接收到网络连接检测数据的时间。In this embodiment, the DNS resolution status is the result of the DNS server resolving the payment gateway for the service server, including normal or abnormal status. The first time when the network connection detection request is sent to the payment gateway is the time from when the service server sends the network connection detection request to the time when the payment gateway receives the network connection detection request. The second time when the payment gateway generates the network connection detection data is the time from when the payment gateway receives the network connection detection request to when the network connection detection data is generated. The third time of receiving the network connection detection data returned by the payment gateway is the time from when the payment gateway generates the network connection detection data to when the service server receives the network connection detection data.
其中,第一时间阈值、第二时间阈值、第三时间阈值可以根据需求进行设置,本方案不作任何限制。The first time threshold, the second time threshold, and the third time threshold can be set according to requirements, and there are no restrictions in this solution.
S302:在预设时间段内,当DNS解析状态无故障,且第一时间超过第一时间阈值,或第二时间超过第二时间阈值,第三时间超过第三时间阈值时,确定支付网关网络连接状态为拥堵。S302: In the preset time period, when the DNS resolution status is not faulty, and the first time exceeds the first time threshold, or the second time exceeds the second time threshold, and the third time exceeds the third time threshold, the payment gateway network is determined. The connection status is congested.
在本实施例中,支付网关网络连接状态拥堵包括与支付网关网络连接的连接线路拥堵,或者支付网关处理生成网络连接检测数据的过程较慢。In this embodiment, the congestion of the payment gateway network connection status includes congestion of the connection lines connected to the payment gateway network, or the payment gateway processes a slower process of generating network connection detection data.
S303:在预设时间段内,当DNS解析状态有故障时,确定支付网关网络连接状态为DNS服务器故障。S303: In the preset time period, when the DNS resolution status is faulty, it is determined that the payment gateway network connection status is that the DNS server is faulty.
在本实施例中,DNS解析状态有故障包括DNS服务器不能为业务服务器提供域名解析服务,业务服务器就不能有效的建立与支付网关的网络连接。In this embodiment, the failure of the DNS resolution status includes that the DNS server cannot provide a domain name resolution service for the business server, and the business server cannot effectively establish a network connection with the payment gateway.
从上述实施例可知,通过域名系统DNS解析状态、发送网络连接检测请求到支付网关的第一时间、支付网关生成所述网络连接检测数据的第二时间、接收支付网关返回的网络连接检测数据的第三时间,可以确定支付网关网络连接的连接状态是正常、拥堵或者DNS服务器故障中的具体哪一种。It can be known from the above embodiments that the domain name system DNS resolves the status, the first time when the network connection detection request is sent to the payment gateway, the second time when the payment gateway generates the network connection detection data, and the time when the network connection detection data returned by the payment gateway is received. At the third time, it can be determined whether the connection status of the payment gateway network connection is normal, congested, or DNS server failure.
参考图4,图4为本方案又一实施例提供的一种支付网关网络连接检测方法的流程示意图。在上述实施例基础上,还包括:Referring to FIG. 4, FIG. 4 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the solution. Based on the above embodiment, it further includes:
S401:在预设时间段内,当所述第二时间超过第四时间阈值,所述第四时间阈值大于所述第二时间阈值时,确定所述支付网关网络连接状态为所述支付网关负载过重。S401: within a preset period of time, when the second time exceeds a fourth time threshold, and the fourth time threshold is greater than the second time threshold, determine that the payment gateway network connection status is the payment gateway load too heavy.
在本实施例中,支付网关负载过重是指处理网络连接检测请求的时间过长,该支付网关的处理能力较差,该支付网关处理的业务太多,负担过重。In this embodiment, the overload of the payment gateway means that the processing time of the network connection detection request is too long, the processing capability of the payment gateway is poor, and the payment gateway processes too many services and is overloaded.
参考图5,图5为本方案又一实施例提供的一种支付网关网络连接检测方法的流程示意图。在上述实施例基础上,所述方法还包括:Referring to FIG. 5, FIG. 5 is a schematic flowchart of a payment gateway network connection detection method according to another embodiment of the present invention. Based on the above embodiments, the method further includes:
S501:获取支付网关网络连接的连接状态与时间的对应关系数据。S501: Obtain correspondence data of a connection state and time of a payment gateway network connection.
在本实施例中,可以获取预设时间段内(如1年内)的支付网关网络连接的连接状态与时间的对应关系数据,并以数据库的形式进行保存。In this embodiment, the data of the correspondence between the connection status and time of the payment gateway network connection within a preset time period (for example, within one year) can be obtained and stored in the form of a database.
S502:确定所述支付网关网络连接的故障概率,其中所述故障概率为所述对应关系数据中异常时间占连接状态总时间的比值。S502: Determine a failure probability of the payment gateway network connection, where the failure probability is a ratio of abnormal time in the corresponding relationship data to the total time of the connection state.
在本实施例中,网关网络连接的连接状态包括正常状态和异常状态,其中异常状态可以包括拥堵、DNS服务器故障、支付网关负载过重等状态。In this embodiment, the connection state of the gateway network connection includes a normal state and an abnormal state, where the abnormal state may include states such as congestion, DNS server failure, and excessive load on the payment gateway.
S503:若判定所述故障概率超过预设的概率阈值,则确定所述支付网关网络连接为不稳定状态。S503: If it is determined that the failure probability exceeds a preset probability threshold, determine that the payment gateway network connection is in an unstable state.
在本实施例中,预设的概率阈值可以根据需求进行设置。所述支付网关网络连接为不稳定状态说明与该支付网关网络连接的业务服务器的工作易受到影响。In this embodiment, the preset probability threshold can be set according to requirements. The unstable state of the payment gateway network connection indicates that the work of the service server connected to the payment gateway network is easily affected.
从上述实施例可知,通过判定所述故障概率是否超过预设的概率阈值,确定支付网关网络连接为是否稳定,能够为使用该支付网关网络连接的服务器的业务是否稳定进行提供参考依据。It can be known from the above embodiments that determining whether the failure probability exceeds a preset probability threshold and determining whether the payment gateway network connection is stable can provide a reference basis for whether the service of the server connected to the payment gateway network is stable.
在本方案的一个实施例中,所述检测指标中还包括服务商代码,若确定所述支付网关网络连接状态为拥堵,则获取所述服务商代码,并根据所述服务商代码更换网络线路。In an embodiment of the solution, the detection index further includes a service provider code. If it is determined that the payment gateway network connection status is congested, the service provider code is obtained, and the network line is replaced according to the service provider code. .
在本方案的一个实施例中,所述检测指标中还包括支付网关身份标识,若确定所述支付网关网络连接状态为所述支付网关负载过重,则获取所述支付网关身份标识,并根据所述支付网关身份标识更换支付网关。In an embodiment of the solution, the detection indicator further includes a payment gateway identity. If it is determined that the payment gateway network connection status is that the payment gateway is overloaded, the payment gateway identity is obtained, and according to The payment gateway identity replaces the payment gateway.
在本方案的一个实施例中,所述检测指标中还包括DNS服务器身份标识,确定所述支付网关网络连接状态为DNS服务器故障,则获取所述DNS服务器身份标识,并根据所述DNS服务器身份标识更换DNS服务器。In an embodiment of the solution, the detection indicator further includes a DNS server identity, and if it is determined that the payment gateway network connection status is a DNS server failure, the DNS server identity is obtained, and according to the DNS server identity Identify the replacement DNS server.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本方案实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of this solution.
对应于上文实施例的支付网关网络连接检测方法,图6为本方案一实施例提供的一种支付网关网络连接检测装置的结构框图。为了便于说明,仅示出了与本方案实施例相关的部分。参照图6,该装置包括:连接检测请求发送模块601、网络连接检测数据接收模块602和网络连接状态确定模块603。Corresponding to the payment gateway network connection detection method of the above embodiment, FIG. 6 is a structural block diagram of a payment gateway network connection detection device according to an embodiment of the solution. For convenience of explanation, only parts related to the embodiment of the present solution are shown. Referring to FIG. 6, the apparatus includes a connection detection request sending module 601, a network connection detection data receiving module 602, and a network connection status determination module 603.
其中,连接检测请求发送模块601,用于向支付网关发送网络连接检测请求;The connection detection request sending module 601 is configured to send a network connection detection request to a payment gateway;
网络连接检测数据接收模块602,用于接收所述支付网关根据所述网络连接检测请求返回的网络连接检测数据,所述网络连接检测数据中包括若干检测指标;The network connection detection data receiving module 602 is configured to receive network connection detection data returned by the payment gateway according to the network connection detection request, where the network connection detection data includes several detection indicators;
网络连接状态确定模块603,用于根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定与支付网关网络连接的连接状态。The network connection state determining module 603 is configured to determine a connection state of the network connection with the payment gateway according to a comparison result between the network connection detection data and a pre-stored detection data standard threshold.
参考图6,在本方案的一个实施例中,所述网络连接状态确定模块603,包括:Referring to FIG. 6, in an embodiment of the present solution, the network connection status determination module 603 includes:
检测指标比较单元6031,用于将每个检测指标与预存的指标阈值进行比较;A detection index comparison unit 6031 is configured to compare each detection index with a pre-stored index threshold;
指标异常确定单元6032,用于当任一检测指标超出预存的指标阈值时,确定所述任一检测指标异常;An indicator abnormality determining unit 6032 is configured to determine that any one of the detected indicators is abnormal when any one of the detected indicators exceeds a pre-stored indicator threshold;
检测结果获取单元6033,用于判断每个检测指标是否异常,得到每个检测指标的检测结果;A detection result obtaining unit 6033 is configured to determine whether each detection index is abnormal, and obtain a detection result of each detection index;
网络连接状态确定单元6034,用于根据所有检测指标的检测结果,按照预设策略确定支付网关网络连接的连接状态。The network connection state determining unit 6034 is configured to determine a connection state of the payment gateway network connection according to a detection result of all detection indicators and according to a preset policy.
参考图6,在本方案的一个实施例中,所述若干检测指标包括:域名系统DNS解析状态、发送网络连接检测请求到支付网关的第一时间、支付网关生成所述网络连接检测数据的第二时间、接收支付网关返回的网络连接检测数据的第三时间;Referring to FIG. 6, in one embodiment of the solution, the several detection indicators include: a DNS resolution status of a domain name system, a first time to send a network connection detection request to a payment gateway, and a first time the payment gateway generates the network connection detection data. Second time, the third time to receive the network connection detection data returned by the payment gateway;
所述网络连接状态确定单元6034,具体用于在预设时间段内,当DNS解析状态无故障,且所述第一时间、第二时间和所述第三时间分别没有超过第一时间阈值、第二时间阈值、第三时间阈值时,确定所述支付网关网络连接状态为正常;The network connection status determining unit 6034 is specifically configured to: when the DNS resolution status is not faulty within a preset time period, and the first time, the second time, and the third time do not exceed the first time threshold, When the second time threshold and the third time threshold are determined, the payment gateway network connection status is normal;
在所述预设时间段内,当DNS解析状态无故障,且所述第一时间超过所述第一时间阈值,或所述第二时间超过所述第二时间阈值,所述第三时间超过所述第三时间阈值时,确定所述支付网关网络连接状态为拥堵;In the preset time period, when the DNS resolution status is not faulty, and the first time exceeds the first time threshold, or the second time exceeds the second time threshold, and the third time exceeds At the third time threshold, determining that the payment gateway network connection state is congestion;
在所述预设时间段内,当DNS解析状态有故障时,确定所述支付网关网络连接状态为DNS服务器故障。In the preset time period, when the DNS resolution status is faulty, it is determined that the payment gateway network connection status is a DNS server fault.
参考图6,在本方案的一个实施例中,所述网络连接状态确定单元6034,还用于在预设时间段内,当所述第二时间超过第四时间阈值,所述第四时间阈值大于所述第二时间阈值时,确定所述支付网关网络连接状态为所述支付网关负载过重。Referring to FIG. 6, in an embodiment of the solution, the network connection status determining unit 6034 is further configured to, within a preset time period, when the second time exceeds a fourth time threshold, the fourth time threshold When it is greater than the second time threshold, it is determined that the payment gateway network connection state is that the payment gateway is overloaded.
参考图6,在本方案的一个实施例中,所述网络连接状态确定单元6034,还用于获取支付网关网络连接的连接状态与时间的对应关系数据;Referring to FIG. 6, in an embodiment of the present solution, the network connection state determining unit 6034 is further configured to obtain data on a correspondence between a connection state and a time of a payment gateway network connection;
确定所述支付网关网络连接的故障概率,其中所述故障概率为所述对应关系数据中异常时间占连接状态总时间的比值;Determining a failure probability of the payment gateway network connection, where the failure probability is a ratio of abnormal time in the corresponding relationship data to the total time of the connection state;
若判定所述故障概率超过预设的概率阈值,则确定所述支付网关网络连接为不稳定状态。If it is determined that the failure probability exceeds a preset probability threshold, it is determined that the payment gateway network connection is in an unstable state.
参考图6,在本方案的一个实施例中,所述装置还包括:更换模块604,用于所述检测指标中还包括服务商代码,若确定所述支付网关网络连接状态为拥堵,则获取所述服务商代码,并根据所述服务商代码更换网络线路。Referring to FIG. 6, in an embodiment of the present solution, the device further includes: a replacement module 604, where the detection indicator further includes a service provider code, and if it is determined that the payment gateway network connection status is congested, obtain The service provider code, and a network line is replaced according to the service provider code.
在本方案的一个实施例中,所述更换模块604,还用于所述检测指标中还包括支付网关身份标识,若确定所述支付网关网络连接状态为所述支付网关负载过重,则获取所述支付网关身份标识,并根据所述支付网关身份标识更换支付网关。In one embodiment of the solution, the replacement module 604 is further used for the detection indicator to further include a payment gateway identity. If it is determined that the payment gateway network connection status is that the payment gateway is overloaded, obtain The payment gateway identity, and replacing the payment gateway according to the payment gateway identity.
在本方案的一个实施例中,所述更换模块604,还用于所述检测指标中还包括DNS服务器身份标识,确定所述支付网关网络连接状态为DNS服务器故障,则获取所述DNS服务器身份标识,并根据所述DNS服务器身份标识更换DNS服务器。In an embodiment of the solution, the replacement module 604 is further configured to include a DNS server identity in the detection index. If it is determined that the payment gateway network connection status is a DNS server failure, then obtain the DNS server identity. Identify, and replace the DNS server according to the DNS server identity.
参见图7,图7为本方案一实施例提供的一种终端设备的示意框图。如图7所示的本实施例中的终端700可以包括:一个或多个处理器701、一个或多个输入设备702、一个或多个则输出设备703及一个或多个存储器704。上述处理器701、输入设备702、则输出设备703及存储器704通过通信总线705完成相互间的通信。存储器704用于存储计算机程序,所述计算机程序包括程序指令。处理器701用于执行存储器704存储的程序指令。其中,处理器701被配置用于调用所述程序指令执行以下操作上述各装置实施例中各模块/单元的功能,例如图6所示模块601至603的功能。Referring to FIG. 7, FIG. 7 is a schematic block diagram of a terminal device according to an embodiment of the present invention. The terminal 700 in this embodiment as shown in FIG. 7 may include: one or more processors 701, one or more input devices 702, one or more output devices 703, and one or more memories 704. The processor 701, the input device 702, the output device 703, and the memory 704 complete communication with each other through the communication bus 705. The memory 704 is configured to store a computer program, where the computer program includes program instructions. The processor 701 is configured to execute program instructions stored in the memory 704. The processor 701 is configured to call the program instructions to perform the following operations on the functions of each module / unit in each of the foregoing device embodiments, for example, the functions of modules 601 to 603 shown in FIG. 6.
应当理解,在本方案实施例中,所称处理器701可以是中央处理单元 (Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present invention, the processor 701 may be a central processing unit. (Central Processing Unit, CPU), the processor can also be other general-purpose processors, digital signal processors (DSPs), and application-specific integrated circuits (Applications) Specific Integrated Circuit (ASIC), off-the-shelf Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
输入设备702可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备703可以包括显示器(LCD等)、扬声器等。The input device 702 may include a touch panel, a fingerprint sensor (for collecting fingerprint information and orientation information of a user), a microphone, and the like, and the output device 703 may include a display (LCD, etc.), a speaker, and the like.
该存储器704可以包括只读存储器和随机存取存储器,并向处理器701 提供指令和数据。存储器704的一部分还可以包括非易失性随机存取存储器。例如,存储器704还可以存储设备类型的信息。The memory 704 may include a read-only memory and a random access memory, and provide instructions and data to the processor 701. A portion of the memory 704 may also include non-volatile random access memory. For example, the memory 704 may also store device type information.
具体实现中,本方案实施例中所描述的处理器701、输入设备702、输出设备703可执行本方案实施例提供的业务请求方法的第一实施例和第二实施例中所描述的实现方式,也可执行本方案实施例所描述的终端的实现方式,在此不再赘述。In specific implementation, the processor 701, the input device 702, and the output device 703 described in the embodiment of this solution can execute the implementation manners described in the first and second embodiments of the service request method provided by this embodiment of the solution. The implementation manner of the terminal described in this embodiment of the present invention may also be performed, and details are not described herein again.
在本方案的另一实施例中提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。In another embodiment of the solution, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, where the computer program includes program instructions, and the program instructions are implemented by a processor to implement the foregoing implementation. All or part of the processes in the example method can also be completed by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the computer program can be implemented. Steps of the above method embodiments. . The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions. For example, in some jurisdictions, the computer-readable medium Excludes electric carrier signals and telecommunication signals.
所述计算机可读存储介质可以是前述任一实施例所述的终端的内部存储单元,例如终端的硬盘或内存。所述计算机可读存储介质也可以是所述终端的外部存储设备,例如所述终端上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述终端的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), Secure Digital, SD) card, flash card, etc. Further, the computer-readable storage medium may include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been or will be output.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本方案的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the hardware and software, Interchangeability. In the above description, the composition and steps of each example have been described generally in terms of functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but this implementation should not be considered beyond the scope of this solution.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的终端和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the terminals and units described above can refer to the corresponding processes in the foregoing method embodiments, and are not repeated here.
在本方案所提供的几个实施例中,应该理解到,所揭露的终端和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by this solution, it should be understood that the disclosed terminals and methods may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本方案实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of this solution.
另外,在本方案各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the solution may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
以上所述,仅为本方案的具体实施方式,但本方案的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本方案揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本方案的保护范围之内。因此,本方案的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this solution, but the scope of protection of this solution is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed by this solution. Modifications or replacements, and these modifications or replacements should be covered by the protection scope of this scheme. Therefore, the protection scope of this solution shall be subject to the protection scope of the claims.

Claims (10)

  1. 一种支付网关网络连接检测方法,其特征在于,包括:A method for detecting a network connection of a payment gateway, comprising:
    向支付网关发送网络连接检测请求;Send a network connection detection request to the payment gateway;
    接收所述支付网关根据所述网络连接检测请求返回的网络连接检测数据,所述网络连接检测数据中包括若干检测指标;Receiving network connection detection data returned by the payment gateway according to the network connection detection request, where the network connection detection data includes several detection indicators;
    根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定与支付网关网络连接的连接状态。According to the comparison result between the network connection detection data and the pre-stored detection data standard threshold, determine the connection status with the payment gateway network connection.
  2. 根据权利要求1所述的支付网关网络连接检测方法,其特征在于,所述根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定支付网关网络连接的连接状态包括:The method for detecting a network connection of a payment gateway according to claim 1, wherein determining the connection status of the network connection of the payment gateway according to a comparison result between the network connection detection data and a pre-stored detection data standard threshold comprises:
    将每个检测指标与预存的指标阈值进行比较;Compare each detection index with the pre-stored index threshold;
    当任一检测指标超出预存的指标阈值时,确定所述任一检测指标异常;When any detection index exceeds a pre-stored index threshold, determining that any detection index is abnormal;
    判断每个检测指标是否异常,得到每个检测指标的检测结果;Determine whether each detection index is abnormal and obtain the detection result of each detection index;
    根据所有检测指标的检测结果,按照预设策略确定支付网关网络连接的连接状态。According to the detection results of all detection indicators, the connection status of the payment gateway network connection is determined according to a preset policy.
  3. 根据权利要求2所述的支付网关网络连接检测方法,其特征在于,所述若干检测指标包括:域名系统DNS解析状态、发送网络连接检测请求到支付网关的第一时间、支付网关生成所述网络连接检测数据的第二时间、接收支付网关返回的网络连接检测数据的第三时间;The method for detecting a network connection of a payment gateway according to claim 2, wherein the detection indicators include: a DNS resolution status of a domain name system, a first time to send a network connection detection request to the payment gateway, and the payment gateway to generate the network The second time of the connection detection data and the third time of receiving the network connection detection data returned by the payment gateway;
    所述根据所有检测指标的检测结果,按照预设策略确定支付网关网络连接的连接状态包括:The determining the connection status of the payment gateway network connection according to the detection results of all detection indicators according to a preset policy includes:
    在预设时间段内,当DNS解析状态无故障,且所述第一时间、第二时间和所述第三时间分别没有超过第一时间阈值、第二时间阈值、第三时间阈值时,确定所述支付网关网络连接状态为正常;In the preset time period, when the DNS resolution status is not faulty, and the first time, the second time, and the third time do not exceed the first time threshold, the second time threshold, and the third time threshold, respectively, it is determined The payment gateway network connection status is normal;
    在所述预设时间段内,当DNS解析状态无故障,且所述第一时间超过所述第一时间阈值,或所述第二时间超过所述第二时间阈值,所述第三时间超过所述第三时间阈值时,确定所述支付网关网络连接状态为拥堵;In the preset time period, when the DNS resolution status is not faulty, and the first time exceeds the first time threshold, or the second time exceeds the second time threshold, and the third time exceeds At the third time threshold, determining that the payment gateway network connection state is congestion;
    在所述预设时间段内,当DNS解析状态有故障时,确定所述支付网关网络连接状态为DNS服务器故障。In the preset time period, when the DNS resolution status is faulty, it is determined that the payment gateway network connection status is a DNS server fault.
  4. 根据权利要求3所述的支付网关网络连接检测方法,其特征在于,还包括:在预设时间段内,当所述第二时间超过第四时间阈值,所述第四时间阈值大于所述第二时间阈值时,确定所述支付网关网络连接状态为所述支付网关负载过重。The method for detecting a network connection of a payment gateway according to claim 3, further comprising: within a preset time period, when the second time exceeds a fourth time threshold, the fourth time threshold is greater than the first time threshold At the second time threshold, it is determined that the payment gateway network connection state is that the payment gateway is overloaded.
  5. 根据权利要求3所述的支付网关网络连接检测方法,其特征在于,还包括:The method for detecting a network connection of a payment gateway according to claim 3, further comprising:
    获取支付网关网络连接的连接状态与时间的对应关系数据;Obtain data on the correspondence between the connection status and time of the payment gateway network connection;
    确定所述支付网关网络连接的故障概率,其中所述故障概率为所述对应关系数据中异常时间占连接状态总时间的比值;Determining a failure probability of the payment gateway network connection, where the failure probability is a ratio of abnormal time in the corresponding relationship data to the total time of the connection state;
    若判定所述故障概率超过预设的概率阈值,则确定所述支付网关网络连接为不稳定状态。If it is determined that the failure probability exceeds a preset probability threshold, it is determined that the payment gateway network connection is in an unstable state.
  6. 一种支付网关网络连接检测装置,其特征在于,包括:A payment gateway network connection detection device includes:
    连接检测请求发送模块,用于向支付网关发送网络连接检测请求;A connection detection request sending module, configured to send a network connection detection request to a payment gateway;
    网络连接检测数据接收模块,用于接收所述支付网关根据所述网络连接检测请求返回的网络连接检测数据,所述网络连接检测数据中包括若干检测指标;A network connection detection data receiving module, configured to receive network connection detection data returned by the payment gateway according to the network connection detection request, where the network connection detection data includes several detection indicators;
    网络连接状态确定模块,用于根据网络连接检测数据与预存的检测数据标准阈值的对比结果,确定与支付网关网络连接的连接状态。The network connection state determination module is configured to determine a connection state of the network connection with the payment gateway according to a comparison result between the network connection detection data and a pre-stored detection data standard threshold.
  7. 根据权利要求6所述的支付网关网络连接检测装置,其特征在于,所述网络连接状态确定模块,包括:The payment gateway network connection detection device according to claim 6, wherein the network connection status determination module comprises:
    检测指标比较单元,用于将每个检测指标与预存的指标阈值进行比较;Detection index comparison unit, configured to compare each detection index with a pre-stored index threshold;
    指标异常确定单元,用于当任一检测指标超出预存的指标阈值时,确定所述任一检测指标异常;An indicator abnormality determining unit, configured to determine that any one of the detection indicators is abnormal when any one of the detection indicators exceeds a pre-stored indicator threshold;
    检测结果获取单元,用于判断每个检测指标是否异常,得到每个检测指标的检测结果;A detection result obtaining unit, configured to determine whether each detection index is abnormal, and obtain a detection result of each detection index;
    网络连接状态确定单元,用于根据所有检测指标的检测结果,按照预设策略确定支付网关网络连接的连接状态。The network connection state determining unit is configured to determine a connection state of the payment gateway network connection according to a detection result of all detection indicators and according to a preset policy.
  8. 根据权利要求7所述的支付网关网络连接检测装置,其特征在于,所述若干检测指标包括:域名系统DNS解析状态、发送网络连接检测请求到支付网关的第一时间、支付网关生成所述网络连接检测数据的第二时间、接收支付网关返回的网络连接检测数据的第三时间;The device for detecting the network connection of a payment gateway according to claim 7, wherein the detection indicators include: a DNS resolution status of a domain name system, a first time to send a network connection detection request to the payment gateway, and the payment gateway to generate the network The second time of the connection detection data and the third time of receiving the network connection detection data returned by the payment gateway;
    所述网络连接状态确定单元,具体用于在预设时间段内,当DNS解析状态无故障,且所述第一时间、第二时间和所述第三时间分别没有超过第一时间阈值、第二时间阈值、第三时间阈值时,确定所述支付网关网络连接状态为正常;The network connection status determination unit is specifically configured to: when the DNS resolution status is not faulty within a preset time period, and the first time, the second time, and the third time do not exceed the first time threshold, When the second time threshold and the third time threshold are determined, the payment gateway network connection status is normal;
    在所述预设时间段内,当DNS解析状态无故障,且所述第一时间超过所述第一时间阈值,或所述第二时间超过所述第二时间阈值,所述第三时间超过所述第三时间阈值时,确定所述支付网关网络连接状态为拥堵;In the preset time period, when the DNS resolution status is not faulty, and the first time exceeds the first time threshold, or the second time exceeds the second time threshold, and the third time exceeds At the third time threshold, determining that the payment gateway network connection state is congestion;
    在所述预设时间段内,当DNS解析状态有故障时,确定所述支付网关网络连接状态为DNS服务器故障。In the preset time period, when the DNS resolution status is faulty, it is determined that the payment gateway network connection status is a DNS server fault.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至5任一项所述的支付网关网络连接检测方法的步骤。A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the computer program according to claims 1 to 1 when executing the computer program. The steps of the payment gateway network connection detection method according to any one of 5 above.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的支付网关网络连接检测方法的步骤。A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the payment gateway network connection according to any one of claims 1 to 5 is implemented Steps of the detection method.
PCT/CN2018/095818 2018-07-16 2018-07-16 Method for detecting network connection of payment gateway, and terminal device WO2020014829A1 (en)

Priority Applications (2)

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
CN201880000836.8A CN109155745B (en) 2018-07-16 2018-07-16 Payment gateway is connected to the network detection method and terminal device

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 (1)

Publication Number Publication Date
WO2020014829A1 true WO2020014829A1 (en) 2020-01-23

Family

ID=64806248

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095818 WO2020014829A1 (en) 2018-07-16 2018-07-16 Method for detecting network connection of payment gateway, and terminal device

Country Status (2)

Country Link
CN (1) CN109155745B (en)
WO (1) WO2020014829A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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 (6)

* Cited by examiner, † Cited by third party
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
CN107612772A (en) * 2017-09-07 2018-01-19 北京驰波信息工程有限公司 The node state detection method and device of payment system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835098B (en) * 2017-11-28 2021-01-29 车智互联(北京)科技有限公司 Network fault detection method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
CN107612772A (en) * 2017-09-07 2018-01-19 北京驰波信息工程有限公司 The node state detection method and device of payment system

Also Published As

Publication number Publication date
CN109155745B (en) 2019-08-30
CN109155745A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN108809757B (en) System alarm method, storage medium and server
CN108322351A (en) Generate method and apparatus, fault determination method and the device of topological diagram
WO2020014954A1 (en) Data control method and terminal device
CN110661717A (en) Current limiting method and device and electronic equipment
CN109309735B (en) Connection processing method, server, system and storage medium
WO2020014829A1 (en) Method for detecting network connection of payment gateway, and terminal device
CN109639755B (en) Associated system server decoupling method, device, medium and electronic equipment
CN110599318A (en) Account checking method, account checking device and storage medium
CN114169767A (en) Risk assessment method and device
CN112437155B (en) Service data processing method and device and server device
CN115729786A (en) Monitoring method, device, equipment and storage medium applied to multiple systems
CN110930253A (en) Intelligent contract internal main key generation method and device, computer equipment and storage medium
JP5979719B2 (en) ATM system and method
CN113114588B (en) Data processing method and device, electronic equipment and storage medium
CN111061576B (en) Method and system for creating entity object
US11070615B2 (en) Method, device and computer program product for transaction negotiation
CN113238893A (en) Disaster recovery system, method, computer device and medium for multiple data centers
CN112788551A (en) Message processing method and device, terminal equipment and storage medium
CN108540337B (en) Dual-network-port POS machine and network state monitoring system and method thereof
CN108337128B (en) Method, device and system for monitoring communication state between systems
CN109388546B (en) Method, device and system for processing faults of application program
US20140067602A1 (en) Sanctions Screening
CN111210349A (en) Virtual asset transfer hosting method and device, electronic equipment and storage medium
TWI755005B (en) Test method based on improved rest protocol, client, server and medium
CN112596922B (en) Communication management method, device, equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18926406

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18926406

Country of ref document: EP

Kind code of ref document: A1