CN106453074A - Switching method and apparatus - Google Patents
Switching method and apparatus Download PDFInfo
- Publication number
- CN106453074A CN106453074A CN201610919966.4A CN201610919966A CN106453074A CN 106453074 A CN106453074 A CN 106453074A CN 201610919966 A CN201610919966 A CN 201610919966A CN 106453074 A CN106453074 A CN 106453074A
- Authority
- CN
- China
- Prior art keywords
- port
- state
- state value
- flag
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a switching method and apparatus. The method comprises the following steps: if a state value of a first identification bit used for monitoring a first port state for transmitting a bidirectional forwarding detection BFD session in a register is detected to be updated to a first state value, determining that a first port is faulty; and selecting a port in member ports in which the state values of the identification bit are second state values and which correspond to an aggregation link so as to transmit the BFD session through the second port, wherein the second state value is used for identifying the second port as a normal state. By adoption of the switching method and apparatus provided by the invention, the fault sensing efficiency of the BFD session is effectively improved, the occurrence of unmeaning oscillation is avoided, and thus the resource utilization rate and the user experience are improved.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of changing method and device.
Background technology
BFD (Bidirectional Forwarding Detection, two-way converting detects) is a general, standard
Change, medium is unrelated and agreement is unrelated quick fault testing mechanism, for detect IP network link connection situation it is ensured that
Communication failure can be quickly detected, so as to taking measures it is ensured that business continuous service in time between equipment.BFD is permissible
Fault for two equipment room two-way converting paths of various upper-layer protocols (as Routing Protocol) quick detection.
Ethernet link clustering abbreviation link aggregation, by being tied to a polymeric chain by a plurality of Ethernet physical link
Road, thus realize increasing the purpose of link bandwidth.Ethernet interface binding be can achieve the binding of physical link.Ethernet connects
Form aggregation group, aggregation group corresponds to the aggregation interface of aggregated links, and each Ethernet interface is aggregation interface after mouth binding
Member port.
At present, when BFD is applied to the scene of aggregated links, for save resources, generally BFD meeting is carried out by designated port
The transmission of words.In prior art, when this designated port is power port and when breaking down, device-aware, to port failure, will weigh
Other member ports in new selective polymerization interface take over non-working port, to transmit BFD session.But, lay equal stress in device-aware
During new selection port, BFD session is likely to occur the phenomenon of time-out, and that is, in equipment processing procedure, BFD does not receive all the time
BFD message, then judge current BFD session DOWN.Upper-layer protocol perceives BFD session DOWN, then other routes can be selected to carry out
Route is as next-hop route.And work as after equipment reselects port, BFD session will be re-established, upper-layer protocol perceives BFD
After session re-establishes, this route will be reselected and route as next-hop, this phenomenon will be referred to as route oscillation.
Content of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of changing method, is perceived with the fault improving BFD
Efficiency, thus avoiding the generation of insignificant reforming phenomena, and then mitigates system burden.
In order to solve the above problems, the embodiment of the invention discloses a kind of changing method, the method is applied to by polymerization
The routing device that link is connected, including:
If the first mark being used for the first port state that monitoring transmission two-way converting detects BFD session in register is detected
The state value knowing position is updated to first state value it is determined that first port breaks down;
And, it is in the member port of aggregated links corresponding to the second state value, to select second in the state value of flag
Port, to transmit BFD session by second port, wherein, it is normal condition that the second state value is used for identifying second port.
Accordingly, the embodiment of the present invention additionally provides a kind of switching device, and this device is applied to be connected by aggregated links
Routing device, in order to ensure realization and the application of said method, this device includes:
Determining module, if for detecting the first end being used in register that monitoring transmission two-way converting detects BFD session
The state value of the first flag of mouth state is updated to first state value it is determined that first port breaks down;
Selecting module, in the member port being the aggregated links corresponding to the second state value for the state value in flag
Select second port, to transmit BFD session by second port, wherein, it is normal that the second state value is used for identifying second port
State.
So, in the embodiment of the present invention, if being used for monitoring transmission two-way converting detection BFD meeting in register by detecting
The state value of first flag of first port state of words is updated to first state value it is determined that first port breaks down;
And, it is in the member port of aggregated links corresponding to the second state value, to select second port in the state value of flag, with
BFD session is transmitted by second port, wherein, it is normal condition that the second state value is used for identifying second port.So as to have
Effect ground improves the fault perception efficiency of BFD session, it is to avoid the generation of insignificant reforming phenomena, and then improves resource utilization
And Consumer's Experience.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by institute in the description to the embodiment of the present invention
Need use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only the present invention some enforcement
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of steps of changing method embodiment of the present invention;
Fig. 2 is the network architecture diagram of the embodiment of the present invention;
Fig. 3 is a kind of one of structured flowchart of present invention switching device embodiment;
Fig. 4 is the two of the structured flowchart of the present invention a kind of switching device embodiment.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of not making creative work
Example, broadly falls into the scope of protection of the invention.
BFD can for various upper-layer protocols (such as:Routing Protocol etc.) two equipment room two-way converting paths of quick detection
Fault.Upper-layer protocol generally adopts hello packet mechanism to detect fault, and required time is second level, and BFD can provide millisecond
Level detection, such that it is able to accelerate network convergence speed, reduces the application break period, improves the reliability of network.
BFD does not have discovery mechanism in itself, but relies on the upper-layer protocol of being serviced to notify to set up session.Upper-layer protocol leads to
Cross the Hello mechanism of oneself to find neighbours and set up connection, then by neighbor information (such as:Destination address and source address etc.) lead to
Accuse to BFD, BFD controls message to set up BFD session according to the neighbor information receiving by interaction BFD.In BFD session establishment
Afterwards, terminal device periodically sends BFD heartbeat message to neighbor device, if (different vendor in default detection time
Equipment be provided with different detection times) be not received by neighbours transmission BFD heartbeat message then it is assumed that being BFD session institute
Link failure, and then report upper-layer protocol, so as upper-layer protocol terminate in time and neighbor device neighborhood.
Using BFD detect aggregated links two ends send equipment and receiving device state when it is contemplated that save resources
The reason occupancy, the one of port in usual selective polymerization link is as the transmission port of BFD session.Due to polymerization
There may be optical port or power port or photoelectricity Hybrid port in the port of link, therefore, be selected as BFD session
During transmission port, if there is power port, then preferably power port is as transmission port.In actual applications it is assumed that in receiving device
BFD transmission port fault, then the chip that this port is located will sense port failure immediately, and interrupts reporting, and correlation is deposited
Device receives this interrupt message the priority set according to this event of failure.Specifically, in certain embodiments, correlation is deposited
Device can be interrupt register etc..After register receives interrupt message, it may be just in other events that processing priority is relatively low
Barrier event, when register receives port DOWN interrupt message, the priority of this interrupt message is the superlative degree.Register will stand
Process this event, by the flag set being associated with this port (in certain embodiments, set sets to 0).Main control module
Perceive register set, that is, confirm that BFD transmission port is abnormal, in certain embodiments, main control module can be managed for centre
Device.Main control module notification interface management module port occurs extremely, after interface administration module receives this notice, will pass on to poly-
Matched moulds block, after aggregation module receives port notice extremely, will select one from the available member port of other of aggregated links
Non-working port is taken in port, to continue with BFD session.
But, from the foregoing it will be appreciated that the detection time of BFD is Millisecond, its detection time is 50ms in certain embodiments.
In prior art, after port failure, due to needing to carry out above-mentioned described multiple steps, thus will lead to be polymerized
Before module selects new port, BFD session has exceeded detection time.The equipment that sends does not receive BFD heartbeat in 50ms
Message, then BFD session judges current ink fault, and removes the BFD session of equipment room.Upper-layer protocol perception in transmission equipment
To BFD session teardown, it will be considered that aggregated links breaks down, and selects new equipment to set as next-hop from miscellaneous equipment
Standby, so that route oscillation is to new equipment.When the aggregation module in receiving device selects new port and by this is new
After port and transmission equipment set up BFD session, it is next-hop device that transmission equipment will select receiving device again, makes route oscillation
Return this receiving device.Obviously, in whole process, route is insignificant to have shaken twice, and will take big during earthquake
The cpu resource of amount, thus leading to the reduction of the resource interest rate of whole system, has had a strong impact on Consumer's Experience.
For the problems referred to above, one of core idea of the embodiment of the present invention is, proposes a kind of changing method and device, with
Effectively improving the fault perception efficiency of BFD, thus avoiding the generation of insignificant reforming phenomena, and then mitigating system burden.
With reference to Fig. 1, show a kind of flow chart of steps of changing method embodiment of the present invention, the method is applied to pass through
In the routing device that aggregated links is connected, specifically may include steps of:
Step 101, if detect the first port state being used in register that monitoring transmission two-way converting detects BFD session
The state value of the first flag be updated to first state value it is determined that first port breaks down.
Specifically, in an embodiment of the present invention, in the register of equipment, there is two or more stitch, each pin
Pin and each physical port correspond, and, each stitch is to should have corresponding flag.That is, two present in register
Individual or two or more flag is corresponded with the port in aggregated links, so that each flag monitoring corresponding ports (physics end
Mouthful) port status.Further, it is capable of the corresponding link to this port by the port status of monitoring port to supervise
Control.In an embodiment of the present invention, register can be arranged at the optional position of equipment.In certain embodiments, register can
To be arranged in central processing unit.The present invention does not limit to this.
Specifically, if the chip detection in routing device breaks down to the first port for transmitting BFD session, core
Interrupt message is reported to register by piece.Register obtains this interrupt message, judges the priority of this interrupt message simultaneously, at this
In inventive embodiment, due to the restriction of device resource, register can first processing priority highest after receiving interrupt message
Interrupt message, the priority of each interrupt event can be preset by operating personnel, and wherein, the priority with interface DOWN event is
Highest.That is, when register receives interrupt message corresponding with interface DOWN event, first processed this interrupt message.
Register judge the priority of interrupt message for highest when, by this interrupt event of priority treatment.Register will
The corresponding state value of first flag corresponding with first port is updated to first state value.One in the present invention preferably real
Apply in example, flag has two states value, respectively first state value and the second state value.Wherein, first state value represents
Port status are abnormal, and the second state value represents that port status are normal.
BFD session perceives the first flag set (being updated to first state value) at once, then can determine that first port is sent out
Raw fault.
Step 102, is to select in the member port of aggregated links corresponding to the second state value in the state value of flag
Second port, to transmit BFD session by second port, wherein, it is normal condition that the second state value is used for identifying second port.
In an embodiment of the present invention, after BFD session confirms that first port breaks down, will be immediately from first port institute
The second port for continuing transmission BFD session is selected in other available ports in the aggregated links belonging to.Specifically, BFD meeting
Words inquire about the current state value of flag corresponding with aggregated links port, and are that (it is right to identify for the second state value from state value
Answer port can use) flag in, select the second flag, and using corresponding for this flag port as transmission BFD session
Port.
In sum, technical scheme provided in an embodiment of the present invention, if be used for monitoring transmission by detecting in register
Two-way converting detect BFD session the first flag of first port state state value be updated to first state value it is determined that
First port breaks down;And, the member port being the aggregated links corresponding to the second state value in the state value of flag
Middle selection second port, to transmit BFD session by second port, wherein, it is just that the second state value is used for identifying second port
Often state, so that BFD session can be directly obtained by monitoring the state value of flag corresponding with BFD transmission port
The state of port, then by BFD herein in the detection time (this detection time is mentioned above, and does not repeat) of BFD session
Session is switched to available port, it is to avoid the generation of reforming phenomena, effectively alleviates system burden, improves resource utilization
And Consumer's Experience.
In a preferred embodiment of the invention, also specifically include in step 101:Set up the first flag and first
The first incidence relation between port and BFD session, so that BFD session can be by detecting the state value of the first flag
And get the current port state of first port.Wherein, if the state value the first flag is detected is updated to first state
Value, then can determine that first port breaks down, and release the first incidence relation.Accordingly, step 102 can also specifically be wrapped
Include:Set up the second incidence relation between BFD session and the second flag and second port, so that BFD session can be led to
Cross the state value of monitoring the second flag and get the current port state of second port.
In a preferred embodiment of the invention, method can further include:Based on the first incidence relation (i.e.
Incidence relation between BFD session and the first flag and first port), and be used in register monitoring member port
The state value of flag, sets up BFD state table, and wherein, in BFD state table, record has the first incidence relation and member port
Port status.Wherein, port status include selected state and non-selected state.
In a preferred embodiment of the invention, also specifically include in step 102:Delete in BFD state table and record
The first incidence relation, and the port status of port are updated to non-selected state.
In a preferred embodiment of the invention, step 102 can also specifically include:According to pre-defined rule, at end
Mouth state is to select second port in the corresponding port of selected state.Wherein, select second port according to following preset rules:Root
According to putting in order of the port in BFD state table, select second port;Or, according to the load shape of the port in aggregated links
State, selects second port.
In order to be better understood from the changing method of the present invention, it is described in detail with specific embodiment below.
With reference to Fig. 2, show the network architecture diagram of the changing method of the embodiment of the present invention.In fig. 2:
(as the reception in the embodiment of the present invention sets for route A (the transmission equipment as in the embodiment of the present invention) and route B
Standby) it is communicatively coupled by aggregated links.Wherein, three physical links routeing between A and route B are divided by this aggregated links
Link1, link2, link3 Wei not bind an aggregated links.In the present embodiment, this three physical links are in route A
Corresponding port is respectively port 1-3, and corresponding port in route B is respectively port 4-6.And, current use
In carrying BFD session, the link of transmission BFD message is link1, and that is, route A sends BFD message, road by port 1 to route B
Port 4 is passed through from B and sends BFD message to route A.It should be noted that the mechanism being adopted by optical signal technologies and telecommunications
Number difference, when port occurs interrupt event, will not occur reforming phenomena, therefore, embodiments of the invention are applied to polymeric chain
Member port in road is under the scene of power port.
In an embodiment of the present invention, before service begins, what operating personnel had in the register of route A is many
Three flags specified are selected in individual flag:Flag 1, flag 2, flag 3, this three flags respectively with end
Mouth 1-3 is bound, with the corresponding state of identification port 1-3.Due to the port-for-port 1 of preset transmission BFD session, therefore,
After BFD session establishment success, then BFD session and the flag corresponding to port 1, i.e. flag 1 are set up association by BFD module
Relation.In an embodiment of the present invention, the state value of flag 1-3 is 1, that is, represent that each port status are all normal.Preferably,
In certain embodiments, register can be interrupt register etc..
BFD module, based on the incidence relation between BFD session and flag 1, sets up BFD state table.Wherein, BFD state
In table including but not limited to:All member ports in incidence relation between BFD session and flag 1 and aggregated links, that is,
The port status of port 1-3.In an embodiment of the present invention, port status include selected state and non-selected state, wherein,
In embodiments of the invention, selected state is that identification port state is normal, non-selected state then identification port abnormal state.
In an embodiment of the present invention, the setting in route B is similar with the setting in route A, and here is omitted.At this
It is also possible to only route A, that is, the transmitting terminal in aggregated links carries out above-mentioned setting in one preferred embodiment of invention, and
Need not be configured in route B.
With continued reference to Fig. 2, in an embodiment of the present invention, if the transmission line of Link1 is pulled out from port 1, road
Sensed the interrupt event of this port 1 by the interface board chip in A immediately, and this interrupt event is reported to register.With
This leads to port to put DOWN simultaneously as transmission line is extracted from port, and route A will be unable to send BFD heartbeat message again, also no
Method receives any BFD heartbeat message.In an embodiment of the present invention, the equipment that different vendor is produced, it connects for sensing
The device of mouth interrupt event can not limited to this with the other devices on mainboard chip, the present invention.Additionally, the present invention's
In embodiment, the interrupt event only extracting port using transmission line is illustrated as specific embodiment, in other embodiments,
Can be that other leads to port to put the interrupt event of DOWN, the present invention does not limit to this.
Register receives this interrupt event, judges that the priority of this interrupt event corresponds to pre-set priority the most simultaneously
Senior.In an embodiment of the present invention, register is when receiving interrupt message, and it may be just in relatively low its of processing priority
Its event of failure, when register receives port DOWN interrupt message, the priority of this interrupt message is the superlative degree, then deposit
Device will suspend the event low compared with this interrupt event priority that other is being processed, and this interrupt event of priority treatment.
In an embodiment of the present invention, the flag corresponding to port of Register Lookup and this generation interrupt event, that is,
For flag 1, and the state value of this flag 1 is updated.In an embodiment of the present invention, register is by flag 1
State value is set to 0 by 1.
Referring now still to Fig. 2, it route the pass of the BFD session according to recorded in BFD state table of BFD module in A and flag 1
Connection relation, the state value of real-time monitoring flag 1.After the state value of flag 1 sets to 0, BFD module will sense this shape immediately
The change of state value, so that it is determined that the abnormal state of port 1.BFD module will release associating between BFD session and flag 1
System, and delete the incidence relation between the BFD session recorded in BFD state table and flag 1, simultaneously by corresponding to port 1
State be updated to non-selected state.
In an embodiment of the present invention, BFD module will be according to pre-defined rule, the port status of record in BFD record sheet
For selecting one of them as target port in the port of selected state, continue transmission BFD session to take over port 1.At this
In a bright preferred embodiment, preset rules include but is not limited to the choosing that puts in order in BFD state table according to port
Select target port, can also be according to the selecting factors target port such as transmission speed of port.Operating personnel can be according to the actual requirements
Pre-set this pre-defined rule, so that BFD module selects suitable target port according to this pre-defined rule.
With continued reference to Fig. 2, in the present embodiment, BFD module selection port 2 is as target port, then BFD session will with post
Set up incidence relation with the flag 2 of port 2 binding in storage, and this incidence relation be recorded in BFD state table.
BFD session will continue to send BFD heartbeat message to routeing B by this port 2, thus completing aggregated links port
Between switching.
It can be seen that, if the technical scheme in the embodiment of the present invention is passed through to detect is used for monitoring transmission two-way converting in register
The state value of first flag of first port state of detection BFD session is updated to first state value it is determined that first port
Break down;And, it is in the member port of aggregated links corresponding to the second state value, to select the in the state value of flag
Two-port netwerk, to transmit BFD session by second port, wherein, it is normal condition that the second state value is used for identifying second port, from
And enable BFD session to pass through the state value of real-time monitoring and the corresponding flag in port of transmission BFD session, it is directly obtained
The state of this port, and then will in the detection time (this detection time is mentioned above, and does not repeat herein) of BFD session
BFD session is switched to available port, it is to avoid the generation of reforming phenomena, effectively alleviates system burden, improves resource profit
With rate and Consumer's Experience.
Based on the inventive concept same with said method, the embodiment of the present invention also provides a kind of switching device, is applied to lead to
Cross in the routing device that aggregated links is connected.This switching device can be realized by software it is also possible to pass through hardware or soft or hard
The mode that part combines is realized.As a example implemented in software, as the device on a logical meaning, it is to be set by the route that it is located
Standby processor, in reading non-volatile storage, corresponding computer program instructions are formed.For hardware view, except
Outside processor, nonvolatile memory, routing device can also include other hardware, the forwarding chip of such as responsible process message,
Network interface, internal memory etc.;For from hardware configuration, this routing device is also possible to be distributed apparatus, potentially includes multiple connecing
Mouth card, to carry out the extension of Message processing in hardware view
With reference to Fig. 3, show a kind of structured flowchart of switching device of the present invention 300 embodiment, specifically can include as follows
Module:
Determining module 301, if be used for the first of monitoring transmission two-way converting detection BFD session for detecting in register
The state value of the first flag of port status is updated to first state value it is determined that first port breaks down.
Selecting module 302, the member end being the aggregated links corresponding to the second state value for the state value in flag
Second port is selected, to transmit BFD session by second port, wherein, the second state value is used for identifying second port and is in mouthful
Normal condition.
With reference to Fig. 4, in a preferred embodiment of the invention, on the basis of Fig. 3, device 300 can be further
Including:
First sets up module 303, associates for setting up between the first flag and first port and BFD session first
Relation.
Release module 304, if being updated to first state value it is determined that first for the state value of the first flag is detected
Port failure, and release the first incidence relation.
Second sets up module 305, for, after releasing module releasing the first incidence relation, setting up BFD session and the second mark
Know the second incidence relation between position and second port.
3rd sets up module 306, for based on the first incidence relation, and is used in register monitoring the mark of member port
Know the state value of position, set up BFD state table, wherein, in BFD state table, record has the first incidence relation and member port
Port status;Wherein, port status include selected state and non-selected state.
Removing module 307, for deleting the first incidence relation of record in BFD state table, and the port by first port
State is updated to non-selected state.
In a preferred embodiment of the invention, selecting module 302 can be further used for according to pre-defined rule,
Port status are to select second port in the corresponding port of selected state.Wherein, selecting module 302 is selected according to following preset rules
Select second port:
According to putting in order of the port in BFD state table, select second port;Or, according to the end in aggregated links
The load condition of mouth, selects second port.
In sum, BFD provided in an embodiment of the present invention realizes device, if being used for monitoring biography in register by detecting
Defeated two-way converting detects that the state value of first flag of first port state of BFD session is updated to first state value, then really
Determine first port to break down;And, the member end being the aggregated links corresponding to the second state value in the state value of flag
Second port is selected, to transmit BFD session by second port, wherein, the second state value is used for identifying second port and is in mouthful
Normal condition.Fault so as to effectively improve BFD session perceives efficiency, it is to avoid the generation of insignificant reforming phenomena,
And then improve resource utilization and Consumer's Experience.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is all described by the way of going forward one by one, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar partly mutually referring to.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the embodiment of the present invention can using one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of program code
The form of the computer program implemented.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal installation (system) and computer program
The flow chart of product and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or block diagram
In each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or square frame combination.These can be provided
Computer program instructions fill to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
The processor put is to produce a machine so that holding by the processor of computer or other programmable data processing terminal devices
The instruction of row produces for realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
The device of the function of specifying.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal devices
So that the instruction being stored in this computer-readable memory produces bag in the computer-readable memory working in a specific way
Include the manufacture of command device, this command device is realized in one flow process of flow chart or multiple flow process and/or one side of block diagram
The function of specifying in frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal devices so that
Series of operation steps is executed on computer or other programmable terminal devices to produce computer implemented process, thus
On computer or other programmable terminal devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process
And/or the step of the function of specifying in one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to
Including preferred embodiment and fall into being had altered and changing of range of embodiment of the invention.
Last in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant meaning
Covering comprising of nonexcludability, so that include a series of process of key elements, method, article or terminal installation not only wrapping
Include those key elements, but also include other key elements being not expressly set out, or also include for this process, method, article
Or the intrinsic key element of terminal installation.In the absence of more restrictions, by wanting that sentence "including a ..." limits
It is not excluded that also there is other identical element in process, method, article or the terminal installation including described key element in element.
Above to a kind of changing method provided by the present invention and device, it is described in detail, tool used herein
Body example is set forth to the principle of the present invention and embodiment, and the explanation of above example is only intended to help and understands this
Bright method and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, specifically real
Apply and all will change in mode and range of application, in sum, this specification content should not be construed as the limit to the present invention
System.
Claims (10)
1. a kind of changing method, is applied to the routing device being connected by aggregated links it is characterised in that methods described includes:
If the first flag being used for the first port state that monitoring transmission two-way converting detects BFD session in register is detected
State value be updated to first state value it is determined that described first port breaks down;
And, it is in the member port of described aggregated links corresponding to the second state value, to select second in the state value of flag
Port, to transmit described BFD session by described second port, wherein, described second state value is used for identifying described second end
Mouth is normal condition.
If method according to claim 1 it is characterised in that described detect in register be used for monitoring transmission two-way
The state value forwarding first flag of first port state of detection BFD session is updated to first state value it is determined that described
The step that first port breaks down, specifically includes:
Set up the first incidence relation between the first flag and described first port and described BFD session;
If the state value described first flag is detected is updated to first state value it is determined that described first port occurs event
Barrier, and release described first incidence relation;
Accordingly, the described state value in flag is choosing in the member port of described aggregated links corresponding to the second state value
The step selecting second port, specifically includes:
Set up the second incidence relation between described BFD session and described second flag and described second port.
3. method according to claim 2 is it is characterised in that methods described further includes:
Based on described first incidence relation, and it is used in described register monitoring the state of the flag of described member port
Value, sets up BFD state table, and wherein, in described BFD state table, record has described first incidence relation and described member port
Port status;
Wherein, described port status include selected state and non-selected state.
4. method according to claim 3 it is characterised in that described be the second state value in current state value flag
The step selecting second port in the member port of corresponding aggregated links, specifically includes:
Delete described first incidence relation of record in described BFD state table, and the port status of described first port are updated
For non-selected state.
5. method according to claim 3 is it is characterised in that the described state value in flag is right for the second state value
The step selecting second port in the member port of the aggregated links answered, specifically includes:
According to pre-defined rule, in port status are for the corresponding port of selected state, select described second port;
Wherein, select described second port according to following preset rules:
According to putting in order of the port in described BFD state table, select described second port;
Or,
According to the load condition of the port in described aggregated links, select described second port.
6. a kind of switching device, is applied to the routing device being connected by aggregated links it is characterised in that including:
Determining module, if for detecting the first port shape being used in register that monitoring transmission two-way converting detects BFD session
The state value of the first flag of state is updated to first state value it is determined that described first port breaks down;
Selecting module, in the member port being the described aggregated links corresponding to the second state value for the state value in flag
Select second port, to transmit described BFD session by described second port, wherein, described second state value is used for identifying institute
Stating second port is normal condition.
7. device according to claim 1 is it is characterised in that described device further includes:
First sets up module, for setting up the first pass between the first flag and described first port and described BFD session
Connection relation;
Release module, if being updated to first state value it is determined that described for the state value of described first flag is detected
Single port breaks down, and releases described first incidence relation;
Second sets up module, for, after described releasing module releases described first incidence relation, setting up described BFD session and institute
State the second incidence relation between the second flag and described second port.
8. device according to claim 7 is it is characterised in that described device further includes:
3rd sets up module, for based on described first incidence relation, and is used in described register monitoring described member end
Mouthful flag state value, set up BFD state table, wherein, in described BFD state table record have described first incidence relation,
And the port status of described member port;
Wherein, described port status include selected state and non-selected state.
9. device according to claim 8 is it is characterised in that described device further includes:
Removing module, for deleting in described BFD state table described first incidence relation of record, and by described first port
Port status are updated to non-selected state.
10. device according to claim 8 is it is characterised in that described selecting module is further used for according to pre-defined rule,
Select described second port in port status are for the corresponding port of selected state;
Wherein, described selecting module selects described second port according to following preset rules:
According to putting in order of the port in described BFD state table, select described second port;
Or,
According to the load condition of the port in described aggregated links, select described second port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610919966.4A CN106453074A (en) | 2016-10-21 | 2016-10-21 | Switching method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610919966.4A CN106453074A (en) | 2016-10-21 | 2016-10-21 | Switching method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106453074A true CN106453074A (en) | 2017-02-22 |
Family
ID=58176532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610919966.4A Pending CN106453074A (en) | 2016-10-21 | 2016-10-21 | Switching method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106453074A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246007A (en) * | 2017-07-10 | 2019-01-18 | 杭州达乎科技有限公司 | Active and standby port switching method, storage device and the network equipment of aggregation interface |
CN110620739A (en) * | 2019-07-25 | 2019-12-27 | 新华三技术有限公司成都分公司 | BFD message sending method and device |
CN111245951A (en) * | 2020-01-20 | 2020-06-05 | 新华三信息安全技术有限公司 | Link failure processing method and network equipment |
CN112804122A (en) * | 2021-01-12 | 2021-05-14 | 昆高新芯微电子(江苏)有限公司 | Message link fault diagnosis method and device and computer readable storage medium |
CN114979031A (en) * | 2022-05-16 | 2022-08-30 | 苏州盛科通信股份有限公司 | Method for controlling SerDes signal reception in dynamic port switching and application |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1635743A (en) * | 2003-12-31 | 2005-07-06 | 华为技术有限公司 | Method for logging-out invalid IGMP multicast port on router |
CN101800676A (en) * | 2010-02-20 | 2010-08-11 | 中兴通讯股份有限公司 | Link detection method, device and system |
CN102457409A (en) * | 2010-11-02 | 2012-05-16 | 中兴通讯股份有限公司 | Method and system for link failure detection |
CN103248567A (en) * | 2013-04-26 | 2013-08-14 | 杭州华三通信技术有限公司 | BFD conversation message transmission method and equipment |
CN104506546A (en) * | 2014-12-30 | 2015-04-08 | 杭州华三通信技术有限公司 | Bidirectional forwarding detection method and device of aggregation link |
-
2016
- 2016-10-21 CN CN201610919966.4A patent/CN106453074A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1635743A (en) * | 2003-12-31 | 2005-07-06 | 华为技术有限公司 | Method for logging-out invalid IGMP multicast port on router |
CN101800676A (en) * | 2010-02-20 | 2010-08-11 | 中兴通讯股份有限公司 | Link detection method, device and system |
CN102457409A (en) * | 2010-11-02 | 2012-05-16 | 中兴通讯股份有限公司 | Method and system for link failure detection |
CN103248567A (en) * | 2013-04-26 | 2013-08-14 | 杭州华三通信技术有限公司 | BFD conversation message transmission method and equipment |
CN104506546A (en) * | 2014-12-30 | 2015-04-08 | 杭州华三通信技术有限公司 | Bidirectional forwarding detection method and device of aggregation link |
Non-Patent Citations (1)
Title |
---|
胡春雷: "片上网络通讯架构的容错方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246007A (en) * | 2017-07-10 | 2019-01-18 | 杭州达乎科技有限公司 | Active and standby port switching method, storage device and the network equipment of aggregation interface |
CN110620739A (en) * | 2019-07-25 | 2019-12-27 | 新华三技术有限公司成都分公司 | BFD message sending method and device |
CN110620739B (en) * | 2019-07-25 | 2021-09-21 | 新华三技术有限公司成都分公司 | BFD message sending method and device |
CN111245951A (en) * | 2020-01-20 | 2020-06-05 | 新华三信息安全技术有限公司 | Link failure processing method and network equipment |
CN111245951B (en) * | 2020-01-20 | 2022-07-12 | 新华三信息安全技术有限公司 | Link failure processing method and network equipment |
CN112804122A (en) * | 2021-01-12 | 2021-05-14 | 昆高新芯微电子(江苏)有限公司 | Message link fault diagnosis method and device and computer readable storage medium |
CN112804122B (en) * | 2021-01-12 | 2022-07-22 | 昆高新芯微电子(江苏)有限公司 | Message link fault diagnosis method and device and computer readable storage medium |
CN114979031A (en) * | 2022-05-16 | 2022-08-30 | 苏州盛科通信股份有限公司 | Method for controlling SerDes signal reception in dynamic port switching and application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106453074A (en) | Switching method and apparatus | |
CN100536407C (en) | Fast convergence method of point to point services and the provider edge device thereof | |
CN101800679B (en) | Message packet loss detection method and system | |
US7760859B2 (en) | Intelligent communications network tap port aggregator | |
US20080117827A1 (en) | Method and system for verifying connectivity of logical link | |
CN106789264B (en) | A kind of method and apparatus that link aggregation group channel is switched fast | |
CN108123824A (en) | A kind of network fault detecting method and device | |
CN101523803A (en) | Resiliency schemes in communications networks | |
CN104579961A (en) | Scheduling method and device for data message | |
CN103731376B (en) | Method and system for selecting chain aggregation root ports on stacked equipment | |
CN103840976B (en) | Communication means, light device and the network equipment | |
CN101355466A (en) | Method and apparatus for transmitting continuous check information message | |
CN104521193B (en) | The method and the network equipment of a kind of bit error rate detection | |
CN106464447B (en) | Error code information transmitting methods and the network equipment and communication system | |
CN101645810A (en) | Method and equipment for detecting pseudo wire (PW) | |
CN105379201A (en) | Path switching method and device | |
CN106341270A (en) | Fault processing method and device | |
CN102611610B (en) | The method and system of a kind of many same paths tunnels centralized management | |
CN104468168B (en) | Network failure recovery method, control server and interchanger | |
CN105337761B (en) | Optimal Protection path selection method and endpoint device between a kind of more Protection paths | |
CN108683528A (en) | A kind of data transmission method, central server, server and data transmission system | |
CN105656776A (en) | Pseudo-wire dual-homing protection switching system, method and device | |
CN102594582B (en) | A kind of message loop back method and system | |
CN105191213B (en) | Network path calculation method, device and system | |
CN108683602B (en) | Data center network load balancing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou science and Technology Development Zone, Zhejiang high tech park, No. six and road, No. 310 Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170222 |
|
RJ01 | Rejection of invention patent application after publication |