CN100349424C - Detecting method for Link routine state - Google Patents

Detecting method for Link routine state Download PDF

Info

Publication number
CN100349424C
CN100349424C CNB031499104A CN03149910A CN100349424C CN 100349424 C CN100349424 C CN 100349424C CN B031499104 A CNB031499104 A CN B031499104A CN 03149910 A CN03149910 A CN 03149910A CN 100349424 C CN100349424 C CN 100349424C
Authority
CN
China
Prior art keywords
user
message
link
state
response
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.)
Expired - Fee Related
Application number
CNB031499104A
Other languages
Chinese (zh)
Other versions
CN1578234A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031499104A priority Critical patent/CN100349424C/en
Publication of CN1578234A publication Critical patent/CN1578234A/en
Application granted granted Critical
Publication of CN100349424C publication Critical patent/CN100349424C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention discloses a method for detecting a link state, which comprises: A) setting one accelerating module, receiving a link detecting message from a user by the accelerating module; B) recording the receiving state of the link detecting message of the user, judging whether the link detecting message is a user request responding message or not, if true, returning the user request responding message to the user, executing step C, else, directly executing step C; C) determining the link state by a control module according to the receiving state of the link detecting message of the user. The present invention can effectively reduce the load of a CPU when an access server carries out link detection, so that the performance of a system is improved, and the robustness of the system is enhanced.

Description

A kind of detection method of Link State
Technical field
The present invention relates to access technology, specifically, relate to the detection method of Link State between peer-entities.
Background technology
In the access service of Internet, access server and each insert the Link State of safeguarding each bar link between the user according to access protocol.Access protocol can be point-to-point (PPP) agreement or various bearing protocol, for example, is carried on asynchronous transmission mode point to point (PPP over ATM) agreement, is carried on Ethernet point-to-point (PPP over Ethernet) agreement.
When the user is linked into network by access server, between user and access server, set up link.After link establishment well, detect the state of link as follows according to access protocol: server and user send out the request back message using at a certain time interval mutually, and after receiving the other side's request back message using, response message is responded in one of loopback.If a side of link does not receive the other side's request back message using for a long time, perhaps wrong when the response response message of the other side's response, perhaps not response thinks that then fault has taken place link.Either party of link can cause the dismounting of link when thinking link occurs fault.
The realization principle of the method for the state of above-mentioned detection link as shown in Figure 1.Access server comprises control module and data forwarding processing module, control module is realized by software usually, in order to finish to the control of equipment and the processing of control message, be responsible for the forwarding and the maintenance of information such as various user profile, converting route, Link State, therefore request back message using and the response response message that is above-mentioned detection Link State from all the control messages in the user's message, link detection message all given the control module processing.The data forwarding processing module is realized by hardware usually, utilizes above-mentioned information to finish the forwarding of user data message.
Along with the increase of demand, the number of users that access server inserted is more and more, and concurrent number of users may be up to thousands of.The control module of access server need detect thousands of links simultaneously, receives and dispatches a large amount of messages, has greatly increased the load of CPU.In case CPU can not in time send the request back message using because load is excessive, in the time of can not in time responding user's request back message using, will cause a large number of users link to be removed, thereby cause user's interruption of surfing the Net.
Summary of the invention
The object of the present invention is to provide a kind of detection method of Link State, to reduce the load of access server CPU when the maintenance link.
The present invention is achieved through the following technical solutions:
A kind of detection method of Link State is provided with an accelerating module that is independent of control module hardware of living in, and this method may further comprise the steps:
A) the accelerating module reception is asked back message using and user response response message from user's user;
B) whether for a long time the expression of writing down this user's correspondence does not receive the accepting state that the user asks back message using or user response response message, if what receive is that the user asks back message using, then return the response response message to this user, execution in step C, if what receive is the user response response message, then direct execution in step C;
C) control module reads the accepting state of described record, determines the state of respective links according to the accepting state that reads.
Described step C further comprises, described accepting state by each user's correspondence of accelerating module periodic refreshing, control module judges whether that the user who does not receive from the user for a long time asks back message using or user response response message, if, judge that link work is undesired, otherwise, judge that link is normal.
Preferably, steps A further comprises, receive after the user asks back message using or user response response message, ask to extract user profile back message using or the user response response message from the user, whether the link of checking the user according to user profile is in open mode, if execution in step B then, otherwise abandon the message that is received.
Preferably, comprise further between steps A and the B whether the message that judge to receive meets the access protocol requirement, if, execution in step B then, otherwise abandon the message that is received.
Described recorder state comprises that it is a count value that described accepting state is set.
Described periodic refreshing accepting state comprises, periodically count value is successively decreased, and describedly judges whether that the user who does not receive from the user for a long time asks back message using or user response response message to comprise, judges whether count value arrives predetermined threshold value.
Described step C further comprises, sends the request back message using by control module to the user.
Described accepting state is stored in user status table.
The present invention compared with prior art, have following characteristics: prior art receiving-transmitting chain detection messages all is to be finished by the software that operates on the control module CPU, data message of every reception, CPU just need read a complete data message from external equipment, and this process need take hundreds of instruction cycles; And the present invention is by accelerating module receiving-transmitting chain detection messages independently, and the CPU of control module only needs know from the message accepting state whether link is normal, needn't read whole data message, only need take several instruction cycles of CPU to the processing of each data message.Therefore, the load of CPU when the present invention can effectively reduce access server and carries out link detecting, thus improve the performance of system, the robustness of enhanced system.
Description of drawings
Fig. 1 is a prior art link detecting schematic diagram.
Fig. 2 is a link detecting schematic diagram of the present invention.
Fig. 3 handles the flow chart of message for accelerating module.
Embodiment
Because in the prior art, control module is not only handled the control message from the user in the access server, and handle the link detection message between access server and the user.In order to reduce the CPU burden of control module in the access server, the present invention comes the handle link detection messages by an accelerating module, and control module judges by the link detection message accepting state of record whether link is normal.Below be that example describes the present invention in detail with the ppp link state-detection.
Referring to shown in Figure 2, Fig. 2 is principle of the invention figure.Accelerating module receives the request back message using from the user, it is the LCP-Echo-Request message, simultaneously to the LCP-Echo-Request message, can return the response response message, it is the LCP-Echo-Reply message, further, can also receive user's LCP-Echo-Reply message, accelerating module receives the laggard line item of above-mentioned message.This accelerating module available hardware realizes that also available software realizes, preferably, for reducing the burden of CPU, adopts hardware to realize.A control module processing controls message also can send the LCP-Echo-Request message of access server to the user according to the needs of using, and for example, sends termly by ppp protocol, sends in also can be at the cpu load of control module lighter.
Accepting state for ease of record and inquiry link detection message, set up a user status table, the number of record is consistent with the number of users of access in this table, the corresponding user of each record, contents in table comprises: be used to indicate the current Link State item of opening (opened) state that whether is in of ppp link of user's correspondence, be used to indicate the LCP-Echo-Request that whether receives respective user recently or the link detection message accepting state item of LCP-Echo-Reply message.For example, " Link State " in the list item uses a bit, and ' 1 ' expression link is in the opened state, and ' 0 ' expression link is in the closed state; " link detection message accepting state " do not receive user's LCP-Echo-Request or LCP-Echo-Reply message recently with two bits, " 00 " expression, and other value representations received.All the elements of list item all will be by clear 0 when system reset is initialized.
Referring to shown in Figure 3, Fig. 3 handles the flow chart of message for accelerating module.Its concrete steps are as follows:
Step 301, in order to guarantee that user status table reflects the information that is write down in real time, user status table is refreshed, when refresh time then, execution in step 302, whether " the link detection message accepting state " of checking each user in the user status table is " 00 ", if certain user's is not " 00 ", then " the link detection message accepting state " with this user in the user status table subtracts 1; To " link detection message accepting state " be " 00 " do not make any modification, so circulation, all records are refreshed in user status table.When refresh time not then, then execution in step 303;
Step 303 judges by accelerating module whether the message of being received is link detection message, if then execution in step 304, otherwise end process;
Step 304 is extracted user profile from link detection message, and searches user status table according to user profile;
Step 305 judges according to the Link State item of user status table whether user link is in open mode, if execution in step 306 then, otherwise abandon this message;
Step 306 judges whether link detection message meets the requirement of PPP access protocol, if execution in step 307 then, otherwise abandon this message;
Step 307, the link detection message accepting state of this user in the user status table is provided with a count value, judge whether not receive for a long time link detection message with variation by count value, for example, it is 11 that the link detection message accepting state is set, and when whenever once refreshing, the link detection message accepting state subtracts 1, when the link detection message accepting state is 00, then show reducing to the link detection message that did not receive the user in 3 refresh cycles of 00 from 11;
Step 308 judges whether the link detection message of receiving is user's LCP-Echo-Request message, if, then act on behalf of control module and send the LCP-Echo-Reply message to the user, otherwise end process.
Because the foundation and the maintenance of ppp link realize by state machine, according to the RFC1661 agreement, a state machine comprises 10 states, control module is that each user (corresponding user's ppp link) distributes a state machine, when the state machine of user's correspondence is in the Opened state, the Link State item is set to ' 1 ', otherwise is set to ' 0 ', and the state machine result record according to user's ppp link correspondence is touched in the Link State item control of above-mentioned user status table.
Control module periodically reads link detection message accepting state in the user status table, judge whether corresponding user does not send LCP-Echo-Request and LCP-Echo-Reply message to access server for a long time, if, judge that then link is undesired, and determine whether and to send the LCP-Echo-Request message to the user, perhaps whether need to remove user's ppp link, otherwise judge that link is normal.
The above only is preferred embodiment of the present invention, and in order to restriction the present invention, the present invention not can be applicable to other detections yet.Whether for example, utilize ARP bag (or PING bag) to detect a user online; Under the Portal authentication mode, server is to user's detection; Detect online data (Detecting Data Plane Liveliness in MPLS) in the mpls protocol draft, it is identical that principle detects with this ppp link.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, a kind of detection method of Link State is characterized in that, an accelerating module that is independent of control module hardware of living in is set, and this method may further comprise the steps:
A) the accelerating module reception is asked back message using and user response response message from user's user;
B) whether for a long time the expression of writing down this user's correspondence does not receive the accepting state that the user asks back message using or user response response message, if what receive is that the user asks back message using, then return the response response message to this user, execution in step C, if what receive is the user response response message, then direct execution in step C;
C) control module reads the accepting state of described record, determines the state of respective links according to the accepting state that reads.
2, detection method as claimed in claim 1, it is characterized in that, described step C further comprises, described accepting state by each user's correspondence of accelerating module periodic refreshing, control module judges whether that according to described accepting state the user who does not receive from the user for a long time asks back message using or user response response message, if judge that link work is undesired, otherwise, judge that link is normal.
3, detection method as claimed in claim 1 or 2, it is characterized in that, steps A further comprises, receive after the user asks back message using or user response response message, ask to extract user profile back message using or the user response response message from the user, whether the link of checking the user according to user profile is in open mode, if execution in step B then, otherwise abandon the message that is received.
4, detection method as claimed in claim 1 or 2 is characterized in that, further comprises between steps A and the B, and whether the message that judge to receive meets the access protocol requirement, if, execution in step B then, otherwise abandon the message that is received.
5, detection method as claimed in claim 2 is characterized in that, described recorder state comprises that it is a count value that described accepting state is set.
6, detection method as claimed in claim 5 is characterized in that,
Described periodic refreshing accepting state comprises, periodically count value successively decreased,
Describedly judge whether that the user who does not receive from the user for a long time asks back message using or user response response message to comprise, judges whether count value arrives predetermined threshold value.
7, detection method as claimed in claim 1 is characterized in that, described step C further comprises, sends the request back message using by control module to the user as required.
8, detection method as claimed in claim 1 is characterized in that, described accepting state is stored in user status table.
CNB031499104A 2003-07-29 2003-07-29 Detecting method for Link routine state Expired - Fee Related CN100349424C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031499104A CN100349424C (en) 2003-07-29 2003-07-29 Detecting method for Link routine state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031499104A CN100349424C (en) 2003-07-29 2003-07-29 Detecting method for Link routine state

Publications (2)

Publication Number Publication Date
CN1578234A CN1578234A (en) 2005-02-09
CN100349424C true CN100349424C (en) 2007-11-14

Family

ID=34579701

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031499104A Expired - Fee Related CN100349424C (en) 2003-07-29 2003-07-29 Detecting method for Link routine state

Country Status (1)

Country Link
CN (1) CN100349424C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909472B (en) * 2005-08-05 2010-05-05 华为技术有限公司 Status detecting method based on main and standby POS interface
CN100558051C (en) 2005-08-10 2009-11-04 华为技术有限公司 Two-way conversion link is carried out the method for fault detect
CN100446470C (en) * 2006-01-19 2008-12-24 华为技术有限公司 Method for realizing operation and maintenance of wind-band ethernet network
CN101052037B (en) * 2006-05-10 2010-08-18 华为技术有限公司 Conversation management control method of IP bearing net
CN101325793B (en) * 2007-06-13 2012-07-04 中兴通讯股份有限公司 Method for detecting limitation link in wireless communication system
CN101166081B (en) * 2007-08-30 2010-08-18 杭州华三通信技术有限公司 A method, system and device for detecting link polarity
CN104683189B (en) * 2015-03-25 2018-04-20 新华三技术有限公司 The keep-alive detection method and device of a kind of point to point protocol session
CN106412968B (en) * 2015-07-31 2020-03-17 中国移动通信集团公司 Method, device and terminal for collecting wireless link information
CN109104338B (en) * 2018-11-12 2020-10-16 北京天融信网络安全技术有限公司 Link intelligent detection method, storage medium and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1148921A (en) * 1994-05-25 1997-04-30 诺基亚电信公司 Method for monitoring the condition of interconnection network
US20020006114A1 (en) * 2000-07-12 2002-01-17 Frode Bjelland Communication management in networks having split control planes and user planes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1148921A (en) * 1994-05-25 1997-04-30 诺基亚电信公司 Method for monitoring the condition of interconnection network
US20020006114A1 (en) * 2000-07-12 2002-01-17 Frode Bjelland Communication management in networks having split control planes and user planes

Also Published As

Publication number Publication date
CN1578234A (en) 2005-02-09

Similar Documents

Publication Publication Date Title
US7254632B2 (en) Apparatus and method for pattern matching in text based protocol
CN100349424C (en) Detecting method for Link routine state
CN101505276B (en) Network application flow recognition method and apparatus and network application flow management apparatus
US4787083A (en) Bus-method communication network system capable of seizing transmission right by using timer means at each station
CN100466540C (en) State detection method based on main and backup Ethernet interface
CN101325554B (en) Method for establishing route, forwarding chip and three-layer switchboard
US20050165885A1 (en) Method and apparatus for forwarding data packets addressed to a cluster servers
CN112822167A (en) Abnormal TLS encrypted traffic detection method and system
CN106341338A (en) Message forwarding method and apparatus thereof
CN100466583C (en) Fast ring network method against attack based on RRPP, apparatus and system
CN102521356B (en) Regular expression matching equipment and method on basis of deterministic finite automaton
CN107066575A (en) Method and its system for realizing data base read-write load balancing
CN102045247A (en) Message processing method and device based on Snort rule set
CN101184089A (en) Port and content interweaved detection based protocol identifying method
CN101539765B (en) High-speed acquisition method and system of industrial process data
JP2002374251A (en) Network monitoring system, data amount count method used for the same, and program thereof
US6553421B1 (en) Method and system for broadcast management in a data communication network that permits namesharing
CN102143151B (en) Deep packet inspection based protocol packet spanning inspection method and deep packet inspection based protocol packet spanning inspection device
CN102281263A (en) Method for establishing Internet small computer system interface (iSCSI) session and iSCSI initiator
CN101753456B (en) Method and system for detecting flow of peer-to-peer network
CN105511992A (en) Global detection module method for node interconnection chip verification
CN101588297A (en) Service packet processing method, service packet processing device and network system
CN101355483A (en) Method and equipment for transmitting data packet by multiple network ports
CN101707535B (en) Method and device for detecting counterfeit network equipment
CN102185758A (en) Protocol recognizing method based on Ares message tagged word

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071114

Termination date: 20190729