CN101110718B - Self-adapting chain circuit detecting method and device thereof - Google Patents

Self-adapting chain circuit detecting method and device thereof Download PDF

Info

Publication number
CN101110718B
CN101110718B CN2007101420787A CN200710142078A CN101110718B CN 101110718 B CN101110718 B CN 101110718B CN 2007101420787 A CN2007101420787 A CN 2007101420787A CN 200710142078 A CN200710142078 A CN 200710142078A CN 101110718 B CN101110718 B CN 101110718B
Authority
CN
China
Prior art keywords
link
logic state
physical state
state
routing table
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
CN2007101420787A
Other languages
Chinese (zh)
Other versions
CN101110718A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101420787A priority Critical patent/CN101110718B/en
Publication of CN101110718A publication Critical patent/CN101110718A/en
Application granted granted Critical
Publication of CN101110718B publication Critical patent/CN101110718B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a detecting method and device of a self-adapting link. The method is to acquire and store the actual link configuration information; the method configures various detecting mode and the correspondent route judging condition for the link, and detects the physical state and the logical state of the link; when the change of the physical state and the logical state of the link is detected, the route list is renewed according to the judging condition of the route. The present invention combines the physical state and the logical state as the reference of the link detection, to enable the detection to be performed self-adapting detection according to the opposite end, to overcome the default of the single physical state detection and the limitation of the single logical state detection. The link detection mode can be set as a single logical state detection according to the actual requirement, for example, when the link is required to the performed strict detection. When the inexact detection of the link is required, the link detection mode can be set as a single physical state detection, to enhance the reliability and the flexibility of the link detection.

Description

A kind of adaptive chain circuit detecting method and device thereof
Technical field
The invention belongs to the mechanics of communication class, particularly a kind of adaptive chain circuit detecting method and the device thereof of the communications field.
Background technology
In the communications field, the link between interface board needs real-time detecting in actual applications, and the normal link of selection mode sends data when sending data, otherwise can cause loss of data, influences service application.We safeguard a routing table when carrying out link detecting, if link is normal, this link is added routing table entry, use the available link in the routing table to send data when sending data.
To the detection of link, the physical state of handlebar link is as testing conditions at present, and also the logic state of handlebar link is as testing conditions.The physical state of link mainly bottom layer signal lose, LOF is as judge index, thinks when dropout, LOF do not appear in link that Link State is normal, otherwise thinks link failure.
This method in actual applications, when physical state just often, in fact link not necessarily is exactly normal.Such as link encircled certainly or middle situations such as forward node fault under, detected link physical state is normal, but actual at this moment link can not proper communication, this link should not write routing table entry.This is a kind of defective for link detecting, and physical state can not reflect the time of day of link exactly, causes loss of data, thereby influence is professional.
Logic state (state of shaking hands of upper layer application) by link is as the method for testing conditions, and also there is defective in the method that route is set by logic state.The logic state detection method, local terminal regularly sends to the opposite end by link and detects bag, the opposite end receives that back the beaming back to local terminal of detection bag should, local terminal receives that the response of opposite end thinks that then this link logic state is normal, can not receive the opposite end and respond, receive the detection bag that local terminal self sends or reply then logic state for link from encircling then for the logic state of link is a fault.But this detection method requires the opposite end to make a response to the detection bag that local terminal sends, promptly requiring opposite end and local terminal is the equipment of same platform, if the opposite end since edition compatibility problem, opposite end be different platform equipment with local terminal, when the opposite end is the equipment of other manufacturers, the logic detection method is therefore inefficacy all.So, need aspect reliability of system operation, propose higher requirement as telecom carrier-class device.
Summary of the invention
Technical problem solved by the invention is to provide a kind of adaptive chain circuit detecting method and device thereof, to solve the defect problem that exists at present link detecting mechanism.
In order to address the above problem, the invention provides a kind of adaptive chain circuit detecting method, it is characterized in that, may further comprise the steps:
(1) obtains and preserves actual link configuration information;
(2), and detect the physical state and the logic state of link for described link is provided with the physical state of link and the route criterion that logic state is mixed detecting pattern and correspondence thereof;
(3) when the physical state of the described link that detects or logic state change, upgrade routing table according to described route criterion.
Method of the present invention, wherein, link configuration information described in the step (1) comprises: have which bar link to connect the detecting pattern of opposite equip., described every link on the interface board;
Described step (2) further comprises:
When if described link-attached opposite equip. and local terminal equipment are different platform, for described link is provided with physical state and logic state mixing detecting pattern or single according to link physical state-detection pattern, and the route criterion of different mode correspondence;
When if described link-attached opposite equip. and local terminal equipment are same platform, for described link be provided with physical state and logic state mix detecting pattern, single according to link logic state detecting pattern or single according to link physical state-detection pattern one of them, and the route criterion of different mode correspondence;
Wherein, the physical state of described link and logic state are mixed detecting pattern, the physical link that obtains according to step (1) for described physical state detection disposes the physical state that regularly detects link, detect dropout, the LOF index of link bottom, when dropout, LOF do not appear in described link, described link physical state is normal, otherwise described link physical status fault;
Described logic state detects the logic state that the physical link configuration of obtaining according to step (1) regularly detects link, local terminal regularly sends to the opposite end by link and detects bag, beaming back to local terminal after receive described opposite end should, described local terminal receive response then this link logic state be normal, do not receive and respond then in the opposite end this link logic state is a fault, receive the detection bag that described local terminal self sends or reply then described link logic state from encircling.
Method of the present invention, wherein, the route criterion of described mixing detecting pattern correspondence comprises:
When described logic state is normal, physical state is just often write routing table entry with this link;
When described logic state is normal, during the physical state fault, this link is write routing table entry;
When described logic state fault, physical state is just often write routing table entry with this link;
When described logic state fault, during the physical state fault, this link of deletion from routing table;
Oneself encircles when described logic state, and physical state is just often deleted this link from routing table;
When described logic state is encircled certainly, during the physical state fault, from routing table, delete this link.
Method of the present invention, wherein, described step (3) further comprises:
When revising the link configuration of described reality, will obtain and upgrade link configuration information again, empty routing table simultaneously, and begin to detect the physical state and the logic state of link according to new link configuration;
When revising the detecting pattern of described link, from described routing table, delete this link, and carry out the route differentiation according to the physical state and the logic state of new detecting pattern junction link;
Said method, wherein, described not receiving responded then in the opposite end this link logic state is a fault, further do not receive that for continuous 3 times it is fault for the logic state of this link then that the opposite end is responded;
Each detected bag during described logic state detected, and it has sequence number, and local terminal is received when responding, and carry out verification to this sequence-number field, had only sequence number within the receive window that allows, and just confirmed as effective response; Wherein, described window size is set to 5.
Method of the present invention, wherein, described step (2) further comprises:
When needs carry out the strictness detection to described link, for described link is provided with single according to link logic state detecting pattern and corresponding route criterion; In the time need carrying out looser detection, for described link is provided with single according to link physical state-detection pattern and corresponding route criterion to described link.
Method of the present invention wherein, when described link is set to the single route criterion of correspondence during according to link logic state detecting pattern, comprising:
When described logic state is normal, this link is write routing table entry;
When described logic state is encircled certainly, from routing table, delete this link;
When described logic state fault, this link of deletion from routing table.
When described link is set to single route criterion according to link physical state-detection pattern correspondence, comprising:
When described physical state just often, this link is write routing table entry;
When described physical state fault, this link of deletion from routing table.
In order to address the above problem, the present invention also provides a kind of adaptive link detecting device, it is characterized in that, comprising: data configuration module, link detecting module and route discrimination module, wherein,
Described data configuration module is used to obtain, preserve and be provided with actual link configuration information; And be mixing detecting pattern and the corresponding route criterion thereof that described link is provided with physical state and logic state;
Described link detecting module is used to detect the physical state and the logic state of link;
Described route discrimination module is used for according to detected link physical state of described link detecting module and logic state junction link detecting pattern routing table being set, and normal link is added routing table entry, and the link of fault is deleted from routing table.
Device of the present invention, wherein, link configuration information in the described data configuration module comprises: have which bar link to connect the detecting pattern of opposite equip., described every link on the interface board;
Described data configuration module, if when being further used for described link-attached opposite equip. and local terminal equipment and being different platform, for described link is provided with physical state and logic state mixing detecting pattern or single according to link physical state-detection pattern, and the route criterion of different mode correspondence; When if described link-attached opposite equip. and local terminal equipment are same platform, for described link be provided with physical state and logic state mix detecting pattern, single according to link logic state detecting pattern or single according to link physical state-detection pattern one of them, and the route criterion of different mode correspondence.
Device of the present invention, wherein, described link detecting module is made up of the physical state detection module of link and the logic state detection module of link, wherein,
The physical state detection module of described link, be used for regularly detecting the physical state of link, detect dropout, the LOF index of link bottom, when dropout, LOF do not appear in described link, described link physical state is normal, otherwise described link physical status fault;
The logic state detection module of described link, be used for local terminal and regularly send the detection bag to the opposite end by link, beaming back to local terminal after receive described opposite end should, described local terminal receive response then this link logic state be normal, do not receive and respond then in the opposite end this link logic state is a fault, receive the detection bag that described local terminal self sends or reply then described link logic state from encircling.
Device of the present invention, wherein, described data configuration module is further used for when revising the link configuration of described reality, to obtain and upgrade link configuration information again, and notify described route discrimination module and link detecting module link configuration that modification has taken place simultaneously; When revising the detecting pattern of described link, it notifies the detecting pattern of described this link of route discrimination module to revise;
Described link detecting module when revising the link configuration of described reality, begins to detect the physical state and the logic state of link according to new link configuration;
Described route discrimination module is further used for emptying routing table when revising the link configuration of described reality; When revising the detecting pattern of described link, it deletes this link from described routing table, and carries out the route differentiation according to the physical state and the logic state of new detecting pattern junction link.
Device of the present invention, wherein, described data configuration module is further used for when needs carry out the strictness detection to described link, for described link is provided with single according to link logic state detecting pattern and corresponding route criterion; In the time need carrying out looser detection, for described link is provided with single according to link physical state-detection pattern and corresponding route criterion to described link.
Device of the present invention, wherein, the route criterion of correspondence during described mixing detecting pattern comprises:
When described logic state is normal, physical state is just often write routing table entry with this link;
When described logic state is normal, during the physical state fault, this link is write routing table entry;
When described logic state fault, physical state is just often write routing table entry with this link;
When described logic state fault, during the physical state fault, this link of deletion from routing table;
Oneself encircles when described logic state, and physical state is just often deleted this link from routing table;
When described logic state is encircled certainly, during the physical state fault, from routing table, delete this link;
The described single route criterion of correspondence during according to link logic state detecting pattern comprises:
When described logic state is normal, this link is write routing table entry;
When described logic state is encircled certainly, from routing table, delete this link;
When described logic state fault, this link of deletion from routing table;
Described single route criterion according to link physical state-detection pattern correspondence comprises:
When described physical state just often, this link is write routing table entry;
When described physical state fault, this link of deletion from routing table.
The present invention as the foundation of link detecting, makes detection to have overcome the defective of single one physical state-detection according to opposite end situation self-adapting detecting in conjunction with physical state and logic state, has also overcome the limitation of unity logic state-detection.Can also be according to the actual requirements, when for example needing link carried out strictness and detect, the link detecting pattern is set to single dependence logic state and detects; When if desired link being carried out looser detection, the link detecting pattern is set to single physical state detection, has improved link detecting reliability and flexibility.
Description of drawings
Fig. 1 is described a kind of adaptive chain circuit detecting method of the embodiment of the invention and device actual application environment schematic diagram thereof;
Fig. 2 is the structure chart of the described a kind of adaptive link detecting device of the embodiment of the invention;
Fig. 3 is that route is differentiated flow chart in the described a kind of adaptive chain circuit detecting method of the embodiment of the invention;
Fig. 4 is the flow chart of the described a kind of adaptive chain circuit detecting method of the embodiment of the invention.
Embodiment
The present invention provides a kind of adaptive chain circuit detecting method and device thereof here, to solve the defect problem that exists at present link detecting mechanism.Below embodiment is described in detail, but not as a limitation of the invention.
The present invention roughly thinking is the logic state and the physical state of junction link, and the link detecting pattern is set to the mixing detecting pattern of two kinds of patterns, during to link detecting, and the self-adapting detecting mechanism that logic state and physical state can automatically switch.When logic state lost efficacy, automatically switch to physical state, the physical state judgement route according to link promptly can solve the detection defective that single dependence link physical state exists, and also can solve single dependence logic state and detect the restricted problem that exists.Simultaneously, can also be according to the actual requirements, when needs carried out the strictness detection to link, the link detecting pattern was set to single dependence logic state and detects; In the time need carrying out looser detection to link, the link detecting pattern is set to single physical state detection, thereby has increased the flexibility of link detecting mechanism.As shown in Figure 4, step 401-403 is above-mentioned described content.
As shown in Figure 1,2 kinds of situations that the opposite end connects same platform equipment, different platform equipment have been described among the figure.
As shown in Figure 2, the structure chart for adaptive link detecting device mainly comprises:
Data configuration module 201, obtain and preserve actual link configuration, the actual detecting pattern that has any bar link to connect opposite equip., every link on the interface board, obtain and preserve these configuration informations, link detecting module 202 detects according to the link configuration of reality, when configuration modification, data configuration module 201 will be upgraded the link configuration data;
Link detecting module 202, it is divided into two separate submodules, physical state detection module 204 and logic state detection module 205; Link configuration according to reality is carried out link detecting, the link of actual disposition in the detection system; Regularly detect the physical state of link and the logic state that timing detects link; Wherein,
The physical state detection module 204 of link regularly detects that the link bottom layer signal is lost, the situation of LOF, and the dropout that occurs according to link, whether the LOF situation is differentiated the link physical state normal;
The logic state detection module 205 of link, local terminal regularly sends to the opposite end by link and detects bag, beaming back to local terminal after receive the opposite end should, local terminal receives that response thinks that then this link logic state is normal, can not receive response then for the logic state of this link is a fault, receive the detection bag that local terminal self sends or reply then for the link logic state from ring;
Route discrimination module 203 is provided with routing table according to link detecting module 202 detected link physical states and logic state, and normal link is added routing table entry, and the link of fault is deleted from routing table.
What among Fig. 1 if opposite end connected is different platform equipment, this is the situation that opposite end and local terminal belong to different platform equipment, the link detecting pattern is set to mix detecting pattern, and promptly the physical state of junction link and logic state are as the condition of differentiating the link route.Owing to belong to the product of different platform, require the opposite end to send and receive the response, then require the testing mechanism of compatible this end system of opposite equip. not have operability; So, when opposite end and local terminal belong to different platform equipment, can not respond the detection messages of local terminal, therefore, in fact the link logic state has only two kinds, certainly ring and fault (representing non-from ring).When the opposite end connects with local terminal different platform equipment, can use the detecting pattern of single one physical; When using single logic detection, response can not be made to the detection bag of local terminal in the opposite end, and unity logic detects and lost efficacy.
The execution mode of adaptive chain circuit detecting method is:
Step 1: obtain and preserve actual link configuration information by data configuration module 201;
Step 2: data configuration module 201 is provided with the link detecting pattern for this link, is set to mix detecting pattern according to the physical state and the logic state of link;
Step 3: the physical link configuration that physical state detection module 204 is obtained according to data configuration module 201 regularly detects the physical state of this link, detects dropout (Loss ofSignal), the LOF indexs such as (Loss of Frame) of link bottom; The situation of dropout, LOF does not appear in link, thinks that then the link physical state is normal, otherwise thinks the link physical status fault;
The physical link configuration that logic state detection module 205 obtains according to data configuration module 201 regularly detects the logic state of this link, local terminal regularly sends to the opposite end by this link and detects bag, owing to belong to the product of different platform, the opposite end can not responded the detection messages of local terminal, therefore, in fact the link logic state has only two kinds, certainly ring and fault (representing non-from ring);
Step 4: routing table is initialized as sky, and when the logic state of link or physical state changed, route discrimination module 203 can upgrade routing table according to the detecting pattern of link, the physical state of link, the logic state of link;
The detecting pattern of link is for mixing detecting pattern, and this link route criterion is as follows:
(1) the normal OK of logic state, the normal OK of physical state writes routing table entry with this link;
(2) the normal OK of logic state, physical state fault BAD writes routing table entry with this link;
(3) logic state fault BAD, the normal OK of physical state writes routing table entry with this link;
(4) logic state fault BAD, physical state fault BAD, this link of deletion from routing table;
(5) logic state is from encircling LB, the normal OK of physical state, this link of deletion from routing table;
(6) logic state is from encircling LB, physical state fault BAD, this link of deletion from routing table;
In addition, in the time need carrying out looser detection to described link, the detecting pattern of link is single physical detection pattern, no matter which kind of equipment the opposite end is, if the link physical state is normal, this link is write routing table entry.If the link physical status fault, link route criterion is following that this link is deleted from routing table for this; Concrete route criterion is as follows:
(1) when the normal OK of described physical state, this link is write routing table entry;
(2) when described physical state fault BAD, this link of deletion from routing table.
Step 5: when having revised actual link configuration, data configuration module 201 is obtained again and is upgraded link configuration information, notifies route discrimination module 203 and link detecting module 202 link configuration that modification has taken place simultaneously; The route discrimination module empties routing table, and link detecting module 202 begins to detect the physical state and the logic state of link according to new link configuration.Repeating step 3,4.
Step 6: when data configuration module 201 has been revised the detecting pattern of this link, can notify the detecting pattern of route discrimination module 203 these links to revise, route discrimination module 203 is deleted this link from routing table, carry out the route differentiation according to the physical state and the logic state of new detecting pattern junction link.
If what the opposite end connected among Fig. 1 is the situation that belongs to same platform equipment with local terminal, the link detecting pattern is set to mix detecting pattern, and promptly the physical state of junction link and logic state are as the condition of differentiating the link route.Owing to belong to the product of same platform, the opposite end can respond the detection bag that local terminal sends;
The execution mode of adaptive chain circuit detecting method is:
Step 1: obtain and preserve actual link configuration information by data configuration module 201;
Step 2: data configuration module 201 is provided with the link detecting pattern for this link, is set to the mixing detecting pattern according to link;
Step 3: the physical link configuration that physical state detection module 204 is obtained according to data configuration module 201 regularly detects the physical state of this link, detects dropout (Loss ofSignal), the LOF indexs such as (Loss of Frame) of link bottom; The situation of dropout, LOF does not appear in link, thinks that then the link physical state is normal, otherwise thinks the link physical status fault;
The physical link configuration that logic state detection module 205 obtains according to data configuration module 201 regularly detects the logic state of this link, local terminal regularly sends to the opposite end by this link and detects bag, owing to belong to the product of same platform, the opposite end can respond the detection bag that local terminal sends; Local terminal regularly sends to the opposite end by this link and detects bag, beaming back to local terminal after receive the opposite end should, local terminal receives that response thinks that then this link logic state is normal, the continuous opposite end of not receiving for 3 times is responded then for the logic state of this link is a fault, receive the detection bag that local terminal self sends or reply then for the link logic state from encircling.
Annotate: each detects among the bag REQ, all has sequence number, and local terminal is received when replying, and carry out verification to sequence-number field, has only sequence number within the receive window that allows, and just confirms as effectively and replys (window size is set to 5).
Step 4: routing table is initialized as sky, and when the logic state of link or physical state changed, route discrimination module 203 can upgrade routing table according to the detecting pattern of link, the physical state of link, the logic state of link.
When the detecting pattern of link for mixing detecting pattern, this link route criterion following (as shown in Figure 3):
(1) the normal OK of logic state, the normal OK of physical state writes routing table entry with this link;
(2) the normal OK of logic state, physical state fault BAD writes routing table entry with this link;
(3) logic state fault BAD, the normal OK of physical state writes routing table entry with this link;
(4) logic state fault BAD, physical state fault BAD, this link of deletion from routing table;
(5) logic state is from encircling LB, the normal OK of physical state, this link of deletion from routing table;
(6) logic state is from encircling LB, physical state fault BAD, this link of deletion from routing table;
In addition, when needs carried out the strictness detection to described link, the detecting pattern of described link was a unity logic state-detection pattern, and this link route criterion is as follows:
(1) as the normal OK of described logic state, this link is write routing table entry;
(2) encircle LB certainly when described logic state, from routing table, delete this link;
(3) as described logic state fault BAD, this link of deletion from routing table.
In addition, in the time need carrying out looser detection to described link, the detecting pattern of described link is a single one physical state-detection pattern, and this link route criterion is as follows:
(1) when the normal OK of described physical state, this link is write routing table entry;
(2) when described physical state fault BAD, this link of deletion from routing table.
Step 5: when having revised actual link configuration, data configuration module 201 is obtained again and is upgraded link configuration information, notifies route discrimination module 203 and link detecting module 202 link configuration that modification has taken place simultaneously; Route discrimination module 203 empties routing table, and link detecting module 202 begins to detect the physical state and the logic state of link according to new link configuration.Repeating step 3,4.
Step 6: when having revised the detecting pattern of this link, the detecting pattern of data configuration module 201 notice route discrimination modules 203 these links is revised, route discrimination module 203 is deleted this link from routing table, carry out the route differentiation according to the physical state and the logic state of new detecting pattern junction link.
The embodiment of the invention by in conjunction with physical state and logic state as the foundation of link detecting, make detection to have overcome the defective of single one physical state-detection according to opposite end situation self-adapting detecting, also overcome the limitation of unity logic state-detection.Can also be according to the actual requirements, when for example needing link carried out strictness and detect, the link detecting pattern is set to single dependence logic state and detects; When if desired link being carried out looser detection, the link detecting pattern is set to single physical state detection, has improved link detecting reliability and flexibility.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (11)

1. an adaptive chain circuit detecting method is characterized in that, may further comprise the steps:
(1) obtain and preserve actual link configuration information, described link configuration information comprises: have which bar link to connect the detecting pattern of opposite equip., every described link on the interface board;
(2), and detect the physical state and the logic state of link for described link is provided with the physical state of link and the route criterion that logic state is mixed detecting pattern and correspondence thereof;
Described step (2) further comprises:
When if described link-attached opposite equip. and local terminal equipment are different platform, for described link is provided with physical state and logic state mixing detecting pattern or single according to link physical state-detection pattern, and the route criterion of different mode correspondence;
When if described link-attached opposite equip. and local terminal equipment are same platform, for described link be provided with physical state and logic state mix detecting pattern, single according to link logic state detecting pattern or single according to link physical state-detection pattern one of them, and the route criterion of different mode correspondence;
Wherein, the physical state of described link and logic state are mixed detecting pattern, the physical link that obtains according to step (1) for described physical state detection disposes the physical state that regularly detects link, detect dropout, the LOF index of link bottom, when dropout, LOF do not appear in described link, described link physical state is normal, otherwise described link physical status fault;
Described logic state detects the logic state that the physical link configuration of obtaining according to step (1) regularly detects link, local terminal regularly sends to the opposite end by link and detects bag, beaming back to local terminal after receive described opposite end should, described local terminal receive response then this link logic state be normal, do not receive and respond then in the opposite end this link logic state is a fault, receive the detection bag that described local terminal self sends or reply then described link logic state from encircling;
(3) when the physical state of the described link that detects or logic state change, upgrade routing table according to described route criterion.
2. the method for claim 1 is characterized in that, described mixing detecting pattern correspondence
The single route criterion of correspondence during according to link logic state detecting pattern comprises:
When described logic state is normal, this link is write routing table entry;
When described logic state is encircled certainly, from routing table, delete this link;
When described logic state fault, this link of deletion from routing table;
When described link is set to single route criterion according to link physical state-detection pattern correspondence, comprising:
When described physical state just often, this link is write routing table entry;
When described physical state fault, this link of deletion from routing table.
3. the method for claim 1 is characterized in that, described step (3) further comprises:
When revising the link configuration of described reality, will obtain and upgrade link configuration information again, empty routing table simultaneously, and begin to detect the physical state and the logic state of link according to new link configuration;
When revising the detecting pattern of described link, from described routing table, delete this link, and carry out the route differentiation according to the physical state and the logic state of new detecting pattern junction link.
4. the method for claim 1 is characterized in that, described not receiving responded then in the opposite end this link logic state is a fault, further do not receive that for continuous 3 times it is fault for the logic state of this link then that the opposite end is responded;
Each detected bag during described logic state detected, and it has sequence number, and local terminal is received when responding, and carry out verification to this sequence-number field, had only sequence number within the receive window that allows, and just confirmed as effective response; Wherein, described window size is set to 5.
5. the method for claim 1 is characterized in that, described step (2) further comprises:
When needs carry out the strictness detection to described link, for described link is provided with single according to link logic state detecting pattern and corresponding route criterion; In the time need carrying out looser detection, for described link is provided with single according to link physical state-detection pattern and corresponding route criterion to described link.
6. as claim 1 or 5 described methods, it is characterized in that, when described link is set to the single route criterion of correspondence during according to link logic state detecting pattern, comprising:
When described logic state is normal, this link is write routing table entry;
When described logic state is encircled certainly, from routing table, delete this link;
When described logic state fault, this link of deletion from routing table;
When described link is set to single route criterion according to link physical state-detection pattern correspondence, comprising:
When described physical state just often, this link is write routing table entry;
When described physical state fault, this link of deletion from routing table.
7. an adaptive link detecting device is characterized in that, comprising: data configuration module, link detecting module and route discrimination module, wherein,
Described data configuration module is used to obtain, preserve and be provided with actual link configuration information, link configuration information comprises: have which bar link to connect the detecting pattern of opposite equip., every described link on the interface board; And be mixing detecting pattern and the corresponding route criterion thereof that described link is provided with physical state and logic state; Described data configuration module, if when being further used for described link-attached opposite equip. and local terminal equipment and being different platform, for described link is provided with physical state and logic state mixing detecting pattern or single according to link physical state-detection pattern, and the route criterion of different mode correspondence; When if described link-attached opposite equip. and local terminal equipment are same platform, for described link be provided with physical state and logic state mix detecting pattern, single according to link logic state detecting pattern or single according to link physical state-detection pattern one of them, and the route criterion of different mode correspondence;
Described link detecting module is used to detect the physical state and the logic state of link;
Described route discrimination module is used for according to detected link physical state of described link detecting module and logic state junction link detecting pattern routing table being set, and normal link is added routing table entry, and the link of fault is deleted from routing table.
8. device as claimed in claim 7 is characterized in that, described link detecting module is made up of the physical state detection module of link and the logic state detection module of link, wherein,
The physical state detection module of described link, be used for regularly detecting the physical state of link, detect dropout, the LOF index of link bottom, when dropout, LOF do not appear in described link, described link physical state is normal, otherwise described link physical status fault;
The logic state detection module of described link, be used for local terminal and regularly send the detection bag to the opposite end by link, beaming back to local terminal after receive described opposite end should, described local terminal receive response then this link logic state be normal, do not receive and respond then in the opposite end this link logic state is a fault, receive the detection bag that described local terminal self sends or reply then described link logic state from encircling.
9. device as claimed in claim 7, it is characterized in that described data configuration module is further used for when revising the link configuration of described reality, to obtain and upgrade link configuration information again, and notify described route discrimination module and link detecting module link configuration that modification has taken place simultaneously; When revising the detecting pattern of described link, it notifies the detecting pattern of described this link of route discrimination module to revise;
Described link detecting module when revising the link configuration of described reality, begins to detect the physical state and the logic state of link according to new link configuration;
Described route discrimination module is further used for emptying routing table when revising the link configuration of described reality; When revising the detecting pattern of described link, it deletes this link from described routing table, and carries out the route differentiation according to the physical state and the logic state of new detecting pattern junction link.
10. device as claimed in claim 7 is characterized in that, described data configuration module is further used for when needs carry out the strictness detection to described link, for described link is provided with single according to link logic state detecting pattern and corresponding route criterion; In the time need carrying out looser detection, for described link is provided with single according to link physical state-detection pattern and corresponding route criterion to described link.
11., it is characterized in that the route criterion of correspondence during described mixing detecting pattern comprises as claim 7 or 10 described devices:
When described logic state is normal, physical state is just often write routing table entry with this link;
When described logic state is normal, during the physical state fault, this link is write routing table entry;
When described logic state fault, physical state is just often write routing table entry with this link;
When described logic state fault, during the physical state fault, this link of deletion from routing table;
Oneself encircles when described logic state, and physical state is just often deleted this link from routing table;
When described logic state is encircled certainly, during the physical state fault, from routing table, delete this link;
The described single route criterion of correspondence during according to link logic state detecting pattern comprises:
When described logic state is normal, this link is write routing table entry;
When described logic state is encircled certainly, from routing table, delete this link;
When described logic state fault, this link of deletion from routing table;
Described single route criterion according to link physical state-detection pattern correspondence comprises:
When described physical state just often, this link is write routing table entry;
When described physical state fault, this link of deletion from routing table.
CN2007101420787A 2007-08-22 2007-08-22 Self-adapting chain circuit detecting method and device thereof Expired - Fee Related CN101110718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101420787A CN101110718B (en) 2007-08-22 2007-08-22 Self-adapting chain circuit detecting method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101420787A CN101110718B (en) 2007-08-22 2007-08-22 Self-adapting chain circuit detecting method and device thereof

Publications (2)

Publication Number Publication Date
CN101110718A CN101110718A (en) 2008-01-23
CN101110718B true CN101110718B (en) 2010-08-18

Family

ID=39042621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101420787A Expired - Fee Related CN101110718B (en) 2007-08-22 2007-08-22 Self-adapting chain circuit detecting method and device thereof

Country Status (1)

Country Link
CN (1) CN101110718B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711163B (en) * 2012-07-11 2015-08-19 烽火通信科技股份有限公司 A kind of method of IP-RAN equipment fast detecting alarm link failure
CN102761461B (en) * 2012-08-01 2015-10-14 杭州迪普科技有限公司 A kind of link health examination method and device
CN107104837B (en) * 2017-05-09 2020-02-14 华为技术有限公司 Method and control device for path detection
CN108718252B (en) * 2018-05-10 2021-08-31 光脚信息科技(南京)有限公司 Architecture for realizing content network transmission

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423876A (en) * 2000-03-03 2003-06-11 明亮网络公司 Routing switch for dynamically reroutng traffic due to detection of faulty link
CN1464704A (en) * 2002-06-06 2003-12-31 深圳市中兴通讯股份有限公司 Routing method based on link status
CN1953565A (en) * 2005-10-18 2007-04-25 中兴通讯股份有限公司 A route update method for No.7 signalling system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423876A (en) * 2000-03-03 2003-06-11 明亮网络公司 Routing switch for dynamically reroutng traffic due to detection of faulty link
CN1464704A (en) * 2002-06-06 2003-12-31 深圳市中兴通讯股份有限公司 Routing method based on link status
CN1953565A (en) * 2005-10-18 2007-04-25 中兴通讯股份有限公司 A route update method for No.7 signalling system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CISCO.Understanding and Configuring the Unidirectiional LinkDetection Protocol Feature.10591.2007,(10591),第3页. *

Also Published As

Publication number Publication date
CN101110718A (en) 2008-01-23

Similar Documents

Publication Publication Date Title
CN101494560B (en) Method, apparatus and system for configuring master-salve network device
CN101110718B (en) Self-adapting chain circuit detecting method and device thereof
CN102088372B (en) Heartbeat detecting method, system and equipment
CN101427499A (en) System and method of multi-nodal APS control protocol signalling
CN102035702A (en) An Ethernet network component
CN102318267A (en) Data communication method, communication equipment and communication system
CN103404100A (en) Relay device, relay device control method, and network system
CN110493059A (en) The system and method that more platform of internet of things based on cloud firmware load automatically
CN102780635A (en) Method for realizing protection switching based on TRILL (transparent interconnection of lots of link) network, TOR (top of rack) switchboard and system
CN102833167A (en) Method and data for transmitting data between local area networks
CN108804260A (en) A kind of method and apparatus that SRIO systems are switched
CN104079396B (en) network redundancy structure
CN105721235A (en) Method and apparatus for detecting connectivity
CN102158383A (en) Data transmission method, device and system for E1 bidirectional ring network
CN104104596A (en) Intelligent resilient framework (IRF) split processing method and device
CN102104521B (en) Ethernet ring network link failure recovery method, Ethernet ring network and node equipment
CN102984739A (en) Breakdown information processing method and processing device
CN100488117C (en) Method for automatically obtaining topological relation of telecommunication device
CN1964295A (en) An access system of digital subscriber and its working method
CN100518179C (en) Method for realizing instructure self circulation in No.7 signalling system
CN103888280A (en) Cross-domain path state negotiation method and node device
CN102932497A (en) Method, device and system for obtaining internet protocol address
CN100594708C (en) Projector, projection system and projection method
CN100420187C (en) Network switching equipment and network service protection method
JP2007135052A (en) Communication system and redundant system switching method

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: 20100818

Termination date: 20160822