WO2014040409A1 - Routing management method and node - Google Patents

Routing management method and node Download PDF

Info

Publication number
WO2014040409A1
WO2014040409A1 PCT/CN2013/073392 CN2013073392W WO2014040409A1 WO 2014040409 A1 WO2014040409 A1 WO 2014040409A1 CN 2013073392 W CN2013073392 W CN 2013073392W WO 2014040409 A1 WO2014040409 A1 WO 2014040409A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
routing entry
routing
information
version information
Prior art date
Application number
PCT/CN2013/073392
Other languages
French (fr)
Chinese (zh)
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 WO2014040409A1 publication Critical patent/WO2014040409A1/en

Links

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
    • H04L45/021Ensuring consistency of routing table updates, e.g. by using epoch numbers

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and a node for routing management.
  • HBa se is a distributed, column-oriented open source database.
  • the HBa se system can include: management nodes, regional nodes, and terminals.
  • the management node can be used to monitor the status of the regional node, load balancing of the area, divide the routing interval, direct the terminal to the corresponding regional node, etc.; the regional node can be used to process the request (read, write, browse, etc.) of the terminal.
  • a routing table refers to a table stored on a router or other network device.
  • the table can store paths to specific terminals. In some cases, there are some metrics associated with these paths.
  • the routing table in each regional node is maintained and updated by the management node, so that each regional node processes the request of the corresponding terminal according to the routing table, and performs data transmission.
  • the embodiment of the invention provides a method and a node for routing management, which solves the problem that the management node cannot perform other operations in time and reduces the performance of the system.
  • a method of route management including:
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node;
  • the first node determines that the local routing entry version information and the routing information of the second node are not Consistent routing entries
  • the first node transmits the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry based on the information of the inconsistent routing entry.
  • a transmitter configured to send an update request to the second node; and configured to send, to the second node, the information of the routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node received by the receiver, so as to be a node and a second node update respective routing entries according to the information of the inconsistent routing entries;
  • the receiver is configured to receive routing entry version information of the second node sent by the second node, and a processor, configured to determine the inconsistent routing entry.
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; a routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node; the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node are based on the inconsistent routing entry
  • the information updates the respective routing entries. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
  • FIG. 1 is a schematic structural diagram of a system applied in this embodiment
  • FIG. 2 is a flow chart of the processing of the heartbeat of the management node ManagerNode according to the embodiment;
  • FIG. 3 is a flow chart of the processing request of the cluster node Clus terNode processing terminal according to the embodiment;
  • FIG. 4 is a routing process in a routing interval Range according to the embodiment.
  • FIG. 5 is a flowchart of a method for routing management according to an embodiment of the present invention;
  • FIG. 6 is a flowchart of another method for route management according to the embodiment;
  • FIG. 7 is a schematic structural diagram of routing entries and routing entry version information provided by the embodiment
  • FIG. 8 is a flowchart of another method for routing management according to the embodiment
  • FIG. 9 is a schematic structural diagram of a node according to an embodiment of the present disclosure.
  • the system can include: a ManagerNode, and at least one Clus terNode.
  • the ManagerNode is a management node of the system, which is used to maintain the heartbeat of each cluster node and the management node, and records the state of each regional node. According to these records, the ManagerNode determines whether each node is online or unreachable, wherein the unreachable may not be normal. The data is transmitted, but the nodes are not necessarily offline.
  • the Clus terNode is a cluster node that serves the terminal, and all requests will be routed to the corresponding Clus terNode for processing.
  • Rack_l node cluster name
  • Rack_2 node cluster name
  • A/B/C, 1/2/3 indicates the cluster nodes that are rejected on different machines.
  • the network Par tition may cause all Clus terNodes and ManagerNodes in Rack_1, and all Clus terNodes in Rack-1. All nodes in Rack_2 are unreachable, but all C lus terNodes in Rack-2 maintain a normal connection with the ManagerNode.
  • the functions of the ManagerNode may include, but are not limited to, each Clus terNode needs to confirm to the ManageNode when a node is unreachable; each Clus terNode may periodically Send a heartbeat request (including the connection status with the ManagerNode) to the ManagerNode, so that the ManagerNode determines and records whether the ClusterNode is online or unreachable according to the heartbeat request;
  • the LivingNode (Online Node) list can be stored in the ManagerNode to record a list of online node information and a list of unreachable node information.
  • the specific steps may include:
  • the ClusterNode sends a heartbeat request to the ManagerNode.
  • the ManagerNode receives the heartbeat request sent by the ClusterNode, and records the timestamp of the ClusterNode in the LivingNode list; if it is the first heartbeat request, returns a response, where the response may include a LivingNode list recorded by the ManagerNode, and an access node identifier in the system. Information, so that the ClusterNode obtains routing table information from the access node; if the heartbeat request includes other nodes and the connection status of the ManagerNode is false (failed connection), a response is returned, which is used to modify the routing table according to the response; if the heartbeat request is not If the connection status is false, the port will not return.
  • the ClusterNode receives the foregoing response sent by the ManagerNode.
  • the ClusterNode After receiving the response, the ClusterNode sets the connection state with the ManagerNode to True (successful connection or reachable).
  • the ManagerNode receives the heartbeat request of the ClusterNode or other requests, records the status of the ClusterNode as online, and records the timestamp.
  • the ManagerNode passively determines that the cluster node is unreachable. That is, after receiving the unreachable report request sent by the ClusterNode, the ManagerNode determines that the reported heartbeat record (timestamp) of the unreachable node included in the unreachable report request is judged to be unreachable. Whether the node is dropped and returns information to the ClusterNode that sent the unreachable report request.
  • the unreachable report request may also include, but is not limited to, identification information of the unreachable node.
  • any Range may include at least one Clus terNode, and each Clus terNode may be a Master or a Slave in any Range. (backup node).
  • the Master contained in each Range is the same as the information stored in the Slave.
  • the Master can handle write and read operation requests, and Slave can process read operation requests. If the processing request is not processed by the access node, the routing request is first routed to the Master of the Range key that is included in the routing request, and the master is unreachable, and the processing request is a write request. Return processing failure response; If the processing request is a read request, the processing request can be further routed to the Range's slave according to the routing table.
  • the routing information of all nodes can be recorded in the routing table.
  • the Master information and Slave information contained in each Range of the system can be recorded.
  • Each ClusterNode is used to process the request of the corresponding terminal.
  • one of the ClusterNodes is as follows.
  • the step of the ClusterNode processing the terminal request may include:
  • the access node receives a processing request sent by the terminal, where the processing request includes processing the request.
  • step 402 determining whether the range of the Key included in the processing request is the range in which the access node is located, if not, executing step 403; if yes, proceeding to step 404;
  • step 405 determining whether the connection between the access node and the ManagerNode is normal; if normal, go to 4041; if not, proceed to step 405;
  • the embodiment provides a method for routing management. As shown in FIG. 5, the method may include the following steps: 501.
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node. . 502.
  • the first node determines a routing entry in which the local routing entry version information is inconsistent with the routing entry version information of the second node.
  • the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entry.
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; the first node determines the local routing entry version information and the routing entry version of the second node.
  • the routing entry with inconsistent information the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry according to the information of the inconsistent routing entry. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
  • this embodiment provides another method for route management, which is a further extension of the method shown in FIG. 5, wherein the information of the inconsistent routing entry includes the first routing entry and the corresponding number of the first routing entry.
  • a routing entry version information can include the following steps:
  • step 602 Determine whether the first node and the management node are unreachable. If it is reachable, step 602 is performed; if it is not reachable, the process ends.
  • connection If the connection is reachable, the connection between the first node and the management node is normal. If the connection is unreachable, the connection between the first node and the management node is abnormal.
  • the first node and the second node may be S lave or Mas ter in the same routing interval or in different routing intervals, and the following takes the first node and the second node as S lave or Mas ter in the same routing interval as an example. Description.
  • the routing entry may include, but is not limited to: a Range corresponding to the routing entry, a list of the Range nodes, and the list of nodes may include, but is not limited to, information of the s ter, and S lave information.
  • the routing table of the node may include, but is not limited to: a routing entry list, and a routing entry version information list, and the routing entry list may include at least one The routing entry, the routing entry version information list may include corresponding at least one routing entry version information.
  • the method for determining whether a node is unreachable is not limited in this embodiment, and may be set according to actual needs, and details are not described herein again.
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node.
  • the update request may be used for, but not limited to, indicating that the first node and the second node update the respective routing table to the latest routing table
  • the latest routing table may include, but is not limited to, the latest routing entries in the first node and the second node.
  • the triggering condition that the first node sends the update request to the second node may be: but not limited to: the first node actively triggers after updating the local routing table; or, the first node period The sex sends an update request to the second node.
  • the routing table included in the node may be changed according to the actual situation. In this case, the corresponding routing entries and routing entry version information in the routing table need to be updated synchronously. The version number of the routing entry version information may change after the update.
  • a list of information included in the routing entry and a list of information included in the routing entry version information.
  • the routing entry records information about different routing entries of the current system, and is mainly used for querying, judging, and forwarding of request routing.
  • Each routing entry may include Range information 71, Repl icaNodeLi st (node list) 72 records the Range The distribution of data in the cluster nodes, that is, the Mas ter information 73 and the S lave information 74 included in the routing entry (which may include but are not limited to: S lave_l (741), S lave_2 (742), etc.), each Repl In icaNodeLi st 72, there can be no two identical nodes, but the same node can be in different routing entries.
  • Range can represent the routing interval, as can be expressed as, but not limited to, ( 0x0000 , OxFFFF), etc.
  • Range can be used as identification information for distinguishing routing entries and routing entry version information; each Clus terNode receives the request, according to the request Key, determining the Range corresponding to the Key from the routing entry list, and obtaining the node in the Repl icaNodeLi st corresponding to the Range, which is processed by the Range corresponding to the Range.
  • the routing entry version information records the changes and status of the routing entries and also records the status of routing entries that have occurred in history.
  • the routing entry version information is used to maintain the consistency of routing entries for each node in the system.
  • the routing entry version information may include: Range information 75, Range-Sta te (status information) 76 is used to describe the status of the corresponding routing entry, and may include but is not limited to three states: Add, De lete, Modify (modify).
  • the Range value 75 in the routing entry version information is the same as the Range value 71 in the corresponding routing entry.
  • the Range value in the routing entry 1 version information is the same as the Range value in routing entry 1.
  • the state of the routing entry is not limited, and may be set according to actual needs, and details are not described herein again.
  • Range-Ver s ion (77) records the version number of each routing entry after the routing entry has changed. Normally, the initial value is set to 0, each pair of corresponding routing entries is modified, and the version number is monotonically changed.
  • the version number can be added/subtracted to a preset value.
  • the routing entry with the highest/minimum version number in the same routing entry may be the latest routing entry.
  • the preset value is not limited in this embodiment, and may be set according to actual needs. For example, it may be: 1, or 2, etc., and details are not described herein again.
  • it may be, but is not limited to, determining whether the corresponding routing entry and routing entry version information between the first node and the second node are consistent according to the version number.
  • routing table changes The following is an example of routing table changes:
  • the slave in the routing entry determines whether the Mas ter in the routing entry is unreachable.
  • the specific judgment method may be Not limited to: S lave sends an unreachable report request to the Manager, and root According to the information fed back by the Manager, the judgment is made. If the slave is reachable to the Manager and the Mas ter is unreachable between the Manager and the Manager, then the S lave can be modified to the s ter in the routing entry. Therefore, the corresponding routing table in the S lave storage Routing entries also need to be modified accordingly. Moreover, the version number of the routing entry version information corresponding to the modified routing entry is incremented by one. In this case, the status of the routing entry that can be included in this information can be Modify.
  • the second node after receiving the update request sent by the first node, the second node determines whether the routing entry version information of the first node is the same as the routing entry version information of the second node, if not, Then, the second node sends the routing entry version information of the second node to the first node; if the same, the process ends.
  • the method for determining, by the second node, whether the routing entry version information of the first node is the same as the routing entry version information of the second node may be, but not limited to: the second node calculation is used to describe the second a second content identifier of the routing item version information content of the node; and then comparing whether the first content identifier is the same as the second content identifier, where the first content identifier is calculated by the first node and sent to the second node for description The identifier of the routing entry version information content of the first node.
  • the routing entry version information of the first node is different from the routing entry version information of the second node.
  • the first content identifier and the second content identifier may be, but not limited to, Hash_Va lue (a name of a certain value), and at this time, the method for calculating the first content identifier and the second content identifier The method may be: performing a hash processing on the routing entry version information of the first node and the routing entry version information of the second node, to obtain the first content identifier and the second content identifier.
  • the first node determines a routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node.
  • the method for determining the inconsistent routing entries is not limited in this embodiment, and may be set according to actual needs, and details are not described herein again.
  • an inconsistent routing entry can be determined based on the version number, that is, the version number is inconsistent.
  • the routing entry version information is obtained, and the routing entry corresponding to the inconsistent routing entry version information is obtained. Further, after modifying a routing entry in the routing table and the corresponding routing entry version information, if the version number of the routing entry version information is added to a preset value, the routing entry version information with the largest version number is The latest routing entry version information; if the version number is reduced by the preset value, the routing entry version information with the smallest version number is the latest routing entry version information.
  • Inconsistent routing entries may also include, but are not limited to, routing entries corresponding to the latest routing entry version information in the first node and the second node.
  • the routing entry version information with the highest version number is used as the latest routing entry version information as an example (the following examples are all taken as an example), and the routing table of the second node includes: routing entry 1 version information, routing The version 2 version information and the version number of the routing entry 3 version information may be: 1, 2, 5, and the routing table of the first node includes: routing entry 1 version information, routing entry 2 version information, routing entry 3 version information version The numbers can be: 1, 3, 3, then the latest routing table can contain: version number 2 routing entry 1 version information and its corresponding routing entry, version number 3 routing entry 1 version information and its corresponding Routing entry, routing entry with version number 5, version information, and its corresponding routing entry.
  • the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entry.
  • the information of the inconsistent routing entry may include the first routing entry and the first routing entry version information corresponding to the first routing entry, where the first routing entry includes a routing entry with a newer routing entry version in the first node, and the first routing The entry version information includes routing entry version information corresponding to the first routing entry.
  • the first routing entry may include: a routing entry with a version number of 1 a routing entry corresponding to the version information, a routing entry with a version number of 3, and a routing entry corresponding to the version information.
  • the first routing entry version information may include: a routing entry with version number 2 1 version information, a routing entry with version number 3, and 2 version information.
  • the second node updates the routing entry of the second node and the corresponding routing entry version information according to the first routing entry and the first routing entry version information.
  • the second node may update the routing entry of the second node that has the same identification information as the identifier information of the first routing entry to the first routing entry, and at the same time, identify the second node.
  • the routing entry version information having the same information as the identification information of the first routing entry version information is updated to the first routing entry version information.
  • the second node may update the routing entry 1 to the routing entry corresponding to the version information of the routing entry 1 with the version number 2; and may update the routing entry 2 to the routing entry corresponding to the routing entry 2 version information of version 3. .
  • the identification information of the routing entry identifier information and the routing entry version information is not limited, and may be set according to actual needs. For example, it may be a Range, and details are not described herein again.
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; the first node determines the local routing entry version information and the routing entry version of the second node.
  • the routing entry with inconsistent information the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry according to the information of the inconsistent routing entry. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
  • This embodiment provides another method for route management, which is a further extension of the method shown in FIG. 5, wherein the information of the inconsistent routing entry includes routing entry version information of the routing entry version in the second node.
  • the difference between the third embodiment and the second embodiment is as follows: the information included in the information of the inconsistent routing entries is different, so that the corresponding operations performed by the first node and the second node are different, and the third embodiment and the second embodiment are different.
  • the information may be executed separately or in combination, that is, the information of the inconsistent routing entry may include: the routing entry version information of the newer routing entry version in the second node, the first routing entry, and the first corresponding to the first routing entry. At least one of the routing entry version information.
  • step 801. Determine whether the first node and the management node are unreachable. If it is reachable, step 702 is performed; if it is not reachable, the process ends.
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node.
  • the first node determines a routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node.
  • the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entry.
  • the information of the inconsistent routing entry includes the routing entry version information of the routing entry version in the second node, and indicates that the second node sends the second routing entry to the first node, where the second routing entry may be the second node.
  • the first node receives a second routing entry sent by the second node.
  • the first node updates the local routing entry and the corresponding routing entry version information according to the second routing entry.
  • the first node may update the routing entry of the first node and the identification information and the identification information of the second routing entry to the second routing entry; and then, the routing entry from the second node
  • the second routing entry version information corresponding to the second routing entry is obtained in the version information.
  • the routing entry version information of the first node and the identification information of the second routing entry version information is updated to the second routing entry version information.
  • the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; the first node determines the local routing entry version information and the routing entry version of the second node.
  • the routing entry with inconsistent information the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry according to the information of the inconsistent routing entry. So that not only rely on the management node for other nodes By updating the routing table, any node can update the routing table, which reduces the burden on the management node and increases system performance.
  • This embodiment provides a node, as shown in FIG. 9, which may include:
  • the transmitter 91 is configured to send an update request to the second node, and send, to the second node, the information of the routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node, so as to facilitate the first node and the second node. Update the respective routing strips ⁇ according to the information of the inconsistent routing entries,
  • the receiver 92 is configured to receive routing entry version information of the second node sent by the second node, and the processor 93 is configured to determine an inconsistent routing entry.
  • the information of the inconsistent routing entry sent by the sender 91 includes a first routing entry, and the first routing entry includes a routing entry with a newer version of the routing entry in the first node.
  • the information of the inconsistent routing entry sent by the sender 91 includes the routing entry version information of the newer routing entry version in the second node;
  • the receiver 92 is further configured to receive a second routing entry sent by the second node, where the second routing entry is a routing entry corresponding to the routing entry version information of the new routing entry version of the second node;
  • the processor 93 is further configured to update the local routing entry and the corresponding routing entry version information according to the second routing entry.
  • the processor 93 is configured to determine whether the first node is reachable to the management node, and the transmitter 91 is further configured to: if the processor determines that the first node is reachable to the management node, The node sends an update request;
  • the receiver 92 is further configured to receive routing entry version information of the second node sent by the second node. Further, the routing entry version information includes the same routing interval information, status information, and version number as the corresponding routing entry.
  • the sender sends an update request to the second node, and the receiver receives the routing entry version information of the second node sent by the second node; the processor determines the local routing entry version information and the routing entry version of the second node Inconsistent routing entries; senders will be inconsistent
  • the information of the routing entry is sent to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entries. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

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

Abstract

The present invention relates to the technical field of communications, and provided are a routing management method and node. The routing management method includes: a first node transmitting an update request to a second node, and receiving the routing entry version information about the second node transmitted by the second node; the first node determining a routing entry with the local routing entry version information being inconsistent with the routing entry version information about the second node; and the first node transmitting the information about the inconsistent routing entry to the second node, so that the first node and the second node update respective routing entries according to the information about the inconsistent routing entry. By means of the present invention, any node can update routing information, which reduces the burden of node management, thereby increasing the system performance.

Description

路由管理的方法和节点 本申请要求了 2012年 09月 14日提交的, 申请号为 201210341766.7 , 发 明名称为 "路由管理的方法和节点" 的中国申请的优先权, 其全部内容通过 引用结合在本申请中。 技术领域  Method and node for routing management This application claims the priority of the Chinese application filed on September 14, 2012, the application number is 201210341766.7, and the name of the invention is "route management method and node", the entire contents of which are incorporated herein by reference. In the application. Technical field
本发明涉及通信技术领域, 尤其涉及路由管理的方法和节点。  The present invention relates to the field of communications technologies, and in particular, to a method and a node for routing management.
背景技术 Background technique
HBa se是一个分布式的、 面向列的开源数据库, HBa se系统中可以包括: 管理节点、 区域节点、 终端。 其中, 管理节点可以用于监控区域节点的状态、 区域的负载均衡、 划分路由区间、 将终端定向到相应的区域节点等; 区域节 点可以用于处理终端的请求(读、 写、 浏览等)。  HBa se is a distributed, column-oriented open source database. The HBa se system can include: management nodes, regional nodes, and terminals. The management node can be used to monitor the status of the regional node, load balancing of the area, divide the routing interval, direct the terminal to the corresponding regional node, etc.; the regional node can be used to process the request (read, write, browse, etc.) of the terminal.
路由表指的是路由器或者其他网络设备上存储的表, 该表中可以存有到 达特定终端的路径, 在某些情况下, 还有一些与这些路径相关的度量。  A routing table refers to a table stored on a router or other network device. The table can store paths to specific terminals. In some cases, there are some metrics associated with these paths.
在 HBa se 系统中, 各区域节点中的路由表由管理节点进行维护和更新, 使得各区域节点根据路由表处理相应终端的请求, 并进行数据传输。  In the HBa se system, the routing table in each regional node is maintained and updated by the management node, so that each regional node processes the request of the corresponding terminal according to the routing table, and performs data transmission.
在实现上述路由管理的过程中, 发明人发现现有技术中至少存在如下问 题: 由于, 各节点中的路由表由管理节点进行维护和更新, 因此, 增加了管 理节点的负担, 导致管理节点不能及时进行其他操作, 降低了系统的性能。 发明内容  In the process of implementing the foregoing route management, the inventor has found that at least the following problems exist in the prior art: Since the routing table in each node is maintained and updated by the management node, the burden on the management node is increased, and the management node cannot Perform other operations in a timely manner, reducing system performance. Summary of the invention
本发明的实施例提供一种路由管理的方法和节点, 解决了管理节点不能 及时进行其他操作, 降低了系统的性能的问题。  The embodiment of the invention provides a method and a node for routing management, which solves the problem that the management node cannot perform other operations in time and reduces the performance of the system.
为达到上述目的, 本发明的实施例釆用如下技术方案:  In order to achieve the above object, embodiments of the present invention use the following technical solutions:
一种路由管理的方法, 包括:  A method of route management, including:
第一节点向第二节点发送更新请求, 并接收第二节点发送的第二节点的 路由条目版本信息;  The first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node;
第一节点确定本地路由条目版本信息与第二节点的路由条目版本信息不 一致的路由条目; The first node determines that the local routing entry version information and the routing information of the second node are not Consistent routing entries;
第一节点将所述不一致的路由条目的信息发送给第二节点, 以便于第一 节点和第二节点根据所述不一致的路由条目的信息更新各自的路由条目。  The first node transmits the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry based on the information of the inconsistent routing entry.
一种节点, 包括:  A node that includes:
发送器, 用于向第二节点发送更新请求; 还用于将本地路由条目版本信 息与接收器接收的第二节点的路由条目版本信息不一致的路由条目的信息发 送给第二节点, 以便于第一节点和第二节点根据所述不一致的路由条目的信 息更新各自的路由条目;  a transmitter, configured to send an update request to the second node; and configured to send, to the second node, the information of the routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node received by the receiver, so as to be a node and a second node update respective routing entries according to the information of the inconsistent routing entries;
所述接收器, 用于接收第二节点发送的第二节点的路由条目版本信息; 处理器, 用于确定所述不一致的路由条目。  The receiver is configured to receive routing entry version information of the second node sent by the second node, and a processor, configured to determine the inconsistent routing entry.
本发明实施例提供的路由管理的方法和节点, 釆用上述方法后, 第一节 点向第二节点发送更新请求, 并接收第二节点发送的第二节点的路由条目版 本信息; 第一节点确定本地路由条目版本信息与第二节点的路由条目版本信 息不一致的路由条目; 第一节点将不一致的路由条目的信息发送给第二节点, 以便于第一节点和第二节点根据不一致的路由条目的信息更新各自的路由条 目。 使得不仅仅只依赖管理节点对其他节点进行路由表更新, 任意节点均可 对路由表进行更新, 减轻了管理节点的负担, 进而增加了系统性能。  The method and node for routing management provided by the embodiment of the present invention, after the foregoing method, the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; a routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node; the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node are based on the inconsistent routing entry The information updates the respective routing entries. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described. It is obvious that the drawings in the following description are only some embodiments of the present invention. It will be apparent to those skilled in the art that other drawings may be obtained from these drawings without the inventive labor.
图 1为本实施例应用的系统架构示意图;  FIG. 1 is a schematic structural diagram of a system applied in this embodiment;
图 2为本实施例提供的管理节点 ManagerNode心跳处理流程图; 图 3为本实施例提供的集群节点 Clus terNode处理终端请求流程图; 图 4为本实施例提供的一个路由区间 Range中路由处理的逻辑图; 图 5为本实施例提供的一种路由管理的方法流程图; 图 6为本实施例提供的另一种路由管理的方法流程图; FIG. 2 is a flow chart of the processing of the heartbeat of the management node ManagerNode according to the embodiment; FIG. 3 is a flow chart of the processing request of the cluster node Clus terNode processing terminal according to the embodiment; FIG. 4 is a routing process in a routing interval Range according to the embodiment. FIG. 5 is a flowchart of a method for routing management according to an embodiment of the present invention; FIG. 6 is a flowchart of another method for route management according to the embodiment;
图 7为本实施例提供的路由条目、 和路由条目版本信息结构示意图; 图 8为本实施例提供的再一种路由管理的方法流程图;  FIG. 7 is a schematic structural diagram of routing entries and routing entry version information provided by the embodiment; FIG. 8 is a flowchart of another method for routing management according to the embodiment;
图 9为本实施例提供的一种节点结构示意图。  FIG. 9 is a schematic structural diagram of a node according to an embodiment of the present disclosure.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为了更清楚的描述以下实施例, 首先, 对实施例的系统架构及处理终端 的处理请求的方法做简单介绍。  In order to more clearly describe the following embodiments, first, a brief introduction will be made to the system architecture of the embodiment and the method of processing the processing request of the terminal.
如图 1 所示, 该系统中可以包含: ManagerNode (管理节点)、 和至少一 个 Clus terNode (集群节点)。  As shown in Figure 1, the system can include: a ManagerNode, and at least one Clus terNode.
其中, ManagerNode是系统的管理节点, 用于维护各个集群节点和管理节 点的心跳, 记录着各个区域节点的状态, 根据这些记录, ManagerNode判定各 节点在线还是不可达, 其中, 不可达可以为不能正常的进行数据传输, 但节 点不一定不在线。  The ManagerNode is a management node of the system, which is used to maintain the heartbeat of each cluster node and the management node, and records the state of each regional node. According to these records, the ManagerNode determines whether each node is online or unreachable, wherein the unreachable may not be normal. The data is transmitted, but the nodes are not necessarily offline.
Clus terNode是为终端提供服务的集群节点,所有请求将会被路由到相应 的 Clus terNode上进行处理。  The Clus terNode is a cluster node that serves the terminal, and all requests will be routed to the corresponding Clus terNode for processing.
图 1中, Rack_ l (节点集群名称)和 Rack_2 (节点集群名称)表示在两 个节点机拒上, 所有的节点组成了节点集群。 A/B/C、 1/2/ 3表示在不同机拒 上的集群节点, 网络 Par t i t ion (分区)可能造成 Rack_ l中所有 Clus terNode 与 ManagerNode之间、 和 Rack- 1中所有 Clus terNode与 Rack_2中的所有节 点之间不可达, 但是 Rack-2中的所有 C lus terNode与 ManagerNode保持正常 的连接。  In Figure 1, Rack_l (node cluster name) and Rack_2 (node cluster name) are represented on the two node machines, and all nodes form a node cluster. A/B/C, 1/2/3 indicates the cluster nodes that are rejected on different machines. The network Par tition may cause all Clus terNodes and ManagerNodes in Rack_1, and all Clus terNodes in Rack-1. All nodes in Rack_2 are unreachable, but all C lus terNodes in Rack-2 maintain a normal connection with the ManagerNode.
ManagerNode的功能可以包括但不限于:每个 Clus terNode探测到存在某 节点不可达时, 需要向 ManageNode进行确认; 每个 Clus terNode可以周期性 向 ManagerNode 发送心跳请求 (包含与 ManagerNode 的连接状态), 以便 ManagerNode根据心跳请求判断并记录 ClusterNode在线还是不可达; The functions of the ManagerNode may include, but are not limited to, each Clus terNode needs to confirm to the ManageNode when a node is unreachable; each Clus terNode may periodically Send a heartbeat request (including the connection status with the ManagerNode) to the ManagerNode, so that the ManagerNode determines and records whether the ClusterNode is online or unreachable according to the heartbeat request;
ManagerNode 中可以存储有 LivingNode (在线节点) 列表记录了在线节 点信息的列表、 不可达节点信息列表。  The LivingNode (Online Node) list can be stored in the ManagerNode to record a list of online node information and a list of unreachable node information.
如图 2所示, 为 ManagerNode心跳处理流程图, 具体步骤可以包括: As shown in Figure 2, for the ManagerNode heartbeat processing flow chart, the specific steps may include:
201、 ClusterNode向 ManagerNode发送心跳请求。 201. The ClusterNode sends a heartbeat request to the ManagerNode.
202、 ManagerNode接收 ClusterNode发送的心跳请求, 并在 LivingNode 列表中记录 ClusterNode的时间戳; 如果为第一次的心跳请求, 则返回响应, 响应中可以包含 ManagerNode记录的 LivingNode列表、 系统中接入节点标识 信息, 以便该 ClusterNode从接入节点中获取路由表信息; 如果心跳请求中 包含其它节点与 ManagerNode的连接状态为 false (失败连接), 则返回响应, 用于根据响应修改路由表; 如果心跳请求不包含连接状态为 false, 则不返回 口向应。  202, the ManagerNode receives the heartbeat request sent by the ClusterNode, and records the timestamp of the ClusterNode in the LivingNode list; if it is the first heartbeat request, returns a response, where the response may include a LivingNode list recorded by the ManagerNode, and an access node identifier in the system. Information, so that the ClusterNode obtains routing table information from the access node; if the heartbeat request includes other nodes and the connection status of the ManagerNode is false (failed connection), a response is returned, which is used to modify the routing table according to the response; if the heartbeat request is not If the connection status is false, the port will not return.
203、 ClusterNode接收 ManagerNode发送的上述响应。  203. The ClusterNode receives the foregoing response sent by the ManagerNode.
204、 ClusterNode收到响应后, 设置与 ManagerNode的连接状态为 True (成功连接或可达)。 其中, ManagerNode收到 ClusterNode的心跳请求或其 他请求, 都记录该 ClusterNode的状态为在线, 并记录时间戳。  204. After receiving the response, the ClusterNode sets the connection state with the ManagerNode to True (successful connection or reachable). The ManagerNode receives the heartbeat request of the ClusterNode or other requests, records the status of the ClusterNode as online, and records the timestamp.
ManagerNode 被动的判断集群节点不可达, 即 ManagerNode 接收 ClusterNode发送的不可达报告请求后,根据该不可达报告请求中包含的被汇 报不可达节点上次的心跳记录(时间戳), 判断被汇报不可达节点是否掉线, 并向发送不可达报告请求的 ClusterNode返回信息。 其中, 不可达报告请求 还可以包含但不限于不可达节点的标识信息等。  The ManagerNode passively determines that the cluster node is unreachable. That is, after receiving the unreachable report request sent by the ClusterNode, the ManagerNode determines that the reported heartbeat record (timestamp) of the unreachable node included in the unreachable report request is judged to be unreachable. Whether the node is dropped and returns information to the ClusterNode that sent the unreachable report request. The unreachable report request may also include, but is not limited to, identification information of the unreachable node.
如图 3所示, 为一个 Range (路由区间) 中路由处理的逻辑图, 其中, 任 意 Range中可以包括至少一个 Clus terNode,且每个 Clus terNode在任意 Range 中可以为 Master (主节点)或 Slave (备份节点)。每个 Range中包含的 Master, 和 Slave中存储的信息相同, Master可以处理写和读操作请求, Slave可以 处理读操作请求。 其中, 若处理请求不为接入节点处理, 则首先将路由请求路由到路由请 求中包含的标 i只 Key所在 Range的 Master中, ^口果 Master不可达, 口果 处理请求为写请求, 则返回处理失败响应; 如果处理请求为读请求, 则根据 路由表可以将处理请求继续路由到该 Range的 Slave中。 As shown in FIG. 3, it is a logic diagram of routing processing in a Range, where any Range may include at least one Clus terNode, and each Clus terNode may be a Master or a Slave in any Range. (backup node). The Master contained in each Range is the same as the information stored in the Slave. The Master can handle write and read operation requests, and Slave can process read operation requests. If the processing request is not processed by the access node, the routing request is first routed to the Master of the Range key that is included in the routing request, and the master is unreachable, and the processing request is a write request. Return processing failure response; If the processing request is a read request, the processing request can be further routed to the Range's slave according to the routing table.
路由表中可以记录了所有节点的路由信息, 例如, 可以记录了系统各 Range中包含的 Master信息和 Slave信息。  The routing information of all nodes can be recorded in the routing table. For example, the Master information and Slave information contained in each Range of the system can be recorded.
各 ClusterNode用于处理相应终端的请求,下面以其中一个 ClusterNode 为例, 如图 4所示, ClusterNode处理终端请求的步骤可以包括:  Each ClusterNode is used to process the request of the corresponding terminal. For example, one of the ClusterNodes is as follows. As shown in FIG. 4, the step of the ClusterNode processing the terminal request may include:
401、 接入节点接收终端发送的处理请求, 该处理请求包含处理该请求的 401. The access node receives a processing request sent by the terminal, where the processing request includes processing the request.
Key; Key;
402、 判断处理请求的中包含的 Key 所在 Range 是否为接入节点所在的 Range, 如果否, 执行步骤 403; 如果是, 转步骤 404;  402, determining whether the range of the Key included in the processing request is the range in which the access node is located, if not, executing step 403; if yes, proceeding to step 404;
403、 获得 Key所在 Range的 Master信息;  403. Obtain the Master information of the Range where the Key is located;
4031、 判断 403中获取的 Master是否在线; 如果是, 转步骤 4032; 如果 否, 转步骤 406;  4031, determining whether the Master obtained in 403 is online; if yes, go to step 4032; if no, go to step 406;
4032、 将该处理请求发送至 Master中处理;  4032. Send the processing request to the master for processing;
404、判断接入节点与 ManagerNode的连接是否正常;如果正常,转向 4041; 如果不正常, 则执行步骤 405;  404, determining whether the connection between the access node and the ManagerNode is normal; if normal, go to 4041; if not, proceed to step 405;
4041、 本地处理该处理请求;  4041. Process the processing request locally;
405、 判断是读请求还是其他请求; 如果是读请求, 转向 4041; 否则转向 405. Determine whether it is a read request or other request; if it is a read request, turn to 4041;
406; 406;
406、 返回处理失败的响应, 处理结束。  406. Return the response that failed to process, and the process ends.
下面提供一些实施例对本方案进行具体说明。  Some embodiments are provided below to specifically illustrate the solution.
实施例一  Embodiment 1
本实施例提供一种路由管理的方法, 如图 5所示, 可以包括以下步骤: 501、 第一节点向第二节点发送更新请求, 并接收第二节点发送的第二节 点的路由条目版本信息。 502、 第一节点确定本地路由条目版本信息与第二节点的路由条目版本信 息不一致的路由条目。 The embodiment provides a method for routing management. As shown in FIG. 5, the method may include the following steps: 501. The first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node. . 502. The first node determines a routing entry in which the local routing entry version information is inconsistent with the routing entry version information of the second node.
503、 第一节点将不一致的路由条目的信息发送给第二节点, 以便于第一 节点和第二节点根据不一致的路由条目的信息更新各自的路由条目。  503. The first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entry.
釆用上述方法后, 第一节点向第二节点发送更新请求, 并接收第二节点 发送的第二节点的路由条目版本信息; 第一节点确定本地路由条目版本信息 与第二节点的路由条目版本信息不一致的路由条目; 第一节点将不一致的路 由条目的信息发送给第二节点, 以便于第一节点和第二节点根据不一致的路 由条目的信息更新各自的路由条目。 使得不仅仅只依赖管理节点对其他节点 进行路由表更新, 任意节点均可对路由表进行更新, 减轻了管理节点的负担, 进而增加了系统性能。  After the foregoing method, the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; the first node determines the local routing entry version information and the routing entry version of the second node. The routing entry with inconsistent information; the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry according to the information of the inconsistent routing entry. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
实施例二  Embodiment 2
作为改进, 本实施例提供另一种路由管理的方法, 该方法是对图 5 所示 的方法的进一步扩展, 其中, 不一致的路由条目的信息包括第一路由条目以 及第一路由条目对应的第一路由条目版本信息, 如图 6 所示, 可以包括以下 步骤:  As an improvement, this embodiment provides another method for route management, which is a further extension of the method shown in FIG. 5, wherein the information of the inconsistent routing entry includes the first routing entry and the corresponding number of the first routing entry. A routing entry version information, as shown in Figure 6, can include the following steps:
601、判断第一节点与管理节点之间是否不可达。若可达,则执行步骤 602; 若不可达, 则流程结束。  601. Determine whether the first node and the management node are unreachable. If it is reachable, step 602 is performed; if it is not reachable, the process ends.
若可达, 则第一节点与管理节点连接正常, 若不可达, 则第一节点与管 理节点连接不正常。  If the connection is reachable, the connection between the first node and the management node is normal. If the connection is unreachable, the connection between the first node and the management node is abnormal.
第一节点和第二节点可以为同一路由区间中的或不同路由区间中的 S lave 或 Mas ter , 以下均以第一节点和第二节点为同一路由区间中的 S lave 或 Mas ter为例进行说明。  The first node and the second node may be S lave or Mas ter in the same routing interval or in different routing intervals, and the following takes the first node and the second node as S lave or Mas ter in the same routing interval as an example. Description.
路由条目可以包含但不限于: 该路由条目对应的 Range、该 Range节点列 表, 节点列表可以包含但不限于 Ma s ter信息、 和 S lave信息。  The routing entry may include, but is not limited to: a Range corresponding to the routing entry, a list of the Range nodes, and the list of nodes may include, but is not limited to, information of the s ter, and S lave information.
作为本实施例的一种实施方式, 节点的路由表中可以包含但不限于: 路 由条目列表、 和路由条目版本信息列表, 且路由条目列表可以包含至少一个 路由条目, 路由条目版本信息列表可以包含对应的至少一个路由条目版本信 息。 As an implementation manner of this embodiment, the routing table of the node may include, but is not limited to: a routing entry list, and a routing entry version information list, and the routing entry list may include at least one The routing entry, the routing entry version information list may include corresponding at least one routing entry version information.
本实施例对判断节点是否不可达的方法不作限定, 可以根据实际需要进 行设定, 在此不再赘述。  The method for determining whether a node is unreachable is not limited in this embodiment, and may be set according to actual needs, and details are not described herein again.
602、 第一节点向第二节点发送更新请求, 并接收第二节点发送的第二节 点的路由条目版本信息。  602. The first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node.
更新请求可以用于但不限于指示第一节点和第二节点将各自的路由表更 新为最新的路由表, 最新的路由表可以包含但不限于第一节点和第二节点中 最新的路由条目及最新的路由条目版本信息等。  The update request may be used for, but not limited to, indicating that the first node and the second node update the respective routing table to the latest routing table, and the latest routing table may include, but is not limited to, the latest routing entries in the first node and the second node. The latest routing entry version information, etc.
作为本实施例的一种实施方式, 第一节点向第二节点发送更新请求的触 发条件可以为但不限于: 第一节点在更新完本地的路由表后主动触发的; 或 者, 第一节点周期性向第二节点发送更新请求。  As an implementation manner of this embodiment, the triggering condition that the first node sends the update request to the second node may be: but not limited to: the first node actively triggers after updating the local routing table; or, the first node period The sex sends an update request to the second node.
节点包含的路由表可能会根据实际情况进行相应变化, 则此时, 路由表 中相应的路由条目及路由条目版本信息均需要进行同步更新, 更新后路由条 目版本信息的版本号可能发生变化。  The routing table included in the node may be changed according to the actual situation. In this case, the corresponding routing entries and routing entry version information in the routing table need to be updated synchronously. The version number of the routing entry version information may change after the update.
进一步的, 如图 7 所示, 为路由条目包含的信息列表、 和路由条目版本 信息包含的信息列表。  Further, as shown in FIG. 7, a list of information included in the routing entry, and a list of information included in the routing entry version information.
其中, 路由条目记录了当前系统的不同路由条目的信息, 主要用于进行 请求路由的查询、 判断、 转发, 每个路由条目可以包含 Range 信息 71、 Repl icaNodeLi s t(节点列表) 72记录了该 Range数据在集群节点的分布状况, 即该路由条目中包含的 Mas ter信息 73、 和 S lave信息 74 (可以包括但不限 于: S lave_ l ( 741 )、 S lave_2 ( 742 )等), 每一个 Repl icaNodeLi s t 72 中, 不能存在两个相同的节点, 但是, 同一个节点可以位于不同的路由条目中。  The routing entry records information about different routing entries of the current system, and is mainly used for querying, judging, and forwarding of request routing. Each routing entry may include Range information 71, Repl icaNodeLi st (node list) 72 records the Range The distribution of data in the cluster nodes, that is, the Mas ter information 73 and the S lave information 74 included in the routing entry (which may include but are not limited to: S lave_l (741), S lave_2 (742), etc.), each Repl In icaNodeLi st 72, there can be no two identical nodes, but the same node can be in different routing entries.
Range可以表示路由区间, 如可以表示为但不限于( 0x0000 , OxFFFF]等。 各个路由条目之间不存在重合的 Range , 即各 Range之间不存在交集, 所 有 Range的并集是一个全集, 通常的, 可以将 Range作为区别路由条目和路 由条目版本信息的标识信息; 每个 Clus terNode接收到请求, 根据请求中的 Key, 从路由条目列表中判断该 Key对应的 Range , 并获得该 Range 对应的 Repl icaNodeLi s t中的处理该请求的节点,通常情况下由 Range对应的 Ma s ter 进行处理。 Range can represent the routing interval, as can be expressed as, but not limited to, ( 0x0000 , OxFFFF), etc. There is no coincident Range between each routing entry, that is, there is no intersection between each Range, and all the Ranges of Range are a complete set, usually Range can be used as identification information for distinguishing routing entries and routing entry version information; each Clus terNode receives the request, according to the request Key, determining the Range corresponding to the Key from the routing entry list, and obtaining the node in the Repl icaNodeLi st corresponding to the Range, which is processed by the Range corresponding to the Range.
路由条目版本信息记录了路由条目的变化和状态, 还记载了历史上出现 过的路由条目状态。 路由条目版本信息用于维护系统各个节点路由条目的一 致性。  The routing entry version information records the changes and status of the routing entries and also records the status of routing entries that have occurred in history. The routing entry version information is used to maintain the consistency of routing entries for each node in the system.
路由条目版本信息可以包括: Range信息 75、 Range-Sta te (状态信息) 76用于描述相应路由条目的状态, 可以包括但不限于三个状态: Add (添加)、 De lete (删除)、 Modify (修改)。  The routing entry version information may include: Range information 75, Range-Sta te (status information) 76 is used to describe the status of the corresponding routing entry, and may include but is not limited to three states: Add, De lete, Modify (modify).
其中,路由条目版本信息中的 Range值 75 ,与相应的路由条目中的 Range 值 71相同。例如,路由条目 1版本信息中的 Range值,与路由条目 1中的 Range 值相同。  The Range value 75 in the routing entry version information is the same as the Range value 71 in the corresponding routing entry. For example, the Range value in the routing entry 1 version information is the same as the Range value in routing entry 1.
本实施例对路由条目版本状态不作限定, 可以根据实际需要进行设定, 在此不再赘述。  In this embodiment, the state of the routing entry is not limited, and may be set according to actual needs, and details are not described herein again.
Range-Ver s ion (版本号) 77记录了路由条目变化后, 每个路由条目的版 本号。 通常情况下, 初始值设定为 0, 每对相应的路由条目进行修改, 版本号 进行单调的变化。  Range-Ver s ion (77) records the version number of each routing entry after the routing entry has changed. Normally, the initial value is set to 0, each pair of corresponding routing entries is modified, and the version number is monotonically changed.
例如, 可以将版本号加 /减预设数值, 另外, 相同路由条目中, 版本号最 大 /最小的路由条目可能为最新的路由条目。  For example, the version number can be added/subtracted to a preset value. In addition, the routing entry with the highest/minimum version number in the same routing entry may be the latest routing entry.
本实施例对预设数值不作限定, 可以根据实际需要进行设定, 例如, 可 以为: 1、 或 2等, 在此不再赘述。  The preset value is not limited in this embodiment, and may be set according to actual needs. For example, it may be: 1, or 2, etc., and details are not described herein again.
进一步的, 可以但不限于根据版本号判断第一节点与第二节点之间相对 应的路由条目和路由条目版本信息是否一致。  Further, it may be, but is not limited to, determining whether the corresponding routing entry and routing entry version information between the first node and the second node are consistent according to the version number.
下面对路由表变化进行举例说明:  The following is an example of routing table changes:
若所属某一路由条目中的 S lave向 Mas ter发送信息后超出预设时间后还 未获取相应反馈信息, 则 S lave判断该路由条目中的 Mas ter是否不可达; 具 体的判断方法可以为但不限于: S lave向 Manager发送不可达报告请求, 并根 据 Manager反馈的信息进行判断。 若 S lave与 Manager之间可达, 且 Mas ter 与 Manager之间不可达,则此时,可以将 S lave修改为该路由条目中的 Ma s ter , 因此, S lave存储的路由表中相应的路由条目也需要进行相应的修改。 并且, 修改后的路由条目对应的路由条目版本信息的版本号被加 1。 这种情况下, 可 本信息包括的路由条目的状态可以为 Modify。 If the slave in the routing entry does not obtain the corresponding feedback information after sending the message to the Mas ter for more than the preset time, the slave determines whether the Mas ter in the routing entry is unreachable. The specific judgment method may be Not limited to: S lave sends an unreachable report request to the Manager, and root According to the information fed back by the Manager, the judgment is made. If the slave is reachable to the Manager and the Mas ter is unreachable between the Manager and the Manager, then the S lave can be modified to the s ter in the routing entry. Therefore, the corresponding routing table in the S lave storage Routing entries also need to be modified accordingly. Moreover, the version number of the routing entry version information corresponding to the modified routing entry is incremented by one. In this case, the status of the routing entry that can be included in this information can be Modify.
作为本实施例的一种实施方式, 第二节点在接收到第一节点发送的更新 请求后, 判断第一节点的路由条目版本信息与第二节点的路由条目版本信息 是否相同, 若不相同, 则第二节点向第一节点发送第二节点的路由条目版本 信息; 若相同, 则流程结束。  As an implementation manner of this embodiment, after receiving the update request sent by the first node, the second node determines whether the routing entry version information of the first node is the same as the routing entry version information of the second node, if not, Then, the second node sends the routing entry version information of the second node to the first node; if the same, the process ends.
作为本实施例的一种实施方式, 第二节点判断第一节点的路由条目版本 信息与第二节点的路由条目版本信息是否相同的方法可以为但不限于: 第二 节点计算用于描述第二节点的路由条目版本信息内容的第二内容标识; 然后, 比较第一内容标识与第二内容标识是否相同, 其中, 第一内容标识是第一节 点计算的并向第二节点发送的用于描述第一节点的路由条目版本信息内容的 标识。  As an implementation manner of this embodiment, the method for determining, by the second node, whether the routing entry version information of the first node is the same as the routing entry version information of the second node may be, but not limited to: the second node calculation is used to describe the second a second content identifier of the routing item version information content of the node; and then comparing whether the first content identifier is the same as the second content identifier, where the first content identifier is calculated by the first node and sent to the second node for description The identifier of the routing entry version information content of the first node.
若第一内容标识与第二内容标识不相同, 说明第一节点的路由条目版本 信息与第二节点的路由条目版本信息不同。  If the first content identifier is different from the second content identifier, the routing entry version information of the first node is different from the routing entry version information of the second node.
作为本实施例的一种实施方式, 第一内容标识与第二内容标识可以为但 不限于 Hash_Va lue (某一数值的名称), 则此时, 计算第一内容标识与第二内 容标识的方法可以为: 对第一节点的路由条目版本信息与第二节点的路由条 目版本信息分别作 Ha sh处理, 得到第一内容标识与第二内容标识。  As an implementation manner of this embodiment, the first content identifier and the second content identifier may be, but not limited to, Hash_Va lue (a name of a certain value), and at this time, the method for calculating the first content identifier and the second content identifier The method may be: performing a hash processing on the routing entry version information of the first node and the routing entry version information of the second node, to obtain the first content identifier and the second content identifier.
603、 第一节点确定本地路由条目版本信息与第二节点的路由条目版本信 息不一致的路由条目。  603. The first node determines a routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node.
本实施例对确定不一致的路由条目的方法不作限定, 可以根据实际需要 进行设定, 在此不再赘述。  The method for determining the inconsistent routing entries is not limited in this embodiment, and may be set according to actual needs, and details are not described herein again.
例如, 可以根据版本号确定不一致的路由条目, 即获取版本号不一致的 路由条目版本信息, 再获取不一致的路由条目版本信息对应的路由条目。 进一步的, 当对路由表中的某一路由条目和相应的路由条目版本信息进 行修改后, 若将该路由条目版本信息的版本号加预设值, 则版本号最大的路 由条目版本信息即为最新的路由条目版本信息; 若将版本号减预设值, 则版 本号最小的路由条目版本信息即为最新的路由条目版本信息。 不一致的路由 条目也可以包括但不限于第一节点与第二节点中最新的路由条目版本信息对 应的路由条目。 For example, an inconsistent routing entry can be determined based on the version number, that is, the version number is inconsistent. The routing entry version information is obtained, and the routing entry corresponding to the inconsistent routing entry version information is obtained. Further, after modifying a routing entry in the routing table and the corresponding routing entry version information, if the version number of the routing entry version information is added to a preset value, the routing entry version information with the largest version number is The latest routing entry version information; if the version number is reduced by the preset value, the routing entry version information with the smallest version number is the latest routing entry version information. Inconsistent routing entries may also include, but are not limited to, routing entries corresponding to the latest routing entry version information in the first node and the second node.
例如, 以版本号最大的路由条目版本信息为最新的路由条目版本信息为 例进行说明 (以下实施例均以此为例进行说明), 第二节点的路由表包含: 路 由条目 1版本信息、 路由条目 2版本信息、 路由条目 3版本信息的版本号分 别可以为: 1、 2、 5 , 第一节点的路由表包含: 路由条目 1版本信息、 路由条 目 2版本信息、 路由条目 3版本信息的版本号分别可以为: 1、 3、 3 , 则最新 的路由表可以包含: 版本号为 2的路由条目 1版本信息及其对应的路由条目、 版本号为 3的路由条目 1版本信息及其对应的路由条目、 版本号为 5的路由 条目 3版本信息及其对应的路由条目。  For example, the routing entry version information with the highest version number is used as the latest routing entry version information as an example (the following examples are all taken as an example), and the routing table of the second node includes: routing entry 1 version information, routing The version 2 version information and the version number of the routing entry 3 version information may be: 1, 2, 5, and the routing table of the first node includes: routing entry 1 version information, routing entry 2 version information, routing entry 3 version information version The numbers can be: 1, 3, 3, then the latest routing table can contain: version number 2 routing entry 1 version information and its corresponding routing entry, version number 3 routing entry 1 version information and its corresponding Routing entry, routing entry with version number 5, version information, and its corresponding routing entry.
604、 第一节点将不一致的路由条目的信息发送给第二节点, 以便于第一 节点和第二节点根据不一致的路由条目的信息更新各自的路由条目。  604. The first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entry.
进一步的, 不一致的路由条目的信息可以包括第一路由条目以及第一路 由条目对应的第一路由条目版本信息, 第一路由条目包括第一节点中路由条 目版本较新的路由条目, 第一路由条目版本信息包括第一路由条目对应的路 由条目版本信息。  Further, the information of the inconsistent routing entry may include the first routing entry and the first routing entry version information corresponding to the first routing entry, where the first routing entry includes a routing entry with a newer routing entry version in the first node, and the first routing The entry version information includes routing entry version information corresponding to the first routing entry.
此时, 如步骤 603 所列举的例子, 第一路由条目可以包含: 版本号为 1 的路由条目 1版本信息对应的路由条目、 版本号为 3的路由条目 2版本信息 对应的路由条目。 第一路由条目版本信息可以包含: 版本号为 2的路由条目 1 版本信息、 版本号为 3的路由条目 2版本信息。  At this time, as exemplified in step 603, the first routing entry may include: a routing entry with a version number of 1 a routing entry corresponding to the version information, a routing entry with a version number of 3, and a routing entry corresponding to the version information. The first routing entry version information may include: a routing entry with version number 2 1 version information, a routing entry with version number 3, and 2 version information.
605、 第二节点根据第一路由条目和第一路由条目版本信息更新第二节点 的路由条目和对应的路由条目版本信息。 作为本实施例的一种实施方式, 第二节点可以将第二节点的且标识信息 与第一路由条目的标识信息相同的路由条目更新为第一路由条目, 同时, 将 第二节点的且标识信息与第一路由条目版本信息的标识信息相同的路由条目 版本信息更新为第一路由条目版本信息。 605. The second node updates the routing entry of the second node and the corresponding routing entry version information according to the first routing entry and the first routing entry version information. As an implementation manner of this embodiment, the second node may update the routing entry of the second node that has the same identification information as the identifier information of the first routing entry to the first routing entry, and at the same time, identify the second node. The routing entry version information having the same information as the identification information of the first routing entry version information is updated to the first routing entry version information.
具体的, 第二节点可以将路由条目 1更新为版本号为 2的路由条目 1版 本信息对应的路由条目;并可以将路由条目 2更新为版本号为 3的路由条目 2 版本信息对应的路由条目。  Specifically, the second node may update the routing entry 1 to the routing entry corresponding to the version information of the routing entry 1 with the version number 2; and may update the routing entry 2 to the routing entry corresponding to the routing entry 2 version information of version 3. .
本实施例对路由条目标识信息和路由条目版本信息的标识信息不作限 定, 可以根据实际需要进行设定, 例如, 可以为 Range , 在此不再赘述。  In this embodiment, the identification information of the routing entry identifier information and the routing entry version information is not limited, and may be set according to actual needs. For example, it may be a Range, and details are not described herein again.
釆用上述方法后, 第一节点向第二节点发送更新请求, 并接收第二节点 发送的第二节点的路由条目版本信息; 第一节点确定本地路由条目版本信息 与第二节点的路由条目版本信息不一致的路由条目; 第一节点将不一致的路 由条目的信息发送给第二节点, 以便于第一节点和第二节点根据不一致的路 由条目的信息更新各自的路由条目。 使得不仅仅只依赖管理节点对其他节点 进行路由表更新, 任意节点均可对路由表进行更新, 减轻了管理节点的负担, 进而增加了系统性能。  After the foregoing method, the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; the first node determines the local routing entry version information and the routing entry version of the second node. The routing entry with inconsistent information; the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry according to the information of the inconsistent routing entry. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
实施例三  Embodiment 3
本实施例提供另一种路由管理的方法, 该方法是对图 5 所示的方法的进 一步扩展, 其中, 不一致的路由条目的信息包括第二节点中路由条目版本较 新的路由条目版本信息。  This embodiment provides another method for route management, which is a further extension of the method shown in FIG. 5, wherein the information of the inconsistent routing entry includes routing entry version information of the routing entry version in the second node.
值得说明的是, 实施例三与实施例二的区别在于: 不一致的路由条目的 信息中包括的内容不相同, 使得第一节点与第二节点执行的相应操作不同, 实施例三与实施例二不仅可以分开执行, 也可以合并在一起执行, 即不一致 的路由条目的信息可以包括: 第二节点中路由条目版本较新的路由条目版本 信息、 第一路由条目以及第一路由条目对应的第一路由条目版本信息中至少 一项。  It should be noted that the difference between the third embodiment and the second embodiment is as follows: the information included in the information of the inconsistent routing entries is different, so that the corresponding operations performed by the first node and the second node are different, and the third embodiment and the second embodiment are different. The information may be executed separately or in combination, that is, the information of the inconsistent routing entry may include: the routing entry version information of the newer routing entry version in the second node, the first routing entry, and the first corresponding to the first routing entry. At least one of the routing entry version information.
如图 8所示, 可以包括以下步骤: 801、判断第一节点与管理节点之间是否不可达。若可达,则执行步骤 702; 若不可达, 则流程结束。 As shown in FIG. 8, the following steps may be included: 801. Determine whether the first node and the management node are unreachable. If it is reachable, step 702 is performed; if it is not reachable, the process ends.
802、 第一节点向第二节点发送更新请求, 并接收第二节点发送的第二节 点的路由条目版本信息。  802. The first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node.
803、 第一节点确定本地路由条目版本信息与第二节点的路由条目版本信 息不一致的路由条目。  803. The first node determines a routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node.
804、 第一节点将不一致的路由条目的信息发送给第二节点, 以便于第一 节点和第二节点根据不一致的路由条目的信息更新各自的路由条目。  804. The first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entry.
进一步的, 不一致的路由条目的信息包括第二节点中路由条目版本较新 的路由条目版本信息, 同时, 指示第二节点向第一节点发送第二路由条目, 第二路由条目可以为第二节点中路由条目版本较新的路由条目版本信息对应 的路由条目。  Further, the information of the inconsistent routing entry includes the routing entry version information of the routing entry version in the second node, and indicates that the second node sends the second routing entry to the first node, where the second routing entry may be the second node. A routing entry corresponding to the routing entry version information of the newer routing entry version.
805、 第一节点接收第二节点发送的第二路由条目。  805. The first node receives a second routing entry sent by the second node.
806、 第一节点根据第二路由条目更新本地路由条目和对应的路由条目版 本信息。  806. The first node updates the local routing entry and the corresponding routing entry version information according to the second routing entry.
作为本实施例的一种实施方式, 第一节点可以将第一节点的且标识信息 与第二路由条目的标识信息相同的路由条目更新为第二路由条目; 然后, 从 第二节点的路由条目版本信息中获取第二路由条目对应的第二路由条目版本 信息; 将第一节点的且标识信息与第二路由条目版本信息的标识信息相同的 路由条目版本信息更新为第二路由条目版本信息。  As an implementation manner of this embodiment, the first node may update the routing entry of the first node and the identification information and the identification information of the second routing entry to the second routing entry; and then, the routing entry from the second node The second routing entry version information corresponding to the second routing entry is obtained in the version information. The routing entry version information of the first node and the identification information of the second routing entry version information is updated to the second routing entry version information.
本实施例中的各步骤的具体实施方式与实施例二中的实施方式类似, 在 此不再赘述。  The specific implementation manners of the steps in this embodiment are similar to the implementation manners in the second embodiment, and details are not described herein again.
釆用上述方法后, 第一节点向第二节点发送更新请求, 并接收第二节点 发送的第二节点的路由条目版本信息; 第一节点确定本地路由条目版本信息 与第二节点的路由条目版本信息不一致的路由条目; 第一节点将不一致的路 由条目的信息发送给第二节点, 以便于第一节点和第二节点根据不一致的路 由条目的信息更新各自的路由条目。 使得不仅仅只依赖管理节点对其他节点 进行路由表更新, 任意节点均可对路由表进行更新, 减轻了管理节点的负担, 进而增加了系统性能。 After the foregoing method, the first node sends an update request to the second node, and receives routing entry version information of the second node sent by the second node; the first node determines the local routing entry version information and the routing entry version of the second node. The routing entry with inconsistent information; the first node sends the information of the inconsistent routing entry to the second node, so that the first node and the second node update the respective routing entry according to the information of the inconsistent routing entry. So that not only rely on the management node for other nodes By updating the routing table, any node can update the routing table, which reduces the burden on the management node and increases system performance.
实施例四  Embodiment 4
本实施例提供一种节点, 如图 9所示, 可以包括:  This embodiment provides a node, as shown in FIG. 9, which may include:
发送器 91 , 用于向第二节点发送更新请求; 将本地路由条目版本信息与 第二节点的路由条目版本信息不一致的路由条目的信息发送给第二节点, 以 便于第一节点和第二节点根据不一致的路由条目的信息更新各自的路由条 η ·,  The transmitter 91 is configured to send an update request to the second node, and send, to the second node, the information of the routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node, so as to facilitate the first node and the second node. Update the respective routing strips η according to the information of the inconsistent routing entries,
接收器 92 , 用于接收第二节点发送的第二节点的路由条目版本信息; 处理器 93 , 用于确定不一致的路由条目。  The receiver 92 is configured to receive routing entry version information of the second node sent by the second node, and the processor 93 is configured to determine an inconsistent routing entry.
进一步的,发送器 91发送的不一致的路由条目的信息包括第一路由条目, 第一路由条目包括第一节点中路由条目版本较新的路由条目。  Further, the information of the inconsistent routing entry sent by the sender 91 includes a first routing entry, and the first routing entry includes a routing entry with a newer version of the routing entry in the first node.
进一步的, 发送器 91发送的不一致的路由条目的信息包括第二节点中路 由条目版本较新的路由条目版本信息;  Further, the information of the inconsistent routing entry sent by the sender 91 includes the routing entry version information of the newer routing entry version in the second node;
接收器 92 , 还用于接收第二节点发送的第二路由条目, 第二路由条目为 第二节点中路由条目版本较新的路由条目版本信息对应的路由条目;  The receiver 92 is further configured to receive a second routing entry sent by the second node, where the second routing entry is a routing entry corresponding to the routing entry version information of the new routing entry version of the second node;
处理器 93 , 还用于根据第二路由条目更新本地路由条目和对应的路由条 目版本信息。  The processor 93 is further configured to update the local routing entry and the corresponding routing entry version information according to the second routing entry.
进一步的, 处理器 93 , 该用于判断第一节点与管理节点之间是否可达; 发送器 91 , 还用于若处理器判断出第一节点与管理节点之间可达, 则向 第二节点发送更新请求;  Further, the processor 93 is configured to determine whether the first node is reachable to the management node, and the transmitter 91 is further configured to: if the processor determines that the first node is reachable to the management node, The node sends an update request;
接收器 92 , 还用于接收第二节点发送的第二节点的路由条目版本信息。 进一步的, 路由条目版本信息包含与对应的路由条目相同的路由区间信 息、 状态信息、 版本号。  The receiver 92 is further configured to receive routing entry version information of the second node sent by the second node. Further, the routing entry version information includes the same routing interval information, status information, and version number as the corresponding routing entry.
釆用上述方法后, 发送器向第二节点发送更新请求, 并且接收器接收第 二节点发送的第二节点的路由条目版本信息; 处理器确定本地路由条目版本 信息与第二节点的路由条目版本信息不一致的路由条目; 发送器将不一致的 路由条目的信息发送给第二节点, 以便于第一节点和第二节点根据不一致的 路由条目的信息更新各自的路由条目。 使得不仅仅只依赖管理节点对其他节 点进行路由表更新, 任意节点均可对路由表进行更新, 减轻了管理节点的负 担, 进而增加了系统性能。 After the above method, the sender sends an update request to the second node, and the receiver receives the routing entry version information of the second node sent by the second node; the processor determines the local routing entry version information and the routing entry version of the second node Inconsistent routing entries; senders will be inconsistent The information of the routing entry is sent to the second node, so that the first node and the second node update the respective routing entries according to the information of the inconsistent routing entries. It not only relies on the management node to update the routing table of other nodes, but any node can update the routing table, which reduces the burden on the management node and increases the system performance.
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但 很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘 等, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要求 书 claims
1、 一种路由管理的方法, 其特征在于, 包括: 1. A route management method, characterized by including:
第一节点向第二节点发送更新请求, 并接收第二节点发送的第二节点的路 由条目版本信息; The first node sends an update request to the second node, and receives the routing entry version information of the second node sent by the second node;
第一节点确定本地路由条目版本信息与第二节点的路由条目版本信息不一 致的路由条目; The first node determines the routing entry whose local routing entry version information is inconsistent with the routing entry version information of the second node;
第一节点将所述不一致的路由条目的信息发送给第二节点, 以便于第一节 点和第二节点根据所述不一致的路由条目的信息更新各自的路由条目。 The first node sends the information of the inconsistent routing entries to the second node, so that the first node and the second node update their respective routing entries based on the information of the inconsistent routing entries.
2、 根据权利要求 1所述的路由管理的方法, 其特征在于, 所述不一致的路 由条目的信息包括第一路由条目以及第一路由条目对应的第一路由条目版本信 息, 所述第一路由条目包括第一节点中路由条目版本较新的路由条目, 所述第 一路由条目版本信息包括所述第一路由条目对应的路由条目版本信息; 2. The route management method according to claim 1, characterized in that, the information of the inconsistent routing entries includes a first routing entry and first routing entry version information corresponding to the first routing entry, and the first routing entry The entries include routing entries with a newer routing entry version in the first node, and the first routing entry version information includes routing entry version information corresponding to the first routing entry;
所述第一节点和第二节点根据所述不一致的路由条目的信息更新各自的路 由条目包括: The first node and the second node updating their respective routing entries based on the information of the inconsistent routing entries includes:
所述第二节点根据所述第一路由条目和所述第一路由条目版本信息更新第 二节点的路由条目和对应的路由条目版本信息。 The second node updates the routing entry of the second node and the corresponding routing entry version information according to the first routing entry and the first routing entry version information.
3、 根据权利要求 1或 2所述的路由管理的方法, 其特征在于, 所述不一致 的路由条目的信息包括第二节点中路由条目版本较新的路由条目版本信息; 所述方法还包括: 3. The route management method according to claim 1 or 2, characterized in that the information of the inconsistent routing entries includes routing entry version information with a newer routing entry version in the second node; the method further includes:
第一节点接收第二节点发送的第二路由条目, 所述第二路由条目为第二节 点中路由条目版本较新的路由条目版本信息对应的路由条目; 信息。 The first node receives the second routing entry sent by the second node, and the second routing entry is a routing entry corresponding to the routing entry version information with a newer routing entry version in the second node; information.
4、 根据权利要求 1至 3中任意一项所述的路由管理的方法, 其特征在于, 在所述第一节点向第二节点发送更新请求, 并接收第二节点发送的第二节点的 路由条目版本信息之前, 所述方法还包括: 4. The route management method according to any one of claims 1 to 3, characterized in that the first node sends an update request to the second node and receives the route of the second node sent by the second node. Before entering the entry version information, the method also includes:
判断所述第一节点与管理节点之间是否可达; 所述第一节点向第二节点发送更新请求, 并接收第二节点发送的第二节点 的路由条目版本信息为: Determine whether the first node and the management node are reachable; The first node sends an update request to the second node, and receives the routing entry version information of the second node sent by the second node as:
若所述第一节点与管理节点之间可达, 则所述第一节点向第二节点发送更 新请求, 并接收第二节点发送的第二节点的路由条目版本信息。 If the first node and the management node are reachable, the first node sends an update request to the second node, and receives the routing entry version information of the second node sent by the second node.
5、 根据权利要求 1至 4中任意一项所述的路由管理的方法, 其特征在于, 所述路由条目版本信息包含与对应的路由条目相同的路由区间信息、 状态信息、 版本号。 5. The route management method according to any one of claims 1 to 4, characterized in that the routing entry version information includes the same routing interval information, status information, and version number as the corresponding routing entry.
6、 一种节点, 其特征在于, 包括: 6. A node, characterized by: including:
发送器, 用于向第二节点发送更新请求; 还用于将本地路由条目版本信息 与接收器接收的第二节点的路由条目版本信息不一致的路由条目的信息发送给 第二节点, 以便于第一节点和第二节点根据所述不一致的路由条目的信息更新 各自的路由条目; The sender is used to send an update request to the second node; and is also used to send the information of the routing entry in which the local routing entry version information is inconsistent with the routing entry version information of the second node received by the receiver to the second node, so as to facilitate the second node. A node and a second node update their respective routing entries based on the information of the inconsistent routing entries;
所述接收器, 用于接收第二节点发送的第二节点的路由条目版本信息; 处理器, 用于确定所述不一致的路由条目。 The receiver is configured to receive the routing entry version information of the second node sent by the second node; the processor is configured to determine the inconsistent routing entry.
7、 根据权利要求 6所述的节点, 其特征在于, 所述发送器发送的所述不一 致的路由条目的信息包括第一路由条目以及第一路由条目对应的第一路由条目 版本信息, 所述第一路由条目包括第一节点中路由条目版本较新的路由条目, 所述第一路由条目版本信息包括所述第一路由条目对应的路由条目版本信息。 7. The node according to claim 6, wherein the information about the inconsistent routing entries sent by the sender includes a first routing entry and first routing entry version information corresponding to the first routing entry, The first routing entry includes a routing entry with a newer version of the routing entry in the first node, and the first routing entry version information includes routing entry version information corresponding to the first routing entry.
8、 根据权利要求 6或 7所述的节点, 其特征在于, 所述发送器发送的所述 不一致的路由条目的信息包括第二节点中路由条目版本较新的路由条目版本信 息; 8. The node according to claim 6 or 7, characterized in that the information of the inconsistent routing entries sent by the sender includes routing entry version information with a newer routing entry version in the second node;
所述接收器, 还用于接收第二节点发送的第二路由条目, 所述第二路由条 目为第二节点中路由条目版本较新的路由条目版本信息对应的路由条目; The receiver is also configured to receive a second routing entry sent by the second node, where the second routing entry is a routing entry corresponding to the routing entry version information with a newer routing entry version in the second node;
所述处理器, 还用于根据所述第二路由条目更新本地路由条目和对应的路 由条目版本信息。 The processor is further configured to update a local routing entry and corresponding routing entry version information according to the second routing entry.
9、 根据权利要求 6至 8任意一项所述的节点, 其特征在于, 所述处理器, 还用于判断所述第一节点与管理节点之间是否可达; 所述发送器, 还用于若所述处理器判断出所述第一节点与管理节点之间可 达, 则向第二节点发送更新请求; 9. The node according to any one of claims 6 to 8, characterized in that the processor is also used to determine whether the first node and the management node are reachable; The sender is also configured to send an update request to the second node if the processor determines that the first node and the management node are reachable;
所述接收器, 还用于接收第二节点发送的第二节点的路由条目版本信息。 The receiver is also configured to receive the routing entry version information of the second node sent by the second node.
1 0、 根据权利要求 6至 9 中任意一项所述的节点, 其特征在于, 所述路由 条目版本信息包含与对应的路由条目相同的路由区间信息、 状态信息、 版本号。 10. The node according to any one of claims 6 to 9, characterized in that the routing entry version information includes the same routing interval information, status information, and version number as the corresponding routing entry.
PCT/CN2013/073392 2012-09-14 2013-03-28 Routing management method and node WO2014040409A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210341766.7A CN103685034B (en) 2012-09-14 2012-09-14 Routing management method and nodes
CN201210341766.7 2012-09-14

Publications (1)

Publication Number Publication Date
WO2014040409A1 true WO2014040409A1 (en) 2014-03-20

Family

ID=50277566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/073392 WO2014040409A1 (en) 2012-09-14 2013-03-28 Routing management method and node

Country Status (2)

Country Link
CN (1) CN103685034B (en)
WO (1) WO2014040409A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716985B (en) * 2019-10-16 2022-09-09 北京小米移动软件有限公司 Node information processing method, device and medium
CN111092934B (en) * 2019-11-26 2022-06-07 福建天泉教育科技有限公司 Method for updating client routing and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102272A (en) * 2007-07-13 2008-01-09 北京航空航天大学 A routing update method
CN101136863A (en) * 2007-10-23 2008-03-05 金蝶软件(中国)有限公司 Routing information generating method, system and message routing method and system
CN101515899A (en) * 2009-04-01 2009-08-26 中国人民解放军信息工程大学 Route generation method and device
CN102316018A (en) * 2010-07-09 2012-01-11 中国移动通信集团公司 Method for updating routing table in network node equipment and network node equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100542341B1 (en) * 2003-02-19 2006-01-10 삼성전자주식회사 Apparatus for distributively processing BGP protocol and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102272A (en) * 2007-07-13 2008-01-09 北京航空航天大学 A routing update method
CN101136863A (en) * 2007-10-23 2008-03-05 金蝶软件(中国)有限公司 Routing information generating method, system and message routing method and system
CN101515899A (en) * 2009-04-01 2009-08-26 中国人民解放军信息工程大学 Route generation method and device
CN102316018A (en) * 2010-07-09 2012-01-11 中国移动通信集团公司 Method for updating routing table in network node equipment and network node equipment

Also Published As

Publication number Publication date
CN103685034B (en) 2017-04-12
CN103685034A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN109729111B (en) Method, apparatus and computer program product for managing distributed systems
JP6055009B2 (en) Packet processing method, apparatus and system
US9367261B2 (en) Computer system, data management method and data management program
US9608900B2 (en) Techniques for flooding optimization for link state protocols in a network topology
US9465819B2 (en) Distributed database
US9729560B2 (en) Method and device for synchronizing network data flow detection status
CN107360234A (en) Computer-readable recording medium
CN107153660B (en) Fault detection processing method and system for distributed database system
CN112039775B (en) Method and system for realizing KAD network node fast routing
US20130346513A1 (en) Migrating a chat message service provided by a chat server to a new chat server
US20130163415A1 (en) Apparatus and method for distributing a load among a plurality of communication devices
US11134015B2 (en) Load balancing through selective multicast replication of data packets
WO2022048646A1 (en) Virtual ip management method and apparatus, electronic device and storage medium
EP2775675B1 (en) Synchronization method among network devices, network device and system
CN106911769B (en) Cloud platform routing data processing method and physical server of cloud platform
US10680930B2 (en) Method and apparatus for communication in virtual network
CN114090342A (en) Storage disaster tolerance link management method, message execution node and storage control cluster
WO2014040409A1 (en) Routing management method and node
US20150381775A1 (en) Communication system, communication method, control apparatus, control apparatus control method, and program
CN110572290B (en) Master device determination method, master device determination device, electronic device, storage medium, and network system
WO2021078294A1 (en) Service coordination method and apparatus for distributed storage system, and electronic device
WO2017045431A1 (en) Management method and apparatus for graceful router restart
US20200341968A1 (en) Differential Update of Local Cache from Central Database
JP5743880B2 (en) Authentication server, authentication method, and computer program
CN113596109B (en) Service request operation method, system, device, equipment and storage medium

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: 13836914

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: 13836914

Country of ref document: EP

Kind code of ref document: A1