Summary of the invention
Receive business to not affect other normal links, the embodiment of the present invention provides a kind of route withdraw method and the network equipment.
First aspect, provides a kind of route withdraw method, comprising:
When the network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message by the described network equipment, and described BFD message comprises the routing iinformation of described first network equipment;
The described network equipment sends described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described first network equipment.
In conjunction with first aspect, in the implementation that the first is possible, when the network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into BFD message by the described network equipment, and the routing iinformation that described BFD message comprises described first network equipment specifically comprises:
When a BFD module of the described network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to the 2nd BFD module of the described network equipment by a BFD module of the described network equipment;
The BFD message template that 2nd BFD module searches of the described network equipment is corresponding with described first network equipment, obtains the BFD message mated with the routing iinformation of described first network equipment.
In conjunction with first aspect, in the implementation that the second is possible, when the network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into BFD message by the described network equipment, and the routing iinformation that described BFD message comprises described first network equipment specifically comprises:
When a BFD module of the described network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to the 2nd BFD module of the described network equipment by a BFD module of the described network equipment;
The routing iinformation of described first network equipment is packaged into BFD message by the 2nd BFD module of the described network equipment.
In conjunction with first aspect, the implementation possible with the first or the second of first aspect, in the implementation that the third is possible, described BFD message carries cancels route field, described route field of cancelling comprises routing information field, type the type field, described routing information field comprises the routing iinformation of described first network equipment, and described type the type field comprises the indication information of cancelling described routing iinformation.
In conjunction with first aspect, in the 4th kind of possible implementation, described method also comprises:
When the described network equipment detect recover with the link failure recovery of first network equipment room or first network equipment fault time, the routing iinformation of described fault recovery link or fault recovery first network equipment is packaged into BFD message by the described network equipment, and described BFD message comprises the routing iinformation of described fault recovery link or fault recovery first network equipment;
The described network equipment sends described BFD message to second network equipment, recovers the route of described second network equipment to described first network equipment to make described second network equipment.
In conjunction with first aspect, or in conjunction with any one possible implementation above-mentioned of first aspect, in the 5th kind of possible implementation, the described network equipment is specially and converges side gateway A SG, described first network equipment is specially base station side gateway CSG, and described second network equipment is specially wireless traffic side gateway RSG.
Second aspect, provides a kind of network equipment, comprising:
Package module, during for detecting when the described network equipment with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message, described BFD message comprises the routing iinformation of described first network equipment;
Sending module, for sending described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described first network equipment.
In conjunction with second aspect, in the implementation that the first is possible, described package module specifically comprises a BFD module and the 2nd BFD module,
A described BFD module, for detecting and the link failure of first network equipment room or first network equipment fault, and for when detecting with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to described 2nd BFD module;
Described 2nd BFD module, for searching the BFD message template corresponding with described first network equipment, obtains the BFD message mated with the routing iinformation of described first network equipment.
In conjunction with second aspect, in the implementation that the second is possible, described package module specifically comprises a BFD module and the 2nd BFD module,
A described BFD module, for detecting and the link failure of first network equipment room or first network equipment fault, and for when detecting with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to described 2nd BFD module;
Described 2nd BFD module, for being packaged into BFD message by the routing iinformation of described first network equipment.
In conjunction with second aspect, second aspect the second may or the third possible implementation, in the implementation that the third is possible, described BFD message carries cancels route field, described route field of cancelling comprises routing information field, type the type field, described routing information field comprises the routing iinformation of described first network equipment, and described type the type field comprises the indication information of cancelling described routing iinformation.
In conjunction with second aspect, in the 4th kind of possible implementation, package module, also for detect when the described network equipment recover with the link failure of first network equipment room or first network equipment fault time, the routing iinformation of described fault recovery link or fault recovery first network equipment is packaged into BFD message, and described BFD message comprises the routing iinformation of described fault recovery link or fault recovery first network equipment;
Sending module, for sending described BFD message to second network equipment, recovers the route of described second network equipment to described first network equipment to make described second network equipment.
In conjunction with second aspect, in the 5th kind of possible implementation, the described network equipment is specially and converges side gateway A SG.
The third aspect, provides a kind of network equipment, comprises processor, memory and transmitter, and described memory is used for program code stored, wherein:
Described processor, for calling the program code in described memory, performs following operation:
When the described network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message, described BFD message comprises the routing iinformation of described first network equipment;
Described transmitter, for sending described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described first network equipment.
Fourth aspect, provides a kind of route withdraw system, comprising: as second aspect or the third aspect arbitrary shown in the network equipment and second network equipment, described second network equipment, for cancelling the route of described second network equipment to first network equipment.
A kind of route withdraw method and apparatus that the embodiment of the present invention provides, when the network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message by the described network equipment, and described BFD message comprises the routing iinformation of described first network equipment; The described network equipment sends described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described first network equipment.Directly can delete through the route of the described network equipment to first network equipment on second network equipment, not affect other normal links and receive business.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all should belong to 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 route withdraw method, and consult shown in Fig. 3, the method comprises the steps:
Step 301: when the network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message by the described network equipment, and described BFD message comprises the routing iinformation of described first network equipment;
Step 302: the described network equipment sends described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described first network equipment.
The route withdraw method of the embodiment of the present invention, directly can delete and delete through the route of the described network equipment to first network equipment through the described network equipment, not affect other normal links and receive business on second network equipment.
Preferably, can be, but not limited to realize step 301 by following manner.
Mode one: when a BFD module of the described network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to the 2nd BFD module of the described network equipment by a BFD module of the described network equipment;
The BFD message template that 2nd BFD module searches of the described network equipment is corresponding with described first network equipment, obtains the BFD message mated with the routing iinformation of described first network equipment.Mode two: when a BFD module of the described network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to the 2nd BFD module of the described network equipment by a BFD module of the described network equipment;
The routing iinformation of described first network equipment is packaged into BFD message by the 2nd BFD module of the described network equipment.
Preferably, described routing iinformation comprises route ID (Router ID) and the subnet mask (Network Mask) of described first network equipment.
Preferably, described BFD message carries cancels route field, described route field of cancelling comprises routing information field, type the type field, and described routing information field comprises the routing iinformation of described first network equipment, and described type the type field comprises the indication information of cancelling described routing iinformation.
Preferably, when the network equipment detects with the link failure of multiple first network equipment room or multiple first network equipment fault, can the routing iinformation of described multiple first network equipment be encapsulated in same BFD message, once can send all routes needing to cancel like this.
Preferably, a kind of route withdraw method of embodiment of the present invention design, also comprises:
When the described network equipment detect recover with the link failure recovery of first network equipment room or first network equipment fault time, the routing iinformation of described fault recovery link or fault recovery first network equipment is packaged into BFD message by the described network equipment, and described BFD message comprises the routing iinformation of described fault recovery link or fault recovery first network equipment;
The described network equipment sends described BFD message to second network equipment, recovers the route of described second network equipment to described first network equipment to make described second network equipment.
Preferably, the described network equipment is specially and converges side gateway A SG, and described first network equipment is specially base station side gateway CSG, and described second network equipment is specially wireless traffic side gateway RSG.
Below in conjunction with Fig. 4, the preferred embodiments of the present invention one are described.
The method of route that what the embodiment of the present invention provided cancel can be applied to metropolitan area network, also can be applied in IP wireless access network (IP Radio Access Network, IPRAN).
In the Layer2+Layer3 deployment scenario that current IP RAN disposes, usually BFD technology is adopted to carry out frequency converter as shown in Figure 4, base station side gateway (Cell Site Gateway, CSG) to converging side gateway (Aggregation Site Gateway, ASG) pseudo-line redundancy (Pseudowire Redundancy is disposed, PW Redundancy) protection, that is primary PW and PW for subsequent use is set up between CSG1 and main ASG and CSG1 and standby ASG, PW Redundancy redundancy protecting is set up between primary PW and PW for subsequent use, after primary PW link is abnormal, CSG1 is to the flow switch of main ASG to CSG1 to ASG for subsequent use, also set up PW Redundancy redundancy protecting between certain CSG2 and main ASG and CSG2 and standby ASG, between CSG3 and main ASG and CSG2 and standby ASG, also set up PW Redundancy redundancy protecting.At ASG to wireless traffic side gateway (Radio Service Gateway; RSG) VPN Quickly regroup (VPN Fast Reroute is disposed between; VPN FRR) and MPLS TE hot standby (MPLS TE Hot Standby, MPLS TE HSB) protection.
After active link PW fault CSG1, 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 can pass through main ASG, through standby ASG, then get back to CSG1 by PW for subsequent use.If but when the link now between main ASG and standby ASG is also abnormal, after arriving main ASG from the flow of main RSG to CSG1, because link is all abnormal, route is interrupted, and the message from RNC to CSG1 can be lost.
When link between primary PW and main ASG and standby ASG is all abnormal, the flow from RSG to base station can be caused also to interrupt to standby ASG link is abnormal due to main ASG.In order to avoid flow interrupt, the method for the route withdraw that the embodiment of the present invention can be adopted to provide, comprising:
Step 1: when the main ASG of convergence side gateway detects the link (PW of base station side gateway CSG1 to the main ASG of described convergence side gateway, LSP, Tunnel, interface etc.) delay, the routing iinformation of this base station side gateway CSG1 is packaged into two-way converting and detects BFD message by the main ASG of described convergence side gateway, described routing iinformation comprises IP address and the subnet mask of this base station side gateway CSG1, as 100.1.1.0/24.
Described BFD message comprises the routing iinformation of this base station side gateway CSG1; Described BFD message also comprises the indication information of cancelling described routing iinformation.
As shown in Figure 5, the embodiment of the present invention carries the field cancelling route in the BFD protocol fields of RFC5880: 1, routing iinformation Data field, and described routing information field comprises the routing iinformation of described first network equipment, can be IPv4/IPv6 route; 2, type the type field, comprises the indication information of cancelling described routing iinformation.
Wherein, the main ASG of described convergence side gateway and standby ASG comprises a BFD module corresponding with described base station side gateway CSG1, CSG2, CSG3 respectively, the main ASG of described convergence side gateway and standby ASG also comprise respectively with the main RSG of described wireless traffic side gateway, the 2nd BFD module that standby RSG is corresponding
Wherein, can be, but not limited to realize step 1 by following manner,
Mode one: when the BFD module of the main ASG of described convergence side gateway detect and link failure between base station side gateway CSG1 time, the BFD module of the main ASG of described convergence side gateway by described base station side gateway CSG1 routing iinformation inform to the 2nd BFD module of the main ASG of described convergence side gateway; Concrete advice method can adopt broadcast or mode of unicast, and the embodiment of the present invention to limit, does not all belong to the protection range of the embodiment of the present invention.
The BFD message template corresponding with each base station side gateway CSG is preserved in the 2nd BFD module of the main ASG of described convergence side gateway, this BFD message template encapsulates complete BFD message according to the form shown in Fig. 5, and described BFD message comprises the routing iinformation of this base station side gateway CSG; Described BFD message also comprises the indication information of cancelling described routing iinformation.
The BFD message template that the 2nd BFD module searches of the main ASG of described convergence side gateway is corresponding with described base station side gateway CSG, obtains the BFD message mated with the routing iinformation of described base station side gateway CSG1.
The 2nd BFD module of the main ASG of described convergence side gateway does not need encapsulation, directly this has been encapsulated complete BFD message and has sent to the main RSG of wireless traffic side gateway, with the route making this wireless traffic side main RSG of gateway cancel this RSG to CSG1.Afterwards, this RSG can use the reserve link of CSG1 or reselect to the route of CSG1, and in the follow-up route having the flow to CSG1 to be switched to reserve link or to reselect.And because do not need encapsulation, this has directly been encapsulated complete BFD message and has sent to the main RSG of wireless traffic side gateway by Forwarding plane, the whole time of cancelling method for routing and needing can be reduced especially, made user can not perceive link abnormal, improve Consumer's Experience.
Mode two: when the BFD module of the main ASG of described convergence side gateway detect and link failure between base station side gateway CSG1 time, the BFD module of the main ASG of described convergence side gateway by described base station side gateway CSG1 routing iinformation inform to the 2nd BFD module of the main ASG of described convergence side gateway; Concrete advice method can adopt broadcast or mode of unicast, and the embodiment of the present invention to limit, does not all belong to the protection range of the embodiment of the present invention.
The routing iinformation of described base station side gateway CSG1 is packaged into BFD message by the 2nd BFD module of the main ASG of described convergence side gateway.This BFD message is the BFD message according to the form encapsulation shown in Fig. 5, and described BFD message comprises the routing iinformation of this base station side gateway CSG; Described BFD message also comprises the indication information of cancelling described routing iinformation.
Step 2: the main ASG of described convergence side gateway sends described BFD message to the main RSG of described wireless traffic side gateway, cancels the route of the main RSG of described wireless traffic side gateway to described base station side gateway CSG1 to make the main RSG of described wireless traffic side gateway.Afterwards, this RSG can use the reserve link of CSG1 or reselect to the route of CSG1, and in the follow-up route having the flow to CSG1 to be switched to reserve link or to reselect.Because this is cancelled method for routing and uses the transmission of BFD message, whole implementation procedure only needs the time in hundred milliseconds of ranks, makes user can not perceive link abnormal, improves Consumer's Experience.
When the link-recovery of base station side gateway CSG1 and the main ASG of convergence side gateway, the wireless traffic side main RSG of gateway of notice far-end can return to the route of base station side gateway CSG1, be specifically as follows: detect that base station side gateway CSG1 is to the link (PW converging the main ASG of side gateway when converging the main ASG of side gateway, LSP, Tunnel, interface etc.) link-recovery time, converge side gateway main ASG and the routing iinformation of described base station side gateway CSG1 is packaged into BFD message, described BFD message comprises the routing iinformation of described base station side gateway CSG1; Preferably, described BFD message also comprises the indication information of the routing iinformation recovering described base station side gateway CSG1.
The main ASG of described convergence side gateway sends described BFD message to the main RSG of wireless traffic side gateway, recovers the route of the main RSG of described wireless traffic side gateway to described base station side gateway CSG1 to make the main RSG of described wireless traffic side gateway.And have the flow to CSG1 to be switched to this route follow-up.
Based on same mentality of designing, the embodiment of the present invention additionally provides a kind of network equipment.Consult shown in Fig. 6, comprising:
Package module 601, during for detecting when the described network equipment with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message, described BFD message comprises the routing iinformation of described first network equipment; Sending module 602, for sending described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described first network equipment.
Preferably, described package module specifically comprises a BFD module and the 2nd BFD module,
A described BFD module, for detecting and the link failure of first network equipment room or first network equipment fault, and for when detecting with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to described 2nd BFD module;
Described 2nd BFD module, for searching the BFD message template corresponding with described first network equipment, obtains the BFD message mated with the routing iinformation of described first network equipment.
Or preferably, described package module specifically comprises a BFD module and the 2nd BFD module, a described BFD module, for detecting and the link failure of first network equipment room or first network equipment fault, and for when detecting with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is informed to described 2nd BFD module;
Described 2nd BFD module, for being packaged into BFD message by the routing iinformation of described first network equipment.
Preferably, described BFD message carries cancels route field, described route field of cancelling comprises routing information field, type the type field, and described routing information field comprises the routing iinformation of described first network equipment, and described type the type field comprises the indication information of cancelling described routing iinformation.
Preferably, package module, also for detect when the described network equipment recover with the link failure of first network equipment room or first network equipment fault time, the routing iinformation of described fault recovery link or fault recovery first network equipment is packaged into BFD message, and described BFD message comprises the routing iinformation of described fault recovery link or fault recovery first network equipment;
Sending module, for sending described BFD message to second network equipment, recovers the route of described second network equipment to described first network equipment to make described second network equipment.
Preferably, the described network equipment is specially and converges side gateway A SG.
Embodiments of the invention also provide a kind of network equipment, comprise with reference to shown in Fig. 7: processor 701, memory 702, transmitter 703 and bus 704, this processor 701, memory 702 and transceiver 703, to be connected by bus 704 and to complete mutual communication, wherein:
This bus 704 can be industry standard architecture (Industry Standard Architecture, ISA) bus, peripheral component interconnect (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc.This bus 704 can be divided into address bus, data/address bus, control bus etc.For ease of representing, only representing with a line in Fig. 8, but not representing the bus only having a bus or a type.
Memory 702 is for program code stored, and this program code comprises operational order.Memory 702 may comprise high speed random asccess memory (random access memory, RAM), also may comprise nonvolatile memory (non-volatile memory), such as magnetic disc store.
Processor 701 may be a central processing unit (Central Processing Unit, CPU), or specific integrated circuit (Application Specific Integrated Circuit, or be configured to implement one or more integrated circuits of the embodiment of the present invention ASIC).
Transmitter 703, is mainly used in realizing the transmitting-receiving of communication data between the network equipment in the present embodiment and other network equipment.
Particularly, processor 701, for calling the program code in memory 702, in order to perform following operation:
When the described network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message, described BFD message comprises the routing iinformation of described first network equipment;
Transmitter 703 for sending described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described 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, comprises the network equipment and the second network equipment of the embodiment of the present invention.As shown previously, second network equipment, for cancelling the route of described second network equipment to first network equipment for the network equipment.
In the embodiment of the present invention, when the network equipment detects with the link failure of first network equipment room or first network equipment fault, the routing iinformation of described first network equipment is packaged into two-way converting and detects BFD message by the described network equipment, and described BFD message comprises the routing iinformation of described first network equipment; The described network equipment sends described BFD message to second network equipment, to make second network equipment described in described second network device revocation to the route of described first network equipment.Directly can delete through the route of the described network equipment to first network equipment on second network equipment, not affect other normal links and receive business.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.