CN105765909A - Link switching method and device - Google Patents

Link switching method and device Download PDF

Info

Publication number
CN105765909A
CN105765909A CN201380000495.1A CN201380000495A CN105765909A CN 105765909 A CN105765909 A CN 105765909A CN 201380000495 A CN201380000495 A CN 201380000495A CN 105765909 A CN105765909 A CN 105765909A
Authority
CN
China
Prior art keywords
link
node
error rate
bit error
bfd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201380000495.1A
Other languages
Chinese (zh)
Inventor
杨佩林
汪祖亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105765909A publication Critical patent/CN105765909A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses a link switching method and device. The method comprises the steps that: a local bidirectional forwarding and detection BFD node obtains the bit error rate of each link from far end BFD nodes to the local BFD node; the local BFD node selects the link whose bit error rate is lower than a set threshold as a working link; and the local BFD node sends the identifier of the working link to the far end BFD nodes so as to enable the far end BFD nodes to switch the link corresponding to the identifier into the working link. According to the invention, the link switching method and device solve the problem of the prior art that a probabilistic packet loss fault cannot be detected, and an out of service problem of a base station is further is caused.

Description

A kind of link switch-over method and device
Technical field
The present invention relates to communication technical field, particularly to a kind of link switch-over method and device.
Background technology
Deploy the network that full Internet protocol (allInternetProtocol, allIP) carries at present, generally adopt two-way converting detection (BidirectionalForwardingDetection, BFD) technology to detect link failure.
By receiving interval (RXInterval), BFD technology comes whether detection messages exists the situation of continual data package dropout, thus judging whether link breaks down.BFD technology can realize Link State detection, in Link State detection process, generally only when detecting continuous three and above packet error or packet loss, just can judge that link failure occurs, therefore, for the probability packet loss that error code causes, the quantity of the probability packet loss caused due to error code is unable to reach continuous three, so, BFD technology cannot be detected.The probability packet loss that error code causes is owing to, in signals transmission, decay changes the voltage of signal, causes signal to be destroyed in transmitting procedure and produces error code, so that the situation of data-bag lost.Probability packet loss is usually the pulse that caused by noise, alternating current or lightning, interface loosens, light mouth pollutes or the factor such as sudden temperature rise causes, and the probability packet loss fault that these factors cause is likely to cause the serious problems such as base station service quit.
Summary of the invention
The embodiment of the present invention provides a kind of link switch-over method and device, probability packet loss fault cannot be detected in order to solve prior art, thus the problems such as the base station service quit caused.
First aspect, it is provided that a kind of link switch-over method, including:
Local two-way converting detection BFD node obtains the bit error rate from far-end BFD node to each of the links of described local BFD node;
Described local BFD node selects the bit error rate lower than the link setting threshold value, as active link;
Described local BFD node sends the mark of described active link to described far-end BFD node, so that the link switching of the mark correspondence received is active link by described far-end BFD node.
In conjunction with first aspect, in the implementation that the first is possible, described local BFD node obtains the bit error rate from far-end BFD node to each of the links of described local BFD node, specifically includes:
When there is at least one intermediate node between described local BFD node and described far-end BFD node, described local BFD node obtains the bit error rate from described far-end BFD node to each of the links of described local BFD node by following step:
Described local BFD nodal test also obtains the first kind bit error rate of local link between the intermediate node being adjacent;
Described local BFD node controls message, the Equations of The Second Kind bit error rate of the acquisition link from the neighbors of this intermediate node to this intermediate node by the link that each intermediate node sends;
For each link, described local BFD node controls the Equations of The Second Kind bit error rate carried on message based on the link that the intermediate node on this link sends, with the first kind bit error rate that described local node detects, acquisition is from far-end BFD node to the bit error rate of the link of local BFD node.
In conjunction with first aspect, in the implementation that the second is possible, described local BFD node sends the mark of described active link to described far-end BFD node, specifically includes:
Described local BFD node sends link to described far-end BFD node and controls message, described link controls to carry the mark of link and extension error code field in message, and described extension error code field is in order to indicate described far-end BFD node using the bit error rate lower than setting the link of threshold value as active link.
In conjunction with the implementation that the second of first aspect is possible, in the implementation that the third is possible, described extension error code field includes error code alarm type BERType field, coefficient field and power exponent field, wherein, described BERType is in order to characterize whether the bit error rate exceedes threshold value, and described coefficient field represents the size of the bit error rate together with power exponent field.
In conjunction with first aspect, or any one the possible implementation above-mentioned in conjunction with first aspect, in the 4th kind of possible implementation, described local BFD node selects the bit error rate lower than the link setting threshold value, as active link, specifically includes:
When described local BFD node determines the bit error rate lower than the link setting threshold value as multiple link, described local BFD node selection active link is as active link.
Second aspect, it is provided that a kind of link switching device, including:
Acquisition module, detects the BFD node bit error rate to each of the links of this device for obtaining from far-end two-way converting;
Select module, for selecting the bit error rate lower than the link setting threshold value, as active link;
Sending module, for sending the mark of described active link, so that the link switching of the mark correspondence received is active link by described far-end BFD node to described far-end BFD node.
In conjunction with second aspect, in the implementation that the first is possible, described acquisition module, specifically for:
When there is at least one intermediate node between this device and described far-end BFD node, detect and obtain this device first kind bit error rate to the link between the intermediate node being adjacent;The link sent by each intermediate node controls message, the Equations of The Second Kind bit error rate of the acquisition link from the neighbors of this intermediate node to this intermediate node;For each link, based on the Equations of The Second Kind bit error rate carried on the link control message that the intermediate node on this link sends, and the first kind bit error rate detected, obtain the bit error rate from far-end BFD node to the link of local BFD node.
In conjunction with second aspect, in the implementation that the second is possible, described sending module, specifically for:
Send link to described far-end BFD node and control message, described link controls to carry the mark of link and extension error code field in message, and described extension error code field is in order to indicate described far-end BFD node using the bit error rate lower than setting the link of threshold value as active link.
In conjunction with the implementation that the second of second aspect is possible, in the implementation that the third is possible, described sending module is further used for, described extension error code field is carried error code alarm type BERType field, coefficient field and power exponent field, wherein, described BERType is in order to characterize whether the bit error rate exceedes threshold value, and described coefficient field represents the size of the bit error rate together with power exponent field.
In conjunction with second aspect, or any one possible implementation above-mentioned of second aspect, in the 4th kind of possible implementation, described selection module, specifically for when determining the bit error rate lower than the link setting threshold value as multiple link, selecting active link as active link.
The third aspect, it is provided that a kind of two-way converting detection BFD link detecting equipment, including transceiver, processor and memorizer, described memorizer is used for storing program code, wherein:
Described transceiver, for obtaining the bit error rate from far-end BFD node to each of the links of this equipment;
Described processor, for calling the program code in described memorizer, performs following operation:
Select the bit error rate lower than the link setting threshold value, as active link;
The mark of described active link is sent to described far-end BFD node, so that the link switching of the mark correspondence received is active link by this far-end BFD node by described transceiver.
In conjunction with the third aspect, in the implementation that the first is possible, described processor, specifically for:
When there is at least one intermediate node between this equipment and described far-end BFD node, detect and obtain this equipment first kind bit error rate to the link between the intermediate node being adjacent;The link sent by each intermediate node of described transceivers controls message, and controls to obtain message the Equations of The Second Kind bit error rate of the link from the neighbors of this intermediate node to this intermediate node from described link;For each link, based on the Equations of The Second Kind bit error rate carried on the link control message that the intermediate node on this link sends, and the first kind bit error rate detected, obtain the bit error rate from far-end BFD node to the link of this equipment.
In conjunction with the third aspect, in the implementation that the second is possible, described transceiver, specifically for:
Send link to described far-end BFD node and control message, described link controls to carry the mark of link and extension error code field in message, and described extension error code field is in order to indicate described far-end BFD node using the bit error rate lower than setting the link of threshold value as active link.
In conjunction with the implementation that the second of the third aspect is possible, in the implementation that the third is possible, described transceiver, it is further used for:
Carrying error code alarm type BERType field, coefficient field and power exponent field in described extension error code field, wherein, described BERType is in order to characterize whether the bit error rate exceedes threshold value, and described coefficient field represents the size of the bit error rate together with power exponent field.
In conjunction with the third aspect, or any one possible implementation above-mentioned of the third aspect, in the 4th kind of possible implementation, described processor, specifically for when determining the bit error rate lower than the link setting threshold value as multiple link, selecting active link as active link.
In the embodiment of the present invention, BFD Error detection function is disposed for BFD link detecting equipment (including local BFD node and far-end BFD node), detect the bit error rate from local BFD node to the link of far-end BFD node, can using the bit error rate lower than setting the link of threshold value as active link according to service needed, select the good link of performance, reduce the generation of probability packet loss fault, improve the efficiency of data transmission.
Accompanying drawing explanation
The flow chart of a kind of link switch-over method that Fig. 1 provides for the embodiment of the present invention;
A kind of link that Fig. 2 designs for the embodiment of the present invention controls message format;
Fig. 3 is the link schematic diagram of preferred embodiment one in the present invention;
Fig. 4 is the bit error rate transmission schematic diagram of preferred embodiment two in the present invention;
Fig. 5 is the bit error rate transmission schematic diagram of preferred embodiment three in the present invention;
Fig. 6 is the bit error rate transmission schematic diagram of preferred embodiment four in the present invention;
The structural representation of a kind of link switching device that Fig. 7 provides for the embodiment of the present invention;
The structural representation of a kind of BFD link detecting equipment that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
The embodiment of the present invention devises a kind of link switch-over method, consults shown in Fig. 1, and the method comprises the steps:
Step 101: local BFD node obtains the bit error rate from far-end BFD node to each of the links of local BFD node.
The above-mentioned bit error rate is to weigh the index of data data at the appointed time transmission accuracy, it is possible to be used for weighing the frequency that error code occurs.In general the bit error rate is to be calculated by following formula by the receiving node of data:
The bit error rate=N/M*100%, wherein, N represents the error code transmitted at the appointed time, and M represents the gross yards transmitted at the appointed time.
Link from far-end BFD node to local BFD node generally comprises, and by data from far-end BFD node-node transmission to the active link of local BFD node and reserve link, wherein, local BFD node is receiving node.
In the embodiment of the present invention, BFD node refers to BFD link detecting equipment, it is possible to be the equipment such as provider edge (ProviderEdge, PE).
Step 102: local BFD node selects the bit error rate lower than the link setting threshold value, as active link.
Preferably, the higher limit of connection can be kept to pre-set error threshold value according to practical situation link, when the error code of active link and reserve link is below error threshold value (namely setting threshold value), select active link as active link, this active link is used to carry out message transmission, when the error code of active link and reserve link is all higher than error threshold value, local BFD node is according to the relatively low link of the policy selection bit error rate, as active link.
Step 103: local BFD node sends the mark of above-mentioned active link to far-end BFD node, so that the link switching of the mark correspondence received is active link by said distal ends BFD node.
It is preferred that can be, but not limited to be accomplished by step 101.
Mode one: when not having intermediate node between local BFD node and far-end BFD node, local BFD nodal test also obtains the bit error rate from far-end BFD node to the link of local BFD node.
Mode two: when there is at least one intermediate node between local BFD node and far-end BFD node, local BFD nodal test also obtains the first kind bit error rate of local link between the intermediate node being adjacent.Local BFD node controls message, the Equations of The Second Kind bit error rate of the acquisition link from the neighbors of this intermediate node to this intermediate node by the link that each intermediate node sends.For each link, local BFD node controls the Equations of The Second Kind bit error rate carried on message based on the link that the intermediate node on this link sends, with the first kind bit error rate that local node detects, acquisition is from far-end BFD node to the bit error rate of the link of local BFD node.
Such as, local BFD node is node 1, and far-end BFD node is node N, there are several intermediate nodes between node 1 and node N, and N is the positive integer more than 2.
It is assumed that node 1 detects that the first kind bit error rate from node 2 to the link of node 1 is X1, node 2 detects that the Equations of The Second Kind bit error rate from node 3 to the link of node 2 is X2, node N-1 detects that the Equations of The Second Kind bit error rate from node N to the link of node N-1 is XN-1, then from node N to node, the bit error rate of 1 is (1-X1) * (1-X2) * (1-XN-1).
Again for example, it is possible to by X1X2……XN-1Meansigma methods, as the bit error rate of from node N to node 1.
Above-mentioned local BFD node or intermediate node can adopt the bit error rate of multiple detection method detection link, for instance, CRC (CyclicRedundancyCheck, CRC) mode.Whether the data that local BFD node or intermediate node inspection receive are correct, obtain the bit error rate of link accordingly.
It is preferred that step 103 can be accomplished by:
Local BFD node sends link to far-end BFD node and controls message, and this link controls to carry the mark of link and extension error code field in message, in order to indicate far-end BFD node using the bit error rate lower than setting the link of threshold value as active link.
This extension error code field includes error code alarm type (BitErrorRateType, BERType) field, coefficient field Coefficient and power exponent field Power, wherein, BERType is in order to characterize whether the bit error rate exceedes setting threshold value, or, representing whether the bit error rate returns to below setting threshold value, Coefficient and Power represents the size of the bit error rate together, in order to support the transmission of Error detection result.
It is preferred that determine the bit error rate lower than the link setting threshold value as time multiple at local BFD node, this this locality BFD node using active link as active link.
It is preferred that the link in the embodiment of the present invention controls message can adopt the form in Fig. 2.In Fig. 2, MyDiscriminator represents local BFD node, and YourDiscriminator represents far-end BFD node.Message is controlled compared to the BFD of regulation in the BFD agreement of RFC5880, the link of embodiment of the present invention design controls message and has had more extension error code field, this field includes BERType, Coefficient, Power and Reserved, wherein, BERType represents when being 1 that the bit error rate exceedes setting threshold value, Coefficient represents the coefficient of the bit error rate, Power represents the power/index of the bit error rate, Coefficient and Power represents the size of the bit error rate together, in order to support the transmission of Error detection result.
Below in conjunction with Fig. 3, the preferred embodiments of the present invention one are described.
In Fig. 3, intermediate node P, a PE1 and PE2 between PE1 and PE2, is had to be connected with intermediate node P respectively through LSP link.PE1 and PE2 is directly connected to PE3 by LSP link.PE1 and PE2 has Error detection function.
PE1 is in detection bit error rate of the LSP link of node for the purpose of PE1, when the bit error rate determining a certain LSP link exceedes setting threshold value, link switching order is generated in PE1 this locality, this order carries port index, the information such as bit error rate field and error code notification message, wherein, port index there is the bit error rate exceed the port index information that the LSP link setting threshold value is corresponding, the port index information corresponding lower than another LSP link setting threshold value with the bit error rate, bit error rate field carries the size exceeding the bit error rate setting threshold value, error code notification message is produced by error code.
The link switching order that PE1 generates according to this locality, performs link switching, by the bit error rate lower than setting the LSP link switching of threshold value as active link.
PE1 generates link and controls message, and this link is controlled message is sent to other node, notify other node by the bit error rate lower than setting the LSP link switching of threshold value as active link.
Such as, PE1 is higher than setting threshold value in the bit error rate of the active link detected from PE2 to PE1, and the bit error rate of reserve link is lower than when setting threshold value, reserve link is switched to active link, and send control link packet to PE2, reserve link is switched to active link by notice PE2, carries the mark of reserve link in this control link packet.
Again such as, PE1, when the bit error rate of the active link detected from PE3 to PE1 is lower than setting threshold value, selects active link as active link, and sends control link packet to PE3, notice PE3 selects active link as active link, carries the mark of active link in this control link packet.
Below in conjunction with Fig. 4, the preferred embodiments of the present invention two are described.
In Fig. 4, not having intermediate node between PE1 and PE2, the LSP link between PE1 and PE2 includes primary LSP link and standby LSP link.
PE1 has Error detection function, the bit error rate of the PE1 detection two LSP links from PE2 to PE1.
(1) under normal circumstances, PE1 and PE2 uses primary LSP link transmission business datum, as active link.If PE1 detects that the bit error rate of primary LSP link is more than setting threshold value, and the bit error rate of standby LSP link is lower than setting threshold value, it is then active link by standby LSP link switching, and generate link control message, this link controls message send to PE2, standby LSP link switching is active link by notice PE2, wherein, it is 1 that this link controls the value of BERType in message, representing that the bit error rate of primary LSP link exceedes setting threshold value, Coefficient and Power represents the bit error rate of primary LSP link together.
null(2) when PE1 and PE2 uses standby LSP link as active link,If PE1 detects that the bit error rate of primary LSP link is reduced to below setting threshold value,Or equal to setting threshold value,PE1 then performs link switchback,Using primary LSP link again as active link,And generate link and control message,This link is controlled message send to PE2,Notice PE2 performs link switchback,Using primary LSP link again as active link,Wherein,It is 2 that this link controls the value of BERType in message,Represent that the size of the bit error rate of primary LSP link is restored to less than setting threshold value,Coefficient and Power represents the bit error rate of primary LSP link together,This link is controlled message send to PE2,Standby LSP link switching is active link by notice PE2.
Below in conjunction with Fig. 5, the preferred embodiments of the present invention three are described.
In Fig. 5, between PE1 and PE2, there is an intermediate node P.
The bit error rate of the intermediate node P detection LSP link from PE2 to intermediate node P, and control message by the transmission of this bit error rate to PE1 by link, wherein, the extension error code field of this link control message carries this bit error rate.
The bit error rate of PE1 detection LSP link from intermediate node P to PE1, and based on the bit error rate of intermediate node P transmission, and the bit error rate that PE1 detects, the bit error rate of calculating LSP link from PE2 to PE1.PE1 is based on the bit error rate of the LSP link from PE2 to PE1, it may be judged whether need to perform link switching.If the bit error rate of the primary LSP link from PE2 to PE1 exceedes setting threshold value, and there is the bit error rate of a kind of LSP link from PE2 to PE1 lower than setting threshold value, then using this bit error rate lower than setting the LSP link of threshold value as active link, and PE1 generates link and controls message, and notice PE2 performs link switching.
When PE1 determines that the bit error rate of the primary LSP link from PE2 to PE1 returns to the situation being not more than setting threshold value, PE1 performs link switchback, primary LSP link from PE2 to PE1 switching to active link again, and PE1 generates link and controls message, notice PE2 performs link switchback.
Below in conjunction with Fig. 6, the preferred embodiments of the present invention four are described.
In Fig. 6, between PE1 and PE2, there are two intermediate nodes, respectively P1 and P2.
The bit error rate (being assumed to be the P2 bit error rate) of P2 detection LSP link from PE2 to P2, and control message by the transmission of the P2 bit error rate to P1 by link, wherein, the extension error code field of this link control message carries the P2 bit error rate.
The bit error rate (being assumed to be the P1 bit error rate) of P1 detection LSP link from P2 to P1, and control message by P1 bit error rate transmission to PE1 by link, the P2 link sent is controlled message simultaneously and be forwarded to PE1, thus by P2 bit error rate transmission to PE1.
The bit error rate (being assumed to be the PE1 bit error rate) of PE1 detection LSP link from P1 to PE1, and based on the P2 bit error rate, the P1 bit error rate and the PE1 bit error rate, the bit error rate of calculating LSP link from PE2 to PE1.
PE1 is based on the bit error rate of the LSP link from PE2 to PE1, it may be judged whether need to perform link switching.If the bit error rate of the primary LSP link from PE2 to PE1 exceedes setting threshold value, and there is the bit error rate of a kind of LSP link from PE2 to PE1 lower than setting threshold value, then using this bit error rate lower than setting the LSP link of threshold value as active link, and PE1 generates link and controls message, and notice PE2 performs link switching.
When PE1 determines that the bit error rate of the primary LSP link from PE2 to PE1 returns to the situation being not more than setting threshold value, PE1 performs link switchback, primary LSP link from PE2 to PE1 switching to active link again, and PE1 generates link and controls message, notice PE2 performs link switchback.
Based on same mentality of designing, the embodiment of the present invention additionally provides a kind of link switching device.Consulting shown in Fig. 7, this device includes:
Acquisition module 701, for obtaining the bit error rate from far-end BFD node to each of the links of this device;
Select module 702, for selecting the bit error rate lower than the link setting threshold value, as active link;
Sending module 703, for sending the mark of this active link, so that the link switching of the mark correspondence received is active link by this far-end BFD node to this far-end BFD node.
It is preferred that above-mentioned acquisition module 701 specifically for, when there is at least one intermediate node between this device and this far-end BFD node, detect and obtain this device first kind bit error rate to the link between the intermediate node being adjacent;The link sent by each intermediate node controls message, the Equations of The Second Kind bit error rate of the acquisition link from the neighbors of this intermediate node to this intermediate node;For each link, based on the Equations of The Second Kind bit error rate carried on the link control message that the intermediate node on this link sends, and the first kind bit error rate detected, obtain the bit error rate from far-end BFD node to the link of local BFD node.
It is preferred that above-mentioned sending module 703, specifically for:
Send link to said distal ends BFD node and control message, above-mentioned link controls to carry the mark of link and extension error code field in message, and above-mentioned extension error code field is in order to indicate said distal ends BFD node using the bit error rate lower than setting the link of threshold value as active link.
It is preferred that above-mentioned sending module 703 is further used for, carry in above-mentioned extension error code field:
BERType field, coefficient field and power exponent field, wherein, above-mentioned BERType is in order to characterize whether the bit error rate exceedes threshold value, and above-mentioned coefficient field represents the size of the bit error rate together with power exponent field.
It is preferred that above-mentioned selection module 702, specifically for:
When determining the bit error rate lower than the link setting threshold value as multiple link, select active link as active link.
Above-mentioned link switching device can be the equipment such as provider edge (ProviderEdge, PE).
Embodiments of the invention provide a kind of BFD link detecting equipment, include with reference to shown in Fig. 8: transceiver 801, processor 802, memorizer 803 and bus 804, this transceiver 801, processor 802 are connected with memorizer 803 by bus 804 and are completed mutual communicating, wherein:
This bus 804 can be industry standard architecture (IndustryStandardArchitecture, ISA) bus, external equipment interconnect (PeripheralComponent, PCI) bus or extended industry-standard architecture (ExtendedIndustryStandardArchitecture, EISA) bus etc..This bus 804 can be divided into address bus, data/address bus, control bus etc..For ease of representing, Fig. 8 only represents with a line, it is not intended that only have a bus or a type of bus.
Memorizer 803 is used for storing program code, and this program code includes operational order.Memorizer 803 potentially includes high speed random access memory (randomaccessmemory, RAM), it is also possible to include nonvolatile memory (non-volatilememory), for instance disk memory.
Processor 802 is probably a central processing unit (CentralProcessingUnit, CPU), or specific integrated circuit (ApplicationSpecificIntegratedCircuit, ASIC), or it is configured to implement one or more integrated circuits of the embodiment of the present invention.
Transceiver 801, is mainly used in realizing the transmitting-receiving of communication data between the BFD link detecting equipment in the present embodiment and other BFD node.
Specifically, transceiver 801, for obtaining the bit error rate from far-end BFD node to each of the links of this equipment.
Processor 802, for calling the program code in memorizer 803, in order to perform following operation:
Select the bit error rate lower than the link setting threshold value, as active link;
The mark of this active link is sent to this far-end BFD node, so that the link switching of the mark correspondence received is active link by this far-end BFD node by transceiver 801.
Transceiver 801 is additionally operable to send the mark of this active link to this far-end BFD node.
It is preferred that above-mentioned processor 802 specifically for, when there is at least one intermediate node between this equipment and this far-end BFD node, detect and obtain this equipment first kind bit error rate to the link between the intermediate node being adjacent;
Receive, by transceiver 801, the link control message that each intermediate node sends, and control message obtains the Equations of The Second Kind bit error rate of the link from the neighbors of this intermediate node to this intermediate node from described link;
For each link, based on the Equations of The Second Kind bit error rate carried on the link control message that the intermediate node on this link sends, and the first kind bit error rate detected, obtain the bit error rate from far-end BFD node to the link of this equipment.
It is preferred that above-mentioned processor 802 controls to carry the mark of link and extension error code field in message at above-mentioned link, above-mentioned extension error code field is in order to indicate said distal ends BFD node using the bit error rate lower than setting the link of threshold value as active link.
Preferably, above-mentioned processor 802 carries BERType field, coefficient field and power exponent field in above-mentioned extension error code field, wherein, above-mentioned BERType is in order to characterize whether the bit error rate exceedes threshold value, and above-mentioned coefficient field represents the size of the bit error rate together with power exponent field.
It is preferred that above-mentioned processor 802, specifically for:
When determining the bit error rate lower than the link setting threshold value as multiple link, select active link as active link.
In the embodiment of the present invention, BFD Error detection function is disposed for BFD link detecting equipment (including local BFD node and far-end BFD node), detect the bit error rate from local BFD node to the link of far-end BFD node, can using the bit error rate lower than setting the link of threshold value as active link according to service needed, select the good link of performance, reduce the generation of probability packet loss fault, improve the efficiency of data transmission.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, the embodiment of the present invention can be carried out various change and the modification spirit and scope without deviating from the embodiment of the present invention by those skilled in the art.So, if these amendments of the embodiment of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (15)

1. a link switch-over method, it is characterised in that including:
Local two-way converting detection BFD node obtains the bit error rate from far-end BFD node to each of the links of described local BFD node;
Described local BFD node selects the bit error rate lower than the link setting threshold value, as active link;
Described local BFD node sends the mark of described active link to described far-end BFD node, so that the link switching of the mark correspondence received is active link by described far-end BFD node.
2. the method for claim 1, it is characterised in that described local BFD node obtains the bit error rate from far-end BFD node to each of the links of described local BFD node, specifically includes:
When there is at least one intermediate node between described local BFD node and described far-end BFD node, described local BFD node obtains the bit error rate from described far-end BFD node to each of the links of described local BFD node by following step:
Described local BFD nodal test also obtains the first kind bit error rate of local link between the intermediate node being adjacent;
Described local BFD node controls message, the Equations of The Second Kind bit error rate of the acquisition link from the neighbors of this intermediate node to this intermediate node by the link that each intermediate node sends;
For each link, described local BFD node controls the Equations of The Second Kind bit error rate carried on message based on the link that the intermediate node on this link sends, with the first kind bit error rate that described local node detects, acquisition is from far-end BFD node to the bit error rate of the link of local BFD node.
3. the method for claim 1, it is characterised in that described local BFD node sends the mark of described active link to described far-end BFD node, specifically includes:
Described local BFD node sends link to described far-end BFD node and controls message, described link controls to carry the mark of link and extension error code field in message, and described extension error code field is in order to indicate described far-end BFD node using the bit error rate lower than setting the link of threshold value as active link.
4. method as claimed in claim 3, it is characterized in that, described extension error code field includes error code alarm type BERType field, coefficient field and power exponent field, wherein, described BERType is in order to characterize whether the bit error rate exceedes threshold value, and described coefficient field represents the size of the bit error rate together with power exponent field.
5. the method as according to any one of claim 1-4, it is characterised in that described local BFD node selects the bit error rate lower than the link setting threshold value, as active link, specifically includes:
When described local BFD node determines the bit error rate lower than the link setting threshold value as multiple link, described local BFD node selection active link is as active link.
6. a link switching device, it is characterised in that including:
Acquisition module, detects the BFD node bit error rate to each of the links of this device for obtaining from far-end two-way converting;
Select module, for selecting the bit error rate lower than the link setting threshold value, as active link;
Sending module, for sending the mark of described active link, so that the link switching of the mark correspondence received is active link by described far-end BFD node to described far-end BFD node.
7. device as claimed in claim 6, it is characterised in that described acquisition module, specifically for:
When there is at least one intermediate node between this device and described far-end BFD node, detect and obtain this device first kind bit error rate to the link between the intermediate node being adjacent;The link sent by each intermediate node controls message, the Equations of The Second Kind bit error rate of the acquisition link from the neighbors of this intermediate node to this intermediate node;For each link, based on the Equations of The Second Kind bit error rate carried on the link control message that the intermediate node on this link sends, and the first kind bit error rate detected, obtain the bit error rate from far-end BFD node to the link of local BFD node.
8. device as claimed in claim 6, it is characterised in that described sending module, specifically for:
Send link to described far-end BFD node and control message, described link controls to carry the mark of link and extension error code field in message, and described extension error code field is in order to indicate described far-end BFD node using the bit error rate lower than setting the link of threshold value as active link.
9. device as claimed in claim 8, it is characterised in that described sending module, is further used for:
Carrying error code alarm type BERType field, coefficient field and power exponent field in described extension error code field, wherein, described BERType is in order to characterize whether the bit error rate exceedes threshold value, and described coefficient field represents the size of the bit error rate together with power exponent field.
10. the device as according to any one of claim 6-9, it is characterised in that described selection module, specifically for when determining the bit error rate lower than the link setting threshold value as multiple link, selecting active link as active link.
11. a two-way converting detection BFD link detecting equipment, it is characterised in that including transceiver, processor and memorizer, described memorizer is used for storing program code, wherein:
Described transceiver, for obtaining the bit error rate from far-end BFD node to each of the links of this equipment;
Described processor, for calling the program code in described memorizer, performs following operation:
Select the bit error rate lower than the link setting threshold value, as active link;
The mark of described active link is sent to described far-end BFD node, so that the link switching of the mark correspondence received is active link by this far-end BFD node by described transceiver.
12. BFD link detecting equipment as claimed in claim 11, it is characterised in that described processor, specifically for:
When there is at least one intermediate node between this equipment and described far-end BFD node, detect and obtain this equipment first kind bit error rate to the link between the intermediate node being adjacent;The link sent by each intermediate node of described transceivers controls message, and controls to obtain message the Equations of The Second Kind bit error rate of the link from the neighbors of this intermediate node to this intermediate node from described link;For each link, based on the Equations of The Second Kind bit error rate carried on the link control message that the intermediate node on this link sends, and the first kind bit error rate detected, obtain the bit error rate from far-end BFD node to the link of this equipment.
13. BFD link detecting equipment as claimed in claim 11, it is characterised in that described transceiver, specifically for:
Send link to described far-end BFD node and control message, described link controls to carry the mark of link and extension error code field in message, and described extension error code field is in order to indicate described far-end BFD node using the bit error rate lower than setting the link of threshold value as active link.
14. BFD link detecting equipment as claimed in claim 13, it is characterised in that described transceiver, it is further used for:
Carrying error code alarm type BERType field, coefficient field and power exponent field in described extension error code field, wherein, described BERType is in order to characterize whether the bit error rate exceedes threshold value, and described coefficient field represents the size of the bit error rate together with power exponent field.
15. the BFD link detecting equipment as according to any one of claim 11-14, it is characterised in that described processor, specifically for when determining the bit error rate lower than the link setting threshold value as multiple link, selecting active link as active link.
CN201380000495.1A 2013-06-27 2013-06-27 Link switching method and device Pending CN105765909A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013078218 2013-06-27

Publications (1)

Publication Number Publication Date
CN105765909A true CN105765909A (en) 2016-07-13

Family

ID=56337155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000495.1A Pending CN105765909A (en) 2013-06-27 2013-06-27 Link switching method and device

Country Status (1)

Country Link
CN (1) CN105765909A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108430086A (en) * 2017-02-13 2018-08-21 中国移动通信集团贵州有限公司 A kind of method and apparatus of handover network link
CN108989120A (en) * 2018-08-01 2018-12-11 中国联合网络通信集团有限公司 A kind of data transmission method and device
CN109150761A (en) * 2018-10-24 2019-01-04 新华三技术有限公司 A kind of method and device of tunnel switching
CN112073285A (en) * 2019-06-10 2020-12-11 华为技术有限公司 Error code notification method and related equipment
WO2022116896A1 (en) * 2020-12-03 2022-06-09 华为技术有限公司 Path adjustment method and apparatus, and communication system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230963A1 (en) * 2003-05-12 2004-11-18 Rothman Michael A. Method for updating firmware in an operating system agnostic manner
CN1606850A (en) * 2001-03-12 2005-04-13 光网络公司 Bandwidth reservation reuse in dynamically allocated ring protection and restoration technique
CN101146095A (en) * 2006-09-12 2008-03-19 华为技术有限公司 Method and device for configuring link features based on media independence switching technology
CN101217402A (en) * 2008-01-15 2008-07-09 杭州华三通信技术有限公司 A method to enhance the reliability of the cluster and a high reliability communication node
CN101296126A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Link fault announcing method, interface management unit and router
CN101340346A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Ring control method and apparatus of Ethernet looped network system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1606850A (en) * 2001-03-12 2005-04-13 光网络公司 Bandwidth reservation reuse in dynamically allocated ring protection and restoration technique
US20040230963A1 (en) * 2003-05-12 2004-11-18 Rothman Michael A. Method for updating firmware in an operating system agnostic manner
CN101146095A (en) * 2006-09-12 2008-03-19 华为技术有限公司 Method and device for configuring link features based on media independence switching technology
CN101296126A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Link fault announcing method, interface management unit and router
CN101217402A (en) * 2008-01-15 2008-07-09 杭州华三通信技术有限公司 A method to enhance the reliability of the cluster and a high reliability communication node
CN101340346A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Ring control method and apparatus of Ethernet looped network system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108430086A (en) * 2017-02-13 2018-08-21 中国移动通信集团贵州有限公司 A kind of method and apparatus of handover network link
CN108989120A (en) * 2018-08-01 2018-12-11 中国联合网络通信集团有限公司 A kind of data transmission method and device
CN109150761A (en) * 2018-10-24 2019-01-04 新华三技术有限公司 A kind of method and device of tunnel switching
CN109150761B (en) * 2018-10-24 2022-03-22 新华三技术有限公司 Tunnel switching method and device
CN112073285A (en) * 2019-06-10 2020-12-11 华为技术有限公司 Error code notification method and related equipment
WO2020249033A1 (en) * 2019-06-10 2020-12-17 华为技术有限公司 Bit error notification method and related device
JP2022536039A (en) * 2019-06-10 2022-08-12 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Bit error reporting method and related devices
JP7334392B2 (en) 2019-06-10 2023-08-29 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Bit error reporting method and related devices
WO2022116896A1 (en) * 2020-12-03 2022-06-09 华为技术有限公司 Path adjustment method and apparatus, and communication system
CN114666261A (en) * 2020-12-03 2022-06-24 华为技术有限公司 Path adjusting method and device and communication system

Similar Documents

Publication Publication Date Title
US9647494B2 (en) Fast network formation using a battery-backed network backbone
CN106254199B (en) Unidirectional ring network fault point positioning method, concentrator, terminal equipment and system
CN105765909A (en) Link switching method and device
CN102088415B (en) Method and device for MAC (media access control) address withdrawal
CN104521192A (en) Techniques for flooding optimization for link state protocols in a network topology
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
EP2632081A1 (en) Path switch-back method and apparatus in transport network
US10567272B2 (en) Bit error information transfer method, network device, and communications system
CN105281931A (en) Error code detection method, device and system of POTN
CN101771604B (en) Routing detection method, system and intermediate routing device
CN105379201A (en) Path switching method and device
JP4861293B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
EP3474493A1 (en) Network performance measurement method and detection device
CN108462904B (en) Protection group switching method based on hardware and optical communication equipment
JP2017121056A (en) Method, device, and system for implementing packet loss detection
CN105530115A (en) Method and device for realizing operation management and maintenance function
CN103441940A (en) Method and device for switching network device from stand-by state to main state and network device
CN105991315A (en) Link protection method applied to SDN (software defined network), switching device and network controller
CN101610181A (en) Realize method, the Apparatus and system of fault detect
CN104104601A (en) Data transmission method, device and system
CN103684955A (en) Method, device and system for determining path where looped network breaks down
CN105210349A (en) Wireless communication quality information processing apparatus and communication system
CN103442386B (en) A kind of fault detection method and node device
US11606282B2 (en) Method and device for detecting network reliability
CN112637053B (en) Method and device for determining backup forwarding path of route

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713

RJ01 Rejection of invention patent application after publication