CN112152857B - Regional automatic networking method with backup server - Google Patents

Regional automatic networking method with backup server Download PDF

Info

Publication number
CN112152857B
CN112152857B CN202011029466.6A CN202011029466A CN112152857B CN 112152857 B CN112152857 B CN 112152857B CN 202011029466 A CN202011029466 A CN 202011029466A CN 112152857 B CN112152857 B CN 112152857B
Authority
CN
China
Prior art keywords
server
regional
area
node
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011029466.6A
Other languages
Chinese (zh)
Other versions
CN112152857A (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.)
Shenzhen Forward Industrial Co Ltd
Original Assignee
Shenzhen Forward Industrial 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 Shenzhen Forward Industrial Co Ltd filed Critical Shenzhen Forward Industrial Co Ltd
Priority to CN202011029466.6A priority Critical patent/CN112152857B/en
Publication of CN112152857A publication Critical patent/CN112152857A/en
Application granted granted Critical
Publication of CN112152857B publication Critical patent/CN112152857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Abstract

The invention discloses an area automatic networking method with backup servers, which provides the concept of the backup servers, when networking is started, two servers are selected in an area according to link state information, one server is an area server, the other server is a backup server, and the two servers are connected with other routers in a network and synchronously route; under normal conditions, the route synchronized by one of the servers is randomly selected for forwarding according to the routing rule of BGP, if the regional server fails at the moment, the forwarding can be immediately (or continuously) performed according to the route of the backup server, and meanwhile, the new regional server is selected. The method can ensure the stability of the automatic networking method to a certain extent.

Description

Regional automatic networking method with backup server
Technical Field
The invention belongs to the technical field of network configuration, and particularly relates to an area automatic networking method with a backup server.
Background
With the continuous development of internet technology, the scale of the network is also continuously increased, the number of nodes in the network is also linearly increased, in order to solve the problems of high networking cost, high network deployment difficulty and the like in the traditional large-scale network deployment, in the existing networking method, automatic networking is carried out according to link state information in the network, routing in an autonomous domain is synchronized, when the network changes, equipment in the network can elect out an area server and a boundary server according to new link state information acquired by an IGP protocol, BGP is then used for establishing BGP connection between the area server and other routers, BGP connection is established between the boundary servers, automatic networking is realized, the role of the area server is very important, the reconnection of an autonomous domain network is caused once the area server is changed, and the routing information in the network can be lost in the period and can not be normally forwarded.
Disclosure of Invention
Aiming at the defects in the prior art, the regional automatic networking method with the backup server solves the problem of low system stability when the networking is carried out by simply setting the regional server.
In order to achieve the aim of the invention, the invention adopts the following technical scheme: an area automatic networking method with a backup server comprises the following steps:
s1, starting BGP protocols and IGP protocols of all nodes in an area, and acquiring link state information of the area by using the IGP protocols;
s2, selecting two nodes as an area server and a backup server of the area respectively according to the link state information of the area;
s3, establishing a neighbor relation between the selected regional server and other nodes in the region by utilizing a BGP protocol, and taking the regional server as a first route reflector and the other nodes in the region as first route reflector clients;
meanwhile, establishing a neighbor relation between the selected backup server and other nodes in the area by utilizing the BGP protocol, and taking the backup area server as a second route reflector and the other nodes in the area as second route reflector clients;
s4, establishing BGP connection between the regional server and the backup server, and enabling the regional server and the backup server to be a route reflector and a client to complete regional automatic networking.
Further, the area in the step S1 includes at least two nodes.
Further, the IGP protocol is at least one of OSPF protocol and ISIS protocol.
Further, in the step S2, a node with the largest IP address is selected as an area server, and a node with the next largest IP address is selected as a backup server;
the regional server and the backup server are in peer-to-peer mutual backup relationship.
Further, step S3.5 is further included between step S3 and step S4:
when nodes are newly added or reduced in the area, the link state information of the area is obtained again by utilizing the IGP protocol, a new area server and a backup server are selected, the area server and the backup server information of each node in the area are reset, the neighbor relation in the area is rebuilt, and then the area automatic networking is completed.
Further, the method for reconstructing the neighbor relation in the step S3.5 specifically includes:
and sequentially determining the relation between each node in the area and the area server and the backup server, and updating the neighbor relation between the node and other nodes to finish the reconstruction of the neighbor relation in the area.
Further, in the step S3.5, the relationships between each node in the area and the area server and the backup server are sequentially determined, and the method for updating the neighbor relationship between the node and other nodes specifically includes:
when the current node is a new regional server or a new backup server and is not the regional server or the backup server before the regional node is changed, deleting the neighbor relation between the regional server and the backup server before the regional node is changed and the node through the BGP protocol, and establishing the neighbor relation between the new regional server and the new backup server and other nodes based on the BGP protocol;
when the current node is a new regional server or a backup server and is the regional server or the backup server before the regional node changes, the neighbor relation established between the regional server and the backup server before the regional node changes and other nodes through the BGP protocol is not changed, and the neighbor relation established before the regional node changes is reserved;
when the current node is not a new regional server or a backup server and is not a regional server or a backup server before the regional node is changed, judging whether the new regional server and the backup server are the same as the regional server and the backup server before the regional node is changed, if so, not performing any operation, reserving the neighbor relation established before the regional node is changed, if not, deleting the neighbor relation established before the regional node is changed, and establishing the neighbor relation between the new regional server and the backup server and the node based on the BGP protocol;
when the current node is not a new regional server or a backup server, but is the regional server or the backup server before the regional node is changed, deleting the neighbor relation between the regional server and the backup server before the regional node is changed and other nodes through the BGP protocol, and establishing the neighbor relation between the new regional server and the backup server and the node based on the BGP protocol.
The beneficial effects of the invention are as follows:
(1) The invention realizes the automatic backup of the server on the basis of automatic networking by the automatic election of the regional server and the backup server, the automatic connection of the regional server and the backup server with other devices in the region and the synchronous full-network routing of the regional server and the backup server;
(2) When one device in the network fails, the router can continue forwarding by means of the synchronous route of the other server, and a new regional server and a backup server can be immediately selected to realize the stability of the network.
Drawings
Fig. 1 is a flowchart of an area automatic networking method with a backup server provided by the present invention.
Fig. 2 is a schematic diagram of regional networking provided by the present invention.
Fig. 3 is a schematic diagram of regional networking after a regional node provided by the present invention changes.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and all the inventions which make use of the inventive concept are protected by the spirit and scope of the present invention as defined and defined in the appended claims to those skilled in the art.
Example 1:
in order to solve the above problems, an automatic backup technology for a regional server is provided, when one device fails during election, the whole network can forward by means of the synchronous route of the other device, and the election of the regional server and the backup server is performed again at the same time, so that the stability of the whole network is ensured. The regional server and the backup server are equal in mutual backup relation, and the route for forwarding is selected according to the routing rule of BGP. Specifically, as shown in fig. 1, the method for automatically networking an area with a backup server provided by the invention comprises the following steps:
s1, starting BGP protocols and IGP protocols of all nodes in an area, and acquiring link state information of the area by using the IGP protocols;
s2, selecting two nodes as an area server and a backup server of the area respectively according to the link state information of the area;
s3, establishing a neighbor relation between the selected regional server and other nodes in the region by utilizing a BGP protocol, and taking the regional server as a first route reflector and the other nodes in the region as first route reflector clients;
meanwhile, establishing a neighbor relation between the selected backup server and other nodes in the area by utilizing the BGP protocol, and taking the backup area server as a second route reflector and the other nodes in the area as second route reflector clients;
s4, establishing BGP connection between the regional server and the backup server, and enabling the regional server and the backup server to be a route reflector and a client to complete regional automatic networking.
The area in the step S1 includes at least two nodes; the IGP protocol is at least one of OSPF protocol and ISIS protocol.
In the step S2, the node with the largest IP address is selected as the regional server, and the node with the next largest IP address is selected as the backup server; and the regional server and the backup server are in peer-to-peer mutual backup relationship.
In the embodiment of the present invention, step S3.5 is further included between step S3 and step S4: when nodes are newly added or reduced in the area, the area automatic networking method with the backup server specifically comprises the following steps:
and re-acquiring link state information of the area by using an IGP protocol, selecting a new area server and a backup server, resetting the area server and the backup server information of each node in the area, reconstructing the neighbor relation in the area, and further completing the automatic networking of the area.
The method for reconstructing the neighbor relation in the step S3.5 specifically comprises the following steps:
and sequentially determining the relation between each node in the area and the area server and the backup server, and updating the neighbor relation between the node and other nodes to finish the reconstruction of the neighbor relation in the area.
Specifically, when the current node is a new regional server or a new backup server and is not the regional server or the backup server before the regional node changes, deleting the neighbor relation established between the regional server and the backup server before the regional node changes and the node through the BGP protocol, and establishing the neighbor relation between the new regional server and the new backup server and other nodes based on the BGP protocol;
when the current node is a new regional server or a backup server and is the regional server or the backup server before the regional node changes, the neighbor relation established between the regional server and the backup server before the regional node changes and other nodes through the BGP protocol is not changed, and the neighbor relation established before the regional node changes is reserved;
when the current node is not a new regional server or a backup server and is not a regional server or a backup server before the regional node is changed, judging whether the new regional server and the backup server are the same as the regional server and the backup server before the regional node is changed, if so, not performing any operation, reserving the neighbor relation established before the regional node is changed, if not, deleting the neighbor relation established before the regional node is changed, and establishing the neighbor relation between the new regional server and the backup server and the node based on the BGP protocol;
when the current node is not a new regional server or a backup server, but is the regional server or the backup server before the regional node is changed, deleting the neighbor relation between the regional server and the backup server before the regional node is changed and other nodes through the BGP protocol, and establishing the neighbor relation between the new regional server and the backup server and the node based on the BGP protocol.
Example 2:
in this embodiment a simple intra-area networking case is provided,
(1) First, the user connects the network as shown in fig. 2;
(2) The method comprises the steps of collecting link state information of the whole area through an ISIS protocol, selecting an area server and a backup server, taking an IP address as a selection standard, selecting an IP address maximum router R1 as the area server, and a next-largest router R2 as the backup server;
(3) R3 obtains IP address information of an area server R1 and a backup server R2 through ISIS (an IGP protocol based on a link state), BGP takes R3, R1, R2, R1 and R2 as route reflectors, and R3 is a reflector client; similarly, the R4 acquires IP address information of the regional server R1 and the backup server R2 through ISIS (an IGP protocol based on a link state), BGP establishes connection between the R4 and R1 and R2, R1 and R2 serve as route reflectors, and R4 is a reflector client;
(4) The R1 and R2 can also acquire the information of the regional server and the backup server, and establish BGP connection between the regional server and the backup server and serve as a route reflector and a client.
As shown in fig. 3, when a node R5 is added to the area, the network networking change process is as follows:
(5) Accessing R5 into a network, establishing an ISIS neighbor relation between R5 and R4, and re-gathering network link state information by ISIS to calculate a new regional server R5 and a backup server R1;
(6) BGP deletes the neighbor relation between R2 and R1, R3, and R4 according to the information, then establishes the neighbor relation between R5 and R1, R2, R3, and R4, and uses itself as a route reflector, where R1, R2, R3, and R4 are reflector clients, R1 also serves as a route reflector for R5, and R5 serves as a reflector client for R1.

Claims (3)

1. An area automatic networking method with a backup server is characterized by comprising the following steps:
s1, starting BGP protocols and IGP protocols of all nodes in an area, and acquiring link state information of the area by using the IGP protocols;
s2, selecting two nodes as an area server and a backup server of the area respectively according to the link state information of the area;
s3, establishing a neighbor relation between the selected regional server and other nodes in the region by utilizing a BGP protocol, and taking the regional server as a first route reflector and the other nodes in the region as first route reflector clients;
meanwhile, establishing a neighbor relation between the selected backup server and other nodes in the area by utilizing the BGP protocol, and taking the backup area server as a second route reflector and the other nodes in the area as second route reflector clients;
s4, establishing BGP connection between the regional server and the backup server, and enabling the regional server and the backup server to be a route reflector and a client to complete regional automatic networking;
in the step S2, a node with the largest IP address is selected as an area server, and a node with the next largest IP address is selected as a backup server;
the regional server and the backup server are in a peer-to-peer mutual backup relationship;
the step S3 and the step S4 also comprise the step S3.5:
when nodes are newly added or reduced in the area, the link state information of the area is obtained again by utilizing an IGP protocol, a new area server and a backup server are selected, the area server and the backup server information of each node in the area are reset, the neighbor relation in the area is reconstructed, and then the automatic networking of the area is completed;
the method for reconstructing the neighbor relation in the step S3.5 specifically comprises the following steps:
sequentially determining the relation between each node in the area and the area server and the backup server, and updating the neighbor relation between the node and other nodes to finish the reconstruction of the neighbor relation in the area;
in the step S3.5, the relationships between each node in the area and the area server and the backup server are sequentially determined, and the method for updating the neighbor relationship between the node and other nodes specifically comprises the following steps:
when the current node is a new regional server or a new backup server and is not the regional server or the backup server before the regional node is changed, deleting the neighbor relation between the regional server and the backup server before the regional node is changed and the node through the BGP protocol, and establishing the neighbor relation between the new regional server and the new backup server and other nodes based on the BGP protocol;
when the current node is a new regional server or a backup server and is the regional server or the backup server before the regional node changes, the neighbor relation established between the regional server and the backup server before the regional node changes and other nodes through the BGP protocol is not changed, and the neighbor relation established before the regional node changes is reserved;
when the current node is not a new regional server or a backup server and is not a regional server or a backup server before the regional node is changed, judging whether the new regional server and the backup server are the same as the regional server and the backup server before the regional node is changed, if so, not performing any operation, reserving the neighbor relation established before the regional node is changed, if not, deleting the neighbor relation established before the regional node is changed, and establishing the neighbor relation between the new regional server and the backup server and the node based on the BGP protocol;
when the current node is not a new regional server or a backup server, but is the regional server or the backup server before the regional node is changed, deleting the neighbor relation between the regional server and the backup server before the regional node is changed and other nodes through the BGP protocol, and establishing the neighbor relation between the new regional server and the backup server and the node based on the BGP protocol.
2. The method according to claim 1, wherein the area in step S1 includes at least two nodes.
3. The method of regional automation networking with backup servers of claim 1, wherein the IGP protocol is at least one of OSPF protocol and ISIS protocol.
CN202011029466.6A 2020-09-27 2020-09-27 Regional automatic networking method with backup server Active CN112152857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011029466.6A CN112152857B (en) 2020-09-27 2020-09-27 Regional automatic networking method with backup server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011029466.6A CN112152857B (en) 2020-09-27 2020-09-27 Regional automatic networking method with backup server

Publications (2)

Publication Number Publication Date
CN112152857A CN112152857A (en) 2020-12-29
CN112152857B true CN112152857B (en) 2023-07-21

Family

ID=73894798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011029466.6A Active CN112152857B (en) 2020-09-27 2020-09-27 Regional automatic networking method with backup server

Country Status (1)

Country Link
CN (1) CN112152857B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525423B (en) * 2018-11-06 2021-06-15 深圳市风云实业有限公司 Automatic networking method and device and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368728A (en) * 2011-09-20 2012-03-07 中国人民解放军国防科学技术大学 Automatic configuration method of routing protocol, routing device and authorization server
CN107409093A (en) * 2015-02-20 2017-11-28 思科技术公司 For the automatic optimal Router Reflector root address distribution and fast failure transfer of route reflector client in network environment
CN109525423A (en) * 2018-11-06 2019-03-26 深圳市风云实业有限公司 Automatic network-building method, device and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368728A (en) * 2011-09-20 2012-03-07 中国人民解放军国防科学技术大学 Automatic configuration method of routing protocol, routing device and authorization server
CN107409093A (en) * 2015-02-20 2017-11-28 思科技术公司 For the automatic optimal Router Reflector root address distribution and fast failure transfer of route reflector client in network environment
CN109525423A (en) * 2018-11-06 2019-03-26 深圳市风云实业有限公司 Automatic network-building method, device and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络路由备份技术设计及实验仿真;孔艺权;《实验室研究与探索》;20120515(第05期);全文 *

Also Published As

Publication number Publication date
CN112152857A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US20140149819A1 (en) Method and apparatus for protocol data unit recovery in an is-is system
CN102761482B (en) A kind of method for building up of bgp neighbor and equipment
US20070008880A1 (en) Router redundancy in data communication networks
CN109499058B (en) Matching determination method and device in game
CN109525423B (en) Automatic networking method and device and computer equipment
US9288067B2 (en) Adjacency server for virtual private networks
WO2017015454A1 (en) Methods, systems, and apparatus for geographic location using trace routes
CN106878072B (en) Message transmission method and device
CN110086711B (en) Flow back-switching method and device, electronic equipment and readable storage medium
CN105634714A (en) Cross-domain clock synchronization method, device thereof and cross-domain clock synchronization system
CN102447587B (en) Graceful restart method based on OSPF (Open Shortest Path First Interior Gateway Protocol) protocol and router thereof
CN105340226A (en) Primary and secondary system handover method for dynamic route device, and apparatus thereof
CN112152857B (en) Regional automatic networking method with backup server
WO2013174025A1 (en) Transparent clock passive port election method and device based on ptp protocol
CN105591798A (en) Method and device for transmitting OAM information in DCN
CN104639434A (en) Open shortest path first protocol smooth restart method and device
CN107276846B (en) Gateway disaster tolerance method, device and storage medium
US8291111B1 (en) Responding to a DHCPLEASEQUERY message
EP3166263A1 (en) Routing calculation method and device for trill isis
JP6555445B1 (en) Time synchronization system, time master, management master, and time synchronization method
CN106790502B (en) Load balancing system of IPv4 terminal and IPv6 service intercommunication service based on NAT64 prefix
CN105591892A (en) Graceful Restart (GR) process starting method and device
JP2020188478A (en) Method for synchronizing topology information in sfc network, and routing network element
CN112787918A (en) Data center addressing and main-standby switching method based on service routing tree
CN107231249B (en) Method for acquiring physical topology information of forwarding node, controller and forwarding node

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