CN104320277B - Distribute the method and device of Router Distinguisher - Google Patents
Distribute the method and device of Router Distinguisher Download PDFInfo
- Publication number
- CN104320277B CN104320277B CN201410598617.8A CN201410598617A CN104320277B CN 104320277 B CN104320277 B CN 104320277B CN 201410598617 A CN201410598617 A CN 201410598617A CN 104320277 B CN104320277 B CN 104320277B
- Authority
- CN
- China
- Prior art keywords
- interface
- routing
- router distinguisher
- router
- address
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a kind of method and device of distribution Router Distinguisher, is applied to routing device, this method includes:Select an interface as target interface from the interface of routing device;The Internet protocol IP address of target interface is distributed into routing daemon as Router Distinguisher.The automatic distribution that Router Distinguisher is realized by the application, simplifies deployment.
Description
Technical field
The present invention relates to network communication technology fields, more particularly to the method and device of distribution Router Distinguisher.
Background technology
Routing device is the important node equipment in network, and best road is provided for data forwarding by running Routing Protocol
Diameter.OSPF (Open Shortest Path First, ospf) is a kind of typical link state routing
Agreement, the routing device for running the agreement distinguish the identity of link-state information promoter by Router Distinguisher.In same net
In network, Router Distinguisher does not allow identical, otherwise can not determine the position of link-state information promoter.
When running multiple ospf process in a routing device, need to distribute independent routing for each ospf process
Device identifies, and the whole network is unique, to distinguish the ospf process of transmission link status information.Currently, generally using the side of manual configuration
Formula is that ospf process distributes Router Distinguisher, although this method can ensure the uniqueness of Router Distinguisher, heavy workload, no
It is easy to operation.
Invention content
In view of this, this application provides a kind of method of distribution Router Distinguisher, it is applied to routing device, this method packet
It includes:
Select an interface as target interface from the interface of routing device;
The Internet protocol IP address of target interface is distributed into routing daemon as Router Distinguisher.
Present invention also provides a kind of devices of distribution Router Distinguisher, are applied to routing device, which includes:
Interface selecting unit, for selecting an interface as target interface from the interface of routing device;
Identify allocation unit, for distributed to using the Internet protocol IP address of target interface as Router Distinguisher route into
Journey.
The application selects an interface from the interface of routing device, and using the IP address of the interface as Router Distinguisher
Corresponding routing daemon is distributed to, the automatic distribution of Router Distinguisher may be implemented, simplifies deployment.
Description of the drawings
Fig. 1 is schematic network structure in the application one embodiment;
Fig. 2 is the process chart that Router Distinguisher method is distributed in the application one embodiment;
Fig. 3 is the process chart that Router Distinguisher method is distributed in the application another embodiment;
Fig. 4 is the underlying hardware schematic diagram that Router Distinguisher device is distributed in a kind of embodiment of the application;
Fig. 5 is the structural schematic diagram that Router Distinguisher device is distributed in a kind of embodiment of the application.
Specific implementation mode
To make the object, technical solution and advantage of the application be more clearly understood, referring to the drawings to application scheme
It is described in further detail.
The embodiment of the present application is described as the process of ospf process distribution Router Distinguisher, but this Shen by taking ospf protocol as an example
Routing protocol type is not limited please.
Fig. 1 show a kind of schematic network structure.Two ospf process are separately operable in router 1 and router 2.
Each ospf process identifies link-state information promoter's when carrying out link-state information exchange, by Router Distinguisher
Identity, therefore, in consolidated network, the Router Distinguisher of each ospf process cannot repeat.
In prior art, by manual configuration, ensure to distribute unique Router Distinguisher for each ospf process.
Such as:The Router Distinguisher of process 1 is 1.1.1.1 in router 1;The Router Distinguisher of process 2 is 2.2.2.2 in router 1;
The Router Distinguisher of process 1 is 3.3.3.3 in router 2;The Router Distinguisher of process 2 is 4.4.4.4 in router 2.But
When, there are when a large amount of ospf process, the workload of manual configuration increases, and time-consuming, and is easy error in network.
In view of the above-mentioned problems, the embodiment of the present application proposes a kind of method of distribution Router Distinguisher, from connecing for routing device
An interface is selected in mouthful, and distributes to corresponding routing daemon using the IP address of the interface as Router Distinguisher.
Referring to Fig. 2, one embodiment flow chart of Router Distinguisher method is distributed for the application, the embodiment is to distributing road
The process identified by device is described.
Step 210, select an interface as target interface from the interface of routing device.
When being configured to routing device, multiple ospf process can be configured in a routing device, and will routing
Corresponding ospf process is added in the interface of equipment according to actual needs.Before distributing Router Distinguisher to ospf process, routing is set
Standby interface can be taken by DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol)
Business device obtains IP address automatically, and the IP address the whole network is unique.
When distributing Router Distinguisher to ospf process, first determine whether the ospf process has been configured with router mark
Know, the mode that manual configuration usually may be used is that ospf process configures Router Distinguisher.If had by hand in ospf process
The Router Distinguisher of configuration then preferentially selects the Router Distinguisher of manual configuration.
If the not no Router Distinguisher of manual configuration in ospf process, further judges whether ospf process is provided with
Whether Router Distinguisher associated interface is provided with being associated with for Router Distinguisher and a certain interface of routing device that is, in ospf process
Relationship, the Router Distinguisher associated interface can be the interfaces in this ospf process, can also be connecing in non-ospf process
Mouthful.According to judging result, a point following two situations are handled:
When ospf process be provided with Router Distinguisher associated interface when, select specified Router Distinguisher associated interface as
Target interface.Such as:There are interface 1 and interface 2 in the process 1 of router 1, then can be the router mark of process 1 with specified interface 1
Know associated interface, can also specified interface 2 be process 1 Router Distinguisher associated interface.It should be noted that each OSPF
The Router Distinguisher associated interface being arranged in process cannot be identical, to prevent different processes from getting identical router mark
Know.
When Router Distinguisher associated interface is not arranged for ospf process, work(can be automatically selected by the way that Router Distinguisher is arranged
Can, select the interface of first operation in ospf process as target interface.Such as:There is 3 He of interface in the process 2 of router 1
Interface 4, when process 2 is not provided with Router Distinguisher associated interface, then process 2 can automatically select an interface as target
Interface, the interface that the principle selected runs for first in process 2, it is assumed that interface 3 is the interface of first operation, then interface 3
The target interface selected for process 2.
Step 220, the Internet protocol IP address of target interface is distributed into routing daemon as Router Distinguisher.
After selected target interface, corresponding road can be distributed to using the IP address of the target interface as Router Distinguisher
By process.The IP address of the interface of known routing device is obtained by DHCP from abovementioned steps 210, which protects
The uniqueness of interface IP address has been demonstrate,proved, therefore, has been distributed the IP address of some interface in routing device as Router Distinguisher
To corresponding routing daemon, it is ensured that Router Distinguisher the whole network of each process is unique.
Since the interface IP address of routing device uses DHCP acquisition modes, after routing device power down or failure are restarted,
Again to Dynamic Host Configuration Protocol server IP address requesting, therefore, the IP address of interface may change.As the IP of selected target interface
When address changes, the Router Distinguisher of the IP address update routing daemon of the target interface after variation can be used.
The process of above-mentioned distribution Router Distinguisher is allocated according to the interface message of routing device, if in routing daemon
The function that Router Distinguisher is configured according to interface is not set, then can be whether to be configured with global router mark in query routing equipment
Know, which is before system operation for the unique mark of each routing device distribution.
When being configured with global Router Distinguisher in routing device, for there are the routing device of multiple ospf process,
The Router Distinguisher of each ospf process is the overall situation Router Distinguisher.Although as it can be seen that can according to global Router Distinguisher
Route Distinguisher is distributed to routing daemon in routing device to realize, but can not ensure the uniqueness of Route Distinguisher.
When global Router Distinguisher is not configured in routing device, select IP address in routing device total interface maximum
Router Distinguisher of the IP address as ospf process, it is preferential to select in loopback interface the maximum IP address of IP address as router
Mark.When the method for salary distribution there are the routing device of multiple ospf process for coming, the feelings that Router Distinguisher repeats are equally existed
Condition.
Now by taking the process 1 of router 1 shown in Fig. 1 as an example, it is described as the process of the course allocation Router Distinguisher, specifically such as
Under:
Step 301, process is chosen.
The process 1 in router 1 is chosen, Router Distinguisher is distributed for process 1.
Step 302, if be configured with Router Distinguisher.
Judge in process 1 whether manual configuration Router Distinguisher if being pre-configured with Router Distinguisher executes step
303;If Router Distinguisher is not configured, step 304 is executed.
Step 303, using configured Router Distinguisher as the Router Distinguisher of process.
It is assumed that preconfigured Router Distinguisher is 1.1.1.1, then when process 1 starts, using 1.1.1.1 as process 1
Router Distinguisher.
Step 304, if be configured with Router Distinguisher associated interface.
Judge whether be configured with Router Distinguisher associated interface in process 1, if being configured with Router Distinguisher associated interface, holds
Row step 305;If Router Distinguisher associated interface is not configured, step 306 is executed.
Step 305, using the IP address of Router Distinguisher associated interface as the Router Distinguisher of process.
It is assumed that default Router Distinguisher associated interface is interface 1, and interface 1 is by the IP address that DHCP is got
220.208.1.10 then using 220.208.1.10 as the Router Distinguisher of process 1.
Step 306, if be configured with and distribute Router Distinguisher by interface operation order.
Judge whether to be configured in process 1 and distribute Router Distinguisher by interface operation order, is run by interface if being configured with
Order-assigned Router Distinguisher executes step 307;Router Distinguisher is distributed by interface operation order if being not configured, executes step
308。
Step 307, using the IP address of first runnable interface as the Router Distinguisher of process.
It is assumed that in the interface 1 and interface 2 of process 1, interface 2 is the interface of first operation, and interface 2 is obtained by DHCP
The IP address got is 220.208.1.20, then using 220.208.1.20 as the Router Distinguisher of process 1.
Step 308, if be configured with global Router Distinguisher.
When any configuration in relation to Router Distinguisher is not done in process 1, judge in the router 1 where process 1 whether
It is configured with global Router Distinguisher, if being configured with global Router Distinguisher, executes step 309;If global router mark is not configured
Know, executes step 310.
Step 309, using global Router Distinguisher as the Router Distinguisher of process.
It is assumed that the global Router Distinguisher for pre-setting router 1 is 2.2.2.2, then using 2.2.2.2 as process 1
Router Distinguisher.
Step 310, using maximum interface IP address as the Router Distinguisher of process.
As previously described, it is assumed that the IP address of interface 1 is 220.208.1.10, and the IP address of interface 2 is 220.208.1.20,
The IP address of interface 2 is more than the IP address of interface 1, then using 220.208.1.20 as the Router Distinguisher of process 1.
Corresponding with the aforementioned distribution embodiment of Router Distinguisher method, the application also provides distribution Router Distinguisher device
Embodiment.
The embodiment that the application distributes Router Distinguisher device can be applied on routing device.Device embodiment can lead to
Software realization is crossed, can also be realized by way of hardware or software and hardware combining.For implemented in software, as a logic
Device in meaning is to be read corresponding computer program instructions in nonvolatile memory by the CPU of equipment where it
It is formed to operation in memory.For hardware view, set as shown in figure 4, being distributed where Router Distinguisher device for the application
A kind of standby hardware structure diagram, other than CPU shown in Fig. 4, memory and nonvolatile memory, device institute in embodiment
Equipment usually can also include other hardware.
Referring to FIG. 5, for the structural schematic diagram of the distribution Router Distinguisher device in the application one embodiment.The distribution
Router Distinguisher device includes:Selecting unit 501 and allocation unit 502, wherein:
Selecting unit 501, for selecting an interface as target interface from the interface of routing device;
Allocation unit 502, for distributed to using the Internet protocol IP address of target interface as Router Distinguisher route into
Journey.
Selecting unit 501 can specifically include:Interface judgment module and interface selecting module, wherein:
Interface judgment module, for judging whether routing daemon is arranged Router Distinguisher associated interface;
Interface selecting module, for when Router Distinguisher associated interface is arranged in routing daemon, Router Distinguisher being selected to close
Connecting port is as target interface.
Interface selecting module is additionally operable to when Router Distinguisher associated interface is not arranged for routing daemon, will be in routing daemon
The interface of first operation is as target interface.
Router Distinguisher device is distributed, can also include:
Acquiring unit 503, for selecting an interface as target interface from the interface of routing device in selecting unit
Before, the IP address of the interface of routing device is obtained from dynamic host configuration protocol Dynamic Host Configuration Protocol server.
Router Distinguisher device is distributed, can also include:
Acquiring unit 503 is additionally operable to from the IP address after the variation that Dynamic Host Configuration Protocol server obtains target interface;
Allocation unit 502 is additionally operable to the IP address after the variation using target interface and is reassigned to as Router Distinguisher
Routing daemon.
The embodiment of distribution Router Distinguisher device shown in above-mentioned Fig. 5 can be applied in routing device.It is specific real
Existing process can be found in the explanation of preceding method embodiment, and details are not described herein.
As can be seen that the application selects one from the interface of routing device and connects from above method and the embodiment of device
Mouthful, and corresponding routing daemon is distributed to using the IP address of the interface as Router Distinguisher, Router Distinguisher oneself may be implemented
Dynamic distribution, simplifies deployment.
The foregoing is merely the preferred embodiments of the application, not limiting the application, all essences in the application
With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of the application protection god.
Claims (10)
1. a kind of method of distribution Router Distinguisher, be applied to routing device, routing device operation is at least one route into
Journey, which is characterized in that this method includes:
It is respectively that each routing daemon selects a corresponding target interface from the interface of the routing device, wherein every
One routing daemon corresponds to different target interfaces;
The Internet protocol IP address of target interface is distributed into corresponding routing daemon as Router Distinguisher.
2. the method as described in claim 1, which is characterized in that described is respectively each from the interface of the routing device
Routing daemon selects a corresponding target interface, including:
Judge whether the routing daemon is arranged Router Distinguisher associated interface;
When Router Distinguisher associated interface is arranged in the routing daemon, select the Router Distinguisher associated interface as target
Interface.
3. method as claimed in claim 2, which is characterized in that the method further includes:
When Router Distinguisher associated interface is not arranged for the routing daemon, by the interface of first operation in the routing daemon
As target interface.
4. the method as described in claim 1, which is characterized in that described is respectively each from the interface of the routing device
Before routing daemon selects a corresponding target interface, further include:
The IP address of the interface of the routing device is obtained from dynamic host configuration protocol Dynamic Host Configuration Protocol server.
5. the method as described in Claims 1-4 is any, which is characterized in that the method further includes:
IP address after the variation that dynamic host configuration protocol Dynamic Host Configuration Protocol server obtains the target interface;
It is reassigned to the routing daemon using the IP address after the variation of the target interface as the Router Distinguisher.
6. a kind of device of distribution Router Distinguisher, be applied to routing device, routing device operation is at least one route into
Journey, which is characterized in that the device includes:
Selecting unit, for being respectively that each routing daemon selects a corresponding target from the interface of the routing device
Interface, wherein each routing daemon corresponds to different target interfaces;
Allocation unit, for using the Internet protocol IP address of target interface as Router Distinguisher distribute to it is corresponding route into
Journey.
7. device as claimed in claim 6, which is characterized in that the selecting unit, including:
Interface judgment module, for judging whether the routing daemon is arranged Router Distinguisher associated interface;
Interface selecting module, for when Router Distinguisher associated interface is arranged in the routing daemon, selecting the router mark
Associated interface is known as target interface.
8. device as claimed in claim 7, which is characterized in that the selecting unit further includes:
The interface selecting module is additionally operable to when Router Distinguisher associated interface is not arranged for the routing daemon, by the road
By the interface of first operation in process as target interface.
9. device as claimed in claim 6, which is characterized in that described device further includes:
Acquiring unit, for being respectively the selection of each routing daemon from the interface of the routing device in the selecting unit
Before one corresponding target interface, the IP of the interface of the routing device is obtained from dynamic host configuration protocol Dynamic Host Configuration Protocol server
Address.
10. the device as described in claim 6 to 9 is any, which is characterized in that described device further includes:
Acquiring unit, for from the IP after the variation that dynamic host configuration protocol Dynamic Host Configuration Protocol server obtains the target interface
Location;
The allocation unit is additionally operable to again divide the IP address after the variation of the target interface as the Router Distinguisher
Routing daemon described in dispensing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410598617.8A CN104320277B (en) | 2014-10-30 | 2014-10-30 | Distribute the method and device of Router Distinguisher |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410598617.8A CN104320277B (en) | 2014-10-30 | 2014-10-30 | Distribute the method and device of Router Distinguisher |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104320277A CN104320277A (en) | 2015-01-28 |
CN104320277B true CN104320277B (en) | 2018-09-04 |
Family
ID=52375452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410598617.8A Active CN104320277B (en) | 2014-10-30 | 2014-10-30 | Distribute the method and device of Router Distinguisher |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104320277B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599849A (en) * | 2008-06-06 | 2009-12-09 | 华为技术有限公司 | Notifying method, system and the network equipment that network identity changes |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350767B (en) * | 2007-07-19 | 2011-02-09 | 华为技术有限公司 | Method for transmitting parallel link packet as well as routing device |
KR101385749B1 (en) * | 2008-01-08 | 2014-04-17 | 삼성전자주식회사 | Router-ID setup system and control method in network for supporting more than at least |
CN102006202A (en) * | 2010-11-25 | 2011-04-06 | 杭州华三通信技术有限公司 | Router identification collision detection method and router |
-
2014
- 2014-10-30 CN CN201410598617.8A patent/CN104320277B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599849A (en) * | 2008-06-06 | 2009-12-09 | 华为技术有限公司 | Notifying method, system and the network equipment that network identity changes |
Also Published As
Publication number | Publication date |
---|---|
CN104320277A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9960991B2 (en) | Method, apparatus and system for determining service transmission path | |
US10581700B2 (en) | Service flow processing method, apparatus, and device | |
EP3367638A1 (en) | Load balancing method, device and system | |
CN103428306B (en) | Network element device loading method, equipment and system | |
CN104468368B (en) | Configure the method and device of bgp neighbor | |
EP3367612A1 (en) | Dial testing method, dial testing system, and compute node | |
US20160164750A1 (en) | Commissioning/decommissioning networks in orchestrated or software-defined computing environments | |
WO2019091088A1 (en) | Vxlan configuration method, device and system | |
CN107547665B (en) | Method, equipment and system for allocating DHCP (dynamic host configuration protocol) address | |
CN104812021B (en) | A kind of method and device of AP access AC | |
JP6378442B2 (en) | Method and apparatus for deploying services in a virtualized network | |
US20180205644A1 (en) | Communication processing method and apparatus | |
WO2018161795A1 (en) | Routing priority configuration method, device, and controller | |
CN103401954B (en) | The implementation method of virtual DHCP | |
CN105554176A (en) | Method and device for sending message and communication system | |
CN107517129B (en) | Method and device for configuring uplink interface of equipment based on OpenStack | |
EP4214911A1 (en) | Systems and methods for zero-touch provisioning of a switch in intermediate distribution frames and main distribution frames | |
CN108259295B (en) | MAC address synchronization method and device | |
US11381497B2 (en) | Path selection method and device | |
US20150263990A1 (en) | Network device, control method, and program | |
JP6467906B2 (en) | Information processing system, information processing method, information processing program, and information processing apparatus | |
EP3629559B1 (en) | Method for configuring forwarding table for user equipment and apparatus | |
US8855015B2 (en) | Techniques for generic pruning in a trill network | |
US10015133B2 (en) | Value-added service deployment method, network device, and value-added service device | |
CN105939262B (en) | Label distribution method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |