Nothing Special   »   [go: up one dir, main page]

CN109831359A - A kind of detection method and its terminal device of data network connection state - Google Patents

A kind of detection method and its terminal device of data network connection state Download PDF

Info

Publication number
CN109831359A
CN109831359A CN201910103707.8A CN201910103707A CN109831359A CN 109831359 A CN109831359 A CN 109831359A CN 201910103707 A CN201910103707 A CN 201910103707A CN 109831359 A CN109831359 A CN 109831359A
Authority
CN
China
Prior art keywords
terminal device
data network
connection
rtt
business
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.)
Granted
Application number
CN201910103707.8A
Other languages
Chinese (zh)
Other versions
CN109831359B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910103707.8A priority Critical patent/CN109831359B/en
Publication of CN109831359A publication Critical patent/CN109831359A/en
Application granted granted Critical
Publication of CN109831359B publication Critical patent/CN109831359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses the detection methods and its terminal device of a kind of data network connection state, for solving the problems, such as to detect that the connection between terminal device and data network occurs abnormal and influences user and uses in time in the prior art.The described method includes: obtaining the RTT round-trip delay of at least one TCP transmission control protocol connection business of the terminal device;According to the RTT of at least one TCP connection business of the terminal device, the connection status of the data network of the terminal device is determined.

Description

A kind of detection method and its terminal device of data network connection state
Technical field
The present invention relates to the detection methods and its end of field of computer technology more particularly to a kind of data network connection state End equipment.
Background technique
Currently, the application program that can be mounted on terminal device terminal is more and more with the fast development of terminal device, User can also use a variety of application programs simultaneously, for example, can also open while using chat application Video Applications or Browse webpage.
However, these applications, which usually require to establish with data network after connection, to be used, once with data network it Between connection be abnormal, these application will be unable to normal use, this will will affect the usage experience of user.
Therefore, it is abnormal still urgently to be resolved how to detect that the connection between terminal device and data network occurs in time.
Summary of the invention
The embodiment of the present invention provides the detection method and its terminal device of a kind of data network connection state, existing to solve It cannot detect that the connection between terminal device and data network occurs abnormal and influences the problem of user uses in technology in time.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, being applied to terminal the embodiment of the invention provides a kind of detection method of data network connection state Equipment, which comprises
Obtain the RTT round-trip delay of at least one TCP transmission control protocol connection business of the terminal device;
According to the RTT of at least one TCP connection business of the terminal device, the data network of the terminal device is determined Connection status.
Preferably, the RTT of at least one TCP connection business according to the terminal device, determines that the terminal is set The connection status of standby data network, specifically includes:
If the RTT of M TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that the end The data network connection of end equipment is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of N number of TCP connection business of the terminal device is greater than or equal to the Two threshold values, it is determined that the data network connection of the terminal device is abnormal.
Preferably, after the data network connection exception of the determination terminal device, the method also includes:
Again connection is established with network side equipment or restart in the terminal device data network switch, with data network Network re-establishes connection.
Preferably, the RTT of at least one TCP connection business according to the terminal device, determines that the terminal is set The connection status of standby data network, specifically includes:
If the RTT of the continuous N TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that institute The data network connection for stating terminal device is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of continuous N number of TCP connection business of the terminal device is greater than or waits In second threshold, it is determined that the data network connection of the terminal device is abnormal.
Second aspect, the embodiment of the invention provides a kind of terminal devices, comprising:
Acquiring unit, the RTT that at least one TCP transmission control protocol for obtaining the terminal device connects business are past Return time delay;
Determination unit determines the terminal for the RTT according at least one TCP connection business of the terminal device The connection status of the data network of equipment.
Preferably, the determination unit, is specifically used for:
If the RTT of M TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that the end The data network connection of end equipment is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of N number of TCP connection business of the terminal device is greater than or equal to the Two threshold values, it is determined that the data network connection of the terminal device is abnormal.
Preferably, the terminal device further include:
Connection unit, after the data network connection exception for determining the terminal device in the determination unit, weight Connection is newly established with network side equipment or restarts the data network switch in the terminal device, to re-establish with data network Connection.
Preferably, the determination unit, is used for:
If the RTT of the continuous N TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that institute The data network connection for stating terminal device is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of continuous N number of TCP connection business of the terminal device is greater than or waits In second threshold, it is determined that the data network connection of the terminal device is abnormal.
The third aspect, the embodiment of the invention provides a kind of terminal devices, comprising: memory, processor and is stored in institute The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor The step of realizing the detection method of data network connection state as described in relation to the first aspect.
Fourth aspect, the embodiment of the present invention also provide a kind of readable storage medium storing program for executing, on the computer readable storage medium It is stored with computer program, data network connection shape as described in relation to the first aspect is realized when the computer program is executed by processor The step of detection method of state.
In the embodiment of the present invention, since the RTT of at least one TCP connection business in terminal device can be obtained, and can To determine the connection status of the data network of terminal device according to the RTT of at least one TCP connection business of the terminal device. In this way when in terminal device there are when at least one TCP connection business, can be by obtaining the RTT of these TCP connection business Duration determines whether the connection status of the data network of terminal device exception occurs.If it is determined that the data network of terminal device There is exception in connection, and terminal device can then take some measures to restore its connection between data network in time, such as It can be restored between terminal device and data network by restarting the measures such as data network switch or data network re-register Connection.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is that a kind of specific implementation process of the detection method of data network connection state provided in an embodiment of the present invention is shown It is intended to;
Fig. 2 is a kind of another specific implementation stream of the detection method of data network connection state provided in an embodiment of the present invention Journey schematic diagram;
Fig. 3 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another terminal device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The technical solution provided below in conjunction with attached drawing, each embodiment that the present invention will be described in detail.
For solve to detect in time in the prior art connection between terminal device and data network occur it is abnormal and The problem of user uses is influenced, the present invention provides a kind of detection method of data network connection state, the executing subject of this method, Can be, but not limited to mobile phone, tablet computer etc. can be configured as executing the terminal device of this method provided in an embodiment of the present invention In any one.
For ease of description, hereafter executing subject in this way is to be able to carry out for the terminal device of this method, to this The embodiment of method is introduced.It is appreciated that it is that one kind is illustratively said that the executing subject of this method, which is terminal device, It is bright, it is not construed as the restriction to this method.
Specifically, the detection method of data network connection state provided by the invention includes: to set firstly, obtaining the terminal The RTT round-trip delay of standby at least one TCP transmission control protocol connection business;Then, at least according to the terminal device The RTT of one TCP connection business determines the connection status of the data network of the terminal device.
In the embodiment of the present invention, since the RTT of at least one TCP connection business in terminal device can be obtained, and can To determine the connection status of the data network of terminal device according to the RTT of at least one TCP connection business of the terminal device. In this way when in terminal device there are when at least one TCP connection business, can be by obtaining the RTT of these TCP connection business Duration determines whether the connection status of the data network of terminal device exception occurs.If it is determined that the data network of terminal device There is exception in connection, and terminal device can then take some measures to restore its connection between data network in time, such as It can be restored between terminal device and data network by restarting the measures such as data network switch or data network re-register Connection.
Below with reference to the specific implementation flow diagram of the detection method of data network connection state shown in FIG. 1, to this The implementation process of method describes in detail, comprising:
Step 101, at least one TCP (Transmission Control Protocol, biography in terminal device are obtained Transport control protocol view) connection business RTT (Round-Trip Time, round-trip delay);
As described in the background art, in the prior art, the industry for being performed simultaneously multiple TCP connections is tended in terminal device Business, for example user, while browsing webpage by terminal device, chat application, map application in terminal device, shopping are answered It, if exception occurs in the connection at this time between terminal device and data network, can be will lead in running background with equal application User can not normal browsing webpage, the other applications such as chat application, map application, shopping application in terminal device also will be unable to Reception and more new data in time, to will affect the usage experience of user.
The embodiment of the present invention in order to solve this problem, can be by obtaining at least one TCP connection in terminal device The RTT duration of business, to the connection status of the data network of terminal device, i.e., to the long term evolution (Long of terminal device Term Evolution, LTE) connection status of network detected, however, it is determined that the connection shape of the data network of the terminal device There is exception in state, and terminal device then can re-establish itself and data based on its connection status between data network at this time Connection between network enables a user to the application in normal use terminal device.
Step 102, according to the RTT of at least one TCP connection business of terminal device, the data network of terminal device is determined Connection status.
Optionally, according to the RTT of at least one TCP connection business of terminal device, the data network of terminal device is determined Connection status, may include following two situation:
The first situation can be with if the RTT of M TCP connection business of terminal device is all larger than or is equal to first threshold Determine that the data network connection of terminal device is abnormal;
Assuming that terminal device has been performed simultaneously A TCP connection business, including browsing webpage, chat, branch in preset time period Pay, subscribe to etc. A TCP connection business, after the RTT for obtaining this A TCP connection business, however, it is determined that this A TCP connection First threshold is all larger than or be equal in business there are the RTT of M TCP connection business, then can determine the data network of terminal device The connection of network is abnormal, wherein M is less than or equal to A.
Optionally, in the data network connection state for determining terminal device, in order to more accurately determine terminal device Data network connection state is also based on the RTT of the continuous N TCP connection business of terminal device, to determine terminal device Data network connection state, that is, if the RTT of the continuous N TCP connection business of terminal device is all larger than or is equal to first threshold, It can then determine that the data network connection of terminal device is abnormal.
Second situation, if the average RTT round-trip delay of the RTT of N number of TCP connection business of terminal device is greater than or equal to Second threshold can then determine that the data network connection of terminal device is abnormal.
Continue to assume that terminal device has been performed simultaneously A TCP connection business in preset time period, including browses webpage, chats It, payment, subscribe to etc. A TCP connection business, after the RTT for obtaining this A TCP connection business, however, it is determined that this A TCP There are the average values of the RTT of N number of TCP connection business to be greater than or equal to preset threshold in connection business, then can determine that terminal is set The connection of standby data network is abnormal, wherein N is less than or equal to A.
Optionally, in the data network connection state for determining terminal device, in order to more accurately determine terminal device Data network connection state is also based on the average value of the RTT of continuous N number of TCP connection business of terminal device, to determine end The data network connection state of end equipment, if the average RTT round-trip delay of the RTT of continuous N number of TCP connection business of terminal device More than or equal to second threshold, then it can determine that the data network connection of terminal device is abnormal.
Optionally, in order to enable the data network connection state of terminal device can be restored as early as possible normally, to meet user Use demand, the embodiment of the present invention after determining the data network connection exception of terminal device, can also again with network Side apparatus establishes connection or restarts the data network switch in terminal device, is connect with re-establishing with data network.
Optionally, after determining the data network connection exception of terminal device, due to terminal device and data network it Between connection status may include off-state and non-off-state, then in order between terminal device and data network Connection status re-establishes the connection between terminal device and data network, can also obtain terminal device and data network it Between connection status can establish connection with network side equipment again if the mobile data of terminal device is in an off state Or the data network restarted in terminal device switchs, and is connect with re-establishing with data network.
For example, working as, terminal device is in elevator, basement or other data network signals are faint or even no data network is believed Number space when, connection status between terminal device and data network then can be off-state, at this time in order to build again as early as possible Connection between vertical terminal device and data network, terminal device can be restarted terminal device or be opened with every preset time period It closes flight model to connect to re-establish with network side equipment, or data network switch can also be restarted to send out to data network Connection request is sent, is connect to be re-established with data network.
Optionally, when the connection status between terminal device and data network be do not disconnect the case where when, then can be again Connection is established with network side equipment or restarts the data network switch in terminal device, is connect with re-establishing with data network. Specifically, comprising:
First way establishes connection with network side equipment again, is connect with re-establishing with data network;
In practical applications, then terminal device can be carried out complete machine to restart, or " the flight in first opening terminal apparatus Mode " turns off " offline mode " and is connect to establish connection with network side equipment again with re-establishing with data network.
The second way can restart the data network switch in terminal device, be connect with re-establishing with data network.
As shown in Fig. 2, another specific reality of the detection method for data network connection state provided in an embodiment of the present invention Apply flow diagram, comprising:
Step 201, the RTT of at least one TCP connection business in terminal device is obtained;
Step 202, if the RTT of M TCP connection business of terminal device be all larger than or be equal to first threshold or, if eventually The average RTT round-trip delay of the RTT of N number of TCP connection business of end equipment is greater than or equal to second threshold, then can determine terminal The data network connection of equipment is abnormal;
Step 203, with network side equipment establish connection again or restart the data network switch in terminal device, with number Connection is re-established according to network.
In the embodiment of the present invention, since the RTT of at least one TCP connection business in terminal device can be obtained, and can To determine the connection status of the data network of terminal device according to the RTT of at least one TCP connection business of the terminal device. In this way when in terminal device there are when at least one TCP connection business, can be by obtaining the RTT of these TCP connection business Duration determines whether the connection status of the data network of terminal device exception occurs.If it is determined that the data network of terminal device There is exception in connection, and terminal device can then take some measures to restore its connection between data network in time, such as It can be restored between terminal device and data network by restarting the measures such as data network switch or data network re-register Connection.
Referring to Fig. 3, being the structural schematic diagram of terminal device 300 provided in an embodiment of the present invention, as shown in figure 3, including Acquiring unit 301 and determination unit 302, in which:
Acquiring unit 301, at least one TCP transmission control protocol for obtaining the terminal device connect business RTT round-trip delay;
Determination unit 302 determines the end for the RTT according at least one TCP connection business of the terminal device The connection status of the data network of end equipment.
In the embodiment of the present invention, at least one TCP connection business in terminal device can be obtained due to acquiring unit 301 RTT, determination unit 302 can determine terminal device according to the RTT of at least one TCP connection business of the terminal device The connection status of data network.In this way when in terminal device there are when at least one TCP connection business, can be by obtaining this The RTT durations of a little TCP connection business determines whether the connection status of the data network of terminal device exception occurs.If it is determined that eventually There is exception in the connection of the data network of end equipment, and terminal device can then take some measures to restore itself and data network in time Connection between network, for example terminal can be restored by restarting the measures such as data network switch or data network re-register Connection between equipment and data network.
Optionally, in one embodiment, the determination unit 302, is specifically used for:
If the RTT of M TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that the end The data network connection of end equipment is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of N number of TCP connection business of the terminal device is greater than or equal to the Two threshold values, it is determined that the data network connection of the terminal device is abnormal.
Optionally, in one embodiment, as shown in figure 4, in order to enable the data network connection state of terminal device It can restore normal, as early as possible to meet the use demand of user, the terminal device further include:
Connection unit 303, for the data network connection exception in the determining terminal device of the determination unit 302 Afterwards, connection is established with network side equipment again or restart in the terminal device data network switch, with data network weight Newly establish connection;
Optionally, in one embodiment, the data network connection state of terminal device is determined in determination unit 302 When, in order to more accurately determine that the data network connection state of terminal device, the determination unit 302 are used for:
If the RTT of the continuous N TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that institute The data network connection for stating terminal device is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of continuous N number of TCP connection business of the terminal device is greater than or waits In second threshold, it is determined that the data network connection of the terminal device is abnormal.
Terminal device 300 provided in an embodiment of the present invention can be realized terminal device in above method embodiment and may be implemented Each process, to avoid repeating, which is not described herein again.
A kind of hardware structural diagram of Fig. 5 terminal device 500 of each embodiment to realize the present invention,
The terminal device 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The components such as 510 and power supply 511.It will be understood by those skilled in the art that terminal device structure shown in Fig. 5 is not constituted Restriction to terminal device, terminal device may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.In embodiments of the present invention, terminal device include but is not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510, at least one TCP transmission control protocol for obtaining the terminal device connect business RTT round-trip delay;According to the RTT of at least one TCP connection business of the terminal device, the number of the terminal device is determined According to the connection status of network.
In the embodiment of the present invention, since the RTT of at least one TCP connection business in terminal device can be obtained, and can To determine the connection status of the data network of terminal device according to the RTT of at least one TCP connection business of the terminal device. In this way when in terminal device there are when the business of multiple TCP connections, can RTT by obtaining these TCP connection business when Length is to determine whether the connection status of the data network of terminal device exception occurs.If there is the TCP connection industry of predetermined number simultaneously The RTT duration of business is greater than or equal to some preset threshold, then can determine that the connection between terminal device and data network occurs It is abnormal.Terminal device can be then taken some measures in time to restore its connection between data network at this time, such as can be with Restore the company between terminal device and data network by restarting the measures such as data network switch or data network re-register It connects.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also provide and end The relevant audio output of specific function that end equipment 500 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 503.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Terminal device 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when terminal device 500 is moved in one's ear Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display Panel 5061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with terminal device 500.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 500 or can be used in 500 He of terminal device Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Terminal device 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal device, including processor 510, and memory 509 is stored in On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510 Each process of the detection method embodiment of the above-mentioned data network connection state of Shi Shixian, and identical technical effect can be reached, To avoid repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize the detection method embodiment of above-mentioned data network connection state when being executed by processor Each process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, described computer-readable Storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, term " includes ", " comprising " or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of detection method of data network connection state is applied to terminal device, which is characterized in that the described method includes:
Obtain the RTT round-trip delay of at least one TCP transmission control protocol connection business of the terminal device;
According to the RTT of at least one TCP connection business of the terminal device, the company of the data network of the terminal device is determined Connect state.
2. the method as described in claim 1, which is characterized in that described at least one TCP connection according to the terminal device The RTT of business determines the connection status of the data network of the terminal device, specifically includes:
If the RTT of M TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that the terminal is set Standby data network connection is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of N number of TCP connection business of the terminal device is greater than or equal to the second threshold Value, it is determined that the data network connection of the terminal device is abnormal.
3. method according to claim 2, which is characterized in that the data network connection of the determination terminal device is abnormal Later, the method also includes:
Again connection is established with network side equipment or restart in the terminal device data network switch, with data network weight Newly establish connection.
4. method according to claim 2, which is characterized in that described at least one TCP connection according to the terminal device The RTT of business determines the connection status of the data network of the terminal device, specifically includes:
If the RTT of the continuous N TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that the end The data network connection of end equipment is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of continuous N number of TCP connection business of the terminal device is greater than or equal to the Two threshold values, it is determined that the data network connection of the terminal device is abnormal.
5. a kind of terminal device characterized by comprising
Acquiring unit, for obtain the terminal device at least one TCP transmission control protocol connect business RTT it is round-trip when Prolong;
Determination unit determines the terminal device for the RTT according at least one TCP connection business of the terminal device Data network connection status.
6. terminal device as claimed in claim 5, which is characterized in that the determination unit is specifically used for:
If the RTT of M TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that the terminal is set Standby data network connection is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of N number of TCP connection business of the terminal device is greater than or equal to the second threshold Value, it is determined that the data network connection of the terminal device is abnormal.
7. terminal device as claimed in claim 6, which is characterized in that the terminal device further include:
Connection unit, after the data network connection exception for determining the terminal device in the determination unit, again with Network side equipment establishes connection or restarts the data network switch in the terminal device, to re-establish company with data network It connects.
8. terminal device as claimed in claim 6, which is characterized in that the determination unit is used for:
If the RTT of the continuous N TCP connection business of the terminal device is all larger than or is equal to first threshold, it is determined that the end The data network connection of end equipment is abnormal;
Alternatively, if the average RTT round-trip delay of the RTT of continuous N number of TCP connection business of the terminal device is greater than or equal to the Two threshold values, it is determined that the data network connection of the terminal device is abnormal.
9. a kind of terminal device, comprising: memory, processor and be stored on the memory and can transport on the processor Capable computer program is realized as described in any in Claims 1 to 4 when the computer program is executed by the processor The step of detection method of data network connection state.
10. a kind of readable storage medium storing program for executing, computer program, the computer journey are stored on the computer readable storage medium The step of the detection method of the data network connection state as described in any in Claims 1 to 4 is realized when sequence is executed by processor Suddenly.
CN201910103707.8A 2019-02-01 2019-02-01 Method for detecting connection state of data network and terminal equipment thereof Active CN109831359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910103707.8A CN109831359B (en) 2019-02-01 2019-02-01 Method for detecting connection state of data network and terminal equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910103707.8A CN109831359B (en) 2019-02-01 2019-02-01 Method for detecting connection state of data network and terminal equipment thereof

Publications (2)

Publication Number Publication Date
CN109831359A true CN109831359A (en) 2019-05-31
CN109831359B CN109831359B (en) 2021-04-02

Family

ID=66863336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910103707.8A Active CN109831359B (en) 2019-02-01 2019-02-01 Method for detecting connection state of data network and terminal equipment thereof

Country Status (1)

Country Link
CN (1) CN109831359B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868746A (en) * 2019-11-18 2020-03-06 RealMe重庆移动通信有限公司 Network switching method and device, electronic equipment and storage medium
CN111770522A (en) * 2020-06-05 2020-10-13 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for identifying data dialing abnormity
CN112260897A (en) * 2020-10-19 2021-01-22 海尔优家智能科技(北京)有限公司 Method and device for identifying connection abnormity
CN113840313A (en) * 2020-06-24 2021-12-24 深圳市万普拉斯科技有限公司 Network mode control method and device of mobile terminal and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294812A (en) * 2017-08-03 2017-10-24 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN107332739A (en) * 2017-07-28 2017-11-07 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN107333287A (en) * 2017-08-04 2017-11-07 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN108566315A (en) * 2018-03-30 2018-09-21 中国联合网络通信集团有限公司 A kind of detection method of faulty link, device and server
WO2018222007A1 (en) * 2017-06-02 2018-12-06 Samsung Electronics Co., Ltd. Methods and systems for accounting for data usage in mptcp

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018222007A1 (en) * 2017-06-02 2018-12-06 Samsung Electronics Co., Ltd. Methods and systems for accounting for data usage in mptcp
CN107332739A (en) * 2017-07-28 2017-11-07 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN107294812A (en) * 2017-08-03 2017-10-24 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN107333287A (en) * 2017-08-04 2017-11-07 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN108566315A (en) * 2018-03-30 2018-09-21 中国联合网络通信集团有限公司 A kind of detection method of faulty link, device and server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868746A (en) * 2019-11-18 2020-03-06 RealMe重庆移动通信有限公司 Network switching method and device, electronic equipment and storage medium
CN110868746B (en) * 2019-11-18 2022-04-05 RealMe重庆移动通信有限公司 Network switching method and device, electronic equipment and storage medium
CN111770522A (en) * 2020-06-05 2020-10-13 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for identifying data dialing abnormity
CN113840313A (en) * 2020-06-24 2021-12-24 深圳市万普拉斯科技有限公司 Network mode control method and device of mobile terminal and computer equipment
WO2021259168A1 (en) * 2020-06-24 2021-12-30 深圳市万普拉斯科技有限公司 Network mode control method and apparatus for mobile terminal, and computer device
CN113840313B (en) * 2020-06-24 2024-02-06 深圳市万普拉斯科技有限公司 Network mode control method and device of mobile terminal and computer equipment
CN112260897A (en) * 2020-10-19 2021-01-22 海尔优家智能科技(北京)有限公司 Method and device for identifying connection abnormity

Also Published As

Publication number Publication date
CN109831359B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN108924817A (en) A kind of SIM card state switching method and mobile terminal
CN109445736A (en) A kind of multi-screen display method and mobile terminal
CN110198545A (en) A kind of secondary cell group adding method, terminal device and host node
CN109271121A (en) A kind of application display method and mobile terminal
CN110366212A (en) A kind of detection method and terminal of condition switching result
CN109831359A (en) A kind of detection method and its terminal device of data network connection state
CN108363524B (en) A kind of application icon display methods and mobile terminal
CN110062372A (en) A kind of SIM card control method and terminal device
CN108628521A (en) A kind of screen operating method and mobile terminal
CN107613024A (en) A kind of method of data synchronization and mobile terminal
CN109144393A (en) A kind of image display method and mobile terminal
CN110471559A (en) A kind of false-touch prevention method and mobile terminal
CN108769202A (en) A kind of information push method and its server and terminal device
CN109802945A (en) A kind of data transmission method and terminal device
CN109002245A (en) A kind of operating method and mobile terminal of application interface
CN107908983A (en) A kind of method and mobile terminal for controlling mobile terminal screen
CN107979385B (en) A kind of radio-frequency front-end data processing method and mobile terminal
CN110505279A (en) The method and apparatus of delay is set
CN110475303A (en) A kind of data transmission method and terminal device
CN109831582A (en) Non- response events processing method and terminal
CN109745699A (en) A kind of method and terminal device responding touch control operation
CN109151741A (en) A kind of multimedia message receiving method and terminal
CN109445589A (en) A kind of multimedia file broadcasting control method and terminal device
CN108718360A (en) A kind of charging method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant