Method and apparatus for communicating access

CN116366743BActive Publication Date: 2026-08-28INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310422725.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-19
Publication Date
2026-08-28
Estimated Expiration
2043-04-19

AI Technical Summary

Technical Problem

[0003]由于合作方的客户端协议版本差异化比较大,业务行为也存在很多特殊性,容易导致银行服务端在做协议版本变更时出现协议版本不兼容的问题

Benefits of technology

[0041]由上述技术方案可知,本申请提供一种通讯接入方法及装置。其中,该方法包括:当金融机构服务端对应的多个客户端中存在非正常通讯接入的待检测客户端时,获取最新服务端协议版本和所述待检测客户端上一次正常通讯接入时的服务端协议版本;根据所述最新服务端协议版本和所述上一次正常通讯接入时的服务端协议版本,判断所述待检测客户端是否存在跨版本兼容性问题,若是,则应用所述上一次正常通讯接入时的服务端协议版本,完成所述待检测客户端通讯接入所述金融机构服务端,能够提高通讯接入的可靠性,进而保证金融交易过程的稳定性;可以实现客户端和服务端存在跨版本兼容,应对各种合作方特殊交易行为,提升银行服务端的高可用;具体地,可以通过创建独立的特定服务端实例,使存在版本兼容问题的客户端恢复正常,在对生产现有环境最小干预的情况,不影响现有正常接入的客户端和服务端,实现服务端通讯接入的多版本兼容,可以通过实时接入记录管理,能主动发现问题并能自动发现问题,环境可快速自恢复,无须人工干预,提高服务端通讯故障的解决效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366743B_ABST
    Figure CN116366743B_ABST
Patent Text Reader

Abstract

The application provides a communication access method and device, which can be used in the financial field or other fields. The method comprises the following steps: when there is an abnormal communication access client to be detected in a plurality of clients corresponding to a financial institution server, obtaining the latest server protocol version and the server protocol version at the last normal communication access of the client to be detected; judging whether the client to be detected has a cross-version compatibility problem according to the latest server protocol version and the server protocol version at the last normal communication access; if yes, applying the server protocol version at the last normal communication access to complete the communication access of the client to be detected to the financial institution server. The application can improve the reliability of communication access, and further ensure the stability of the financial transaction process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication access method and apparatus. Background Technology

[0002] With rapid economic development, large banks have an increasing need for business collaboration with various partners. However, there are many partners, making it impossible to connect with banks through a unified communication protocol. Even if they all use the HTTP protocol, there will be different protocol versions, such as HTTP 1.0, HTTP 1.1, and HTTP 2.0. As the server, the bank needs to support various communication protocol versions.

[0003] Because the client protocol versions of partners vary significantly, and their business behaviors have many unique characteristics, protocol version incompatibility issues can easily arise when the bank's server-side undergoes protocol version changes. For example, previously all partners accessed the bank via the HTTP 1.1 protocol. One day, a partner requested access via the HTTP 2.0 protocol. The bank cooperated by modifying its system to support this communication access. However, this partner's transaction volume was very low, perhaps even zero for several months. During this period, the bank's server-side protocol version was upgraded rapidly, possibly with new versions released every month. The bank's server-side developers might easily overlook HTTP 2.0 support. As a result, after several protocol version updates, the server no longer supports HTTP 2.0. Then, one day, when a partner suddenly experiences a surge in transaction requests, the bank's server will experience numerous anomalies (generally, the server only has one port, which can easily cause a global impact), thereby affecting the access of other partners.

[0004] For this type of problem, since the server has updated multiple protocol versions, directly reverting to a previous server protocol version cannot guarantee that it will be applicable to all partners' clients, nor can it guarantee that the reverted protocol version will be suitable for the clients of partners with abnormal communication access. Therefore, it cannot be solved by reverting to the server protocol version. Generally, the only way to avoid this is to use a firewall to isolate the access of the partner, which will cause the partner's transaction to fail. Summary of the Invention

[0005] To address at least one problem in the prior art, this application proposes a communication access method and apparatus that can improve the reliability of communication access, thereby ensuring the stability of the financial transaction process.

[0006] To address the aforementioned technical problems, this application provides the following technical solution:

[0007] Firstly, this application provides a communication access method including:

[0008] When there is a client under test with abnormal communication access among the multiple clients corresponding to the financial institution's server, obtain the latest server protocol version and the server protocol version of the client under test during its last normal communication access.

[0009] Based on the latest server protocol version and the server protocol version during the last normal communication access, determine whether the client to be tested has a cross-version compatibility issue. If so, apply the server protocol version during the last normal communication access to complete the communication access of the client to be tested to the financial institution's server.

[0010] In one embodiment, the communication access method further includes:

[0011] By applying the latest server protocol version, the client other than the client to be tested can communicate with the financial institution's server.

[0012] In one embodiment, obtaining the latest server protocol version and the server protocol version of the client under test during its last normal communication access includes:

[0013] Obtain the latest server protocol version and the unique identifier of the client to be detected;

[0014] Based on the unique identifier of the client to be detected and the pre-stored access request processing information, the communication access time of the client to be detected during its last normal communication access is determined. The pre-stored access request processing information includes the correspondence between the unique identifier of the client to be detected and the communication access time of each normal communication access.

[0015] Based on the communication access time of the last normal communication access, obtain the version installation information from the pre-stored version installation information set, which has an effective time before the communication access time and an expiration time after the communication access time. Based on the version package storage path in the version installation information, obtain the server protocol version of the client under test during the last normal communication access.

[0016] In one embodiment, determining whether the client under test has a cross-version compatibility issue based on the latest server protocol version and the server protocol version during the last normal communication access, and if so, applying the server protocol version during the last normal communication access to complete the communication access of the client under test to the financial institution server, includes:

[0017] Determine whether the latest server protocol version differs from the server protocol version used during the last normal communication access by more than a preset number of protocol versions. If so, it is determined that the client under test has a cross-version compatibility issue, and the server protocol version used during the last normal access is applied to complete the communication access of the client under test to the financial institution's server.

[0018] In one embodiment, it also includes:

[0019] When there are no clients under test with abnormal communication access, the latest server protocol version is used to complete the communication access of each client to the financial institution's server.

[0020] In one embodiment, before obtaining the latest server protocol version and the server protocol version of the client under test during its last normal communication access, the method further includes:

[0021] After each server protocol version installation is completed, the version installation information of the server protocol version is added to the version installation information set. This version installation information includes: the version package save path, the effective time and the expiration time.

[0022] In one embodiment, after completing the client communication access to the financial institution server other than the client to be detected, the method further includes:

[0023] Store access request processing information for clients other than the client to be detected.

[0024] Secondly, this application provides a communication access device, comprising:

[0025] The acquisition module is used to acquire the latest server protocol version and the server protocol version of the client under test when there is an abnormal communication access among the multiple clients corresponding to the financial institution server.

[0026] The communication access module is used to determine whether the client to be tested has a cross-version compatibility issue based on the latest server protocol version and the server protocol version during the last normal communication access. If so, the client to be tested is used to complete the communication access to the financial institution's server by applying the server protocol version during the last normal communication access.

[0027] In one embodiment, the communication access device further includes:

[0028] The application module is used to apply the latest server protocol version to enable client communication access to the financial institution's server for clients other than the client to be tested.

[0029] In one embodiment, the acquisition module includes:

[0030] The acquisition unit is used to acquire the latest server protocol version and the unique identifier of the client to be detected;

[0031] The determining unit is configured to determine the communication access time of the client under test during its last normal communication access based on the unique identifier of the client under test and the pre-stored access request processing information. The pre-stored access request processing information includes the correspondence between the unique identifier of the client under test and the communication access time during each normal communication access.

[0032] The version installation information determination unit is used to obtain version installation information from a pre-stored version installation information set based on the communication access time during the last normal communication access. The version installation information includes versions whose effective time is before the communication access time and whose expiration time is after the communication access time. The version installation information is used to obtain the server protocol version of the client under test during the last normal communication access based on the version package storage path.

[0033] In one embodiment, the communication access module includes:

[0034] The judgment unit is used to determine whether the latest server protocol version differs from the server protocol version during the last normal communication access by more than a preset number of protocol versions. If so, it is determined that the client under test has a cross-version compatibility problem, and the server protocol version during the last normal access is applied to complete the communication access of the client under test to the financial institution server.

[0035] In one embodiment, the communication access device further includes:

[0036] The access module is used to enable each client to communicate and access the financial institution's server when there are no clients with abnormal communication access.

[0037] In one embodiment, the communication access device further includes:

[0038] The server-side version management module is used to add the version installation information of the server-side protocol version to the version installation information set after each server-side protocol version installation is completed. The version installation information includes: the version package storage path, the effective time and the expiration time.

[0039] In one embodiment, the communication access device further includes:

[0040] The client access record module is used to store access request processing information of clients other than the client to be detected.

[0041] As can be seen from the above technical solutions, this application provides a communication access method and apparatus. The method includes: when there is a client under test with abnormal communication access among multiple clients corresponding to the financial institution's server, obtaining the latest server protocol version and the server protocol version of the client under test during its last normal communication access; determining whether the client under test has cross-version compatibility issues based on the latest server protocol version and the server protocol version of the last normal communication access; if so, applying the server protocol version of the last normal communication access to complete the communication access of the client under test to the financial institution's server, which can improve the reliability of communication access and thus ensure the stability of the financial transaction process; it can achieve cross-version compatibility between clients and servers, cope with various special transaction behaviors of partners, and improve the high availability of the bank's server; specifically, by creating an independent specific server instance, clients with version compatibility issues can be restored to normal, without affecting existing clients and servers with normal access, with minimal intervention to the existing production environment, achieving multi-version compatibility of server communication access; through real-time access record management, it can proactively and automatically discover problems, and the environment can quickly self-recover without manual intervention, improving the efficiency of resolving server communication failures. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a first flowchart illustrating the communication access method in the embodiments of this application;

[0044] Figure 2 This is a second flowchart illustrating the communication access method in the embodiments of this application;

[0045] Figure 3 This is a schematic diagram of the third process of the communication access method in the embodiments of this application;

[0046] Figure 4 This is a schematic diagram of the communication access device in the embodiments of this application;

[0047] Figure 5 This is a schematic diagram illustrating the connection relationship between a client and a server, as exemplified in this application.

[0048] Figure 6 This is a schematic block diagram illustrating the system configuration of an electronic device according to an embodiment of this application. Detailed Implementation

[0049] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0050] In existing technologies, it is impossible to solve the problem of clients under test with abnormal communication access by directly rolling back the server protocol version; it is also difficult to analyze and locate the cause of the problem. There are many partners, and when the server suddenly becomes abnormal, it is difficult to determine which partner caused the problem, especially when the partner is not a new partner (it has been connected normally before).

[0051] To address at least one of the problems existing in the prior art and better ensure production safety and stability, as well as to deal with the incompatibility between client and server versions caused by various special transaction behaviors of partners, this application provides a communication access method and apparatus. By recording the relationship between client access and server version, when a client-server version incompatibility problem is detected, the method retrieves the server version that the client previously connected to normally, redeploys the specific version of the server, and routes the client's request to the specific server at the system level. This achieves multi-version compatibility for communication access and ensures that various clients with significant differences can access the server normally.

[0052] Therefore, in order to improve the reliability of communication access and thus ensure the stability of financial transactions, this application provides a communication access device. This device can be a server or a client device. The client device can include smartphones, tablet computers, network set-top boxes, portable computers, desktop computers, personal digital assistants (PDAs), in-vehicle devices, and smart wearable devices, etc. The smart wearable devices can include smart glasses, smartwatches, and smart bracelets, etc.

[0053] In practical applications, the communication access portion can be executed on the server side as described above, or all operations can be completed on the client device. The choice can be made based on the processing power of the client device and the limitations of the user's usage scenario. This application does not impose any limitations on this. If all operations are completed on the client device, the client device may further include a processor.

[0054] The aforementioned client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission. The server may include a server on the task scheduling center side; in other implementation scenarios, it may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, a server cluster consisting of multiple servers, or a distributed server structure.

[0055] The server and the client device can communicate using any suitable network protocol, including network protocols not yet developed as of the date of this application. Such network protocols may include, for example, TCP / IP, UDP / IP, HTTP, HTTPS, etc. Of course, the network protocols may also include, for example, RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols used on top of the above protocols.

[0056] It should be noted that the communication access method and apparatus disclosed in this application can be used in the field of financial technology, or in any field other than financial technology. The application field of the communication access method and apparatus disclosed in this application is not limited.

[0057] The following examples illustrate this in detail.

[0058] To improve the reliability of communication access and thus ensure the stability of financial transactions, this embodiment provides a communication access method in which the execution subject is a communication access device, including but not limited to a server, such as... Figure 1 As shown, this method specifically includes the following:

[0059] Step 100: When there is a client under test with abnormal communication access among the multiple clients corresponding to the financial institution server, obtain the latest server protocol version and the server protocol version of the client under test during its last normal communication access.

[0060] Specifically, the financial institution server can represent a bank server; the client can represent a client of the bank's partner, such as a mobile phone or tablet. An abnormal communication access by the client, i.e., an abnormal client access status, indicates that data communication between the client and the server is impossible. When an abnormal communication access error code is received from at least one of multiple clients corresponding to the financial institution server, the client sending the abnormal communication access error code is identified as the client to be tested for abnormal communication access. The abnormal communication access error code can be error code "400". The server protocol can be the HTTP protocol, and the protocol version can be HTTP 1.0, HTTP 1.1, HTTP 2.0, etc.

[0061] Step 200: Based on the latest server protocol version and the server protocol version during the last normal communication access, determine whether the client to be tested has a cross-version compatibility issue. If so, apply the server protocol version during the last normal communication access to complete the communication access of the client to be tested to the financial institution's server.

[0062] Specifically, the "last normal communication access" can refer to the most recent normal communication access. The system command IPTABLES can be used at the TCP / IP system level to transfer the communication access request of the client to be detected from the port of the latest server protocol version instance to the port of the server protocol version instance from the time of the last normal communication access. This allows the port of the server protocol version instance from the time of the last normal communication access to handle the access, thereby achieving compatible handling of multiple server version communication accesses.

[0063] To prevent abnormal client access from affecting other clients' communication access, and to ensure normal communication access for all clients, compatibility with multiple protocol versions is required. Figure 2 As shown, in one embodiment, the communication access method further includes:

[0064] Step 300: Apply the latest server protocol version to complete the client communication access to the financial institution server for clients other than the client to be tested.

[0065] To further improve the reliability of obtaining the server protocol version during the last successful communication access of the client under test, such as... Figure 3 As shown, in one embodiment, step 100 includes:

[0066] Step 101: Obtain the latest server protocol version and the unique identifier of the client to be tested.

[0067] Specifically, the unique identifier of the client to be detected is used to distinguish different clients, and it can be the client's IP address.

[0068] Step 102: Based on the unique identifier of the client to be detected and the pre-stored access request processing information, determine the communication access time of the client to be detected during its last normal communication access. The pre-stored access request processing information includes the correspondence between the unique identifier of the client to be detected and the communication access time during each normal communication access.

[0069] Specifically, the pre-stored access request information can be pre-stored locally on the communication access device.

[0070] Step 103: Based on the communication access time of the last normal communication access, obtain the version installation information from the pre-stored version installation information set, which has an effective time before the communication access time and an expiration time after the communication access time. Based on the version package storage path in the version installation information, obtain the server protocol version of the client to be tested during the last normal communication access.

[0071] To further improve the reliability of determining cross-version compatibility issues with clients, in one embodiment, step 200 includes:

[0072] Step 201: Determine whether the latest server protocol version differs from the server protocol version during the last normal communication access by more than a preset number of protocol versions. If so, it is determined that the client under test has a cross-version compatibility issue. Apply the server protocol version during the last normal access to complete the communication access of the client under test to the financial institution's server.

[0073] Specifically, the preset number can be set according to actual conditions, and this application does not impose any restrictions on it. For example, there is a difference of four protocol versions between the first version of the server protocol and the fifth version after version upgrade.

[0074] To further improve the reliability of communication access, in one embodiment, the communication access method further includes: when there are no clients under test with abnormal communication access, applying the latest server protocol version to complete the communication access of each client to the financial institution server.

[0075] Specifically, it can also store access request processing information for each client.

[0076] To further improve the reliability of the version installation information set, in one embodiment, before obtaining the latest server protocol version and the server protocol version of the client under test during its last normal communication access in step 100, the method further includes: after each server protocol version installation is completed, adding the version installation information of the server protocol version to the version installation information set, which includes: the version package storage path, the effective time, and the expiration time.

[0077] To further improve the reliability of access request processing information storage, in one embodiment, after the client other than the client to be detected has completed communication access to the financial institution's server, the method further includes: storing access request processing information of the client other than the client to be detected.

[0078] To address the problems existing in the prior art, this application provides an application example of a communication access method. Version deployment management is performed on the server side, saving each server version for subsequent redeployment. The processing status of each client access request is recorded, along with the latest time of each client's successful access and the server version number at that time. When a client access error occurs and the server version at the time of the client's last successful access differs from the latest version by more than two versions, it can be determined that there is a cross-version compatibility issue between the client and the server. This can trigger a specific version redeployment, and the client's access request can be specifically routed to a server with a specific version, thereby achieving multi-version compatibility for communication access. The specific description is as follows:

[0079] Step 1: During each server-side version installation, record the version installation information for each server-side version deployment. The version installation information includes: port, version number, effective time and expiration time, and version package storage path.

[0080] Step 2: Each time a client requests access, record the processing status of the client access request, i.e., access request processing information. Access request processing information includes: client IP, client version number, client HTTP communication protocol version, the time when the client last successfully accessed, access return status, etc.

[0081] Step 3: Based on the access time, obtain the server version number and server port information at that time. The client IP, client version number, and access return code are the unique keys for this information. Each time the client successfully accesses the network, the client access record module will obtain the client IP and client version number, and add the access return status to retrieve the access information. If it is not found, a new record will be added.

[0082] Step 4: If the client connection is determined to be abnormal, trigger multi-version compatibility processing and add a new record. This can be done by receiving an error code "400" from the client.

[0083] Step 5: Analyze the client and server version information from the client's last successful connection to determine if there are any version compatibility issues. If so, it can be determined that there is a cross-version compatibility issue between the client and server, and a redeployment of the specific version can be triggered.

[0084] Step 6: Based on the server version number of the last successful connection by the client, obtain the specific server version and start an instance of the specific server version on the server.

[0085] Step 7: Based on the IP address and HTTP protocol version of the specific client, at the TCP / IP system level, transfer the communication access request of the specific client from the port of the latest server version instance to the port of the specific server version instance, so that the specific server can handle the access.

[0086] From a software perspective, in order to improve the reliability of communication access and thus ensure the stability of financial transactions, this application provides an embodiment of a communication access device for implementing all or part of the communication access method, see [link to embodiment]. Figure 4 The communication access device specifically includes the following components:

[0087] The acquisition module 01 is used to acquire the latest server protocol version and the server protocol version of the client under test when there is an abnormal communication access among the multiple clients corresponding to the financial institution server.

[0088] The communication access module 02 is used to determine whether the client to be tested has a cross-version compatibility problem based on the latest server protocol version and the server protocol version during the last normal communication access. If so, the client to be tested is used to complete the communication access to the financial institution server by applying the server protocol version during the last normal communication access.

[0089] In one embodiment, the communication access device further includes:

[0090] The application module is used to apply the latest server protocol version to enable client communication access to the financial institution's server for clients other than the client to be tested.

[0091] In one embodiment, the acquisition module includes:

[0092] The acquisition unit is used to acquire the latest server protocol version and the unique identifier of the client to be detected;

[0093] The determining unit is configured to determine the communication access time of the client under test during its last normal communication access based on the unique identifier of the client under test and the pre-stored access request processing information. The pre-stored access request processing information includes the correspondence between the unique identifier of the client under test and the communication access time during each normal communication access.

[0094] The version installation information determination unit is used to obtain version installation information from a pre-stored version installation information set based on the communication access time during the last normal communication access. The version installation information includes versions whose effective time is before the communication access time and whose expiration time is after the communication access time. The version installation information is used to obtain the server protocol version of the client under test during the last normal communication access based on the version package storage path.

[0095] In one embodiment, the communication access module includes:

[0096] The judgment unit is used to determine whether the latest server protocol version differs from the server protocol version during the last normal communication access by more than a preset number of protocol versions. If so, it is determined that the client under test has a cross-version compatibility problem, and the server protocol version during the last normal access is applied to complete the communication access of the client under test to the financial institution server.

[0097] In one embodiment, the communication access device further includes:

[0098] The access module is used to enable each client to communicate and access the financial institution's server when there are no clients with abnormal communication access.

[0099] In one embodiment, the communication access device further includes:

[0100] The server-side version management module is used to add the version installation information of the server-side protocol version to the version installation information set after each server-side protocol version installation is completed. The version installation information includes: the version package storage path, the effective time and the expiration time.

[0101] In one embodiment, the communication access device further includes:

[0102] The client access record module is used to store access request processing information of clients other than the client to be detected.

[0103] The embodiments of the communication access device provided in this specification can be used to execute the processing flow of the embodiments of the above-described communication access method. Its functions will not be repeated here, but can be referred to the detailed description of the embodiments of the above-described communication access method.

[0104] To further illustrate this solution, and in conjunction with the application example of the aforementioned communication access method, this application provides an application example of a communication access device. In this application example, version deployment management can be performed on the server side, saving each server version for subsequent redeployment; the processing status of each client access request is recorded, along with the latest time of each client's successful access and the server version number at that time. When a client access error occurs and the server version at the time of the client's last successful access differs from the latest version by more than two versions, it can be determined that there is a cross-version compatibility issue between the client and the server. This can trigger a specific version redeployment, and the client's access request can be specifically routed to a specific version of the server, thereby achieving multi-version compatibility for communication access. The device specifically includes:

[0105] (I) Server-side version management module

[0106] This function is responsible for managing and storing server-side versions. Each time a server-side version is installed, it records the installation information for that version, including: port, version number, effective date, expiration date, and the path where the version package is saved. The saved version package can be used to redeploy a specific version of the server instance to restore access for certain clients.

[0107] (II) Client Access Record Module

[0108] This module is responsible for recording the processing status of client access requests, i.e., access request processing information. This information includes: client IP address, client version number, client HTTP protocol version, the last successful access time, and access return status. It also retrieves the server version number and server port information based on the access time. The client IP address, client version number, and access return code are unique keys for this information. Each time a client successfully accesses the server, the client access recording module retrieves the client IP address and client version number, along with the access return status, to search for access information. If no information is found, a new record is created; otherwise, the last successful access time is updated to the current time. If the client access is abnormal, the multi-version compatibility analysis module is triggered to perform multi-version compatibility processing and a new record is created. The functionality of the client access recording module is equivalent to the above.

[0109] (III) Multi-version compatibility analysis module

[0110] This module is responsible for analyzing the client and server version information from the client's last successful connection to determine if there are any version compatibility issues. The multi-version compatibility analysis module first checks if the client's current version is the same as the version used during the last successful connection. If so, it means the client hasn't been modified. Then, it checks if the server's current version differs from the version used during the last successful connection by more than two versions. If so, it can be determined that there is a cross-version compatibility issue between the client and server, triggering a redeployment of a specific version.

[0111] (iv) Specific version redeployment module

[0112] Based on the server version number from the client's last successful connection, a specific server version is retrieved from the server version package storage path. This server version has previously successfully connected to clients experiencing multi-version compatibility issues. Next, the server port for this specific server version is modified to differentiate it from the latest server version instance (which still provides external service). Then, a specific server version instance is started on the server, and finally, a specific access route is triggered.

[0113] (v) Specific access routing module

[0114] Based on the IP address and HTTP protocol version of a specific client, the system command IPTABLES redirects the client's communication access request from the port of the latest server version instance to the port of the specific server version instance at the TCP / IP system level, allowing the specific server to handle the access. This achieves compatibility handling for multi-version server communication access. The combined functionality of the multi-version compatibility analysis module, the specific version redeployment module, and the specific access routing module is equivalent to the functionality achieved by the aforementioned communication access module.

[0115] In one example, the connection between the client and the server is as follows: Figure 5 As shown, special clients, i.e., the characteristic versions of the client application server to be detected, communicate and access each other, while ordinary clients, i.e., the latest versions of the client application server other than the client to be detected, communicate and access each other. The server can be equivalent to the aforementioned communication access device.

[0116] From a hardware perspective, in order to improve the reliability of communication access and thus ensure the stability of financial transactions, this application provides an embodiment of an electronic device for implementing all or part of the communication access method. The electronic device specifically includes the following components:

[0117] The device comprises a processor, memory, a communications interface, and a bus; wherein the processor, memory, and communications interface communicate with each other via the bus; the communications interface is used to realize information transmission between the communications access device and related devices such as user terminals; the electronic device may be a desktop computer, tablet computer, or mobile terminal, etc., and this embodiment is not limited to these. In this embodiment, the electronic device can be implemented with reference to the embodiments for implementing the communications access method and the embodiments for implementing the communications access device, the contents of which are incorporated herein by reference, and repeated details will not be described again.

[0118] Figure 6 This is a schematic block diagram illustrating the system configuration of the electronic device 9600 according to an embodiment of this application. Figure 6 As shown, the electronic device 9600 may include a central processing unit 9100 and a memory 9140; the memory 9140 is coupled to the central processing unit 9100. It is worth noting that... Figure 6 This is an example; other types of structures can also be used to supplement or replace this structure to achieve telecommunications functions or other functions.

[0119] In one or more embodiments of this application, the communication access function can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:

[0120] Step 100: When there is a client under test with abnormal communication access among the multiple clients corresponding to the financial institution server, obtain the latest server protocol version and the server protocol version of the client under test during its last normal communication access.

[0121] Step 200: Based on the latest server protocol version and the server protocol version during the last normal communication access, determine whether the client to be tested has a cross-version compatibility issue. If so, apply the server protocol version during the last normal communication access to complete the communication access of the client to be tested to the financial institution's server.

[0122] As can be seen from the above description, the electronic equipment provided in the embodiments of this application can improve the reliability of communication access, thereby ensuring the stability of the financial transaction process.

[0123] In another embodiment, the communication access device can be configured separately from the central processing unit 9100. For example, the communication access device can be configured as a chip connected to the central processing unit 9100, and the communication access function can be implemented through the control of the central processing unit.

[0124] like Figure 6As shown, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily need to include these components. Figure 6 All components shown; in addition, the electronic device 9600 may also include Figure 6 For components not shown, please refer to existing technologies.

[0125] like Figure 6 As shown, the central processing unit 9100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device, which receives inputs and controls the operation of various components of the electronic device 9600.

[0126] The memory 9140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 9100 may execute the program stored in the memory 9140 to perform information storage or processing, etc.

[0127] Input unit 9120 provides input to central processing unit 9100. Input unit 9120 may be, for example, a keypad or touch input device. Power supply 9170 provides power to electronic device 9600. Display 9160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.

[0128] The memory 9140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 9140 can also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142 for storing application programs and function programs or processes for executing the operation of the electronic device 9600 via the central processing unit 9100.

[0129] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0130] The communication module 9110 is a transmitter / receiver 9110 that transmits and receives signals via the antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processing unit 9100 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.

[0131] Based on different communication technologies, multiple communication modules 9110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby realizing typical telecommunications functions. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 9130 is coupled to a central processing unit 9100, enabling on-device recording via the microphone 9132 and on-device playback of stored sound via the speaker 9131.

[0132] As can be seen from the above description, the electronic equipment provided in the embodiments of this application can improve the reliability of communication access, thereby ensuring the stability of the financial transaction process.

[0133] Embodiments of this application also provide a computer-readable storage medium capable of implementing all steps of the communication access method in the above embodiments. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the communication access method in the above embodiments. For example, when the processor executes the computer program, it implements the following steps:

[0134] Step 100: When there is a client under test with abnormal communication access among the multiple clients corresponding to the financial institution server, obtain the latest server protocol version and the server protocol version of the client under test during its last normal communication access.

[0135] Step 200: Based on the latest server protocol version and the server protocol version during the last normal communication access, determine whether the client to be tested has a cross-version compatibility issue. If so, apply the server protocol version during the last normal communication access to complete the communication access of the client to be tested to the financial institution's server.

[0136] As can be seen from the above description, the computer-readable storage medium provided in the embodiments of this application can improve the reliability of communication access, thereby ensuring the stability of the financial transaction process.

[0137] The various embodiments of the methods described in this application are presented in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. Relevant details can be found in the descriptions of the method embodiments.

[0138] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0139] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0140] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0141] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0142] This application uses specific embodiments to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A communication access method, characterized in that, include: When there is a client under test with abnormal communication access among the multiple clients corresponding to the financial institution's server, the latest server protocol version and the server protocol version of the client under test during the last normal communication access are obtained; wherein, the abnormal communication access of the client means that the client access is in an abnormal state, indicating that the client and the server cannot communicate data. Based on the latest server protocol version and the server protocol version during the last normal communication access, it is determined whether the client to be tested has a cross-version compatibility issue. If so, the server protocol version during the last normal communication access is applied to complete the communication access of the client to be tested to the financial institution's server. Specifically, the communication access request of the client to be tested is transferred from the port of the latest server protocol version instance to the port of the server protocol version instance during the last normal communication access, so that the port of the server protocol version instance during the last normal communication access can handle the access. The step of obtaining the latest server protocol version and the server protocol version of the client under test during its last normal communication access includes: Obtain the latest server protocol version and the unique identifier of the client to be detected; Based on the unique identifier of the client to be detected and the pre-stored access request processing information, the communication access time of the client to be detected during its last normal communication access is determined. The pre-stored access request processing information includes the correspondence between the unique identifier of the client to be detected and the communication access time of each normal communication access. Based on the communication access time of the last normal communication access, obtain the version installation information with the effective time before the communication access time and the expiration time after the communication access time from the pre-stored version installation information set, and obtain the server protocol version of the client to be tested during the last normal communication access based on the version package storage path in the version installation information. The step of determining whether the client under test has a cross-version compatibility issue based on the latest server protocol version and the server protocol version during the last normal communication access, and if so, applying the server protocol version during the last normal communication access to complete the communication access of the client under test to the financial institution's server, includes: Determine whether the latest server protocol version differs from the server protocol version during the last normal communication access by more than a preset number of protocol versions. If so, it is determined that the client under test has a cross-version compatibility problem. Apply the server protocol version during the last normal access to complete the communication access of the client under test to the financial institution server. The method further includes: By applying the latest server protocol version, the client other than the client to be tested can communicate with the financial institution's server.

2. The communication access method according to claim 1, characterized in that, Also includes: When there are no clients under test with abnormal communication access, the latest server protocol version is used to complete the communication access of each client to the financial institution's server.

3. The communication access method according to claim 1, characterized in that, Before obtaining the latest server protocol version and the server protocol version of the client under test during its last normal communication access, the method further includes: After each server protocol version installation is completed, the version installation information of the server protocol version is added to the version installation information set. This version installation information includes: the version package save path, the effective time and the expiration time.

4. The communication access method according to claim 1, characterized in that, After completing the communication access of clients other than the client to be tested to the financial institution's server, the process further includes: Store access request processing information for clients other than the client to be detected.

5. A communication access device, characterized in that, include: The acquisition module is used to acquire the latest server protocol version and the server protocol version of the client under test when there is an abnormal communication access among the multiple clients corresponding to the financial institution server; wherein, the abnormal communication access of the client means that the client access is in an abnormal state, indicating that the client and the server cannot communicate data. The communication access module is used to determine whether the client to be tested has a cross-version compatibility issue based on the latest server protocol version and the server protocol version during the last normal communication access. If so, the server protocol version during the last normal communication access is applied to complete the communication access of the client to be tested to the financial institution's server. Specifically, the communication access request of the client to be tested is transferred from the port of the latest server protocol version instance to the port of the server protocol version instance during the last normal communication access, so that the port of the server protocol version instance during the last normal communication access can handle the access. The acquisition module includes: The acquisition unit is used to acquire the latest server protocol version and the unique identifier of the client to be detected; The determining unit is configured to determine the communication access time of the client under test during its last normal communication access based on the unique identifier of the client under test and the pre-stored access request processing information. The pre-stored access request processing information includes the correspondence between the unique identifier of the client under test and the communication access time during each normal communication access. The version installation information determination unit is used to obtain version installation information with an effective time before the communication access time and an expiration time after the communication access time from the pre-stored version installation information set according to the communication access time of the last normal communication access, and to obtain the server protocol version of the client to be tested during the last normal communication access according to the version package storage path in the version installation information. The communication access module includes: The judgment unit is used to determine whether the latest server protocol version and the server protocol version during the last normal communication access differ by more than a preset number of protocol versions. If so, it is determined that the client to be tested has a cross-version compatibility problem, and the server protocol version during the last normal access is applied to complete the communication access of the client to be tested to the financial institution server. The device further includes: The application module is used to apply the latest server protocol version to enable client communication access to the financial institution's server for clients other than the client to be tested.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the communication access method according to any one of claims 1 to 4.

7. A computer-readable storage medium storing computer instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the communication access method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Version upgrading method and device, electronic equipment and storage medium

    CN111596940A