CN103368794A - ppp link detection method - Google Patents

ppp link detection method Download PDF

Info

Publication number
CN103368794A
CN103368794A CN2013103260171A CN201310326017A CN103368794A CN 103368794 A CN103368794 A CN 103368794A CN 2013103260171 A CN2013103260171 A CN 2013103260171A CN 201310326017 A CN201310326017 A CN 201310326017A CN 103368794 A CN103368794 A CN 103368794A
Authority
CN
China
Prior art keywords
message
ppp
time interval
interval
network environment
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
CN2013103260171A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN2013103260171A priority Critical patent/CN103368794A/en
Publication of CN103368794A publication Critical patent/CN103368794A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a ppp link detection method in which the echo message sending time interval is set to be M when the network environment period is assumed to be stable. The method comprises the following steps of: 1, sending echo messages by a client side at intervals, setting the interval between the current message sending time and the next message sending time to be T[n], and assuming the current T[n]=M; 2, judging that T[n+1]=T[n]+N if no answer messages are received within the time interval Tn; 3, judging that a ppp link is disconnected if the step 2 is continuously repeated X times; and 4, judging that T[n+1]=M if no answer messages are received within the time interval T[n]. After the method disclosed by the invention is adopted, the client side continuously prolongs the message sending interval by using a backoff algorithm if not receiving a message answer within the message sending time interval M when the network environment period is stable until the message answer is received, and a ppp dialing program can be kept online, so that the problem that the ppp dialing program is disconnected frequently when the network environment period is unstable is solved.

Description

A kind of ppp chain circuit detecting method
Technical field
The present invention relates to the network system technical field, particularly relate to a kind of ppp chain circuit detecting method.
Background technology
In the application of broadband cat, majority is to carry out dial-up connection with ppp, thereby realizes function of surfing the Net, and long-time stable not the going offline of ppp seems very important, after the ppp dial-up success is generally speaking to keep by the echo message not go offline.
Consult Fig. 1, the echo message periodically sends when being grade, and namely every certain interval of time sends, and when the network traffics generating period was unstable, the echo message may all can be dropped at every turn, can cause like this ppp dial-up program to go offline.
Summary of the invention
Based on this, be necessary to provide a kind of ppp chain circuit detecting method that solves network traffics generating period dial-up program disconnection when unstable.
A kind of ppp chain circuit detecting method comprises:
When supposing the network environment cycle stability, the echo packet sending intervals is M;
Step 1: the client interval sends the echo message, and current transmission message and the time interval that next time sends message are T[n], suppose current T[n]=M;
Step 2: if Tn does not receive response message in the time interval, T[n+1 then]=T[n]+N;
Step 3: if step 2 repeats X time continuously, judge that then the ppp link goes offline;
Step 4: if T[n] receive response message, then T[n+1 in the time interval]=M.
Further, N=T[n]/2;
Further, described X is 3.
After adopting method of the present invention, do not receive in the packet sending intervals M when the network environment cycle stability that message replys, client is used back off algorithm, constantly increase message and send the interval, reply until receive message, it is online to keep the ppp dial-up program, has solved the network environment cycle when unstable, the problem that the ppp dial-up program frequently goes offline.
Description of drawings
Fig. 1 is prior art flow chart of the present invention;
Fig. 2 is an embodiment flow chart of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is described in more detail.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Consult Fig. 2, the ppp chain circuit detecting method of an embodiment provided by the invention comprises:
When supposing the network environment cycle stability, the echo packet sending intervals is M.In the prior art, all interval M sends the echo message, waits for that namely the time that receives response message is M, if do not receive several times continuously response message, then the PPP dial-up program goes offline.This situation causes local side to send response message easily, and owing to the network environment cycle is unstable, and cause client in time interval M, not received, thus make unnecessary the going offline of ppp dial-up program.
Step 1: the client interval sends the echo message, and current transmission message and the time interval that next time sends message are T[n], suppose current T[n]=M, and M is echo message routine blanking time;
Being appreciated that after sending the echo message T[n is arranged] the long time receives response message.In the present embodiment, M=30 second.
Step 2: if at T[n] do not receive response message in the time interval, T[n+1 then]=T[n]+N;
In the present embodiment, N=T[n]/2, i.e. N=15 second is at T[n]=M=30 do not receive response message, then T[n+1 in second]=T[n]+N=45 second.
Step 3: if step 2 repeats X time continuously, judge that then the ppp link goes offline;
If X=2, i.e. T[3 in the drawings]=67.5 ppp of place judge that the ppp link goes offline, X can be according to need not the arranging of network environment and application voluntarily, the like.
Step 4: if T[n] receive response message, then T[n+1 in the time interval]=M.
Among the figure, T[3] the echo message locating to send is at T[3]=T[2]+T[2]/2=67.5 receives response message in second, then recovers T[4]=M=30 second.Herein, T[3] when locating to send the echo message, the time that next time sends the echo message is just known, be T[3]==T[2]+T[2]/2=67.5, just next time time that next time sends message will be by T[3] locate to send the echo message and whether can in the official hour interval, receive decision, the like, do not giving unnecessary details at this.
Among Fig. 2, X is more than or equal to 3, if X is less than 3, then at T[3] locate or just judge that the ppp link goes offline before, just wait less than to T[4] recover to send in 30 seconds the generation at echo message interval, so the value of X will rationally be set, integrated network environment etc. factor avoids unnecessary ppp link to go offline.
After adopting method of the present invention, do not receive in the packet sending intervals M when the network environment cycle stability that message replys, client is used back off algorithm, constantly increase message and send the interval, reply until receive message, it is online to keep the ppp dial-up program, has solved the network environment cycle when unstable, the problem that the ppp dial-up program frequently goes offline.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (3)

1. a ppp chain circuit detecting method is characterized in that, comprising:
When supposing the network environment cycle stability, the echo packet sending intervals is M;
Step 1: the client interval sends the echo message, and current transmission message and the time interval that next time sends message are T[n], suppose current T[n]=M;
Step 2: if Tn does not receive response message in the time interval, T[n+1 then]=T[n]+N;
Step 3: if step 2 repeats X time continuously, judge that then the ppp link goes offline;
Step 4: if T[n] receive response message, then T[n+1 in the time interval]=M.
2. ppp chain circuit detecting method according to claim 1 is characterized in that N=T[n]/2.
3. ppp chain circuit detecting method according to claim 1 is characterized in that, described X is 3.
CN2013103260171A 2013-07-30 2013-07-30 ppp link detection method Pending CN103368794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103260171A CN103368794A (en) 2013-07-30 2013-07-30 ppp link detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103260171A CN103368794A (en) 2013-07-30 2013-07-30 ppp link detection method

Publications (1)

Publication Number Publication Date
CN103368794A true CN103368794A (en) 2013-10-23

Family

ID=49369378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103260171A Pending CN103368794A (en) 2013-07-30 2013-07-30 ppp link detection method

Country Status (1)

Country Link
CN (1) CN103368794A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683189A (en) * 2015-03-25 2015-06-03 杭州华三通信技术有限公司 Keep-alive detection method and device of PPP sessions

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009573A1 (en) * 2001-07-04 2003-01-09 Nec Corporation PPP terminating equipment, network equipment and method of responding to LCP echo requirement
CN1808998A (en) * 2006-01-20 2006-07-26 北京朗通环球科技有限公司 Method of detection and maintenance of PPP link
CN1956444A (en) * 2005-10-24 2007-05-02 华为技术有限公司 Method and device for transmitting handshake message in communication system
CN101345663A (en) * 2008-08-22 2009-01-14 杭州华三通信技术有限公司 Heartbeat detection method and heartbeat detection apparatus
CN102394796A (en) * 2011-11-04 2012-03-28 华为技术有限公司 Link time delay detection method, source terminal, destination terminal and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009573A1 (en) * 2001-07-04 2003-01-09 Nec Corporation PPP terminating equipment, network equipment and method of responding to LCP echo requirement
CN1956444A (en) * 2005-10-24 2007-05-02 华为技术有限公司 Method and device for transmitting handshake message in communication system
CN1808998A (en) * 2006-01-20 2006-07-26 北京朗通环球科技有限公司 Method of detection and maintenance of PPP link
CN101345663A (en) * 2008-08-22 2009-01-14 杭州华三通信技术有限公司 Heartbeat detection method and heartbeat detection apparatus
CN102394796A (en) * 2011-11-04 2012-03-28 华为技术有限公司 Link time delay detection method, source terminal, destination terminal and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683189A (en) * 2015-03-25 2015-06-03 杭州华三通信技术有限公司 Keep-alive detection method and device of PPP sessions
CN104683189B (en) * 2015-03-25 2018-04-20 新华三技术有限公司 The keep-alive detection method and device of a kind of point to point protocol session

Similar Documents

Publication Publication Date Title
US11711748B2 (en) Method and apparatus of communication between terminal and base station, and network access method and apparatus of a terminal
US20130121176A1 (en) Communication protocol for energy-harvesting devices
HK1145371A1 (en) Method and device for transmitting data in a network
CN102739560B (en) Instant communication method, system and device
CN107276113B (en) Solar panel disconnect and reactivation system
CN102523178A (en) Push-based heartbeat message sending method and terminal
RU2008132454A (en) FORECASTED CONTROL SYSTEM FOR THE RESPONSE OF A FIELD DEVICE ON A WIRELESS NETWORK
CN104412640A (en) Higher layer compression with lower layer signaling
WO2012016680A8 (en) Transmission power control in a multi-carrier wireless communication system
CN102413152B (en) A kind of method and server sending information to terminal
WO2012138107A3 (en) Messaging over a network
CN103581950A (en) Electronic device and heartbeat message transmitting method and system
WO2008065532A3 (en) Communication system
CN104579746A (en) Method and device for controlling dual-link transmission
CN102740337A (en) Remote maintenance method of base station and system thereof
CN107567107A (en) A kind of method and device for transmitting data
CN107484232A (en) Message method, system, the network equipment and readable storage medium storing program for executing
CN110908872A (en) Server state detection method and system
CN103118387B (en) A kind of thin AP redundancy connection control method of active-standby mode
WO2009086199A3 (en) Method and system for managing the reception of messages in a communication network
CN105281919A (en) Remote wakening method, server and client terminal
CN102355346A (en) Validity judgment method of clock synchronous source device and device
CN103560947A (en) Method and device for avoiding vibration of neighboring relationship of intermediate system
CN105578487B (en) A kind of monitoring method and terminal, base station of terminal disconnection
CN104243199A (en) Data transmission method and protection device of packet transport network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20131023