CN108471369B - Network dialing method, device and storage medium - Google Patents

Network dialing method, device and storage medium Download PDF

Info

Publication number
CN108471369B
CN108471369B CN201810676885.5A CN201810676885A CN108471369B CN 108471369 B CN108471369 B CN 108471369B CN 201810676885 A CN201810676885 A CN 201810676885A CN 108471369 B CN108471369 B CN 108471369B
Authority
CN
China
Prior art keywords
server
dialing
client
dial
link
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.)
Active
Application number
CN201810676885.5A
Other languages
Chinese (zh)
Other versions
CN108471369A (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201810676885.5A priority Critical patent/CN108471369B/en
Publication of CN108471369A publication Critical patent/CN108471369A/en
Application granted granted Critical
Publication of CN108471369B publication Critical patent/CN108471369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Abstract

The embodiment of the invention discloses a network dialing method, a device and a storage medium, wherein the method comprises the following steps: when a session holding stage is started between a client and a dial-up server, a link detection request is sent to the dial-up server based on a set frequency, and when the number of the link detection requests sent to the dial-up server exceeds a threshold value, if answer information fed back by the dial-up server aiming at the link detection request or link detection information sent by the dial-up server is not received, a preset internet access task is executed; and finally, judging whether the link communication between the client and the dialing server is normal according to whether the preset internet surfing task execution is successful. By adopting the technical scheme, whether the current communication link is smooth or not can be accurately identified so as to ensure that the network of the client is normal.

Description

Network dialing method, device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network communication, in particular to a network dialing method, a network dialing device and a storage medium.
Background
PPP (Point to Point Protocol) is a link layer Protocol and implements Point to Point communication. A whole set of scheme is provided in PPP protocol to solve the problems of link establishment, maintenance, removal, upper layer protocol negotiation, authentication and the like. The PPP Protocol is simple, has user authentication capability, can solve IP (Internet Protocol) address allocation, and is one of the most widely applied protocols in the current wide area network. PPPoE (Point to Point Protocol over Ethernet) utilizes Ethernet to form a network with a large number of hosts, a client is connected to the network through a remote server, and the server realizes control and charging functions for the accessed client. Because PPPoE has the characteristics of high cost performance, safety and convenience in authentication and charging management and the like, the PPPoE is widely applied to a series of applications such as community networking or community networking construction. At present, the most widely used broadband access method in a home is PPPoE, and PPP is responsible for establishing a communication link between a client and an access server of an operator.
At present, after PPP dialing successfully establishes a connection, a client usually sends a link detection request to a server, the server feeds back a corresponding answer after receiving the link detection request to verify whether the link is smooth, if the client does not receive the answer fed back by the server within a certain time period, or the client sends a specified number of link detection requests and does not receive the answer fed back by the server, the link is considered to be obstructed, the client actively terminates the link, and a new connection is initiated again. Or, the PPP server may also send a link detection request to the client, and the client feeds back a corresponding answer after receiving the link detection request, and if the server has sent a certain number of link detection requests and has not received a corresponding answer all the time, the server actively terminates the link, and the client needs to initiate a new connection request again. However, in reality, the PPP/PPPoE dial-up network environment is complex, for example, the PPP/PPPoE dial-up network may include a cell dial-up network or a community dial-up network, and the dial-up network of a small operator is not standard enough, some dial-up servers actively send link detection requests at fixed intervals, some dial-up servers send link detection requests at non-fixed intervals, other dial-up servers do not send link detection requests, some dial-up servers do not feed back corresponding answers, some dial-up servers occasionally feed back corresponding answers, and other dial-up servers are restarted at regular time. If the irregular server is dealt with according to the conventional dialing method, two disadvantages exist: firstly, a link detection request is sent to a server at regular time, if the answer of the server is not received, the client side is frequently disconnected and reconnected with the irregular PPP/PPPoE dialing server, and the network is unavailable; secondly, the client does not send a link detection request, so that when the link is abnormal (for example, when the server is restarted regularly or the server does not actively terminate abnormal connection according to the specification), the client does not sense the abnormality and does not initiate a dialing request again, thereby causing the unavailability of the network.
Therefore, there is a need for improvements to existing dialing methods to accommodate complex dialing network environments.
Disclosure of Invention
The embodiment of the invention provides a network dialing method, a network dialing device and a storage medium, which can accurately identify whether a current communication link is smooth or not and ensure that a client network is normal.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a network dialing method, where the method includes:
when a session maintaining stage is started between a client and a dialing server, a link detection request is sent to the dialing server based on a set frequency;
when the number of the link detection requests sent to the dial-up server exceeds a threshold value, if answer information fed back by the dial-up server aiming at the link detection requests or link detection information sent by the dial-up server is not received, executing a preset internet access task;
if the preset internet-surfing task is successfully executed, determining that the link communication between the client and the dial-up server is normal, and maintaining the current link between the client and the dial-up server;
and if the preset internet task fails to be executed, determining that the link communication between the client and the dialing server is abnormal, terminating the current link between the client and the dialing server, and re-initiating a dialing request to the dialing server.
Further, the preset internet surfing task comprises:
DNS domain name resolution and/or NTP time synchronization.
Further, the executing a preset internet surfing task includes:
and acquiring a preset domain name from the DNS configuration file, and performing domain name resolution on the domain name.
Further, before performing domain name resolution on the domain name, the method further includes:
and clearing the DNS cache of the client.
Further, the number of the preset domain names is at least two;
correspondingly, if one of the preset at least two domain names is successfully analyzed, the link communication between the client and the dial-up server is determined to be normal.
Further, the method further comprises:
every time a link detection request is sent to the dial-up server, the count value of the timeout counter is incremented by 1.
Further, the method further comprises:
and if the link communication between the client and the dial-up server is determined to be normal, clearing the counting value of the overtime counter.
In a second aspect, an embodiment of the present invention provides a network dialing apparatus, where the apparatus includes:
the detection request sending module is used for sending a link detection request to the dialing server based on the set frequency when the session holding stage is started between the client and the dialing server;
the execution module is used for executing a preset internet access task if answer information fed back by the dialing server aiming at the link detection request or link detection information sent by the dialing server is not received when the number of the link detection requests sent to the dialing server exceeds a threshold value;
the maintaining module is used for determining that the link communication between the client and the dial-up server is normal if the preset internet-surfing task is successfully executed, and maintaining the current link between the client and the dial-up server;
and the termination module is used for determining that the link communication between the client and the dialing server is abnormal if the preset internet task fails to be executed, terminating the current link between the client and the dialing server and re-initiating a dialing request to the dialing server.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the network dialing method according to the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium containing computer-executable instructions which, when executed by a computer processor, implement a network dialing method as described in the first aspect above.
According to the network dialing method provided by the embodiment of the invention, when the number of the link detection requests sent to the dialing server exceeds the threshold value, the answer information fed back by the dialing server aiming at the link detection requests or the link detection information sent by the dialing server is still not received, a preset internet access task is executed, and the technical means of judging whether the link communication between the client and the dialing server is normal or not is carried out according to the execution result, so that the purpose of accurately identifying whether the current communication link is smooth or not is realized, and the network of the client is ensured to be normal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a network dialing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a network dialing method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a network dialing system according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network dialing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all 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 invention.
Example one
Fig. 1 is a flowchart illustrating a network dialing method according to an embodiment of the present invention. The network dialing method provided by the embodiment can be executed by a network dialing device. Wherein the method may be implemented by software and/or hardware, may be generally integrated in a client, and more particularly, the client may be a home router. Referring specifically to fig. 1, the method comprises the steps of:
110. and when the session maintaining stage is entered between the client and the dial-up server, a link detection request is sent to the dial-up server based on the set frequency.
The method comprises the steps that before a client side is connected with a PPP/PPPoE dial-up network, a connection request is sent to a PPP/PPPoE dial-up server, after the dial-up server receives the connection request, PPPoED/PPP protocol interaction is carried out between the client side and the dial-up server, after a Discovery phase (PPPoED: PPPoE Discovery), LCP link negotiation, an authentication phase and an NCP negotiation phase, PPP/PPPoE session connection is successfully established, and a session holding phase is carried out between the client side and the dial-up server. In the session maintaining stage, the client sends a link detection request to the dial-up server based on the set frequency to detect whether the current link communication is normal. Specifically, the link detection Request may be an LCP Echo Request, and if the current link communication is normal, the dial-up server may correspondingly feed back answer information LCP Echo Reply after receiving the LCP Echo Request, so that as long as the LCP Echo Reply fed back by the dial-up server is received, it may be determined that the link communication between the client and the dial-up server is normal.
120. When the number of the link detection requests sent to the dial-up server exceeds a threshold value, if the answer information fed back by the dial-up server aiming at the link detection requests or the link detection information sent by the dial-up server is not received, executing a preset internet access task.
At present, some dial servers have a link detection function, and after a session holding stage is performed between a client and the dial server, the dial server actively sends link detection information LCP Echo Request to the client, so that if the client only receives the LCP Echo Request sent by the dial server, it can also be determined that link communication between the client and the dial server is normal.
Because the actual dial-up network environment is complex, various irregular PPP/PPPoE dial-up servers managed by small operators exist, some irregular dial-up servers do not feed back corresponding answer information LCP Echo Reply to the client even if receiving a link detection Request LCP Echo Request from the client, and under the condition, the client cannot always receive the corresponding LCP Echo Reply, the link communication between the client and the dial-up server is determined to be abnormal, the client can disconnect the current link and resend the dial-up Request again, so that the client frequently disconnects the link and reconnects, and the client network is unavailable. In some cases, the LCP Echo Request sent by the client or the LCP Echo Reply fed back by the dial-up server is lost due to network interference and other factors, and the client may also consider that the current link communication is abnormal, resulting in a misjudgment.
In view of the above problems, in this embodiment, a certain number of link detection requests are sent to a dial-up server, so as to eliminate the situation of packet loss as much as possible, and if the number of link detection requests sent to the dial-up server exceeds a threshold value, a preset internet access task is executed if reply information fed back by the dial-up server in response to the link detection requests is not received, so as to eliminate an irregular PPP/PPPoE dial-up server managed by a small operator by the dial-up server.
Specifically, the preset internet surfing task comprises: DNS domain name resolution and/or NTP time synchronization.
Correspondingly, the executing of the preset internet surfing task comprises the following steps:
acquiring a preset domain name from a DNS configuration file, and performing domain name resolution on the domain name;
in order to eliminate the domain name abnormality, for example, the number of the preset domain names is at least two, and if one of the preset at least two domain names is successfully analyzed, it is determined that the link communication between the client and the dial-up server is normal.
Further, before performing domain name resolution on the domain name, the method further includes:
and clearing the DNS cache of the client to ensure that the domain name resolution is carried out by the occurrence of network communication behavior, rather than directly acquiring the IP address corresponding to the domain name from the local DNS cache of the client.
Typically, the preset domain name may bewww.qq.com、www.baidu.com、www.google.comOrwww.microsoft.com
130a, if the preset internet task is successfully executed, determining that the link communication between the client and the dial-up server is normal, and maintaining the current link between the client and the dial-up server.
If the domain name resolution is successful or the NTP time synchronization is successful, the client can perform normal network behavior, the current link between the client and the dial-up server is normally communicated, and the current link between the client and the dial-up server is continuously maintained without disconnection and reconnection, so that the network of the client is ensured to be normal.
130b, if the preset internet task fails to be executed, determining that the link communication between the client and the dialing server is abnormal, terminating the current link between the client and the dialing server, and re-initiating a dialing request to the dialing server.
If the domain name resolution fails or the domain name resolution fails and the NTP time synchronization also fails, the client side cannot perform normal network behaviors, and the current link communication between the client side and the dialing server is really abnormal, the current link between the client side and the dialing server is terminated, and a dialing request is initiated to the dialing server again.
The network dialing method provided by the embodiment can ensure that the link detection behaviors of the PPP/PPPoE dialing server which are adapted normally and abnormally are compatible under the complex PPP/PPPoE dialing network environment, ensure that various dialing networks can be normal, and can not only detect abnormal redialing of the link but also ensure that the normal link is prevented from being judged mistakenly as the abnormal link so as to cause the redialing of the normal network aiming at the server which does not respond to PPPLCP Echo Reply according to the standard, thereby realizing the purpose of accurately identifying whether the current communication link is unblocked so as to ensure that the client network is normal.
Example two
Fig. 2 is a flowchart illustrating a network dialing method according to a second embodiment of the present invention. On the basis of the above embodiments, the present embodiment provides an implementation manner in which the number of link detection requests transmitted to the dial server is counted by the timeout counter. The system can conveniently know the total number of the link detection requests sent to the dialing server by setting the timeout counter. Referring specifically to fig. 2, the method specifically includes the following steps:
210. and entering a session holding phase between the client and the dialing server.
220. And sending a link detection request to the dialing server based on the set frequency, and increasing the counting value of the timeout counter by 1 every time the link detection request is sent to the dialing server.
230. And when the count value in the overtime counter reaches 2, if the answer information fed back by the dialing server aiming at the link detection request is not received, executing a preset internet access task.
The threshold value reached by the count value in the timeout counter may be set according to actual conditions, and is not limited to 2, and in this embodiment, only 2 is used as an example for explanation, and is not limited thereto.
240. And when the count value in the overtime counter reaches 3, if the answer information fed back by the dialing server aiming at the link detection request is not received, judging the execution result of the internet surfing task.
The method comprises the steps that a preset internet access task needs to be executed for a certain time, a set frequency is still kept to send a link detection request to a dialing server in the period, when the count value in the timeout counter reaches 3, if answer information fed back by the dialing server according to the link detection request is not received, the execution result of the internet access task is judged, and if the answer information fed back by the dialing server according to the link detection request is received, the link communication between a client and the dialing server can be directly determined to be normal.
250a, if the preset internet task is successfully executed, determining that the link communication between the client and the dial-up server is normal, clearing the counting value of the timeout counter, returning to the step 220, and continuing the link detection process.
250b, if the preset internet task fails to be executed, determining that the link communication between the client and the dialing server is abnormal, terminating the current link between the client and the dialing server, and re-initiating a dialing request to the dialing server.
Correspondingly, referring to a schematic diagram of a network dialing system architecture shown in fig. 3, taking the preset internet surfing task as DNS domain name resolution and NTP time synchronization as an example, a link detection module of the client specifically includes a DNS detection module and an NTP detection module. When a session holding stage is started between a client and a dial-up server, a link detection module sends a link detection request to the dial-up server based on a set frequency, when the number of the link detection requests sent to the dial-up server exceeds a threshold value, if answer information fed back by the dial-up server aiming at the link detection request or link detection information sent by the dial-up server is not received yet, a DNS detection module and an NTP detection module are started, the DNS detection module acquires a preset typical domain name from a DNS configuration file to perform domain name resolution, the NTP detection module is responsible for realizing NTP time synchronization, and if any one of the DNS detection module and the NTP detection module succeeds, the link communication between the client and the dial-up server is determined to be normal.
In the network dialing method provided by the embodiment, in the detection of the LCP Echo Request and LCP Echo Reply, the DNS domain name resolution and the NTP time synchronization are combined, so that whether the current communication link is smooth is accurately identified, and the purpose of ensuring that the client network is normal is achieved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a network dialing apparatus according to a third embodiment of the present invention, referring to fig. 4, the apparatus includes: a detection request sending module 410, an execution module 420, a holding module 430, and a termination module 440;
the detection request sending module 410 is configured to send a link detection request to the dial-up server based on a set frequency when a session holding stage is entered between the client and the dial-up server;
an executing module 420, configured to, when the number of link detection requests sent to the dial-up server exceeds a threshold, execute a preset internet access task if answer information fed back by the dial-up server for the link detection requests or link detection information sent by the dial-up server is not received yet;
a holding module 430, configured to determine that link communication between the client and the dial-up server is normal if the preset internet access task is successfully executed, and hold a current link between the client and the dial-up server;
a termination module 440, configured to determine that link communication between the client and the dial-up server is abnormal if the preset internet task fails to be executed, terminate the current link between the client and the dial-up server, and reinitiate a dial request to the dial-up server.
According to the network dialing device provided by the embodiment, when the number of the link detection requests sent to the dialing server exceeds the threshold value, the answer information fed back by the dialing server aiming at the link detection requests or the link detection information sent by the dialing server is not received, a preset internet access task is executed, and whether the link communication between the client and the dialing server is normal or not is judged according to the execution result, so that the purpose of accurately identifying whether the current communication link is smooth or not is achieved, and the network of the client is normal is ensured.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. As shown in fig. 5, the electronic apparatus includes: a processor 670, memory 671, and computer programs stored on memory 671 and operable on processor 670; the number of the processors 670 may be one or more, and fig. 5 illustrates one processor 670 as an example; processor 670, when executing said computer program, implements a network dialing method as described in the previous embodiments. As shown in fig. 5, the electronic device may further include an input device 672 and an output device 673. The processor 670, memory 671, input device 672 and output device 673 may be connected by a bus or other means, such as by a bus connection in FIG. 5.
The memory 671 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a network dialing method in the embodiments of the present invention (for example, the detection request sending module 410, the execution module 420, or the holding module 430 in the network dialing apparatus). The processor 670 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 671, so as to implement a network dialing method as described above.
The memory 671 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, and an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. In addition, the memory 671 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 671 may further include memory located remotely from the processor 670, which may be connected to electronic devices/storage media through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 672 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus. The output device 673 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a network dialing method, including:
when a session maintaining stage is started between a client and a dialing server, a link detection request is sent to the dialing server based on a set frequency;
when the number of the link detection requests sent to the dial-up server exceeds a threshold value, if answer information fed back by the dial-up server aiming at the link detection requests is not received, executing a preset internet surfing task;
if the preset internet-surfing task is successfully executed, determining that the link communication between the client and the dial-up server is normal, and maintaining the current link between the client and the dial-up server;
and if the preset internet task fails to be executed, determining that the link communication between the client and the dialing server is abnormal, terminating the current link between the client and the dialing server, and re-initiating a dialing request to the dialing server.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in a network dialing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a storage medium, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for network dialing, the method comprising:
when a session maintaining stage is started between a client and a dialing server, a link detection request is sent to the dialing server based on a set frequency;
when the number of the link detection requests sent to the dial-up server exceeds a threshold value, if answer information fed back by the dial-up server aiming at the link detection requests or link detection information sent by the dial-up server is not received, executing a preset internet access task;
if the preset internet-surfing task is successfully executed, determining that the link communication between the client and the dial-up server is normal, and maintaining the current link between the client and the dial-up server;
and if the preset internet task fails to be executed, determining that the link communication between the client and the dialing server is abnormal, terminating the current link between the client and the dialing server, and re-initiating a dialing request to the dialing server.
2. The method of claim 1, wherein the predetermined internet surfing task comprises:
DNS domain name resolution and/or NTP time synchronization.
3. The method of claim 2, wherein the performing the predetermined internet surfing task comprises:
and acquiring a preset domain name from the DNS configuration file, and performing domain name resolution on the domain name.
4. The method of claim 3, wherein prior to performing domain name resolution on the domain name, the method further comprises:
and clearing the DNS cache of the client.
5. The method of claim 2, wherein the number of preset domain names is at least two;
correspondingly, if one of the preset at least two domain names is successfully analyzed, the link communication between the client and the dial-up server is determined to be normal.
6. The method of any one of claims 1-5, further comprising:
every time a link detection request is sent to the dial-up server, the count value of the timeout counter is incremented by 1.
7. The method of claim 6, further comprising:
and if the link communication between the client and the dial-up server is determined to be normal, clearing the counting value of the overtime counter.
8. A network dialing apparatus, the apparatus comprising:
the detection request sending module is used for sending a link detection request to the dialing server based on the set frequency when the session holding stage is started between the client and the dialing server;
the execution module is used for executing a preset internet access task if answer information fed back by the dialing server aiming at the link detection request or link detection information sent by the dialing server is not received when the number of the link detection requests sent to the dialing server exceeds a threshold value;
the maintaining module is used for determining that the link communication between the client and the dial-up server is normal if the preset internet-surfing task is successfully executed, and maintaining the current link between the client and the dial-up server;
and the termination module is used for determining that the link communication between the client and the dialing server is abnormal if the preset internet task fails to be executed, terminating the current link between the client and the dialing server and re-initiating a dialing request to the dialing server.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the network dialing method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium containing computer-executable instructions which, when executed by a computer processor, implement the network dialing method of any of claims 1-7.
CN201810676885.5A 2018-06-27 2018-06-27 Network dialing method, device and storage medium Active CN108471369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810676885.5A CN108471369B (en) 2018-06-27 2018-06-27 Network dialing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810676885.5A CN108471369B (en) 2018-06-27 2018-06-27 Network dialing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108471369A CN108471369A (en) 2018-08-31
CN108471369B true CN108471369B (en) 2021-01-15

Family

ID=63259788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810676885.5A Active CN108471369B (en) 2018-06-27 2018-06-27 Network dialing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108471369B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887161B (en) * 2019-11-29 2024-02-09 西安诺瓦星云科技股份有限公司 Mobile network detection method and device
CN111371641B (en) * 2020-02-26 2021-11-16 RealMe重庆移动通信有限公司 Network detection method and related product
CN111385167B (en) * 2020-03-02 2024-01-23 深圳科绪技术有限公司 Network connection recovery method, device, computer device and storage medium
CN111914149A (en) * 2020-05-21 2020-11-10 北京大米科技有限公司 Request processing method and device, storage medium and electronic equipment
CN112583656B (en) * 2020-11-10 2022-10-04 深圳市有方科技股份有限公司 Debugging method and device based on LWIP user mode PPP communication function
CN112822705B (en) * 2021-01-14 2022-09-20 深圳震有科技股份有限公司 VPN tunnel self-recovery method and system in 5G network
CN114928833A (en) * 2022-05-16 2022-08-19 宁波三星医疗电气股份有限公司 Network link login method and device, power terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1349358A2 (en) * 1997-08-13 2003-10-01 Mediaring.com Ltd. Method and apparatus for making a phone call connection over an internet connection
CN1681254A (en) * 2004-04-08 2005-10-12 华为技术有限公司 Maintaining method of Ethernet link state
CN1808998A (en) * 2006-01-20 2006-07-26 北京朗通环球科技有限公司 Method of detection and maintenance of PPP link
CN1983989A (en) * 2006-04-28 2007-06-20 华为技术有限公司 Method and system for monitoring wireless link state
CN102624568A (en) * 2012-04-11 2012-08-01 中兴通讯股份有限公司 Method and device for noticing failure state of side link in access circuit
CN103024226A (en) * 2012-12-10 2013-04-03 深圳市共进电子股份有限公司 Data communication method and communication terminal
CN104683189A (en) * 2015-03-25 2015-06-03 杭州华三通信技术有限公司 Keep-alive detection method and device of PPP sessions
CN107342912A (en) * 2017-04-28 2017-11-10 北京极科极客科技有限公司 A kind of method and system for detecting ppp link state

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2446473A1 (en) * 2001-05-08 2003-01-03 Nortel Networks Limited Identification of unused resources in a packet data network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1349358A2 (en) * 1997-08-13 2003-10-01 Mediaring.com Ltd. Method and apparatus for making a phone call connection over an internet connection
CN1681254A (en) * 2004-04-08 2005-10-12 华为技术有限公司 Maintaining method of Ethernet link state
CN1808998A (en) * 2006-01-20 2006-07-26 北京朗通环球科技有限公司 Method of detection and maintenance of PPP link
CN1983989A (en) * 2006-04-28 2007-06-20 华为技术有限公司 Method and system for monitoring wireless link state
CN102624568A (en) * 2012-04-11 2012-08-01 中兴通讯股份有限公司 Method and device for noticing failure state of side link in access circuit
CN103024226A (en) * 2012-12-10 2013-04-03 深圳市共进电子股份有限公司 Data communication method and communication terminal
CN104683189A (en) * 2015-03-25 2015-06-03 杭州华三通信技术有限公司 Keep-alive detection method and device of PPP sessions
CN107342912A (en) * 2017-04-28 2017-11-10 北京极科极客科技有限公司 A kind of method and system for detecting ppp link state

Also Published As

Publication number Publication date
CN108471369A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
CN108471369B (en) Network dialing method, device and storage medium
US8260916B2 (en) Network server and method of discovery of a network node
US11171875B2 (en) Systems and methods of communications network failure detection and remediation utilizing link probes
EP3300331B1 (en) Response method, apparatus and system in virtual network computing authentication, and proxy server
US11516177B1 (en) Detecting and remediating non-responsive customer premise equipment
US8086732B1 (en) Method and apparatus for rate limiting client requests
WO2010003317A1 (en) Device, method and system for preventing web page from being tampered
US20060059552A1 (en) Restricting communication service
WO2008141584A1 (en) Message processing method, system, and equipment
CN112152828B (en) Game acceleration method and device, VPN terminal and storage medium
EP3337129A1 (en) Dynamic allocation of a signal receiver for dissemination of threat information
CN114629822A (en) Link detection method and device, electronic equipment and storage medium
WO2018157105A1 (en) Automatic recovery in remote management services
CN110380981B (en) Flow distribution method and equipment
CN107743079B (en) Line detection method, apparatus and computer-readable storage medium
CN115941541A (en) Method, device, network equipment and readable storage medium for detecting network connection
JP6870386B2 (en) Malware unauthorized communication countermeasure system and method
US7817638B2 (en) Method for promptly redialing a broadband access server
KR100909115B1 (en) Network automatic login system
CN103856571A (en) Self-adaptive network connection method and system
US9379939B2 (en) Self troubleshooting home router
EP3200433A1 (en) Ipv6 address management method, device and terminal
CN107332649B (en) Off-line method of 802.1X client and 802.1X system
CN111258739A (en) Server process updating method, device, server and medium
CN106375224B (en) Router and method for network connection by using same

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