CN109873764A - Establish method, apparatus, the electronic equipment of orientation ospf neighbor relationship - Google Patents

Establish method, apparatus, the electronic equipment of orientation ospf neighbor relationship Download PDF

Info

Publication number
CN109873764A
CN109873764A CN201910130626.7A CN201910130626A CN109873764A CN 109873764 A CN109873764 A CN 109873764A CN 201910130626 A CN201910130626 A CN 201910130626A CN 109873764 A CN109873764 A CN 109873764A
Authority
CN
China
Prior art keywords
equipment
message
standby
ospf
routing device
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
CN201910130626.7A
Other languages
Chinese (zh)
Other versions
CN109873764B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201910130626.7A priority Critical patent/CN109873764B/en
Publication of CN109873764A publication Critical patent/CN109873764A/en
Application granted granted Critical
Publication of CN109873764B publication Critical patent/CN109873764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides method, apparatus, electronic equipment and the machine readable storage medium for establishing orientation ospf neighbor relationship.In this application, it is based on multicast, the first message is sent in the radio network, wherein first message includes at least the main equipment and the standby equipment establishes the relevant information of ospf neighbor relationship;The second message is obtained, second message is based on, obtains the network address and link layer address of the standby equipment, wherein second message is the response that the standby equipment is directed to first message;Based on the network address and link layer address of the standby equipment, creation orientation ospf neighbor table, wherein the orientation ospf neighbor table interacts the stage with the standby ospf protocol of the equipment after reaching two-way state for the main equipment.

Description

Establish method, apparatus, the electronic equipment of orientation ospf neighbor relationship
Technical field
This application involves fields of communication technology, more particularly to the method, apparatus of foundation orientation ospf neighbor relationship, electronics to set Standby and machine readable storage medium.
Background technique
Ospf OSPF (Open Shortest Path First, Open Shortest Path First) agreement It is the one of IETF (The Internet Engineering Task Force, Internet engineering task force) organization development A IGP (Interior Gateway Protocol, Interior Gateway Protocol) agreement based on link state.Before OSPF appearance, RIP (Routing Information Protocol, routing information protocol) is widely used on network as IGP agreement.Due to The problems such as RIP is the Routing Protocol based on distance vector algorithm, and there is convergences slowly, route loop, poor expandability, and simultaneously As IP network scale is increasing, in order to meet the needs in large-scale, isomery IP network, RIP agreement is gradually assisted by OSPF Replaced view, OSPF is widely used in various networkings as a kind of common IGP Routing Protocol.
Summary of the invention
The application provides a kind of method for establishing orientation ospf neighbor relationship, and the method is applied to support ospf protocol On routing device, the routing device is located in radio network, and the radio network includes multiple routing devices, and the routing is set It is standby to can be configured to main equipment or standby equipment, wherein the main equipment refers to the road of side in ospf neighbor relationship to be established By the relatively large network equipment of ident value, the standby equipment refers in the ospf neighbor relationship corresponding with the main equipment The relatively small network equipment of Route Distinguisher value of the other side, when the routing device is main equipment, which comprises
Based on multicast, the first message is sent in the radio network, wherein first message includes at least the master and sets The standby relevant information that ospf neighbor relationship is established with the standby equipment;
The second message is obtained, second message is based on, obtains the network address and link layer address of the standby equipment, In, second message is the response that the standby equipment is directed to first message;
Based on the network address and link layer address of the standby equipment, creation orientation ospf neighbor table, wherein the orientation Ospf neighbor table interacts the stage with the standby ospf protocol of the equipment after reaching two-way state for the main equipment.
Optionally, the routing device supports that IPv6 agreement, the ospf protocol version that the routing device is supported are V3.
Optionally, first message at least further include the corresponding requested node multicast address of the standby equipment, it is described The network address and link layer address of main equipment, type of message, the standby equipment respective links layer address inquiry.
Optionally, further includes:
If receiving the third message of the standby equipment, the link layer address of the third message is obtained, wherein described Three messages are the notice message that standby equipment itself link layer address changes;
The standby equipment is updated in the link that the orientation ospf neighbor table respective links layer address is the third message Layer address.
The application also provides a kind of device for establishing orientation ospf neighbor relationship, and described device is applied to support ospf protocol Routing device on, the routing device is located in radio network, the radio network include multiple routing devices, the routing Equipment can be configured to main equipment or standby equipment, wherein the main equipment refers to side in ospf neighbor relationship to be established The relatively large network equipment of Route Distinguisher value, the standby equipment refer to the ospf neighbor relationship corresponding with the main equipment The relatively small network equipment of Route Distinguisher value of the middle other side, when the routing device is main equipment, described device includes:
Transceiver module sends the first message, wherein first message is extremely for being based on multicast in the radio network It less include the relevant information that the main equipment and the standby equipment establish ospf neighbor relationship;
The transceiver module is further, obtains the second message, is based on second message, obtains the network of the standby equipment Address and link layer address, wherein second message is the response that the standby equipment is directed to first message;
Creation module, for network address and link layer address based on the standby equipment, creation orients ospf neighbor table, Wherein, the orientation ospf neighbor table is for the main equipment and the OSPF of the standby equipment after reaching two-way state The protocol interaction stage.
Optionally, the routing device supports that IPv6 agreement, the ospf protocol version that the routing device is supported are V3.
Optionally, first message at least further include the corresponding requested node multicast address of the standby equipment, it is described The network address and link layer address of main equipment, type of message, the standby equipment respective links layer address inquiry.
Optionally, further includes:
The transceiver module is further, if receiving the third message of the standby equipment, obtains the chain of the third message Road layer address, wherein the third message is the notice message that standby equipment itself link layer address changes;
The creation module is further, updates the standby equipment in the orientation ospf neighbor table respective links layer address and is The link layer address of the third message.
The application also provides a kind of electronic equipment, including communication interface, processor, memory and bus, and the communication connects Pass through bus between mouth, the processor and the memory to be connected with each other;
Machine readable instructions are stored in the memory, the processor is executed by calling the machine readable instructions Above-mentioned method.
The application also provides a kind of machine readable storage medium, and the machine readable storage medium is stored with machine readable finger It enables, the machine readable instructions realize the above method when being called and being executed by processor.
By above embodiments, it is based on multicast, the first message is sent in the radio network, wherein first message The relevant information of ospf neighbor relationship is established including at least the main equipment and the standby equipment;The second message is obtained, institute is based on The second message is stated, the network address and link layer address of the standby equipment are obtained, wherein second message is the standby equipment For the response of first message;Based on the network address and link layer address of the standby equipment, creation orientation ospf neighbor Table, wherein the orientation ospf neighbor table is for the main equipment and the standby equipment after reaching two-way state Ospf protocol interacts the stage, realizes in the radio network comprising multiple routing devices for supporting OSPFv3 and IPv6 agreement, Message is expanded by customized OSPFv3, opens NDP without routing device, can also realize that neighbours have found, so that two routings are set Orientation ospf neighbor table is established between standby, routing device power consumption is reduced and simultaneously greatly improves routing device performance, while being avoided pair Without establishing the interference of the routing device of ospf neighbor relationship.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for foundation orientation ospf neighbor relationship that an exemplary embodiment provides.
Fig. 2 is the primary flow chart for updating orientation ospf neighbor table that an exemplary embodiment provides.
Fig. 3 is a kind of block diagram of the device for foundation orientation ospf neighbor relationship that an exemplary embodiment provides.
Fig. 4 is the hardware structure diagram for a kind of electronic equipment that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, below first to this Shen Please embodiment be related to foundation orientation ospf neighbor relationship the relevant technologies, be briefly described.
The abbreviation of IPv6 (Internet Protocol Version 6, Internet protocol the 6th edition), is Internet Engineering Task groups (IETF) design is used to substitute IPv4's (Internet Protocol Version 4, Internet protocol the 4th edition) IP next generation protocol, number of addresses, which is known as, can be numbered with an address for global every A Grain of Sand.Due to IPv4 maximum The problem of be that network address resources are limited, seriously constrain the application and development of internet.The use of IPv6, not only can solve The problem of network address resources quantity, and solve the obstacle that a variety of access devices are connected into internet.
And in the network based on IPv6, NDP (Neighbor Discovery Protocol, Neighbor Discovery Protocol) is One of key protocol, it is combined with ARP (Address Resolution Protocol, address resolution association in IPv4 View), ICMP (Internet Control Message Protocol, Internet Control Message Protocol) routing device discovery It the agreements such as redirects with ICMP, and they is improved.As the basic agreement of IPv6, NDP additionally provide prefix discovery, The functions such as the unreachable detection of neighbours, repeat to address (RA) monitoring, Address Autoconfiguration, wherein address above mentioned automatically configures mechanism, including A series of critical functions, such as: routing device discovery.
Off the net comprising multiple groups for supporting IPv6 routing device at one, above-mentioned multiple support IPv6 routing devices will match Starting NDP is set, for realizing the mutual discovery of routing device, while above-mentioned multiple support IPv6 routing devices all enable OSPF association View, establishes the ospf neighbor relationship between routing device based on ospf protocol, specifically, such as: above-mentioned networking includes that routing is set Standby A, B, C, after routing device A, B, C, which configures, starts NDP, then above-mentioned routing device between any two, such as: A<--->B, A <--->C, B<--->C, all can establish ospf neighbor relationship namely above-mentioned routing device based on ospf protocol can build between any two Stand multiple unicasts connection, in some scenes, user it is only necessary to establish ospf neighbor relationship between above-mentioned routing device A, B, Without between routing device A, C, ospf neighbor relationship is established between routing device B, C.And it can not based on above-mentioned existing realization Flexibly control, cause between routing device A, C, between routing device B, C due to opening ND agreement, can still establish unicast message Interaction, so as to cause a large amount of consumption of equipment performance.
Based on this, the application proposes that a kind of scheme for establishing orientation ospf neighbor relationship, the program are applied to support OSPF On the routing device of agreement, the routing device is located in radio network, and the radio network includes multiple routing devices, described Routing device can be configured to main equipment or standby equipment, wherein the main equipment refers to one in ospf neighbor relationship to be established The relatively large network equipment of Route Distinguisher value of side, the standby equipment refer to the ospf neighbor corresponding with the main equipment The relatively small network equipment of Route Distinguisher value of the other side in relationship is based on multicast when the routing device is main equipment, The first message is sent in the radio network, wherein first message includes at least the main equipment and builds with the standby equipment The relevant information of vertical ospf neighbor relationship;The second message is obtained, second message is based on, with obtaining the network of the standby equipment Location and link layer address, wherein second message is the response that the standby equipment is directed to first message;Based on described standby The network address and link layer address of equipment, creation orientation ospf neighbor table, wherein the orientation ospf neighbor table is for described Main equipment interacts the stage with the standby ospf protocol of the equipment after reaching two-way state.
The application is described below by specific embodiment and in conjunction with specific application scenarios.
Referring to FIG. 1, Fig. 1 is a kind of method for foundation orientation ospf neighbor relationship that one embodiment of the application provides, institute It states method to be applied on the routing device for supporting ospf protocol, the routing device is located in radio network, and the radio network includes Multiple routing devices, the routing device can be configured to main equipment or standby equipment, wherein the main equipment refer to The relatively large network equipment of Route Distinguisher value of side in ospf neighbor relationship is established, the standby equipment refers to be set with the master The relatively small network equipment of Route Distinguisher value of the other side in the standby corresponding ospf neighbor relationship, when the routing device When for main equipment, the above method executes following steps:
Step 102 is based on multicast, the first message is sent in the radio network, wherein first message includes at least The main equipment and the standby equipment establish the relevant information of ospf neighbor relationship.
Here routing device supports IPv6 agreement and ospf protocol, wherein since ospf protocol is directed to IPV4 agreement OSPF V2 is used, uses OSPF V3 for IPv6 version, so the ospf protocol version that above-mentioned routing device is supported This is V3.Here radio network refers to the IPv6 networks comprising multiple support OSPF V3 routing devices, such as: above-mentioned radio network Including routing device A, B, C, wherein above-mentioned routing device is all preset with routing ID, in the application namely referred to as Route Distinguisher value, Abbreviation RouterID, above-mentioned Route Distinguisher value in ospf protocol networking for uniquely indicating a routing device, each routing The Route Distinguisher value of equipment cannot be identical, such as: the RouterID of routing device A is 3.3.3.3, routing device B RouterID is 2.2.2.2, the RouterID of routing device C is 1.1.1.1.
In some scenes, user is it is only necessary to establish ospf neighbor relationship between above-mentioned routing device A, B, without road By establishing OSPF between equipment A, C, between routing device B, C.Specifically, routing device A sends first in above-mentioned radio network Message, the first message here refer to the HELLO message of ospf protocol, and above-mentioned HELLO message namely above-mentioned first message are at least The relevant information of ospf neighbor relationship is established including routing device A and the standby equipment.
Specifically, understand for aspect, briefly describe the process that lower ospf protocol establishes ospf neighbor relationship: in initial situation Under, after routing device A, B enable ospf protocol on respective equipment corresponding interface respectively, routing device A can start in correspondence Ospf interface gets on to send out the HELLO message of multicast, it is therefore an objective to find ospf neighbor.In above-mentioned HELLO message, there is a active Neighbor field, for storing the neighbours that routing device A has found on above-mentioned ospf interface, certainly, under initial situation, this It is not include any active neighbours in HELLO message, does not also just have active neighbor field, because of routing device A Who does not find.
When routing device B receives the HELLO message that neighbours' routing device A is sent, above-mentioned HELLO on some ospf interface Without carrying active neighbor inside message, routing device B records routing in the ospf interface data structure of oneself The RouterID of equipment A, and the neighbor state of routing device A is considered as init original state, then by routing device A's RouterID is stored in the active neighbor field of oneself HELLO message to be sent and sends, and routes in this way Equipment A just will receive the HELLO message of above-mentioned routing device B, and find oneself in above-mentioned HELLO message RouterID, i.e. 3.3.3.3, while routing device A obtains the RouterID of routing device B in above-mentioned HELLO message, That is 2.2.2.2, then routing device A will be considered that the foundation for having been completed bilateral relation with routing device B, therefore routing device The neighbor state of routing device B can be set to two-way on equipment of itself by A.At the same time, routing device A also will continue to send out Send HELLO message, and the RouterID of routing device B be placed in HELLO message, and routing device B receive it is above-mentioned HELLO message and the RouterID for having seen oneself, i.e. after 2.2.2.2, routing device B also can be on equipment of itself, by road Two-way is set to by the state of equipment A.
Just reach first stable state namely routing device A, B based on above process OSPF all to recognize from respective angle Two-way state is reached for other side.Above-mentioned HELLO message is all based on what multicast was sent, the lattice of above-mentioned HELLO message Formula and interaction detailed process, please refer to the realization of ospf neighbor discovery phase, specifically repeat no more.
After above-mentioned ospf neighbor discovery phase namely after routing device A, B establish ospf neighbor relationship, routing device A It is compared with routing device B based on the size of respective RouterID, for determining the DBD in the subsequent ospf protocol stage The main initiation of (Link State Database Description Packet, link state database describe message) message Side, above-mentioned main initiator are used to determine the sequence number of above-mentioned DBD message, and above-mentioned main initiator namely main equipment, routing device A Opposite equip. corresponding with above-mentioned main initiator be from initiator namely it is above-mentioned from initiator be standby equipment.Such as: routing is set Standby B, the RouterID of routing device B are RouterID, that is, 3.3.3.3 that 2.2.2.2 is less than routing device A, then routing device A It is standby equipment for main equipment, routing device B.In another optional embodiment, can also be come with user setting specified circuit by The main and standby relation of equipment A, routing device B.
Above-mentioned first message is in addition to including that above-mentioned main equipment (routing device A) and above-mentioned standby equipment (routing device B) are established It at least further include the corresponding requested node multicast address of above-mentioned standby equipment, above-mentioned master outside the relevant information of ospf neighbor relationship The network address and link layer address of equipment, type of message, above-mentioned standby equipment respective links layer address inquiry.Specifically, such as: The network address of above-mentioned main equipment refers to the address IPv6 of routing device A;The link layer address of above-mentioned main equipment refers to that routing is set The link layer address of standby A, above-mentioned link layer address are after system automatically configures namely routing device opens IPv6 agreement, just Can an above-mentioned link layer address automatically be configured for each interface of routing device;The corresponding requested node of above-mentioned standby equipment Multicast address just refers to requested IPv6 node namely the corresponding multicast address of routing device B, as target using multicast address The IPv6 multicast message of location will be sent to routing device B.It please notes that above-mentioned multicast and multicast is identical concept, only due to There are different form statements for translation and English;Above-mentioned type of message is request message for defining above-mentioned first message, such as: on Stating type of message can be set to 135;Above-mentioned standby equipment respective links layer address inquiry, being used to indicate routing device A will inquire Routing device B respective links layer address inquiry.
Step 104 obtains the second message, is based on second message, obtains the network address and link of the standby equipment Layer address, wherein second message is the response that the standby equipment is directed to first message.
Specifically, continue to illustrate with the exemplary process of above-mentioned steps, routing device B receives above-mentioned the first of routing device A After message, send and respond to routing device A, above-mentioned response is above-mentioned second message, the specific format of above-mentioned second message with The format of above-mentioned first message is similar, builds in addition to including above-mentioned standby equipment (routing device B) with above-mentioned main equipment (routing device A) It at least further include the network address and link layer address of above-mentioned standby equipment outside the relevant information of vertical ospf neighbor relationship, such as: on The type of message for stating the second message can be set to 136, for distinguishing with above-mentioned first message, further include in above-mentioned second message The IPv6 network address and link layer address of routing device B, such as: routing device A obtains above-mentioned second message, based on above-mentioned the Two messages obtain the network address and link layer address of routing device B.
Step 106, network address and link layer address based on the standby equipment, creation orientation ospf neighbor table, wherein The orientation ospf neighbor table is handed over for the ospf protocol of the main equipment and the standby equipment after reaching two-way state The mutual stage.
Specifically, continue to illustrate with the exemplary process of above-mentioned steps, IPv6 network of the routing device A based on routing device B Address and link layer address, creation orientation ospf neighbor table, such as: above-mentioned ospf neighbor table refers to exemplified by table 1:
Table 1
As shown in table 1, IPv6_B is the IPv6 network address of equipment B, and LINK_B is the link layer address of equipment B, Interface1 is on routing device A for carrying out the interface of ospf protocol interaction with routing device B.Above-mentioned standby equipment similarly may be used To be based on the above process, above-mentioned standby equipment is created to the orientation ospf neighbor table of above-mentioned main equipment, is referred to exemplified by table 2:
Table 2
As shown in table 2, IPv6_A is the IPv6 network address of equipment A, and LINK_A is the link layer address of equipment A, Interface2 is on routing device B for carrying out the interface of ospf protocol interaction with routing device A.
Routing device A and road are then identified after routing device A, B create orientation ospf neighbor table based on the above process By equipment B in the two-way state for reaching ospf protocol, above-mentioned two-way state be ospf protocol interaction next stage before Stable state.By sending HELLO message namely the first message in multicast, and NDP friendship is carried on above-mentioned first message Mutual message may be implemented be included in routing device A, B, C radio network, and orientation establishes the neighborhood of routing device A, B, from Without between routing device A, C, ospf neighbor relationship is established between routing device B, C, without routing device A, B, C open NDP agreement reduces routing device power consumption and greatly improves routing device performance, while avoiding and closing to without establishing ospf neighbor The interference of the routing device of system.
The stage is interacted with above-mentioned standby ospf protocol of the equipment after reaching two-way state in above-mentioned main equipment, by upper Main equipment is stated, i.e. the biggish routing device A of RouterID determines the DBD message in the subsequent ospf protocol stage as main initiator Sequence number is initiated the subsequent ospf protocol stage, detailed process, is referred to existing ospf protocol and is realized, the application repeats no more.
Optionally, in a kind of embodiment shown, above-mentioned main equipment is based on after above-mentioned steps, if above-mentioned standby equipment Link layer address send change, then above-mentioned main equipment is once updated the process of above-mentioned orientation ospf neighbor table, such as Fig. 2 institute Example executes following steps:
If step 202, the third message for receiving the standby equipment, obtain the link layer address of the third message, In, the third message is the notice message that standby equipment itself link layer address changes.
Specifically, continue to illustrate with the exemplary process of above-mentioned steps, if routing device A receives the third report of routing device B Text, wherein above-mentioned third message is the notice message that standby equipment itself link layer address changes, such as: routing device B's Link layer address is changed to LINK_B1 by LINK_B as described in Figure 1, then routing device B can send third message, wherein on State the network address IPv6_B and the link layer address LINK_B1 after change of third message meeting agreement routing device B.
Step 204, the update standby equipment are the third report in the orientation ospf neighbor table respective links layer address The link layer address of text.
Specifically, continue to illustrate with the exemplary process of above-mentioned steps, routing device A updates routing device B correspondence and routing Corresponding network address ip v6_B respective links layer address is updated to by the above-mentioned orientation ospf neighbor table on equipment A by LINK_B The link layer address LINK_B1 of the third message, above-mentioned ospf neighbor table refer to exemplified by table 3:
The address IPv6 Link layer address Ospf interface
IPv6_B LINK_B1 interface1
Table 3
So far, process shown in FIG. 1 is completed, the above method can be seen that by process shown in FIG. 1 and be applied to support On the routing device of ospf protocol, the routing device is located in radio network, and the radio network includes multiple routing devices, The routing device can be configured to main equipment or standby equipment, wherein the main equipment refers to ospf neighbor relationship to be established The relatively large network equipment of Route Distinguisher value of middle side, the standby equipment refer to the OSPF corresponding with the main equipment The relatively small network equipment of Route Distinguisher value of the other side in neighborhood is based on when the routing device is main equipment Multicast sends the first message in the radio network, wherein first message is set including at least the main equipment with described The standby relevant information for establishing ospf neighbor relationship;The second message is obtained, second message is based on, obtains the net of the standby equipment Network address and link layer address, wherein second message is the response that the standby equipment is directed to first message;Based on institute State the network address and link layer address of standby equipment, creation orientation ospf neighbor table, wherein the orientation ospf neighbor table is used for The main equipment interacts the stage with the standby ospf protocol of the equipment after reaching two-way state.
Using the embodiment of the present application, realize comprising the wide of multiple routing devices for supporting OSPFv3 and IPv6 agreement It broadcasts in net, message is expanded by customized OSPFv3, open NDP without routing device, can also realize that neighbours have found, so that two Orientation ospf neighbor table is established between routing device, reduce routing device power consumption and greatly improves routing device performance, is kept away simultaneously The interference to the routing device without establishing ospf neighbor relationship is exempted from.
Fig. 3 is a kind of block diagram of the device for foundation orientation ospf neighbor relationship that one exemplary embodiment of the application provides. It is corresponding with above method embodiment, present invention also provides it is a kind of establish orientation ospf neighbor relationship device embodiment, Described device is applied on the routing device for supporting ospf protocol, and the routing device is located in radio network, the radio network packet Containing multiple routing devices, the routing device can be configured to main equipment or standby equipment, wherein the main equipment refers to The relatively large network equipment of Route Distinguisher value of side in ospf neighbor relationship to be established, the standby equipment refer to and the master The relatively small network equipment of Route Distinguisher value of the other side in the corresponding ospf neighbor relationship of equipment, when the routing is set When for being main equipment, please referring to a kind of device 30 of foundation orientation ospf neighbor relationship, described device exemplified by Fig. 3 includes:
Transceiver module 301 sends the first message, wherein first message for being based on multicast in the radio network The relevant information of ospf neighbor relationship is established including at least the main equipment and the standby equipment;
The transceiver module 301 further, obtains the second message, is based on second message, obtain the standby equipment Network address and link layer address, wherein second message is the response that the standby equipment is directed to first message;
Creation module 302, for network address and link layer address based on the standby equipment, creation orientation ospf neighbor Table, wherein the orientation ospf neighbor table is for the main equipment and the standby equipment after reaching two-way state Ospf protocol interacts the stage.
In the present embodiment, the routing device supports IPv6 agreement, the ospf protocol version that the routing device is supported For V3.
In the present embodiment, first message at least further includes the standby equipment corresponding requested node multicast Location, the network address of the main equipment and link layer address, type of message, the standby equipment respective links layer address inquiry.
In the present embodiment, further includes:
The transceiver module 301 further, if receiving the third message of the standby equipment, obtains the third message Link layer address, wherein the third message is the notice message that standby equipment itself link layer address changes;
The creation module 302 further, updates the standby equipment in the orientation ospf neighbor table respective links layer Location is the link layer address of the third message.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
System, device, module or the module that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
The embodiment of the device of the foundation orientation ospf neighbor relationship of the application can apply electronic equipment shown in Fig. 4 On.Installation practice can also be realized by software realization by way of hardware or software and hardware combining.With software reality It is that machine readable storage is situated between by the processor of electronic equipment where it as the device on a logical meaning for existing Corresponding computer program instructions run the machine-executable instruction of formation in matter after reading.For hardware view, such as Fig. 4 institute Show, is a kind of hardware structure diagram of electronic equipment where the device of the foundation orientation ospf neighbor relationship of the application, in addition to Fig. 4 institute Except the processor, communication interface, bus and the machine readable storage medium that show, the electronic equipment in embodiment where device is logical Often according to the actual functional capability of the electronic equipment, it can also include other hardware, this is repeated no more.
Accordingly, it the embodiment of the present application also provides the hardware configuration of a kind of electronic equipment of Fig. 3 shown device, refers to Fig. 4, Fig. 4 are the hardware structural diagram of a kind of electronic equipment provided by the embodiments of the present application.The equipment includes: communication interface 401, processor 402, machine readable storage medium 403 and bus 404;Wherein, communication interface 401, processor 402, machine can It reads storage medium 403 and mutual communication is completed by bus 404.Wherein, communication interface 401, for carrying out network communication.Place Reason device 402 can be a central processing unit (CPU), and processor 402 can execute to be stored in machine readable storage medium 403 Machine readable instructions, to realize process as described above.
Machine readable storage medium 403 referred to herein can be any electronics, magnetism, optics or other physical stores Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that easily Lose memory, nonvolatile memory or similar storage medium.Specifically, machine readable storage medium 403 can be RAM (Radom Access Memory, random access memory), flash memory, memory driver (such as hard disk drive), solid state hard disk, Any kind of storage dish (such as CD, DVD) perhaps similar storage medium or their combination.
So far, hardware configuration description shown in Fig. 4 is completed.
In addition, the embodiment of the present application also provides a kind of machine readable storage medium including machine-executable instruction, example Such as the machine-readable readable storage medium storing program for executing 403 in Fig. 4, the machine-executable instruction can be by data processing equipment Device 402 is managed to execute to realize data processing method described above.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of method for establishing orientation ospf neighbor relationship, which is characterized in that the method is applied to support ospf protocol On routing device, the routing device is located in radio network, and the radio network includes multiple routing devices, and the routing is set It is standby to can be configured to main equipment or standby equipment, wherein the main equipment refers to the road of side in ospf neighbor relationship to be established By the relatively large network equipment of ident value, the standby equipment refers in the ospf neighbor relationship corresponding with the main equipment The relatively small network equipment of Route Distinguisher value of the other side, when the routing device is main equipment, which comprises
Based on multicast, the first message is sent in the radio network, wherein first message include at least the main equipment with The standby equipment establishes the relevant information of ospf neighbor relationship;
The second message is obtained, second message is based on, obtains the network address and link layer address of the standby equipment, wherein Second message is the response that the standby equipment is directed to first message;
Based on the network address and link layer address of the standby equipment, creation orientation ospf neighbor table, wherein the orientation OSPF Neighbor table interacts the stage with the standby ospf protocol of the equipment after reaching two-way state for the main equipment.
2. the routing is set the method according to claim 1, wherein the routing device supports IPv6 agreement The standby ospf protocol version supported is V3.
3. according to the method described in claim 2, it is characterized in that, first message at least further includes that the standby equipment is corresponding Requested node multicast address, the main equipment network address and link layer address, type of message, the standby equipment it is corresponding Link layer address inquiry.
4. according to the method described in claim 3, it is characterized by further comprising:
If receiving the third message of the standby equipment, the link layer address of the third message is obtained, wherein the third report Text is the notice message that standby equipment itself link layer address changes;
Update the standby equipment in the link layer that the orientation ospf neighbor table respective links layer address is the third message Location.
5. a kind of device for establishing orientation ospf neighbor relationship, which is characterized in that described device is applied to support ospf protocol On routing device, the routing device is located in radio network, and the radio network includes multiple routing devices, and the routing is set It is standby to can be configured to main equipment or standby equipment, wherein the main equipment refers to the road of side in ospf neighbor relationship to be established By the relatively large network equipment of ident value, the standby equipment refers in the ospf neighbor relationship corresponding with the main equipment The relatively small network equipment of Route Distinguisher value of the other side, when the routing device is main equipment, described device includes:
Transceiver module sends the first message, wherein first message at least wraps for being based on multicast in the radio network It includes the main equipment and the standby equipment establishes the relevant information of ospf neighbor relationship;
The transceiver module is further, obtains the second message, is based on second message, obtains the network address of the standby equipment And link layer address, wherein second message is the response that the standby equipment is directed to first message;
Creation module, for network address and link layer address based on the standby equipment, creation orients ospf neighbor table, In, the orientation ospf neighbor table is assisted for the OSPF of the main equipment and the standby equipment after reaching two-way state Discuss the interaction stage.
6. device according to claim 5, which is characterized in that the routing device supports IPv6 agreement, and the routing is set The standby ospf protocol version supported is V3.
7. device according to claim 6, which is characterized in that first message at least further includes that the standby equipment is corresponding Requested node multicast address, the main equipment network address and link layer address, type of message, the standby equipment it is corresponding Link layer address inquiry.
8. device according to claim 7, which is characterized in that further include:
The transceiver module is further, if receiving the third message of the standby equipment, obtains the link layer of the third message Address, wherein the third message is the notice message that standby equipment itself link layer address changes;
The creation module is further, and it is described for updating the standby equipment in the orientation ospf neighbor table respective links layer address The link layer address of third message.
9. a kind of electronic equipment, which is characterized in that including communication interface, processor, memory and bus, the communication interface, It is connected with each other between the processor and the memory by bus;
Machine readable instructions are stored in the memory, the processor is executed by calling the machine readable instructions as weighed Benefit requires 1 to 4 described in any item methods.
10. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with machine readable finger It enables, the machine readable instructions realize the described in any item methods of Claims 1-4 when being called and being executed by processor.
CN201910130626.7A 2019-02-21 2019-02-21 Method, device and electronic equipment for establishing oriented OSPF (open shortest Path first) neighbor relation Active CN109873764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910130626.7A CN109873764B (en) 2019-02-21 2019-02-21 Method, device and electronic equipment for establishing oriented OSPF (open shortest Path first) neighbor relation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910130626.7A CN109873764B (en) 2019-02-21 2019-02-21 Method, device and electronic equipment for establishing oriented OSPF (open shortest Path first) neighbor relation

Publications (2)

Publication Number Publication Date
CN109873764A true CN109873764A (en) 2019-06-11
CN109873764B CN109873764B (en) 2021-12-24

Family

ID=66919072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910130626.7A Active CN109873764B (en) 2019-02-21 2019-02-21 Method, device and electronic equipment for establishing oriented OSPF (open shortest Path first) neighbor relation

Country Status (1)

Country Link
CN (1) CN109873764B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110233713A (en) * 2019-06-26 2019-09-13 广东九博科技股份有限公司 A kind of multi link communications method and system based on LLDP message
CN114465935A (en) * 2022-01-11 2022-05-10 深圳绿米联创科技有限公司 Method for generating network topological graph for network system and related equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119304A (en) * 2007-08-24 2008-02-06 华为技术有限公司 Neighbourhood establishing method and router
CN101170483A (en) * 2007-11-13 2008-04-30 中兴通讯股份有限公司 A method for stacking route switching device
CN101771615A (en) * 2010-01-26 2010-07-07 华为技术有限公司 Neighborhood relationship building method, communication equipment and system thereof
CN102318287A (en) * 2011-06-30 2012-01-11 华为技术有限公司 Methods and device to establish router neighbors
EP2571208A1 (en) * 2011-09-16 2013-03-20 Telefonaktiebolaget L M Ericsson (PUBL) Open shortest path first (OSPF) nonstop routing (NSR) with link derivation
CN103004150A (en) * 2012-06-27 2013-03-27 华为技术有限公司 Shortest path first neighbor establishing method, node and system thereof
CN103441983A (en) * 2013-07-11 2013-12-11 盛科网络(苏州)有限公司 Information protection method and device based on link layer discovery protocol
CN103825760A (en) * 2014-02-25 2014-05-28 杭州华三通信技术有限公司 Method and device for setting up neighborhood on basis of OSPF protocol
CN105306362A (en) * 2015-09-18 2016-02-03 中国科学院计算技术研究所 Internet protocol version 6 (IPv6) based open shortest path first (OSPF) network routing information passive collection method and system
US20170250875A1 (en) * 2016-02-29 2017-08-31 Wesley Howard Jensen Machine-learning optimization for computing networks
CN108737273A (en) * 2018-05-10 2018-11-02 新华三技术有限公司 A kind of message processing method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119304A (en) * 2007-08-24 2008-02-06 华为技术有限公司 Neighbourhood establishing method and router
CN101170483A (en) * 2007-11-13 2008-04-30 中兴通讯股份有限公司 A method for stacking route switching device
CN101771615A (en) * 2010-01-26 2010-07-07 华为技术有限公司 Neighborhood relationship building method, communication equipment and system thereof
CN102318287A (en) * 2011-06-30 2012-01-11 华为技术有限公司 Methods and device to establish router neighbors
EP2571208A1 (en) * 2011-09-16 2013-03-20 Telefonaktiebolaget L M Ericsson (PUBL) Open shortest path first (OSPF) nonstop routing (NSR) with link derivation
CN103004150A (en) * 2012-06-27 2013-03-27 华为技术有限公司 Shortest path first neighbor establishing method, node and system thereof
CN103441983A (en) * 2013-07-11 2013-12-11 盛科网络(苏州)有限公司 Information protection method and device based on link layer discovery protocol
CN103825760A (en) * 2014-02-25 2014-05-28 杭州华三通信技术有限公司 Method and device for setting up neighborhood on basis of OSPF protocol
CN105306362A (en) * 2015-09-18 2016-02-03 中国科学院计算技术研究所 Internet protocol version 6 (IPv6) based open shortest path first (OSPF) network routing information passive collection method and system
US20170250875A1 (en) * 2016-02-29 2017-08-31 Wesley Howard Jensen Machine-learning optimization for computing networks
CN108737273A (en) * 2018-05-10 2018-11-02 新华三技术有限公司 A kind of message processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110233713A (en) * 2019-06-26 2019-09-13 广东九博科技股份有限公司 A kind of multi link communications method and system based on LLDP message
CN110233713B (en) * 2019-06-26 2022-08-09 广东九博科技股份有限公司 Multi-link communication method and system based on LLDP message
CN114465935A (en) * 2022-01-11 2022-05-10 深圳绿米联创科技有限公司 Method for generating network topological graph for network system and related equipment

Also Published As

Publication number Publication date
CN109873764B (en) 2021-12-24

Similar Documents

Publication Publication Date Title
US9749214B2 (en) Software defined networking (SDN) specific topology information discovery
US9537793B2 (en) Ensuring any-to-any reachability with opportunistic layer 3 forwarding in massive scale data center environments
CN106470158B (en) Message forwarding method and device
US10616175B2 (en) Forwarding information to forward data to proxy devices
US20140211800A1 (en) Accelerated MAC address resolution for IPv6 traffic with IS-IS Protocol
CN108718278B (en) Message transmission method and device
US10404598B1 (en) Managing next hop groups in routers
JP2015179510A (en) Finding service in service-oriented architecture (soa) network
EP4046351B1 (en) Rtps discovery in kubernetes
US11863454B2 (en) Systems and methods for scalable validation of multiple paths in a network using segment routing
US20180198710A1 (en) Dynamic forward information base prefix optimization
US20100027555A1 (en) Method for processing link state advertisement and routing device
US10917334B1 (en) Network route expansion
CN109873764A (en) Establish method, apparatus, the electronic equipment of orientation ospf neighbor relationship
CN104363084A (en) Link status synchronization method and device
US20220116306A1 (en) Routing in fat tree networks using negative disaggregation advertisements
CN110391919A (en) Flux of multicast retransmission method, device, electronic equipment
US10419282B1 (en) Self-configuring network devices
US10680900B2 (en) BGP logical topology generation method, and device
US20190334814A1 (en) Path establishment method and device, and network node
CN110071872B (en) Service message forwarding method and device, and electronic device
US20130230053A1 (en) System and Method for Facilitating Communication
CN110401594B (en) Message forwarding method and device, electronic equipment and machine-readable storage medium
JP2016178530A (en) Communication system, communication terminal, communication method, and program
CN106656810B (en) MAC address learning method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant