WO2020134933A1 - Information processing method and device, and storage medium - Google Patents

Information processing method and device, and storage medium Download PDF

Info

Publication number
WO2020134933A1
WO2020134933A1 PCT/CN2019/123127 CN2019123127W WO2020134933A1 WO 2020134933 A1 WO2020134933 A1 WO 2020134933A1 CN 2019123127 W CN2019123127 W CN 2019123127W WO 2020134933 A1 WO2020134933 A1 WO 2020134933A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
tec
information
routing
destination
Prior art date
Application number
PCT/CN2019/123127
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 WO2020134933A1 publication Critical patent/WO2020134933A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • 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/028Dynamic adaptation of the update intervals, e.g. event-triggered updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Definitions

  • This application relates to the field of communication technology, and in particular, to an information processing method, device, and storage medium.
  • routers can be used for networking to transmit packets through the formed network, etc. Each router can be used as a node. If the link between a certain node and the next hop node fails, you need to perform routing table Update.
  • the routing table in the related art establishes a piece of routing information for a path, and the routing information includes a gateway (that is, a next-hop node) and a routing network segment. When the link between a certain node and the next hop node fails, the routing network segment, gateway and other information in each routing information needs to be updated.
  • the above method needs to update the routing network segment, gateway and other information in each routing information, which will cause too much content to be modified in the routing table, so the route re-convergence time will become longer, which may affect the report The normal transmission of the text.
  • embodiments of the present application provide an information processing method, device, and storage medium.
  • the embodiments of the present application provide an information processing method including: determining that a link for transmitting a message between itself and a destination node fails; and searching for the destination node from a node table
  • the first index identifier corresponding to the Internet Protocol (IP, Internet) address of the Internet; the node table is set with the correspondence between the IP address of the node and the index identifier; from the topological equivalence class (TEC, Topology Equivalence Class) table
  • the first TEC information corresponding to the first index identifier; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least represents the outgoing direction of the message at the first node; for the first TEC information is updated.
  • An embodiment of the present application provides an information processing apparatus, which is applied to a first node.
  • the apparatus includes: a determining unit configured to determine that a link for transmitting a message between itself and a destination node fails; a searching unit configured as a slave node Look up the first index identifier corresponding to the IP address of the destination address in the table; the node table is provided with the correspondence between the IP address of the node and the index identifier; and is also configured to look up the TEC table corresponding to the first index identifier
  • the first TEC information; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least characterizes the direction of the message at the first node; the update unit is configured to configure the first TEC information To update.
  • An embodiment of the present application provides an information processing apparatus, including: a processor and a memory for storing a computer program that can be run on the processor, wherein when the processor is used to run the computer program, the The steps of an information processing method.
  • An embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, any step of the above information processing method is implemented.
  • FIG. 1 is a schematic diagram of an implementation process of an information processing method according to an embodiment of this application.
  • FIGS. 2a and 2b are a schematic diagram 1 of a topology structure of a first node and a second node according to an embodiment of the present application;
  • FIG. 3 is a schematic diagram 2 of a topology structure of a first node and a second node according to an embodiment of the present application;
  • FIG. 4 is a schematic diagram 3 of a topology of a first node and a second node according to an embodiment of this application;
  • FIG. 5 is a schematic structural diagram 1 of an information processing device according to an embodiment of the present application.
  • FIG. 6 is a second structural diagram of the information processing apparatus according to an embodiment of the present application.
  • routing technology is a must-have function of the current fifth-generation communication technology (5G, fifth Generation), which can be networked through routers to transmit packets through the formed network, etc.
  • Each router can serve as a node,
  • the data stream corresponding to the message can be voice, video, etc.
  • the routing table in the related art establishes a piece of routing information for a path, and the routing information includes a gateway (that is, a next-hop node) and a routing network segment. If the link between a certain node and the next-hop node fails, you need to update each piece of routing information (including routing network segments and gateways) corresponding to the destination node in the routing table. In this way, too much content needs to be modified in the routing table, so the route re-convergence time will become longer, which may affect the normal transmission of packets.
  • route re-convergence may refer to the process of re-establishing the routing table, sending to learning, and stabilizing after the topology structure of the network changes, and notifying all relevant routers in the network to learn of the change. That is, the behavior of discovering alternative routes by recalculating routes caused by network topology changes.
  • the first index identifier corresponds to the IP address of the destination node, that is, multiple routes from the first node to the destination node can be used It is identified by the first index identifier, and the routing network segments of multiple routes are different.
  • the link between the first node and the destination node fails, it corresponds to one route set in the routing table in the related art.
  • the solution of the embodiment of the present application does not need to update the routing network segment of each route in multiple routes, but only needs to update the first TEC information in the TEC table, because The route network segment of each route corresponding to the destination node is updated, so that the fast restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
  • An embodiment of the present application provides an information processing method, which is applied to a first node. As shown in FIG. 1, the method includes the following steps.
  • Step 101 Determine that the link for transmitting packets between itself and the destination node is faulty.
  • the first node and the destination may specifically be a router or a switch.
  • the first node may determine that the link between itself and the destination node that is transmitting a message has failed. Specifically, the first node may detect the destination address of the destination node, and when it is detected that the destination address of the destination node is abnormal, the first node may determine the link between itself and the destination node malfunction.
  • Step 102 Find the first index identifier corresponding to the IP address of the destination node from the node table; the node table is set with the correspondence between the IP address of the node and the index identifier.
  • flooding can refer to a routing algorithm that broadcasts routing information to nodes connected to itself.
  • the node M when node M in the network determines that it can transmit a message from the first node to another node D via itself, the node M can send routing information Broadcast to node A, the routing information may include the path, AMD, and the corresponding path length.
  • the routing information may include the path, AMD, and the corresponding path length.
  • node N when node N in the network determines that it can transmit a message from the first node to another node D via itself, node N can broadcast routing information to node A, and the routing information can include a path, AND , And the corresponding path length. In this way, node A can collect multiple pieces of routing information to reach node D.
  • the first node there may be multiple links from the first node to the destination node.
  • a single link between the first node and the destination node fails, in order to achieve route reconvergence, you need to Among the multiple paths to the destination node, a path without failure is selected for the first node to perform normal transmission of the message.
  • the method further includes: obtaining at least one piece of routing information; using the obtained routing information, dividing multiple routes with the same destination address into a group to obtain multiple routing groups; for each route Group, determine the index identifier, and establish the correspondence between the node's IP address and the index identifier to obtain the node table.
  • a packet can be used to reach the destination node.
  • the IP address of at least one node of the destination node of the routing group generates an index mark to mark each routing group.
  • the determination of the index identifier includes: for each routing group, determining at least one node in the network that the packet can reach the destination node of the routing group; using the determined at least one The IP address of the node determines the index identification of the corresponding routing group.
  • the establishment process of the node table may be as follows.
  • the first node is represented by node A, and there may be multiple destination nodes that node A can reach, for example, node C, node E, and node F.
  • the IP address of node C is 10.1.1.4/32; suppose that the IP address of node C is 10.1.1.4/32; there can be multiple links from node A to node C, for example, node A-node D-node C, or, node A-node B-node C, etc.; there can be multiple links from node A to node E, for example, node A-node D-node E, or node A-node B-node C -Node E, etc.; there may be multiple links from Node A to Node F, for example, Node A-Node D-Node F, or Node A-Node B-Node C-Node F, and so on.
  • the multiple routes of the destination node for node C can be divided into a group and assigned an index mark, assuming X; the multiple routes of the destination node as node E can be divided into a group and assigned an index mark, assuming Y indicates that the destination node is a plurality of routes of node F are divided into a group, and the index mark is assigned, assuming that Z is used.
  • the correspondence between the IP address of the node and the index identifier is established to obtain the node table, as shown in Table 1.
  • the corresponding relationship between the index identifier and the routing network segment can be obtained.
  • the corresponding routing network segment is divided into: 192.1.1.0/16, 192.1.2.0/16, 192.1.3.0/16;
  • the corresponding routing network The segment is divided into: 192.1.4.0/16, 192.1.5.0/16, 192.1.6.0/16; assuming there are 3 routes to node F, the corresponding routing network segment is divided into: 192.1.7.0/16, 192.1.8.0/ 16. 192.1.9.0/16, as shown in Table 2.
  • Step 103 Find the first TEC information corresponding to the first index identifier from the TEC table; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least characterizes that the message is in the first The outgoing node.
  • each link needs to be The routing network segment corresponding to the link and the next hop send information to update, so that in the process of achieving route reconvergence, more information needs to be updated, which may cause the message to not be transmitted to another undamaged in time On the link.
  • the route from the first node to the destination node may include multiple routes.
  • the route segments of the multiple routes are different.
  • route reconvergence needs to be achieved.
  • a TEC message can be established for the index identification corresponding to each destination node In this piece of TEC information, at least the relevant information of the next hop node from the first node to the destination node may be included.
  • the method further includes: for each routing group, determining the path length between the first node and the destination node to obtain at least one path length; using the at least one path length, Determine the corresponding TEC information; and establish the correspondence between the index mark and the TEC information to obtain the TEC table.
  • the TEC information may include at least the IP address of the next-hop node, the egress port of the next-hop node (which may be represented by the next-hop IP), the egress port of the first node (which may be represented by the egress interface), etc. .
  • the node in the network where the message can reach the destination node of the routing group may refer to a node that broadcasts routing information to the first node through flooding.
  • the establishment process of the TEC table may be as follows.
  • the first node is represented by node A, and there may be multiple destination nodes that node A can reach, for example, node C, node E, and node F.
  • the nodes in the network that can reach the destination node C include node C and node B; the nodes in the network that can reach the destination node E include node E, node B, and node C; the nodes in the network that can reach the destination node F Nodes include node F, node B, node C, and node D.
  • node A can determine the TEC information using the determined AC path. Specifically, the node C's IP address is used as the IP address of the next hop node in the TEC information, assuming 10.1.1.4/32 , The node C points to the output port of node A as the next hop IP in the TEC information, assuming 4.4.4.1/24, and the node A points to the output port of node C as the output interface in the TEC information, assuming 4.4.4.2/ 24. Obtain the first TEC information in Table 3.
  • the path length between the first node and the destination node needs to be used. Therefore, keyword information and path length information can be added to the TEC information; where the keyword information represents the IP of the node
  • the address and path length information characterize the path length between the first node and the corresponding destination node. Taking the TEC corresponding to the destination node C as an example, the obtained TEC information is shown in Table 4.
  • the first node may compare itself with the destination node of the routing group
  • the multiple outgoing forwarding paths are marked.
  • the specific outgoing forwarding path is determined using the TEC information, the corresponding forwarding path can be quickly found from the multiple forwarding paths.
  • the method further includes: for each routing group, determining a corresponding label set; the label set includes at least one label; one label corresponds to the destination node from the first node to the routing group A path between; the label is used to mark the path of the transmission message; the determined index set is set in the corresponding TEC information.
  • the path from node A to destination node C may be A-B-C, A-C.
  • the labels of path A-B-C are represented by 01 and the labels of path A-C are represented by 02
  • the label set ⁇ 01,02 ⁇ from node A to destination node C can be obtained, as shown in Table 5.
  • each index identifies the corresponding TEC information, which can characterize one outgoing forwarding path of the message at the first node, and can also characterize multiple outgoing forwarding paths of the message at the first node.
  • the TEC information corresponding to each index identifier may represent the two outgoing forwarding paths of the packet at the first node, where one outgoing forwarding path serves as the main forwarding path and the other The outgoing forwarding path is used as the standby forwarding path.
  • the message transmission can be performed through the standby forwarding path again to ensure the normal transmission of the message without being affected by the link failure.
  • the TEC information corresponding to each index identifier can characterize the two outgoing forwarding paths of the packet at the first node, where both outgoing forwarding paths are used as the main forwarding path.
  • the other main forwarding path can be used for message transmission to ensure the normal transmission of the message, thereby ensuring that the message transmission is not affected by the link failure.
  • Step 104 Update the first TEC information.
  • the process of updating the first TEC information may be: For each routing group, determine the path length between the first node and the second node to obtain at least one path length; the second node is a node in the network where packets can reach the scheduling destination node; use the at least one The path length determines the corresponding TEC information; the first TEC information is updated with the determined TEC information.
  • the updating of the first TEC information includes: determining the TEC information using at least one path length; the path length is the path length of the first node and the second node; The second node is a node in the network where the message can reach the destination node; the first TEC information is updated using the determined TEC information.
  • the TEC information of the new destination node is different from the first TEC information, so that the first The first TEC information in a TEC table is updated.
  • the method further includes: determining the second link after determining that the destination node fails; using at least one path length to determine TEC information; the path length is the first node and the The path length of the destination node of the second link; using the determined TEC information, the TEC table is updated.
  • updating the TEC table may refer to deleting the first TEC information in the TEC table, or replacing the first TEC information with the determined TEC information.
  • the first index identifier corresponds to the IP address of the destination node, that is, multiple routes from the first node to the destination node may use the first Indexed to identify, and the route segments of multiple routes are different.
  • the link between the first node and the destination node fails, it corresponds to a route segment in the routing table in the related art.
  • the solution of the embodiment of the present application does not need to update the routing network segment of each route in multiple routes, but only needs to update the first TEC information in the TEC table, because the purpose is not required.
  • the routing network segment of each route corresponding to the node is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
  • node A corresponds to the above-mentioned first node
  • node D corresponds to the above-mentioned destination node.
  • the specific process of node A collecting topology and routing information includes: As shown in FIGS. 2a and 2b, taking node A to reach node D as an example, node A can reach node D via node C, assuming that node A reaches node D via node C
  • the routing information is represented by route 1.
  • the routing network segment of route 1 can be preset by the user, assuming 192.1.1.1/16; then node C can start IGP flooding to pass the routing information of route 1 to node A.
  • Node A can also directly reach node D, assuming that the routing information of node A directly reaching node D is represented by route 2, the routing network segment of route 2 can be preset by the user, assuming 192.1.0.1/16; then node D can start IGP Flooding to pass routing information of route 2 to node A.
  • route 2 the routing network segment of route 2
  • node D can start IGP Flooding to pass routing information of route 2 to node A.
  • node A to reach node C as an example, node A can reach node C via node D. It is assumed that the routing information from node A to node C via node D is represented by route 3.
  • the route segment of route 3 can be preset by the user. 192.0.0.0/16; then node D can start IGP flooding to pass routing information of route 3 to node A.
  • Node A can also reach node C via node B.
  • route 4 the routing information from node A to node D via node C is represented by route 4.
  • the route segment of route 4 can be preset by the user, assuming 192.0.0.1/16; then Node B can initiate IGP flooding to pass routing information of route 4 to node A.
  • the application scenario of this application embodiment is a single link failure scenario.
  • the established node table is shown in Table 6.
  • the established TEC table is shown in Table 7.
  • Step 1 The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
  • Step 2 Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
  • the TEC information found includes: the IP address of the next hop node is 10.1.1.4/32, the IP of the next hop is 4.4.4.1/24, and the outbound interface is 4.4 .4.2/24.
  • Step 3 Update the first TEC information.
  • the processing procedure for the failure of the destination node D is as follows.
  • node A can use the determined path of ABCD to determine the TEC information, specifically, the IP address of node B, that is, 10.1.1.2/32, as the IP address of the next hop node in the TEC information, and the entry port of node B That is, 1.1.1.2/24 is taken as the next hop IP in the TEC information, and the outgoing port of node A, namely 1.1.1.1/24, is used as the outgoing interface in the TEC information to obtain the determined TEC information.
  • Use the determined TEC information to update the first TEC information found in the TEC table.
  • the index identifier X can be determined by the IP addresses of node C and node D; when the single link failure between node A and node D occurs At this time, since the destination node D has not failed, the index mark X can still be determined by the IP addresses of the nodes C and D, that is, the index mark X does not need to be updated.
  • the processing procedure for the failure of the destination node D is as follows.
  • node A when a single link between node A and node D fails, if destination node D fails, node A will determine the TEC information twice. Specifically, node A first detects the link failure. , Node A can determine the path to node D as: ABCD, and use the determined path of ABCD to determine a TEC information; after the failure of destination node D, node A can use destination node C as a new destination node, based on the destination node The TEC information corresponding to C updates the TEC table.
  • the index mark X can be determined by the IP addresses of node C and node D; after the destination node D fails, the index mark X is determined by node C The IP address is determined, that is, the index mark X needs to be updated.
  • the route can be converged to the new path, so as to ensure that the packet transmission is not affected and the convergence time is not affected.
  • multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different.
  • the routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
  • the application scenario of this application embodiment is a fast rerouting (FRR, Fast) route.
  • FRR fast rerouting
  • Step 1 The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
  • Step 2 Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
  • the TEC information found includes: the IP address of the primary next hop node is 10.1.1.4/32, the IP of the primary next hop is 4.4.4.1/24, the primary out The interface is 4.4.4.2/24.
  • the IP address of the next hop node is 10.1.1.2/32, the next hop IP is 1.1.1.2/24, and the outgoing interface is 1.1.1.1/24.
  • Step 3 Update the first TEC information.
  • the TEC information can represent the two forwarding paths of the message at node A, one as the main forwarding path and the other as the backup forwarding path, so that when the single link between node A and node D fails, it can be Use the TEC information corresponding to the backup forwarding path to determine the outgoing forwarding path for transmitting the message to ensure the normal transmission of the message.
  • multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different.
  • the routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
  • the application scenario of this application embodiment is an equivalent multi-routing scenario.
  • each main forwarding path corresponds to a piece of TEC information, including the IP address of the main next hop node, the main next hop IP, main output interface.
  • Step 1 The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
  • the index identifier X may be determined firstly corresponding to the node D.
  • Step 2 Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
  • the TEC information found includes: the IP address of the primary next hop node is 10.1.1.4/32, the IP of the primary next hop is 4.4.4.1/24, the primary out The interface is 4.4.4.2/24.
  • the IP address of the primary next hop node is 10.1.1.2/32, the primary next hop IP is 1.1.1.2/24, and the primary outgoing interface is 1.1.1.1/24.
  • Step 3 Update the first TEC information.
  • the TEC information can represent the two forwarding paths of the message at node A, both of which serve as the main forwarding path. In this way, when the link between node A and node D fails, that is, when one main forwarding path fails, you can Use the TEC information corresponding to another main forwarding path to determine the outgoing forwarding path for the transmission of the message to ensure the normal transmission of the message.
  • multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different.
  • the routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
  • the message can be transmitted on multiple primary forwarding paths.
  • the link for transmitting messages between node A and node D fails, that is, one of the multiple main forwarding paths fails, it reports from the remaining main forwarding paths of the multiple main forwarding paths Text transmission.
  • the application scenario of this application embodiment is an SR scenario.
  • the established TEC table is shown in Table 10.
  • the path from node A to destination node E may include: ADE, ABCE, which are represented by 01 and 02, respectively, to obtain the label set ⁇ 01,02 ⁇ ;
  • the path from node A to destination node F may include: ADF, ABCF, respectively 03 and 04 indicate that the label set ⁇ 03,04 ⁇ is obtained.
  • Step 1 The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
  • Step 2 Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
  • the TEC information found includes: the IP address of the next hop node is 10.1.1.4/32, the IP of the next hop is 4.4.4.1/24, and the outbound interface is 4.4 .4.2/24.
  • the found TEC information includes: the IP address of the next hop node is 10.1.1.4/32, the IP of the next hop is 4.4.4.1/24, and the outgoing interface is 4.4.4.2/24.
  • Step 3 Update the first TEC information.
  • the processing procedure for the failure of the destination node D is as follows.
  • node C when the single link between node A and node D fails, node C can also reach destination node D, and the path from node A to destination node D is A-B-C-D.
  • node A can use the determined path of ABCD to determine the TEC information, specifically, the IP address of node B, that is, 10.1.1.2/32, as the IP address of the next hop node in the TEC information, and the entry port of node B That is, 1.1.1.2/24 is taken as the next hop IP in the TEC information, and the outgoing port of node A, namely 1.1.1.1/24, is used as the outgoing interface in the TEC information to obtain the determined TEC information.
  • Use the determined TEC information to update the first TEC information found in the TEC table.
  • the processing procedure for the failure of the destination node D is as follows.
  • the first node After the first node determines the path of A-B-C-E, it can determine the corresponding label from the label set, so that when the message is transmitted, the path can be quickly found from multiple outgoing forwarding paths to realize the timely transmission of the message.
  • multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different.
  • the routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
  • the embodiment of the present application further provides an information processing apparatus, which is provided on the first node, as shown in FIG. 5, and includes the following units.
  • the determining unit 51 is configured to determine that the link for transmitting packets between itself and the destination node fails; the second node is the next hop node of the first node; and is also configured to be based on the purpose corresponding to the link
  • the IP address of the node determines the corresponding first routing network segment.
  • the searching unit 52 is configured to search for the first index identifier corresponding to the IP address of the destination address from a node table; the node table is provided with a correspondence relationship between the IP address of the node and the index identifier; and is also configured to search from the TEC table
  • the updating unit 53 is configured to update the first TEC information.
  • the first node and the destination may specifically be a router or a switch.
  • the first node may detect the destination address of the destination node, and when detecting that the destination address of the destination node is abnormal, the first node may determine the link between itself and the destination node Road failure.
  • the multiple paths of the destination node select a path that has not failed, for the first node to perform normal transmission of the message.
  • the device further includes: a table creation unit configured to obtain at least one piece of routing information; using the obtained routing information, a plurality of routes with the same destination address are divided into a group to obtain a plurality of routes Group; for each routing group, determine the index identification, and establish the correspondence between the node's IP address and the index identification to obtain the node table.
  • a table creation unit configured to obtain at least one piece of routing information; using the obtained routing information, a plurality of routes with the same destination address are divided into a group to obtain a plurality of routes Group; for each routing group, determine the index identification, and establish the correspondence between the node's IP address and the index identification to obtain the node table.
  • each routing group can use the IP address of at least one node whose packets can reach the destination node of the routing group to generate an index mark to mark each routing group.
  • the table establishment unit is specifically configured to: for each routing group, determine at least one node of the network that can reach the destination node of the routing group in the packet; use the determined at least one The IP address of the node determines the index identification of the corresponding routing group.
  • each link needs to be The routing network segment corresponding to the link and the next hop send information to update, so that in the process of achieving route reconvergence, more information needs to be updated, which may cause the message to not be transmitted to another undamaged in time On the link.
  • the route from the first node to the destination node may include multiple routes.
  • the route segments of the multiple routes are different.
  • route reconvergence needs to be achieved.
  • a TEC message can be established for the index identification corresponding to each destination node In this piece of TEC information, at least the relevant information of the next hop node from the first node to the destination node may be included.
  • the table creation unit is further configured to determine the path length between the first node and the destination node for each routing group to obtain at least one path length; the other nodes are A node in the network where the message can reach the destination node of the routing group; determine the corresponding TEC information using the at least one path length; and establish a correspondence between the index identifier and the TEC information to obtain the TEC table.
  • the TEC information may include at least the IP address of the next hop node, the egress port of the next hop node, the egress port of the first node, and so on.
  • the node in the network where the message can reach the destination node of the routing group may refer to a node that broadcasts routing information to the first node through flooding.
  • the first node may compare itself with the destination node of the routing group
  • the multiple outgoing forwarding paths are marked.
  • the specific outgoing forwarding path is determined using the TEC information, the corresponding forwarding path can be quickly found from the multiple forwarding paths.
  • the table building unit is further configured to determine a corresponding label set for each routing group; the label set includes at least one label; one label corresponds from the first node to the routing group A path between the destination nodes of the server; the label is used to mark the path of the transmission message; the determined index set is set in the corresponding TEC information.
  • the process of updating the first TEC information may be: For each routing group, determine the path length between the first node and the second node to obtain at least one path length; the second node is a node in the network where packets can reach the scheduling destination node; use the at least one The path length determines the corresponding TEC information; the first TEC information is updated with the determined TEC information.
  • the update unit 53 is specifically configured to: determine the TEC information using at least one path length; the path length is the path length of the first node and the second node; the second node It is the node other than the second node among the nodes in the network where the message can reach the destination node corresponding to the link; the first TEC information is updated with the determined TEC information.
  • the TEC information associated with the new destination node is different from the first TEC information.
  • the first TEC information in the first TEC table is updated.
  • the update unit 53 is further configured to determine the second link after determining that the destination node fails; use at least one path length to determine the TEC information; the path length is the first node The path length of the destination node with the second link; using the determined TEC information, update the TEC table.
  • updating the TEC table may refer to deleting the first TEC information in the TEC table, or replacing the first TEC information with the determined TEC information.
  • the determination unit 51, the search unit 52, the update unit 53, and the table creation unit may be implemented by a processor in the information processing device.
  • an embodiment of the present application further provides an information processing apparatus.
  • the information processing apparatus 60 includes: a communication interface 61, A processor 62 and a memory 63; wherein, the communication interface 61 can exchange information with other devices; the processor 62 is connected to the communication interface 61 and is used to execute one or more technical solutions on the node side when running a computer program The method provided.
  • the computer program is stored on the memory 63.
  • the various components in the information processing device 60 are coupled together via the bus system 84. Understandably, the bus system 64 is used to implement connection and communication between these components.
  • the bus system 84 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are marked as the bus system 64 in FIG. 6.
  • the memory 63 in the embodiment of the present application is used to store various types of data to support the operation of the information processing device 60. Examples of these data include: any computer program for operating on the information processing device 80.
  • the method disclosed in the above embodiments of the present application may be applied to the processor 62, or implemented by the processor 62.
  • the processor 62 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 62 or instructions in the form of software.
  • the above-mentioned processor 62 may be a general-purpose processor, a digital signal processor (DSP, Digital Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the processor 62 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented and completed by a hardware decoding processor, or may be implemented and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 63.
  • the processor 62 reads the information in the memory 63 and completes the steps of the foregoing method in combination with its hardware.
  • the information processing apparatus 60 may be one or more application specific integrated circuits (ASICs, Application Specific Integrated Circuits), DSPs, programmable logic devices (PLDs, Programmable Logic Devices), complex programmable logic devices (CPLD, Complex Programmable Logic Device, Field Programmable Gate Array (FPGA, Field-Programmable Gate Array), general-purpose processor, controller, microcontroller (MCU, Micro Controller), microprocessor (Microprocessor), or other Electronic components are implemented to perform the aforementioned method.
  • ASICs application specific integrated circuits
  • DSPs programmable logic devices
  • PLDs Programmable Logic Devices
  • CPLD Complex Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • MCU microcontroller
  • Microprocessor Microprocessor
  • the memory 63 in the embodiment of the present application may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read- Only Memory), Electrically Erasable Programmable Read Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, Ferromagnetic Random Access Memory), Flash Memory (Flash) Memory, Magnetic Surface Memory , Compact disc, or read-only compact disc (CD-ROM, Compact, Read-Only Memory); the magnetic surface memory can be a disk storage or a tape storage.
  • the volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • SSRAM synchronous static random access memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM SyncLink Dynamic Random Access Memory
  • DRRAM Direct Rambus Random Access Random Access Memory
  • DRRAM Direct Rambus Random Access Random Access Memory

Abstract

Disclosed are an information processing method and device, and a storage medium. The method comprises: determining occurrence of a fault in a link used to transmit packets between one node and a destination node (101); searching a node table for a first index identifier corresponding to an Internet protocol (IP) address of the destination node, wherein the node table stores correspondence relationships between IP addresses of nodes and index identifiers (102); searching a topologically equivalent class (TEC) table for first TEC information corresponding to the first index identifier (103), wherein the TEC table stores correspondence relationships between index identifiers and TEC information, and the TEC information at least represents an outbound direction in which a packet travels from the first node; and updating the first TEC information (104).

Description

一种信息处理方法、装置及存储介质Information processing method, device and storage medium
交叉引用cross reference
本申请引用于2018年12月29日递交的名称为“一种信息处理方法、装置及存储介质”的第201811642377.1号中国专利申请,其通过引用被全部并入本申请。This application refers to the Chinese patent application No. 201811642377.1 filed on December 29, 2018 and titled "An Information Processing Method, Device, and Storage Medium," which is incorporated by reference in its entirety.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种信息处理方法、装置及存储介质。This application relates to the field of communication technology, and in particular, to an information processing method, device, and storage medium.
背景技术Background technique
目前,可以通过路由器进行组网,以通过组建的网络传输报文等等,每个路由器可以作为一个节点,如果某个节点与下一跳节点之间的链路故障,则需要对路由表进行更新。相关技术中的路由表,针对一条路径建立一条路由信息,所述路由信息包括网关(即下一跳节点)、路由网段。当某个节点与下一跳节点之间的链路故障时,需要对每条路由信息中的路由网段、网关等信息进行更新。Currently, routers can be used for networking to transmit packets through the formed network, etc. Each router can be used as a node. If the link between a certain node and the next hop node fails, you need to perform routing table Update. The routing table in the related art establishes a piece of routing information for a path, and the routing information includes a gateway (that is, a next-hop node) and a routing network segment. When the link between a certain node and the next hop node fails, the routing network segment, gateway and other information in each routing information needs to be updated.
上述方式需要对每条路由信息中的路由网段、网关等信息进行更新,这样,会导致路由表中需要修改的内容过多,如此,路由重收敛的时间会变长,进而可能会影响报文的正常传输。The above method needs to update the routing network segment, gateway and other information in each routing information, which will cause too much content to be modified in the routing table, so the route re-convergence time will become longer, which may affect the report The normal transmission of the text.
发明内容Summary of the invention
为解决现有存在的技术问题,本申请实施例提供一种信息处理方法、装置及存储介质。To solve the existing technical problems, embodiments of the present application provide an information processing method, device, and storage medium.
本申请实施例的技术方案是这样实现的,本申请实施例提供一种信息处理方法,包括:确定自身与目的节点之间传输报文的链路发生故障;从节点表中查找所述目的节点的互联网协议(IP,Internet Protocol)地址对应的第一索引标识;所述节点表设置有节点的IP地址与索引标识的对应关系;从拓扑等价类(TEC,Topology Equivalence Class)表中查找与所述第一索引标识对应的第一TEC信息;所述TEC表设置有索引标识与TEC信息对应的关系;所述TEC信息至少表征报文在所述第一节点的出向;对所述第一TEC信息进行更新。The technical solutions of the embodiments of the present application are implemented in this way. The embodiments of the present application provide an information processing method including: determining that a link for transmitting a message between itself and a destination node fails; and searching for the destination node from a node table The first index identifier corresponding to the Internet Protocol (IP, Internet) address of the Internet; the node table is set with the correspondence between the IP address of the node and the index identifier; from the topological equivalence class (TEC, Topology Equivalence Class) table The first TEC information corresponding to the first index identifier; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least represents the outgoing direction of the message at the first node; for the first TEC information is updated.
本申请实施例提供一种信息处理装置,应用于第一节点,所述装置包括:确定单元,配置为确定自身与目的节点之间传输报文的链路发生故障;查找单元,配置为从节点表中查找所述目的地址的IP地址对应的第一索引标识;所述节点表设置有节点的IP地址与索引标识的对应关系;还配置为从TEC表中查找与所述第一索引标识对应的第一TEC信息;所述TEC表设置有索引标识与TEC信息对应的关系;所述TEC信息至少表征报文在所述第一节点的出向;更新单元,配置为对所述第一TEC信息进行更新。An embodiment of the present application provides an information processing apparatus, which is applied to a first node. The apparatus includes: a determining unit configured to determine that a link for transmitting a message between itself and a destination node fails; a searching unit configured as a slave node Look up the first index identifier corresponding to the IP address of the destination address in the table; the node table is provided with the correspondence between the IP address of the node and the index identifier; and is also configured to look up the TEC table corresponding to the first index identifier The first TEC information; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least characterizes the direction of the message at the first node; the update unit is configured to configure the first TEC information To update.
本申请实施例提供一种信息处理装置,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上面所述任一项信息处理方法的步骤。An embodiment of the present application provides an information processing apparatus, including: a processor and a memory for storing a computer program that can be run on the processor, wherein when the processor is used to run the computer program, the The steps of an information processing method.
本申请实施例提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上面所述任一项信息处理方法的步骤。An embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, any step of the above information processing method is implemented.
附图说明BRIEF DESCRIPTION
图1为本申请实施例信息处理方法的实现流程示意图;1 is a schematic diagram of an implementation process of an information processing method according to an embodiment of this application;
图2a、2b为本申请实施例第一节点与第二节点的拓扑结构示意图一;2a and 2b are a schematic diagram 1 of a topology structure of a first node and a second node according to an embodiment of the present application;
图3为本申请实施例第一节点与第二节点的拓扑结构示意图二;3 is a schematic diagram 2 of a topology structure of a first node and a second node according to an embodiment of the present application;
图4为本申请实施例第一节点与第二节点的拓扑结构示意图三;4 is a schematic diagram 3 of a topology of a first node and a second node according to an embodiment of this application;
图5为本申请实施例信息处理装置的结构示意图一;5 is a schematic structural diagram 1 of an information processing device according to an embodiment of the present application;
图6为本申请实施例信息处理装置的结构示意图二。6 is a second structural diagram of the information processing apparatus according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图及实施例对本申请再作进一步详细的描述。The application will be described in further detail below with reference to the drawings and embodiments.
相关技术中,路由技术是当前第五代通信技术(5G,fifth Generation)必须具备的功能,可以通过路由器进行组网,以通过组建的网络传输报文等等,每个路由器可以作为一个节点,报文对应的数据流可以为语音、视频等等。相关技术中的路由表,针对一条路径建立一条路由信息,所述路由信息包括网关(即下一跳节点)、路由网段。如果某个节点与下一跳节点之间的链路故障,则需要对路由表中目的节点对应的每条路由信息(包括路由网段、网关)进行逐条更新。这样,会导致路由表中需要修改的内容过多,如此,路由重收敛的时间会变长,进而可能会影响报文的正常传输。In the related technology, routing technology is a must-have function of the current fifth-generation communication technology (5G, fifth Generation), which can be networked through routers to transmit packets through the formed network, etc. Each router can serve as a node, The data stream corresponding to the message can be voice, video, etc. The routing table in the related art establishes a piece of routing information for a path, and the routing information includes a gateway (that is, a next-hop node) and a routing network segment. If the link between a certain node and the next-hop node fails, you need to update each piece of routing information (including routing network segments and gateways) corresponding to the destination node in the routing table. In this way, too much content needs to be modified in the routing table, so the route re-convergence time will become longer, which may affect the normal transmission of packets.
其中,路由重收敛可以是指网络的拓扑结构发生变化后,路由表重新建立到发送再到学习直至稳定,并通告网络中所有相关路由器都得知该变化的过程。也就是网络拓扑变化引起的通过重新计算路由而发现替代路由的行为。Among them, route re-convergence may refer to the process of re-establishing the routing table, sending to learning, and stabilizing after the topology structure of the network changes, and notifying all relevant routers in the network to learn of the change. That is, the behavior of discovering alternative routes by recalculating routes caused by network topology changes.
基于此,在本申请的各种实施例中,所述第一索引标识与所述目的节点的IP地址对应,也就是说,从所述第一节点到达所述目的节点的多个路由可以用所述第一索引标识来标识,且多个路由的路由网段不同,当所述第一节点与目的节点之间的链路发生故障时,与相关技术中路由表中设置的一个路由对应一个路由网段的方案相比,本申请实施例的方案不需要对多个路由中每个路由的路由网段进行更新,只需要对所述TEC表中的第一TEC信息进行更新,由于不需要对所述目的节点对应的每条路由的路由网段进行更新,因此可以保证路由的快速恢复,进而能够保证报文的正常传输。Based on this, in various embodiments of the present application, the first index identifier corresponds to the IP address of the destination node, that is, multiple routes from the first node to the destination node can be used It is identified by the first index identifier, and the routing network segments of multiple routes are different. When the link between the first node and the destination node fails, it corresponds to one route set in the routing table in the related art. Compared with the solution of the routing network segment, the solution of the embodiment of the present application does not need to update the routing network segment of each route in multiple routes, but only needs to update the first TEC information in the TEC table, because The route network segment of each route corresponding to the destination node is updated, so that the fast restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
本申请实施例提供一种信息处理方法,应用于第一节点,如图1 所示,该方法包括以下步骤。An embodiment of the present application provides an information processing method, which is applied to a first node. As shown in FIG. 1, the method includes the following steps.
步骤101:确定自身与目的节点之间传输报文的链路发生故障。Step 101: Determine that the link for transmitting packets between itself and the destination node is faulty.
这里,所述第一节点、所述目的具体可以为路由器或交换机。Here, the first node and the destination may specifically be a router or a switch.
其中,所述第一节点可以确定自身与目的节点之间正在传输报文的链路发生故障。具体地,所述第一节点可以对所述目的节点的目的地址进行检测,当检测到所述目的节点的目的地址异常时,所述第一节点可以确定自身与所述目第节点的链路发生故障。Wherein, the first node may determine that the link between itself and the destination node that is transmitting a message has failed. Specifically, the first node may detect the destination address of the destination node, and when it is detected that the destination address of the destination node is abnormal, the first node may determine the link between itself and the destination node malfunction.
步骤102:从节点表中查找所述目的节点的IP地址对应的第一索引标识;所述节点表设置有节点的IP地址与索引标识的对应关系。Step 102: Find the first index identifier corresponding to the IP address of the destination node from the node table; the node table is set with the correspondence between the IP address of the node and the index identifier.
实际应用时,网络中的节点在确定可以经由自身将报文从所述第一节点传输至另外一个节点时,所述网络中的节点可以启动洪泛,以将从所述第一节点经由自身节点达到另外一个节点的路由信息广播至所述第一节点。如此,所述第一节点可以收集到网络中的至少一条路由信息。其中,洪泛可以是指一种路由算法,即将路由信息广播至与自身连结的节点。In practical applications, when a node in the network determines that it can transmit a message from the first node to another node via itself, the node in the network may start flooding to transfer the message from the first node via itself. The routing information from the node to another node is broadcast to the first node. In this way, the first node may collect at least one piece of routing information in the network. Among them, flooding can refer to a routing algorithm that broadcasts routing information to nodes connected to itself.
举例来说,假设所述第一节点用节点A表示,网络中的节点M在确定可以经由自身将报文从所述第一节点传输至另外一个节点D时,所述节点M可以将路由信息广播至节点A,所述路由信息可以包括路径即A-M-D,以及对应的路径长度。假设网络中的节点N在确定可以经由自身将报文从所述第一节点传输至另外一个节点D时,所述节点N可以将路由信息广播至节点A,所述路由信息可以包括路径即A-N-D,以及对应的路径长度。如此,节点A可以收集到到达节点D的多条路由信息。For example, assuming that the first node is represented by node A, when node M in the network determines that it can transmit a message from the first node to another node D via itself, the node M can send routing information Broadcast to node A, the routing information may include the path, AMD, and the corresponding path length. Suppose that when node N in the network determines that it can transmit a message from the first node to another node D via itself, node N can broadcast routing information to node A, and the routing information can include a path, AND , And the corresponding path length. In this way, node A can collect multiple pieces of routing information to reach node D.
这里,所述第一节点到达目的节点的链路的可能有多条,这样,在所述第一节点与所述目的节点之间的单链路发生故障时,为了实现路由重收敛,需要从到达该目的节点的多个路径中选择一条未发生故障的路径,以供所述第一节点进行报文的的正常传输。Here, there may be multiple links from the first node to the destination node. In this way, when a single link between the first node and the destination node fails, in order to achieve route reconvergence, you need to Among the multiple paths to the destination node, a path without failure is selected for the first node to perform normal transmission of the message.
基于此,在一实施例中,所述方法还包括:获取至少一条路由信息;利用获取的路由信息,将目的地址相同的多个路由划分为一组,得到多 个路由组;针对每个路由组,确定索引标识,并建立节点的IP地址与索引标识的对应关系,得到所述节点表。Based on this, in an embodiment, the method further includes: obtaining at least one piece of routing information; using the obtained routing information, dividing multiple routes with the same destination address into a group to obtain multiple routing groups; for each route Group, determine the index identifier, and establish the correspondence between the node's IP address and the index identifier to obtain the node table.
实际应用时,所述第一节点到达目的节点的链路的可能有多条,当将目的地址相同的多个路由划分为一组后,为了区分每个路由组,可以利用报文能够到达该路由组的目的节点的至少一个节点的IP地址,生成索引标识,以对每个路由组进行标记。In practical applications, there may be multiple links from the first node to the destination node. When multiple routes with the same destination address are divided into a group, in order to distinguish each route group, a packet can be used to reach the destination node. The IP address of at least one node of the destination node of the routing group generates an index mark to mark each routing group.
基于此,在一实施例中,所述确定索引标识,包括:针对每个路由组,确定网络中所述报文能够达到该路由组的目的节点的至少一个节点;利用确定的所述至少一个节点的IP地址,确定相应路由组的索引标识。Based on this, in an embodiment, the determination of the index identifier includes: for each routing group, determining at least one node in the network that the packet can reach the destination node of the routing group; using the determined at least one The IP address of the node determines the index identification of the corresponding routing group.
这里,所述节点表的建立过程可以如下。Here, the establishment process of the node table may be as follows.
举例来说,假设所述第一节点用节点A表示,节点A可以到达的目的节点可以有多个,比如,节点C、节点E、节点F。其中,假设节点C的IP地址为10.1.1.4/32;假设节点C的IP地址为10.1.1.4/32;节点A到达节点C的链路可以有多条,比如,节点A-节点D-节点C,或者,节点A-节点B-节点C,等等;节点A到达节点E的链路可以有多条,比如,节点A-节点D-节点E,或者,节点A-节点B-节点C-节点E,等等;节点A到达节点F的链路可以有多条,比如,节点A-节点D-节点F,或者,节点A-节点B-节点C-节点F,等等。这样,可以将目的节点为节点C的多个路由划分为一组,并分配索引标识,假设用X表示;将目的节点为节点E的多个路由划分为一组,并分配索引标识,假设用Y表示;将目的节点为节点F的多个路由划分为一组,并分配索引标识,假设用Z表示。建立节点的IP地址与索引标识的对应关系,得到所述节点表,如表1所示。For example, assume that the first node is represented by node A, and there may be multiple destination nodes that node A can reach, for example, node C, node E, and node F. Among them, assume that the IP address of node C is 10.1.1.4/32; suppose that the IP address of node C is 10.1.1.4/32; there can be multiple links from node A to node C, for example, node A-node D-node C, or, node A-node B-node C, etc.; there can be multiple links from node A to node E, for example, node A-node D-node E, or node A-node B-node C -Node E, etc.; there may be multiple links from Node A to Node F, for example, Node A-Node D-Node F, or Node A-Node B-Node C-Node F, and so on. In this way, the multiple routes of the destination node for node C can be divided into a group and assigned an index mark, assuming X; the multiple routes of the destination node as node E can be divided into a group and assigned an index mark, assuming Y indicates that the destination node is a plurality of routes of node F are divided into a group, and the index mark is assigned, assuming that Z is used. The correspondence between the IP address of the node and the index identifier is established to obtain the node table, as shown in Table 1.
Figure PCTCN2019123127-appb-000001
Figure PCTCN2019123127-appb-000001
Figure PCTCN2019123127-appb-000002
Figure PCTCN2019123127-appb-000002
表1Table 1
由于所述第一节点到达目的节点的链路可以有多条,每条链路对应一个路由网段,因此可以得到索引标识与路由网段的对应关系。假设到达节点C的路由有3个,对应的路由网段分为:192.1.1.0/16、192.1.2.0/16、192.1.3.0/16;假设到达节点E的路由有3个,对应的路由网段分为:192.1.4.0/16、192.1.5.0/16、192.1.6.0/16;假设到达节点F的路由有3个,对应的路由网段分为:192.1.7.0/16、192.1.8.0/16、192.1.9.0/16,如表2所示。Since there may be multiple links between the first node and the destination node, and each link corresponds to a routing network segment, the corresponding relationship between the index identifier and the routing network segment can be obtained. Suppose there are 3 routes to node C, and the corresponding routing network segment is divided into: 192.1.1.0/16, 192.1.2.0/16, 192.1.3.0/16; suppose there are 3 routes to node E, the corresponding routing network The segment is divided into: 192.1.4.0/16, 192.1.5.0/16, 192.1.6.0/16; assuming there are 3 routes to node F, the corresponding routing network segment is divided into: 192.1.7.0/16, 192.1.8.0/ 16. 192.1.9.0/16, as shown in Table 2.
Figure PCTCN2019123127-appb-000003
Figure PCTCN2019123127-appb-000003
表2Table 2
步骤103:从TEC表中查找与所述第一索引标识对应的第一TEC信息;所述TEC表设置有索引标识与TEC信息对应的关系;所述TEC信息至少表征报文在所述第一节点的出向。Step 103: Find the first TEC information corresponding to the first index identifier from the TEC table; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least characterizes that the message is in the first The outgoing node.
实际应用时,考虑到相关技术中,针对一条链路,建立路由网段与下一跳转发信息的对应关系,且当到达任意一个下一跳节点的链路出现故障时,需要对每条链路对应的路由网段、下一跳转发信息进行更新,这样,在实现路由重收敛的过程中,需要更新的信息较多,如此,可能导致报文不能及时传输到另外一条未故障的链路上。In practical application, considering the related technology, for a link, the corresponding relationship between the routing network segment and the next hop sending information is established, and when the link to any next hop node fails, each link needs to be The routing network segment corresponding to the link and the next hop send information to update, so that in the process of achieving route reconvergence, more information needs to be updated, which may cause the message to not be transmitted to another undamaged in time On the link.
这里,从所述第一节点到达所述目的节点可以包括多个路由,多个路由的路由网段不同,在所述第一节点与目的节点的链路发生故障时,需要实现路由重收敛,以保证链路的稳定。为了实现在路由重收敛的过程中,减小路由信息的更新,即为了避免不对多个路由中每个路由的路由网段进行更新,可以针对每个目的节点对应的索引标识,建立一条TEC信息,该条TEC信息中至少可以包括从第一节点到达该目的节点的下一跳节点的相关信息。Here, the route from the first node to the destination node may include multiple routes. The route segments of the multiple routes are different. When the link between the first node and the destination node fails, route reconvergence needs to be achieved. To ensure the stability of the link. In order to reduce the update of routing information during the process of route re-convergence, that is, to avoid not updating the routing network segment of each route in multiple routes, a TEC message can be established for the index identification corresponding to each destination node In this piece of TEC information, at least the relevant information of the next hop node from the first node to the destination node may be included.
基于此,在一实施例中,所述方法还包括:针对每个路由组,确定所述第一节点与目的节点之间的路径长度,得到至少一个路径长度;利用所述至少一个路径长度,确定相应的TEC信息;并建立索引标识与TEC信息的对应关系,得到所述TEC表。Based on this, in an embodiment, the method further includes: for each routing group, determining the path length between the first node and the destination node to obtain at least one path length; using the at least one path length, Determine the corresponding TEC information; and establish the correspondence between the index mark and the TEC information to obtain the TEC table.
其中,TEC信息中可以至少包括下一跳节点的IP地址、下一跳节点的出端口(可以用下一跳IP表示)、所述第一节点的出端口(可以用出接口表示)等等。Wherein, the TEC information may include at least the IP address of the next-hop node, the egress port of the next-hop node (which may be represented by the next-hop IP), the egress port of the first node (which may be represented by the egress interface), etc. .
这里,所述网络中报文能够到达该路由组的目的节点的节点可以是指通过洪泛广播给所述第一节点的路由信息的节点。Here, the node in the network where the message can reach the destination node of the routing group may refer to a node that broadcasts routing information to the first node through flooding.
这里,所述TEC表的建立过程可以如下。Here, the establishment process of the TEC table may be as follows.
举例来说,假设所述第一节点用节点A表示,节点A可以到达的目的节点可以有多个,比如,节点C、节点E、节点F。假设网络中报文能够到达目的节点C的节点包括节点C、节点B;网络中报文能够到达目的节点E的节点包括节点E、节点B、节点C;网络中报文能够到达目的节点F的节点包括节点F、节点B、节点C、节点D。For example, assume that the first node is represented by node A, and there may be multiple destination nodes that node A can reach, for example, node C, node E, and node F. Suppose that the nodes in the network that can reach the destination node C include node C and node B; the nodes in the network that can reach the destination node E include node E, node B, and node C; the nodes in the network that can reach the destination node F Nodes include node F, node B, node C, and node D.
以节点A可以到达的目的节点C为例,说明TEC信息的计算过程,具体如下。Take the destination node C that node A can reach as an example to explain the calculation process of TEC information, as follows.
节点A可以计算节点A与节点C之间的路径长度,用metric1表示,假设metric1=1,节点A、节点B、节点C之间的路径长度,用metric2表示,假设metric1=2;节点A可以将metric1与metric2进行比较,可以确定一个路径长度最小的路径,即节点A-节点C对应的路径。Node A can calculate the path length between node A and node C, expressed by metric1, assuming metric1=1, the path length between node A, node B, and node C, expressed by metric2, assuming metric1=2; node A can By comparing metric1 and metric2, a path with the smallest path length can be determined, that is, the path corresponding to node A-node C.
确定的A-C的路径之后,节点A可以利用确定的A-C的路径,确定TEC信息,具体地,将节点C的IP地址作为TEC信息中的下一跳节点的IP地址,假设为10.1.1.4/32,将节点C指向节点A的出端口作为TEC信息中下一跳IP,假设为4.4.4.1/24,将节点A指向节点C的出端口作为TEC信息中的出接口,假设为4.4.4.2/24,得到表3中的第一条TEC信息。After the determined AC path, node A can determine the TEC information using the determined AC path. Specifically, the node C's IP address is used as the IP address of the next hop node in the TEC information, assuming 10.1.1.4/32 , The node C points to the output port of node A as the next hop IP in the TEC information, assuming 4.4.4.1/24, and the node A points to the output port of node C as the output interface in the TEC information, assuming 4.4.4.2/ 24. Obtain the first TEC information in Table 3.
需要说明的是,节点A到达的目的节点E和目的节点F的情况,可以参照上述描述,在此不再赘述。It should be noted that, for the situation of the destination node E and the destination node F reached by the node A, reference may be made to the above description, which will not be repeated here.
Figure PCTCN2019123127-appb-000004
Figure PCTCN2019123127-appb-000004
Figure PCTCN2019123127-appb-000005
Figure PCTCN2019123127-appb-000005
表3table 3
实际应用时,计算TEC信息时,需要利用所述第一节点与目的节点之间的路径长度,因此,可以将在TEC信息增加关键字信息、路径长度信息;其中,关键字信息表征节点的IP地址,路径长度信息表征所述第一节点与能够到达相应目的节点之间的路径长度。以目的节点C对应的TEC为例,得到的TEC信息如表4所示。In actual application, when calculating the TEC information, the path length between the first node and the destination node needs to be used. Therefore, keyword information and path length information can be added to the TEC information; where the keyword information represents the IP of the node The address and path length information characterize the path length between the first node and the corresponding destination node. Taking the TEC corresponding to the destination node C as an example, the obtained TEC information is shown in Table 4.
Figure PCTCN2019123127-appb-000006
Figure PCTCN2019123127-appb-000006
表4Table 4
实际应用时,考虑到网络中报文经所述第一节点的出向转发路径可以有多条,这样,针对每个路由组,所述第一节点可以对自身与该路由组的目的节点之间的多条出向转发路径进行标记,当利用TEC信息确定了具体的出向转发路径后,可以从多条出现转发路径中快速找到对应的转发路径。In practical application, considering that there may be multiple outgoing forwarding paths of packets in the network via the first node, in this way, for each routing group, the first node may compare itself with the destination node of the routing group The multiple outgoing forwarding paths are marked. When the specific outgoing forwarding path is determined using the TEC information, the corresponding forwarding path can be quickly found from the multiple forwarding paths.
基于此,在一实施例中,所述方法还包括:针对每个路由组,确定对应的标签集;所述标签集包括至少一个标签;一个标签对应从第一节点至该路由组的目的节点之间的一条路径;所述标签用于对传输报文的路径进行标记;将确定的索引集设置在与相应的TEC信息中。Based on this, in an embodiment, the method further includes: for each routing group, determining a corresponding label set; the label set includes at least one label; one label corresponds to the destination node from the first node to the routing group A path between; the label is used to mark the path of the transmission message; the determined index set is set in the corresponding TEC information.
举例来说,假设所述第一节点用节点A表示,目的节点用节点C表示,节点A到达目的节点C的路径可以为A-B-C,A-C。假设路径A-B-C的标签用01表示,路径A-C的标签用02表示,则可以得到节点A到达目的节点C的标签集{01,02},如表5所示。For example, assume that the first node is represented by node A and the destination node is represented by node C, and the path from node A to destination node C may be A-B-C, A-C. Assuming that the labels of path A-B-C are represented by 01 and the labels of path A-C are represented by 02, the label set {01,02} from node A to destination node C can be obtained, as shown in Table 5.
Figure PCTCN2019123127-appb-000007
Figure PCTCN2019123127-appb-000007
表5table 5
实际应用时,每个索引标识对应的TEC信息,可以表征报文在所述第一节点的一条出向转发路径,也可以表征报文在所述第一节点的多条出向转发路径。In practical application, each index identifies the corresponding TEC information, which can characterize one outgoing forwarding path of the message at the first node, and can also characterize multiple outgoing forwarding paths of the message at the first node.
举例来说,应用于快速重路由场景时,每个索引标识对应的TEC信息可以表征报文在所述第一节点的两条出向转发路径,其中,一条出向转发路径作为主转发路径,另一条出向转发路径作为备转发路径,如此,当通过主转发路径进行报文传输出现问题时,可以再次通过备转发路径进行报文传输,以保证报文的正常传输,不受链路故障的影响。For example, when applied to a fast rerouting scenario, the TEC information corresponding to each index identifier may represent the two outgoing forwarding paths of the packet at the first node, where one outgoing forwarding path serves as the main forwarding path and the other The outgoing forwarding path is used as the standby forwarding path. In this way, when there is a problem with the message transmission through the main forwarding path, the message transmission can be performed through the standby forwarding path again to ensure the normal transmission of the message without being affected by the link failure.
应用于等价多路由场景时,每个索引标识对应的TEC信息可以表征报文在所述第一节点的两条出向转发路径,其中,两条出向转发路径均作为主转发路径,如此,当利用其中一个主转发路径进行报文传输出现问题时,可以通过另外一个主转发路径进行报文传输,以保证报文的正常传输,从而保证报文传输不受链路故障的影响。When applied to an equal-cost multi-routing scenario, the TEC information corresponding to each index identifier can characterize the two outgoing forwarding paths of the packet at the first node, where both outgoing forwarding paths are used as the main forwarding path. When there is a problem with one of the main forwarding paths for message transmission, the other main forwarding path can be used for message transmission to ensure the normal transmission of the message, thereby ensuring that the message transmission is not affected by the link failure.
步骤104:对所述第一TEC信息进行更新。Step 104: Update the first TEC information.
实际应用时,如果所述第一节点到达的目的节点未发生故障,且所述第一节点可以经由其他节点到达所述目的节点时,对所述第一TEC信息进行更新的过程可以为:针对每个路由组,确定所述第一节点与第二节点之间的路径长度,得到至少一个路径长度;所述第二节点为网络中报文能够到达调度目的节点的节点;利用所述至少一个路径长度,确定相应的TEC信息;用确定的TEC信息更新所述第一TEC信息。In practical applications, if the destination node reached by the first node has not failed, and the first node can reach the destination node via other nodes, the process of updating the first TEC information may be: For each routing group, determine the path length between the first node and the second node to obtain at least one path length; the second node is a node in the network where packets can reach the scheduling destination node; use the at least one The path length determines the corresponding TEC information; the first TEC information is updated with the determined TEC information.
基于此,在一实施例中,所述对所述第一TEC信息进行更新,包括:利用至少一个路径长度,确定TEC信息;路径长度为所述第一节点与第二节点的路径长度;所述第二节点为网络中报文能够到达所述目的节点的节点;利用确定的TEC信息更新所述第一TEC信息。Based on this, in an embodiment, the updating of the first TEC information includes: determining the TEC information using at least one path length; the path length is the path length of the first node and the second node; The second node is a node in the network where the message can reach the destination node; the first TEC information is updated using the determined TEC information.
需要说明的是,当所述第一节点与所述目的节点之间的链路发生故障时,只对所述TEC表中的第一TEC信息进行更新,由于不需要对所述目的节点对应的每条路由的路由网段进行更新。因而,可以实现路由的快速收敛,保证报文的及时传输。It should be noted that when the link between the first node and the destination node fails, only the first TEC information in the TEC table is updated, because there is no need to correspond to the destination node. The routing network segment of each route is updated. Therefore, the route can be quickly converged to ensure the timely transmission of packets.
实际应用时,如果所述第一节点到达的目的节点发生故障,则需要重新选择一个新的目的节点,新的目的节点的TEC信息与所述第一TEC信 息不同,这样,可以对所述第一TEC表中的所述第一TEC信息进行更新。In actual application, if the destination node reached by the first node fails, a new destination node needs to be reselected. The TEC information of the new destination node is different from the first TEC information, so that the first The first TEC information in a TEC table is updated.
基于此,在一实施例中,所述方法还包括:确定所述目的节点故障后,确定第二链路;利用至少一个路径长度,确定TEC信息;路径长度为所述第一节点与所述第二链路的目的节点的路径长度;利用确定的TEC信息,对所述TEC表进行更新。Based on this, in an embodiment, the method further includes: determining the second link after determining that the destination node fails; using at least one path length to determine TEC information; the path length is the first node and the The path length of the destination node of the second link; using the determined TEC information, the TEC table is updated.
这里,对所述TEC表进行更新可以是指将所述TEC表中的第一TEC信息进行删除,或者利用确定的TEC信息对所述第一TEC信息进行替换。Here, updating the TEC table may refer to deleting the first TEC information in the TEC table, or replacing the first TEC information with the determined TEC information.
采用本申请实施例的技术方案,所述第一索引标识与所述目的节点的IP地址对应,也就是说,从所述第一节点到达所述目的节点的多个路由可以用所述第一索引标识来标识,且多个路由的路由网段不同,当所述第一节点与目的节点之间的链路发生故障时,与相关技术中路由表中设置的一个路由对应一个路由网段的方案相比,本申请实施例的方案不需要对多个路由中每个路由的路由网段进行更新,只需要对所述TEC表中的第一TEC信息进行更新,由于不需要对所述目的节点对应的每条路由的路由网段进行更新,因此可以保证路由的快速恢复,进而能够保证报文的正常传输。Using the technical solution of the embodiment of the present application, the first index identifier corresponds to the IP address of the destination node, that is, multiple routes from the first node to the destination node may use the first Indexed to identify, and the route segments of multiple routes are different. When the link between the first node and the destination node fails, it corresponds to a route segment in the routing table in the related art. Compared with the solution, the solution of the embodiment of the present application does not need to update the routing network segment of each route in multiple routes, but only needs to update the first TEC information in the TEC table, because the purpose is not required. The routing network segment of each route corresponding to the node is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
下面结合应用实施例对本申请再作进一步详细的描述。The application will be described in further detail below in conjunction with application examples.
以下各应用实施例中,节点A对应上述第一节点,节点D对应上述目的节点。In the following application embodiments, node A corresponds to the above-mentioned first node, and node D corresponds to the above-mentioned destination node.
节点A收集拓扑及路由信息的具体过程包括:如图2a和图2b所示,以节点A到达节点D为例,节点A可以经由节点C到达节点D,假设节点A经由节点C到达节点D的路由信息用路由1表示,路由1的路由网段可以由用户预先设置,假设为192.1.1.1/16;则节点C可以启动IGP洪泛,以将路由1的路由信息传递给节点A。节点A还可以直接到达节点D,假设节点A直接到达节点D的路由信息用路由2表示,路由2的路由网段可以由用户预先设置,假设为192.1.0.1/16;则节点D可以启动IGP洪泛,以将路由2的路由信息传递给节点A。以节点A到达节点C为例,节点A可以经由节点D到达节点C,假设节点A经由节点D到达节点C的路由信息用路由 3表示,路由3的路由网段可以由用户预先设置,假设为192.0.0.0/16;则节点D可以启动IGP洪泛,以将路由3的路由信息传递给节点A。节点A还可以经由节点B到达节点C,假设节点A经由节点C到达节点D的的路由信息用路由4表示,路由4的路由网段可以由用户预先设置,假设为192.0.0.1/16;则节点B可以启动IGP洪泛,以将路由4的路由信息传递给节点A。The specific process of node A collecting topology and routing information includes: As shown in FIGS. 2a and 2b, taking node A to reach node D as an example, node A can reach node D via node C, assuming that node A reaches node D via node C The routing information is represented by route 1. The routing network segment of route 1 can be preset by the user, assuming 192.1.1.1/16; then node C can start IGP flooding to pass the routing information of route 1 to node A. Node A can also directly reach node D, assuming that the routing information of node A directly reaching node D is represented by route 2, the routing network segment of route 2 can be preset by the user, assuming 192.1.0.1/16; then node D can start IGP Flooding to pass routing information of route 2 to node A. Taking node A to reach node C as an example, node A can reach node C via node D. It is assumed that the routing information from node A to node C via node D is represented by route 3. The route segment of route 3 can be preset by the user. 192.0.0.0/16; then node D can start IGP flooding to pass routing information of route 3 to node A. Node A can also reach node C via node B. It is assumed that the routing information from node A to node D via node C is represented by route 4. The route segment of route 4 can be preset by the user, assuming 192.0.0.1/16; then Node B can initiate IGP flooding to pass routing information of route 4 to node A.
应用实施例一Application Example 1
本应用实施例中,如图3、4所示,本应用实施例的应用场景为单链路故障场景。In this application embodiment, as shown in FIGS. 3 and 4, the application scenario of this application embodiment is a single link failure scenario.
另外,本应用实施例中,建立的节点表,如表6所示。建立的TEC表,如表7所示。In addition, in this application example, the established node table is shown in Table 6. The established TEC table is shown in Table 7.
Figure PCTCN2019123127-appb-000008
Figure PCTCN2019123127-appb-000008
表6Table 6
Figure PCTCN2019123127-appb-000009
Figure PCTCN2019123127-appb-000009
Figure PCTCN2019123127-appb-000010
Figure PCTCN2019123127-appb-000010
表7Table 7
第一步:节点A确定自身与节点D之间的链路发生故障,则从节点表中查找节点D的IP地址对应的第一索引标识。Step 1: The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
从表6中,可以确定出节点D对应的第一索引标识为X。From Table 6, it can be determined that the first index identifier corresponding to node D is X.
第二步:节点A从TEC表中查找与所述第一索引标识对应的第一TEC信息。Step 2: Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
从表7中,针对节点D对应的索引标识X,查找出的TEC信息包括:下一跳节点的IP地址为10.1.1.4/32,下一跳IP为4.4.4.1/24,出接口为4.4.4.2/24。From Table 7, for the index ID X corresponding to node D, the TEC information found includes: the IP address of the next hop node is 10.1.1.4/32, the IP of the next hop is 4.4.4.1/24, and the outbound interface is 4.4 .4.2/24.
第三步:对所述第一TEC信息进行更新。Step 3: Update the first TEC information.
针对目的节点D未发生故障的处理过程具体如下。The processing procedure for the failure of the destination node D is as follows.
如图3所示,当节点A与节点D之间的单链路故障时,目的节点D未发生故障,节点C还可以到达目的节点D,节点A到达目的节点D的路径为A-B-C-D。这样,节点A可以利用确定的A-B-C-D的路径,确定TEC信息,具体地,将节点B的IP地址即10.1.1.2/32作为TEC信息中的下一跳节点的IP地址,将节点B的入端口即1.1.1.2/24作为TEC信息中下一跳IP,将节点A的出端口即1.1.1.1/24作为TEC信息中的出接口,得到确定后的TEC信息。利用确定后的TEC信息对从TEC表中查找到的第一TEC信息进行更新。As shown in FIG. 3, when the single link between node A and node D fails, destination node D does not fail, node C can also reach destination node D, and the path from node A to destination node D is A-B-C-D. In this way, node A can use the determined path of ABCD to determine the TEC information, specifically, the IP address of node B, that is, 10.1.1.2/32, as the IP address of the next hop node in the TEC information, and the entry port of node B That is, 1.1.1.2/24 is taken as the next hop IP in the TEC information, and the outgoing port of node A, namely 1.1.1.1/24, is used as the outgoing interface in the TEC information to obtain the determined TEC information. Use the determined TEC information to update the first TEC information found in the TEC table.
需要说明的是,节点A与节点D之间未发生单链路故障之前,索引标识X可以由节点C和节点D的IP地址进行确定;当节点A与节点D之间的单链路发生故障时,由于目的节点D未发生故障,因此,索引标识X仍然可以由节点C和节点D的IP地址进行确定,也就是说,不需要更新索引 标识X。It should be noted that before a single link failure occurs between node A and node D, the index identifier X can be determined by the IP addresses of node C and node D; when the single link failure between node A and node D occurs At this time, since the destination node D has not failed, the index mark X can still be determined by the IP addresses of the nodes C and D, that is, the index mark X does not need to be updated.
针对目的节点D发生故障的处理过程具体如下。The processing procedure for the failure of the destination node D is as follows.
如图4所示,当节点A与节点D之间的单链路故障时,如果目的节点D发生故障,节点A会确定两次TEC信息,具体地,节点A先感知到链路故障,这样,节点A可以确定到达节点D的路径为:A-B-C-D,并利用确定的A-B-C-D的路径,确定一次TEC信息;目的节点D发生故障后,节点A可以将目的节点C作为新的目的节点,基于目的节点C对应的TEC信息对所述TEC表进行更新。As shown in FIG. 4, when a single link between node A and node D fails, if destination node D fails, node A will determine the TEC information twice. Specifically, node A first detects the link failure. , Node A can determine the path to node D as: ABCD, and use the determined path of ABCD to determine a TEC information; after the failure of destination node D, node A can use destination node C as a new destination node, based on the destination node The TEC information corresponding to C updates the TEC table.
需要说明的是,节点A与节点D之间未发生单链路故障之前,索引标识X可以由节点C和节点D的IP地址进行确定;目的节点D发生故障后,索引标识X由节点C的IP地址进行确定,也就是说,索引标识X需要更新。It should be noted that before a single link failure occurs between node A and node D, the index mark X can be determined by the IP addresses of node C and node D; after the destination node D fails, the index mark X is determined by node C The IP address is determined, that is, the index mark X needs to be updated.
这里,当目的节点D发生故障时,可以将路由收敛到新路径上,这样,可以保证报文传输不受影响,也不影响收敛时间。这里,节点A到节点D的多个路由可以用索引标识X表示,且多个路由的路由网段不同,当节点A到节点D之间的单链路发生故障时,由于不需要对节点D对应的每条路由的路由网段进行更新,因此可以保证路由的快速恢复,进而能够保证报文的正常传输。Here, when the destination node D fails, the route can be converged to the new path, so as to ensure that the packet transmission is not affected and the convergence time is not affected. Here, multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different. When the single link between node A and node D fails, since node D is not required The routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
应用实施例二Application Example 2
本应用实施例中,如图3所示,本应用实施例的应用场景为快速重路由(FRR,Fast Reroute)场景。In this application embodiment, as shown in FIG. 3, the application scenario of this application embodiment is a fast rerouting (FRR, Fast) route.
另外,本应用实施例中,建立的TEC表,如表8所示。In addition, in this application example, the established TEC table is shown in Table 8.
Figure PCTCN2019123127-appb-000011
Figure PCTCN2019123127-appb-000011
Figure PCTCN2019123127-appb-000012
Figure PCTCN2019123127-appb-000012
表8Table 8
第一步:节点A确定自身与节点D之间的链路发生故障,则从节点表中查找节点D的IP地址对应的第一索引标识。Step 1: The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
从表6中,可以确定出节点D对应的第一索引标识为X。From Table 6, it can be determined that the first index identifier corresponding to node D is X.
第二步:节点A从TEC表中查找与所述第一索引标识对应的第一TEC信息。Step 2: Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
从表8中,针对节点D对应的索引标识X,查找出的TEC信息包括:主下一跳节点的IP地址为10.1.1.4/32,主下一跳IP为4.4.4.1/24,主出接口为4.4.4.2/24。备下一跳节点的IP地址为10.1.1.2/32,备下一跳IP为1.1.1.2/24,备出接口为1.1.1.1/24。From Table 8, for the index ID X corresponding to node D, the TEC information found includes: the IP address of the primary next hop node is 10.1.1.4/32, the IP of the primary next hop is 4.4.4.1/24, the primary out The interface is 4.4.4.2/24. The IP address of the next hop node is 10.1.1.2/32, the next hop IP is 1.1.1.2/24, and the outgoing interface is 1.1.1.1/24.
第三步:对所述第一TEC信息进行更新。Step 3: Update the first TEC information.
从表8可知,TEC信息可以表征报文在节点A的两条转发路径,一条作为主转发路径,另外一条作为备转发路径,这样,在节点A与节点D的单链路发生故障时,可以利用备转发路径对应的TEC信息,确定对报文进行传输的出向转发路径,以保证报文的正常传输。As can be seen from Table 8, the TEC information can represent the two forwarding paths of the message at node A, one as the main forwarding path and the other as the backup forwarding path, so that when the single link between node A and node D fails, it can be Use the TEC information corresponding to the backup forwarding path to determine the outgoing forwarding path for transmitting the message to ensure the normal transmission of the message.
这里,节点A到节点D的多个路由可以用索引标识X表示,且多个路由的路由网段不同,当节点A到节点D之间的单链路发生故障时,由于 不需要对节点D对应的每条路由的路由网段进行更新,因此可以保证路由的快速恢复,进而能够保证报文的正常传输。Here, multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different. When the single link between node A and node D fails, since node D is not required The routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
应用实施例三Application Example 3
本应用实施例中,本应用实施例的应用场景为等价多路由场景。In this application embodiment, the application scenario of this application embodiment is an equivalent multi-routing scenario.
另外,本应用实施例中,建立的TEC表,如表9所示。等价多路由场景下,可以将节点A与节点D之间的多条路径设置为主转发路径,每条主转发路径对应一条TEC信息,包括主下一跳节点的IP地址、主下一跳IP、主出接口。In addition, in this application example, the established TEC table is shown in Table 9. In an equivalent multi-routing scenario, multiple paths between node A and node D can be set as the main forwarding path, each main forwarding path corresponds to a piece of TEC information, including the IP address of the main next hop node, the main next hop IP, main output interface.
Figure PCTCN2019123127-appb-000013
Figure PCTCN2019123127-appb-000013
表9Table 9
第一步:节点A确定自身与节点D之间的链路发生故障,则从节点表中查找节点D的IP地址对应的第一索引标识。Step 1: The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
从表6中,可以节点D对应的第一确定出索引标识为X。From Table 6, the index identifier X may be determined firstly corresponding to the node D.
第二步:节点A从TEC表中查找与所述第一索引标识对应的第一 TEC信息。Step 2: Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
从表9中,针对节点D对应的索引标识X,查找出的TEC信息包括:主下一跳节点的IP地址为10.1.1.4/32,主下一跳IP为4.4.4.1/24,主出接口为4.4.4.2/24。主下一跳节点的IP地址为10.1.1.2/32,主下一跳IP为1.1.1.2/24,主出接口为1.1.1.1/24。From Table 9, for the index ID X corresponding to node D, the TEC information found includes: the IP address of the primary next hop node is 10.1.1.4/32, the IP of the primary next hop is 4.4.4.1/24, the primary out The interface is 4.4.4.2/24. The IP address of the primary next hop node is 10.1.1.2/32, the primary next hop IP is 1.1.1.2/24, and the primary outgoing interface is 1.1.1.1/24.
第三步:对所述第一TEC信息进行更新。Step 3: Update the first TEC information.
从表9可知,TEC信息可以表征报文在节点A的两条转发路径,均作为主转发路径,这样,在节点A与节点D的链路发生故障时,即一条主转发路径故障时,可以利用另外一条主转发路径对应的TEC信息,确定对报文进行传输的出向转发路径,以保证报文的正常传输。It can be seen from Table 9 that the TEC information can represent the two forwarding paths of the message at node A, both of which serve as the main forwarding path. In this way, when the link between node A and node D fails, that is, when one main forwarding path fails, you can Use the TEC information corresponding to another main forwarding path to determine the outgoing forwarding path for the transmission of the message to ensure the normal transmission of the message.
这里,节点A到节点D的多个路由可以用索引标识X表示,且多个路由的路由网段不同,当节点A到节点D之间的单链路发生故障时,由于不需要对节点D对应的每条路由的路由网段进行更新,因此可以保证路由的快速恢复,进而能够保证报文的正常传输。Here, multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different. When the single link between node A and node D fails, since node D is not required The routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
需要说明的是,等价多路由场景下,在节点A与节点D之间传输报文的链路未发生故障之前,在多条主转发路径上均可以进行报文的传输。在节点A与节点D之间传输报文的链路发生故障后,即多条主转发路径中有一条主转发路径发生故障后,就从多条主转发路径中剩余的主转发路径上进行报文的传输。It should be noted that, in an equivalent multi-routing scenario, before the link between node A and node D transmits a message, the message can be transmitted on multiple primary forwarding paths. When the link for transmitting messages between node A and node D fails, that is, one of the multiple main forwarding paths fails, it reports from the remaining main forwarding paths of the multiple main forwarding paths Text transmission.
应用实施例四Application Example 4
本应用实施例中,如图3所示,本应用实施例的应用场景为SR场景。建立的TEC表,如表10所示。In this application embodiment, as shown in FIG. 3, the application scenario of this application embodiment is an SR scenario. The established TEC table is shown in Table 10.
Figure PCTCN2019123127-appb-000014
Figure PCTCN2019123127-appb-000014
Figure PCTCN2019123127-appb-000015
Figure PCTCN2019123127-appb-000015
表10Table 10
这里,节点A到达目的节点E的路径可以包括:A-D-E,A-B-C-E,分别用01、02表示,得到标签集{01,02};节点A到达目的节点F的路径可以包括:A-D-F,A-B-C-F,分别用03、04表示,得到标签集{03,04}。Here, the path from node A to destination node E may include: ADE, ABCE, which are represented by 01 and 02, respectively, to obtain the label set {01,02}; the path from node A to destination node F may include: ADF, ABCF, respectively 03 and 04 indicate that the label set {03,04} is obtained.
第一步:节点A确定自身与节点D之间的链路发生故障,则从节点表中查找节点D的IP地址对应的第一索引标识。Step 1: The node A determines that the link between itself and the node D has failed, and then searches the node table for the first index identifier corresponding to the IP address of the node D.
从表6中,可以确定出节点D对应的第一索引标识为X。From Table 6, it can be determined that the first index identifier corresponding to node D is X.
第二步:节点A从TEC表中查找与所述第一索引标识对应的第一TEC信息。Step 2: Node A looks up the first TEC information corresponding to the first index identifier from the TEC table.
从表10中,针对节点D对应的索引标识X,查找出的TEC信息包括:下一跳节点的IP地址为10.1.1.4/32,下一跳IP为4.4.4.1/24,出接口为4.4.4.2/24。针对索引标识Z,查找出的TEC信息包括:下一跳节点的IP地址为10.1.1.4/32,下一跳IP为4.4.4.1/24,出接口为4.4.4.2/24。From Table 10, for the index ID X corresponding to node D, the TEC information found includes: the IP address of the next hop node is 10.1.1.4/32, the IP of the next hop is 4.4.4.1/24, and the outbound interface is 4.4 .4.2/24. For the index identifier Z, the found TEC information includes: the IP address of the next hop node is 10.1.1.4/32, the IP of the next hop is 4.4.4.1/24, and the outgoing interface is 4.4.4.2/24.
第三步:对所述第一TEC信息进行更新。Step 3: Update the first TEC information.
针对目的节点D未发生故障的处理过程具体如下。The processing procedure for the failure of the destination node D is as follows.
如图3所示,当节点A与节点D之间的单链路故障时,节点C还可以 到达目的节点D,节点A到达目的节点D的路径为A-B-C-D。这样,节点A可以利用确定的A-B-C-D的路径,确定TEC信息,具体地,将节点B的IP地址即10.1.1.2/32作为TEC信息中的下一跳节点的IP地址,将节点B的入端口即1.1.1.2/24作为TEC信息中下一跳IP,将节点A的出端口即1.1.1.1/24作为TEC信息中的出接口,得到确定后的TEC信息。利用确定后的TEC信息对从TEC表中查找到的第一TEC信息进行更新。As shown in Figure 3, when the single link between node A and node D fails, node C can also reach destination node D, and the path from node A to destination node D is A-B-C-D. In this way, node A can use the determined path of ABCD to determine the TEC information, specifically, the IP address of node B, that is, 10.1.1.2/32, as the IP address of the next hop node in the TEC information, and the entry port of node B That is, 1.1.1.2/24 is taken as the next hop IP in the TEC information, and the outgoing port of node A, namely 1.1.1.1/24, is used as the outgoing interface in the TEC information to obtain the determined TEC information. Use the determined TEC information to update the first TEC information found in the TEC table.
针对目的节点D发生故障的处理过程具体如下。The processing procedure for the failure of the destination node D is as follows.
如图4所示,当节点A与节点D之间的单链路故障时,节点D发生故障,则需要确定目的节点为节点C的第二链路,基于节点C对应的TEC信息对所述TEC表进行更新。As shown in FIG. 4, when the single link between node A and node D fails, node D fails, you need to determine the destination node as the second link of node C, based on the corresponding TEC information of node C The TEC table is updated.
这里,所述第一节点确定A-B-C-E的路径后,可以从标签集中确定对应的标签,以在传输报文时可以从多条出向转发路径中快速找到该路径,实现报文的及时传输。Here, after the first node determines the path of A-B-C-E, it can determine the corresponding label from the label set, so that when the message is transmitted, the path can be quickly found from multiple outgoing forwarding paths to realize the timely transmission of the message.
这里,节点A到节点D的多个路由可以用索引标识X表示,且多个路由的路由网段不同,当节点A到节点D之间的单链路发生故障时,由于不需要对节点D对应的每条路由的路由网段进行更新,因此可以保证路由的快速恢复,进而能够保证报文的正常传输。Here, multiple routes from node A to node D can be represented by index mark X, and the route segments of multiple routes are different. When the single link between node A and node D fails, since node D is not required The routing network segment corresponding to each route is updated, so that the rapid restoration of the route can be ensured, and then the normal transmission of the message can be ensured.
为了实现本申请实施例的方法,本申请实施例还提供了一种信息处理装置,设置在第一节点上,如图5所示,包括以下单元。In order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an information processing apparatus, which is provided on the first node, as shown in FIG. 5, and includes the following units.
确定单元51,配置为确定自身与目的节点之间传输报文的链路发生故障;所述第二节点为所述第一节点的下一跳节点;还配置为基于所述链路对应的目的节点的IP地址,确定对应的第一路由网段。The determining unit 51 is configured to determine that the link for transmitting packets between itself and the destination node fails; the second node is the next hop node of the first node; and is also configured to be based on the purpose corresponding to the link The IP address of the node determines the corresponding first routing network segment.
查找单元52,配置为从节点表中查找所述目的地址的IP地址对应的第一索引标识;所述节点表设置有节点的IP地址与索引标识的对应关系;还配置为从TEC表中查找与所述第一索引标识对应的第一TEC信息;所述TEC表设 置有索引标识与TEC信息对应的关系;所述TEC信息至少表征报文在所述第一节点的出向。The searching unit 52 is configured to search for the first index identifier corresponding to the IP address of the destination address from a node table; the node table is provided with a correspondence relationship between the IP address of the node and the index identifier; and is also configured to search from the TEC table The first TEC information corresponding to the first index identifier; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least represents the outbound direction of the message at the first node.
更新单元53,配置为对所述第一TEC信息进行更新。The updating unit 53 is configured to update the first TEC information.
这里,所述第一节点、所述目的具体可以为路由器或交换机。Here, the first node and the destination may specifically be a router or a switch.
实际应用时,所述第一节点可以对所述目的节点的目的地址进行检测,当检测到所述目的节点的目的地址异常时,所述第一节点可以确定自身与所述目第节点的链路发生故障。In practical applications, the first node may detect the destination address of the destination node, and when detecting that the destination address of the destination node is abnormal, the first node may determine the link between itself and the destination node Road failure.
所述第一节点到达目的节点的链路的可能有多条,这样,在所述第一节点与所述目的节点之间的单链路发生故障时,为了实现路由重收敛,需要从到达该目的节点的多个路径中选择一条未发生故障的路径,以供所述第一节点进行报文的的正常传输。There may be multiple links from the first node to the destination node. In this way, when a single link between the first node and the destination node fails, in order to achieve route reconvergence, it is necessary to The multiple paths of the destination node select a path that has not failed, for the first node to perform normal transmission of the message.
基于此,在一实施例中,所述装置还包括:表建立单元,配置为获取至少一条路由信息;利用获取的路由信息,将目的地址相同的多个路由划分为一组,得到多个路由组;针对每个路由组,确定索引标识,并建立节点的IP地址与索引标识的对应关系,得到所述节点表。Based on this, in an embodiment, the device further includes: a table creation unit configured to obtain at least one piece of routing information; using the obtained routing information, a plurality of routes with the same destination address are divided into a group to obtain a plurality of routes Group; for each routing group, determine the index identification, and establish the correspondence between the node's IP address and the index identification to obtain the node table.
实际应用时,所述第一节点经由下一跳节点即所述第二节点到达目的节点的链路的可能有多条,当将目的地址相同的多个路由划分为一组后,为了区分每个路由组,可以利用报文能够到达该路由组的目的节点的至少一个节点的IP地址,生成索引标识,以对每个路由组进行标记。In practical applications, there may be multiple links from the first node to the destination node via the next hop node, that is, the second node. When multiple routes with the same destination address are divided into a group, in order to distinguish each Each routing group can use the IP address of at least one node whose packets can reach the destination node of the routing group to generate an index mark to mark each routing group.
基于此,在一实施例中,所述表建立单元,具体配置为:针对每个路由组,确定网络中报文能够达到该路由组的目的节点的至少一个节点;利用确定的所述至少一个节点的IP地址,确定相应路由组的索引标识。Based on this, in an embodiment, the table establishment unit is specifically configured to: for each routing group, determine at least one node of the network that can reach the destination node of the routing group in the packet; use the determined at least one The IP address of the node determines the index identification of the corresponding routing group.
实际应用时,考虑到相关技术中,针对一条链路,建立路由网段与下一跳转发信息的对应关系,且当到达任意一个下一跳节点的链路出现故障时,需要对每条链路对应的路由网段、下一跳转发信息进行更新,这样,在实现路 由重收敛的过程中,需要更新的信息较多,如此,可能导致报文不能及时传输到另外一条未故障的链路上。In practical application, considering the related technology, for a link, the corresponding relationship between the routing network segment and the next hop sending information is established, and when the link to any next hop node fails, each link needs to be The routing network segment corresponding to the link and the next hop send information to update, so that in the process of achieving route reconvergence, more information needs to be updated, which may cause the message to not be transmitted to another undamaged in time On the link.
这里,从所述第一节点到达所述目的节点可以包括多个路由,多个路由的路由网段不同,在所述第一节点与目的节点的链路发生故障时,需要实现路由重收敛,以保证链路的稳定。为了实现在路由重收敛的过程中,减小路由信息的更新,即为了避免不对多个路由中每个路由的路由网段进行更新,可以针对每个目的节点对应的索引标识,建立一条TEC信息,该条TEC信息中至少可以包括从第一节点到达该目的节点的下一跳节点的相关信息。Here, the route from the first node to the destination node may include multiple routes. The route segments of the multiple routes are different. When the link between the first node and the destination node fails, route reconvergence needs to be achieved. To ensure the stability of the link. In order to reduce the update of routing information during the process of route re-convergence, that is, to avoid not updating the routing network segment of each route in multiple routes, a TEC message can be established for the index identification corresponding to each destination node In this piece of TEC information, at least the relevant information of the next hop node from the first node to the destination node may be included.
基于此,在一实施例中,所述表建立单元,还配置为针对每个路由组,确定所述第一节点与目的节点之间的路径长度,得到至少一个路径长度;所述其它节点为网络中报文能够到达该路由组的目的节点的节点;利用所述至少一个路径长度,确定相应的TEC信息;并建立索引标识与TEC信息的对应关系,得到所述TEC表。Based on this, in an embodiment, the table creation unit is further configured to determine the path length between the first node and the destination node for each routing group to obtain at least one path length; the other nodes are A node in the network where the message can reach the destination node of the routing group; determine the corresponding TEC information using the at least one path length; and establish a correspondence between the index identifier and the TEC information to obtain the TEC table.
其中,TEC信息中可以至少包括下一跳节点的IP地址、下一跳节点的出端口、所述第一节点的出端口等等。The TEC information may include at least the IP address of the next hop node, the egress port of the next hop node, the egress port of the first node, and so on.
这里,所述网络中报文能够到达该路由组的目的节点的节点可以是指通过洪泛广播给所述第一节点的路由信息的节点。Here, the node in the network where the message can reach the destination node of the routing group may refer to a node that broadcasts routing information to the first node through flooding.
实际应用时,考虑到网络中报文经所述第一节点的出向转发路径可以有多条,这样,针对每个路由组,所述第一节点可以对自身与该路由组的目的节点之间的多条出向转发路径进行标记,当利用TEC信息确定了具体的出向转发路径后,可以从多条出现转发路径中快速找到对应的转发路径。In practical application, considering that there may be multiple outgoing forwarding paths of packets in the network via the first node, in this way, for each routing group, the first node may compare itself with the destination node of the routing group The multiple outgoing forwarding paths are marked. When the specific outgoing forwarding path is determined using the TEC information, the corresponding forwarding path can be quickly found from the multiple forwarding paths.
基于此,在一实施例中,所述表建立单元,还配置为针对每个路由组,确定对应的标签集;所述标签集包括至少一个标签;一个标签对应从第一节点至该路由组的目的节点之间的一条路径;所述标签用于对传输报文的路径进行标记;将确定的索引集设置在与相应的TEC信息中。Based on this, in an embodiment, the table building unit is further configured to determine a corresponding label set for each routing group; the label set includes at least one label; one label corresponds from the first node to the routing group A path between the destination nodes of the server; the label is used to mark the path of the transmission message; the determined index set is set in the corresponding TEC information.
实际应用时,如果所述第一节点到达的目的节点未发生故障,且所述第一节点可以经由其他节点到达所述目的节点时,对所述第一TEC信息进行更新的过程可以为:针对每个路由组,确定所述第一节点与第二节点之间的路径长度,得到至少一个路径长度;所述第二节点为网络中报文能够到达调度目的节点的节点;利用所述至少一个路径长度,确定相应的TEC信息;用确定的TEC信息更新所述第一TEC信息。In practical applications, if the destination node reached by the first node has not failed, and the first node can reach the destination node via other nodes, the process of updating the first TEC information may be: For each routing group, determine the path length between the first node and the second node to obtain at least one path length; the second node is a node in the network where packets can reach the scheduling destination node; use the at least one The path length determines the corresponding TEC information; the first TEC information is updated with the determined TEC information.
基于此,在一实施例中,所述更新单元53,具体配置为:利用至少一个路径长度,确定TEC信息;路径长度为所述第一节点与第二节点的路径长度;所述第二节点为网络中报文能够到达所述链路对应的目的节点的节点中除所述第二节点外的其他节点;利用确定的TEC信息更新所述第一TEC信息。Based on this, in an embodiment, the update unit 53 is specifically configured to: determine the TEC information using at least one path length; the path length is the path length of the first node and the second node; the second node It is the node other than the second node among the nodes in the network where the message can reach the destination node corresponding to the link; the first TEC information is updated with the determined TEC information.
需要说明的是,当所述第一节点与所述目的节点之间的链路发生故障时,只对所述TEC表中的第一TEC信息进行更新,由于不需要对所述目的节点对应的每条路由的路由网段表征的信息进行更新。因而,可以实现路由的快速收敛,保证报文的及时传输。It should be noted that when the link between the first node and the destination node fails, only the first TEC information in the TEC table is updated, because there is no need to correspond to the destination node. The information represented by the route segment of each route is updated. Therefore, the route can be quickly converged to ensure the timely transmission of packets.
实际应用时,如果所述第一节点到达所述目的节点发生故障,则需要重新选择一个新的目的节点,新的目的节点关联的TEC信息与所述第一TEC信息不同,这样,可以对所述第一TEC表中的所述第一TEC信息进行更新。In actual application, if the first node fails to reach the destination node, a new destination node needs to be reselected. The TEC information associated with the new destination node is different from the first TEC information. The first TEC information in the first TEC table is updated.
基于此,在一实施例中,所述更新单元53,还配置为确定所述目的节点故障后,确定第二链路;利用至少一个路径长度,确定TEC信息;路径长度为所述第一节点与所述第二链路的目的节点的路径长度;利用确定的TEC信息,对所述TEC表进行更新。Based on this, in an embodiment, the update unit 53 is further configured to determine the second link after determining that the destination node fails; use at least one path length to determine the TEC information; the path length is the first node The path length of the destination node with the second link; using the determined TEC information, update the TEC table.
这里,对所述TEC表进行更新可以是指将所述TEC表中的第一TEC信息进行删除,或者利用确定的TEC信息对所述第一TEC信息进行替换。Here, updating the TEC table may refer to deleting the first TEC information in the TEC table, or replacing the first TEC information with the determined TEC information.
实际应用时,所述确定单元51、查找单元52、更新单元53、表建立单元、可由信息处理装置中的处理器实现。In practical applications, the determination unit 51, the search unit 52, the update unit 53, and the table creation unit may be implemented by a processor in the information processing device.
基于上述程序模块的硬件实现,且为了实现本申请实施例节点侧的方法,本申请实施例还提供了一种信息处理装置,如图6所示,该信息处理装置60包括:通信接口61、处理器62、存储器63;其中,通信接口61,能够与其它设备进行信息交互;处理器62,与所述通信接口61连接,用于运行计算机程序时,执行上述节点侧一个或多个技术方案提供的方法。而所述计算机程序存储在存储器63上。Based on the hardware implementation of the above program modules, and in order to implement the method on the node side of the embodiment of the present application, an embodiment of the present application further provides an information processing apparatus. As shown in FIG. 6, the information processing apparatus 60 includes: a communication interface 61, A processor 62 and a memory 63; wherein, the communication interface 61 can exchange information with other devices; the processor 62 is connected to the communication interface 61 and is used to execute one or more technical solutions on the node side when running a computer program The method provided. The computer program is stored on the memory 63.
当然,实际应用时,信息处理装置60中的各个组件通过总线系统84耦合在一起。可理解,总线系统64用于实现这些组件之间的连接通信。总线系统84除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统64。Of course, in actual application, the various components in the information processing device 60 are coupled together via the bus system 84. Understandably, the bus system 64 is used to implement connection and communication between these components. In addition to the data bus, the bus system 84 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are marked as the bus system 64 in FIG. 6.
本申请实施例中的存储器63用于存储各种类型的数据以支持信息处理装置60的操作。这些数据的示例包括:用于在信息处理装置80上操作的任何计算机程序。The memory 63 in the embodiment of the present application is used to store various types of data to support the operation of the information processing device 60. Examples of these data include: any computer program for operating on the information processing device 80.
上述本申请实施例揭示的方法可以应用于所述处理器62中,或者由所述处理器62实现。所述处理器62可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过所述处理器62中的硬件的集成逻辑电路或者软件形式的指令完成。上述的所述处理器62可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述处理器62可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器63,所述处理器62读取存储器63中的信息,结合其硬件完成前述方法的步骤。The method disclosed in the above embodiments of the present application may be applied to the processor 62, or implemented by the processor 62. The processor 62 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 62 or instructions in the form of software. The above-mentioned processor 62 may be a general-purpose processor, a digital signal processor (DSP, Digital Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The processor 62 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly implemented and completed by a hardware decoding processor, or may be implemented and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 63. The processor 62 reads the information in the memory 63 and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,信息处理装置60可以被一个或多个应用专用集 成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或者其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the information processing apparatus 60 may be one or more application specific integrated circuits (ASICs, Application Specific Integrated Circuits), DSPs, programmable logic devices (PLDs, Programmable Logic Devices), complex programmable logic devices ( CPLD, Complex Programmable Logic Device, Field Programmable Gate Array (FPGA, Field-Programmable Gate Array), general-purpose processor, controller, microcontroller (MCU, Micro Controller), microprocessor (Microprocessor), or other Electronic components are implemented to perform the aforementioned method.
可以理解,本申请实施例的存储器63可以是易失性存储器或者非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 63 in the embodiment of the present application may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read- Only Memory), Electrically Erasable Programmable Read Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, Ferromagnetic Random Access Memory), Flash Memory (Flash) Memory, Magnetic Surface Memory , Compact disc, or read-only compact disc (CD-ROM, Compact, Read-Only Memory); the magnetic surface memory can be a disk storage or a tape storage. The volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), dynamic random access Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate, Synchronous Dynamic Random Access Random Access Memory), enhanced Type synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous connection dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Random Access Memory ). The memories described in the embodiments of the present application are intended to include but are not limited to these and any other suitable types of memories.
需要说明的是:“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that: "first", "second", etc. are used to distinguish similar objects, and need not be used to describe a specific order or sequence.
另外,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。In addition, the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.
以上所述,仅为本申请的实施例而已,并非用于限定本申请的保护范围。The above are only examples of the present application, and are not intended to limit the protection scope of the present application.

Claims (14)

  1. 一种信息处理方法,应用于第一节点,所述方法包括:An information processing method applied to a first node. The method includes:
    确定自身与目的节点之间传输报文的链路发生故障;Determine that the link for transmitting packets between itself and the destination node is faulty;
    从节点表中查找所述目的节点的互联网协议IP地址对应的第一索引标识;所述节点表设置有节点的IP地址与索引标识的对应关系;Look up the first index identifier corresponding to the Internet protocol IP address of the destination node from the node table; the node table is provided with the correspondence between the node's IP address and the index identifier;
    从拓扑等价类TEC表中查找与所述第一索引标识对应的第一TEC信息;所述TEC表设置有索引标识与TEC信息对应的关系;所述TEC信息至少表征报文在所述第一节点的出向;Find the first TEC information corresponding to the first index identifier from the topologically equivalent TEC table; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least characterizes the message in the first Outbound of a node;
    对所述第一TEC信息进行更新。Updating the first TEC information.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    获取至少一条路由信息;Obtain at least one piece of routing information;
    利用获取的路由信息,将目的地址相同的多个路由划分为一组,得到多个路由组;Use the obtained routing information to divide multiple routes with the same destination address into one group to obtain multiple routing groups;
    针对每个路由组,确定索引标识,并建立节点的IP地址与索引标识的对应关系,得到所述节点表。For each routing group, determine the index identifier, and establish the correspondence between the node's IP address and the index identifier to obtain the node table.
  3. 根据权利要求2所述的方法,其中,所述确定索引标识,包括:The method according to claim 2, wherein the determining index identifier comprises:
    针对每个路由组,确定网络中报文能够达到该路由组的目的节点的至少一个节点;For each routing group, determine at least one node in the network that can reach the destination node of the routing group;
    利用确定的所述至少一个节点的IP地址,确定相应路由组的索引标识。Using the determined IP address of the at least one node, the index identifier of the corresponding routing group is determined.
  4. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    针对每个路由组,确定所述第一节点与目的节点之间的至少一个路径长度;For each routing group, determine at least one path length between the first node and the destination node;
    利用所述至少一个路径长度,确定相应的TEC信息;并建立索引标识与TEC信息的对应关系,得到所述TEC表。Use the at least one path length to determine the corresponding TEC information; and establish the correspondence between the index mark and the TEC information to obtain the TEC table.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method of claim 4, wherein the method further comprises:
    针对每个路由组,确定对应的标签集;所述标签集包括至少一个标签;一个标签对应从第一节点至该路由组的目的节点之间的一条路径;所述标签用于对传输报文的路径进行标记;For each routing group, determine the corresponding label set; the label set includes at least one label; one label corresponds to a path from the first node to the destination node of the routing group; the label is used to transmit packets Mark the path;
    将确定的索引集设置在与相应的TEC信息中。Set the determined index set in the corresponding TEC information.
  6. 根据权利要求1所述的方法,其中,所述对所述第一TEC信息进行更新,包括:The method according to claim 1, wherein the updating of the first TEC information includes:
    利用至少一个路径长度,确定TEC信息;路径长度为所述第一节点与第二节点的路径长度;所述第二节点为网络中所述报文能够到达所述目的节点的节点;Determine the TEC information using at least one path length; the path length is the path length of the first node and the second node; the second node is a node in the network where the packet can reach the destination node;
    利用确定的TEC信息更新所述第一TEC信息。The first TEC information is updated using the determined TEC information.
  7. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    确定所述目的节点故障后,确定第二链路;After determining that the destination node is faulty, determine the second link;
    利用至少一个路径长度,确定TEC信息;路径长度为所述第一节点与所述第二链路的目的节点的路径长度;Use at least one path length to determine TEC information; the path length is the path length of the destination node of the first node and the second link;
    利用确定的TEC信息,对所述TEC表进行更新。The determined TEC information is used to update the TEC table.
  8. 一种信息处理装置,应用于第一节点,所述装置包括:An information processing device applied to a first node. The device includes:
    确定单元,配置为确定自身与目的节点之间传输报文的链路发生故障;The determining unit is configured to determine that the link for transmitting packets between itself and the destination node fails;
    查找单元,配置为从节点表中查找所述目的地址的IP地址对应的第一索引标识;所述节点表设置有节点的IP地址与索引标识的对应关系;还配置为从TEC表中查找与所述第一索引标识对应的第一TEC信息;所述TEC表设置有索引标识与TEC信息对应的关系;所述TEC信息至少表征报文在所述第一节点的出向;The searching unit is configured to search for the first index identifier corresponding to the IP address of the destination address from the node table; the node table is provided with a correspondence relationship between the IP address of the node and the index identifier; The first TEC information corresponding to the first index identifier; the TEC table is provided with a relationship between the index identifier and the TEC information; the TEC information at least represents the outgoing direction of the message at the first node;
    更新单元,配置为对所述第一TEC信息进行更新。The update unit is configured to update the first TEC information.
  9. 根据权利要求8所述的装置,其中,所述装置还包括:The device according to claim 8, wherein the device further comprises:
    表建立单元,配置为获取至少一条路由信息;利用获取的路由信息,将目的地址相同的多个路由划分为一组,得到多个路由组;针对每个路由组,确定索引标识,并建立节点的IP地址与索引标识的对应关系,得到所述节点表。Table establishment unit, configured to obtain at least one piece of routing information; use the obtained routing information to divide multiple routes with the same destination address into a group to obtain multiple routing groups; for each routing group, determine the index identification and establish a node The correspondence between the IP address and the index identifier to obtain the node table.
  10. 根据权利要求9所述的装置,其中,所述表建立单元,配置为:针对每个路由组,确定网络中报文能够达到该路由组的目的节点的至少一个节点;利用确定的所述至少一个节点的IP地址,确定相应路由组的索引标识。The apparatus according to claim 9, wherein the table creation unit is configured to: for each routing group, determine at least one node in the network that can reach the destination node of the routing group in the packet; use the determined The IP address of a node determines the index of the corresponding routing group.
  11. 根据权利要求9所述的装置,其中,The device according to claim 9, wherein
    所述表建立单元,还配置为针对每个路由组,确定所述第一节点与目的节点之间的路径长度,得到至少一个路径长度;利用所述至少一个路径长度,确定相应的TEC信息;并建立索引标识与TEC信息的对应关系,得到所述TEC表。The table establishing unit is further configured to determine the path length between the first node and the destination node for each routing group to obtain at least one path length; use the at least one path length to determine corresponding TEC information; And establish the correspondence between the index mark and the TEC information to obtain the TEC table.
  12. 根据权利要求8所述的装置,其中,所述更新单元,配置为:The apparatus according to claim 8, wherein the update unit is configured to:
    利用至少一个路径长度,确定TEC信息;路径长度为所述第一节点与第二节点的路径长度;所述第二节点为网络中所述报文能够到达所述目的节点的节点;利用确定的TEC信息更新所述第一TEC信息。Use at least one path length to determine the TEC information; the path length is the path length of the first node and the second node; the second node is a node in the network where the message can reach the destination node; use the determined The TEC information updates the first TEC information.
  13. 一种信息处理装置,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,An information processing device includes: a processor and a memory for storing a computer program that can run on the processor,
    其中,所述处理器用于运行所述计算机程序时,执行权利要求1至7任一项所述方法的步骤。Wherein, when the processor is used to run the computer program, the steps of the method according to any one of claims 1 to 7 are executed.
  14. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至7任一项所述方法的步骤。A storage medium on which a computer program is stored, which when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
PCT/CN2019/123127 2018-12-29 2019-12-04 Information processing method and device, and storage medium WO2020134933A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811642377.1 2018-12-29
CN201811642377.1A CN111385195B (en) 2018-12-29 2018-12-29 Information processing method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2020134933A1 true WO2020134933A1 (en) 2020-07-02

Family

ID=71126473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/123127 WO2020134933A1 (en) 2018-12-29 2019-12-04 Information processing method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN111385195B (en)
WO (1) WO2020134933A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272144A (en) * 2020-10-28 2021-01-26 北京华夏创新科技有限公司 Message forwarding method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080225708A1 (en) * 2007-03-13 2008-09-18 Lange Andrew S Application-aware policy enforcement
CN102986167A (en) * 2011-07-13 2013-03-20 华为技术有限公司 Method and device for dynamically constructing network
CN103517155A (en) * 2013-10-15 2014-01-15 浙江宇视科技有限公司 Flow dynamic control method and device based on monitor service
CN105721193A (en) * 2014-12-05 2016-06-29 方正国际软件(北京)有限公司 Method and device for system information monitoring
CN107086924A (en) * 2016-02-16 2017-08-22 华为技术有限公司 A kind of message transmitting method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6909700B1 (en) * 1998-11-24 2005-06-21 Lucent Technologies Inc. Network topology optimization methods and apparatus for designing IP networks with performance guarantees
CN101296126B (en) * 2007-04-29 2011-07-20 华为技术有限公司 Link fault announcing method, interface management unit and router
CN102449957B (en) * 2011-07-25 2015-01-21 华为技术有限公司 Ip network fault locating method, apparatus, and system
CN110417569B (en) * 2018-04-28 2021-09-21 华为技术有限公司 Network link fault processing method and tunnel endpoint equipment
CN109039891B (en) * 2018-08-23 2021-05-07 新华三技术有限公司 Equal cost path management method, device, communication equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080225708A1 (en) * 2007-03-13 2008-09-18 Lange Andrew S Application-aware policy enforcement
CN102986167A (en) * 2011-07-13 2013-03-20 华为技术有限公司 Method and device for dynamically constructing network
CN103517155A (en) * 2013-10-15 2014-01-15 浙江宇视科技有限公司 Flow dynamic control method and device based on monitor service
CN105721193A (en) * 2014-12-05 2016-06-29 方正国际软件(北京)有限公司 Method and device for system information monitoring
CN107086924A (en) * 2016-02-16 2017-08-22 华为技术有限公司 A kind of message transmitting method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272144A (en) * 2020-10-28 2021-01-26 北京华夏创新科技有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN111385195A (en) 2020-07-07
CN111385195B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
US10862783B2 (en) OAM mechanisms for EVPN active-active services
US8699493B2 (en) Routing validation
CN107547243B (en) Message forwarding method and device
WO2021258754A1 (en) Message indication method and apparatus, and device and storage medium
WO2020186803A1 (en) Fault protection method, node, and storage medium
Feigenbaum et al. Brief announcement: On the resilience of routing tables
WO2020024828A1 (en) Communication method, communication device and communication system
CA3104756C (en) Loop avoidance communications method, device, and system
US20150029834A1 (en) Transmission path switching
US9832121B1 (en) Next hop instruction associations for forwarding unit programming within a network device
WO2020119644A1 (en) Forwarding entry generation method, apparatus, and device
US11818038B2 (en) Initiator-based data-plane validation for segment routed, multiprotocol label switched (MPLS) networks
US20210184897A1 (en) Packet processing method and gateway device
US11456943B2 (en) Packet transmission method and apparatus
WO2020135339A1 (en) Network path convergence method and related device
WO2016123904A1 (en) Routing convergence method, device and virtual private network system
CN113615132A (en) Fast flooding topology protection
WO2021254173A1 (en) Routing processing method and related device
WO2020134933A1 (en) Information processing method and device, and storage medium
US20190014033A1 (en) Ingress gateway selection for a shortest path bridging network to support inter domain multicast routing
CN111884827A (en) Method for synchronizing topological information in SFC network and routing network element
WO2024001633A1 (en) Network management method and device, network element, and computer readable storage medium
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium
WO2020001576A1 (en) Method for obtaining forwarding information base of device in network, device, and system
Mchedlishvili et al. Recovery Performance in Redundant Campus Network

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09/11/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19903848

Country of ref document: EP

Kind code of ref document: A1