The content of the invention
Business is received in order to not influence other normal links, the embodiment of the present invention provides a kind of route withdraw method and net
Network equipment.
In a first aspect, a kind of route withdraw method is provided, including:
It is described when the network equipment is detected with the link failure of first network equipment room or first network equipment fault
The routing iinformation of the first network equipment is packaged into two-way converting detection BFD messages, the BFD messages bag by the network equipment
Routing iinformation containing the first network equipment;
The network equipment sends the BFD messages to second network equipment, so that second network equipment cancels institute
State routing of second network equipment to the first network equipment.
With reference to first aspect, in the first possible implementation, when the network equipment detects and first network equipment
Between link failure or during first network equipment fault, the network equipment seals the routing iinformation of the first network equipment
BFD messages are dressed up, the routing iinformation that the BFD messages include the first network equipment specifically includes:
When the first BFD modules of the network equipment detect and the link failure of first network equipment room or the first net
During network equipment fault, the first BFD modules of the network equipment notify the routing iinformation of the first network equipment to described
2nd BFD modules of the network equipment;
2nd BFD modules of the network equipment search BFD messages template corresponding with the first network equipment, obtain
With the matched BFD messages of routing iinformation of the first network equipment.
With reference to first aspect, in second of possible realization method, when the network equipment detects and first network equipment
Between link failure or during first network equipment fault, the network equipment seals the routing iinformation of the first network equipment
BFD messages are dressed up, the routing iinformation that the BFD messages include the first network equipment specifically includes:
When the first BFD modules of the network equipment detect and the link failure of first network equipment room or the first net
During network equipment fault, the first BFD modules of the network equipment notify the routing iinformation of the first network equipment to described
2nd BFD modules of the network equipment;
The routing iinformation of the first network equipment is packaged into BFD messages by the 2nd BFD modules of the network equipment.
It, may at the third with reference to first aspect with the first or second of possible realization method of first aspect
Realization method in, the BFD messages carry revocation route field, and the revocation route field includes routing information field, class
Type the type field, the routing information field include the routing iinformation of the first network equipment, the type the type field bag
Containing the indication information for cancelling the routing iinformation.
With reference to first aspect, in the 4th kind of possible realization method, the method further includes:
When the network equipment detects and the link failure recovery of first network equipment room or the event of first network equipment
When barrier recovers, the network equipment encapsulates the fault recovery link or the routing iinformation of fault recovery first network equipment
Into BFD messages, the BFD messages include the fault recovery link or the routing iinformation of fault recovery first network equipment;
The network equipment sends the BFD messages to second network equipment, so that second network equipment recovers institute
State routing of second network equipment to the first network equipment.
Any one above-mentioned possible realization method with reference to first aspect or with reference to first aspect, in the 5th kind of possibility
Realization method in, the network equipment be specially converge side gateway A SG, the first network equipment is specially base station side gateway
CSG, second network equipment are specially wireless traffic side gateway RSG.
Second aspect provides a kind of network equipment, including:
Package module detects and the link failure of first network equipment room or the first net for working as the network equipment
During network equipment fault, the routing iinformation of the first network equipment is packaged into two-way converting detection BFD messages, the BFD reports
Text includes the routing iinformation of the first network equipment;
Sending module, for sending the BFD messages to second network equipment, so that second network equipment cancels institute
State routing of second network equipment to the first network equipment.
With reference to second aspect, in the first possible implementation, the package module specifically includes the first BFD modules
With the 2nd BFD modules,
The first BFD modules, for detecting and the link failure of first network equipment room or the event of first network equipment
Barrier, and be used for when detecting with the link failure of first network equipment room or first network equipment fault, by described first
The routing iinformation of the network equipment is notified to the 2nd BFD modules;
The 2nd BFD modules for searching BFD messages template corresponding with the first network equipment, obtain
With the matched BFD messages of routing iinformation of the first network equipment.With reference to second aspect, in second of possible realization method
In, the package module specifically includes the first BFD modules and the 2nd BFD modules,
The first BFD modules, for detecting and the link failure of first network equipment room or the event of first network equipment
Barrier, and be used for when detecting with the link failure of first network equipment room or first network equipment fault, by described first
The routing iinformation of the network equipment is notified to the 2nd BFD modules;
The 2nd BFD modules, for the routing iinformation of the first network equipment to be packaged into BFD messages.
With reference to second of possible or the third possible realization method of second aspect or second aspect, at the third
In possible realization method, the BFD messages carry revocation route field, and the revocation route field includes routing iinformation word
Section, type the type field, the routing information field include the routing iinformation of the first network equipment, the type Type words
Section includes the indication information for cancelling the routing iinformation.
With reference to second aspect, in the 4th kind of possible realization method, package module is additionally operable to examine when the network equipment
When measuring with the link failure of first network equipment room or first network equipment fault recovery, by the fault recovery link or
The routing iinformation of person's fault recovery first network equipment is packaged into BFD messages, and the BFD messages include the fault recovery link
Or the routing iinformation of fault recovery first network equipment;
Sending module, for sending the BFD messages to second network equipment, so that second network equipment recovers institute
State routing of second network equipment to the first network equipment.
With reference to second aspect, in the 5th kind of possible realization method, the network equipment is specially to converge side gateway
ASG。
The third aspect provides a kind of network equipment, and including processor, memory and transmitter, the memory is used to deposit
Program code is stored up, wherein:
The processor for calling the program code in the memory, performs following operation:
When the network equipment is detected with the link failure of first network equipment room or first network equipment fault,
The routing iinformation of the first network equipment is packaged into two-way converting detection BFD messages, the BFD messages include described first
The routing iinformation of the network equipment;
The transmitter, for sending the BFD messages to second network equipment, so that second network equipment cancels
Second network equipment is to the routing of the first network equipment.
Fourth aspect provides a kind of route withdraw system, including:Such as second aspect or any shown net of the third aspect
Network equipment and second network equipment, second network equipment, for cancelling second network equipment to first network equipment
Routing.
A kind of route withdraw method and apparatus provided in an embodiment of the present invention, sets when the network equipment is detected with first network
When link failure between standby or first network equipment fault, the network equipment believes the routing of the first network equipment
Breath is packaged into two-way converting detection BFD messages, and the BFD messages include the routing iinformation of the first network equipment;The net
Network equipment sends the BFD messages to second network equipment, so that second network equipment cancels second network equipment
To the routing of the first network equipment.It can directly be deleted through the network equipment to first network on second network equipment
The routing of equipment does not influence other normal links and receives business.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is the part of the embodiment rather than whole embodiments of the present invention.Based on this hair
Embodiment in bright, the every other reality that those of ordinary skill in the art are obtained on the premise of creative work is not made
Example is applied, should all belong to the scope of protection of the invention.
The embodiment of the present invention is described in further detail with reference to Figure of description.
The embodiment of the present invention devises a kind of route withdraw method, as shown in fig.3, this method comprises the following steps:
Step 301:When the network equipment detects and the link failure of first network equipment room or the event of first network equipment
During barrier, the routing iinformation of the first network equipment is packaged into two-way converting detection BFD messages by the network equipment, described
BFD messages include the routing iinformation of the first network equipment;
Step 302:The network equipment sends the BFD messages to second network equipment, so that second network is set
The standby routing for cancelling second network equipment to the first network equipment.
The route withdraw method of the embodiment of the present invention can be directly deleted on second network equipment through the network equipment
It deletes through the network equipment to the routing of first network equipment, does not influence other normal links and receive business.
It is preferred that it can be, but not limited to that step 301 is accomplished in the following manner.
Mode one:When the first BFD modules of the network equipment detect with the link failure of first network equipment room or
During person's first network equipment fault, the first BFD modules of the network equipment lead to the routing iinformation of the first network equipment
Know to the 2nd BFD modules of the network equipment;
2nd BFD modules of the network equipment search BFD messages template corresponding with the first network equipment, obtain
With the matched BFD messages of routing iinformation of the first network equipment.Mode two:When the first BFD modules of the network equipment
When detecting with the link failure of first network equipment room or first network equipment fault, the first BFD of the network equipment
Module notifies the routing iinformation of the first network equipment to the 2nd BFD modules of the network equipment;
The routing iinformation of the first network equipment is packaged into BFD messages by the 2nd BFD modules of the network equipment.
It is preferred that the routing iinformation includes the routing ID (Router ID) and subnet mask of the first network equipment
(Network Mask)。
It is preferred that the BFD messages carry revocation route field, the revocation route field include routing information field,
Type the type field, the routing information field include the routing iinformation of the first network equipment, the type the type field
Include the indication information for cancelling the routing iinformation.
It is preferred that when the network equipment detects and the link failure of multiple first network equipment rooms or multiple first networks
During equipment fault, the routing iinformation of the multiple first network equipment can be encapsulated in same BFD messages, so may be used
Once to send all routings for needing to cancel.It is preferred that a kind of route withdraw method of design of the embodiment of the present invention, is also wrapped
It includes:
When the network equipment detects and the link failure recovery of first network equipment room or the event of first network equipment
When barrier recovers, the network equipment encapsulates the fault recovery link or the routing iinformation of fault recovery first network equipment
Into BFD messages, the BFD messages include the fault recovery link or the routing iinformation of fault recovery first network equipment;
The network equipment sends the BFD messages to second network equipment, so that second network equipment recovers institute
State routing of second network equipment to the first network equipment.
It is preferred that the network equipment is specially to converge side gateway A SG, the first network equipment is specially base station side net
CSG is closed, second network equipment is specially wireless traffic side gateway RSG.
Illustrate the preferred embodiment of the present invention one with reference to Fig. 4.
The method of revocation routing provided in an embodiment of the present invention can be applied to Metropolitan Area Network (MAN), can also be applied to IP and wirelessly connect
In networking (IP Radio Access Network, IPRAN).
In the Layer2+Layer3 deployment scenarios of current IPRAN deployment, generally use BFD technologies as shown in Figure 4 carry out
Frequency converter, base station side gateway (Cell Site Gateway, CSG) to convergence side gateway (Aggregation Site
Gateway, ASG) deployment pseudo-wire redundancy (Pseudowire Redundancy, PW Redundancy) protection, that is to say, that
Primary PW and spare PW are established between CSG1 and main ASG and CSG1 and standby ASG, PW is established between primary PW and spare PW
Redundancy redundancy protectings, after primary PW links exception, the flow of CSG1 to main ASG are switched to CSG1 to spare ASG;When
Also established between right CSG2 and main ASG and CSG2 and standby ASG PW Redundancy redundancy protectings, CSG3 and main ASG and
PW Redundancy redundancy protectings are also established between CSG2 and standby ASG.In ASG to wireless traffic side gateway (Radio
Service Gateway, RSG) between dispose the quick heavy-routes of VPN (VPN Fast Reroute, VPN FRR) and MPLSTE is warm
Standby (MPLS TE Hot Standby, MPLS TE HSB) is protected.
For CSG1 after active link PW failures, standby ASG can be switched to from the flow CSG1 to main ASG,
Flow from RNC to CSG1, still from main RSG to main ASG, if link is normal between main ASG and standby ASG, although primary PW
Link failure, the flow of RNC to CSG1, by standby ASG, then can return to CSG1 by main ASG by spare PW.But such as
When link of the fruit at this time between main ASG and standby ASG is also abnormal, after the flow of main RSG to CSG1 reaches main ASG, due to link
All abnormal, routing is interrupted, and the message from RNC to CSG1 can be lost.
When the link between primary PW and main ASG and standby ASG is all abnormal, can cause flow from RSG to base station due to
Main ASG is also interrupted extremely to standby ASG links.In order to avoid flow interrupt, routing provided in an embodiment of the present invention may be employed and remove
The method of pin, including:
Step 1:When the convergence main ASG of side gateway detects base station side gateway CSG1 to the chain of the main ASG of the convergence side gateway
Road (PW, LSP, Tunnel, interface etc.) is delayed, and the convergence main ASG of side gateway seals the routing iinformation of base station side gateway CSG1
Two-way converting detection BFD messages are dressed up, the routing iinformation includes the IP address and subnet mask of base station side gateway CSG1, such as
100.1.1.0/24。
The BFD messages include the routing iinformation of base station side gateway CSG1;The BFD messages are also comprising the revocation road
By the indication information of information.
As shown in figure 5, the embodiment of the present invention carries the field of revocation routing in the BFD protocol fields of RFC5880:1st, road
By information Data fields, the routing information field includes the routing iinformation of the first network equipment, can be IPv4/IPv6
Routing;2nd, type the type field includes the indication information for cancelling the routing iinformation.
Wherein, the main ASG of the convergence side gateway and standby ASG include respectively with described base station side gateway CSG1, CSG2, CSG3
Corresponding first BFD modules, the main ASG of the convergence side gateway and standby ASG also comprising respectively with the wireless traffic side gateway master
RSG, the corresponding 2nd BFD modules of standby RSG,
Wherein it is possible to but be not limited by following manner realize step 1,
Mode one:When the first BFD modules of the main ASG of the convergence side gateway detect the chain between base station side gateway CSG1
During the failure of road, the first BFD modules of the main ASG of the convergence side gateway notify the routing iinformation of the base station side gateway CSG1
To the 2nd BFD modules of the main ASG of the convergence side gateway;Broadcast or mode of unicast, this hair may be employed in specific advice method
Bright embodiment is not to limit, belonging to the protection domain of the embodiment of the present invention.
It is preserved in the 2nd BFD modules of the main ASG of the convergence side gateway corresponding with each base station side gateway CSG
BFD message templates, the BFD message templates are to encapsulate complete BFD messages according to the form shown in Fig. 5, and the BFD messages include
The routing iinformation of base station side gateway CSG;The BFD messages are also comprising the indication information for cancelling the routing iinformation.
The 2nd BFD modules of the main ASG of the convergence side gateway search BFD messages corresponding with the base station side gateway CSG
Template obtains the matched BFD messages of routing iinformation with the base station side gateway CSG1.
The 2nd BFD modules of the main ASG of the convergence side gateway need not encapsulate, directly by the encapsulated complete BFD
Message is sent to the wireless traffic side main RSG of gateway, so that the wireless traffic side main RSG of gateway cancels the routing of RSG to the CSG1.
Afterwards, the RSG can use to CSG1 reserve link or reselect to the routing of CSG1, and arrive CSG1's subsequently having
The routing that flow is switched to reserve link or reselects.And because need not encapsulate, Forwarding plane has directly sealed this
Fill complete BFD messages and be sent to the wireless traffic side main RSG of gateway, can even more reduce that entire revocation method for routing needs when
Between, user is made not perceive link exception, improves user experience.
Mode two:When the first BFD modules of the main ASG of the convergence side gateway detect the chain between base station side gateway CSG1
During the failure of road, the first BFD modules of the main ASG of the convergence side gateway notify the routing iinformation of the base station side gateway CSG1
To the 2nd BFD modules of the main ASG of the convergence side gateway;Broadcast or mode of unicast, this hair may be employed in specific advice method
Bright embodiment is not to limit, belonging to the protection domain of the embodiment of the present invention.
The routing iinformation of the base station side gateway CSG1 is packaged by the 2nd BFD modules of the main ASG of the convergence side gateway
BFD messages.The BFD messages are the BFD messages encapsulated according to the form shown in Fig. 5, and the BFD messages include the base station side gateway
The routing iinformation of CSG;The BFD messages are also comprising the indication information for cancelling the routing iinformation.
Step 2:The main ASG of the convergence side gateway sends the BFD messages and gives the wireless traffic side main RSG of gateway, with
Gateway main RSG in the wireless traffic side is made to cancel the wireless traffic side main RSG of gateway to the road of the base station side gateway CSG1
By.Afterwards, the RSG can use to CSG1 reserve link or reselect to the routing of CSG1, and subsequently have to
The routing that the flow of CSG1 is switched to reserve link or reselects.Because the revocation method for routing is passed using BFD messages
It send, entire realization process only needs the time in hundred milliseconds of ranks, and user is made not perceive link exception, improves user experience.
When the link-recovery of base station side gateway CSG1 and the main ASG of convergence side gateway, the wireless traffic side net of distal end is notified
The routing of base station side gateway CSG1 can be restored to by closing main RSG, be specifically as follows:When the convergence main ASG of side gateway detects base station
Side gateway CSG1 to the link (PW, LSP, Tunnel, interface when) of the convergence main ASG of side gateway link-recovery when, converge side net
It closes main ASG and the routing iinformation of the base station side gateway CSG1 is packaged into BFD messages, the BFD messages include the base station side
The routing iinformation of gateway CSG1;It is preferred that the BFD messages are also comprising the routing iinformation for recovering the base station side gateway CSG1
Indication information.
The main ASG of the convergence side gateway sends the BFD messages and gives the wireless traffic side main RSG of gateway, so that described wireless
The main RSG of business side gateway recovers the routing of the wireless traffic side main RSG of gateway to the base station side gateway CSG1.And follow-up
The flow having to CSG1 is switched to the routing.
Based on same mentality of designing, the embodiment of the present invention additionally provides a kind of network equipment.As shown in fig.6, including:
Package module 601 detects and the link failure of first network equipment room or for working as the network equipment
During one network equipment failure, the routing iinformation of the first network equipment is packaged into two-way converting detection BFD messages, it is described
BFD messages include the routing iinformation of the first network equipment;Sending module 602, for sending the BFD messages to the second net
Network equipment, so that second network equipment cancels routing of second network equipment to the first network equipment.
It is preferred that the package module specifically includes the first BFD modules and the 2nd BFD modules,
The first BFD modules, for detecting and the link failure of first network equipment room or the event of first network equipment
Barrier, and be used for when detecting with the link failure of first network equipment room or first network equipment fault, by described first
The routing iinformation of the network equipment is notified to the 2nd BFD modules;
The 2nd BFD modules for searching BFD messages template corresponding with the first network equipment, obtain
With the matched BFD messages of routing iinformation of the first network equipment.
Or it is preferred that the package module specifically includes the first BFD modules and the 2nd BFD modules, the first BFD
Module, for detect with the link failure of first network equipment room or first network equipment fault, and for when detect with
When the link failure of first network equipment room or first network equipment fault, the routing iinformation of the first network equipment is led to
Know to the 2nd BFD modules;
The 2nd BFD modules, for the routing iinformation of the first network equipment to be packaged into BFD messages.
It is preferred that the BFD messages carry revocation route field, the revocation route field include routing information field,
Type the type field, the routing information field include the routing iinformation of the first network equipment, the type the type field
Include the indication information for cancelling the routing iinformation.
It is preferred that package module, is additionally operable to detect the link failure with first network equipment room when the network equipment
The routing of the fault recovery link or fault recovery first network equipment is believed when either first network equipment fault recovers
Breath is packaged into BFD messages, and the BFD messages include the routing of the fault recovery link or fault recovery first network equipment
Information;
Sending module, for sending the BFD messages to second network equipment, so that second network equipment recovers institute
State routing of second network equipment to the first network equipment.
It is preferred that the network equipment is specially to converge side gateway A SG.
The embodiment of the present invention also provides a kind of network equipment, includes with reference to shown in Fig. 7:Processor 702, memory 703,
Transmitter 701 and bus 704, the processor 702, memory 703 and transmitter 701 are connected by bus 704 and complete phase
Communication between mutually, wherein:
The bus 704 can be that industry standard architecture (Industry Standard Architecture, ISA) is total
Line, external equipment interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended
Industry Standard Architecture, EISA) bus etc..It is total that the bus 704 can be divided into address bus, data
Line, controlling bus etc..For ease of representing, only represented in Fig. 7 with a line, it is not intended that an only bus or a type
Bus.
For memory 703 for storing program code, which includes operational order.Memory 703 may include height
Fast random access memory (random access memory, RAM), it is also possible to including nonvolatile memory (non-volatile
), such as magnetic disk storage memory.
Processor 702 may be a central processing unit (Central Processing Unit, CPU) or specific
Integrated circuit (Application Specific Integrated Circuit, ASIC) is arranged to implement this
One or more integrated circuits of inventive embodiments.
Transmitter 701 is mainly used for realizing communication data between the network equipment and the other network equipments in the present embodiment
Transmitting-receiving.
Specifically, processor 702, for calling the program code in memory 703, to perform following operation:
When the network equipment is detected with the link failure of first network equipment room or first network equipment fault,
The routing iinformation of the first network equipment is packaged into two-way converting detection BFD messages, the BFD messages include described first
The routing iinformation of the network equipment;
Transmitter 701 is for sending the BFD messages to second network equipment, so that second network equipment cancels institute
State routing of second network equipment to the first network equipment.
Based on same mentality of designing, the embodiment of the present invention additionally provides a kind of route withdraw system, as shown in figure 8, including
The network equipment of the embodiment of the present invention and second network equipment.The network equipment as shown previously, second network equipment, for cancelling
Second network equipment is to the routing of first network equipment.
In the embodiment of the present invention, when the network equipment detects the link failure or first network with first network equipment room
During equipment fault, the routing iinformation of the first network equipment is packaged into two-way converting detection BFD messages by the network equipment,
The BFD messages include the routing iinformation of the first network equipment;The network equipment sends the BFD messages to the second net
Network equipment, so that second network equipment cancels routing of second network equipment to the first network equipment.It can
The routing to first network equipment through the network equipment is directly deleted on second network equipment, does not influence other normal chains
Road receives business.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is
The specific work process of system, device and unit, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
Division is only a kind of division of logic function, can there is other dividing mode, such as multiple units or component in actual implementation
It may be combined or can be integrated into another system or some features can be ignored or does not perform.It is another, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.The unit illustrated as separating component can be or
It may not be physically separate, the component shown as unit may or may not be physical location, you can with
Positioned at a place or can also be distributed in multiple network element.Part therein can be selected according to the actual needs
Or whole units realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be
People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention described should be subject to the protection scope in claims.