CN101420318B - Method for detecting connection state of digital customer line and access terminal - Google Patents
Method for detecting connection state of digital customer line and access terminal Download PDFInfo
- Publication number
- CN101420318B CN101420318B CN2007101634108A CN200710163410A CN101420318B CN 101420318 B CN101420318 B CN 101420318B CN 2007101634108 A CN2007101634108 A CN 2007101634108A CN 200710163410 A CN200710163410 A CN 200710163410A CN 101420318 B CN101420318 B CN 101420318B
- Authority
- CN
- China
- Prior art keywords
- terminal
- digital subscriber
- subscriber line
- detection
- connection status
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000001514 detection method Methods 0.000 claims abstract description 46
- 230000002457 bidirectional effect Effects 0.000 claims abstract description 12
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000004044 response Effects 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- ABEXEQSGABRUHS-UHFFFAOYSA-N 16-methylheptadecyl 16-methylheptadecanoate Chemical group CC(C)CCCCCCCCCCCCCCCOC(=O)CCCCCCCCCCCCCCC(C)C ABEXEQSGABRUHS-UHFFFAOYSA-N 0.000 description 2
- 241000764238 Isis Species 0.000 description 2
- 101100217298 Mus musculus Aspm gene Proteins 0.000 description 2
- 238000005417 image-selected in vivo spectroscopy Methods 0.000 description 2
- 238000012739 integrated shape imaging system Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a method for detecting connection state between a digital subscriber line and an access terminal for rapidly taking back the IP address distributed to an access terminal when the access terminal is off line. The method comprises the steps of using one of the digital subscriber line and the access terminal as the home terminal, sending bidirectional forwarding detection messages to another terminal used as the remote terminal; after receiving the bidirectional forwarding detection messages, the remote terminal sending response messages of the bidirectional forwarding detection messages to the home terminal; the home terminal receiving the response messages and representing that the digital subscriber line and an access terminal are in a connection state. The present invention realizes that a server terminal can obtain the connection state of an access terminal in time.
Description
Technical field
The present invention relates to DSL (Digital Subscriber Line, digital subscriber line) technology, specifically, relate to a kind of DSL of detection and the method for the connection status that accesses terminal.
Background technology
Along with popularizing of data service, also more and more lower to the requirement of Internet user's knowledge level.At this moment DHCP (Dynamic Host Configuration Protocol, DHCP) access way, with its user interface close friend, do not need the operation of client just can directly the IP address be set automatically for client, be easy to administer and maintain, more and more be subjected to the favor of vast operator.
Because the dhcp client start just obtains and has taken the IP address, though this access way is the bringing great convenience property that administers and maintains of operator, also made things convenient for simultaneously the access operation of client, but made simultaneously that also a large amount of address resource of operator is occupied.And, adopt the DHCP mode to insert, the human-machine operation of a connection that mechanism is perfect, the interface is clear and definite and disconnection can not be provided as narrow band access, therefore charge according to duration, on market, do not drop into formal the use, all be that monthly payment is used at present.Along with the concern to the grade of service, investment repayment, operator presses for a kind of accurately technology of timing, thereby the user that the DHCP mode is inserted realizes press duration and charges, and this moment, user's the connection status detection of also rolling off the production line on promptly was just very important.
Be in off-line state at present if detect client, then operator reclaims the IP address of distributing to this client.The method of the address of operator's recovery at present all is to be undertaken by the rental period of DHCP agreement itself.After the IP address was arrived in the client application, server end distributed an address lease time can for this client, start a timer simultaneously.When this timer arrived half of rental period, whether server end can be re-rented to the dhcp client inquiry.If client this moment off-line then reclaims the address of distributing to this client.Because the rental period is generally all very long, time as fruit part client access network is shorter, so client roll off the production line whether server end query user end re-rent during this period of time in, this address is actually the waste state that is in, so this detection method can cause the address waste, needs further improvement.
Summary of the invention
Technical problem to be solved by this invention is to be to provide the method for a kind of DSL of detection with the connection status that accesses terminal, and is intended in time detect the connection status that accesses terminal.
In order to solve the problems of the technologies described above, the invention provides and a kind ofly detect digital subscriber line and access terminal the method for connection status, can regain rapidly when being used to access terminal off-line and distribute to the IP address that this accesses terminal, comprising:
Described digital subscriber line is as local terminal, to the described transmission bidirectional forward detection report that accesses terminal as far-end;
Described far-end is received after the described bidirectional forward detection report, sends two-way forwarding to described local terminal and detects back message using;
Described local terminal receives described two-way forwarding and detects back message using, represents that described digital subscriber line and described accessing terminal are in connection status.
The method of the above-mentioned detection digital subscriber line and the connection status that accesses terminal, described local terminal can periodically send described bidirectional forward detection report to described far-end.
The method of the above-mentioned detection digital subscriber line and the connection status that accesses terminal, described local terminal can write down a detection time when sending described bidirectional forward detection report, detect back message using if in described detection time, receive described two-way forwarding, represent that described digital subscriber line and described accessing terminal are in connection status, otherwise represent that described accessing terminal is in off-line state.
The method of the above-mentioned detection digital subscriber line and the connection status that accesses terminal, described local terminal can further send two-way forwarding and detect the echo message, described far-end is looped back to described local terminal by transmitting passage with described two-way forwarding detection echo message, represent that then described digital subscriber line and described accessing terminal are in connection status, otherwise represent that described accessing terminal is in off-line state.
The method of the above-mentioned detection digital subscriber line and the connection status that accesses terminal, described far-end can detect on the back message using in described two-way forwarding and stamp Priority flag, makes described local terminal detect the processing sequence of back message using to described two-way forwarding according to described Priority flag adjustment.
Compared with prior art, the inventive method has realized that server end can in time obtain the connection status that accesses terminal, and then the rapid withdrawal address resource that rolled off the production line and accessed terminal, has improved the service efficiency of address.
Description of drawings
Fig. 1 is the schematic flow sheet of the inventive method embodiment.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The objective of the invention is to provide the method for a kind of DSL of detection with the connection status that accesses terminal, make the server end of system can in time obtain the connection state information that accesses terminal, so that server end is distributed to the IP address that this accesses terminal before can regaining rapidly when accessing terminal off-line, save address resource, improve the utilization ratio of address resource.
Thinking of the present invention is with BFD (Bidirectional Forwarding Detection, two-way forwarding detection) technology is incorporated into DSL, by the fast detecting characteristic of BFD forwarding fault, realize that server end in time obtains the purpose of the connection state information that accesses terminal.
BFD is simple " Hello " agreement, and aspect a lot, it is similar to the neighbours test section of those famous Routing Protocols.Periodically send the BFD detection messages on the passage of the session of setting up of a pair of system between them, if the detection messages of opposite end is not received by certain system of one of them in the sufficiently long time, then think and fault has taken place in this certain part to the duplex channel of adjacent system.Under certain conditions, in order to reduce load, transmission and receiving velocity between two systems need to consult.
BFD can carry out fault detect on any kind passage at DSL and between accessing terminal, and these passages comprise direct physical link, virtual circuit or the like.Table 1 shows the frame structure of BFD forced message:
The frame structure of table 1, BFD forced message
The information that it comprised is:
The Vers:BFD protocol version is 1 at present;
Diag: diagnostic sampling word, indicate the reason that the last session status of local BFD system changes;
The local state of Sta:BFD;
P: when parameter changes, transmit leg the BFD message is mid-should sign, recipient's this message that must make an immediate response;
F: must be in the back message using of response P flag set with the F flag set;
C: forwarding/control separation flags, in case set, the variation of control plane does not influence BFD and detects, as: control plane is ISIS, when ISIS restart/during GR, BFD can continue to monitor Link State;
A: the authentication sign, on behalf of session, set need verify;
D: on behalf of the transmit leg expectation, query requests, set adopt query pattern that link is monitored;
R: reserved place;
Detect Mult: detect overtime multiple, be used for the detection side and calculate the detection time-out time;
Length: message length;
The local identifier of My Discreaminator:BFD session connection;
Your Discreaminator:BFD session connection distal marker symbol;
Desired Min Tx Interval: the local minimum BFD message of supporting sends at interval;
Required Min RX Interval: the local minimum BFD that supports receives at interval;
Required Min Echo RX Interval: the local minimum Echo message of supporting receives (if the Echo function is not supported in this locality, then being provided with 0) at interval;
Auth Type: auth type, agreement provides at present:
Simple?Password;
Keyed?MD5;
Meticulous?Keyed?MD5;
Keyed?SHA1;
Meticulous?Keyed?SHA1;
AuthLength: verify data length;
Authentication Data: verify data district.
Can draw the length of above-mentioned each field by uppermost ordinal number from table, be 5 bits such as the length of Diag, and the length of Auth Type is 8 bits.In addition, more than except authentication section Auth the type field, Auth Length field and Authentication Data field for can according to circumstances optionally using, all the other are the part of force using.
On this basis, Fig. 1 shows the flow process of the inventive method embodiment, comprises step:
Step 101, the last support of DSL BFD protocol testing, the CPE (customer premises equipment, client device) that begins each is connected carries out the detection of connection status;
Step 102, after authentification of user passed through, accounting server was that Radius (Remote Authentication Dial In User Service, long-range discriminating dial-in user service) server begins the duration of user's online is chargeed.
Step 103, configuration BFD detecting pattern on DSL, DSL is according to the BFD detecting pattern that is disposed, whether online, if detect user's not online (BFD detects bag and do not respond), notice Radius server user is rolled off the production line if detecting the IP user, stop to charge and process ends, otherwise the expression user still is in line states, continues it is chargeed, and enters the testing process of connection status next time.
BFD detecting pattern in the step 103 comprises asynchronous mode and query pattern.The BFD protocol description realize the mechanism of two-way detection can being divided into two kinds: asynchronous mode, query pattern, also have a kind of miscellaneous function echo function in addition, it can combine use with these two kinds of patterns.The essential distinction of asynchronous mode and query pattern is that the position of detecting is different, and local terminal sends BFD control message by certain transmission cycle under the asynchronous mode, need detect the BFD control message that this end system sends at far-end; And the BFD control message that detects the local terminal transmission under query pattern carries out at this end system.Local terminal wherein and far-end are comparatively speaking, and when being local terminal such as client (also promptly accessing terminal), server end is far-end, otherwise when server end was local terminal, client was far-end.Asynchronous mode and query pattern below are described in detail in detail, and the characteristics of echo function.
Under asynchronous mode, periodically send the BFD controlling packet between client and the server end mutually, be example if send the BFD detection messages with DSL, access terminal and receive the BFD detection messages that DSL sends, just DSL is responded the BFD message according to the BFD protocol format; If a certain end is not received the BFD control message of sending the opposite end in detection time, just announce that session is Down, the expression client is in off-line state.The BFD packet that sends that accesses terminal can be stamped the high priority sign, and DSL is the high priority sign in view of the above, priority treatment BFD message.
Under query pattern, the client and server end all have separately one independently method be used for confirming that it is connected to the opposite end, so in a single day, after BFD session was set up, local terminal stopped to send BFD control message, unless a certain end needs explicitly checking connectivity.Under the internuncial situation of needs explicit authentication, local terminal sends the BFD controlling packet of a short series, just do not announce that session is Down if in default detection time, receive the message that returns, the expression client is in off-line state, if receive the back message using of opposite end, agreement is kept silent once more.Such as when sending the BFD detection messages, start a timer or timer, if in detection time, receive the back message using that returns, just illustrate that client is still online.
Local terminal sends a series of BFD echo messages, returns echo message loopback by transmitting passage in the opposite end.If the continuous several echo messages of local system all do not receive, session just is declared as Down, and the expression client is in off-line state.Echo function can use together with above-mentioned two kinds of detecting patterns, can use echo function to replace the task of the detection of BFD control message, can reduce the transmission cycle (under the asynchronous mode) of control message like this or fully phase out BFD control message (under the query pattern).
In actual applications, access terminal (client) as terminal equipment is used as a side who initiatively initiates BFD usually, and the BFD detection that the server end as the DSL local side apparatus is carried out gives a response.Whether simultaneously, client also can directly be sent BFD, detect server end and be out of order.
BFD realizes simple, the unicity of fault detect, causes BFD can be absorbed in the fast detecting of transmitting fault, helps network to realize the transmission of voice, video and other demand (telecommunication) service with good QoS.The present invention has adopted the BFD technology, server end can in time obtain the connection status of user terminal, when so user terminal rolls off the production line, server end can reclaim the address as early as possible, and solved user side to a certain extent and use the DHCP access way according to the duration difficult problem that realizes of chargeing, by accurately the user being carried out on-line condition monitoring, make that become according to chargeing the turn-on time that accesses terminal one of can the actual charging way of using.Also can know the off-line that accesses terminal apace, make the service efficiency of operator address be improved just because of server end.
Claims (5)
1. one kind is detected digital subscriber line and the method for the connection status that accesses terminal, and can regain rapidly when being used to access terminal off-line and distribute to the IP address that this accesses terminal, and comprising:
Described digital subscriber line is as local terminal, to the described transmission bidirectional forward detection report that accesses terminal as far-end;
Described far-end is received after the described bidirectional forward detection report, sends two-way forwarding to described local terminal and detects back message using;
Described local terminal receives described two-way forwarding and detects back message using, represents that described digital subscriber line and described accessing terminal are in connection status.
2. the method for the detection digital subscriber line as claimed in claim 1 and the connection status that accesses terminal, described local terminal periodically sends described bidirectional forward detection report to described far-end.
3. the method for the detection digital subscriber line as claimed in claim 1 and the connection status that accesses terminal, described local terminal writes down a detection time when sending described bidirectional forward detection report, detect back message using if in described detection time, receive described two-way forwarding, represent that described digital subscriber line and described accessing terminal are in connection status, otherwise represent that described accessing terminal is in off-line state.
4. the method for the detection digital subscriber line as claimed in claim 1 and the connection status that accesses terminal, described local terminal further sends two-way forwarding and detects the echo message, described far-end is looped back to described local terminal by transmitting passage with described two-way forwarding detection echo message, represent that then described digital subscriber line and described accessing terminal are in connection status, otherwise represent that described accessing terminal is in off-line state.
5. the method for the detection digital subscriber line as claimed in claim 1 and the connection status that accesses terminal, described far-end detects on the back message using in described two-way forwarding and stamps Priority flag, makes described local terminal detect the processing sequence of back message using to described two-way forwarding according to described Priority flag adjustment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007101634108A CN101420318B (en) | 2007-10-22 | 2007-10-22 | Method for detecting connection state of digital customer line and access terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007101634108A CN101420318B (en) | 2007-10-22 | 2007-10-22 | Method for detecting connection state of digital customer line and access terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101420318A CN101420318A (en) | 2009-04-29 |
| CN101420318B true CN101420318B (en) | 2011-04-20 |
Family
ID=40630942
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2007101634108A Expired - Fee Related CN101420318B (en) | 2007-10-22 | 2007-10-22 | Method for detecting connection state of digital customer line and access terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101420318B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102315969A (en) * | 2011-09-22 | 2012-01-11 | 中兴通讯股份有限公司南京分公司 | Neighbor discovery protocol graceful restart (GR) processing method and device |
| CN102546304B (en) * | 2012-01-19 | 2015-06-03 | 华为技术有限公司 | BFD detection method, equipment and system |
| CN103763137B (en) * | 2014-01-07 | 2017-08-08 | 北京东土科技股份有限公司 | A kind of device configuration connection guard method, system and device |
| US10447586B2 (en) * | 2017-06-01 | 2019-10-15 | Zte Corporation | Defect detection in IP/MPLS network tunnels |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1501644A (en) * | 2002-11-19 | 2004-06-02 | ��Ϊ��������˾ | Reachability detection method between IP network devices and its application in access backup of public dial-up network platform |
| CN1913457A (en) * | 2005-08-10 | 2007-02-14 | 华为技术有限公司 | Method for fault detection of two-way conversion link |
| CN1921417A (en) * | 2005-08-25 | 2007-02-28 | 华为技术有限公司 | Method for reporting conversation state of two-way transfer detection |
-
2007
- 2007-10-22 CN CN2007101634108A patent/CN101420318B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1501644A (en) * | 2002-11-19 | 2004-06-02 | ��Ϊ��������˾ | Reachability detection method between IP network devices and its application in access backup of public dial-up network platform |
| CN1913457A (en) * | 2005-08-10 | 2007-02-14 | 华为技术有限公司 | Method for fault detection of two-way conversion link |
| CN1921417A (en) * | 2005-08-25 | 2007-02-28 | 华为技术有限公司 | Method for reporting conversation state of two-way transfer detection |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101420318A (en) | 2009-04-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102932785B (en) | Rapid authentication method, system and equipment of wireless local area network | |
| CN100385862C (en) | A method for upgrading the version of the optical network unit ONU | |
| CN101953139B (en) | DHCP in response to Internet connectedness initializes | |
| CN101420318B (en) | Method for detecting connection state of digital customer line and access terminal | |
| EP1441466A2 (en) | Method of controlling loop-back process in Ethernet passive optical network | |
| CN113437998A (en) | Operation and maintenance debugging method and system, nonvolatile storage medium and processor | |
| CN107613023B (en) | Equipment connection method and device | |
| CN103312593B (en) | A kind of message distributing system and method | |
| CN101312456A (en) | Method and system for survival monitoring session of subscriber | |
| CN104009961B (en) | A kind of pppoe session mark distributing method and equipment | |
| CN103220276A (en) | Method and system for network access, and gateway | |
| CN101325587A (en) | Method for monitoring DHCP conversation | |
| CN101227479B (en) | Method and apparatus of topology linkage | |
| CN109274763B (en) | Information synchronization method and dual-computer hot standby equipment | |
| CN101557354A (en) | Method for sending picture by client service personnel on line | |
| CN114363223B (en) | Two-layer service state detection method, communication equipment and storage medium | |
| CN101087232B (en) | An access method, system and device based on Ethernet point-to-point protocol | |
| CN109729016A (en) | A kind of file transmitting method, equipment and computer readable storage medium | |
| CN107454208A (en) | A kind of is the method that network address is distributed from node device | |
| CN103856571B (en) | A kind of adaptive networking connection method and system | |
| CN109286537B (en) | Board management system and management method for frame type multi-service board | |
| CN101420333A (en) | Method for detecting state of connection between digital customer line and access terminal | |
| CN103812707A (en) | Forwarding processing method of line identity messages | |
| CN102231668A (en) | Multicast service charging method, device and system | |
| CN105516087A (en) | Socket communication interface system based on process control server |
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 |
Granted publication date: 20110420 Termination date: 20171022 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |