CN103200109A - Method and device for OSPF neighboring node management - Google Patents

Method and device for OSPF neighboring node management Download PDF

Info

Publication number
CN103200109A
CN103200109A CN2013100955041A CN201310095504A CN103200109A CN 103200109 A CN103200109 A CN 103200109A CN 2013100955041 A CN2013100955041 A CN 2013100955041A CN 201310095504 A CN201310095504 A CN 201310095504A CN 103200109 A CN103200109 A CN 103200109A
Authority
CN
China
Prior art keywords
ospf
interface
neighbor
state
full
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013100955041A
Other languages
Chinese (zh)
Other versions
CN103200109B (en
Inventor
陆亦雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201310095504.1A priority Critical patent/CN103200109B/en
Publication of CN103200109A publication Critical patent/CN103200109A/en
Application granted granted Critical
Publication of CN103200109B publication Critical patent/CN103200109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for OSPF neighboring node management. The method is applied to a stack device, an OSPF host process is operated on one member device in the stack device, and OSPF reserved processes are operated on other member devices. The method includes the following steps that when detecting the fact that neighboring states of ports of member devices where the OSPF reserved processes are operated are changed into full adjacency FULL states, the OSPF host process stops to manage OSPF neighboring nodes and instructs the OSPF reverse processes to manage the OSPF neighboring nodes of the ports; when detecting the fact that the neighboring nodes of the ports of the member devices where the OSPF reversed processes are operated are not the FULL states, the OSPF reverse processes stop to manage the OSPF neighboring nodes of the ports and inform the OSPF host process to take over OSPF neighboring node management operation of the ports. According to the method and the device, resource expenses during an OSPF neighboring node management process can be reduced.

Description

A kind of ospf neighbor relationship management method and equipment
Technical field
The present invention relates to the communications field, relate in particular to a kind of ospf neighbor relationship management method and equipment.
Background technology
Along with the continuous development of computer technology and network technology, people are more and more higher to the requirement of the reliability of network.Present IRF(Intelligent Resilient Framework, the intelligence resilient infrastructure) technology can realize multiple devices are virtualized into an equipment unified management, as shown in Figure 1, this virtual equipment not only can be to the multiple devices unified management of forming, the more important thing is the software and hardware ability that to gather multiple devices, realize professional backup.
IRF is made up of many member devices, the role of member device be divided into Master(master with) and Slave(standby).The Master member device is responsible for the Operations, Administration and Maintenance of IRF, and the Slave member device also can be managed business in as backup.In case the Master equipment fault, the new Master of system's rapid automatic election of meeting does not interrupt to guarantee business, thereby has realized the 1:N backup of equipment.
OSPF(Open Shortest Path First, Open Shortest Path First) agreement is a kind of Interior Gateway Protocol based on Link State.In same routed domain, the router of operation ospf protocol is by the mutual and LSA(Link State Advertisement that floods, and LSA carries routing iinformation), safeguard an identical LSDB(Link State Database separately, LSD).
OSPF has five types protocol massages:
Hello packet: periodically send, be used for finding and keep the ospf neighbor relation, and carry out DR(Designated Router, Designated Router)/BDR(Backup Designated Router, BDR) election;
DD(Database Description, database description) message: described local LSDB(Link State Database, LSD) each bar LSA(Link State Advertisement in, LSA) summary info is used for two routers and carries out database synchronization;
LSR(Link State Request, the Link State request) message: ask required LSA to the other side.Two routers are intercoursed after the Data Description (DD) packet, and which LSA the router of learning the opposite end has is that local LSDB lacks, and at this moment needs to send link state request packet and asks required LSA to the other side;
LSU(Link State Update, Link State upgrades) message: send its needed LSA to the other side;
LSAck(Link State Acknowledgment, link state acknowledgment) message: be used for the LSA that receives is confirmed.
Ospf neighbor adjacency establishment process as shown in Figure 2.The interface enable OSPF function of Router A and Router B, Router A and Router B send by interface or receive hello packet, and by hello packet, Router A and Router B know existence each other; Exchange Data Description (DD) packet then, i.e. the summary of the routing iinformation that exchange is known each other; After Data Description (DD) packet finishes alternately, Router A and Router B begin to ask for the routing iinformation that oneself lacks to the other side by link state request packet, and routing iinformation will send by link state update packet (wherein carrying LSA), for the reliability that guarantees that LSA is mutual, with link state acknowledgment packet link state update packet is replied, show and oneself received the link state update packet of opposite end.
Wherein, ospf router fully in abutting connection with before, several states of process comprise:
(1) Down: initial condition, this state also do not have and other routers exchange information.
(2) interface of type Attempt: only be applicable to NBMA(Non-Broadcast Multiple Access, NBMA), when being in this state, regularly the neighbours to those manual configuration send hello packet.
(3) Init: recipient's router has received the hello packet of end-to-end router, but does not find the router-id of oneself from the Hello bag of end-to-end router, and this moment, communication was unidirectional.
(4) Two-Way: bi-directional session is set up state, finds the router-id of oneself in the hello packet of receiving.In case router enters the Two-Way state, they just are considered to neighbours, and will conduct an election process this moment, select Designated Router (DR) and BDR (BDR).
(5) ExStart: the information exchange initial condition, under this state, local router and neighbours will set up the Master/Slave relation.
(6) Exchange: the information exchange state, local router and neighbours exchange one or more DBD groupings (also being DDP).DBD comprises the summary info of LSA clauses and subclauses among the relevant LSDB.
(7) Loading: information stress state.After receiving DBD, the information among the information of same LSDB that receives is compared, if the Link State clauses and subclauses of renewal are arranged among the DBD, then send a LSR to the other side, be used for the LSA that please look for novelty.
(8) Full: complete adjacency state, the link state database synchronization between adjacency is finished at this moment.
Though IRF can invent multiple devices an equipment, can unified management and the software and hardware resources that utilizes multiple devices, but it is not an equipment after all, the transmission of various signals is all carried out at the IRF link, this just makes the IRF link circuit resource seem most valuable, when the IRF link congestion, also may cause losing of various messages and signal.How the variety of protocol message better transmits between each member device and handles, and should accomplish that message do not lose, and also will reduce the utilization to the IRF link circuit resource, need be as the factor of considering in specific implementation.
Present realization is that all messages are all transferred to the processing of OSPF host process.
In many member devices of IRF, each member device can form the backup of 1:N.The host process of OSPF operates on the member device of IRF or on the control board of a certain member device, and OSPF is equipped with on other member device that process operates in IRF or on other control board.The processing of all business of OSPF as to the processing of configuration messages, the processing introduced to the processing of periodically packet, the processing of calculating to the maintenance of state machine and LSDB, to route and to route etc., all is to be handled by host process.Each is equipped with the standby redundancy that process is host process, not by the perception of professional institute, is equipped with process and is data such as configuration that passive reception host process passes over or state, and business module is left intact.
In the actual networking, all IRF members comprise at least one control board, and the number of interface board can be 0, but all is one at least under most of situation.As shown in Figure 3, device A and equipment B are configured to an IRF, the OSPF host process operates on the control board of member device A of IRF, is equipped with on the control board of member device B that process operates in IRF, forms the backup of 1:1.IRF sets up ospf neighbor by business board and the equipment C of member device B, because all business are all handled by host process, so the message of the OSPF that receives at IRF all is the business board by member device B to be received and sends member device A to by the IRF link then, is responsible for the OSPF message is handled by member device A.Operate in the last ospf process of member device B and just receive the data that host process sends passively, do not participate in the processing to the OSPF message that receives.
May there be following situation in real network, is example with Fig. 3, and under the situation that the ospf neighbor relation has been set up between the equipment, the OSPF message is that periodic hello packet is notified the other side's existence each other alternately between the equipment.In the prior art, the member device A that the hello packet that IRF member device B receives all will send IRF by the IRF link to is handled by the control board at OSPF host process place.
Not only waste the link circuit resource of IRF under this situation, also might cause the part message not processed, caused the more resources waste.
Summary of the invention
The embodiment of the invention provides a kind of ospf neighbor relationship management method and equipment, in order to reduce the resource overhead in the ospf neighbor relation management process.
The ospf neighbor relationship management method that the embodiment of the invention provides is applied to stack equipment, operation OSPF host process on the member device in the described stack equipment, and operation OSPF is equipped with process on other member device, and described method comprises:
When the OSPF host process detects neighbor state that OSPF is equipped with the interface on the member device of process place and becomes full state, stop to manage the ospf neighbor relation of this interface, and indicate described OSPF to be equipped with the ospf neighbor relation of this interface of management of process;
It is that the interface of FULL is when no longer being full state that described OSPF is equipped with neighbor state on the member device that process detects this process place, stop to manage the ospf neighbor relation of this interface, and the ospf neighbor relation management operation of notifying described OSPF host process to take over this interface.
The network equipment that the embodiment of the invention provides, be applied to the member device in the stack equipment, this equipment comprises: control board comprises the ospf protocol module in the described control board, comprise detecting unit in the described ospf protocol module, and operation there is the process performance element of ospf process;
Described detecting unit is for detection of the neighbor state of the current ospf neighbor interface of managing of the ospf process that moves in the described process performance element;
Described process performance element, be used under the situation of this unit operation OSPF host process, when described detecting unit detects neighbor state that OSPF is equipped with the interface on the member device of process place and becomes full state, stop to manage the ospf neighbor relation of this interface, and indicate described OSPF to be equipped with the ospf neighbor relation of this interface of management of process; Operation OSPF is equipped with under the situation of process in this unit, be that the interface of FULL is when no longer being full state when described detecting unit detects neighbor state on this equipment, stop to manage the ospf neighbor relation of this interface, and the ospf neighbor relation management operation of notifying described OSPF host process to take over this interface.
In the above embodiment of the present invention, if detecting the neighbor state that OSPF is equipped with the interface on the member device of process place, the OSPF host process becomes full state, the ospf neighbor relation of then notifying this OSPF to be equipped with this interface of management of process, if it is that the interface of FULL is when no longer being full state that OSPF is equipped with neighbor state on the member device that process detects this process place, the ospf neighbor relation management operation of then notifying the OSPF host process to take over this interface, need save the bandwidth of piling up link by piling up the ospf protocol message that link sends thereby reduced.
Description of drawings
Fig. 1 is IRF networking schematic diagram of the prior art;
Fig. 2 sets up schematic diagram for ospf adjacency relation in the prior art;
Fig. 3 is IRF internal unit networking exemplary plot of the prior art;
Fig. 4 is the IRF networking schematic diagram in the embodiment of the invention;
The structural representation of the network equipment that Fig. 5 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of ospf neighbor relation management scheme that is applied to stack equipment.In the embodiment of the invention, under the situation that the ospf neighbor relation has been set up, allow the ospf process on each interface place member device handle hello packet, safeguard normal neighborhood, thereby reduce hello packet periodically in the transmission on the link of piling up between member device, thereby save resource overhead.
The stack equipment that the embodiment of the invention can be applicable to adopt the technology of piling up to form is such as the stack equipment that adopts the IRF technology to form.Be example with the IRF technology below, and by reference to the accompanying drawings the embodiment of the invention be described.Be convenient and describe that " the IRF equipment " in below describing refers to the stack equipment that adopts the IRF techniques stack to form.
In IRF equipment, operation OSPF host process (being designated hereinafter simply as host process) on the member device, operation OSPF is equipped with process (being designated hereinafter simply as process fully) on other member device.
Interface enable OSPF function and up(that the OSPF host process detects IRF equipment open) after, trigger this interface and carry out neighbor discovery process, and in this process, the ospf protocol message of handling ospf protocol message that this interface receives and need sending from this interface; After the ospf neighbor state of this interface becomes full state, stop the ospf neighbor on this interface relation is carried out the maintenance and management operation, the process that is equipped with on the member device at this interface place of indicating is taken over ospf neighbor relationship safeguard and bookkeeping on this interface.
The ospf neighbor state of this interface has been under the situation of full state; may be because neighborhood keep-alive timer expiry; perhaps receive the hello packet that does not comprise this equipment the neighborhood field from neighbor device; perhaps the state of this interface such as shakes at reason between Up and Down, and the ospf neighbor state that will cause this interface becomes other state by full state and needs carry out the maintenance of neighbor state again to this interface.In such cases, the processing of again this interface being carried out the hello packet of neighbor state when safeguarding also is to be handled by host process.
Concrete, neighbor state on being equipped with the member device that process detects this process place is that the interface of FULL is when no longer being full state, stop the neighborhood on this interface is carried out the maintenance and management operation, the notice host process is carried out maintenance and management to the neighborhood on this interface.
Further, as shown in Figure 3, consider under the situation that the ospf neighbor relation has been set up and the network route is constantly shaken between IRF equipment and the equipment C, it is mutual that IRF equipment and equipment C may need to carry out a large amount of link state update packet, and these link state update packet all need to send member device A by the IRF link to from the member device B of IRF.Especially, constantly lost efficacy repeatedly and came into force if equipment C goes up some OSPF route, equipment C will constantly send link state update packet to IRF equipment repeatedly so, and these link state update packet also can constantly send member device A by the IRF link to from member device B repeatedly.This has not only wasted the link circuit resource of IRF, also might cause the part message not processed, causes the more resources waste.
In order to address this problem, the embodiment of the invention also provides following solution: have route to change to exist LSU more under the news in ospf network, process fully on each member device receives link state update packet and does not send host process immediately to, but wait for a SPF(Shortest Path First, SPF) time in counting period, and in this process, safeguard up-to-date LSA, send up-to-date LSA to host process in batches then and handle.
Concrete, on the IRF equipment in the embodiment of the invention, the ospf process on all member devices safeguards that SPF calculates timer, and is preferred, all ospf process on the IRF equipment can safeguard that same SPF calculates timer.This length of timer is not more than the time span in a SPF counting period.Ospf process on all member devices all will be safeguarded LSDB.Preferably, comprise the LSDB of each member device among the LSDB of host process maintenance, the LSDB that is equipped with the process maintenance can only comprise the LSDB of this process place member device, and further, the LSDB that is equipped with the process maintenance can only comprise the content of LSDB head.
Be to preserve after the interface of FULL receives LSA the LSDB that this LSA safeguards to this process from neighbor state when being equipped with the member device of process at this process place, with the LSA header information comparison among the head of this LSA and the own LSDB that safeguards, with judgement which kind of this LSA carried out and handle (judgement and processing method are identical to the processing method that receives LSA with host process), and, if current SPF calculates also not startup or overtime of timer, then start or this timer of resetting.When SPF calculates timer expiry, being equipped with process will need to send to host process for synchronously the LSA of host process, and the LSDB(of this process of renewal maintenance namely only keeps the header information of LSA).Host process is upgraded the LSDB that this process is safeguarded according to this LSA after receiving the LSA that process sends over fully, and carries out SPF according to the LSDB after upgrading and calculate.
In order more clearly the embodiment of the invention to be described, be example with IRF structure shown in Figure 4 below, the specific implementation process of the embodiment of the invention is described.IRF networking shown in Figure 4 is the structure of two member devices, and is similar with it for the situation that includes the greater number control board in more member devices and the member device.
As shown in Figure 4, comprise 2 member devices among the IRF: equipment 1 and equipment 2.Equipment 1 comprises a control board and an interface board, and operation has the OSPF host process on the control board, and interface A is arranged on the interface board, and Router A is configured to the ospf neighbor on the interface A; Equipment 2 comprises a control board and an interface board, and operation has OSPF to be equipped with process on the control board, and interface B is arranged on the interface board, and Router B is configured to the ospf neighbor on the interface B.Ospf process on equipment 1 and the equipment 2 safeguards that SPF calculates timer, and the timing duration of this timer is not more than the duration in a SPF counting period, and preferred, the timing duration of this timer is the duration in a SPF counting period.When equipment is initial, all do not enable the OSPF function on the interface A of equipment 1 and the interface B of equipment 2, the OSPF connection status is Down.
When the interface A at equipment 1 enables the OSPF function, and when interface A opened (up), this configuration operation triggers the OSPF main program and generates hello packet, sends to Router A by interface A, sets up process with the syntople that triggers between this equipment and the Router A.In this process, the ospf neighbor state from the ospf neighbor discovery stage to interface A becomes before the FULL, handles the OSPF association message by the OSPF main program according to existing mode.
The interface A of IRF and Router A finish syntople and set up, and the ospf neighbor state of interface A is FULL.After the ospf neighbor state that the OSPF host process detects interface A is FULL, since the interface board at the control board at OSPF host process place and the interface A place that current state is FULL on same member device, therefore continue by the OSPF host process be in charge of with maintenance interface A on the ospf neighbor relation.That is, need generate by the OSPF host process by the ospf protocol message that interface A sends for this IRF, send to interface board by the communication link between master control borad and interface board, sent from interface A by interface board; After interface A receives the ospf protocol message, the interface board at interface A place by and master control borad between communication link send to master control borad, thereby handled by the OSPF host process.For example, the OSPF host process generates the hello packet that need send to Router A, and sends to Router A by interface A; Interface board will send to the OSPF host process from the hello packet that interface A receives and handle.
After this, enable the OSPF function at the interface B of equipment 2, and interface B is opened (up).This configuration operation triggers the OSPF main program and generates hello packet, and sends to equipment 2 by the IRF link between equipment 1 and the equipment 2, and the interface B by equipment 2 sets up process to Router B transmission with the syntople that triggers between this equipment and the Router B.In this process, the ospf neighbor state from the ospf neighbor discovery stage to interface B becomes before the FULL, handles the OSPF association message by the OSPF main program.
Interface B and Router B finish syntople and set up, and the ospf neighbor state of interface B is FULL.After the ospf neighbor state that the OSPF host process detects interface B is FULL, stopping to generate need be to the ospf protocol message (as hello packet) of Router B transmission, and be equipped with process to OSPF and send instruction, be equipped with ospf neighbor relation on management of process and the maintenance interface B with indication OSPF.
After OSPF on the control board of equipment 2 is equipped with process and receives this instruction, generate the ospf protocol message that need send to Router B according to ospf protocol, and send to Router B by interface B; The interface board of equipment 2 will send to the control board of equipment 2 from the ospf protocol message that interface B receives, and be equipped with process by the OSPF on this control board and handle.
Concrete, OSPF is equipped with process and generates the hello packet that need send to Router B, and sends to Router B by interface B; Interface board will send to OSPF from the hello packet that interface B receives and be equipped with process and handle.
Receive the LSA of Router B transmission as interface B after, the interface board at interface B place is equipped with process with the OSPF that this LSA sends on the equipment 2; OSPF is equipped with process the head of the LSA that stores among the head of this LSA and the local LSDB is compared, if the LSA that receives has higher-version, then preserves the full content of this LSA to local LSDB; In SPF calculates the timer timing time, as long as interface B receives LSA, namely handle in the manner described above; When SPF calculates timer expiry, being equipped with process calculates SPF among the LSA that receives in the timing time section before the timer expiry and needs to send to the OSPF host process in batches for synchronously the LSA of host process, and upgrade local LSDB(namely, only keep the header information of these LSA); Host process is upgraded local LSDB after receiving the LSA that process is sent fully, and carries out SPF according to the LSDB after upgrading and calculate.
After this; because ospf neighbor keep-alive timer expiry; the ospf neighbor state of interface B no longer is full state; OSPF on the control board of equipment 2 is equipped with process, and to detect interface B no longer be full state; then send notice to the OSPF host process; ospf neighbor state with notification interface B no longer is full state; take over ospf neighbor relationship safeguard and the bookkeeping of interface B with request OSPF host process; should be equipped with the ospf neighbor relation that process stops on the docking port B and carry out maintenance and management; namely; this OSPF is equipped with not regeneration ospf protocol message and send by interface B of process; the interface board of equipment 2 also no longer will send to OSPF from the ospf protocol message that interface B receives and be equipped with the process processing, handle but send to the OSPF host process.After the OSPF host process receives this notice, administer and maintain neighborhood on the interface B according to existing mode.
After this, after ospf neighbor state that the OSPF host process detects interface B becomes FULL again, be equipped with process to OSPF and send instruction, be equipped with ospf neighbor relation on management of process and the maintenance interface B with indication OSPF.
By above description as can be seen, if IRF equipment is set up by the interface A of equipment 1 and the ospf adjacency relation of Router A, the neighbor state of interface A reaches full state, just handled by the OSPF host process on the equipment 1 about the maintenance of ospf neighbor relation on this interface so, if IRF equipment is set up by the interface B of equipment 2 and the ospf adjacency relation of Router B, the neighbor state of interface B reaches full state, just being equipped with process by the OSPF on the equipment 2 about the maintenance of ospf neighbor relation on this interface so handles, so periodic hello packet just can not transmit at the IRF of IRF equipment link, thus the bandwidth of having saved the IRF link.
Further, after OSPF is equipped with process and takes over ospf neighbor relationship safeguard and bookkeeping on the interface B, for the LSA that receives from interface B, calculate timer according to the SPF that sets and send to the OSPF main program in batches, thereby further saved the resource overhead on the IRF link.
Based on identical technical conceive, the invention process also provides a kind of network equipment.
Referring to Fig. 5, the structural representation of the network equipment that provides for the embodiment of the invention.This network equipment is applied to the member device in the stack equipment.As shown in Figure 5, this network equipment comprises control board 51, also can further comprise one or more interface boards (not illustrating in the drawings).Comprise ospf protocol module 511 in the control board 51, comprise detecting unit 1 in the ospf protocol module 511, and operation there is the process performance element 2 of ospf process.For clarity sake, Fig. 5 shows the structure of two member devices (member device 10 and member device 20) in the IRF equipment.As shown in Figure 5:
Detecting unit 1 is for detection of the state of the current ospf neighbor interface of managing of ospf process of operation in the process performance element 2;
Process performance element 2, be used under the situation of this unit operation OSPF host process, become complete during in abutting connection with full state when detecting unit 1 detects neighbor state that OSPF is equipped with the interface on the member device of process place, stop to manage the ospf neighbor relation of this interface, and indicate described OSPF to be equipped with the ospf neighbor relation (the process performance element 2 that is equipped with process as indication operation OSPF) of this interface of management of process; Operation OSPF is equipped with under the situation of process in this unit, be that the interface of FULL is when no longer being full state when detecting unit 1 detects neighbor state on this equipment, stop to manage the ospf neighbor relation of this interface, and the ospf neighbor relation management operation (as the process performance element 2 of notice operation OSPF host process) of notifying described OSPF host process to take over this interface.
Further, process performance element 2 also is used for, operation OSPF is equipped with under the situation of process in this unit, after receiving the indication that described OSPF host process sends, according to ospf protocol, neighbor state is that the interface of FULL sends the ospf protocol message from this equipment, and is that the ospf protocol message of the interface of FULL is handled to coming from neighbor state on this equipment.
Further, process performance element 2 also is used for, under the situation of this unit operation OSPF host process, after receiving that described OSPF is equipped with the notice of process transmission, according to ospf protocol, be equipped with from described OSPF that specified interface sends the ospf protocol message on the member device at process place, and the ospf protocol message that comes from this specified interface is handled; Described specified interface is that described to notify indicated neighbor state no longer be the interface of FULL.
Concrete, process performance element 2 specifically is used for: in this unit operation OSPF host process and indicate OSPF to be equipped with under the situation of ospf neighbor relation that this OSPF of management of process is equipped with interface on the member device of process place, stop to generate and need be equipped with the ospf protocol message that interface that neighbor state on the member device of process place becomes FULL sends from described OSPF; Being equipped with process and stopping to manage neighbor state on this this equipment at this unit operation OSPF is that the interface of FULL no longer is under the situation of ospf neighbor relation of full state interface, stopping to generate need no longer be the ospf protocol message that the interface of full state sends from the neighbor state on this equipment, and no longer is that ospf protocol message that the interface of full state receives sends to described OSPF host process and handles with the described neighbor state on this equipment.
Further, process performance element 2 also is used for: operation OSPF is equipped with under the situation of process in this unit, is after the interface of FULL receives LSA LSA, to upgrade the LSDB that this process is safeguarded according to described LSA from neighbor state at this equipment; When SPF calculates timer expiry, the LSDB that safeguards according to this process determines the LSA that needs upgrade, the LSA that needs are upgraded sends to described OSPF host process, the LSDB that this process of renewal is safeguarded, the LSDB that this process of making is safeguarded only comprises the header information of LSA, the current overtime described SPF that then resets calculates timer if described SPF calculates timer, and wherein, described length of timer is not more than the duration in a SPF counting period; Under the situation of this unit operation host process, receive after described OSPF is equipped with the LSA that process sends over, upgrade the LSDB that this host process is safeguarded according to described LSA, and carry out SPF SPF according to the LSDB after upgrading and calculate.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.

Claims (10)

1. Open Shortest Path First an ospf neighbor relationship management method is applied to stack equipment, operation OSPF host process on the member device in the described stack equipment, and operation OSPF is equipped with process on other member device, it is characterized in that described method comprises:
The OSPF host process detects neighbor state that OSPF is equipped with the interface on the member device of process place and becomes fully during in abutting connection with full state, stops to manage the ospf neighbor relation of this interface, and indicates described OSPF to be equipped with the ospf neighbor relation of this interface of management of process;
It is that the interface of FULL is when no longer being full state that described OSPF is equipped with neighbor state on the member device that process detects this process place, stop to manage the ospf neighbor relation of this interface, and the ospf neighbor relation management operation of notifying described OSPF host process to take over this interface.
2. the method for claim 1 is characterized in that, described method also comprises:
After described OSPF is equipped with the indication that process receives that described OSPF host process sends, according to ospf protocol, the interface that is equipped with neighbor state on the member device at process place from described OSPF and is FULL sends the ospf protocol message, and is that the ospf protocol message of the interface of FULL is handled to coming from neighbor state on the member device that described OSPF is equipped with the process place.
3. the method for claim 1 is characterized in that, described method also comprises:
After described OSPF host process receives that described OSPF is equipped with the notice that process sends, according to ospf protocol, be equipped with from described OSPF that specified interface sends the ospf protocol message on the member device at process place, and the ospf protocol message that comes from this specified interface is handled; Described specified interface is that described to notify indicated neighbor state no longer be the interface of FULL.
4. the method for claim 1 is characterized in that, described OSPF host process stops to manage the ospf neighbor relation of this interface, specifically comprises:
Described OSPF host process stops to generate and need be equipped with the ospf protocol message that interface that neighbor state on the member device of process place becomes FULL sends from described OSPF;
Described OSPF is equipped with the ospf neighbor relation that process stops to manage this interface, specifically comprises:
It need no longer be the ospf protocol message that the interface of full state sends from the neighbor state on the member device of this process place that described OSPF is equipped with that process stops to generate, and no longer is that ospf protocol message that the interface of full state receives sends to described OSPF host process and handles with the described neighbor state on the member device of this process place.
5. as any described method of claim 1-4, it is characterized in that described method also comprises:
It is after the interface of FULL receives LSA LSA, to upgrade the LSDB that this process is safeguarded according to described LSA from neighbor state at the member device at this process place that described OSPF is equipped with process;
When SPF SPF calculates timer expiry, described OSPF is equipped with process is determined the needs renewal according to the LSDB of this process maintenance LSA, the LSA that needs are upgraded sends to described OSPF host process, the LSDB that this process of renewal is safeguarded, the LSDB that this process of making is safeguarded only comprises the header information of LSA, and the current overtime described SPF that then resets calculates timer if described SPF calculates timer; Wherein, described length of timer is not more than the duration in a SPF counting period;
Described OSPF host process receives after described OSPF is equipped with the LSA that process sends over, and upgrades the LSDB that this process is safeguarded according to described LSA, and carries out SPF according to the LSDB after upgrading and calculate.
6. a network equipment is applied to the member device in the stack equipment, it is characterized in that, comprise: control board, comprise the ospf protocol module in the described control board, comprise detecting unit in the described ospf protocol module, and operation there is the process performance element of ospf process;
Described detecting unit is for detection of the neighbor state of the current ospf neighbor interface of managing of the ospf process that moves in the described process performance element;
Described process performance element, be used under the situation of this unit operation OSPF host process, become complete during in abutting connection with full state when described detecting unit detects neighbor state that OSPF is equipped with the interface on the member device of process place, stop to manage the ospf neighbor relation of this interface, and indicate described OSPF to be equipped with the ospf neighbor relation of this interface of management of process; Operation OSPF is equipped with under the situation of process in this unit, be that the interface of FULL is when no longer being full state when described detecting unit detects neighbor state on this equipment, stop to manage the ospf neighbor relation of this interface, and the ospf neighbor relation management operation of notifying described OSPF host process to take over this interface.
7. the network equipment as claimed in claim 6, it is characterized in that, described process performance element also is used for, operation OSPF is equipped with under the situation of process in this unit, after receiving the indication that described OSPF host process sends, according to ospf protocol, neighbor state is that the interface of FULL sends the ospf protocol message from this equipment, and is that the ospf protocol message of the interface of FULL is handled to coming from neighbor state on this equipment.
8. the network equipment as claimed in claim 6, it is characterized in that, described process performance element also is used for, under the situation of this unit operation OSPF host process, after receiving that described OSPF is equipped with the notice of process transmission, according to ospf protocol, be equipped with from described OSPF that specified interface sends the ospf protocol message on the member device at process place, and the ospf protocol message that comes from this specified interface is handled; Described specified interface is that described to notify indicated neighbor state no longer be the interface of FULL.
9. the network equipment as claimed in claim 6, it is characterized in that, described process performance element specifically is used for, in this unit operation OSPF host process and indicate OSPF to be equipped with under the situation of ospf neighbor relation that this OSPF of management of process is equipped with interface on the member device of process place, stop to generate and to be equipped with the ospf protocol message that interface that neighbor state on the member device of process place becomes FULL sends from described OSPF; Being equipped with process and stopping to manage neighbor state on this this equipment at this unit operation OSPF is that the interface of FULL no longer is under the situation of ospf neighbor relation of full state interface, stopping to generate need no longer be the ospf protocol message that the interface of full state sends from the neighbor state on this equipment, and no longer is that ospf protocol message that the interface of full state receives sends to described OSPF host process and handles with the described neighbor state on this equipment.
10. as any described network equipment of claim 6-9, it is characterized in that, described process performance element also is used for, operation OSPF is equipped with under the situation of process in this unit, be after the interface of FULL receives LSA LSA from neighbor state at this equipment, upgrade the LSDB that this process is safeguarded according to described LSA; When SPF SPF calculates timer expiry, the LSDB that safeguards according to this process determines the LSA that needs upgrade, the LSA that needs are upgraded sends to described OSPF host process, the LSDB that this process of renewal is safeguarded, the LSDB that this process of making is safeguarded only comprises the header information of LSA, the current overtime described SPF that then resets calculates timer if described SPF calculates timer, and wherein, described length of timer is not more than the duration in a SPF counting period; Under the situation of this unit operation host process, receive after described OSPF is equipped with the LSA that process sends over, upgrade the LSDB that this host process is safeguarded according to described LSA, and carry out SPF SPF according to the LSDB after upgrading and calculate.
CN201310095504.1A 2013-03-22 2013-03-22 A kind of ospf neighbor relationship management method and equipment Active CN103200109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310095504.1A CN103200109B (en) 2013-03-22 2013-03-22 A kind of ospf neighbor relationship management method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310095504.1A CN103200109B (en) 2013-03-22 2013-03-22 A kind of ospf neighbor relationship management method and equipment

Publications (2)

Publication Number Publication Date
CN103200109A true CN103200109A (en) 2013-07-10
CN103200109B CN103200109B (en) 2016-06-29

Family

ID=48722472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310095504.1A Active CN103200109B (en) 2013-03-22 2013-03-22 A kind of ospf neighbor relationship management method and equipment

Country Status (1)

Country Link
CN (1) CN103200109B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330527A (en) * 2015-07-03 2017-01-11 中兴通讯股份有限公司 Method and device for managing routing link state data
CN106533775A (en) * 2016-11-28 2017-03-22 迈普通信技术股份有限公司 Virtual member equipment and neighbor discovery method
CN108471364A (en) * 2018-06-28 2018-08-31 新华三技术有限公司 A kind of abnormality eliminating method and device
CN110932921A (en) * 2018-09-19 2020-03-27 华为技术有限公司 Method for determining route oscillation information and related equipment thereof
CN111190767A (en) * 2019-12-24 2020-05-22 广州市高科通信技术股份有限公司 Method and device for realizing LSDB master-slave synchronization in OSPF protocol
CN111740914A (en) * 2020-06-18 2020-10-02 深圳市信锐网科技术有限公司 OSPF protocol message distributed processing method, system and related equipment
CN112866107A (en) * 2021-01-25 2021-05-28 网宿科技股份有限公司 IP address notification method, traffic guiding method and network equipment
CN113037633A (en) * 2021-02-25 2021-06-25 杭州迪普科技股份有限公司 Notification processing method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889464A (en) * 2006-07-26 2007-01-03 华为技术有限公司 Method and apparatus for realizing communication take-over and control
CN101094186A (en) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 Method and interface board of retaining neighbourhood
CN101110782A (en) * 2007-08-28 2008-01-23 中兴通讯股份有限公司 System management piling method used for Ethernet switchboard
US20130070604A1 (en) * 2011-09-16 2013-03-21 Wenhu Lu Open shortest path first (ospf) nonstop routing (nsr) with link derivation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889464A (en) * 2006-07-26 2007-01-03 华为技术有限公司 Method and apparatus for realizing communication take-over and control
CN101094186A (en) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 Method and interface board of retaining neighbourhood
CN101110782A (en) * 2007-08-28 2008-01-23 中兴通讯股份有限公司 System management piling method used for Ethernet switchboard
US20130070604A1 (en) * 2011-09-16 2013-03-21 Wenhu Lu Open shortest path first (ospf) nonstop routing (nsr) with link derivation

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017004995A1 (en) * 2015-07-03 2017-01-12 中兴通讯股份有限公司 Method and device for managing routing link state data
CN106330527A (en) * 2015-07-03 2017-01-11 中兴通讯股份有限公司 Method and device for managing routing link state data
CN106533775A (en) * 2016-11-28 2017-03-22 迈普通信技术股份有限公司 Virtual member equipment and neighbor discovery method
CN106533775B (en) * 2016-11-28 2019-09-06 迈普通信技术股份有限公司 Virtualize member device and neighbor discovering method
CN108471364A (en) * 2018-06-28 2018-08-31 新华三技术有限公司 A kind of abnormality eliminating method and device
CN108471364B (en) * 2018-06-28 2021-05-28 新华三技术有限公司 Exception handling method and device
CN110932921B (en) * 2018-09-19 2022-10-11 华为技术有限公司 Method for determining route oscillation information and related equipment thereof
CN110932921A (en) * 2018-09-19 2020-03-27 华为技术有限公司 Method for determining route oscillation information and related equipment thereof
US11489759B2 (en) 2018-09-19 2022-11-01 Huawei Technologies Co., Ltd. Method for determining route flapping information and related device
CN111190767A (en) * 2019-12-24 2020-05-22 广州市高科通信技术股份有限公司 Method and device for realizing LSDB master-slave synchronization in OSPF protocol
CN111190767B (en) * 2019-12-24 2024-02-27 广州市高科通信技术股份有限公司 Method and device for realizing LSDB (Low-pass-band database) master-slave synchronization in OSPF (open shortest Path first) protocol
CN111740914A (en) * 2020-06-18 2020-10-02 深圳市信锐网科技术有限公司 OSPF protocol message distributed processing method, system and related equipment
CN112866107A (en) * 2021-01-25 2021-05-28 网宿科技股份有限公司 IP address notification method, traffic guiding method and network equipment
CN113037633A (en) * 2021-02-25 2021-06-25 杭州迪普科技股份有限公司 Notification processing method, device, equipment and computer readable storage medium
CN113037633B (en) * 2021-02-25 2023-04-18 杭州迪普科技股份有限公司 Notification processing method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN103200109B (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
CN101425961B (en) Method for implementing link state database synchronization, router, circuit board and main control board
CN101170459B (en) Failure detection and link recovery method based on bidirectional forward link
EP2222023B1 (en) Link fault processing method and data forwarding device
CN1980230B (en) Method for managing VRRP group
EP2720418B1 (en) Lacp link switching and data transmission method and device
CN102624635B (en) Method and device for realizing graceful restart
CN102255757B (en) Link switching method and device
CN103001887A (en) Link keeping alive method, controller and switchboard
CN103595626A (en) Method for achieving dynamic path planning in ring network
CN102413031B (en) A kind of RPR fault protecting method and equipment thereof
CN101989953A (en) Method and equipment for sending bidirectional forwarding detection message
CN103227725A (en) Method and device for dual-server backup of firewall
CN103001879A (en) Method and equipment for reducing of link state advertisement flooding frequency
CN103490951A (en) Bidirectional forwarding detection method in multi-hop link on basis of BFD
CN1859423B (en) Synchronous switching method for host and repeat device
CN101860477A (en) Method and device for processing exception in elegant restart
CN109495345A (en) A kind of BFD processing method and the network equipment
CN102857316A (en) Method and system for realizing source looped network protection
CN100459585C (en) Method for avoiding route equipment frequent switchover state and one type route equipment
WO2014075594A1 (en) Service transmission protection method and device based on intersecting ring of multi-ring structure network
CN102769571B (en) Graceful restart realization method and equipment
CN112995002A (en) Switch ring network design method, switch and storage medium
CN103138957A (en) Method, device and system for business path failback
CN101635656B (en) Fault detection method in layered ordered address packet network, system and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address