WO2016184017A1 - 一种数据库同步方法、装置及路由器 - Google Patents

一种数据库同步方法、装置及路由器 Download PDF

Info

Publication number
WO2016184017A1
WO2016184017A1 PCT/CN2015/092015 CN2015092015W WO2016184017A1 WO 2016184017 A1 WO2016184017 A1 WO 2016184017A1 CN 2015092015 W CN2015092015 W CN 2015092015W WO 2016184017 A1 WO2016184017 A1 WO 2016184017A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
database
restarter
link state
advertisement information
Prior art date
Application number
PCT/CN2015/092015
Other languages
English (en)
French (fr)
Inventor
何建军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184017A1 publication Critical patent/WO2016184017A1/zh

Links

Images

Classifications

    • 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

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • the function of the Graceful Restart (GR) is to ensure that the function of the data forwarding layer is normal when the routing protocol is restarted to ensure that the critical services are not interrupted.
  • the smooth restart GR technology is one of the high reliability technologies.
  • the high reliability technology is a comprehensive set of technologies, including redundancy fault tolerance, link guarantee, and node fault repair.
  • Smooth restart GR is a redundant fault-tolerant technology that is widely used in active/standby switchover and system upgrades to ensure uninterrupted forwarding of critical services.
  • control and forwarding are performed by the same processor.
  • This processor not only discovers and maintains neighbors through routing protocols, but also maintains routing tables and forwarding tables.
  • Multi-processor architectures are commonly used in medium and high-end routers. .
  • the processor responsible for the control module such as the routing protocol is generally located on the main control board, and the processor responsible for forwarding the data message is located on the line card. This will not affect the data packet forwarding on the line card when the main processor is restarted.
  • the active/standby switchover occurs for various reasons, causing short-term traffic forwarding interruption and causing route flapping in the entire network.
  • the GR technology can avoid the above-mentioned series of problems. Forwarding will not occur.
  • the switchover router After the Open Shortest Path First (OSPF) active/standby switchover, the switchover router synchronizes with the neighbor helper router for the link state database.
  • the two parties send their own database description messages, and the restarter router receives the helper router.
  • the database description message sent by the helper router is found to have no corresponding Link State Advertisement (LSA) in the local restarter database, and a link state request message is sent to the helper router to request the corresponding LSA, helper.
  • LSA Link State Advertisement
  • the router After receiving the request message, the router will send the corresponding link state advertisement LSA to the restarter router.
  • the helper router helps to restart through this database synchronization mechanism. The party quickly restores all LSA information in the database before the active/standby switchover.
  • the LSA will send a message to ROUTER 2 requesting these Router LSAs - Interaction 2, and ROUTER 2 will send these Router LSAs to ROUTER 1 upon receiving the request.
  • ROUTER 1 receives these Router LSAs and completes the synchronization of the database, so that it can exit the GR.
  • the Graceful Restart Link State Advertisement (GR LSA is mainly used to inform the neighboring router that the local end is smoothly restarting, and the neighboring router is required.
  • the LSA in the neighbor helper router database is not included in the restarter database except the GR LSA generated by the restarter. Therefore, other router LSAs can be directly sent to the restarter router.
  • the helper router does not need to send the LSA description to the peer restarter router through the DD packet, and then the peer restarter router sends a request packet to obtain the LSA.
  • the step of determining whether the restarter database of the restarting router includes only the smooth restart link state advertisement information generated by the restarting party router includes:
  • the database synchronization method further includes:
  • the corresponding link state advertisement information is deleted from the smooth restart retransmission list according to the received acknowledgement information.
  • the database synchronization method further includes:
  • the determining module is configured to: determine whether the restarting party database of the restarting party router only includes the smooth restart link state notification information generated by the restarting party router itself;
  • a router includes the above database synchronization device.
  • the local restarter database is synchronized according to all other link state announcement information.
  • the helper router After receiving the link state advertisement information in the restarter database, the helper router determines, according to the link state advertisement information, whether the restarter database includes only The smooth restart link state advertisement information generated by the local end of the restarting router, and all other link state advertisement information except the smooth restart link state advertisement information in the helper database fed back when the judgment result is yes.
  • the step of synchronizing the local restarter database according to the all other link state advertisement information includes:
  • the receiving confirmation information corresponding to the any one or more link state advertisement information is sent to the helper router.
  • the database synchronization method further includes:
  • the detection result indicates that the local restarter database synchronization is all completed
  • the operation of ending the database synchronization is performed, and the first notification information of the smooth restart is sent to the helper router according to the second notification information.
  • a database synchronization device is applied to a restarter router in a smooth restart process of a router, including:
  • the first sending module is configured to: send a negotiation completion database description message to the helper router;
  • the first receiving module is configured to: receive all other links except the smooth restart link state advertisement information generated by the local end of the restarting router in the helper database that is fed back by the helper router according to the negotiation. Status notification information;
  • the synchronization module is configured to: synchronize the local restarter database according to all the other link state advertisement information.
  • a router includes the above database synchronization device.
  • the database synchronization method directly generates all LSAs in the local helper database by determining that the restarter database of the restarting router is empty (except for the GR router that is generated by the restarting router). In addition to the GR LSA, it is sent to the restarting party router, and the LSA that is missing in the restarting party database is indirectly obtained by the DD packet exchange, and the restarting party is not required to send the request. There is a problem of redundant interaction process in the synchronization process between the database and the helper database, so that the synchronization of the restarting database is completed more quickly, and the convergence speed of the routers of both parties is accelerated.
  • FIG. 1 is a schematic flowchart of a database synchronization method according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a database synchronization method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic flowchart of a database synchronization method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic flowchart of a database synchronization method according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram of a database synchronization apparatus according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of a database synchronization apparatus according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic structural diagram of a database synchronization apparatus according to Embodiment 7 of the present invention.
  • FIG. 8 is a schematic structural diagram of a database synchronization apparatus according to Embodiment 8 of the present invention.
  • FIG. 10 is a schematic flowchart of a database synchronization method according to Embodiment 10 of the present invention.
  • FIG. 11 is a schematic structural diagram of a database synchronization apparatus according to Embodiment 11 of the present invention.
  • FIG. 12 is a schematic structural diagram of a database synchronization apparatus according to Embodiment 12 of the present invention.
  • FIG. 13 is a schematic diagram of an interaction process of a database synchronization method according to Embodiment 13 of the present invention.
  • the embodiments of the present invention provide a plurality of solutions for the problem that the redundant interaction process exists in the synchronization process between the restarter database and the helper database after the main processor is switched in the related art, including:
  • an executor of the database synchronization method in the first embodiment of the present invention may be a helper router in a router smooth restart process, where the database synchronization method includes:
  • Step 11 determining whether the restarter database of the restarting router includes only the smooth restart link state advertisement information generated by the restarting party router itself;
  • Step 12 If the result of the judgment indicates that the restarter database includes only the smooth restart link state advertisement information, the local helper database is other than the smooth restart link state advertisement information generated by the restarter router. All other link state announcement information is sent to the restarter router to enable the restarter router to complete its own restarter database synchronization.
  • the local helper database is directly All the LSAs (except the GR LSAs generated by the restarting party) are sent to the restarting router, and the LSAs that are missing in the restarting database are indirectly obtained by the DD packet exchange to send the request to the restarting router.
  • the processor is switched, the problem of redundant interaction process exists in the synchronization process between the restarting party database and the helper database, so that the synchronization of the restarting database is completed more quickly, and the convergence speed of the routers of both parties is accelerated.
  • helper router may be a master in the database interaction process, or may be a slave in the database interaction process, so the judging whether the restarter router's restarter database only includes
  • the steps of restarting the smooth restart link state advertisement information generated by the own router as follows.
  • the helper router is a master in the database interaction process (master, used to control the interaction of the process), and the judging whether the restarter database of the restarter router only includes
  • the steps of restarting the smooth restart link state advertisement information generated by the router itself include:
  • the steps include:
  • the step of transmitting all other link state advertisement information except the smooth restart link state advertisement information generated by the restarter router in the local helper database to the restarter router include:
  • the transmitting according to the smooth restart retransmission list, all the other link state advertisement information to the restarter router.
  • the database synchronization method further includes:
  • Step 21 After receiving the acknowledgement information sent by the restarter router, delete the corresponding link state advertisement information from the smooth restart retransmission list according to the received acknowledgement information.
  • the database synchronization method on the side of the helper router is further improved to ensure that the restarter router can receive the LSAs.
  • the database synchronization method further includes:
  • Step 31 Detect whether link state advertisement information still exists in the smooth restart retransmission list.
  • Step 32 When the detection result indicates that the link state advertisement information still exists in the smooth restart retransmission list, send a prohibition instruction to the restarter router, where the prohibition instruction includes prohibiting the restarter router from sending an exit.
  • the first notification information of the smooth restart
  • the database synchronization method on the side of the helper router is further improved, and the link state advertisement information of the restarter router in the local helper router is ensured (except for the smooth restart generated by the restarter router). Outside the link state advertisement information, the signal that ends the database synchronization is not sent to the helper router before the transmission is completed, which ensures the consistency of the database synchronization state and the actual database synchronization state in the information interaction.
  • the database synchronization method further includes:
  • Step 41 When the detection result indicates that there is no link state advertisement information in the smooth restart retransmission list, send, to the restarter router, second notification information that the local helper link state advertisement information is transmitted.
  • Step 42 After receiving the synchronization of the restarting party database, the neighboring state of the restarting party is up to FULL, and the backing is fed back according to the second notification information. a first notification message of smooth restart;
  • Step 43 Perform a stop operation according to the first notification information.
  • the database synchronization method on the side of the helper router is further improved, and the ending process after the synchronization of the restarting party database is completed is provided, so that the solution is more clear and easy to understand.
  • the database synchronization device in the fifth embodiment of the present invention is applied to a helper router in a router smooth restart process, and the database synchronization device includes:
  • the determining module 51 is configured to: determine whether the restarter database of the restarting router includes only the smooth restart link state advertisement information generated by the restarting party router itself;
  • the first processing module 52 is configured to: if the determination result indicates that the restarter database includes only the smooth restart link state advertisement information, the smooth restart chain generated by the restarter router in the local helper database All other link state advertisement information outside the road state announcement information is sent to the restarter router to enable the restarter router to complete its own restarter database synchronization.
  • the local helper database is directly All the LSAs (except the GR LSAs generated by the restarting party) are sent to the restarting router, and the LSAs that are missing in the restarting database are indirectly obtained by the DD packet exchange to send the request to the restarting router.
  • the processor is switched, the problem of redundant interaction process exists in the synchronization process between the restarting party database and the helper database, so that the synchronization of the restarting database is completed more quickly, and the convergence speed of the routers of both parties is accelerated.
  • the helper router may be a master in the database interaction process, or may be a slave in the database interaction process. Therefore, the judgment module also has two situations, as follows.
  • the helper router is a master (master, used to control the interaction of the process) in the database interaction process
  • the judgment module includes:
  • the first receiving submodule is configured to: receive the negotiation completion data sent by the restarting router Library description message;
  • the first obtaining sub-module is configured to: obtain all link state advertisement information in the restarting party database according to the negotiation completion database description message;
  • the first determining sub-module is configured to: determine, according to the all link state advertisement information, whether the restarter database of the restarting router includes only the smooth restart link state advertisement information generated by the restarting party router itself.
  • the second receiving sub-module is configured to: receive the negotiation completion database description message sent by the restarting party router, and the negotiation completion database description message does not carry any link state notification information;
  • the first sending sub-module is configured to: send, according to the negotiation completion database description message, a helper database description message that only carries the smooth restart link state advertisement information generated by the restarting party router to the restarting router;
  • the third receiving sub-module is configured to: receive, by the restarting router, a restarter database description message that carries all link state advertisement information in the restarter database, which is fed back according to the helper database description message;
  • the second obtaining sub-module is configured to: obtain all link state advertisement information in the restarting party database according to the restarting party database description message;
  • the second determining sub-module is configured to: determine, according to the all link state advertisement information, whether the restarter database of the restarting router includes only the smooth restart link state advertisement information generated by the restarting party router itself.
  • the first processing module includes:
  • Add a submodule and set to: add all the other link state advertisement information to the smooth restart retransmission list;
  • the transmitting submodule is configured to: transmit all the other link state advertisement information to the restarter router according to the smooth restart retransmission list.
  • the database synchronization apparatus can implement the function of the database synchronization apparatus in the fifth embodiment by improving the existing router.
  • the database synchronization apparatus further includes:
  • the deleting module 61 is configured to: after the receiving sub-module performs the related operation, after receiving the receiving confirmation information sent by the restarting router, deleting the corresponding information from the smooth restart retransmission list according to the receiving confirmation information Link status advertisement information.
  • the function of the database synchronization device on the side of the helper router is further improved to ensure that the restarter router can receive the LSAs.
  • the database synchronizing apparatus can implement the function of the database synchronizing apparatus in the sixth embodiment by modifying the existing router.
  • the database synchronization apparatus further includes:
  • the first detecting module 71 is configured to: after the deleting module performs the related operation, detecting whether link state notification information is still stored in the smooth restart retransmission list;
  • the second sending module 72 is configured to: when the detection result indicates that the link state advertisement information still exists in the smooth restart retransmission list, send a prohibition instruction to the restarter router, where the prohibition instruction includes The restarter router sends a first notification message that exits the smooth restart.
  • the function of the database synchronization device on the side of the helper router is further improved, and the link state advertisement information of the restarter router in the local helper router is ensured (except the generated by the restarter router).
  • the signal for ending the database synchronization is not sent to the helper router before the transmission is completed, which ensures the consistency of the database synchronization state and the actual database synchronization state in the information interaction.
  • the database synchronizing apparatus can implement the function of the database synchronizing apparatus in the seventh embodiment by modifying the existing router.
  • the executing module 83 is configured to perform a stop operation according to the first notification information.
  • the database synchronizing apparatus can implement the function of the database synchronizing apparatus in the eighth embodiment by modifying the existing router.
  • the executor of the database synchronization method in the ninth embodiment of the present invention may be a restarter router in a router smooth restart process, and the database synchronization method includes:
  • the router After receiving the link state advertisement information in the local restarter database from the negotiation completion database description message, the router determines whether the restarter database is only used according to the all link state advertisement information. All the link state notifications except the smooth restart link state advertisement information in the helper database fed back when the judgment result is yes, including the smooth restart link state advertisement information generated by the local end of the restarting router information.
  • the database synchronization method further includes :
  • Step 101 Receive second notification information that the helper link state advertisement information sent by the helper router is completed.
  • the first sending module 111 is configured to: send a negotiation completion database description message to the helper router;
  • the first receiving module 112 is configured to: receive all other chains except the smooth restart link state notification information generated by the local end of the restarting router in the helper database that is fed back by the helper router according to the negotiation. Road status announcement information;
  • the synchronization module 113 is configured to: synchronize the local restarter database according to all the other link state advertisement information.
  • the database description message is completed by sending a negotiation to the helper router, and the local restarter database is obtained only after the helper router completes the database description message according to the negotiation.
  • the smooth restart link state advertisement information generated by the local end of the restarting router is included, all other link state advertisement information except the smooth restart link state advertisement information generated by the local end of the restarting router is fed back, and then according to All other link state advertisement information is synchronized with the local restarter database; instead, the LSAs that are missing in the restarter database are indirectly obtained by indirectly transmitting the request by the local restarter router through the DD packet interaction, and the main processing in the related art can be solved.
  • the problem of redundant interaction process exists in the synchronization process between the restarter database and the helper database, so that the synchronization of the restarter database is completed more quickly, and the convergence speed of the routers of both parties is accelerated.
  • the fourth receiving submodule is configured to: after receiving the link state advertisement information in the local restarter database from the negotiation completion database description message, according to the link state advertisement information Determining whether the restarting party database only includes the smooth restart link state advertisement information generated by the local end of the restarting router, and in addition to the smooth restart link state notification, in the helper database fed back when the determination result is yes All other link state notification information outside the information.
  • the restarting router is a master (master, used to control the interaction of the process) in the database interaction process
  • the first receiving module includes:
  • the fifth receiving sub-module is configured to: receive the helper database description report of the smooth restart link state notification information generated by the local end of the restarting router, which is fed back by the helper router according to the negotiation completion database description message Text
  • the feedback sub-module is configured to: feed back, according to the helper database description message, a restarter database description message carrying all link state advertisement information in the local restarter database to the helper router;
  • the sixth receiving sub-module is configured to: after receiving the link state advertisement information in the restarting party database, the helper router determines, according to the link state notification information, Whether the restarting party database includes only the smooth restart link state advertisement information generated by the local end of the restarting router, and the helper database fed back when the judgment result is yes, in addition to the smooth restart link state advertisement information All other link state notification information.
  • the synchronization module includes:
  • a synchronization submodule configured to: synchronize a local restarter database according to any one or more link state advertisement information of all other link state advertisement information;
  • a second sending submodule configured to: after synchronizing the local restarter database according to the one or more link state advertisement information, send the link state advertisement information to the helper router Corresponding receipt confirmation information.
  • the database synchronizing apparatus can implement the function of the database synchronizing apparatus in the eleventh embodiment by modifying the existing router.
  • the database synchronization apparatus further includes:
  • the third receiving module 121 is configured to: after the synchronization module performs the related operation, receive the second notification information that the helper link state advertisement information sent by the helper router is completed;
  • the second detecting module 122 is configured to: detect whether the local restarting party database synchronization is completed;
  • the function of the database synchronization device on the side of the restarting router is further improved, and the ending process after the synchronization of the local restarting party database is completed is provided, so that the solution is more clear and easy to understand.
  • the database synchronizing apparatus can implement the functions of the database synchronizing apparatus in the twelfth embodiment by modifying the existing router.
  • the database synchronization method interaction process between the helper router and the restarter router is as follows:
  • Step 131 The database of the switching router (the restarting router) is cleared after the active/standby switchover, and the Graceful Restart Link State Advertisement is sent.
  • the GR LSA is mainly used to notify the neighbor router-helper router, and the local router restarts. Smooth restart, need neighbor router to assist the local end to complete the graceful restart) Request the peer neighbor to help; the neighbor router receives the GR helper request of the switching router, and helps to restart the router (in this case, it is only marked in the local helper router) Reboot router that needs help)
  • the restarter router In order to ensure that the restarter router receives these LSAs, these LSAs need to be added to the GR retransmission list (the GR retransmission list indicates the specific LSA retransmission during the GR database synchronization process), and the receiving confirmation message sent by the restarting router is received. If the corresponding LSA is deleted from the GR retransmission list, it indicates that the peer restart router has received it and does not need to resend it.
  • the GR retransmission list is not empty, it indicates that there is no LSA received by the restarting router. In this case, you need to send an empty DD packet without an LSA (the M flag is 1) to interact with the restarting router to block the pair.
  • the neighbor state of the restarting router may rise to the database synchronization completion phase FULL, which is in contradiction with the actual database synchronization;
  • the restarter router has received all the LSAs in the local helper database. In this case, the empty DD packet without the LSA is sent with the M flag being 0 (indicating that the database digest is all sent). , the signal of the end of the database synchronization is transmitted to the restarting party, and the restarting of the router is completed.
  • the helper router will use all the LSAs in the local helper database. It is sent to the restarter router in the form of a DD packet.
  • the restarter router compares its own restarter database according to all the LSAs in the DD packet. If the LSA or LSA version is missing, it will be sent to the helper.
  • the router sends a request, and the helper router sends the corresponding LSA to the restarting router, and finally restarts the same router. Step completion
  • the local helper router needs to send a GR LSA empty DD packet generated by the restarter router to the restarter router (where the M flag is 1, indicating that the LSA is not sent yet.
  • the restarter receives the DD packet indicating that the negotiation is completed. It will send the new LSA carrying information packets DD, this time to help the party router can be restarted by the side of the router DD packets determine whether the other parties to restart the database contains only way to restart the router itself GR LSA generated:
  • the helper router directly sends all the LSAs in the local helper database (except the GR LSA generated by the restarter router) to the restarter router, and clears the previous List of added databases;
  • the GR retransmission list is not empty, it indicates that there is no LSA received by the restarting router. In this case, you need to send an empty DD packet without an LSA (the M flag is 1) to interact with the restarting router to block the pair.
  • the neighbor state of the restarting router may rise to the database synchronization completion phase FULL, which is in contradiction with the actual database synchronization;
  • the helper router will use all the LSAs in the local helper database. It is sent to the restarter router in the form of a DD packet.
  • the restarter router compares its own restarter database according to all the LSAs in the DD packet. If the LSA or LSA version is missing, it will be sent to the helper.
  • the router sends a request, and the helper router sends the corresponding LSA to the restarter router completely, and finally the restarter router synchronizes;
  • step 13212 or step 13222 all LSAs in the local database are sent to the restarting router in the form of DD packets, and the restarting router compares the restarting database. If the version of the LSA or the LSA is out of date, the local router (not the helper of the restarting router) requests the corresponding LSA. The local router (not the helper of the restarting router) will complete the corresponding LSA. Is sent to the restarting party router, and the restarting party router completes the synchronization of the restarting party database according to the corresponding LSA;
  • Step 133 The database synchronization end signal sent by the helper router has been received, and the local restarter router database synchronization is completed, that is, the neighbor state of the restarter router rises to FULL (indicating that the database synchronization is completed, the local restart router is missing. All LSAs have been obtained), then the restarting router itself exits the GR and notifies the neighboring helper router that it also exits the GR;
  • Step 134 After the neighbor helper router receives the exit GR signal sent by the restarting party router (the restarter sends a GR LSA whose field is the maximum age Maxage), the router will immediately exit the GR Helper.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本文公布一种数据库同步方法、装置及路由器,其中,数据库同步方法应用于路由器平滑重启过程中的帮助方路由器,包括:判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息;若判断结果指示重启方数据库中只包含平滑重启链路状态通告信息,则将本地的帮助方数据库中除重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至重启方路由器,以使重启方路由器能够完成自身的重启方数据库同步。

Description

一种数据库同步方法、装置及路由器 技术领域
本申请涉及但不限于通信技术领域。
背景技术
平滑重启Graceful Restart(GR)主要实现的功能是在路由协议重启的时候保证数据转发层面功能的正常,以保证关键业务不中断。平滑重启GR技术是属于高可靠性技术的一种,高可靠性技术是一整套综合技术,主要包括冗余容错、链路保证、节点故障修复等。平滑重启GR是一种冗余容错技术,被广泛地使用在主备切换和系统升级等方面,从而保证关键业务不间断转发。
随着网络设备普遍采用了控制和转发分离的技术,GR技术就成为了可能。在传统的路由器中控制和转发是由同一个处理器完成的,这个处理器既通过路由协议发现并维护邻居,同时也维护路由表和转发表,中高端路由器设备普遍采用了多处理器的结构。负责路由协议等控制模块的处理器一般位于主控板,负责数据报文转发的处理器则位于线卡。这样在主处理器重启的时候才有可能不影响线卡上的数据报文转发。
在没有使用GR技术的时候,因为各种原因出现的主备切换,都会造成短时间的流量转发中断,并且在全网中造成路由震荡,而使用GR技术则可以避免上述一系列的问题,流量转发不会发生中断。
开放式最短路径优先Open Shortest Path First(OSPF)主备倒换后,倒换路由器会与邻居helper路由器进行链路状态数据库进行同步,双方发送各自的数据库描述报文,重启方路由器收到helper方路由器(帮助方路由器)发来的数据库描述报文发现本地重启方数据库中没有对应的链路状态通告(Link State Advertisement,LSA),便会向helper路由器发送链路状态请求报文索要相应的LSA,helper路由器收到请求报文后便会发送相应的链路状态通告LSA给重启方路由器,helper路由器正是通过这种数据库同步机制帮助重启 方快速恢复主备倒换前数据库中所有的LSA信息。
重启方路由器重启方路由器重启方路由器重启方路由器
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
相关技术中,重启方路由器主备倒换后,邻居helper路由器ROUTER 2帮助重启方路由器ROUTER 1恢复链路状态数据库信息,ROUTER 2会把自己和重启方的路由器链路状态通告Router Link State Advertisement(Router LSA)通过数据库描述DatabaseDescrition(DD报文,主要用来描述本地数据库中所有LSA摘要信息)报文发送给ROUTER 1——交互1,ROUTER 1收到DD报文发现本地数据库中没有哪几条Router LSA,便会向ROUTER 2发送报文请求这几条Router LSA——交互2,ROUTER 2收到请求后会将这几条Router LSA发送给ROUTER 1。ROUTER 1接收到这几条Router LSA便完成了数据库的同步,从而可以退出GR。
而重启方路由器主备倒换后,重启方数据库中只有重启方路由器自己产生的平滑重启链路状态通告Graceful Restart Link State Advertisement(GR LSA主要是用来告知邻居路由器本端正在平滑重启,需要邻居路由器来协助本端完成平滑重启),此时邻居helper路由器数据库中的LSA除了重启方产生的GR LSA外,都是重启方数据库中所没有的,所以可以直接将其他的Router LSA发送给重启方路由器,而不必helper路由器通过DD报文先把LSA描述发送给对端重启方路由器,接着对端重启方路由器发送请求报文来获取LSA。
综上可知,交互1和交互2这两个过程其实是多余的,主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程。
本文提供一种数据库同步方法、装置及路由器,解决相关技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题。
一种数据库同步方法,应用于路由器平滑重启过程中的帮助方路由器, 包括:
判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息;
若判断结果指示所述重启方数据库中只包含所述平滑重启链路状态通告信息,则将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器,以使所述重启方路由器能够完成自身的重启方数据库同步。
可选地,所述判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息的步骤包括:
接收所述重启方路由器发送的协商完成数据库描述报文;
根据所述协商完成数据库描述报文获取重启方数据库中的所有链路状态通告信息;
根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
可选地,所述判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息的步骤包括:
接收所述重启方路由器发送的协商完成数据库描述报文,所述协商完成数据库描述报文不携带任何链路状态通告信息;
根据所述协商完成数据库描述报文向所述重启方路由器发送只携带所述重启方路由器自身产生的平滑重启链路状态通告信息的帮助方数据库描述报文;
接收所述重启方路由器根据所述帮助方数据库描述报文反馈的携带有所述重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
根据所述重启方数据库描述报文获取重启方数据库中的所有链路状态通告信息;
根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
可选地,所述将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器的步骤包括:
将所述所有其他链路状态通告信息添加至平滑重启重传列表中;
根据所述平滑重启重传列表将所述所有其他链路状态通告信息传送至所述重启方路由器。
可选地,所述根据所述平滑重启重传列表将所述所有其他链路状态通告信息传送至所述重启方路由器之后,所述数据库同步方法还包括:
在收到所述重启方路由器发送的接收确认信息后,根据所述接收确认信息从所述平滑重启重传列表中删除对应的链路状态通告信息。
可选地,所述根据所述接收确认信息从所述平滑重启重传列表中删除对应的链路状态通告信息之后,所述数据库同步方法还包括:
检测所述平滑重启重传列表中是否仍存有链路状态通告信息;
在检测结果指示所述平滑重启重传列表中仍存有链路状态通告信息时,向所述重启方路由器发送禁止指令,所述禁止指令包括用于禁止所述重启方路由器发送退出平滑重启的第一通知信息。
可选地,所述数据库同步方法还包括:
在检测结果指示所述平滑重启重传列表中没有链路状态通告信息时,向所述重启方路由器发送本地的帮助方链路状态通告信息传送完毕的第二通知信息;
接收所述重启方路由器在自身的重启方数据库同步完成后,根据所述第二通知信息反馈的所述退出平滑重启的第一通知信息;
根据所述第一通知信息执行停止操作。
一种数据库同步装置,应用于路由器平滑重启过程中的帮助方路由器,包括:
判断模块,设置为:判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息;
第一处理模块,设置为:若判断结果指示所述重启方数据库中只包含所述平滑重启链路状态通告信息,则将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器,以使所述重启方路由器能够完成自身的重启方数据库同步。
一种路由器,包括:上述的数据库同步装置。
一种数据库同步方法,应用于路由器平滑重启过程中的重启方路由器,包括:
向帮助方路由器发送协商完成数据库描述报文;
接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息;
根据所述所有其他链路状态通告信息同步本地的重启方数据库。
可选地,所述接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息的步骤包括:
接收所述帮助方路由器从所述协商完成数据库描述报文中获取本地的重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
可选地,所述接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息的步骤包括:
接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的只携带重启方路由器本端产生的所述平滑重启链路状态通告信息的帮助方数据库描述报文;
根据所述帮助方数据库描述报文向所述帮助方路由器反馈携带有本地的 重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
接收所述帮助方路由器从所述重启方数据库描述报文中获取重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
可选地,所述根据所述所有其他链路状态通告信息同步本地的重启方数据库的步骤包括:
根据所述所有其他链路状态通告信息中的任意一个或多个链路状态通告信息同步本地的重启方数据库;
在根据所述任意一个或多个链路状态通告信息同步本地的重启方数据库后,向所述帮助方路由器发送与该任意一个或多个链路状态通告信息相对应的接收确认信息。
可选地,所述根据所述所有其他链路状态通告信息同步本地的重启方数据库之后,所述数据库同步方法还包括:
接收所述帮助方路由器发送的帮助方链路状态通告信息传送完毕的第二通知信息;
检测本地的重启方数据库同步是否全部完成;
在检测结果指示本地的重启方数据库同步全部完成时,执行结束数据库同步的操作,并根据所述第二通知信息向所述帮助方路由器发送退出平滑重启的第一通知信息。
一种数据库同步装置,应用于路由器平滑重启过程中的重启方路由器,包括:
第一发送模块,设置为:向帮助方路由器发送协商完成数据库描述报文;
第一接收模块,设置为:接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息;
同步模块,设置为:根据所述所有其他链路状态通告信息同步本地的重启方数据库。
一种路由器,包括:上述的数据库同步装置。
本发明实施例的上述技术方案的有益效果如下:
上述方案中,所述数据库同步方法通过在判定重启方路由器的重启方数据库为空(重启方路由器自产生的GR LSA除外)的情况下,直接将本地的帮助方数据库中所有LSA(重启方产生的GR LSA除外)发送给重启方路由器,而不必通过DD报文交互以重启方路由器发送请求的方式来间接地获取重启方数据库中缺少的LSA,可以解决相关技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题,从而更快地完成重启方数据库的同步,加快双方路由器的收敛速度。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例一中数据库同步方法流程示意图;
图2为本发明实施例二中数据库同步方法流程示意图;
图3为本发明实施例三中数据库同步方法流程示意图;
图4为本发明实施例四中数据库同步方法流程示意图;
图5为本发明实施例五中数据库同步装置结构示意图;
图6为本发明实施例六中数据库同步装置结构示意图;
图7为本发明实施例七中数据库同步装置结构示意图;
图8为本发明实施例八中数据库同步装置结构示意图;
图9为本发明实施例九中数据库同步方法流程示意图;
图10为本发明实施例十中数据库同步方法流程示意图;
图11为本发明实施例十一中数据库同步装置结构示意图;
图12为本发明实施例十二中数据库同步装置结构示意图;
图13为本发明实施例十三中数据库同步方法交互流程示意图。
本发明的实施方式
下面将结合附图及实施例进行详细描述。
本发明实施例针对相关的技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题,提供了多种解决方案,包括:
实施例一
参见图1,本发明实施例一的数据库同步方法的执行主体可以是路由器平滑重启过程中的帮助方路由器,该数据库同步方法包括:
步骤11:判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息;
步骤12:若判断结果指示所述重启方数据库中只包含所述平滑重启链路状态通告信息,则将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器,以使所述重启方路由器能够完成自身的重启方数据库同步。
在本发明的实施例一中,在帮助方路由器侧,通过在判定重启方路由器的重启方数据库为空(重启方路由器自产生的GR LSA除外)的情况下,直接将本地的帮助方数据库中所有LSA(重启方产生的GR LSA除外)发送给重启方路由器,而不必通过DD报文交互以重启方路由器发送请求的方式来间接地获取重启方数据库中缺少的LSA,可以解决相关技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题,从而更快地完成重启方数据库的同步,加快双方路由器的收敛速度。
需要说明的是,帮助方路由器可能为数据库交互过程中的主方(master),也可能为数据库交互过程中的从属方(slave),所以所述判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息的步骤也存在两种情况,如下。
第一种情况:所述帮助方路由器为数据库交互过程中的主方(master,用来控制过程的交互),所述判断重启方路由器的重启方数据库中是否只包含 重启方路由器自身产生的平滑重启链路状态通告信息的步骤包括:
接收所述重启方路由器发送的协商完成数据库描述报文;
根据所述协商完成数据库描述报文获取重启方数据库中的所有链路状态通告信息;
根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
第二种情况:所述帮助方路由器为数据库交互过程中的从属方(slave),所述判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息的步骤包括:
接收所述重启方路由器发送的协商完成数据库描述报文,所述协商完成数据库描述报文不携带任何链路状态通告信息;
根据所述协商完成数据库描述报文向所述重启方路由器发送只携带所述重启方路由器自身产生的平滑重启链路状态通告信息的帮助方数据库描述报文;
接收所述重启方路由器根据所述帮助方数据库描述报文反馈的携带有所述重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
根据所述重启方数据库描述报文获取重启方数据库中的所有链路状态通告信息;
根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
为了确保准确的发送这些LSA,所述将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器的步骤包括:
将所述所有其他链路状态通告信息添加至平滑重启重传列表中;
根据所述平滑重启重传列表将所述所有其他链路状态通告信息传送至所述重启方路由器。
实施例二
参见图2,在本发明的实施例一的基础上,本发明的实施例二中,所述根据所述平滑重启重传列表将所述所有其他链路状态通告信息传送至所述重启方路由器之后,所述数据库同步方法还包括:
步骤21:在收到所述重启方路由器发送的接收确认信息后,根据所述接收确认信息从所述平滑重启重传列表中删除对应的链路状态通告信息。
本发明的实施例二中对帮助方路由器侧的数据库同步方法进行了进一步完善,确保了重启方路由器能够接收到这些LSA。
实施例三
参见图3,在本发明的实施例二的基础上,本发明的实施例三中,所述根据所述接收确认信息从所述平滑重启重传列表中删除对应的链路状态通告信息之后,所述数据库同步方法还包括:
步骤31:检测所述平滑重启重传列表中是否仍存有链路状态通告信息;
步骤32:在检测结果指示所述平滑重启重传列表中仍存有链路状态通告信息时,向所述重启方路由器发送禁止指令,所述禁止指令包括用于禁止所述重启方路由器发送退出平滑重启的第一通知信息。
本发明的实施例三中对帮助方路由器侧的数据库同步方法进行了进一步完善,确保了重启方路由器在本地的帮助方路由器中的链路状态通告信息(除所述重启方路由器产生的平滑重启链路状态通告信息外)没有传送完毕之前,不会向帮助方路由器发送结束数据库同步的信号,保证了信息交互中的数据库同步状态与实际数据库同步状态的一致性。
实施例四
参见图4,在本发明的实施例三的基础上,本发明的实施例四中,所述数据库同步方法还包括:
步骤41:在检测结果指示所述平滑重启重传列表中没有链路状态通告信息时,向所述重启方路由器发送本地的帮助方链路状态通告信息传送完毕的第二通知信息;
步骤42:接收所述重启方路由器在自身的重启方数据库同步完成(重启方路由器的邻居状态上升至FULL)后,根据所述第二通知信息反馈的所述退 出平滑重启的第一通知信息;
步骤43:根据所述第一通知信息执行停止操作。
本发明的实施例四中对帮助方路由器侧的数据库同步方法进行了进一步完善,提供了重启方数据库同步完成后的结束流程,使得方案更加清楚明了,易于理解。
实施例五
参见图5,本发明实施例五中的数据库同步装置,应用于路由器平滑重启过程中的帮助方路由器,该数据库同步装置包括:
判断模块51,设置为:判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息;
第一处理模块52,设置为:若判断结果指示所述重启方数据库中只包含所述平滑重启链路状态通告信息,则将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器,以使所述重启方路由器能够完成自身的重启方数据库同步。
在本发明的实施例五中,在帮助方路由器侧,通过在判定重启方路由器的重启方数据库为空(重启方路由器自产生的GR LSA除外)的情况下,直接将本地的帮助方数据库中所有LSA(重启方产生的GR LSA除外)发送给重启方路由器,而不必通过DD报文交互以重启方路由器发送请求的方式来间接地获取重启方数据库中缺少的LSA,可以解决相关技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题,从而更快地完成重启方数据库的同步,加快双方路由器的收敛速度。
需要说明的是,帮助方路由器可能为数据库交互过程中的主方(master),也可能为数据库交互过程中的从属方(slave),所以所述判断模块也存在两种情况,如下。
第一种情况:所述帮助方路由器为数据库交互过程中的主方(master,用来控制过程的交互),所述判断模块包括:
第一接收子模块,设置为:接收所述重启方路由器发送的协商完成数据 库描述报文;
第一获取子模块,设置为:根据所述协商完成数据库描述报文获取重启方数据库中的所有链路状态通告信息;
第一判断子模块,设置为:根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
第二种情况:所述帮助方路由器为数据库交互过程中的从属方(slave),所述判断模块包括:
第二接收子模块,设置为:接收所述重启方路由器发送的协商完成数据库描述报文,所述协商完成数据库描述报文不携带任何链路状态通告信息;
第一发送子模块,设置为:根据所述协商完成数据库描述报文向所述重启方路由器发送只携带所述重启方路由器自身产生的平滑重启链路状态通告信息的帮助方数据库描述报文;
第三接收子模块,设置为:接收所述重启方路由器根据所述帮助方数据库描述报文反馈的携带有所述重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
第二获取子模块,设置为:根据所述重启方数据库描述报文获取重启方数据库中的所有链路状态通告信息;
第二判断子模块,设置为:根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
为了确保准确的发送这些LSA,所述第一处理模块包括:
添加子模块,设置为:将所述所有其他链路状态通告信息添加至平滑重启重传列表中;
传送子模块,设置为:根据所述平滑重启重传列表将所述所有其他链路状态通告信息传送至所述重启方路由器。
在本发明的实施例五中该数据库同步装置可以通过对已有的路由器进行改进以实现数据库同步装置在实施例五中的功能。
实施例六
参见图6,在本发明的实施例五的基础上,本发明的实施例六中,所述数据库同步装置还包括:
删除模块61,设置为:所述传送子模块执行相关操作之后,在收到所述重启方路由器发送的接收确认信息后,根据所述接收确认信息从所述平滑重启重传列表中删除对应的链路状态通告信息。
本发明的实施例六中对帮助方路由器侧的数据库同步装置的功能进行了进一步完善,确保了重启方路由器能够接收到这些LSA。
在本发明的实施例六中该数据库同步装置可以通过对已有的路由器进行改进以实现数据库同步装置在实施例六中的功能。
实施例七
参见图7,在本发明的实施例六的基础上,本发明的实施例七中,所述数据库同步装置还包括:
第一检测模块71,设置为:所述删除模块执行相关操作之后,检测所述平滑重启重传列表中是否仍存有链路状态通告信息;
第二发送模块72,设置为:在检测结果指示所述平滑重启重传列表中仍存有链路状态通告信息时,向所述重启方路由器发送禁止指令,所述禁止指令包括用于禁止所述重启方路由器发送退出平滑重启的第一通知信息。
本发明的实施例七中对帮助方路由器侧的数据库同步装置的功能进行了进一步完善,确保了重启方路由器在本地的帮助方路由器中的链路状态通告信息(除所述重启方路由器产生的平滑重启链路状态通告信息外)没有传送完毕之前,不会向帮助方路由器发送结束数据库同步的信号,保证了信息交互中的数据库同步状态与实际数据库同步状态的一致性。
在本发明的实施例七中该数据库同步装置可以通过对已有的路由器进行改进以实现数据库同步装置在实施例七中的功能。
实施例八
参见图8,在本发明的实施例七的基础上,本发明的实施例八中,所述数据库同步装置还包括:
第三发送模块81,设置为:在检测结果指示所述平滑重启重传列表中没有链路状态通告信息时,向所述重启方路由器发送本地的帮助方链路状态通告信息传送完毕的第二通知信息;
第二接收模块82,设置为:接收所述重启方路由器在自身的重启方数据库同步完成(重启方路由器的邻居状态上升至FULL)后,根据所述第二通知信息反馈的所述退出平滑重启的第一通知信息;
执行模块83,设置为:根据所述第一通知信息执行停止操作。
本发明的实施例八中对帮助方路由器侧的数据库同步装置的功能进行了进一步完善,提供了重启方数据库同步完成后的结束流程,使得方案更加清楚明了,易于理解。
在本发明的实施例八中该数据库同步装置可以通过对已有的路由器进行改进以实现数据库同步装置在实施例八中的功能。
实施例九
参见图9,本发明实施例九中数据库同步方法的执行主体可以是路由器平滑重启过程中的重启方路由器,该数据库同步方法包括:
步骤91:向帮助方路由器发送协商完成数据库描述报文;
步骤92:接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息;
步骤93:根据所述所有其他链路状态通告信息同步本地的重启方数据库。
在本发明的实施例九中,在重启方路由器侧,通过向帮助方路由器发送协商完成数据库描述报文,并接收在帮助方路由器根据协商完成数据库描述报文获知本地的重启方数据库中只包含重启方路由器本端产生的平滑重启链路状态通告信息时,反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息,然后根据所有其他链路状态通告信息同步本地的重启方数据库;而不必通过DD报文交互以本端重启方路由器发送请求的方式来间接地获取重启方数据库中缺少的LSA, 可以解决相关技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题,从而更快地完成重启方数据库的同步,加快双方路由器的收敛速度。
需要说明的是,重启方路由器可能为数据库交互过程中的主方(master),也可能为数据库交互过程中的从属方(slave),所以所述接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息的步骤也存在两种情况,如下。
第一种情况:所述重启方路由器为数据库交互过程中的从属方(slave),所述接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息的步骤包括:
接收所述帮助方路由器从所述协商完成数据库描述报文中获取本地的重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
第二种情况:所述重启方路由器为数据库交互过程中的主方(master,用来控制过程的交互),所述接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息的步骤包括:
接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的只携带重启方路由器本端产生的所述平滑重启链路状态通告信息的帮助方数据库描述报文;
根据所述帮助方数据库描述报文向所述帮助方路由器反馈携带有本地的重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
接收所述帮助方路由器从所述重启方数据库描述报文中获取重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述 重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
为了确保了本端重启方路由器能够接收到帮助方路由器传送的那些LSA,所述根据所述所有其他链路状态通告信息同步本地的重启方数据库的步骤包括:
根据所述所有其他链路状态通告信息中的任意一个或多个链路状态通告信息同步本地的重启方数据库;
在根据所述任意一个或多个链路状态通告信息同步本地的重启方数据库后,向所述帮助方路由器发送与该任意一个或多个链路状态通告信息相对应的接收确认信息。
实施例十
参见图10,在本发明的实施例九的基础上,本发明的实施例十中,所述根据所述所有其他链路状态通告信息同步本地的重启方数据库之后,所述数据库同步方法还包括:
步骤101:接收所述帮助方路由器发送的帮助方链路状态通告信息传送完毕的第二通知信息;
步骤102:检测本地的重启方数据库同步是否全部完成;
步骤103:在检测结果指示本地的重启方数据库同步全部完成(本端重启方路由器的邻居状态上升至FULL)时,执行结束数据库同步的操作,并根据所述第二通知信息向所述帮助方路由器发送退出平滑重启的第一通知信息。
本发明的实施例十中对重启方路由器侧的数据库同步方法进行了进一步完善,提供了本端重启方数据库同步完成后的结束流程,使得方案更加清楚明了,易于理解。
实施例十一
参见图11,本发明实施例十一中的数据库同步装置,应用于路由器平滑重启过程中的重启方路由器,该数据库同步装置包括:
第一发送模块111,设置为:向帮助方路由器发送协商完成数据库描述报文;
第一接收模块112,设置为:接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息;
同步模块113,设置为:根据所述所有其他链路状态通告信息同步本地的重启方数据库。
在本发明的实施例十一中,在重启方路由器侧,通过向帮助方路由器发送协商完成数据库描述报文,并接收在帮助方路由器根据协商完成数据库描述报文获知本地的重启方数据库中只包含重启方路由器本端产生的平滑重启链路状态通告信息时,反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息,然后根据所有其他链路状态通告信息同步本地的重启方数据库;而不必通过DD报文交互以本端重启方路由器发送请求的方式来间接地获取重启方数据库中缺少的LSA,可以解决相关技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题,从而更快地完成重启方数据库的同步,加快双方路由器的收敛速度。
需要说明的是,重启方路由器可能为数据库交互过程中的主方(master),也可能为数据库交互过程中的从属方(slave),所以所述第一接收模块也存在两种情况,如下。
第一种情况:所述重启方路由器为数据库交互过程中的从属方(slave),所述第一接收模块包括:
第四接收子模块,设置为:接收所述帮助方路由器从所述协商完成数据库描述报文中获取本地的重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
第二种情况:所述重启方路由器为数据库交互过程中的主方(master,用来控制过程的交互),所述第一接收模块包括:
第五接收子模块,设置为:接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的只携带重启方路由器本端产生的所述平滑重启链路状态通告信息的帮助方数据库描述报文;
反馈子模块,设置为:根据所述帮助方数据库描述报文向所述帮助方路由器反馈携带有本地的重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
第六接收子模块,设置为:接收所述帮助方路由器从所述重启方数据库描述报文中获取重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
为了确保了本端重启方路由器能够接收到帮助方路由器传送的那些LSA,所述同步模块包括:
同步子模块,设置为:根据所述所有其他链路状态通告信息中的任意一个或多个链路状态通告信息同步本地的重启方数据库;
第二发送子模块,设置为:在根据所述任意一个或多个链路状态通告信息同步本地的重启方数据库后,向所述帮助方路由器发送与该任意一个或多个链路状态通告信息相对应的接收确认信息。
在本发明的实施例十一中该数据库同步装置可以通过对已有的路由器进行改进以实现数据库同步装置在实施例十一中的功能。
实施例十二
参见图12,在本发明的实施例十一的基础上,本发明的实施例十二中,所述数据库同步装置还包括:
第三接收模块121,设置为:所述同步模块执行相关操作之后,接收所述帮助方路由器发送的帮助方链路状态通告信息传送完毕的第二通知信息;
第二检测模块122,设置为:检测本地的重启方数据库同步是否全部完成;
第二处理模块123,设置为:在检测结果指示本地的重启方数据库同步全部完成(本端重启方路由器的邻居状态上升至FULL)时,执行结束数据库同步的操作,并根据所述第二通知信息向所述帮助方路由器发送退出平滑重启的第一通知信息。
本发明的实施例十二中对重启方路由器侧的数据库同步装置的功能进行了进一步完善,提供了本端重启方数据库同步完成后的结束流程,使得方案更加清楚明了,易于理解。
在本发明的实施例十二中该数据库同步装置可以通过对已有的路由器进行改进以实现数据库同步装置在实施例十二中的功能。
实施例十三
参见图13,本发明的实施例十三中,帮助方路由器与重启方路由器之间的数据库同步方法交互流程如下:
步骤131:主备倒换后倒换路由器(重启方路由器)的数据库清空,发送平滑重启链路状态通告Graceful Restart Link State Advertisement(GR LSA主要是用来告知邻居路由器-帮助方路由器,本端重启方路由器正在平滑重启,需要邻居路由器来协助本端完成平滑重启)请求对端邻居帮忙;邻居路由器收到倒换路由器的GR helper请求后,帮助重启方路由器(此时只是在本端帮助方路由器中标记所需帮助的重启方路由器);
步骤132:重启方路由器发送完GR LSA后,开始发送HELLO报文(一种用来获取邻居关系的报文)与邻居路由器重新建立邻居关系,当本地的重启方路由器的邻居状态上升至exstart状态(开始协商数据库交互),会进行数据库交互的协商,邻居路由器判定重启方路由器数据库中是否只含有重启方自己产生的GR LSA,由于数据库交互过程中主方(master用来控制过程的交互)和从属方(slave)的区别,需要区分帮助方路由器为master和slave这两种情况:
步骤1321:本端帮助方路由器的ROUTER ID更大(ROUTER ID用来标 识一台设备),数据库交互过程中本端帮助方路由器为Master,这种情况下,当收到对端重启方路由器发来的协商完成DD报文时(就是对端重启方路由器认可本端帮助方路由器为Mater,由本端帮助方路由器来控制交互过程),该DD报文会携带LSA信息,此时可以通过该DD报文判断重启方数据库是否只含有重启方自己产生的GR LSA:
如果只含有重启方路由器自己产生的GR LSA(对应DD报文中只有GR LSA并且对应的M标志位为0,M标志位表示是否还有待发送的LSA描述,当M=1表示还有,反之则表示没有),且此时本端帮助方路由器的邻居状态上升至Exchange(数据库交互阶段,邻居状态至少为Exchange时才能向邻居发送LSA),那么本端帮助方路由器直接将本地帮助方数据库中所有LSA(重启方产生的GR LSA除外)全部发送给重启方路由器;
为了确保重启方路由器接收到这些LSA,需要将这些LSA添加到GR重传列表中(GR重传列表表示GR数据库同步过程中特定LSA重传),当收到重启方路由器发来的接收确认信息时,将对应的LSA从GR重传列表中删除,表明对端重启方路由器已经接收到,无需重新发送;
如果GR重传列表不为空,说明还有重启方路由器没有收到的LSA,此时需要发送不带LSA的空DD报文(M标志位为1)与重启方路由器进行交互,以阻止对端重启方路由器的邻居状态可能上升至数据库同步完成阶段FULL,而和实际还处于数据库同步相矛盾;
如果GR重传列表为空,说明重启方路由器已经接收到本端帮助方数据库中的所有LSA,此时发送M标志位为0(表明数据库摘要全部发送完毕)的不带LSA的空DD报文,向重启方传递数据库同步结束的信号,至此重启方路由器同步完成;
如果重启方数据库不止含有重启方路由器自己产生的GR LSA(重启方发来的DD报文中有GR LSA并且对应的M标志位为1),那么帮助方路由器会将本地帮助方数据库中所有LSA以DD报文的形式发送给重启方路由器,重启方路由器会根据该DD报文中的所有LSA对自身的重启方数据库进行对比,在缺少LSA或者LSA的版本比较旧的情况下会向帮助方路由器发送请求,帮助方路由器会发送对应的LSA给重启方路由器,最终重启方路由器同 步完成;
步骤1322:对端重启方路由器的ROUTER ID更大,数据库交互过程中本端帮助方路由器为Slave,这种情况下,当收到对端重启方路由器发来的协商完成DD报文时(就是本端帮助方路由器认为对端重启方路由器为Mater,由对端重启方路由器来控制交互过程),便会认为协商完成,但是,由于只是一个不携带任何LSA信息的空DD报文,所以此时无法判断对端重启方数据库中是否只含有重启方路由器自己产生的GR LSA,需要将本地帮助方数据库中的所有LSA添加到数据库列表中以防判断出重启方路由器不止含有GR LSA情况下需要走DD报文交互的过程,接下来需要本端帮助方路由器向重启方路由器发送一个只携带重启方路由器产生的GR LSA空DD报文(其中M标志位为1,表示还有LSA没有发送完),以触发重启方路由器发送带有LSA信息的DD报文,重启方接收到这个表示协商完成的DD报文后会发送新的携带LSA信息的DD报文,此时帮助方路由器可以通过重启方路由器发来的该DD报文判断对方重启方数据库是否只含有重启方路由器自己产生的GR LSA:
如果只含有重启方路由器自己产生的GR LSA(重启方发来的DD报文中只有GR LSA并且对应的M标志位为0),且此时本端帮助方路由器的邻居状态上升至Exchange(数据库交互阶段,邻居状态至少为Exchange时才能向邻居发送LSA),那么帮助方路由器直接将本地帮助方数据库中的所有LSA(重启方路由器产生的GR LSA除外)全部发送给重启方路由器,并且清空先前添加的数据库列表;
为了确保重启方路由器接收到这些LSA,需要将这些LSA添加到GR重传列表中,当收到重启方路由器发来的接收确认信息时,将对应的LSA从GR重传列表中删除,表明对端重启方路由器已经接收到,不再需要重新发送;
如果GR重传列表不为空,说明还有重启方路由器没有收到的LSA,此时需要发送不带LSA的空DD报文(M标志位为1)与重启方路由器进行交互,以阻止对端重启方路由器的邻居状态可能上升至数据库同步完成阶段FULL,而和实际还处于数据库同步相矛盾;
如果GR重传列表为空,说明重启方路由器已经接收到本端帮助方数据库中的所有LSA,此时发送M标志位为0不带LSA的空DD报文,向重启方传递数据库同步结束的信号,至此重启方路由器同步完成;
如果重启方数据库不止含有重启方路由器自己产生的GR LSA(重启方发来的DD报文中有GR LSA并且对应的M标志位为1),那么帮助方路由器会将本地帮助方数据库中所有LSA以DD报文的形式发送给重启方路由器,重启方路由器会根据该DD报文中的所有LSA对自身的重启方数据库进行对比,在缺少LSA或者LSA的版本比较旧的情况下会向帮助方路由器发送请求,帮助方路由器将对应的LSA完整地发送给重启方路由器,最终重启方路由器同步完成;
需要说明的是,如果本端路由器根本不是重启方路由器的帮助者,则在收到重启方路由器发来表示协商完成的空DD报文时,那么直接走正常情况下DD报文交互的方式来完成数据库的同步,也就是与重启方路由器之间的数据库同步流程按照步骤13212或步骤13222执行:将本地数据库中所有LSA以DD报文形式发送给重启方路由器,重启方路由器对比重启方数据库,如果重启方路由器中缺少LSA或者LSA的版本比较旧,就会向本端路由器(不是重启方路由器的帮助者)请求对应LSA,本端路由器(不是重启方路由器的帮助者)会将对应LSA完整地发送给重启方路由器,重启方路由器根据该对应LSA完成重启方数据库的同步;
步骤133:已收到帮助方路由器发送的数据库同步结束的信号,且本地的重启方路由器数据库同步完成,也就是重启方路由器的邻居状态上升至FULL(表示数据库同步完成,本端重启方路由器缺少的所有LSA已经全部获取到),则重启方路由器自己退出GR并且通知邻居帮助方路由器也退出GR;
步骤134:邻居帮助方路由器收到重启方路由器发来的退出GR信号(重启方会发送一个字段为最大年龄Maxage的GR LSA)后,会立刻退出GR Helper。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中, 所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例通过在判定重启方路由器的重启方数据库为空(重启方路由器自产生的GR LSA除外)的情况下,直接将本地的帮助方数据库中所有LSA(重启方产生的GR LSA除外)发送给重启方路由器,而不必通过DD报文交互以重启方路由器发送请求的方式来间接地获取重启方数据库中缺少的LSA,可以解决相关技术中主处理器倒换后重启方数据库和帮助方数据库同步过程中存在冗余交互流程的问题,从而更快地完成重启方数据库的同步,加快双方路由器的收敛速度。

Claims (17)

  1. 一种数据库同步方法,应用于路由器平滑重启过程中的帮助方路由器,包括:
    判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息;
    若判断结果指示所述重启方数据库中只包含所述平滑重启链路状态通告信息,则将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器,以使所述重启方路由器能够完成自身的重启方数据库同步。
  2. 如权利要求1所述的数据库同步方法,其中,所述判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息的步骤包括:
    接收所述重启方路由器发送的协商完成数据库描述报文;
    根据所述协商完成数据库描述报文获取重启方数据库中的所有链路状态通告信息;
    根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
  3. 如权利要求1所述的数据库同步方法,其中,所述判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息的步骤包括:
    接收所述重启方路由器发送的协商完成数据库描述报文,所述协商完成数据库描述报文不携带任何链路状态通告信息;
    根据所述协商完成数据库描述报文向所述重启方路由器发送只携带所述重启方路由器自身产生的平滑重启链路状态通告信息的帮助方数据库描述报文;
    接收所述重启方路由器根据所述帮助方数据库描述报文反馈的携带有所述重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
    根据所述重启方数据库描述报文获取重启方数据库中的所有链路状态通告信息;
    根据所述所有链路状态通告信息判断所述重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息。
  4. 如权利要求1所述的数据库同步方法,其中,所述将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器的步骤包括:
    将所述所有其他链路状态通告信息添加至平滑重启重传列表中;
    根据所述平滑重启重传列表将所述所有其他链路状态通告信息传送至所述重启方路由器。
  5. 如权利要求4所述的数据库同步方法,其中,所述根据所述平滑重启重传列表将所述所有其他链路状态通告信息传送至所述重启方路由器之后,所述数据库同步方法还包括:
    在收到所述重启方路由器发送的接收确认信息后,根据所述接收确认信息从所述平滑重启重传列表中删除对应的链路状态通告信息。
  6. 如权利要求5所述的数据库同步方法,其中,所述根据所述接收确认信息从所述平滑重启重传列表中删除对应的链路状态通告信息之后,所述数据库同步方法还包括:
    检测所述平滑重启重传列表中是否仍存有链路状态通告信息;
    在检测结果指示所述平滑重启重传列表中仍存有链路状态通告信息时,向所述重启方路由器发送禁止指令,所述禁止指令包括用于禁止所述重启方路由器发送退出平滑重启的第一通知信息。
  7. 如权利要求6所述的数据库同步方法,所述数据库同步方法还包括:
    在检测结果指示所述平滑重启重传列表中没有链路状态通告信息时,向所述重启方路由器发送本地的帮助方链路状态通告信息传送完毕的第二通知信息;
    接收所述重启方路由器在自身的重启方数据库同步完成后,根据所述第二通知信息反馈的所述退出平滑重启的第一通知信息;
    根据所述第一通知信息执行停止操作。
  8. 一种数据库同步装置,应用于路由器平滑重启过程中的帮助方路由器,包括:
    判断模块,设置为:判断重启方路由器的重启方数据库中是否只包含重启方路由器自身产生的平滑重启链路状态通告信息;
    第一处理模块,设置为:若判断结果指示所述重启方数据库中只包含所述平滑重启链路状态通告信息,则将本地的帮助方数据库中除所述重启方路由器产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息发送至所述重启方路由器,以使所述重启方路由器能够完成自身的重启方数据库同步。
  9. 一种路由器,包括:如权利要求8所述的数据库同步装置。
  10. 一种数据库同步方法,应用于路由器平滑重启过程中的重启方路由器,包括:
    向帮助方路由器发送协商完成数据库描述报文;
    接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息;
    根据所述所有其他链路状态通告信息同步本地的重启方数据库。
  11. 如权利要求10所述的数据库同步方法,其中,所述接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息的步骤包括:
    接收所述帮助方路由器从所述协商完成数据库描述报文中获取本地的重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
  12. 如权利要求10所述的数据库同步方法,其中,所述接收所述帮助方 路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息的步骤包括:
    接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的只携带重启方路由器本端产生的所述平滑重启链路状态通告信息的帮助方数据库描述报文;
    根据所述帮助方数据库描述报文向所述帮助方路由器反馈携带有本地的重启方数据库中的所有链路状态通告信息的重启方数据库描述报文;
    接收所述帮助方路由器从所述重启方数据库描述报文中获取重启方数据库中的所有链路状态通告信息后,根据所述所有链路状态通告信息判断所述重启方数据库中是否只包含所述重启方路由器本端产生的平滑重启链路状态通告信息,并在判断结果为是的时候反馈的帮助方数据库中除所述平滑重启链路状态通告信息外的所有其他链路状态通告信息。
  13. 如权利要求10所述的数据库同步方法,其中,所述根据所述所有其他链路状态通告信息同步本地的重启方数据库的步骤包括:
    根据所述所有其他链路状态通告信息中的任意一个或多个链路状态通告信息同步本地的重启方数据库;
    在根据所述任意一个或多个链路状态通告信息同步本地的重启方数据库后,向所述帮助方路由器发送与该任意一个或多个链路状态通告信息相对应的接收确认信息。
  14. 如权利要求10所述的数据库同步方法,其中,所述根据所述所有其他链路状态通告信息同步本地的重启方数据库之后,所述数据库同步方法还包括:
    接收所述帮助方路由器发送的帮助方链路状态通告信息传送完毕的第二通知信息;
    检测本地的重启方数据库同步是否全部完成;
    在检测结果指示本地的重启方数据库同步全部完成时,执行结束数据库同步的操作,并根据所述第二通知信息向所述帮助方路由器发送退出平滑重 启的第一通知信息。
  15. 一种数据库同步装置,应用于路由器平滑重启过程中的重启方路由器,包括:
    第一发送模块,设置为:向帮助方路由器发送协商完成数据库描述报文;
    第一接收模块,设置为:接收所述帮助方路由器根据所述协商完成数据库描述报文反馈的帮助方数据库中除重启方路由器本端产生的平滑重启链路状态通告信息外的所有其他链路状态通告信息;
    同步模块,设置为:根据所述所有其他链路状态通告信息同步本地的重启方数据库。
  16. 一种路由器,包括:如权利要求15所述的数据库同步装置。
  17. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-7,10-14任一项的方法。
PCT/CN2015/092015 2015-05-15 2015-10-15 一种数据库同步方法、装置及路由器 WO2016184017A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510249361.4 2015-05-15
CN201510249361.4A CN106302187B (zh) 2015-05-15 2015-05-15 一种数据库同步方法、装置及路由器

Publications (1)

Publication Number Publication Date
WO2016184017A1 true WO2016184017A1 (zh) 2016-11-24

Family

ID=57319257

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092015 WO2016184017A1 (zh) 2015-05-15 2015-10-15 一种数据库同步方法、装置及路由器

Country Status (2)

Country Link
CN (1) CN106302187B (zh)
WO (1) WO2016184017A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764820A (zh) * 2010-01-14 2010-06-30 华为技术有限公司 Gr场景的链路状态数据库信息同步方法、装置及系统
CN102325080A (zh) * 2011-07-12 2012-01-18 杭州华三通信技术有限公司 一种ospf协议平滑重启方法和装置
US20140173133A1 (en) * 2012-12-17 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and system for efficient graceful restart in an open shortest path first (ospf) network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986649B (zh) * 2014-05-28 2017-08-11 新华三技术有限公司 一种边界网关协议平滑重启方法及路由设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764820A (zh) * 2010-01-14 2010-06-30 华为技术有限公司 Gr场景的链路状态数据库信息同步方法、装置及系统
CN102325080A (zh) * 2011-07-12 2012-01-18 杭州华三通信技术有限公司 一种ospf协议平滑重启方法和装置
US20140173133A1 (en) * 2012-12-17 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and system for efficient graceful restart in an open shortest path first (ospf) network

Also Published As

Publication number Publication date
CN106302187A (zh) 2017-01-04
CN106302187B (zh) 2020-03-27

Similar Documents

Publication Publication Date Title
US8379645B2 (en) Link data transmission method, node and system
CN102342050B (zh) 用于广播网络的ldp igp同步
CN103535016A (zh) 从活跃tcp应用到备用tcp应用的无中断切换
CN101753454B (zh) 路由器平滑重启方法、路由器和网络系统
WO2012122945A1 (zh) 用于虚拟网络单元的工作方法及装置
CN102546427B (zh) 一种基于ospf协议的平滑重启方法和路由器
US8824275B2 (en) Route calculating after switching occurs from a primary main control board to a standby main control board
US20120042205A1 (en) System and Method for Completeness of TCP Data in TCP HA
DK2465233T3 (en) Router and successful reboot procedure
WO2017152860A1 (zh) 一种心跳信息发送方法、装置及心跳发送节点
JP2010226393A (ja) 自律分散制御によるパス設定方法およびシステム並びに通信装置
WO2019174454A1 (zh) 链路恢复方法及装置、系统、存储介质、电子装置
JP2009303087A (ja) ノード及び通信システム
WO2008014696A1 (fr) Méthode et dispositif pour effectuer un transfert de communications
CN103354521A (zh) 一种基于ldp的lsp更新的优化方法和装置
CN103986649A (zh) 一种边界网关协议平滑重启方法及路由设备
CN107547374B (zh) 一种聚合路由处理方法和装置
WO2016206502A1 (zh) 一种业务控制方法及装置、计算机存储介质
CN113055196B (zh) 报文处理方法、网络设备及计算机可读存储介质
CN103973562A (zh) 一种避免平滑重启时业务中断的方法及设备
JP5301014B2 (ja) ノード、制御装置及び通信システム
US20120230330A1 (en) Method for controlling area boundary, method and system for establishing connection in multilayer network
CN102136936B (zh) 避免控制平面故障影响转发平面运行的方法、节点及系统
WO2016184017A1 (zh) 一种数据库同步方法、装置及路由器
WO2015042840A1 (zh) 一种故障恢复的方法、节点和路径计算单元

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15892395

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15892395

Country of ref document: EP

Kind code of ref document: A1