CN104852849B - A kind of OSPF configuration methods and relevant apparatus - Google Patents

A kind of OSPF configuration methods and relevant apparatus Download PDF

Info

Publication number
CN104852849B
CN104852849B CN201510222353.0A CN201510222353A CN104852849B CN 104852849 B CN104852849 B CN 104852849B CN 201510222353 A CN201510222353 A CN 201510222353A CN 104852849 B CN104852849 B CN 104852849B
Authority
CN
China
Prior art keywords
master
router
ospf
ospf process
interface
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.)
Active
Application number
CN201510222353.0A
Other languages
Chinese (zh)
Other versions
CN104852849A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510222353.0A priority Critical patent/CN104852849B/en
Publication of CN104852849A publication Critical patent/CN104852849A/en
Application granted granted Critical
Publication of CN104852849B publication Critical patent/CN104852849B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of OSPF configuration methods, are automatically configured for realizing OSPF.Present invention method includes:After enabling Virtual Cluster function on the first interface of the first Master, the first Master creates the first ospf process, and first interface is added in the first ospf process, and first interface is the interface being connected with the AP;First Master distributes the first router mark Router ID, the first Router ID in the first ospf process and is used for first Master of the unique mark in the first ospf process;First Master runs the first ospf process.

Description

A kind of OSPF configuration methods and relevant apparatus
Technical field
The present invention relates to internet arena more particularly to a kind of OSPF configuration methods and relevant apparatus.
Background technology
Virtual cluster system is generally by multiple access node AP (AP, Access Point) and several core aggregation nodes (Master) it constitutes, wherein AP generally uses the equipment such as low capacity, the low end router of low performance or interchanger;Master can be with It is with equipment such as large capacity, high performance router or interchangers.Master has very strong control managerial ability, for collecting Middle control manages virtual cluster system, and Master is externally only presented in virtual cluster system.
Technology at this stage in virtual cluster system by running Open Shortest Path First Protocol (OSPF, Open Shortest Path First) network topology of virtual cluster system is collected, this requires every in user configuration group system The router of the process identification (PID) (Process ID) of the ospf process run on a router and router in each process It identifies (Router ID), with these ospf process of trouble-free operation.
But the configuration of Router ID needs the network topology structure of user's precognition virtual cluster system, and according to the net Network topological structure manually plans Router ID of the router in each process, and the operation is complex, and heavy workload is unfavorable It is installed in the configuration of network.
Invention content
An embodiment of the present invention provides in a kind of OSPF configuration methods, for realized in virtual cluster system OSPF from Dynamic configuration.
The first aspect of the embodiment of the present invention provides a kind of OSPF configuration methods, is suitable for virtual cluster system, described Virtual cluster system includes core aggregation node Master and access node AP, the method includes:
After enabling Virtual Cluster function on the first interface of the first Master, the first Master creates first Ospf process, and the first interface is added in first ospf process, the first interface is connected with the AP Interface;
First Master distributes the first router mark Router ID in first ospf process, and described the One Router ID are used for first Master of the unique mark in first ospf process;
First Master runs first ospf process.
In conjunction with the embodiment of the present invention in a first aspect, in the first realization method of the first aspect of the embodiment of the present invention, The first Router ID include the field for the first ospf process described in unique mark, and for described in unique mark the The field of one Master.
In conjunction with the first realization method of the first aspect of the embodiment of the present invention, the of the first aspect of the embodiment of the present invention In two kinds of realization methods, the field for the first Master described in unique mark is the network equipment of the first Master Identify NEID.
The first or second of realization method, the present invention in conjunction with the first aspect of the embodiment of the present invention, first aspect is real The third realization method for applying the first aspect of example further includes:
After enabling Virtual Cluster function in the second interface of the first Master, the first Master creates the Two ospf process, and the second interface is added in second ospf process, the second interface is and the AP phases Interface even;
First Master distributes the 2nd Router ID, the 2nd Router ID in second ospf process For first Master of the unique mark in second ospf process;
First Master runs second ospf process.
In conjunction with the third realization method of the first aspect of the embodiment of the present invention, the of the first aspect of the embodiment of the present invention In four kinds of realization methods, the 2nd Router ID include the field for the second ospf process described in unique mark, and are used for The field of first Master described in unique mark.
In conjunction with the 4th kind of realization method of the first aspect of the embodiment of the present invention, the of the first aspect of the embodiment of the present invention In five kinds of realization methods, the field for the first Master described in unique mark is the network equipment of the first Master Identify NEID.
In conjunction with the first aspect of the embodiment of the present invention the third, the 4th kind or the 5th kind of realization method, the present invention implement The 6th kind of realization method of first aspect of example further include:
First Master determines that first ospf process and second ospf process have collected the topology of repetition;
The topology combination of the repetition is a topology by the first Master.
In conjunction with the 6th kind of realization method of the first aspect of the embodiment of the present invention, the of the first aspect of the embodiment of the present invention In seven kinds of realization methods, the first Master determines that first ospf process and second ospf process have collected repetition Topology include:
The Router ID that first Master gets the first Master from first ospf process are institute State the first Router ID and the 2nd Router ID;
The Router ID that first Master gets the first Master from second ospf process are institute State the first Router ID and the 2nd Router ID;
First Master determines the first Router ID got from first ospf process and described 2nd Router ID and the first Router ID got from second ospf process and the 2nd Router ID is identical, then the first Master determines that first ospf process and second ospf process have collected opening up for repetition It flutters.
In conjunction with the 7th kind of realization method of the first aspect of the embodiment of the present invention, the of the first aspect of the embodiment of the present invention In eight kinds of realization methods, the first Master gets the Router of the first Master from first ospf process ID is that the first Router ID and the 2nd Router ID include:
First Master obtains the declaration of at least one router information Link State from first ospf process The identity type for the node for sending the RI LSA is carried in RI LSA, the RI LSA, the identity type includes Master or AP;
First Master determines that identity type is the node of Master according to the RI LSA got, and from described the The Router ID for the node that identity type is Master are obtained in one ospf process, the Router ID for obtaining the first Master are The first Router ID and the 2nd Router ID;
And/or
The Router ID that first Master gets the first Master from second ospf process are institute It states the first Router ID and the 2nd Router ID includes:
First Master obtains at least one RI LSA from second ospf process, is carried in the RI LSA It includes Master or AP to have the identity type for the node for sending the RI LSA, the identity type;
First Master determines that identity type is the node of Master according to the RI LSA got, and from described the The Router ID for the node that identity type is Master are obtained in two ospf process, the Router ID for obtaining the first Master are The first Router ID and the 2nd Router ID.
In conjunction with the 6th kind, the 7th kind or the 8th kind realization method of the first aspect of the embodiment of the present invention, the present invention is implemented In 9th kind of realization method of the first aspect of example, the topology combination by the repetition is that a topology includes:
The second interface is added in first ospf process by the first Master;
First Master deletes second ospf process.
In conjunction with the first aspect of the embodiment of the present invention, first aspect the first to any in the 9th kind of realization method , the tenth kind of realization method of the first aspect of the embodiment of the present invention further includes:
After enabling Virtual Cluster function on the third interface of the first Master, the first Master creates the Three ospf process, and the third interface is added in the third ospf process, the third interface is and second Interface connected Master;
First Master distributes the 3rd Router ID, the 3rd Router ID in the third ospf process For first Master of the unique mark in the third ospf process;
First Master runs the third ospf process.
In conjunction with the tenth kind of realization method of the first aspect of the embodiment of the present invention, the of the first aspect of the embodiment of the present invention In a kind of ten realization methods, the 3rd Router ID are the management IP address of the first Master.
In conjunction with the tenth kind or a kind of the tenth realization method of the first aspect of the embodiment of the present invention, the of the embodiment of the present invention 12nd kind of realization method of one side further include:
The first Master and described second that the third ospf process is collected by the first Master The syntople description of Master is added in the routing link state advertisement Router LSA of first ospf process, described Syntople description is for indicating the first Master and the 2nd Master ospf adjacencies each other.
The second aspect of the embodiment of the present invention provides a kind of OSPF configuration devices, and suitable for virtual cluster system One core aggregation node Master, the virtual cluster system further include access node AP, and the OSPF configuration devices include:
Process creation module, for after enabling Virtual Cluster function on the first interface of the first Master, establishment the One ospf process, and the first interface is added in first ospf process, the first interface is and the AP phases Interface even;
Distribution module is identified, it is described for distributing the first router mark Router ID in first ospf process First Router ID are used for first Master of the unique mark in first ospf process;
Process runs module, for running first ospf process.
In conjunction with the second aspect of the embodiment of the present invention, in the first realization method of the second aspect of the embodiment of the present invention, The first Router ID include the field for the first ospf process described in unique mark, and for described in unique mark the The field of one Master.
In conjunction with the first realization method of the second aspect of the embodiment of the present invention, the of the second aspect of the embodiment of the present invention In two kinds of realization methods, the field for the first Master described in unique mark is the network equipment of the first Master Identify NEID.
The first or second of realization method, the present invention in conjunction with the second aspect of the embodiment of the present invention, second aspect is real In the third realization method for applying the second aspect of example, the process creation module is additionally operable to:
After enabling Virtual Cluster function in the second interface of the first Master, the second ospf process is created, and The second interface is added in second ospf process, the second interface is the interface being connected with the AP;
The mark distribution module is additionally operable to:The 2nd Router ID of distribution in second ospf process, described second Router ID are used for first Master of the unique mark in second ospf process;
The process operation module is additionally operable to:Run second ospf process.
In conjunction with the third realization method of the second aspect of the embodiment of the present invention, the of the second aspect of the embodiment of the present invention In four kinds of realization methods, the 2nd Router ID include the field for the second ospf process described in unique mark, and are used for The field of first Master described in unique mark.
In conjunction with the 4th kind of realization method of the second aspect of the embodiment of the present invention, the of the second aspect of the embodiment of the present invention In five kinds of realization methods, the field for the first Master described in unique mark is the network equipment of the first Master Identify NEID.
In conjunction with the second aspect of the embodiment of the present invention the third, the 4th kind or the 5th kind of realization method, the present invention implement In 6th kind of realization method of the second aspect of example, described device further includes:
Topological determining module is repeated, for determining that first ospf process and second ospf process have collected repetition Topology;
Topology combination module is repeated, for being a topology by the topology combination of the repetition.
In conjunction with the 6th kind of realization method of the second aspect of the embodiment of the present invention, the of the second aspect of the embodiment of the present invention In seven kinds of realization methods, the topology determining module that repeats is specifically used for:
The Router ID that the first Master is got from first ospf process are the first Router ID and the 2nd Router ID;
The Router ID that the first Master is got from second ospf process are the first Router ID and the 2nd Router ID;
Determine the first Router ID got from first ospf process and the 2nd Router ID It is identical as the first Router ID and the 2nd Router ID got from second ospf process, it is determined that First ospf process and second ospf process have collected the topology of repetition.
In conjunction with the 7th kind of realization method of the second aspect of the embodiment of the present invention, the of the second aspect of the embodiment of the present invention In eight kinds of realization methods, the topological determining module of repetition gets from first ospf process described by the following method The Router ID of first Master are the first Router ID and the 2nd Router ID:
At least one router information Link State declaration RI LSA, the RI are obtained from first ospf process The identity type for the node for sending the RI LSA is carried in LSA, the identity type includes Master or AP;
It determines that identity type is the node of Master according to the RI LSA got, and is obtained from first ospf process It is the Router ID of the node of Master to take identity type, and the Router ID for obtaining the first Master are the first Router ID and the 2nd Router ID;
And/or
The topology determining module that repeats gets described first from second ospf process by the following method The Router ID of Master are the first Router ID and the 2nd Router ID:
It obtains to carry at least one RI LSA, the RI LSA from second ospf process and sends the RI The identity type of the node of LSA, the identity type include Master or AP;
It determines that identity type is the node of Master according to the RI LSA got, and is obtained from second ospf process It is the Router ID of the node of Master to take identity type, and the Router ID for obtaining the first Master are the first Router ID and the 2nd Router ID.
In conjunction with the 6th kind, the 7th kind or the 8th kind realization method of the second aspect of the embodiment of the present invention, the present invention is implemented In 9th kind of realization method of the second aspect of example, the topology combination module that repeats is specifically used for:
The second interface is added in first ospf process;
Delete second ospf process.
In conjunction with the second aspect of the embodiment of the present invention, second aspect the first to any in the 9th kind of realization method , in the tenth kind of realization method of the second aspect of the embodiment of the present invention, the process creation module is additionally operable to:
After enabling Virtual Cluster function on the third interface of the first Master, third ospf process is created, and The third interface is added in the third ospf process, the third interface is connect with what the 2nd Master was connected Mouthful;
The mark distribution module is additionally operable to:The 3rd Router ID, the third are distributed in the third ospf process Router ID are used for first Master of the unique mark in the third ospf process;
The process operation module is additionally operable to:Run the third ospf process.
In conjunction with the tenth kind of realization method of the second aspect of the embodiment of the present invention, the of the second aspect of the embodiment of the present invention In a kind of ten realization methods, the 3rd Router ID are the management IP address of the first Master.
In conjunction with the tenth kind or a kind of the tenth realization method of the second aspect of the embodiment of the present invention, the of the embodiment of the present invention In 12nd kind of realization method of two aspects, described device further includes:
Module is added in adjacent description, the first Master for the third ospf process to be collected into and described the The syntople description of two Master is added in the routing link state advertisement Router LSA of first ospf process, institute Syntople description is stated for indicating the first Master and the 2nd Master ospf adjacencies each other.
In OSPF configuration methods provided in an embodiment of the present invention, after enabling Virtual Cluster function on first interface, the One Master automatically creates the first ospf process, and first interface is added in the first ospf process, and in the first ospf process In distribute the first Router ID automatically, finally run first ospf process.By this method so that the first Master energy Enough automatic distribution Router ID simplify the operation of user without manually planning Router ID according to network topology result, The workload for reducing user is conducive to the configuration installation of virtual cluster system.
Description of the drawings
Fig. 1 is one structure chart of virtual cluster system;
Fig. 2 is OSPF configuration method one embodiment flow charts in the embodiment of the present invention;
Fig. 3 is another embodiment flow chart of OSPF configuration methods in the embodiment of the present invention;
Fig. 4 is another embodiment flow chart of OSPF configuration methods in the embodiment of the present invention;
Fig. 5 is OSPF configuration device one embodiment structure charts in the embodiment of the present invention;
Fig. 6 is another example structure figure of OSPF configuration devices in the embodiment of the present invention;
Fig. 7 is another example structure figure of OSPF configuration devices in the embodiment of the present invention;
Fig. 8 is another example structure figure of OSPF configuration devices in the embodiment of the present invention.
Specific implementation mode
An embodiment of the present invention provides a kind of OSPF configuration methods, for simplifying artificial OSPF operations.The embodiment of the present invention Relevant Master is additionally provided, does not below illustrate this.
Virtual cluster system is generally made of AP and Master, and AP and Master, which is connected with each other, constitutes network topology.It is existing The technology in stage in virtual cluster system by running OSPF come the internal network topology of collection system, with void shown in FIG. 1 For one basic structure of quasi- group system:In Fig. 1, first interface is connected with second interface with AP on the first Master, the Three interfaces are connected with the 2nd Master.Master runs ospf process on each interface, and it is manually each that this requires users The Process ID of the ospf process run on interface, and Router IDs of the Master in each ospf process is configured, with suitable Profit runs these ospf process.These parameters of human configuration need the structure of the advance sensing network topology of user, and according to network The structure of topology carries out the artificial planning of parameter, it is therefore desirable to expend more manpower.
An embodiment of the present invention provides a kind of OSPF configuration methods, it is possible to reduce the artificial of the Router ID of Master is matched Operation is set, basic procedure is referring to Fig. 2, include:
201, the first Master creates the first ospf process, and first interface is added in the first ospf process;
User manually enables Virtual Cluster function on the first interface of the first Master, empty when being enabled on the first interface After quasi- clustering functionality, the first Master automatically creates the first ospf process, and first interface is added to the first ospf process In.Wherein, first interface is the interface being connected with AP.
202, the first Master distributes the first Router ID in the first ospf process;
After first interface is added in the first ospf process by the first Master, first is distributed in the first ospf process Router ID.Wherein, Router ID such as can be one 32 to identify the router of every operation ospf protocol Number.In an Autonomous Domain, this number can uniquely represent a router.In virtual cluster system, Router ID are used for the Master nodes in each ospf process of unique mark, and the first Router ID are for unique mark the The first Master in one ospf process.
Wherein, the method that the first Master distributes the first Router ID in the first ospf process has very much, will later Embodiment in be described in detail, do not limited in the present embodiment.
203, the first Master runs the first ospf process.
First Master is distributed in the first ospf process after the first Router ID, so that it may to run the first OSPF Process establishes ospf adjacency relationship with AP.
In method provided in this embodiment, after enabling Virtual Cluster function on first interface, the first Master is automatic The first ospf process is created, first interface is added in the first ospf process, and distributes automatically in the first ospf process One Router ID finally run first ospf process.By this method so that the first Master can be distributed automatically Router ID simplify the operation of user, reduce user without manually planning Router ID according to network topology result Workload, be conducive to virtual cluster system configuration installation.
Wherein, the first Master can also be that the first ospf process distributes Process after creating the first ospf process ID.The method of first Master distribution Process ID has very much, such as:The Process ID of first Master distribution can be from 65534 start, if 65534 this Process ID are occupied, subtract 1 by Process ID and obtain 65533, if should Process ID numbers are still occupied, then subtract 1 again by No. Process, until finding idle Process ID.First Master can also distribute Process ID by other methods, and the Process ID are on the first Master for only One one ospf process of mark does not limit in the embodiment of the present invention.
It is mentioned in step 202, the first Router ID are used for first Master of the unique mark in the first ospf process. Preferably, another embodiment as the present invention, may include in the first Router ID for the first OSPF of unique mark into The field of journey so that the Router ID of the first Master do not conflict in the different ospf process on the first Master.Unique mark The field of first ospf process can be the Process ID of the first OSPF, or shorter numerical value or other forms, only Want the content difference of the field in the different ospf process on the first Master;It can also be wrapped in first Router ID Include the field for the first Master of unique mark.More preferably, the field for being used for the first Master of unique mark can Think the network device identity (NEID, Network Entity ID) of the first Master.
From figure 1 it appears that in the interface of the first Master, interface 1 and interface 2 are integrated on the same AP, this Two links between interface and AP belong to the topology of repetition.It is manually planned according to network topology structure in technology at this stage When the Router ID of Master, the topology combination that will be repeated that can be artificial, to avoid topology is repeated in ospf process operation It causes to calculate road mistake.A kind of further OSPF is additionally provided on the basis of embodiment shown in Fig. 2 of the embodiment of the present invention Configuration method enables to Master to merge automatically and repeats topology, and flow please refers to Fig. 3:
301, the first Master creates the first ospf process and the second ospf process, and first interface is added to first In ospf process, second interface is added in the second ospf process;
User manually enables Virtual Cluster function on the first interface of the first Master and second interface, when this first connects After enabling Virtual Cluster function on mouth, the first Master automatically creates the first ospf process, and first interface is added to the In one ospf process.When in the second interface enable Virtual Cluster function after, the first Master automatically create the 2nd OSPF into Journey, and second interface is added in the second ospf process.Wherein, first interface is connected with second interface with identical AP Interface.
302, the first Master distributes the first Router ID in the first ospf process, is distributed in the second ospf process 2nd Router ID;
After first interface is added in the first ospf process by the first Master, first is distributed in the first ospf process Router ID;And after second interface is added in the second ospf process, the 2nd Router is distributed in the second ospf process ID.Wherein, the first Router ID are used for the first Master of the unique mark in the first ospf process, the 2nd Router ID In first Master of the unique mark in the second ospf process.
It is similar with the distribution method of the first Router ID, may include for unique mark the in the 2nd Router ID The field of two ospf process so that the Router ID of the first Master do not conflict in the different ospf process on the first Master. The field of the second ospf process of unique mark can be the Process ID of the second ospf process, or shorter numerical value or Other forms, if in different ospf process on the first Master the field content difference;In 2nd Router ID Can also include the field for the first Master of unique mark, the field for the first Master of unique mark can be The NEID of first Master.
303, the first Master runs the first ospf process and the second ospf process;
First Master is distributed in the first ospf process after the first Router ID, so that it may to run the first OSPF Process;First Master is distributed in the second ospf process after the 2nd Router ID, so that it may with run the 2nd OSPF into Journey establishes ospf adjacency relationship with AP.
304, the first Master determines that the first ospf process and the second ospf process have collected the topology of repetition;
When the first Master runs the first ospf process and after the second ospf process, the first ospf process and the 2nd OSPF into Journey can collect the network topology of virtual cluster system.First Master determines that the first ospf process and the second ospf process are collected into The topology repeated.
First Master determines that the method that the first ospf process and the second ospf process have collected the topology of repetition has very It is more, for example, the identity type that the ospf process of the first Master operations can obtain in the topology of the places the first Master is The Router ID of the node of Master, if the identity type that two ospf process of the first Master are got is Master's The Router ID of node are identical, then illustrate the topology that the first Master accesses repeat.As shown in Figure 1, due to the first ospf process It is all located in closed loop topology first interface-AP-second interface with the second ospf process, therefore the first ospf process can be got Router ID for identifying the first Master are the first Router ID and the 2nd Router ID, and the second ospf process can It is the first Router ID and the 2nd Router ID to get the Router ID for identifying the first Master;First Master Judge that the first Router ID got from the first ospf process and the 2nd Router ID are obtained with from the second ospf process The first Router ID got and the 2nd Router ID are identical, therefore determine that the first Master has collected the topology of repetition.
Wherein, the ospf process of the first Master operations is to obtain the identity type in the topology of the places the first Master The Router ID of the node of Master need first to determine that the identity type of which node in the topology where the first Master is The identity type of Master, which node are AP.The identity type of each node can be in the Router Information link shape of the node State is declared to carry in (RI LSA, Router Information Link State Advertise), and RI LSA carry identity class The method of type has very much, such as can be that extended field is arranged in RI LSA, and the identity type of each node fills in the node In the extended field of RI LSA.In this way after the RI LSA for obtaining the node, so that it may with true according to the extended field of the RI LSA The identity type of the fixed node.First Master obtains at least one RI LSA from the first ospf process, and according to getting RI LSA determine that identity type is the node of Master, it is Master that identity type is then obtained from the first ospf process The Router ID of node, the Router ID for obtaining the first Master are the first Router ID and the 2nd Router ID.Similarly , the first Master obtains at least one RI LSA from the second ospf process, and determines identity according to the RI LSA got Type is the node of Master, and the Router ID for the node that identity type is Master are then obtained from the second ospf process, The Router ID for obtaining the first Master are also the first Router ID and are the 2nd Router ID.
First Master determines that the topology that the first ospf process and the second ospf process have collected repetition may be it His method, does not limit herein.
305, the topology combination repeated is a topology by the first Master.
First Master determines that the first ospf process and the second ospf process have collected the topology of repetition, such as first Master need will repeat topology and and be a topology, to avoid OSPF generate calculate road mistake.Specifically, the first Master Second interface can be added in the first ospf process, then delete the second ospf process, you can realize the conjunction for repeating topology And.
Another OSPF preparation methods are provided on the basis of the method that the present embodiment embodiment shown in Fig. 2 provides, It enables to the first Master automatic identifications and merges the topology of repetition, and then avoid calculating road mistake, improve OSPF configurations Success rate.
For the interface that OSPF configuration methods in above-described embodiment are connected mainly for the first Master with AP.But one As virtual cluster system in, be also required to be connected between Master.On the basis of embodiment shown in Fig. 2 of the embodiment of the present invention Another OSPF configuration methods are provided, can realize the OSPF configurations between Master.Its flow is referring to Fig. 4, include:
401, the first Master creates the first ospf process and third ospf process, and first interface is added to first In ospf process, third interface is added in third ospf process;
User manually enables Virtual Cluster function on the first interface and third interface of the first Master, when this first connects After enabling Virtual Cluster function on mouth, the first Master automatically creates the first ospf process, and first interface is added to the In one ospf process.When on the third interface enable Virtual Cluster function after, the first Master automatically create the 3rd OSPF into Journey, and third interface is added in third ospf process.Wherein, first interface is the interface being connected with AP, and third interface is The interface being connected with the 2nd Master.
402, the first Master distributes the first Router ID in the first ospf process, is distributed in third ospf process 3rd Router ID;
After first interface is added in the first ospf process by the first Master, first is distributed in the first ospf process Router ID;And after third interface is added in third ospf process, third is distributed in third ospf process Router ID.Wherein, the first Router ID are used for first Master of the unique mark in the first ospf process, third Router ID are used for first Master of the unique mark in third ospf process.Wherein, the form of the 3rd Router ID can Think that the management IP address of the first Master, management IP address are used for unique mark and management one in virtual cluster system and set It is standby.3rd Router ID may be other forms, not limited in the present embodiment.
403, the first Master runs the first ospf process and third ospf process;
First Master is distributed in the first ospf process after the first Router ID, so that it may to run the first OSPF Process establishes ospf adjacency relationship with AP;As soon as Master is distributed in third ospf process after the 3rd Router ID, The third ospf process can be run, syntople is established with the 2nd Master.
404, the syntople for the first Master and the 2nd Master that third ospf process is collected by the first Master Description is added in the Router LSA of the first ospf process.
After first Master and the 2nd Master establishes ospf adjacency, the first Master can be by the first Master and second The syntople description of Master is added in the Link State Notification (Router LSA) of the first ospf process, wherein the neighbour Connect relationship description for indicate the first Master and the 2nd Master ospf adjacencies each other.
The syntople description of the first Master and the 2nd Master is added to the first ospf process in the first Master Router LSA in after, the Master of one Master-AP-the 2nd can be successfully formed closed loop topology.
A kind of further configuration sides OSPF are provided on the basis of embodiment shown in Fig. 2 of the embodiment of the present invention Method, wherein the first Master creates third ospf process, and the third interface being connected with the 2nd Master is added to third In ospf process;Third router mark Router ID are distributed in the third ospf process;Run third ospf process with 2nd Master establishes ospf adjacency;The first ospf process finally will be added to the description of the syntople of the 2nd Master In Router LSA.By such method, automatically configuring for the OSPF for the interface being connected with Master is realized, without artificial The Router ID that the interface being connected with Master is planned according to network topology result, simplify the operation of user, reduce use The workload at family is conducive to the configuration installation of virtual cluster system.
Preferably, the data message between the first Master and the 2nd Master can pass through third interface and second Link between Master transmits, and is connected with the 2nd Master it is not necessary that additional interface is arranged for the first Master, to reach Save the purpose of interface number.Wherein third interface can be artificial specified, or the first Master is arranged automatically, this hair It is not limited in bright embodiment.
For the ease of understanding above-described embodiment, will be described by taking a specific application scenarios as an example below.
Please referring still to Fig. 1.In the virtual cluster system of diagram, first interface and second interface and AP phases on the first Master Even, third interface is connected with the 2nd Master.User people on the first interface of the first Master, second interface and third interface Work enables Virtual Cluster function, and the first Master automatically creates the first ospf process, the second ospf process and third ospf process, And first interface is added in the first ospf process, second interface is added in the second ospf process, third interface is added Enter into third ospf process.
First Master distributes the first Router ID in the first ospf process, and second is distributed in the second ospf process Router ID distribute the 3rd Router ID in third ospf process.Wherein, the first Router ID include one for only The upper byte of one the first ospf process of mark, and NEID with the first Master three low bytes;2nd Router ID includes a upper byte for being used for the second ospf process of unique mark, and three low levels of NEID with the first Master Byte;2nd Router ID are the management IP address of the first Master.
First Master runs the first ospf process, the second ospf process and third ospf process, and by operation into Journey collects the topology of virtual cluster system.
When collecting topology, the first ospf process gets the first Router ID and the 2nd Router of the first Master ID, the second ospf process also get the first Router ID and the 2nd Router ID of the first Master.First Master is true The first Router ID and the 2nd Router ID that fixed first ospf process and the second ospf process are got are identical, therefore confirm the One ospf process and the second ospf process have collected the topology of repetition, and then second interface is added to first by the first Master In ospf process, the second ospf process is then deleted.
After the operation of third ospf process, syntople, the 3rd OSPF are established between the first Master and the 2nd Master Process can be collected into the syntople description of the first Master and the 2nd Master.First Master adds syntople description Enter into the Router LSA of the first ospf process so that the Master of one Master-AP-the 2nd form the topology of closed loop.
The embodiment of the present invention additionally provides relevant OSPF configuration devices, the node suitable for virtual cluster system.Under Face will be illustrated by taking the OSPF configuration devices in Fig. 1 on the first Master as an example, the basic structure of the OSPF referring to Fig. 5, Including:
Process creation module 501, after enabling Virtual Cluster function on the first interface of the first Master, automatically The first ospf process is created, and first interface is added in the first ospf process, wherein first interface is connecing of being connected with AP Mouthful;
Distribution module 502 is identified, for distributing the first Router ID automatically in the first ospf process, this first Router ID are used for first Master of the unique mark in the first ospf process;
Process runs module 503, for running the first ospf process.
In OSPF configuration devices provided in this embodiment, after enabling Virtual Cluster function on first interface, process wound Modeling block 501 automatically creates the first ospf process, and first interface is added in the first ospf process, identifies distribution module 502 Distribute the first Router ID automatically in the first ospf process, final process runs module 503 and runs first ospf process. By this method so that OSPF configuration devices can distribute Router ID automatically, without manually according to network topology result come It plans Router ID, simplifies the operation of user, reduce the workload of user, be conducive to the configuration peace of virtual cluster system Dress.
Preferably, another embodiment as the present invention may include for unique mark the in the first Router ID The field of one ospf process, so that the Router ID of the first Master are not rushed in the different ospf process on the first Master It is prominent.The field of the first ospf process of unique mark can be the Process ID of the first OSPF, or shorter numerical value or Other forms, if in different ospf process on the first Master the field content difference;In first Router ID It can also include the field for the first Master of unique mark.More preferably, it is used for the first Master of unique mark Field can be the first Master network device identity (NEID, Network Entity ID).
As another embodiment of the present invention, process creation module 501 is additionally operable to:In the second interface of the first Master After upper enabled Virtual Cluster function, the second ospf process is created, and second interface is added in the second ospf process, wherein Second interface is the interface being connected with AP;
Mark distribution module 502 is additionally operable to:The 2nd Router ID, the 2nd Router are distributed in the second ospf process ID is used for first Master of the unique mark in the second ospf process;
Preferably, it in the 2nd Router ID may include for the second ospf process of unique mark field, so that The Router ID of the first Master do not conflict in different ospf process on one Master.The second ospf process of unique mark Field can be the Process ID of the second OSPF, or shorter numerical value or other forms, as long as on the first Master Different ospf process in the field content difference;Can also include in 2nd Router ID should for unique mark The field of first Master.More preferably, the field for being used for the first Master of unique mark can be for the first Master's Network device identity (NEID, Network Entity ID).
Process operation module 503 is additionally operable to:Run the second ospf process.
Another OSPF configuration devices, structure are provided on the basis of embodiment shown in Fig. 5 of the embodiment of the present invention Referring to Fig. 6, including:
Process creation module 601, after enabling Virtual Cluster function on the first interface of the first Master, automatically The first ospf process is created, and first interface is added in the first ospf process, is made in the second interface of the first Master After energy Virtual Cluster function, the second ospf process is automatically created, and second interface is added in the second ospf process, wherein First interface is the interface being connected with the same AP with second interface;
Distribution module 602 is identified, for distributing the first Router ID in the first ospf process, in the second ospf process Middle distribution the 2nd Router ID, the first Router ID are used for first Master of the unique mark in the first ospf process, 2nd Router ID are used for first Master of the unique mark in the second ospf process;
Process runs module 603, for being assigned with the first Router ID and the 2nd Router in mark distribution module 602 After ID, the first ospf process and the second ospf process are run;
Topological determining module 604 is repeated, for determining that the first ospf process and the second ospf process have collected opening up for repetition It flutters;
Wherein, it repeats topological determining module 604 and determines that the method for repeating topology has very much.For example, repeating topology determines mould The Router ID that block can get the first Master from the first ospf process are the first Router ID and the 2nd Router ID;The Router ID that the first Master is got from the second ospf process are the first Router ID and described second Router ID;It repeats topological determining module 604 and determines the first Router got from first ospf process ID and the 2nd Router ID and the first Router ID that are got from second ospf process and described the Two Router ID are identical, it is thus determined that first ospf process and second ospf process have collected the topology of repetition.
Preferably, the identity class for the node for sending lid RI LSA can be carried in the RI LSA in virtual cluster system Type, such as can be that extended field is arranged in RI LSA, the identity type of each node fills in the extension of the RI LSA of the node In field.Wherein identity type includes Master or AP.First Master obtains at least one RI from the first ospf process LSA, and determine that identity type is the node of Master according to the RI LSA got, then body is obtained from the first ospf process Part type is the Router ID of the node of Master, and the Router ID for obtaining the first Master are the first Router ID and the Two Router ID.First Master obtains at least one RI LSA from the second ospf process, and according to the RI LSA got It determines that identity type is the node of Master, the node that identity type is Master is then obtained from the second ospf process Router ID, the Router ID for obtaining the first Master are also the first Router ID and are the 2nd Router ID.
Topology combination module 605 is repeated, is used to be automatically a topology by the topology combination repeated.Specific merging method Can be:Second interface is added in the first ospf process, the second ospf process is then deleted.
Another OSPF configuration devices are provided on the basis of embodiment shown in Fig. 5 of the embodiment of the present invention, it can not only Realize automatically configuring for OSPF, repeating topological determining module 604 can also the first ospf process of automatic identification and the second ospf process The topology of repetition is had collected, then repeatedly the topology combination repeated can be automatically a topology by topology combination module 605.It is logical Such method is crossed, the automatic merging of repetition topology is realized, and then avoids calculating road mistake, improves the success of OSPF configurations Rate.
For the interface that OSPF configuration devices in above-described embodiment are connected mainly for the first Master with AP.But one As virtual cluster system in, be also required to be connected between Master.On the basis of embodiment shown in Fig. 5 of the embodiment of the present invention Another middle OSPF configuration devices are additionally provided, for realizing the OSPF configurations between Master.Its structure is referring to Fig. 7, include:
Process creation module 701, after enabling Virtual Cluster function on the first interface of the first Master, automatically The first ospf process is created, and first interface is added in the first ospf process, is made on the third interface of the first Master After energy Virtual Cluster function, third ospf process is automatically created, and third interface is added in third ospf process, wherein First interface is the interface being connected with AP, and third interface is the interface being connected with the 2nd Master;
Distribution module 702 is identified, for distributing the first Router ID in the first ospf process, in third ospf process Middle distribution the 3rd Router ID, the first Router ID are used for first Master of the unique mark in the first ospf process, 3rd Router ID are used for first Master of the unique mark in third ospf process.Preferably, the 3rd Router ID For the management IP address of the first Master;
Process runs module 703, for being assigned with the first Router ID and the 3rd Router in mark distribution module 602 After ID, the first ospf process and third ospf process are run;After the operation of third ospf process, the first Master and second Master just establishes ospf adjacency relationship.
Module 704, the first Master and the 2nd Master for third ospf process to be collected into is added in adjacent description Syntople description be added in the routing link state advertisement Router LSA of the first ospf process, wherein syntople is retouched It states for indicating the first Master and the 2nd Master ospf adjacencies each other.
A kind of further OSPF configurations dress is provided on the basis of embodiment shown in Fig. 5 of the embodiment of the present invention It sets, wherein process creation module 701 creates third ospf process, and the third interface being connected with the 2nd Master is added to In third ospf process;Mark distribution module 702 distributes third router mark Router ID in third ospf process;Into Cheng Yunhang modules 703 run third ospf process and the 2nd Master establishes ospf adjacency;Finally module 704 is added in adjacent description It will be added in the Router LSA of the first ospf process with the description of the syntople of the 2nd Master.By such method, Realize automatically configuring for the OSPF for the interface being connected with Master, without manually according to network topology result come plan with The Router ID of interface connected Master, simplify the operation of user, reduce the workload of user, be conducive to virtually collect The configuration installation of group's system.
Preferably, the present embodiment can also be combined with embodiment shown in fig. 6, i.e., process creation module 701 can also The second ospf process is created, and second interface is added in the second ospf process;Identifying distribution module 702 can also be second The 2nd Router ID are distributed in ospf process;Process operation module 703 can also run the second ospf process.OSPF devices It may include repeating topological determining module and repeating topology combination module, for automatic identification and merge repetition topology.
Preferably, the data message between the first Master and the 2nd Master can pass through third interface and second Link between Master transmits, and is connected with the 2nd Master it is not necessary that additional interface is arranged for the first Master, to reach Save the purpose of interface number.Wherein third interface can be artificial specified, or the first Master is arranged automatically, this hair It is not limited in bright embodiment.
For the ease of understanding above-described embodiment, will be described by taking a specific application scenarios as an example below.
In virtual cluster system shown in FIG. 1, first interface is connected with second interface with AP on the first Master, and third connects Mouth is connected with the 2nd Master.User manually enables void on the first interface of the first Master, second interface and third interface Quasi- clustering functionality, process creation module 701 automatically create the first ospf process, the second ospf process and third ospf process, and First interface is added in the first ospf process, second interface is added in the second ospf process, third interface is added Into third ospf process.
Mark distribution module 702 distributes the first Router ID in the first ospf process, is distributed in the second ospf process 2nd Router ID distribute the 3rd Router ID in third ospf process.Wherein, the first Router ID include a use Three low bytes of NEID in the upper byte of the first ospf process of unique mark, and with the first Master;Second Router ID include a upper byte for being used for unique mark the second ospf process, and the NEID with the first Master Three low bytes;2nd Router ID are the management IP address of the first Master.
Process runs module 703 and runs the first ospf process, the second ospf process and third ospf process, and passes through operation Process collect virtual cluster system topology.
When collecting topology, the first ospf process gets the first Router ID and the 2nd Router of the first Master ID, the second ospf process also get the first Router ID and the 2nd Router ID of the first Master.In OSPF devices It repeats topological determining module and determines the first Router ID and second that the first ospf process and the second ospf process are got Router ID are identical, therefore confirm that the first ospf process and the second ospf process have collected the topology of repetition, then.OSPF is filled Second interface is added in the first ospf process by the repetition topology combination module set, and then deletes the second ospf process.
After the operation of third ospf process, syntople, the 3rd OSPF are established between the first Master and the 2nd Master Process can be collected into the syntople description of the first Master and the 2nd Master.Module 704 is added by the adjoining in adjacent description Relationship description is added in the Router LSA of the first ospf process so that the Master formation of one Master-AP-the 2nd is closed The topology of ring.
The OSPF configuration devices in the embodiment of the present invention are described from the angle of blocking functional entity above, under Face is described the OSPF configuration devices in the embodiment of the present invention from the angle of hardware handles, referring to Fig. 8, the present invention is implemented Example in 800 another embodiment of OSPF configuration devices include:
Input unit 801, output device 802, processor 803 and memory 804 are (wherein in OSPF configuration devices 800 The quantity of processor 803 can be one or more, in Fig. 8 by taking a processor 803 as an example).In some embodiments of the present invention In, input unit 801, output device 802, processor 803 and memory 804 can be connected by bus or other means, wherein In Fig. 8 for being connected by bus.
Wherein, by the operational order for calling memory 804 to store, processor 803 is for executing following steps:
After enabling Virtual Cluster function on the first interface of the first Master, the first ospf process is created, and by the One interface is added in the first ospf process, and wherein first interface is the interface being connected with AP;
The first Router ID are distributed in the first ospf process, the first Router ID are for unique mark first The first Master in ospf process;
Run the first ospf process.
In some embodiments of the present invention, the first Router ID include for residing for the first Master of unique mark The field of ospf process, and the field for the first Master of unique mark.
In some embodiments of the present invention, the field for being used for the first Master of unique mark is the NEID of the first Master.
In some embodiments of the present invention, processor 803 also executes the following steps:
After enabling Virtual Cluster function in the second interface of the first Master, the second ospf process is created, and by the Two interfaces are added in the second ospf process, and second interface is the interface being connected with AP;
The 2nd Router ID are distributed in the second ospf process, the 2nd Router ID are for unique mark in the 2nd OSPF The first Master in process;
Run second ospf process.
In some embodiments of the present invention, processor 803 also executes the following steps:
Determine that the first ospf process and the second ospf process have collected the topology of repetition;
It is a topology by the topology combination repeated.
In some embodiments of the present invention, processor 803 also executes the following steps:
The Router ID that the first Master is got from the first ospf process are the first Router ID and second Router ID;
The Router ID that the first Master is got from the second ospf process are the first Router ID and second Router ID;
Determine the first Router ID that are got from the first ospf process and the 2nd Router ID with from the 2nd OSPF The first Router ID got in process and the 2nd Router ID are identical, it is determined that the first ospf process and the 2nd OSPF into Journey has collected the topology of repetition.
In some embodiments of the present invention, processor 803 also executes the following steps:
It is obtained from the first ospf process and carries the node for sending the RI LSA at least one RI LSA, RI LSA Identity type, wherein identity type include Master or AP;
It determines that identity type is the node of Master according to the RI LSA got, and body is obtained from the first ospf process Part type is the Router ID of the node of Master, and the Router ID for obtaining the first Master are the first Router ID and the Two Router ID;
And/or
It is obtained from the second ospf process and carries the node for sending the RI LSA at least one RI LSA, RI LSA Identity type, wherein identity type include Master or AP;
It determines that identity type is the node of Master according to the RI LSA got, and body is obtained from the second ospf process Part type is the Router ID of the node of Master, and the Router ID for obtaining the first Master are the first Router ID and the Two Router ID.
In some embodiments of the present invention, processor 803 also executes the following steps:
Second interface is added in the first ospf process;
Delete the second ospf process.
In some embodiments of the present invention, processor 803 also executes the following steps:
After enabling Virtual Cluster function on the third interface of the first Master, third ospf process is created, and by the Three interfaces are added in third ospf process, and third interface is the interface being connected with the 2nd Master;
The 3rd Router ID are distributed in third ospf process, wherein the 3rd Router ID are used for unique mark in third The first Master in ospf process, the 3rd Router ID are the management IP address of the first Master;
Run third ospf process.
In some embodiments of the present invention, processor 803 also executes the following steps:
The syntople description of the first Master and the 2nd Master that third ospf process is collected into are added to first In the Router LSA of ospf process, the syntople description is for indicating the first Master and the 2nd Master OSPF each other It is adjacent.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, 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 may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Stating embodiment, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these Modification or replacement, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (22)

1. a kind of OSPF configuration methods are suitable for virtual cluster system, which is characterized in that the virtual cluster system includes core Aggregation node Master and access node AP, the method includes:
After enabling Virtual Cluster function on the first interface of the first Master, the first Master create the first OSPF into Journey, and the first interface is added in first ospf process, the first interface is the interface being connected with the AP;
First Master distributed in first ospf process the first router mark Router ID, described first Router ID are used for first Master of the unique mark in first ospf process;
First Master runs first ospf process.
2. OSPF configuration methods according to claim 1, which is characterized in that the first Router ID include for only The field of one mark first ospf process, and the field for the first Master described in unique mark.
3. OSPF configuration methods according to claim 2, which is characterized in that described for described in unique mark first The content of the field of Master is the network device identity NEID of the first Master.
4. OSPF configuration methods according to any one of claim 1 to 3, which is characterized in that the method further includes:
After enabling Virtual Cluster function in the second interface of the first Master, the first Master creates second Ospf process, and the second interface is added in second ospf process, the second interface is connected with the AP Interface;
First Master distributes the 2nd Router ID in second ospf process, and the 2nd Router ID are used for First Master of the unique mark in second ospf process;
First Master runs second ospf process.
5. OSPF configuration methods according to claim 4, which is characterized in that the method further includes:
First Master determines that first ospf process and second ospf process have collected the topology of repetition;
The topology combination of the repetition is a topology by the first Master.
6. OSPF configuration methods according to claim 5, which is characterized in that
First Master determines that the topology that first ospf process and second ospf process have collected repetition includes:
The Router ID that first Master gets the first Master from first ospf process are described the One Router ID and the 2nd Router ID;
The Router ID that first Master gets the first Master from first ospf process are described the One Router ID and the 2nd Router ID include:
First Master obtains the declaration of at least one the first router information Link State from first ospf process The identity type for the node for sending the first RI LSA, the identity type are carried in RI LSA, the first RI LSA Including Master or AP;
First Master determines that identity type is the node of Master according to the first RI LSA got, and from institute The Router ID for obtaining the node that identity type is Master in the first ospf process are stated, the Router of the first Master is obtained ID is the first Router ID and the 2nd Router ID;
The Router ID that first Master gets the first Master from second ospf process are described the One Router ID and the 2nd Router ID;
The Router ID that first Master gets the first Master from second ospf process are described the One Router ID and the 2nd Router ID include:
First Master obtains at least one the 2nd RI LSA from second ospf process, in the 2nd RI LSA Carry the identity type for the node for sending the 2nd RI LSA;
First Master determines that identity type is the node of Master according to the 2nd RI LSA got, and from institute The Router ID for obtaining the node that identity type is Master in the second ospf process are stated, the Router of the first Master is obtained ID is the first Router ID and the 2nd Router ID;
First Master determines the first Router ID and described second got from first ospf process Router ID and the first Router ID and the 2nd Router ID phases got from second ospf process Together, then the first Master determines that first ospf process and second ospf process have collected the topology of repetition.
7. OSPF configuration methods according to claim 6, which is characterized in that the first Master is from the first OSPF The Router ID that the first Master is got in process are the first Router ID and the 2nd Router ID packets It includes:
First Master obtains at least one router information Link State declaration RI from first ospf process Carry the identity type for the node for sending the RI LSA in LSA, the RI LSA, the identity type include Master or AP;
First Master determines that identity type is the node of Master according to the RI LSA got, and from described first The Router ID that the node that identity type is Master is obtained in ospf process, obtain the Router ID of the first Master as institute State the first Router ID and the 2nd Router ID;
And/or
The Router ID that first Master gets the first Master from second ospf process are described the One Router ID and the 2nd Router ID include:
First Master obtains at least one RI LSA from second ospf process, and hair is carried in the RI LSA It includes Master or AP to send the identity type of the node of the RI LSA, the identity type;
First Master determines that identity type is the node of Master according to the RI LSA got, and from described second The Router ID that the node that identity type is Master is obtained in ospf process, obtain the Router ID of the first Master as institute State the first Router ID and the 2nd Router ID.
8. OSPF configuration methods according to claim 5, which is characterized in that the topology combination by the repetition is one A topology includes:
The second interface is added in first ospf process by the first Master;
First Master deletes second ospf process.
9. OSPF configuration methods according to any one of claim 1 to 3, which is characterized in that the method further includes:
After enabling Virtual Cluster function on the third interface of the first Master, the first Master creates third Ospf process, and the third interface is added in the third ospf process, the third interface is and the 2nd Master Connected interface;
First Master distributes the 3rd Router ID in the third ospf process, and the 3rd Router ID are used for First Master of the unique mark in the third ospf process;
First Master runs the third ospf process.
10. OSPF configuration methods according to claim 9, which is characterized in that the 3rd Router ID are described first The management IP address of Master.
11. OSPF configuration methods according to claim 9, which is characterized in that the method further includes:
The first Master that the third ospf process is collected by the first Master and the 2nd Master's Syntople description is added in the routing link state advertisement Router LSA of first ospf process, the syntople Description is for indicating the first Master and the 2nd Master ospf adjacencies each other.
12. a kind of OSPF configuration devices, the first core aggregation node Master suitable for virtual cluster system, feature exist In the virtual cluster system further includes access node AP, and the OSPF configuration devices include:
Process creation module, for after enabling Virtual Cluster function on the first interface of the first Master, creating first Ospf process, and the first interface is added in first ospf process, the first interface is connected with the AP Interface;
Distribution module is identified, for distributing the first router mark Router ID in first ospf process, described first Router ID are used for first Master of the unique mark in first ospf process;
Process runs module, for running first ospf process.
13. OSPF configuration devices according to claim 12, which is characterized in that the first Router ID include being used for The field of first ospf process described in unique mark, and the field for the first Master described in unique mark.
14. OSPF configuration devices according to claim 13, which is characterized in that described for described in unique mark first The content of the field of Master is the network device identity NEID of the first Master.
15. the OSPF configuration devices according to any one of claim 12 to 14, which is characterized in that the process creation mould Block is additionally operable to:
After enabling Virtual Cluster function in the second interface of the first Master, the second ospf process is created, and by institute It states second interface to be added in second ospf process, the second interface is the interface being connected with the AP;
The mark distribution module is additionally operable to:The 2nd Router ID of distribution in second ospf process, described second Router ID are used for first Master of the unique mark in second ospf process;
The process operation module is additionally operable to:Run second ospf process.
16. OSPF configuration devices according to claim 15, which is characterized in that described device further includes:
Topological determining module is repeated, for determining that first ospf process and second ospf process have collected opening up for repetition It flutters;
Topology combination module is repeated, for being a topology by the topology combination of the repetition.
17. OSPF configuration devices according to claim 16, which is characterized in that the topology determining module that repeats specifically is used In:
Got from first ospf process the first Master Router ID be the first Router ID and The 2nd Router ID;
The Router ID that the first Master is got from first ospf process are the first Router ID and the 2nd Router ID include:
Obtain at least one the first router information Link State declaration RI LSA from first ospf process, described first Carry the identity type for the node for sending the first RI LSA in RI LSA, the identity type include Master or AP;
Determine that identity type is the node of Master according to the first RI LSA got, and from first ospf process The middle Router ID for obtaining the node that identity type is Master, the Router ID for obtaining the first Master are described first Router ID and the 2nd Router ID;
Got from second ospf process the first Master Router ID be the first Router ID and The 2nd Router ID;
The Router ID that the first Master is got from second ospf process are the first Router ID and the 2nd Router ID include:
At least one the 2nd RI LSA are obtained from second ospf process, are carried described in transmission in the 2nd RI LSA The identity type of the node of 2nd RI LSA;
Determine that identity type is the node of Master according to the 2nd RI LSA got, and from second ospf process The middle Router ID for obtaining the node that identity type is Master, the Router ID for obtaining the first Master are described first Router ID and the 2nd Router ID;
Determine the first Router ID that are got from first ospf process and the 2nd Router ID with from The first Router ID got in second ospf process are identical with the 2nd Router ID, it is determined that described First ospf process and second ospf process have collected the topology of repetition.
18. OSPF configuration devices according to claim 17, which is characterized in that the topology determining module that repeats passes through such as The Router ID that lower method gets the first Master from first ospf process are the first Router ID With the 2nd Router ID:
It is obtained from first ospf process at least one router information Link State declaration RI LSA, the RI LSA The identity type for the node for sending the RI LSA is carried, the identity type includes Master or AP;
It determines that identity type is the node of Master according to the RI LSA got, and body is obtained from first ospf process The Router ID for the node that part type is Master, the Router ID for obtaining the first Master are the first Router ID With the 2nd Router ID;
And/or
The topology determining module that repeats gets the first Master from second ospf process by the following method Router ID be the first Router ID and the 2nd Router ID:
It obtains to carry at least one RI LSA, the RI LSA from second ospf process and sends the RI LSA's The identity type of node, the identity type include Master or AP;
It determines that identity type is the node of Master according to the RI LSA got, and body is obtained from second ospf process The Router ID for the node that part type is Master, the Router ID for obtaining the first Master are the first Router ID With the 2nd Router ID.
19. OSPF configuration devices according to claim 16, which is characterized in that the topology combination module that repeats specifically is used In:
The second interface is added in first ospf process;
Delete second ospf process.
20. the OSPF configuration devices according to any one of claim 12 to 14, which is characterized in that the Virtual Cluster system System further includes the 2nd Master, and the process creation module is additionally operable to:
After enabling Virtual Cluster function on the third interface of the first Master, third ospf process is created, and by institute It states third interface to be added in the third ospf process, the third interface is the interface being connected with the 2nd Master;
The mark distribution module is additionally operable to:The 3rd Router ID, the third are distributed in the third ospf process Router ID are used for first Master of the unique mark in the third ospf process;
The process operation module is additionally operable to:Run the third ospf process.
21. OSPF configuration devices according to claim 20, which is characterized in that the 3rd Router ID are described the The management IP address of one Master.
22. OSPF configuration devices according to claim 20, which is characterized in that described device further includes:
Module, the first Master and described second for the third ospf process to be collected into is added in adjacent description The syntople description of Master is added in the routing link state advertisement Router LSA of first ospf process, described Syntople description is for indicating the first Master and the 2nd Master ospf adjacencies each other.
CN201510222353.0A 2015-05-04 2015-05-04 A kind of OSPF configuration methods and relevant apparatus Active CN104852849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510222353.0A CN104852849B (en) 2015-05-04 2015-05-04 A kind of OSPF configuration methods and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510222353.0A CN104852849B (en) 2015-05-04 2015-05-04 A kind of OSPF configuration methods and relevant apparatus

Publications (2)

Publication Number Publication Date
CN104852849A CN104852849A (en) 2015-08-19
CN104852849B true CN104852849B (en) 2018-10-19

Family

ID=53852214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510222353.0A Active CN104852849B (en) 2015-05-04 2015-05-04 A kind of OSPF configuration methods and relevant apparatus

Country Status (1)

Country Link
CN (1) CN104852849B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428868B (en) * 2017-08-31 2021-10-12 中兴通讯股份有限公司 Method, encryption device, encryption equipment and storage medium for encrypting OSPFv3
CN110569291B (en) * 2019-09-16 2022-04-15 东信和平科技股份有限公司 Key data query and acquisition method and device for digital currency wallet
CN113542000B (en) * 2021-05-20 2023-11-07 新华三大数据技术有限公司 Process number determining method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1081899A2 (en) * 1999-08-06 2001-03-07 International Business Machines Corporation Method of configurating an OSPF interface
CN102318287A (en) * 2011-06-30 2012-01-11 华为技术有限公司 Methods and device to establish router neighbors
CN103178983A (en) * 2011-12-26 2013-06-26 中兴通讯股份有限公司 Method and device for configuring shortest path first protocol interface area identifications
CN104506438A (en) * 2015-01-09 2015-04-08 烽火通信科技股份有限公司 Method and system for automatic operation of data communication network (DCN)
CN104579728A (en) * 2013-10-17 2015-04-29 中兴通讯股份有限公司 Network element equipment configuration and management method and device as well as network element equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1081899A2 (en) * 1999-08-06 2001-03-07 International Business Machines Corporation Method of configurating an OSPF interface
CN102318287A (en) * 2011-06-30 2012-01-11 华为技术有限公司 Methods and device to establish router neighbors
CN103178983A (en) * 2011-12-26 2013-06-26 中兴通讯股份有限公司 Method and device for configuring shortest path first protocol interface area identifications
CN104579728A (en) * 2013-10-17 2015-04-29 中兴通讯股份有限公司 Network element equipment configuration and management method and device as well as network element equipment
CN104506438A (en) * 2015-01-09 2015-04-08 烽火通信科技股份有限公司 Method and system for automatic operation of data communication network (DCN)

Also Published As

Publication number Publication date
CN104852849A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN105210337B (en) A kind of service implementation method and communication unit of NFV system
CN109600768A (en) Management method, equipment and the system of network slice
CN103997414B (en) Generate method and the network control unit of configuration information
CN103746911B (en) A kind of SDN structure and its communication means
CN107888425A (en) The network splitting and disposing method and apparatus of GSM
CN103338150A (en) Method and device for establishing information communication network system structure, as well as server and router
CN106301829A (en) A kind of method and apparatus of Network dilatation
CN107104824A (en) A kind of network topology determines method and apparatus
US20040083284A1 (en) System and method for providing data awareness across multiple domains
CN107896195A (en) Service chaining method of combination, device and service chaining topological structure
CN108322502A (en) Method, gateway system and storage medium for equalization server load
CN104852849B (en) A kind of OSPF configuration methods and relevant apparatus
CN113810205B (en) Service computing power information reporting and receiving method, server and data center gateway
CN104956629B (en) Event distributing method in software defined network, control device and processor
CN105469143A (en) Network-on-chip resource mapping method based on dynamic characteristics of neural network
CN110417870A (en) configuration file management method, device, equipment and storage medium
CN108200628B (en) Wireless ad hoc networking method of linear topological structure
CN109803281A (en) Management method, equipment and the system of network service
CN109842868A (en) A kind of frame aggregation, network settings frame sending method and equipment
CN109327319A (en) Method, equipment and the system of on-premise network slice
CN109672751A (en) A kind of wisdom population statistical method and system based on edge calculations
CN103684851B (en) Collecting method and device
CN108259218A (en) A kind of IP address distribution method and device
CN104348691B (en) A kind of fiber link dispatching method, equipment and system
CN103581317B (en) A kind of method of network resources locating

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant