CN111263470A - Mobile terminal network connection method - Google Patents

Mobile terminal network connection method Download PDF

Info

Publication number
CN111263470A
CN111263470A CN202010144077.1A CN202010144077A CN111263470A CN 111263470 A CN111263470 A CN 111263470A CN 202010144077 A CN202010144077 A CN 202010144077A CN 111263470 A CN111263470 A CN 111263470A
Authority
CN
China
Prior art keywords
network connection
network
time interval
preset time
server
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
CN202010144077.1A
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.)
Zhengzhou Zhilixin Information Technology Co ltd
Original Assignee
Zhengzhou Zhilixin Information 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 Zhengzhou Zhilixin Information Technology Co ltd filed Critical Zhengzhou Zhilixin Information Technology Co ltd
Priority to CN202010144077.1A priority Critical patent/CN111263470A/en
Publication of CN111263470A publication Critical patent/CN111263470A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure

Abstract

The invention relates to a mobile terminal network connection method, the mobile terminal sends the first network connection request to the first server providing network resource according to the first preset time interval, and detect the response state of each first network connection request; if the response states of the continuous first preset times are all failure states, sending second network connection requests to a second server according to a second preset time interval, and detecting the response states of the second network connection requests; and if the response states of the second preset times are all failure states, sending a third network connection request to a third server, wherein the first preset time interval is greater than the second preset time interval, and the first preset times is greater than the second preset times. By the network connection mode, the reliability of network connection can be improved.

Description

Mobile terminal network connection method
Technical Field
The invention relates to a mobile terminal network connection method.
Background
The mobile terminal and the server need to be connected through a network, and then the mobile terminal can receive and transmit data. However, the reliability of the existing network connection method is poor.
Disclosure of Invention
The invention aims to provide a mobile terminal network connection method, which is used for solving the problem of poor reliability of the existing network connection method.
In order to solve the problems, the invention adopts the following technical scheme:
a mobile terminal network connection method comprises the following steps:
the method comprises the steps that the mobile terminal sends first network connection requests to a first server providing network resources according to a first preset time interval, and detects response states of the first network connection requests;
if the response states of the continuous first preset times are all failure states, sending second network connection requests to a second server providing the network resources according to a second preset time interval, and detecting the response states of the second network connection requests;
if the response states of the second preset times are all failure states, sending a third network connection request to a third server providing the network resource; the first preset time interval is greater than the second preset time interval, and the first preset times is greater than the second preset times.
Optionally, the sending a second network connection request to a second server providing the network resource according to a second preset time interval includes:
and sending a second network connection request to a second server providing the network resource by changing a network address according to a second preset time interval, wherein the network address comprises an IP address and a port number.
Optionally, the sending a third network connection request to a third server providing the network resource includes:
sending a third network connection request to a third server providing the network resource by changing a network address, wherein the network address comprises an IP address and a port number.
Optionally, the sending a third network connection request to a third server providing the network resource includes:
sending third network connection requests to a third server providing the network resources according to a third preset time interval, and detecting response states of the third network connection requests;
if the response states of the third preset times are all failure states, judging that the network connection is failed, otherwise, establishing the network connection between the mobile terminal and the third server; the second preset time interval is greater than the third preset time interval, and the second preset times is greater than the third preset times.
The invention has the beneficial effects that: the mobile terminal firstly sends a first network connection request to a first server for providing network resources according to a first preset time interval, namely, the first network connection request is sent once every first preset time interval, and the response state of each first network connection request is detected, the response state is a success state which means that the network connection request response is successful, the response state is a failure state which means that the network connection request response is failed, if the response states of the continuous first preset times are detected to be failure states which indicate that the mobile terminal can not carry out network connection with the first server, a second network connection request is sent to a second server for providing the network resources according to a second preset time interval, and the response state of each second network connection request is detected, and similarly, if the response states of the continuous second preset times are detected to be failure states, and when the mobile terminal cannot perform network connection with the second server, sending a third network connection request to a third server providing the network resource. Therefore, through the network connection mode, after the connection with a certain server fails, the connection with the next server is tried, the reliability of the network connection is improved, in addition, the first preset time interval is greater than the second preset time interval, the first preset time is greater than the second preset time, which indicates that when the connection with the second server is tried, the time interval of two adjacent second network connection requests is shorter, the efficiency of the network connection can be improved, after the connection with the first server fails, the time occupied by the connection with the second server is shortened, in addition, the second preset time is smaller, the connection with the second server is stricter, more invalid attempts are avoided, and the reliability of the network connection is improved.
Drawings
In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings needed to be used in the embodiment will be briefly described as follows:
fig. 1 is a flow chart illustrating a mobile terminal network connection method.
Detailed Description
The embodiment provides a mobile terminal network connection method, as shown in fig. 1, including:
the mobile terminal sends first network connection requests to a first server providing network resources according to a first preset time interval, and detects response states of the first network connection requests:
in this embodiment, the mobile terminal has three servers capable of performing network connection, which are a first server, a second server, and a third server. The three servers all have corresponding network addresses, and in this embodiment, the network addresses of the three servers all include IP addresses and port numbers. All three servers provide the same network resources.
The mobile terminal firstly sends a first network connection request to a first server according to a first preset time interval, wherein the specific numerical value of the first preset time interval is set according to actual needs, that is, the mobile terminal sends the first network connection request to the first server once every certain time. And detecting the response state of each first network connection request, namely detecting the response state of the first network connection request every time the first network connection request is sent. The response state refers to whether the network connection request is successfully responded or fails to respond, and follow-up processing strategies are carried out according to different response states. The response state is divided into a success state and a failure state, if the response state is the success state, the network connection request response is successful, and the successful response means that the current network is available; if the response state is a failure state, the network connection request response is failed, and the failure of the response means that the current network is unavailable.
If the response states of the continuous first preset times are all failure states, sending second network connection requests to a second server providing the network resources according to a second preset time interval, and detecting the response states of the second network connection requests:
and detecting the response state of the first network connection request every time the first network connection request is sent, and obtaining a response state. Setting a first preset number of times, wherein the specific numerical value of the first preset number of times is set according to actual needs. If the response states of the first preset times are all failure states, for example: and setting the first preset number of times as 5, if the response states of 5 continuous times are failure states, which indicate that the mobile terminal cannot perform network connection with the first server, and at the moment, network connection with other servers is required, sending a second network connection request to a second server providing network resources according to a second preset time interval. And sending a second network connection request to the second server according to a second preset time interval by changing the network address (namely changing the network address of the first server into the network address of the second server) because the network addresses of the first server and the second server are different. Accordingly, if not: and if the response states of the continuous first preset times are failure states, establishing the network connection between the mobile terminal and the first server.
The specific value of the second preset time interval is set by actual needs, but needs to satisfy: the first preset time interval is greater than the second preset time interval, that is, the interval time between two adjacent second network connection requests is shorter and the sending frequency of the second network connection requests is higher relative to the first network connection request. The mobile terminal sends a second network connection request to the second server once every certain time interval. And detecting the response state of each second network connection request, namely detecting the response state of the second network connection request every time the second network connection request is sent.
If the response states of the second preset times are all failure states, sending a third network connection request to a third server providing the network resource; wherein the first preset time interval is greater than the second preset time interval, and the first preset times is greater than the second preset times:
and detecting the response state of the second network connection request every time the second network connection request is sent, so as to obtain a response state. A second preset number is set, and the specific numerical value of the second preset number is set by actual needs, but needs to satisfy: the first preset times is greater than the second preset times. If the response states of the second preset times are all failure states, for example: and setting the second preset number of times as 4, if the response states of 4 consecutive times are failure states, which indicate that the mobile terminal cannot perform network connection with the second server, and at the moment, network connection with other servers is required, sending a third network connection request to a third server providing network resources. And sending a third network connection request to the third server by changing the network address (namely changing the network address of the second server into the network address of the third server) because the network addresses of the second server and the third server are different. Accordingly, if not: and if the response states of the second preset times are failure states, establishing network connection between the mobile terminal and the second server.
When a third network connection request is sent to a third server, only one third network connection request can be sent, if the third network connection request response is successful, network connection is established with the third server, and if the third network connection request response is failed, the mobile terminal cannot perform network connection with each server, and the mobile terminal network connection failure is judged. Or, similarly to the second server, sending third network connection requests to a third server according to a third preset time interval, and detecting response states of the third network connection requests; and if the response states of the third preset times are all failure states, judging that the network connection fails, otherwise, establishing the network connection with the third server. The second preset time interval is greater than the third preset time interval, and the second preset times is greater than the third preset times. Compared with the second network connection request, the interval time of two adjacent third network connection requests is shorter, the sending frequency of the third network connection request is higher, the network connection efficiency is improved, the occupied time is reduced, the network connection judgment mode is stricter, more invalid attempts are avoided, and the reliability of network connection is improved.
The above-mentioned embodiments are merely illustrative of the technical solutions of the present invention in a specific embodiment, and any equivalent substitutions and modifications or partial substitutions of the present invention without departing from the spirit and scope of the present invention should be covered by the claims of the present invention.

Claims (4)

1. A mobile terminal network connection method is characterized by comprising the following steps:
the method comprises the steps that the mobile terminal sends first network connection requests to a first server providing network resources according to a first preset time interval, and detects response states of the first network connection requests;
if the response states of the continuous first preset times are all failure states, sending second network connection requests to a second server providing the network resources according to a second preset time interval, and detecting the response states of the second network connection requests;
if the response states of the second preset times are all failure states, sending a third network connection request to a third server providing the network resource; the first preset time interval is greater than the second preset time interval, and the first preset times is greater than the second preset times.
2. The network connection method of claim 1, wherein the sending a second network connection request to a second server providing the network resource at a second preset time interval comprises:
and sending a second network connection request to a second server providing the network resource by changing a network address according to a second preset time interval, wherein the network address comprises an IP address and a port number.
3. The mobile terminal network connection method according to claim 1, wherein the sending a third network connection request to a third server providing the network resource comprises:
sending a third network connection request to a third server providing the network resource by changing a network address, wherein the network address comprises an IP address and a port number.
4. The mobile terminal network connection method according to claim 1, wherein the sending a third network connection request to a third server providing the network resource comprises:
sending third network connection requests to a third server providing the network resources according to a third preset time interval, and detecting response states of the third network connection requests;
if the response states of the third preset times are all failure states, judging that the network connection is failed, otherwise, establishing the network connection between the mobile terminal and the third server; the second preset time interval is greater than the third preset time interval, and the second preset times is greater than the third preset times.
CN202010144077.1A 2020-03-04 2020-03-04 Mobile terminal network connection method Pending CN111263470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010144077.1A CN111263470A (en) 2020-03-04 2020-03-04 Mobile terminal network connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010144077.1A CN111263470A (en) 2020-03-04 2020-03-04 Mobile terminal network connection method

Publications (1)

Publication Number Publication Date
CN111263470A true CN111263470A (en) 2020-06-09

Family

ID=70954708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010144077.1A Pending CN111263470A (en) 2020-03-04 2020-03-04 Mobile terminal network connection method

Country Status (1)

Country Link
CN (1) CN111263470A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355458A (en) * 2011-09-16 2012-02-15 四川长虹电器股份有限公司 Method for increasing success rate of network access
US20140297854A1 (en) * 2011-12-13 2014-10-02 Motorola Mobility, Inc. Method and apparatus for adaptive network heartbeat message for tcp channel
CN106713454A (en) * 2016-12-22 2017-05-24 腾讯科技(深圳)有限公司 Network connection method and device
CN106792638A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 Method for connecting network and terminal
CN108616379A (en) * 2016-12-13 2018-10-02 南宁富桂精密工业有限公司 Manage the method and system of Automatic Configuration Server
CN110300071A (en) * 2019-06-03 2019-10-01 广东美的厨房电器制造有限公司 The server resource acquisition methods and relevant device of internet of things equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355458A (en) * 2011-09-16 2012-02-15 四川长虹电器股份有限公司 Method for increasing success rate of network access
US20140297854A1 (en) * 2011-12-13 2014-10-02 Motorola Mobility, Inc. Method and apparatus for adaptive network heartbeat message for tcp channel
CN108616379A (en) * 2016-12-13 2018-10-02 南宁富桂精密工业有限公司 Manage the method and system of Automatic Configuration Server
CN106792638A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 Method for connecting network and terminal
CN106713454A (en) * 2016-12-22 2017-05-24 腾讯科技(深圳)有限公司 Network connection method and device
CN110300071A (en) * 2019-06-03 2019-10-01 广东美的厨房电器制造有限公司 The server resource acquisition methods and relevant device of internet of things equipment

Similar Documents

Publication Publication Date Title
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
JP7127043B2 (en) Method and system for selection of access and mobility management functions in access network environment
CN102546135B (en) Active/standby server switched system and method
CN107360239A (en) A kind of client connection status detection method and system
CN113473576B (en) Roaming networking processing method and device, mobile terminal and readable storage medium
CN112532452B (en) Method, device, equipment and storage medium for switching main server and standby server of communication terminal
EP2597818A1 (en) Cluster management system and method
CN107948063B (en) Method for establishing aggregation link and access equipment
CN112788088B (en) Network communication control method of multi-edge cloud and edge operation system
CN112788089A (en) Network communication control method of multi-edge cloud, edge operation device and system
CN105516252A (en) TCP (Transmission Control Protocol) connection switching method, apparatus and system
CN113377702A (en) Method and device for starting two-node cluster, electronic equipment and storage medium
CN111263470A (en) Mobile terminal network connection method
WO2023229531A2 (en) Data transmission method and apparatus, terminal, and storage medium
CN103051484A (en) Method and system for processing session service and session border controller
CN110661836B (en) Message routing method, device and system, and storage medium
CN113746725B (en) Gateway selection method and device in multi-gateway environment and storage medium
US9491132B2 (en) System and method for providing push service for reducing network loads
CN112260971B (en) Fault tolerance method and device for network equipment system, computer equipment and storage medium
CN111338573B (en) Terminal data management method and system, server and communication terminal
CN114500237A (en) Communication method and system
CN107819648B (en) Method and device for detecting NETCONF connection of network configuration
CN111405025A (en) Data transmission method and device, transmission equipment and readable storage medium
CN111131496A (en) Communication transfer method, system, device and medium based on identification information
CN104954438A (en) Dialog processing method and dialog processing equipment based on PADT (pppoe active discovery terminate) message

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200609