CN111083014A - Communication connection confirmation method, device and user terminal - Google Patents

Communication connection confirmation method, device and user terminal Download PDF

Info

Publication number
CN111083014A
CN111083014A CN201911318198.7A CN201911318198A CN111083014A CN 111083014 A CN111083014 A CN 111083014A CN 201911318198 A CN201911318198 A CN 201911318198A CN 111083014 A CN111083014 A CN 111083014A
Authority
CN
China
Prior art keywords
server
heartbeat
information
operation message
communication connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911318198.7A
Other languages
Chinese (zh)
Inventor
游道军
夏棋洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Aicai Network Technology Co ltd
Original Assignee
Hangzhou Aicai Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Aicai Network Technology Co ltd filed Critical Hangzhou Aicai Network Technology Co ltd
Priority to CN201911318198.7A priority Critical patent/CN111083014A/en
Publication of CN111083014A publication Critical patent/CN111083014A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Abstract

The application discloses a communication connection confirmation method, a communication connection confirmation device and a user terminal, and relates to the technical field of communication. Sending an operation message carrying a heartbeat identifier to a server; generating heartbeat information according to the high level of the clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval; discarding the heartbeat information; and determining a communication connection result according to whether the first feedback information sent by the server according to the operation message is received or not, so that the operation information input by the user can be used as heartbeat information, and the heartbeat information in the preset time after the operation information is sent is discarded, thereby reducing the data processing amount of the server, improving the stability of a server system, the overall performance of the server and the efficiency of processing data.

Description

Communication connection confirmation method, device and user terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for confirming a communication connection, and a user terminal.
Background
The instant messaging system is a system for implementing point-to-point instant messaging between network devices (for example, services capable of sending and receiving internet messages and the like instantly) by using internet information transmission, and because it is necessary to ensure timely, accurate and safe transmission of instant messaging information between users, it is necessary to monitor whether the communication connection of the network devices is normal in real time.
In the prior art, an instant messaging system generally adopts a heartbeat mechanism in a communication connection maintenance mode, and specifically, the method includes that a user terminal periodically and actively sends heartbeat packets to a server according to a set heartbeat interval value, and the server processes the heartbeat packets and responds to the heartbeat packets to return one heartbeat packet when receiving the heartbeat packets from the user terminal. And judging whether the opposite side exists or whether the communication is normal according to whether the two sides receive the heartbeat packet within the set heartbeat timeout time. However, if the user frequently operates the user terminal, the user terminal may frequently send the operation information to the server for processing, and thus the server needs to process the operation information while processing the heartbeat packet, and the data processing amount of the server is large, which causes system instability, reduces the overall performance of the server, deteriorates the efficiency of processing data, and may cause a downtime of the server in a severe case.
Disclosure of Invention
The embodiment of the application provides a communication connection confirmation method, a communication connection confirmation device and a user terminal, and aims to solve the problems that when communication connection is maintained, the data processing capacity of a server is large, a system is unstable, and the overall performance of the server is low.
In a first aspect, an embodiment of the present application provides a communication connection confirmation method, which is applied to a user terminal, and the method includes:
obtaining an operation message input by a user, and marking a heartbeat identifier on the operation message;
sending the operation message carrying the heartbeat identification to a server;
generating heartbeat information according to the high level of a clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval;
discarding the heartbeat information;
and determining a communication connection result according to whether first feedback information sent by the server according to the operation message is received or not.
In a second aspect, an embodiment of the present application further provides a communication connection confirming apparatus, which is applied to a user terminal, and the apparatus includes:
the message marking unit is configured to obtain an operation message input by a user and mark a heartbeat identifier for the operation message;
the information sending unit is configured to send the operation message carrying the heartbeat identifier to the server;
an information generating unit configured to generate heartbeat information according to a high level of a clock pulse signal within a preset first time, wherein the preset first time is less than a preset heartbeat interval;
an information discarding unit configured to discard the heartbeat information;
and the result determining unit is configured to determine a communication connection result according to whether first feedback information sent by the server according to the operation message is received or not.
In a third aspect, an embodiment of the present application further provides a user terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the communication connection confirmation method according to the first aspect of the embodiment of the present application.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: sending an operation message carrying a heartbeat identifier to a server; generating heartbeat information according to the high level of the clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval; discarding the heartbeat information; and determining a communication connection result according to whether the first feedback information sent by the server according to the operation message is received or not, so that the operation information input by the user can be used as heartbeat information, and the heartbeat information in the preset time after the operation information is sent is discarded, thereby reducing the data processing amount of the server, improving the stability of a server system, the overall performance of the server and the efficiency of processing data.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is an interaction diagram of a server and a user terminal communicating via a network according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a communication connection confirmation method according to an embodiment of the present application;
fig. 3 is a flowchart of a communication connection confirmation method according to an embodiment of the present application;
fig. 4 is a flowchart of a communication connection confirmation method according to an embodiment of the present application;
fig. 5 is a flowchart of a communication connection confirmation method according to an embodiment of the present application;
fig. 6 is a flowchart of a communication connection confirmation method according to an embodiment of the present application;
fig. 7 is a functional block diagram of a communication connection confirmation apparatus according to an embodiment of the present application;
fig. 8 is a functional block diagram of a communication connection confirmation apparatus according to an embodiment of the present application;
fig. 9 is a functional block diagram of a communication connection confirmation apparatus according to an embodiment of the present application;
fig. 10 is a circuit connection block diagram of a user terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application provides a communication connection confirming method applied to a user terminal 100. As shown in fig. 2, the user terminal 100 is communicatively connected to the server 300 through the network 300 to implement data interaction. Before the communication connection confirmation method is executed, the validity of the communication connection needs to be verified in advance. The specific process of verifying the validity of the communication connection may be: establishing a communication protocol between the user terminal 100 and the server 300: the data is transmitted in a JSON format, a data packet consists of a message ID and a message content, the message ID is used for marking the uniqueness of the message, and the message content is self-defined according to the service requirement. Then, the user acquires the Token value (i.e. the verification code) from the server 300 through the login system of the user terminal 100, where the Token value is a basis for the server 300 to verify the validity of the request of the user terminal 100, and there is expiration time, and after the expiration time elapses, the user terminal 100 needs to acquire the valid Token value again. After acquiring the Token value, the user terminal 100 sends a communication request to the server 300, and the user terminal 100 establishes Socket connection with the server 300. After the connection is successful, the user terminal 100 sends an authentication message to the server 300, wherein the content of the authentication message comprises a Token value and an encryption field; the server 300 verifies whether the Socket connection is legal or not according to the Token value and the encrypted field, and if the Socket connection is legal, normal communication is maintained; otherwise, the message sent by the user terminal 100 is intercepted. After the connection is successful, the ue 100 receives the heartbeat interval sent by the server 300 and buffers the heartbeat interval. The method comprises the following steps:
s11: and acquiring an operation message input by a user, and marking a heartbeat identifier for the operation message.
The operation information may be, but is not limited to, service information input by the user through an application program, for example, chat information (operation information) input by using QQ or wechat, or order information input by panning, kyoto home, or the like. The purpose of marking the operation information with the heartbeat identifier is to lay a foundation for the subsequent server 300 to use the operation information as the heartbeat information identification.
S12: and sending the operation message carrying the heartbeat identifier to the server 300.
S13: and generating heartbeat information according to the high level of the clock pulse signal within a preset first time, wherein the preset first time is less than a preset heartbeat interval.
It is to be understood that when the user terminal 100 is pre-configured with the heartbeat interval and the clock signal is at the low level, the user terminal 100 does not generate heartbeat information, and when the clock signal is at the high level, the user terminal generates heartbeat information. When the time interval is smaller than the heartbeat interval, no heartbeat information is sent to the server 300.
S14: the heartbeat information is discarded.
For example, the set heartbeat interval is 5 seconds, and at the time of 1 st second, the user terminal 100 generates and sends heartbeat information to the server 300; at the 3 rd second, the operation message carrying the heartbeat identifier is sent to the server 300, at the 6 th second, the user terminal 100 generates heartbeat information again, and then at the 6 th second, the time (i.e. the preset first time) from the last time of sending the operation message carrying the heartbeat identifier to the server 300 is less than 5 seconds, so that the heartbeat information is discarded.
S15: and determining a communication connection result according to whether the first feedback information sent by the server 300 according to the operation message is received or not.
The communication connection confirmation method comprises the steps of sending an operation message carrying a heartbeat identifier to a server 300; generating heartbeat information according to the high level of the clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval; discarding the heartbeat information; the communication connection result is determined according to whether the first feedback information sent by the server 300 according to the operation message is received or not, so that the operation information input by the user can be used as heartbeat information, and the heartbeat information in the preset time after the operation information is sent is discarded, the data processing amount of the server 300 is reduced, and the stability of a server 300 system, the overall performance of the server and the efficiency of processing data are improved.
Optionally, the first feedback information includes a processing message or first feedback information fed back by the server 300 according to an operation message carrying the heartbeat identifier.
The processing message may be chat information fed back to the user terminal 100 by the server 300, or may be a notification of successful ordering fed back to the user terminal 100 by the server 300, which is not limited herein.
Optionally, as shown in fig. 3, the method further includes:
s31: and when receiving the processing message sent by the server 300, sending the second feedback information to the server 300.
The second feedback information is an operation message input by the user or first response information fed back by the user terminal 100 according to the processing message.
It can be understood that the processing message sent by the server 300 can also be used as the heartbeat information of the server, the server can also discard the heartbeat information generated within a preset time after the processing information is sent, and when the processing message sent by the server 300 of the user terminal 100 is sent, the second feedback information is sent to the server 300, so that the data processing amount of the user terminal 100 is reduced, the overall performance of the user terminal 100 is improved, and the efficiency of processing the data is improved.
Alternatively, as shown in fig. 4, S31 includes:
s41: when receiving the processing message sent by the server 300, detecting whether the operation message input by the user is currently obtained, if yes, executing S42, and if no, executing S43.
S42: and sending the operation message to the server 300.
S43: and generating second response piece information and sending the second response piece information to the server 300.
When detecting that the operation message input by the user is obtained, the operation message may be directly sent to the server 300 as the second receipt message to inform that the server 300 has received the processing message, so that there is no need to generate the second receipt message, and the data processing amount of the user terminal 100 is further reduced.
Optionally, S15 may specifically be: and if the first feedback information sent by the server 300 according to the operation message is received, determining that the communication connection is normal.
As shown in fig. 5, after S12, the method further includes:
s51: and caching the operation message carrying the heartbeat identification.
After S15, the method further comprises:
s52: and deleting the cached operation message carrying the heartbeat identification.
Optionally, whether an operation message carrying a heartbeat identifier is cached or not may be detected at every preset second time; if the operation message carrying the heartbeat identifier is not cached, it is determined that the first feedback information sent by the server 300 according to the operation message is received, and through S51-S52, a basis can be provided for subsequently determining whether the communication connection is normal.
Optionally, as shown in fig. 6, S15 may specifically be:
s61: and if the first feedback information sent by the server 300 is not received, counting once.
S62: and judging whether the count value is larger than a preset threshold value (such as three times), if so, executing S63, and if not, returning to S11.
S63: it is determined that the communication connection is abnormal.
Referring to fig. 7, an embodiment of the present application further provides a communication connection confirming apparatus 700, which is applied to the user terminal 100, as shown in fig. 2, the user terminal 100 is in communication connection with the server 300 to implement data interaction. It should be noted that the basic principle and the technical effects of the communication connection confirmation apparatus 700 provided in the embodiment of the present application are the same as those of the above embodiment, and for the sake of brief description, reference may be made to the corresponding contents in the above embodiment for the part of the embodiment of the present application that is not mentioned. The apparatus 700 includes a message marking unit 701, an information transmitting unit 702, an information generating unit 703, an information discarding unit 704, and a result determining unit 705, wherein,
a message marking unit 701 configured to obtain an operation message input by a user, and mark a heartbeat identifier for the operation message.
An information sending unit 702 is configured to send the operation message carrying the heartbeat identifier to the server 300.
The first feedback information includes a processing message or first feedback information fed back by the server 300 according to the operation message carrying the heartbeat identifier.
The information generating unit 703 is configured to generate heartbeat information according to a high level of the clock pulse signal within a preset first time, where the preset first time is less than a preset heartbeat interval.
An information discarding unit 704 configured to discard the heartbeat information.
The result determining unit 705 is configured to determine a communication connection result according to whether first feedback information sent by the server 300 according to the operation message is received.
The communication connection confirming apparatus 700 may realize the following functions when executed: sending an operation message carrying a heartbeat identifier to the server 300; generating heartbeat information according to the high level of the clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval; discarding the heartbeat information; the communication connection result is determined according to whether the first feedback information sent by the server 300 according to the operation message is received or not, so that the operation information input by the user can be used as heartbeat information, and the heartbeat information in the preset time after the operation information is sent is discarded, the data processing amount of the server 300 is reduced, and the stability of a server 300 system, the overall performance of the server and the efficiency of processing data are improved.
The information sending unit 702 may be specifically configured to send the second feedback information to the server 300 when receiving the processing message sent by the server 300.
The second feedback information is an operation message input by the user or first response information fed back by the user terminal 100 according to the processing message.
Specifically, the information sending unit 702 is specifically configured to, when receiving a processing message sent by the server 300, detect whether an operation message input by a user is currently obtained; if the operation message input by the user is currently obtained, the operation message is sent to the server 300; and if the operation message input by the user is not obtained currently, generating second response piece information and sending the second response piece information to the server 300.
Optionally, the result determining unit 705 is specifically configured to determine that the communication connection is normal if the first feedback information sent by the server 300 according to the operation message is received.
Optionally, as shown in fig. 8, the apparatus 700 may further include:
the information caching unit 801 is configured to cache the operation message with the heartbeat identifier after sending the operation message with the heartbeat identifier to the server 300.
And an information deleting unit 802 configured to delete the cached operation message carrying the heartbeat identifier after determining that the communication connection is normal.
As shown in fig. 9, the apparatus 700 further includes:
a communication connection detecting unit 901, configured to detect whether an operation message carrying a heartbeat identifier is cached every a preset second time; if the operation message carrying the heartbeat identifier is not cached, it is determined that the first feedback information sent by the server 300 according to the operation message is received.
Optionally, the result determining unit 705 may be further specifically configured to count once if the first feedback information sent by the server 300 is not received; judging whether the count value is greater than a preset threshold value; if yes, determining that the communication connection is abnormal; if not, returning to the step of obtaining the operation message input by the user and marking the operation message with the heartbeat identifier.
It should be noted that the execution subjects of the steps of the method provided in embodiment 1 may be the same device, or different devices may be used as the execution subjects of the method. For example, the execution subject of steps 11 and 12 may be device 1, and the execution subject of step 13 may be device 2; for another example, the execution subject of step 11 may be device 1, and the execution subjects of step 12 and step 13 may be device 2; and so on.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 10, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry standard architecture) bus, a PCI (Peripheral component interconnect) bus, an EISA (Extended Industry standard architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 10, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the communication connection confirmation device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
obtaining an operation message input by a user, and marking a heartbeat identifier on the operation message;
sending the operation message carrying the heartbeat identification to a server;
generating heartbeat information according to the high level of a clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval;
discarding the heartbeat information;
and determining a communication connection result according to whether first feedback information sent by the server according to the operation message is received or not.
The method performed by the communication connection confirmation apparatus according to the embodiment shown in fig. 1 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method shown in fig. 1 and implement the functions of the communication connection confirmation apparatus in the embodiments shown in fig. 1 and fig. 2, which are not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Embodiments of the present application also provide a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to perform the method of the embodiment shown in fig. 1, and are specifically configured to:
obtaining an operation message input by a user, and marking a heartbeat identifier on the operation message;
sending the operation message carrying the heartbeat identification to a server;
generating heartbeat information according to the high level of a clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval;
discarding the heartbeat information;
and determining a communication connection result according to whether first feedback information sent by the server according to the operation message is received or not.
In short, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Claims (10)

1. A communication connection confirmation method applied to a user terminal, the method comprising:
obtaining an operation message input by a user, and marking a heartbeat identifier on the operation message;
sending the operation message carrying the heartbeat identification to a server;
generating heartbeat information according to the high level of a clock pulse signal within a preset first time, wherein the preset first time is smaller than a preset heartbeat interval;
discarding the heartbeat information;
and determining a communication connection result according to whether first feedback information sent by the server according to the operation message is received or not.
2. The method according to claim 1, wherein the first feedback information includes first feedback information fed back by a processing message or a server according to the operation message carrying the heartbeat identifier.
3. The method of claim 1, further comprising:
and when a processing message sent by the server is received, sending second feedback information to the server, wherein the second feedback information is an operation message input by a user or first response information fed back by the user terminal according to the processing message.
4. The method of claim 3, wherein the sending the second feedback information to the server when receiving the processing message sent by the server comprises:
when a processing message sent by a server is received, detecting whether an operation message input by a user is obtained currently;
if the operation message input by the user is obtained currently, the operation message is sent to the server;
and if the operation message input by the user is not obtained currently, generating second receipt information and sending the second receipt information to the server.
5. The method of claim 1, wherein the determining the communication connection result according to whether the first feedback information sent by the server according to the operation message is received comprises:
and if first feedback information sent by the server according to the operation message is received, determining that the communication connection is normal.
6. The method of claim 5, further comprising:
after the operation message carrying the heartbeat identification is sent to the server side, caching the operation message carrying the heartbeat identification;
and deleting the cached operation message carrying the heartbeat identification after the communication connection is determined to be normal.
7. The method of claim 6, further comprising:
detecting whether an operation message carrying a heartbeat identifier is cached every a preset second time;
and if the operation message carrying the heartbeat identification is not cached, determining to receive first feedback information sent by the server according to the operation message.
8. The method of claim 1, wherein the determining the communication connection result according to whether the first feedback information sent by the server is received comprises:
counting for one time if the first feedback information sent by the server is not received;
judging whether the count value is greater than a preset threshold value;
if yes, determining that the communication connection is abnormal;
if not, returning to the step of obtaining the operation information input by the user and marking the operation of the heartbeat identification on the operation information.
9. A communication connection confirmation apparatus applied to a user terminal, the apparatus comprising:
the message marking unit is configured to obtain an operation message input by a user and mark a heartbeat identifier for the operation message;
the information sending unit is configured to send the operation message carrying the heartbeat identifier to the server;
an information generating unit configured to generate heartbeat information according to a high level of a clock pulse signal within a preset first time, wherein the preset first time is less than a preset heartbeat interval;
an information discarding unit configured to discard the heartbeat information;
and the result determining unit is configured to determine a communication connection result according to whether first feedback information sent by the server according to the operation message is received or not.
10. A user terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the communication connection confirmation method according to any one of claims 1 to 8.
CN201911318198.7A 2019-12-19 2019-12-19 Communication connection confirmation method, device and user terminal Pending CN111083014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911318198.7A CN111083014A (en) 2019-12-19 2019-12-19 Communication connection confirmation method, device and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911318198.7A CN111083014A (en) 2019-12-19 2019-12-19 Communication connection confirmation method, device and user terminal

Publications (1)

Publication Number Publication Date
CN111083014A true CN111083014A (en) 2020-04-28

Family

ID=70315750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911318198.7A Pending CN111083014A (en) 2019-12-19 2019-12-19 Communication connection confirmation method, device and user terminal

Country Status (1)

Country Link
CN (1) CN111083014A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157591A (en) * 2020-09-07 2022-03-08 大唐移动通信设备有限公司 Heartbeat detection method, device, system, electronic device and storage medium
CN114465953A (en) * 2022-01-26 2022-05-10 亚信科技(成都)有限公司 Identification generation method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684949A (en) * 2012-06-04 2012-09-19 北京神州泰岳软件股份有限公司 Method and device for processing heartbeat data packet under persistent connection, and client
CN103401714A (en) * 2013-08-01 2013-11-20 广东威创视讯科技股份有限公司 Method for detecting network connection state and client side
CN106603598A (en) * 2015-10-15 2017-04-26 阿里巴巴集团控股有限公司 Method for processing service request and apparatus thereof
CN107204999A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 A kind of method and apparatus for realizing heartbeat
CN107454144A (en) * 2017-07-03 2017-12-08 深圳市金立通信设备有限公司 Information processing method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684949A (en) * 2012-06-04 2012-09-19 北京神州泰岳软件股份有限公司 Method and device for processing heartbeat data packet under persistent connection, and client
CN103401714A (en) * 2013-08-01 2013-11-20 广东威创视讯科技股份有限公司 Method for detecting network connection state and client side
CN106603598A (en) * 2015-10-15 2017-04-26 阿里巴巴集团控股有限公司 Method for processing service request and apparatus thereof
CN107204999A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 A kind of method and apparatus for realizing heartbeat
CN107454144A (en) * 2017-07-03 2017-12-08 深圳市金立通信设备有限公司 Information processing method and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157591A (en) * 2020-09-07 2022-03-08 大唐移动通信设备有限公司 Heartbeat detection method, device, system, electronic device and storage medium
CN114157591B (en) * 2020-09-07 2023-10-13 大唐移动通信设备有限公司 Heartbeat detection method, device, system, electronic equipment and storage medium
CN114465953A (en) * 2022-01-26 2022-05-10 亚信科技(成都)有限公司 Identification generation method and device and storage medium
CN114465953B (en) * 2022-01-26 2023-07-07 亚信科技(成都)有限公司 Identification generation method, device and storage medium

Similar Documents

Publication Publication Date Title
EP3013086B1 (en) Method, apparatus and electronic device for connection management
CN109660594B (en) Directional pushing method, display method, device and equipment for business processing result
US10476833B2 (en) Warning method and apparatus, and processing server
US11928138B2 (en) Account association systems and methods
WO2018018697A1 (en) Method and system for identifying spam message from false base station
JP2018517337A5 (en)
TWI465094B (en) User identification methods and systems for Internet transactions
WO2015010645A1 (en) Method and apparatus for message transmission
US8250644B1 (en) Forcing a mobile browser to access web content through a proxy
CN111083014A (en) Communication connection confirmation method, device and user terminal
US9325690B2 (en) Verification service
CN111093159A (en) Message pushing method and device, server and computer readable storage medium
CN111092904B (en) Network connection method and device
US10700879B2 (en) Charging method and device, access device, service quality control method and device
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN110781153A (en) Cross-application information sharing method and system based on block chain
CN111953770B (en) Route forwarding method and device, route equipment and readable storage medium
US10412778B2 (en) Data transmission method and apparatus for data service
EP3923524A1 (en) Selecting a communication channel for omnichannel message delivery
CN109660589B (en) Request processing method and device and electronic equipment
CN109428924B (en) Application online state maintenance method, access layer assembly, application system and equipment
CN114528264A (en) Data synchronization method and system
CN112291788A (en) Data processing method, device, storage medium, terminal and network access point equipment
CN115514661B (en) Quality assessment method and device for mobile payment service and electronic equipment
CN115379400B (en) Method and device for group short message receipt

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428

RJ01 Rejection of invention patent application after publication