CN101110718A - 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
CN101110718A
CN101110718A CNA2007101420787A CN200710142078A CN101110718A CN 101110718 A CN101110718 A CN 101110718A CN A2007101420787 A CNA2007101420787 A CN A2007101420787A CN 200710142078 A CN200710142078 A CN 200710142078A CN 101110718 A CN101110718 A CN 101110718A
Authority
CN
China
Prior art keywords
link
state
physical state
detection
logic state
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.)
Granted
Application number
CNA2007101420787A
Other languages
Chinese (zh)
Other versions
CN101110718B (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

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

Self-adaptive link detection method and device
Technical Field
The invention belongs to the communication technology field, in particular to a self-adaptive link detection method and a device thereof in the communication field.
Background
In the communication field, links between interface boards need to be detected in real time in practical application, and when data is sent, the links in a normal state are selected to send the data, otherwise, data loss is caused, and business application is influenced. When detecting a link, a routing table is maintained, if the link is normal, the link is added into the routing table, and when sending data, the available link in the routing table is used for sending the data.
Currently, link detection is performed by using the physical state of a link as a detection condition and using the logical state of the link as a detection condition. The physical state of the link mainly takes the loss of bottom layer signals and the loss of frames as judgment indexes, the link is considered to be normal when no signal loss and no frame loss occur in the link, otherwise, the link is considered to be failed.
In practical applications, when the physical state is normal, the actual link is not always normal. For example, when a link is failed by a self-loop or an intermediate forwarding node, the detected physical state of the link is normal, but actually the link at this time cannot normally communicate, and the link should not be written into the routing table. This is a drawback for link detection, and the physical state cannot accurately reflect the real state of the link, resulting in data loss and affecting the service.
The method of setting the route by the logical state is also disadvantageous in that the logical state of the link (handshake state of the upper layer application) is used as a method of detecting the condition. The logic state detection method includes that a local terminal sends a detection packet to an opposite terminal at regular time through a link, the opposite terminal sends a response to the local terminal after receiving the detection packet, the local terminal considers that the logic state of the link is normal when receiving the response of the opposite terminal, the logic state of the link is a fault when receiving no response of the opposite terminal, and the logic state of the link is a self-loop when receiving the detection packet or response sent by the local terminal. However, this detection method requires that the opposite end must be able to react to the detection packet sent by the home end, that is, the opposite end and the home end are required to be devices of the same platform, and if the opposite end is due to the problem of version compatibility, the opposite end and the home end are devices of different platforms, and the opposite end is a device of another manufacturer, the logic detection method will fail. Therefore, as a carrier class device, a high requirement is required in terms of reliability of system operation.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a self-adaptive link detection method and device thereof, so as to solve the defect problem existing in the current link detection mechanism.
In order to solve the above problem, the present invention provides an adaptive link detection method, which is characterized by comprising the following steps:
(1) acquiring and storing actual link configuration information;
(2) setting a physical state and logic state mixed detection mode of the link and a corresponding route judgment condition for the link, and detecting the physical state and logic state of the link;
(3) and when the detected physical state or the logic state of the link is changed, updating a routing table according to the routing judgment condition.
The method of the present invention, wherein the link configuration information in step (1) includes: which link on the interface board is connected with the opposite terminal equipment and the detection mode of each link;
the step (2) further comprises:
if the opposite terminal equipment and the local terminal equipment connected by the link are different platforms, setting a physical state and logic state mixed detection mode or a single physical state detection mode according to the link and route judgment conditions corresponding to different modes for the link;
if the opposite terminal equipment and the local terminal equipment connected by the link are the same platform, setting one of a physical state and logic state mixed detection mode, a single link logic state detection mode or a single link physical state detection mode and routing judgment conditions corresponding to different modes for the link;
the physical state and logic state mixed detection mode of the link detects the physical state of the link according to the actual link configuration obtained in the step (1), detects the signal loss and frame loss indexes of the link bottom layer, when the link has no signal loss and frame loss, the physical state of the link is normal, otherwise, the physical state of the link fails;
and (2) detecting the logic state of the timing detection link according to the actual link configuration acquired in the step (1), wherein a local terminal sends a detection packet to an opposite terminal at regular time through the link, the opposite terminal sends a response to the local terminal after receiving the response, the local terminal receives the response, the logic state of the link is normal, the logic state of the link is a fault if the opposite terminal does not receive the response, and the logic state of the link is self-loop if the detection packet or the response sent by the local terminal is received.
The method of the present invention, wherein the route discrimination condition corresponding to the hybrid detection mode includes:
when the logic state is normal and the physical state is normal, writing the link into a routing table;
when the logic state is normal and the physical state is failed, writing the link into a routing table;
when the logic state is failed and the physical state is normal, writing the link into a routing table;
when the logic state fails and the physical state fails, deleting the link from a routing table;
when the logic state is self-loop and the physical state is normal, deleting the link from the routing table;
when the logic state is self-loop and the physical state is failure, the link is deleted from the routing table.
The method of the present invention, wherein the step (3) further comprises:
when the actual link configuration is modified, link configuration information is obtained again and updated, a routing table is emptied, and the physical state and the logical state of the link are detected according to the new link configuration;
when the detection mode of the link is modified, deleting the link from the routing table, and carrying out routing judgment according to the new detection mode and the physical state and the logic state of the link;
in the above method, if no peer response is received, the logical state of the link is a failure, and further if no peer response is received for 3 consecutive times, the logical state of the link is a failure;
each detection packet in the logic state detection has a serial number, when the local terminal receives the response, the local terminal needs to check the serial number field, and only if the serial number is in an allowed receiving window, the local terminal confirms that the response is effective; wherein the window size is set to 5.
The method of the present invention, wherein the step (2) further comprises:
when the link needs to be strictly detected, a single detection mode according to the logic state of the link and a corresponding route judgment condition are set for the link; when loose detection needs to be carried out on the link, a single detection mode according to the link physical state and a corresponding route judgment condition are set for the link.
The method of the present invention, wherein the route discrimination condition corresponding to the link set to the single link logic state detection mode includes:
when the logic state is normal, writing the link into a routing table;
when the logic state is self-loop, deleting the link from the routing table;
when the logic state fails, the link is removed from the routing table.
When the link is set to a single route discrimination condition corresponding to the link physical state detection mode, the method includes:
when the physical state is normal, writing the link into a routing table;
when the physical state fails, this link is removed from the routing table.
In order to solve the above problem, the present invention further provides an adaptive link detection apparatus, including: a data configuration module, a link detection module and a route discrimination module, wherein,
the data configuration module is used for acquiring, storing and setting actual link configuration information; setting a mixed detection mode of a physical state and a logic state and a corresponding route judgment condition for the link;
the link detection module is used for detecting the physical state and the logic state of the link;
and the routing discrimination module is used for setting a routing table according to the physical state and the logic state of the link detected by the link detection module and combining a link detection mode, adding the normal link into the routing table and deleting the fault link from the routing table.
The apparatus of the present invention, wherein the link configuration information in the data configuration module includes: which link on the interface board is connected with the opposite terminal equipment and the detection mode of each link;
the data configuration module is further configured to set a physical state and logic state hybrid detection mode or a single physical state detection mode according to a link for the link and a route discrimination condition corresponding to a different mode if the peer device and the home device connected by the link are different platforms; and if the opposite terminal equipment and the local terminal equipment connected by the link are the same platform, setting one of a physical state and logic state mixed detection mode, a single detection mode according to the link logic state or a single detection mode according to the link physical state and route judgment conditions corresponding to different modes for the link.
The device of the invention, wherein the link detection module is composed of a physical state detection module of the link and a logic state detection module of the link, wherein,
the link physical state detection module is used for detecting the physical state of the link at regular time and detecting the signal loss and frame loss indexes of the bottom layer of the link, when the link has no signal loss and frame loss, the link physical state is normal, otherwise, the link physical state is failed;
the logic state detection module of the link is used for sending a detection packet to an opposite terminal at regular time through the link by the local terminal, the opposite terminal sends a response to the local terminal after receiving the response, the logic state of the link is normal if the local terminal receives the response, the logic state of the link is a fault if the opposite terminal does not receive the response, and the logic state of the link is self-loop if the detection packet or the response sent by the local terminal is received.
The device of the present invention, wherein the data configuration module is further configured to, when modifying the actual link configuration, reacquire and update link configuration information, and notify the route discrimination module and the link detection module that the link configuration is modified; when the detection mode of the link is modified, the route discrimination module is informed that the detection mode of the link is modified;
the link detection module starts to detect the physical state and the logic state of the link according to the new link configuration when the actual link configuration is modified;
the routing discrimination module is further configured to empty a routing table when the actual link configuration is modified; when the detection mode of the link is modified, the link is deleted from the routing table, and the routing judgment is carried out according to the new detection mode and the physical state and the logic state of the link.
The device of the invention, wherein, the data configuration module is further used for setting a single detection mode according to the link logic state and a corresponding route judgment condition for the link when the link needs to be strictly detected; when loose detection needs to be carried out on the link, a single detection mode according to the link physical state and a corresponding route judgment condition are set for the link.
The apparatus of the present invention, wherein the route discrimination condition corresponding to the hybrid detection mode includes:
when the logic state is normal and the physical state is normal, writing the link into a routing table;
when the logic state is normal and the physical state is failed, writing the link into a routing table;
when the logic state is failed and the physical state is normal, writing the link into a routing table;
when the logic state fails and the physical state fails, deleting the link from a routing table;
when the logic state is self-loop and the physical state is normal, deleting the link from the routing table;
when the logic state is self-loop and the physical state is failed, deleting the link from the routing table;
the routing discrimination condition corresponding to the single link logic state detection mode includes:
when the logic state is normal, writing the link into a routing table;
when the logic state is self-loop, deleting the link from the routing table;
when the logic state fails, deleting the link from the routing table;
the route discrimination condition corresponding to the single link physical state detection mode comprises the following steps:
when the physical state is normal, writing the link into a routing table;
when the physical state fails, this link is removed from the routing table.
The invention combines the physical state and the logic state as the basis of the link detection, so that the detection can be self-adaptively detected according to the opposite end condition, the defect of single physical state detection is overcome, and the limitation of single logic state detection is also overcome. The link detection mode can be set to be single detection depending on logic state according to actual requirements, for example, when the link needs to be strictly detected; if loose detection is needed to be carried out on the link, the link detection mode is set to be single and depends on physical state detection, and the reliability and flexibility of link detection are improved.
Drawings
Fig. 1 is a schematic diagram of an actual application environment of a self-adaptive link detection method and a device thereof according to an embodiment of the present invention;
FIG. 2 is a block diagram of an adaptive link detection apparatus according to an embodiment of the present invention;
fig. 3 is a flow chart of route discrimination in an adaptive link detection method according to an embodiment of the present invention;
fig. 4 is a flowchart of an adaptive link detection method according to an embodiment of the present invention.
Detailed Description
The invention provides a self-adaptive link detection method and a self-adaptive link detection device, which are used for solving the defect problem existing in the current link detection mechanism. The following detailed description of the embodiments is not intended to limit the invention.
The invention relates to a self-adaptive detection mechanism which combines the logic state and the physical state of a link, sets a link detection mode into a mixed detection mode of two modes, and can automatically switch the logic state and the physical state during link detection. When the logic state is invalid, the physical state is automatically switched to, and the route is judged according to the physical state of the link, so that the detection defect existing by singly depending on the physical state of the link can be overcome, and the limitation problem existing by singly depending on the detection of the logic state can also be solved. Meanwhile, according to actual requirements, when the link needs to be strictly detected, the link detection mode is set to be single detection depending on a logic state; when loose link detection is needed, the link detection mode is set to be detected by depending on the physical state singly, so that the flexibility of a link detection mechanism is increased. As shown in fig. 4, steps 401 and 403 are the above contents.
As shown in fig. 1, 2 scenarios of connecting the same platform device and different platform devices to each other are described.
As shown in fig. 2, a structure diagram of an adaptive link detection apparatus mainly includes:
the data configuration module 201 obtains and stores actual link configuration, which link is actually connected to the opposite terminal device on the interface board, the detection mode of each link, and obtains and stores the configuration information, the link detection module 202 detects according to the actual link configuration, and when the configuration is modified, the data configuration module 201 needs to update link configuration data;
a link detection module 202, which is divided into two mutually independent sub-modules, a physical state detection module 204 and a logical state detection module 205; detecting a link according to the actual link configuration, and detecting the actually configured link in the system; the method comprises the steps of detecting the physical state of a link at fixed time and detecting the logic state of the link at fixed time; wherein,
the link physical state detection module 204 detects the conditions of signal loss and frame loss of the link bottom layer at regular time, and judges whether the link physical state is normal according to the conditions of signal loss and frame loss of the link;
a logic state detection module 205 of the link, where the home terminal sends a detection packet to the opposite terminal at regular time through the link, the opposite terminal sends a response to the home terminal after receiving the response, the home terminal considers that the logic state of the link is normal if receiving the response, the logic state of the link is a failure if receiving no response, and the logic state of the link is a self-loop if receiving the detection packet or response sent by the home terminal itself;
the routing discrimination module 203 sets a routing table according to the physical state and the logical state of the link detected by the link detection module 202, adds the normal link into the routing table, and deletes the failed link from the routing table.
In fig. 1, if the opposite end is connected to different platform devices, which is the case when the opposite end and the home end belong to different platform devices, the link detection mode is set to the hybrid detection mode, that is, the physical state and the logical state of the link are combined as the condition for judging the link route. Because products belonging to different platforms require the opposite terminal to send response messages, the detection mechanism that the opposite terminal equipment is compatible with the local terminal system is required to have no operability; therefore, when the opposite end and the home end belong to different platform devices, the detection message of the home end cannot be responded, so that the link logic states are only two in nature, namely, self-loop and failure (indicating non-self-loop). When the opposite terminal is connected with different platform devices from the local terminal, a single physical detection mode can be used; when single logic detection is used, the opposite end cannot respond to the detection packet of the local end, and the single logic detection fails.
The implementation mode of the self-adaptive link detection method is as follows:
step 1: acquiring and storing actual link configuration information through a data configuration module 201;
step 2: the data configuration module 201 sets a link detection mode for the link, and sets the link detection mode as a hybrid detection mode according to the physical state and the logical state of the link;
and step 3: the physical state detection module 204 detects the physical state of the link at regular time according to the actual link configuration acquired by the data configuration module 201, and detects indexes such as Loss of signal (Loss of signal) and Loss of Frame (Loss of Frame) of the link bottom layer; if the link has no signal loss and frame loss, the physical state of the link is considered to be normal, otherwise, the physical state of the link is considered to be fault;
the logic state detection module 205 detects the logic state of the link at regular time according to the actual link configuration acquired by the data configuration module 201, the local terminal sends a detection packet to the opposite terminal at regular time through the link, and the opposite terminal does not respond to the detection packet of the local terminal due to products belonging to different platforms, so that the link logic states are only two in practice, namely, self-loop and failure (indicating non-self-loop);
and 4, step 4: the routing table is initialized to be empty, and when the logical state or the physical state of the link changes, the routing discrimination module 203 updates the routing table according to the detection mode of the link, the physical state of the link and the logical state of the link;
the detection mode of the link is a hybrid detection mode, and the route discrimination condition of the link is as follows:
(1) the logic state is OK normally, the physical state is OK normally, write this link into the routing table;
(2) writing the link into a routing table when the logic state is normal OK and the physical state is failed BAD;
(3) logic state fault BAD, physical state normal OK, write this link into the routing table;
(4) deleting the link from the routing table by using the logic state failure BAD and the physical state failure BAD;
(5) the logic state self-loop LB, the physical state normal OK, delete this periodic line from the routing list;
(6) deleting the link from the routing table by using a logic state self-loop LB and a physical state failure BAD;
in addition, when loose detection needs to be performed on the link, the detection mode of the link is a single physical detection mode, no matter which device is at the opposite end, and if the physical state of the link is normal, the link is written into the routing table. If the link physical state is failed, deleting the link from the routing table according to the link routing judgment condition; the specific route discrimination conditions are as follows:
(1) when the physical state is normal OK, writing the link into a routing table;
(2) when the physical state fails BAD, this link is removed from the routing table.
And 5: when the actual link configuration is modified, the data configuration module 201 reacquires and updates the link configuration information, and notifies the route discrimination module 203 and the link detection module 202 that the link configuration is modified; the route discrimination module clears the routing table and the link detection module 202 begins to detect the physical state and the logical state of the link according to the new link configuration. And (5) repeating the steps 3 and 4.
Step 6: when the data configuration module 201 modifies the detection mode of the link, it notifies the route discrimination module 203 that the detection mode of the link is modified, and the route discrimination module 203 deletes the link from the route table and discriminates the route according to the new detection mode by combining the physical state and the logical state of the link.
In fig. 1, if the opposite end is connected to a device belonging to the same platform as the home end, the link detection mode is set to the hybrid detection mode, that is, the physical state and the logical state of the link are combined as the condition for judging the link route. Because the products belong to the same platform, the opposite end can respond to the detection packet sent by the local end;
the implementation mode of the self-adaptive link detection method is as follows:
step 1: acquiring and storing actual link configuration information through a data configuration module 201;
step 2: the data configuration module 201 sets a link detection mode for the link, and sets the link detection mode as a hybrid detection mode according to the link;
and step 3: the physical state detection module 204 detects the physical state of the link at regular time according to the actual link configuration acquired by the data configuration module 201, and detects indexes such as Loss of signal (Loss of signal) and Loss of Frame (Loss of Frame) of the link bottom layer; if the link has no signal loss and frame loss, the physical state of the link is considered to be normal, otherwise, the physical state of the link is considered to be fault;
the logic state detection module 205 detects the logic state of the link at regular time according to the actual link configuration acquired by the data configuration module 201, and the local terminal sends a detection packet to the opposite terminal at regular time through the link, and the opposite terminal can respond to the detection packet sent by the local terminal due to the products belonging to the same platform; the local end sends detection packet to the opposite end regularly through the link, the opposite end sends response to the local end after receiving the response, the local end considers that the logic state of the link is normal after receiving the response, the logic state of the link is fault if the opposite end does not receive the response for 3 times continuously, and the logic state of the link is self-loop if receiving the detection packet or response sent by the local end.
Note: each detection packet REQ carries a sequence number, and when the local terminal receives a response, the local terminal checks the sequence number field, and only if the sequence number is within an allowed reception window, the local terminal confirms that the response is valid (the window size is set to 5).
And 4, step 4: the routing table is initialized to be empty, and when the logical state or the physical state of the link changes, the routing discrimination module 203 updates the routing table according to the detection mode of the link, the physical state of the link, and the logical state of the link.
When the link detection mode is the hybrid detection mode, the link route discrimination condition is as follows (as shown in fig. 3):
(1) the logic state is OK normally, the physical state is OK normally, write this link into the routing table;
(2) writing the link into a routing table when the logic state is normal OK and the physical state is failed BAD;
(3) logic state fault BAD, physical state normal OK, write this link into the routing table;
(4) deleting the link from the routing table by using the logic state failure BAD and the physical state failure BAD;
(5) the logic state self-loop LB, the physical state normal OK, delete this periodic line from the routing list;
(6) deleting the link from the routing table by using a logic state self-loop LB and a physical state failure BAD;
in addition, when the link needs to be strictly detected, the detection mode of the link is a single logic state detection mode, and the link route judgment condition is as follows:
(1) when the logic state is normal OK, writing the link into a routing table;
(2) when the logic state is from the ring LB, deleting the link from the routing table;
(3) when the logic state fails BAD, the link is removed from the routing table.
In addition, when the link needs to be loosely detected, the detection mode of the link is a single physical state detection mode, and the link route discrimination condition is as follows:
(1) when the physical state is normal OK, writing the link into a routing table;
(2) when the physical state fails BAD, this link is removed from the routing table.
And 5: when the actual link configuration is modified, the data configuration module 201 reacquires and updates the link configuration information, and notifies the route discrimination module 203 and the link detection module 202 that the link configuration is modified; the route discrimination module 203 clears the route table, and the link detection module 202 starts to detect the physical state and the logical state of the link according to the new link configuration. And (5) repeating the steps 3 and 4.
Step 6: when the detection mode of the link is modified, the data configuration module 201 notifies the route discrimination module 203 that the detection mode of the link is modified, the route discrimination module 203 deletes the link from the route table, and performs route discrimination according to the new detection mode by combining the physical state and the logical state of the link.
The embodiment of the invention combines the physical state and the logic state as the basis of the link detection, so that the detection can be self-adaptively detected according to the opposite end condition, the defect of single physical state detection is overcome, and the limitation of single logic state detection is also overcome. The link detection mode can be set to be single detection depending on logic state according to actual requirements, for example, when the link needs to be strictly detected; if loose detection is needed to be carried out on the link, the link detection mode is set to be single and depends on physical state detection, and the reliability and flexibility of link detection are improved.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it is therefore intended that all such changes and modifications as fall within the true spirit and scope of the invention be considered as within the following claims.

Claims (13)

1. An adaptive link detection method, comprising the steps of:
(1) acquiring and storing actual link configuration information;
(2) setting a physical state and logic state mixed detection mode of the link and a corresponding route judgment condition for the link, and detecting the physical state and logic state of the link;
(3) and when the detected physical state or the logic state of the link is changed, updating a routing table according to the routing judgment condition.
2. The method of claim 1, wherein the link configuration information in step (1) comprises: which link on the interface board is connected with the opposite terminal equipment and the detection mode of each link;
the step (2) further comprises:
if the opposite terminal equipment and the local terminal equipment connected by the link are different platforms, setting a physical state and logic state mixed detection mode or a single physical state detection mode according to the link and route judgment conditions corresponding to different modes for the link;
if the opposite terminal equipment and the local terminal equipment connected by the link are the same platform, setting one of a physical state and logic state mixed detection mode, a single link logic state detection mode or a single link physical state detection mode and routing judgment conditions corresponding to different modes for the link;
the physical state and logic state mixed detection mode of the link detects the physical state of the link according to the actual link configuration obtained in the step (1), detects the signal loss and frame loss indexes of the link bottom layer, when the link has no signal loss and frame loss, the physical state of the link is normal, otherwise, the physical state of the link fails;
and (2) detecting the logic state of the timing detection link according to the actual link configuration acquired in the step (1), wherein a local terminal sends a detection packet to an opposite terminal at regular time through the link, the opposite terminal sends a response to the local terminal after receiving the response, the local terminal receives the response, the logic state of the link is normal, the logic state of the link is a fault if the opposite terminal does not receive the response, and the logic state of the link is self-loop if the detection packet or the response sent by the local terminal is received.
3. The method of claim 2, wherein the routing discrimination condition for the hybrid detection mode comprises:
when the logic state is normal and the physical state is normal, writing the link into a routing table;
when the logic state is normal and the physical state is failed, writing the link into a routing table;
when the logic state is failed and the physical state is normal, writing the link into a routing table;
when the logic state fails and the physical state fails, deleting the link from a routing table;
when the logic state is self-loop and the physical state is normal, deleting the link from the routing table;
when the logic state is self-loop and the physical state is failure, the link is deleted from the routing table.
4. The method of claim 1, wherein step (3) further comprises:
when the actual link configuration is modified, link configuration information is obtained again and updated, a routing table is emptied, and the physical state and the logical state of the link are detected according to the new link configuration;
and when the detection mode of the link is modified, deleting the link from the routing table, and carrying out routing judgment according to the new detection mode and the physical state and the logic state of the link.
5. The method of claim 2, wherein the logical state of the link is a failure if no peer response is received, and further wherein the logical state of the link is a failure if no peer response is received for 3 consecutive times;
each detection packet in the logic state detection has a serial number, when the local terminal receives the response, the local terminal needs to check the serial number field, and only if the serial number is in an allowed receiving window, the local terminal confirms that the response is effective; wherein the window size is set to 5.
6. The method of claim 1, wherein step (2) further comprises:
when the link needs to be strictly detected, a single detection mode according to the logic state of the link and a corresponding route judgment condition are set for the link; when loose detection needs to be carried out on the link, a single detection mode according to the link physical state and a corresponding route judgment condition are set for the link.
7. The method of claim 2 or 6, wherein the corresponding route discrimination condition when the link is set to a single per-link logic state detection mode comprises:
when the logic state is normal, writing the link into a routing table;
when the logic state is self-loop, deleting the link from the routing table;
when the logic state fails, the link is removed from the routing table.
When the link is set to a single route discrimination condition corresponding to the link physical state detection mode, the method includes:
when the physical state is normal, writing the link into a routing table;
when the physical state fails, this link is removed from the routing table.
8. An adaptive link detection apparatus, comprising: a data configuration module, a link detection module and a route discrimination module, wherein,
the data configuration module is used for acquiring, storing and setting actual link configuration information; setting a mixed detection mode of a physical state and a logic state and a corresponding route judgment condition for the link;
the link detection module is used for detecting the physical state and the logic state of the link;
and the routing discrimination module is used for setting a routing table according to the physical state and the logic state of the link detected by the link detection module and combining a link detection mode, adding the normal link into the routing table and deleting the fault link from the routing table.
9. The apparatus of claim 8, wherein the link configuration information in the data configuration module comprises: which link on the interface board is connected with the opposite terminal equipment and the detection mode of each link;
the data configuration module is further configured to set a physical state and logic state hybrid detection mode or a single physical state detection mode according to a link for the link and a route discrimination condition corresponding to a different mode if the peer device and the home device connected by the link are different platforms; and if the opposite terminal equipment and the local terminal equipment connected by the link are the same platform, setting one of a physical state and logic state mixed detection mode, a single detection mode according to the link logic state or a single detection mode according to the link physical state and route judgment conditions corresponding to different modes for the link.
10. The apparatus of claim 9, wherein the link detection module is comprised of a physical state detection module of the link and a logical state detection module of the link, wherein,
the link physical state detection module is used for detecting the physical state of the link at regular time and detecting the signal loss and frame loss indexes of the bottom layer of the link, when the link has no signal loss and frame loss, the link physical state is normal, otherwise, the link physical state is failed;
the logic state detection module of the link is used for sending a detection packet to an opposite terminal at regular time through the link by the local terminal, the opposite terminal sends a response to the local terminal after receiving the response, the logic state of the link is normal if the local terminal receives the response, the logic state of the link is a fault if the opposite terminal does not receive the response, and the logic state of the link is self-loop if the detection packet or the response sent by the local terminal is received.
11. The apparatus of claim 8, wherein the data configuration module is further configured to, when the actual link configuration is modified, retrieve and update link configuration information while notifying the routing discrimination module and the link detection module that the link configuration is modified; when the detection mode of the link is modified, the route discrimination module is informed that the detection mode of the link is modified;
the link detection module starts to detect the physical state and the logic state of the link according to the new link configuration when the actual link configuration is modified;
the routing discrimination module is further configured to empty a routing table when the actual link configuration is modified; when the detection mode of the link is modified, the link is deleted from the routing table, and the routing judgment is carried out according to the new detection mode and the physical state and the logic state of the link.
12. The apparatus of claim 8, wherein the data configuration module is further configured to set a single according-link logic state detection mode and a corresponding route discrimination condition for the link when the link needs to be strictly detected; when loose detection needs to be carried out on the link, a single detection mode according to the link physical state and a corresponding route judgment condition are set for the link.
13. The apparatus according to claim 9 or 12, wherein the route discrimination condition corresponding to the hybrid detection mode includes:
when the logic state is normal and the physical state is normal, writing the link into a routing table;
when the logic state is normal and the physical state is failed, writing the link into a routing table;
when the logic state is failed and the physical state is normal, writing the link into a routing table;
when the logic state fails and the physical state fails, deleting the link from a routing table;
when the logic state is self-loop and the physical state is normal, deleting the link from the routing table;
when the logic state is self-loop and the physical state is failed, deleting the link from the routing table;
the routing discrimination condition corresponding to the single link logic state detection mode includes:
when the logic state is normal, writing the link into a routing table;
when the logic state is self-loop, deleting the link from the routing table;
when the logic state fails, deleting the link from the routing table;
the route discrimination condition corresponding to the single link physical state detection mode comprises the following steps:
when the physical state is normal, writing the link into a routing table;
when the physical state fails, this link is removed from the 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 true CN101110718A (en) 2008-01-23
CN101110718B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711163A (en) * 2012-07-11 2012-10-03 烽火通信科技股份有限公司 Method for rapidly detecting alarm link failure in IP (internal protocol)-RAN (random access network) equipment
CN102761461A (en) * 2012-08-01 2012-10-31 杭州迪普科技有限公司 Link health checking method and device
CN107104837A (en) * 2017-05-09 2017-08-29 华为技术有限公司 The method and control device of path detection
CN108718252A (en) * 2018-05-10 2018-10-30 光脚信息科技(南京)有限公司 A kind of framework for realizing content network transmission

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003526278A (en) * 2000-03-03 2003-09-02 ルミナス ネットワークス インコーポレイテッド Routing switch for dynamically rerouting traffic due to failed link detection
CN1328889C (en) * 2002-06-06 2007-07-25 中兴通讯股份有限公司 Routing method based on link status
CN1953565B (en) * 2005-10-18 2010-04-14 中兴通讯股份有限公司 A route update method for No.7 signalling system

Cited By (7)

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

Also Published As

Publication number Publication date
CN101110718B (en) 2010-08-18

Similar Documents

Publication Publication Date Title
CN101558609B (en) Method, device and system for ring protection
CN111164923B (en) Design for unidirectional data transmission
US9077558B2 (en) Client/bridge failure recovery method and system
CN101110718B (en) Self-adapting chain circuit detecting method and device thereof
CN102195861A (en) Method and device for establishing BFD (bidirectional forwarding detection) session in route switching process
CN104040959A (en) Ring protection state aware bandwidth adaptation
CN101465839B (en) Transmission control method and apparatus for serial data
CN107241216A (en) Maintain the method and device of the stable transmission of critical data
CN101540699A (en) Method and device for realizing remote maintenance of network equipment
CN102857574B (en) Information processing method and apparatus for Internet of Things
US20030012131A1 (en) Communication network with a ring topology
CN102984739A (en) Breakdown information processing method and processing device
CN104955136A (en) Terminal management apparatus, terminal, communication system, terminal management method, and program
CN103051484A (en) Method and system for processing session service and session border controller
US8229414B1 (en) Release of temporarily allocated number triggered by voice disconnect at mobile switching center
CN113162834A (en) Data transmission method, equipment and system
CN112422428B (en) Link state acquisition method and device, electronic equipment and readable storage medium
CN100429638C (en) Auto-determination of DTE/DCE connection
CN101800684A (en) Method, system and equipment for detecting signaling equipment
CN101465739A (en) Method and equipment for implementing authentication mode smooth transition
JP4612529B2 (en) Communication device and redundant system switching method
CN101090514B (en) Method for implementing mobile terminal called when mobile exchange centre simulation abnormal
CN102082711A (en) Method for preventing dithering during automatic message detection and network element equipment
CN101964833A (en) Method, system and equipment for displaying personalized signature
JP3711759B2 (en) Wireless communication network system

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

Termination date: 20160822

CF01 Termination of patent right due to non-payment of annual fee