CN101159604A - Method of setting priority interface region number of open shortest path - Google Patents

Method of setting priority interface region number of open shortest path Download PDF

Info

Publication number
CN101159604A
CN101159604A CNA2007101665712A CN200710166571A CN101159604A CN 101159604 A CN101159604 A CN 101159604A CN A2007101665712 A CNA2007101665712 A CN A2007101665712A CN 200710166571 A CN200710166571 A CN 200710166571A CN 101159604 A CN101159604 A CN 101159604A
Authority
CN
China
Prior art keywords
ospf interface
interface
network element
ospf
local
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
CNA2007101665712A
Other languages
Chinese (zh)
Other versions
CN101159604B (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.)
Nanjing Zhongxing Software Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101665712A priority Critical patent/CN101159604B/en
Publication of CN101159604A publication Critical patent/CN101159604A/en
Application granted granted Critical
Publication of CN101159604B publication Critical patent/CN101159604B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method for setting an open shortest path first (OSPF) interface area ID, which comprises the following steps: (a) dividing network elements into backbone network element and non-backbone network element, and determining the OSPF interface area ID of the backbone network element; (b) when an OSPF interface is started up, defining the OSPF interface as local OSPF interface and accessing to the local OSPF interface and the ID information of a remote OSPF interface connected therewith; (c) based on the D information, automatically setting the local OSPF interface area ID, wherein when the local OSPF interface and the remote OSPF interface both belong to the backbone network element, setting the local OSPF interface area ID with the area ID of the backbone network element belonging thereto; when the local OSPF interface belongs to the backbone network element but the remote OSPF interface belongs to the non-backbone network element, setting the local OSPF interface area ID based on the identification information of the remote OSPF interface; and when the local OSPF interface belongs to the non-backbone network element, setting the area ID thereof based on the identification information of the local OSPF interface.

Description

A kind of method that priority interface region number of open shortest path is set
Technical field
The present invention relates to a kind ofly transmission equipment network elements is set Open Shortest Path First (Open ShortestPath First, OSPF) method of interface area number.
Background technology
Ospf interface moves the network interface of ospf protocol exactly.In transmission equipment network elements, calculate routing iinformation generation table, i.e. routing table of the whole network usually by operation ospf protocol on the specific light mouth of network element.The routing iinformation management remote equipment that webmaster provides by routing table.Stipulate that in RFC2328 it is that they must belong to an ospf area that the ospf interface that two physics links to each other or links to each other in logic can carry out the precondition that route calculates.
At present to the method to set up of ospf interface regional number normally: the network manager is by order line or webmastering software manual configuration ospf interface regional number.Its shortcoming is, automation degree of equipment is not high, for remote area, equipment open inconvenience; The attendant need understand the network topology structure of the whole network, network topology structure complexity particularly, when NE quantity is a lot, dispose loaded down with trivial details, workload is big.
Summary of the invention
The present invention proposes a kind of method that the ospf interface regional number is set, solve existing ospf interface regional number the problem loaded down with trivial details, that workload is big is set.
In order to solve the problems of the technologies described above, the invention provides a kind of method that priority interface region number of open shortest path is set, comprise following steps:
(a) network element is divided into key network element and non-backbone unit, determines key network element Open Shortest Path First the ospf interface regional number;
(b) when an ospf interface starts, be called local ospf interface, obtain the identification information of local ospf interface and coupled far-end ospf interface;
(c) according to described identification information, described local ospf interface regional number is set automatically, wherein,
When described local ospf interface and described far-end ospf interface belong to key network element, the ospf interface regional number of described local ospf interface regional number for key network element under it is set;
When described local ospf interface belongs to key network element, described far-end ospf interface belongs to non-backbone unit, according to the identification information of far-end ospf interface local ospf interface regional number is set;
When described local ospf interface belongs to non-backbone unit, its regional number is set according to the identification information of local ospf interface.
Further, said method also can have following characteristics, and described key network element belongs to backbone area, and non-backbone unit belongs to non-backbone area.
Further, said method also can have following characteristics, and described key network element ospf interface regional number is 0.
Further, said method also can have following characteristics, and in the described step (b), described identification information is the IP address.
Further, said method also can have following characteristics, in the described step (c), judges that according to the IP address of ospf interface this ospf interface belongs to key network element or non-backbone unit.
Further, said method also can have following characteristics, and in the described step (c), described according to identification information the ospf interface regional number to be set be to get the highest 1 byte of IP address as the ospf interface regional number.
Further, said method also can have following characteristics, and the IP address of described far-end ospf interface obtains by link layer protocol.
Further, said method also can have following characteristics, in the described step (b), also obtains the subnet mask and/or the maximum receive unit MRU of described local ospf interface and coupled far-end ospf interface.
The transmission equipment network elements ospf network interface that the present invention proposes calculates the implementation method of its ospf area number automatically according to the interface that links to each other, making network element need not the user participates in, promptly can calculate the ospf interface regional number automatically, compared with prior art, do not need the attendant manually to be provided with, configuration is simple, and workload reduces greatly.
Description of drawings
The typical networking schematic diagram of Fig. 1;
Fig. 2 ospf interface regional number of the present invention is provided with algorithm flow chart.
Embodiment
The present invention relates to a kind of method that the ospf interface regional number is set automatically, method of the present invention is applicable to the network interface of the point-to-point type with IP address.
Adopt the method for this programme, require:
1, the network element of a certain IP address field under the prior specified interface is key network element, and the network element of non-this IP address field is a non-backbone unit.Key network element belongs to backbone area, and non-backbone unit belongs to non-backbone area.
The standard of being appointed as key network element and non-backbone unit is to determine according to network configuration.
Under the normal condition, the network element ospf protocol of the non-backbone area of zones of different can not intercommunication, must be through backbone area.The purpose of distinguishing backbone area and non-backbone area is to reduce network size.
2, the regional number of backbone area is 0, and the regional number of non-backbone area is set according to certain rule, as the highest 1 byte in 4 bytes can getting interface IP address according to the IP address of interface.
According to RFC2328, the regional number of backbone area can only be 0 zone, and the regional number of non-backbone area can arbitrarily be set, and does not have general rule.The present invention is according to the regional number of the non-backbone area of IP address setting.
Figure 2 shows that the present invention is provided with the schematic flow sheet of ospf interface regional number automatically, comprises following steps:
Step 110, when a certain interface of OSPF started, network element obtained the IP address of this ospf interface and the IP address of the far-end ospf interface that is attached thereto.
The ospf interface IP address information of this network element can directly obtain by the function that operating system provides; The IP address information of far-end ospf interface can be obtained by this interface link layer protocol.The IP address information comprises the IP address, subnet mask, MRU (Maximum Receive Unit, maximum receive unit) etc.
Step 220, network element are analyzed the IP address and the remote interface IP address of this ospf interface, judge whether this network element is key network element, if, execution in step 230, if not, execution in step 260;
Step 230 checks whether the ospf interface IP address of this interface far-end is key network element, if, execution in step 240, otherwise, execution in step 250;
Step 240, if remote network element also is key network element, the regional number of then directly setting this ospf interface is a backbone area, and promptly regional number is 0, and algorithm finishes.
Step 250, if this network element is a non-backbone unit for key network element remote network element, the ospf area number of setting this ospf interface so is non-backbone area, and regional number is according to the IP address setting of far-end ospf interface, and algorithm finishes.
Step 260, the regional number of setting this ospf interface is the regional number of this network element, promptly according to the regional number of this ospf interface of IP address setting of this ospf interface, algorithm finishes.
Be described in detail below in conjunction with the implementation process of accompanying drawing the method for the present invention's proposition.
For convenience of description, use following mark:
A.1.1 represent No. 1 light mouth of No. 1 veneer of A network element, that is to say that three fields are represented respectively: network element number, veneer number and light slogan.
The IP address definition of backbone area correspondence: definition IP address the highest 1 byte is that 195 network element is key network element, and the highest nybble that is to say network element light mouth IP map addresses is 195 light mouth, and its ospf area number is a backbone area 0.The light mouth of all IP address highest bytes non-195 is non-backbone area, and regional number is the highest byte of IP address, and for example the IP address is 182.160.162.133, and the ospf area number of corresponding network interface is 0.0.0.182, is abbreviated as 182.
Figure 1 shows that the network topology structure schematic diagram.Network element A, B, C link to each other by a pair of optical fiber respectively among the figure.The address assignment of network element A, B, C is 195.195.195.11,196.196.196.11,195.195.193.11.
The following describes the ospf area number of each the light mouth that how to be provided with among network element A, B, the C.
After the whole network network element starts, at first, comprise link layer protocol by network element system software, as ppp protocol, obtain the IP address of each light mouth mapping and the remote interface IP address that is attached thereto.
1) setting of light mouth ospf interface regional number A.1.1:
Light mouth corresponding IP map addresses A.1.1 is 195.195.195.19, and the remote interface address is 196.196.196.18.Know according to the algorithm flow among Fig. 2, because the highest order 195 of local terminal address belongs to the backbone area network element, so check the IP address of remote interface.Far-end address 196.1963.196.18, the corresponding region number is 196, belongs to non-backbone area, the regional number 196 that remote interface then is set is the ospf interface regional number of interface correspondence A.1.1.
2) light mouth ospf interface regional number B.1.1 is provided with:
B.1.1 corresponding IP map addresses is 196.196.196.18, and the far-end address interface is 195.195.195.19, and the highest byte of this flash of light preceding an earthquake mouth IP address is 196, belongs to non-backbone area IP, and so directly setting its ospf interface regional number is 196.
3) light mouth ospf interface regional number A.2.1 is provided with:
A.2.1 corresponding IP map addresses is 195.195.195.20, and far-end address is 195.195.193.18.The highest byte 195 of local terminal IP address is the backbone area network element, and reexamining remote interface IP address highest order is 195, also is the backbone area network element.Set A.2.1 ospf interface regional number so and be backbone area number 0.
4) light mouth ospf interface regional number C.1.1 is provided with:
The IP map addresses of correspondence C.1.1 is 195.195.193.18, far-end address is 195.195.195.20, the highest byte of the IP address of this flash of light preceding an earthquake mouth is 195, be the backbone area network element, reexamining remote interface IP address highest order is 195, also being the backbone area network element, is that the regional number of backbone area is 0 so set C.1.1 ospf interface regional number.
Can be not do not come zoning number yet, can calculate according to the sign of network element according to the IP address.The user can increase other the privately owned signs of oneself at link layer, according to this privately owned sign or according to NE ID, and the regional number of holding consultation.
The above only is a 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 improvement, and these improvement should be considered as protection scope of the present invention.

Claims (8)

1. method that priority interface region number of open shortest path is set comprises following steps:
(a) network element is divided into key network element and non-backbone unit, determines key network element Open Shortest Path First the ospf interface regional number;
(b) when an ospf interface starts, be called local ospf interface, obtain the identification information of local ospf interface and coupled far-end ospf interface;
(c) according to described identification information, described local ospf interface regional number is set automatically, wherein,
When described local ospf interface and described far-end ospf interface belong to key network element, the ospf interface regional number of described local ospf interface regional number for key network element under it is set;
When described local ospf interface belongs to key network element, described far-end ospf interface belongs to non-backbone unit, according to the identification information of far-end ospf interface local ospf interface regional number is set;
When described local ospf interface belongs to non-backbone unit, its regional number is set according to the identification information of local ospf interface.
2. the method for claim 1 is characterized in that, described key network element belongs to backbone area, and non-backbone unit belongs to non-backbone area.
3. the method for claim 1 is characterized in that, the ospf interface regional number of described key network element is 0.
4. as claim 1 or 2 or 3 described methods, it is characterized in that in the described step (b), described identification information is the IP address.
5. method as claimed in claim 4 is characterized in that, in the described step (c), judges that according to the IP address of ospf interface this ospf interface belongs to key network element or non-backbone unit.
6. method as claimed in claim 4 is characterized in that, in the described step (c), described according to identification information the ospf interface regional number to be set be to get the highest 1 byte of IP address as the ospf interface regional number.
7. method as claimed in claim 4 is characterized in that, the IP address of described far-end ospf interface obtains by link layer protocol.
8. method as claimed in claim 4 is characterized in that, in the described step (b), also obtains the subnet mask and/or the maximum receive unit MRU of described local ospf interface and coupled far-end ospf interface.
CN2007101665712A 2007-11-06 2007-11-06 Method of setting priority interface region number of open shortest path Expired - Fee Related CN101159604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101665712A CN101159604B (en) 2007-11-06 2007-11-06 Method of setting priority interface region number of open shortest path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101665712A CN101159604B (en) 2007-11-06 2007-11-06 Method of setting priority interface region number of open shortest path

Publications (2)

Publication Number Publication Date
CN101159604A true CN101159604A (en) 2008-04-09
CN101159604B CN101159604B (en) 2010-09-29

Family

ID=39307531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101665712A Expired - Fee Related CN101159604B (en) 2007-11-06 2007-11-06 Method of setting priority interface region number of open shortest path

Country Status (1)

Country Link
CN (1) CN101159604B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568048A (en) * 2009-05-15 2009-10-28 中兴通讯股份有限公司 Data transmission method and system
CN103178983A (en) * 2011-12-26 2013-06-26 中兴通讯股份有限公司 Method and device for configuring shortest path first protocol interface area identifications
CN109768873A (en) * 2017-11-09 2019-05-17 中兴通讯股份有限公司 The configuration method and device of bearer network equipment
CN107707470B (en) * 2016-08-09 2021-03-16 中兴通讯股份有限公司 OSPF area number configuration method and equipment
CN113824579A (en) * 2020-06-19 2021-12-21 华为技术有限公司 Interface configuration method of equipment in campus network and network equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100420225C (en) * 1999-08-06 2008-09-17 国际商业机器公司 Priority interface of open shortest path

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568048A (en) * 2009-05-15 2009-10-28 中兴通讯股份有限公司 Data transmission method and system
CN103178983A (en) * 2011-12-26 2013-06-26 中兴通讯股份有限公司 Method and device for configuring shortest path first protocol interface area identifications
CN107707470B (en) * 2016-08-09 2021-03-16 中兴通讯股份有限公司 OSPF area number configuration method and equipment
CN109768873A (en) * 2017-11-09 2019-05-17 中兴通讯股份有限公司 The configuration method and device of bearer network equipment
CN113824579A (en) * 2020-06-19 2021-12-21 华为技术有限公司 Interface configuration method of equipment in campus network and network equipment
WO2021254061A1 (en) * 2020-06-19 2021-12-23 华为技术有限公司 Interface configuration method for device in campus network, and network device

Also Published As

Publication number Publication date
CN101159604B (en) 2010-09-29

Similar Documents

Publication Publication Date Title
JP4714111B2 (en) Management computer, computer system and switch
CN101159604B (en) Method of setting priority interface region number of open shortest path
CN110266550B (en) Method and device for predicting fault influence
US8116209B2 (en) Methods and apparatus for identifying errors and stranded resources in networks
CN105718785A (en) Authentication-Free Configuration For Service Controllers
CN103780467B (en) communication connection method, communication device and communication system
CN102377679A (en) Method for realizing link discovery and management in FTTX access system
CN103209083A (en) Device upgrading method
CN104579978B (en) A kind of dynamic network Datalink Layer Topology Discovery method
CN100352210C (en) Method for managing network device
CN102368692B (en) Passive optical network unit replacing method based on logic serial number
CN104168200B (en) A kind of method and system that acl feature is realized based on Open vSwitch
US20090207756A1 (en) Network configuration management method
CN109039764A (en) A kind of network parameter configuration method of distributed memory system
RU2602333C2 (en) Network system, packet processing method and storage medium
US20180367427A1 (en) Method for performing connectivity check and apparatus
US7733800B2 (en) Method and mechanism for identifying an unmanaged switch in a network
CN101945110A (en) Configuration method and device of address resolution protocol entry
CN100401703C (en) Wide-band network system
CN107769964B (en) Special line checking method and system
CN101599834A (en) A kind of identification and deployment and a kind of management equipment
CN103227733A (en) Topology discovery method and topology discovery system
CN104994137B (en) A kind of method of network readezvous point agency
Cisco Release Notes for the Catalyst 3550 Multilayer Switch, Cisco IOS Release 12.1(6)EA1a
Cisco Release Notes for the Catalyst 3550 Multilayer Switch, Cisco IOS Release 12.1(6)EA1

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151221

Address after: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68

Patentee after: Nanjing Zhongxing New Software Co., Ltd.

Address before: 518057 Nanshan District high tech Industrial Park, Guangdong, South Road, science and technology, ZTE building, legal department

Patentee before: ZTE Corporation

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100929

Termination date: 20161106

CF01 Termination of patent right due to non-payment of annual fee