Communication state monitoring method and device, equipment, storage medium and program product
By collecting the status of the peer user and providing early warning after receiving the preset format request, the problem of not being able to monitor the communication status between the peer and the bank is solved, real-time monitoring of the communication status of the Shenzhen CSI Communication Platform and timely discovering abnormalities is achieved, ensuring that Timeliness and accuracy of information.
Patent Information
- Application Number
- CN202411130172.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-10
AI Technical Summary
The communication status between the counterpart and the bank side of a specific format service request sent through financial data exchange platforms such as Shenzhen Securities Communication cannot be monitored, resulting in the inability to detect communication abnormalities in time.
After receiving the preset format request, the preset format interface is called to collect the user status of the peer. If the user status is not online, it is determined that the communication status between the bank and peer is interrupted, and a warning is made, and the interval duration and threshold value are adjusted. to optimize monitoring frequency and accuracy.
Real-time monitoring of the communication status of the counterpart and bank side of the service request sent through the Shenzhen CSI Tong Financial Data Exchange Platform is realized, and communication abnormalities are discovered in a timely manner, information lags are avoided, and information is ensured.
Smart Images

Figure CN119109975A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication status monitoring method, device, equipment, storage medium and program product. Background Art
[0002] At present, in order to ensure normal communication between the peer end and the bank terminal, it is necessary to monitor the service requests sent by the peer end so as to respond to the user's service requests in a timely manner.
[0003] However, when monitoring the business requests of the other end, it is impossible to monitor the communication status between the other end and the bank end of the business request in a specific format sent through financial data exchange platforms such as Shenzhen Securities Information Network. Summary of the invention
[0004] The main purpose of this application is to provide a communication status monitoring method, device, equipment, storage medium and program product, aiming to solve the technical problem of being unable to monitor the communication status between the other end and the bank end that sends a business request through the financial data exchange platform of Shenzhen Securities Information Service.
[0005] To achieve the above objectives, the present application proposes a communication status monitoring method, comprising:
[0006] After receiving the preset format request, determining a first receiving time at which the preset format request is received;
[0007] At a first sending time, a preset format interface is called to collect the user status of the other end; the first sending time is after the first receiving time and at a first preset time interval; the other end is the user end that sends the preset format request;
[0008] If the user status is offline, it is determined that the communication status between the bank and the other end is interrupted, and an early warning is issued.
[0009] In one embodiment, after the step of calling the preset format interface to collect the user status of the other end at the first sending time, the method further includes:
[0010] If the user status is online, the first preset interval duration is incremented by the preset value to obtain a new first preset interval duration, and the new first preset interval duration is used as the first preset interval duration.
[0011] After the first preset time interval, the process returns to execute the calling of the preset format interface to collect the user status of the other end, until the first preset time interval is not less than the maximum time interval, or the user status is offline.
[0012] In one embodiment, if the user status is offline, after determining that the communication status is interrupted, the method further includes:
[0013] If a hypertext transfer protocol request is received, determining a second receiving time at which the hypertext transfer protocol request is received;
[0014] Calculate the time difference between the current moment and the second receiving moment according to the preset identification cycle;
[0015] If the time difference is not less than the preset threshold, the communication status is determined to be interrupted and an early warning is issued.
[0016] In one embodiment, after determining that the communication state is an interrupted state and issuing an early warning, the process further includes:
[0017] At the preset threshold adjustment time, counting the time difference corresponding to each preset identification cycle between the last preset threshold adjustment time and the preset threshold adjustment time;
[0018] Counting the number of the time differences within each preset time difference interval;
[0019] A new preset threshold is determined, and the preset threshold is updated using the new preset threshold.
[0020] In one embodiment, determining a new preset threshold includes:
[0021] The preset time difference interval with the largest number is taken as the target interval;
[0022] The time difference corresponding to the right boundary of the target interval is used as the new preset threshold.
[0023] In one embodiment, after the step of receiving the hypertext transfer protocol request, the method further includes:
[0024] Store HTTP requests and SZSE requests in Redis middleware to save HTTP requests and SZSE requests using a non-relational database
[0025] In addition, to achieve the above purpose, the present application also proposes a communication status monitoring device, the communication status monitoring device comprising:
[0026] A first determining module, configured to determine, after receiving the preset format request, a first receiving time at which the preset format request is received;
[0027] A collection module, used for calling a preset format interface to collect the user status of the other end at a first sending time; the first sending time is a time after the first receiving time and separated by a first preset time; the other end is a user end that sends a preset format request;
[0028] The second determination module is used to determine that the communication status between the bank end and the other end is interrupted if the user status is offline, and issue an early warning.
[0029] In addition, to achieve the above objectives, the present application also proposes a communication status monitoring device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the communication status monitoring method as described above.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the communication status monitoring method as described above are implemented.
[0031] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the communication status monitoring method as described above are implemented.
[0032] One or more technical solutions proposed in this application have at least the following technical effects:
[0033] After receiving the preset format request, the preset format interface is called to collect the user status of the other end. When the user status is offline, it is determined that the communication status between the bank end and the other end is interrupted. That is, whether the communication status between the other end and the bank end is abnormal is directly determined through the user status of the user, thereby solving the problem in related technologies that it is impossible to monitor the communication status between the other end and the bank end of the preset format request sent through financial data exchange platforms such as Shenzhen Securities Information Service. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 A flow chart of the first embodiment of the communication status monitoring method of the present application;
[0037] Figure 2 A flow chart of the second embodiment of the communication status monitoring method of the present application;
[0038] Figure 3 A schematic diagram of determining a new preset threshold value according to the time difference for this application;
[0039] Figure 4This is a schematic diagram of the communication structure between the application counterpart and the bank;
[0040] Figure 5 This is a schematic diagram of the module structure of the communication status monitoring device according to an embodiment of the present application;
[0041] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the communication status monitoring method in the embodiment of the present application.
[0042] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0044] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0045] The main solution of the embodiment of the present application is: after receiving the preset format request, determine the first receiving time of receiving the preset format request; call the preset format interface at the first sending time to collect the user status of the other party; the first sending time is after the first receiving time and at an interval of a first preset time length; the other party is the user end that sends the preset format request; if the user status is offline, determine that the communication status between the bank end and the other party is interrupted, and issue an early warning.
[0046] In the process of direct connection between the peer and the bank, the data request formats sent by the peer and the bank are mainly Hypertext Transfer Protocol requests (HTTP requests) and Shenzhen Securities Connect requests, and their communication networks are mainly connected through the domestic Internet, securities network, and dedicated lines provided by operators. Under such a complex coupling of peers, communication protocols, and communication networks, the stability and reliability of the direct connection between the bank and the investment manager need to be greatly guaranteed. At the same time, the investment manager's transactions and clearing have extremely high requirements for the real-time response of the software. Therefore, it is necessary to conduct real-time health monitoring of the operation of the peer.
[0047] At the same time, due to the special security requirements of inter-bank business, many counterparts will choose to communicate through the Shenzhen Securities Information Service instead of the traditional HTTP request. However, it is impossible to monitor the communication status between the counterparty and the bank that sends this specific format of business request through the Shenzhen Securities Information Service's financial data exchange platform.
[0048] The present application provides a solution, which calls the preset format interface to collect the user status of the other end after receiving a preset format request. When the user status is offline, it is determined that the communication status between the bank end and the other end is interrupted, that is, whether the communication status between the other end and the bank end is abnormal is directly determined through the user status of the user, thereby solving the problem in the related art that it is impossible to monitor the communication status between the other end and the bank end of the preset format request sent through the financial data exchange platform of Shenzhen Securities Information Service Co., Ltd.
[0049] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, communication status monitoring, etc. The following takes the communication status monitoring device as an example to illustrate this embodiment and the following embodiments.
[0050] Based on this, the present application embodiment provides a communication status monitoring method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the communication status monitoring method of the present application.
[0051] In this embodiment, the communication status monitoring method includes steps S10 to S30:
[0052] Step S10: after receiving the preset format request, determining a first receiving time when the preset format request is received.
[0053] Step S20: calling a preset format interface at the first sending time to collect the user status of the other end.
[0054] The first sending time is a time after the first receiving time and separated by a first preset time period; the other end is a user end that sends the preset format request.
[0055] Step S30: If the user status is offline, it is determined that the communication status between the bank and the other end is interrupted, and an early warning is issued.
[0056] In this embodiment, the preset format request may be a data request sent through the Financial Data Exchange Platform (FDEP) of Shenzhen Securities Information Service Co., Ltd. The preset format interface may be the Mr3GetPeerUserStat interface of Shenzhen Securities Information Service Co., Ltd.
[0057] Specifically, after receiving the preset format request, the bank side uses the time when the preset format request is received as the first receiving time. After determining the first receiving time when the preset format request is received, the time after the first preset time interval from the first receiving time can be used as the first sending time, and the user status of the preset receiving and collecting peer end can be called at the first sending time.
[0058] After collecting the user status of the other end, the communication status between the bank and the other end can be determined according to the user status, that is, when the user status is online, the communication status between the bank and the other end is determined to be a normal communication status. When the user status is offline, the communication status between the bank and the other end is determined to be an interrupted status. When the communication status between the bank and the other end is an interrupted state, in order to promptly discover the abnormal communication between the bank and the other end, an early warning can be issued when the communication status between the bank and the other end is determined to be an interrupted state, so as to prompt relevant personnel to conduct corresponding inspections.
[0059] It is understandable that, during the communication process, different peers have different communication frequencies. In order to improve the applicability of communication status monitoring, further, as an optional implementation, after step S30, the following is further included:
[0060] Step S31: if the user status is online, the first preset interval duration is incremented by a preset value to obtain a new first preset interval duration, and the new first preset interval duration is used as the first preset interval duration.
[0061] Step S32, after the first preset time interval, return to execute calling the preset format interface to collect the user status of the other party, until the first preset time interval is not less than the maximum time interval, or the user status is offline.
[0062] Specifically, for each peer, when the user status is online, the first preset interval duration is incremented by the preset value to obtain a new first preset interval duration. After obtaining the new first preset interval duration, the new first preset interval duration can be used as the first preset interval duration, and after the first preset interval duration is exceeded, the process returns to step S20 until the first preset interval duration is not less than the maximum interval duration, or the user status is offline.
[0063] In this embodiment, according to the user status, the first preset interval duration is adjusted suitably to adjust the frequency of monitoring the communication status between the peer end and the bank end. Not only can the frequency of detecting the communication status between the peer end and the bank end be flexibly adjusted, but personalized monitoring can also be performed for different peer ends to improve the applicability of communication status monitoring.
[0064] Furthermore, to facilitate a better understanding of this embodiment, a specific example is provided below.
[0065] There are three users, namely, peer A, peer B, and peer C, sending preset format requests. When the first preset interval is 5 minutes and the maximum interval is 60 minutes, after receiving the preset format requests sent by each peer, for peer A, the first sending time is determined according to the first receiving time of the preset format request sent by peer A and the first preset time. For example, when the first time of receiving the preset format request sent by peer A is 9:01, the first sending time is determined to be 9:06. After determining the first sending time, the preset format interface is called at the first sending time to collect the user status of peer A. When the user status of peer A is online, the first interval is incremented by the preset value, that is, a new first preset interval is obtained as 6 minutes. Furthermore, after obtaining the new first preset interval duration, the new first preset interval duration is used as the first preset interval duration, and after the first preset duration, the process returns to executing the call to the preset format interface to collect the user status of the other end, that is, at 9:12, the preset format interface is called again to collect the user status of the other end, until the first preset interval duration is not less than the preset 60 minutes, or the user status is offline.
[0066] Correspondingly, the above operation steps are performed on both the B peer and the C peer, and will not be repeated here.
[0067] In this embodiment, after receiving the preset format request, the preset format interface is called at the first sending time to collect the user status of the other end, and directly determine whether the communication status between the other end and the bank end is abnormal according to the user status, thereby solving the problem in the related art that the communication status between the other end and the bank end of the preset format request sent through the financial data exchange platform of Shenzhen Securities Communication cannot be monitored. At the same time, when the user status is offline, but the bank end continues to send information, it may cause information lag, causing the user to miss important information or operation opportunities. Therefore, timely determination of communication interruption through user status helps to avoid information lag and ensure the timeliness and accuracy of information.
[0068] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 After step S30, the communication status monitoring method further includes steps S33 to S35:
[0069] Step S33: If a hypertext transfer protocol request is received, determining a second receiving time when the hypertext transfer protocol request is received.
[0070] Step S34, calculating the time difference between the current moment and the second receiving moment according to the preset identification cycle.
[0071] Step S35: If the time difference is not less than the preset threshold, the communication state is determined to be an interrupted state, and an early warning is issued.
[0072] Specifically, the moment when the hypertext transfer protocol request (HTTP request) is received can be used as the second receiving moment, and the time difference between the current moment and the second receiving moment can be calculated according to the preset recognition cycle. When the time difference is not less than the preset threshold, it is determined that the communication state between the peer end using the HTTP request as the communication mode and the bank end is interrupted, and an early warning is issued to remind relevant personnel that there is a communication abnormality.
[0073] For example, if the second receiving time of the Hypertext Transfer Protocol request is 9:00 (denoted as T0), and the preset recognition cycle is 1 minute each time, the current time is determined to be 9:01 (denoted as T1), and the second receiving time T1-T0 is subtracted from the current time to obtain the time difference. When the time difference of T1-T0 is greater than or equal to the preset threshold, it is considered that the communication state between the peer end using HTTP request as the communication mode and the bank end is in an interrupted state, and an early warning is issued. When the time difference of T1-T0 is less than the preset threshold, it is considered that the communication state between the peer end using HTTP request as the communication mode and the bank end is in a normal communication state.
[0074] It should be noted that, in actual applications, the peers using HTTP requests as the communication method have different request habits when sending hyperlink text requests, and monitoring only at a fixed frequency cannot adapt to the growing number of customers. Therefore, in order to adapt to the frequency of multiple peers sending hypertext transfer protocol requests, further, as an optional implementation, after step S35, it also includes:
[0075] Step S36: at the preset threshold adjustment time, counting the time difference corresponding to each preset identification period between the last preset threshold adjustment time and the preset threshold adjustment time.
[0076] Step S37, counting the number of the time differences within each preset time difference interval.
[0077] Step S38, determining a new preset threshold, and using the new preset threshold to update the preset threshold.
[0078] In this embodiment, the preset threshold adjustment time may be a time set by the bank according to actual needs, such as the end of each day, that is, twelve o'clock in the morning.
[0079] Specifically, at the preset threshold adjustment time, the time difference corresponding to each preset identification cycle between the last preset threshold adjustment time and the preset threshold adjustment time can be counted. For example, when the preset threshold adjustment time is 0:00 on the 23rd, the time difference corresponding to each preset identification cycle between 0:00 on the 22nd and 0:00 on the 23rd is counted. After counting the time difference corresponding to each preset identification cycle between the last preset threshold adjustment time and the preset threshold adjustment time, the number of time differences belonging to each preset time difference interval is counted, and a new preset threshold is determined therefrom, and the preset threshold is updated using the new preset threshold.
[0080] It is understandable that, when determining the new preset threshold, in order to ensure that the obtained new preset threshold can better represent the overall characteristics of the data, further, as an optional real-time method, step S38 specifically includes:
[0081] Step S381: taking the preset time difference interval with the largest number as the target interval.
[0082] Step S382: taking the time difference corresponding to the right boundary of the target interval as a new preset threshold.
[0083] Specifically, after counting the number of time differences in each preset time difference interval, the preset time difference interval with the largest number can be used as the target interval. After determining the target interval, the time difference corresponding to the right boundary of the target interval can be used as a new preset threshold.
[0084] For example, when the preset time difference interval is 0s-5s, 5s-30s, 30s-60s, 60s-120s, refer to Figure 3 As shown, in Figure 3 It can be determined that the preset time difference interval with the largest number is 5s-30s, that is, 5s-30s is used as the target interval, and 30s is used as the new preset threshold.
[0085] It should be noted that for the peer that sends the hypertext transfer protocol request, it is necessary to timely record the latest time when the peer sends the hypertext transfer protocol request, that is, the second receiving time. Correspondingly, for the peer that sends the preset format request, that is, the peer that uses the financial data exchange platform of Shenzhen Securities Communication to send the request, since the message sending and receiving between the peer and the bank is an asynchronous process, it is necessary to call the preset format interface regularly to collect the user status of the peer, that is, call the preset format interface at the first sending time to collect the user status of the peer. After determining the second receiving time of the hypertext transfer protocol request and the user status corresponding to the preset format request, the hypertext transfer protocol request and the preset format request can be stored in a relational database, so that the corresponding data can be directly called from the relational database to detect the communication status later. However, using a traditional relational database for request time persistence consumes interface performance for creating database links, recording data, closing links, etc., and there is a risk of program abnormality during the persistence process. For financial transactions with high interface real-time performance, such non-important links cannot be hindered by monitoring. Therefore, further, when storing the HTTP request and the Shenzhen Securities Communication request, the HTTP request and the Shenzhen Securities Communication request can be stored in the Redis middleware to use a non-relational database to save the HTTP request and the Shenzhen Securities Communication request.
[0086] In this embodiment, when a hypertext transfer protocol request is received, the time difference between the current moment and the second moment is calculated according to the second receiving moment of the received hypertext transfer protocol request and the current moment, and the communication status between the bank end and the opposite end is judged according to the time difference, so that the bank end can quickly detect the communication status with the opposite end, thereby being able to more timely discover the communication interruption situation. At the same time, at the preset threshold adjustment moment, the time difference corresponding to each preset identification cycle between the previous preset threshold adjustment moment and the preset threshold adjustment moment is counted to determine a new preset threshold, and the preset threshold is adaptively adjusted to adapt to the request habits of different opposite ends, thereby adaptively adjusting the preset threshold for judging the communication status between the bank end and the opposite end user, so as to achieve flexible monitoring of the bank end and the opposite end.
[0087] For better understanding, a specific example is provided below.
[0088] Specifically, refer to Figure 4As shown, after receiving the preset format request sent by the opposite end, the bank determines the first sending time according to the first receiving time of receiving the preset format request and the first preset interval length, and calls the preset format interface to collect the user status of the opposite end at the first sending time. When the user status of the opposite end is online, the communication status between the opposite end and the bank end is determined to be a normal communication status. When the user status of the opposite end is offline, the communication status between the opposite end and the bank end is determined to be an interrupted state.
[0089] Correspondingly, after receiving the hypertext transfer protocol request sent by the peer end, the bank end determines the second time when the hypertext transfer protocol request is received, and calculates the time difference between the current time and the second receiving time according to the preset identification cycle. When the time difference is not less than the preset threshold, the communication state between the bank end and the peer end is determined to be the terminal state. When the time difference is less than the preset threshold, the communication state between the bank end and the peer end is determined to be the normal communication state.
[0090] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the communication status monitoring method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0091] This application also provides a communication status monitoring device, please refer to Figure 5 , the communication status monitoring device comprises:
[0092] A first determining module, configured to determine, after receiving the preset format request, a first receiving time at which the preset format request is received;
[0093] A collection module, used for calling a preset format interface to collect the user status of the other end at a first sending time; the first sending time is a time after the first receiving time and separated by a first preset time; the other end is a user end that sends a preset format request;
[0094] The second determination module is used to determine that the communication status between the bank end and the other end is interrupted if the user status is offline, and issue an early warning.
[0095] The communication status monitoring device provided by the present application adopts the communication status monitoring method in the above embodiment, which can solve the technical problem of communication status monitoring. Compared with the related art, the beneficial effects of the communication status monitoring device provided by the present application are the same as the beneficial effects of the communication status monitoring method provided by the above embodiment, and the other technical features in the communication status monitoring device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0096] The present application provides a communication status monitoring device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the communication status monitoring method in the above-mentioned embodiment one.
[0097] Reference below Figure 6 , which shows a schematic diagram of the structure of a communication status monitoring device suitable for implementing the embodiment of the present application. The communication status monitoring device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The communication status monitoring device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0098] like Figure 6As shown, the communication status monitoring device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the communication status monitoring device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the communication status monitoring device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a communication status monitoring device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0099] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0100] The communication status monitoring device provided by the present application adopts the communication status monitoring method in the above embodiment, which can solve the technical problem that the communication status between the opposite end and the bank end that sends the service request through the financial data exchange platform of Shenzhen Securities Communication cannot be monitored. Compared with the related art, the beneficial effects of the communication status monitoring device provided by the present application are the same as the beneficial effects of the communication status monitoring method provided by the above embodiment, and the other technical features in the communication status monitoring device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0101] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0102] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0103] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the communication status monitoring method in the above-mentioned embodiment.
[0104] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0105] The computer-readable storage medium may be included in the communication status monitoring device; or may exist independently without being assembled into the communication status monitoring device.
[0106] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the communication status monitoring device, the communication status monitoring device: after receiving the preset format request, determines the first receiving time when the preset format request is received; calls the preset format interface at the first sending time to collect the user status of the other end; the first sending time is after the first receiving time and at an interval of a first preset time length; the other end is the user end that sends the preset format request; if the user status is offline, it is determined that the communication status between the bank end and the other end is interrupted, and an early warning is issued.
[0107] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0108] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0109] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0110] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned communication status monitoring method, and can solve the technical problem that the communication status between the opposite end and the bank end that sends a business request through the financial data exchange platform of Shenzhen Securities Communication cannot be monitored. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the communication status monitoring method provided by the above-mentioned embodiment, and will not be repeated here.
[0111] The present application also provides a computer program product, including a computer program, which implements the steps of the communication status monitoring method as described above when the computer program is executed by a processor.
[0112] The computer program product provided by the present application can solve the technical problem that it is impossible to monitor the communication status between the opposite end and the bank end that sends the business request through the financial data exchange platform of Shenzhen Securities Information Network. Compared with the related art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the communication status monitoring method provided by the above embodiment, which will not be described in detail here.
[0113] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A communication status monitoring method, characterized in that: Applicable to the bank side, the method includes: After receiving the preset format request, determining a first receiving time at which the preset format request is received; Calling a preset format interface at a first sending time to collect a user status of a peer end; the first sending time is after the first receiving time and separated by a first preset time; the peer end is a user end that sends the preset format request; If the user status is offline, it is determined that the communication status between the bank and the other end is interrupted, and an early warning is issued.
2. The method according to claim 1, characterized in that After the step of calling the preset format interface to collect the user status of the other party at the first sending time, the method further includes: If the user status is online, the first preset interval duration is incremented by a preset value to obtain a new first preset interval duration, and the new first preset interval duration is used as the first preset interval duration; After a first preset interval, the method returns to executing the calling of the preset format interface to collect the user status of the other party, until the first preset interval is not less than the maximum interval, or the user status is offline.
3. The method according to claim 1, characterized in that If the user status is an offline state, after determining that the communication status is an interrupted state, the method further includes: If a hypertext transfer protocol request is received, determining a second receiving time at which the hypertext transfer protocol request is received; Calculate the time difference between the current moment and the second receiving moment according to the preset identification cycle; If the time difference is not less than a preset threshold, the communication state is determined to be an interrupted state, and an early warning is issued.
4. The method according to claim 3, characterized in that After the step of determining that the communication state is an interrupted state and issuing an early warning, the method further includes: At a preset threshold adjustment time, counting the time difference corresponding to each preset identification period between the last preset threshold adjustment time and the preset threshold adjustment time; Counting the number of the time differences within each preset time difference interval; A new preset threshold is determined, and the preset threshold is updated using the new preset threshold.
5. The method according to claim 4, characterized in that Determining a new preset threshold comprises: The preset time difference interval with the largest number is taken as the target interval; The time difference corresponding to the right boundary of the target interval is used as a new preset threshold.
6. The method according to claim 3, characterized in that After the step of receiving the hypertext transfer protocol request, the method further includes: The hypertext transfer protocol request and the Shenzhen Securities Communication request are stored in the Redis middleware, so as to save the hypertext transfer protocol request and the Shenzhen Securities Communication request by using a non-relational database.
7. A communication status monitoring device, characterized in that: The device comprises: A first determining module, configured to determine, after receiving a preset format request, a first receiving time at which the preset format request is received; A collection module, configured to call a preset format interface at a first sending time to collect a user status of a peer end; the first sending time is a time after the first receiving time and separated by a first preset time; the peer end is a user end that sends the preset format request; The second determination module is used to determine that the communication status between the bank end and the opposite end is an interrupted state and issue an early warning if the user state is an offline state.
8. A communication status monitoring device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the communication status monitoring method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the communication status monitoring method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the communication status monitoring method according to any one of claims 1 to 6 are implemented.
