CN111953590A - Routing table entry outlet switching method and device, electronic equipment and storage medium - Google Patents

Routing table entry outlet switching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111953590A
CN111953590A CN202010672113.1A CN202010672113A CN111953590A CN 111953590 A CN111953590 A CN 111953590A CN 202010672113 A CN202010672113 A CN 202010672113A CN 111953590 A CN111953590 A CN 111953590A
Authority
CN
China
Prior art keywords
port
outlet
routing table
table entry
aggregation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010672113.1A
Other languages
Chinese (zh)
Other versions
CN111953590B (en
Inventor
李金灿
王明欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202010672113.1A priority Critical patent/CN111953590B/en
Publication of CN111953590A publication Critical patent/CN111953590A/en
Application granted granted Critical
Publication of CN111953590B publication Critical patent/CN111953590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • 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
    • 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
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing

Abstract

The embodiment of the invention provides a method and a device for switching routing table entry outlets, electronic equipment and a storage medium. The method comprises the following steps: if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link; if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet; and replacing the member port of the source outlet with the member port of the destination outlet. In the embodiment of the invention, after the member ports of the source outlet and the target outlet of the routing table entry of the fault link are obtained, the member ports of the source outlet are replaced by the member ports of the target outlet, the outlets of all the routing table entries are updated to the backup link or the reachable link outlet at one time, thereby realizing the fast flow switching, and when the link fault is recovered, the outlets of all the routing table entries are updated to the original link outlet at one time, thereby realizing the fast flow switching.

Description

Routing table entry outlet switching method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for switching route table entry outlets, electronic equipment and a storage medium.
Background
In the ethernet, in order to prevent the host from being unreachable due to a link failure, it is necessary to quickly switch the routing table entry outlet to another backup or reachable link when the link fails, so as to continuously forward the traffic. When the link is recovered, the routing table entry outlet needs to be switched back to the original link, so that the flow is continuously forwarded. The routing table entry comprises an Address Resolution Protocol (ARP) table entry, a Neighbor Discovery Protocol (ND) table entry and the like, and the ARP inquires the MAC Address of the target device according to the IP Address of the target device, and is used for forwarding traffic and encapsulating traffic information; the ND replaces the ARP and ICMP (Internet Control Message Protocol) router discovery and ICMP redirection functions of IPv4, and defines functions of using an ICMPv6 Message to implement address resolution, tracking neighbor state, repeating address detection, router discovery and redirection, and the like.
In the prior art, when a link fails, a switch may clear a Media Access Control (MAC) address of the failed link and trigger reconnection of a routing table entry, and when a response message of the routing table entry enters from a new exit, the routing table entry exit is also updated to the new exit, and then the new exit is updated to hardware one by one, and traffic is gradually switched to the new exit, thereby implementing traffic retransmission. When the link is recovered, the switch also triggers the routing table entry to be switched on again, the routing table entry outlet is updated back to the original outlet, and then the routing table entry outlet is updated to the hardware one by one, and the flow is gradually switched back to the original outlet, so that the convergence performance of the three-layer flow is limited by the updating speed and the updating number of the routing table entry, and the quick convergence cannot be realized.
Disclosure of Invention
To overcome the defects in the prior art, embodiments of the present invention provide a method and an apparatus for switching a routing table entry exit, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a method for switching an exit of a routing table entry, where the method includes:
if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link;
if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet;
and replacing the member port of the source outlet with the member port of the destination outlet.
As above, optionally, before obtaining the member port of the destination exit, the method further includes:
if the source outlet of the routing table entry is judged and known to be a physical port, a first aggregation port is created, and the physical port of the source outlet is taken as a member port and added into the first aggregation port;
switching the outlet of the routing table entry from the source outlet to the first aggregation port;
accordingly, the replacing the member port of the source outlet with the member port of the destination outlet includes:
replacing the member port of the first aggregate port with the member port of the destination outlet.
As above, optionally, before obtaining the member port of the destination exit, the method further includes:
if the target outlet of the routing table entry is judged and known to be a physical port, a second aggregation port is created, and the physical port of the target outlet is taken as a member port and added into the second aggregation port;
accordingly, the replacing the member port of the source outlet with the member port of the destination outlet includes:
replacing the member port of the source outlet with the member port of the second polymerization port.
The method as described above, optionally, further includes:
creating a third aggregation port, and adding the member port of the target outlet into the third aggregation port;
switching the outlet of the routing table entry from the source outlet to the third aggregation port;
restoring a member port of the source outlet;
and if the link is judged to be recovered to be normal, replacing the member port of the third aggregation port with the member port of the source outlet, and switching the outlet of the routing table entry from the third aggregation port to the source outlet.
As in the foregoing method, optionally, after switching the egress of the routing table entry from the third aggregation port to the source egress, the method further includes:
and deleting the third polymerization port.
In a second aspect, an embodiment of the present invention provides a routing table entry exit switching device, including:
the first acquisition module is used for acquiring source outlet information and destination outlet information of a routing table entry of a failed link if judging that the link fails;
a second obtaining module, configured to obtain a member port of the destination outlet if it is determined that the source outlet and the destination outlet of the routing table entry are aggregation ports;
and the replacing module is used for replacing the member port of the source outlet with the member port of the destination outlet.
The above apparatus, optionally, further comprises:
a first creating module, configured to create a first aggregation port if it is determined that the source outlet of the routing table entry is a physical port, and add the physical port of the source outlet to the first aggregation port as a member port;
a first switching module, configured to switch an exit of the routing table entry from the source exit to the first aggregation port;
correspondingly, the replacement module is specifically configured to:
replacing the member port of the first aggregate port with the member port of the destination outlet. The above apparatus, optionally, further comprises:
a second creating module, configured to create a second aggregation port if it is determined that the destination outlet of the routing table entry is a physical port, and add the physical port of the destination outlet to the second aggregation port as a member port;
correspondingly, the replacement module is specifically configured to:
replacing the member port of the source outlet with the member port of the second polymerization port.
The above apparatus, optionally, further comprises:
the third establishing module is used for establishing a third aggregation port and adding the member port of the target outlet into the third aggregation port;
a processing module, configured to switch an exit of the routing table entry from the source exit to the third aggregation port;
a recovery module for recovering a member port of the source outlet;
correspondingly, the processing module is further configured to, if it is determined that the link is recovered to be normal, replace the member port of the third aggregation port with the member port of the source outlet, and switch the outlet of the routing table entry from the third aggregation port to the source outlet.
The above apparatus, optionally, further comprises:
and the deleting module is used for deleting the third aggregation port.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising: if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link; if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet; and replacing the member port of the source outlet with the member port of the destination outlet.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following method: if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link; if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet; and replacing the member port of the source outlet with the member port of the destination outlet.
In the method for switching routing table entry outlets provided in the embodiments of the present invention, after the member ports of the source outlet and the destination outlet of the routing table entry of the failed link are obtained, the member ports of the source outlet are replaced with the member ports of the destination outlet, and the outlets of all routing table entries are updated to the backup link or the reachable link outlet at a time, so that fast flow switching is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a routing table entry exit switching method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an ARP/ND entry exit switching method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a routing table entry exit switching device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, when a link fails, the routing table entries of the failed link are updated one by one, and the convergence performance of three-layer flow is limited by the updating speed and the updating number of the routing table entries, so that rapid convergence cannot be realized. In the method for switching the routing table entry outlets provided in the embodiments of the present invention, when a link fails, a member port of a source outlet of a routing table entry of the failed link is replaced with a member port of a destination outlet, and outlets of all routing table entries are updated to a backup link or an reachable link outlet at one time, so that three-layer traffic fast switching is achieved.
Fig. 1 is a schematic flow chart of a method for switching an exit of a routing table entry according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step S11, if judging that the link is failed, obtaining source export information and destination export information of the routing table entry of the failed link;
specifically, a routing table entry in the network device, such as an ARP table entry or an ND table entry, is configured to store a routing prefix + a next hop in hardware, where the next hop includes egress information, that is, a source egress of the routing table entry, and the egress information may be an AP port (aggregation port) or a physical egress. When a certain egress link fails, the egress information of the routing table entry of the failed link needs to be replaced with an available port, i.e., a destination egress, of the standby link, so that, after the link failure is known, the routing table entry egress switching device installed on the network device obtains the source egress information and the destination egress information of the routing table entry of the failed link, i.e., obtains the next hop and the standby port.
Step S12, if judging that the source outlet and the destination outlet of the routing table item are aggregation ports, acquiring a member port of the destination outlet;
and step S13, replacing the member port of the source outlet with the member port of the destination outlet.
Specifically, the routing table entry outlet may be an AP port or a physical port, and the routing table entry outlet switching device first needs to determine whether a source outlet and a destination outlet of the routing table entry are aggregation ports, where a determination method of an aggregation port may determine according to a port type and the like, which is not described herein again, and if the source outlet and the destination outlet are aggregation ports, a member port of the destination outlet is obtained, for example, the routing table entry outlet is AP1, the destination outlet is AP2, both of which are aggregation ports, the member ports of AP1 are D1 and D2, and the member ports of AP2 are D3, D4, and D5. When the source outlet is AP1, to realize fast switching of three-layer traffic from AP1 to AP2, it is only necessary to replace the member port of AP1 with the member port of AP2, that is, the member ports of AP1 are replaced with D3, D4, and D5, so that fast switching of traffic can be realized without depending on updating routing table entries one by one.
After the AP1 link fails, the routing table entry outlet switching device notifies the message of switching the AP1 to the AP2, and directly replaces the member port of the AP1 with the member port of the AP2, at this time, the three-layer traffic is already switched to the AP2, the switching speed is increased from the second level to the millisecond level, and the rapid convergence is realized.
The routing table entry outlet switching device is suitable for scenarios such as STP (Spanning Tree Protocol), MSTP (Multiple Spanning Tree Protocol), MLAG (Multi-Chassis Link Aggregation Group), and the like.
In the method for switching route table entry outlets provided in the embodiments of the present invention, after determining that the source outlet and the destination outlet of the route table entry of the failed link are aggregation ports, the member port of the source outlet is replaced with the member port of the destination outlet, and the outlets of all the route table entries are updated to the backup link or the reachable link outlet at one time, so as to implement fast flow switching.
On the basis of the above embodiment, further, before the obtaining the member port of the destination exit, the method further includes:
if the source outlet of the routing table entry is judged and known to be a physical port, a first aggregation port is created, and the physical port of the source outlet is taken as a member port and added into the first aggregation port;
switching the outlet of the routing table entry from the source outlet to the first aggregation port;
accordingly, the replacing the member port of the source outlet with the member port of the destination outlet includes:
replacing the member port of the first aggregate port with the member port of the destination outlet.
Specifically, a fast switching function is enabled on a port which needs to implement fast switching, and then route table entry learning is performed, the key to implement the fast switching function is that a source exit of a route table entry must be an AP port, if the source exit is not an AP port, a virtual AP port without a member port is created and is denoted as AP1, and a physical port of the source exit is added to the created virtual AP1, so that the virtual AP port becomes a member port of AP 1. If the source egress is an AP port, no creation is required. The source egress of the routing table entry is then switched to the created AP 1. When the link failure needs to switch the routing table entry outlet, the member port of the destination outlet is directly replaced into the created AP1, and if the destination outlet is a physical port, the physical port is directly replaced into the member port of the created AP1, which can also realize three-layer traffic fast switching.
On the basis of the foregoing embodiments, further, before the acquiring the member port of the destination exit, the method further includes:
if the target outlet of the routing table entry is judged and known to be a physical port, a second aggregation port is created, and the physical port of the target outlet is taken as a member port and added into the second aggregation port;
accordingly, the replacing the member port of the source outlet with the member port of the destination outlet includes:
replacing the member port of the source outlet with the member port of the second polymerization port.
Specifically, in practical applications, the destination exit may also be set as an aggregation exit, and if the destination exit is not an AP, a virtual AP without member ports is created, which is denoted as AP2, and a physical port of the destination exit is added to the created virtual AP2, so that the virtual AP becomes a member port of AP 2. If the destination egress is an AP port, no creation is required. When the link failure needs to switch the routing table entry outlet, the member port of the destination outlet is directly replaced into the member port of the source outlet, so that the three-layer flow fast switching can be realized.
On the basis of the above embodiments, the method further includes:
creating a third aggregation port, and adding the member port of the target outlet into the third aggregation port;
switching the outlet of the routing table entry from the source outlet to the third aggregation port;
restoring a member port of the source outlet;
and if the link is judged to be recovered to be normal, replacing the member port of the third aggregation port with the member port of the source outlet, and switching the outlet of the routing table entry from the third aggregation port to the source outlet.
After switching the exit of the routing table entry from the third aggregation port to the source exit, the method further includes:
and deleting the third polymerization port.
Specifically, the foregoing embodiments have implemented the function of fast switching traffic when a link fails, but when link recovery cannot be implemented, the routing table entry outlet originally directed to the AP1 is quickly updated back to the AP 1. Therefore, the following steps are also required to be continued: an AP port without a member port is first created for use as an intermediate process outlet, denoted AP3, and the member port of AP2 is added to AP 3. While switching the routing table entry egress from AP1 to AP 3. And after all the routing table entry outlets are updated to be the AP3, restoring the member port of the AP1 to the original member port. After the link of the AP1 is restored, the member port of the AP3 is replaced with the member port of the AP1, and since the routing table entry outlets all point to the AP3 at this time, after the member ports are all replaced with the member port of the AP1, the traffic is actually switched to the member port of the AP1, thereby realizing fast convergence of the traffic. Meanwhile, after the switch is complete, the routing table entry egress is switched from AP3 to AP 1. After all the routing table entries are updated to the AP1, the AP3 is deleted.
For example, taking the table entry exit switching of ARP/ND as an example, fig. 2 is a schematic flow chart of the ARP/ND table entry exit switching method provided in the embodiment of the present invention, and as shown in fig. 2, a routing table entry exit switching device is divided into three modules according to the purpose, which are: backup port selection module, AP module and routing module, wherein: the backup port selection module is used for selecting a backup outlet when a link fails, notifying the AP module to switch from the main link outlet AP1 to the backup link outlet AP2, and notifying the AP module to switch back from the backup link outlet AP2 to the AP1 when the link is restored; the AP module is used for receiving the information of the backup port selection module, directly replacing the AP1 member port with the AP2 member port when the link fails, creating an AP3 port without the member port to be used as an outlet of the intermediate process, and adding the AP2 member port into the AP 3. And simultaneously, the routing module is informed to update the ARP/ND table entry outlet from the AP1 to the AP 3. Restoring the member port of the AP1 to the original member port; at link restoration, the AP3 member port is replaced with the AP1 member port, and the routing module is simultaneously notified to update the entry exit of the ARP/ND from AP3 to AP 1. When all the ARP/ND are updated to AP1, AP3 is deleted. The routing module is used for receiving the message of the AP module and comprises: the receiving AP module updates the AP1 to AP3 message and the ARP/ND entry egress from AP1 to AP 3. Receiving the message that the AP module AP3 updates to AP1, the ARP/ND table entry egress is updated from AP3 to AP 1.
In the method for switching routing table entry outlets provided in the embodiments of the present invention, after the member ports of the source outlet and the destination outlet of the routing table entry of the failed link are obtained, the member ports of the source outlet are replaced with the member ports of the destination outlet, and the outlets of all routing table entries are updated to the backup link or the reachable link outlet at a time, so that fast flow switching is achieved.
Based on the same inventive concept, an embodiment of the present invention further provides a routing table entry exit switching device, as shown in fig. 3, including: a first acquisition module 31, a second acquisition module 32 and a replacement module 33, wherein:
the first obtaining module 31 is configured to obtain source egress information and destination egress information of a routing table entry of a failed link if it is determined that the link fails; the second obtaining module 32 is configured to obtain a member port of the destination outlet if it is determined that the source outlet and the destination outlet of the routing table entry are aggregation ports; the replacement module 33 is configured to replace the member port of the source outlet with the member port of the destination outlet.
The above apparatus, optionally, further comprises:
a first creating module, configured to create a first aggregation port if it is determined that the source outlet of the routing table entry is a physical port, and add the physical port of the source outlet to the first aggregation port as a member port;
a first switching module, configured to switch an exit of the routing table entry from the source exit to the first aggregation port.
The above apparatus, optionally, further comprises:
a second creating module, configured to create a second aggregation port if it is determined that the destination outlet of the routing table entry is a physical port, and add the physical port of the destination outlet to the second aggregation port as a member port;
correspondingly, the replacement module is specifically configured to:
replacing the member port of the source outlet with the member port of the second polymerization port.
The above apparatus, optionally, further comprises:
the third establishing module is used for establishing a third aggregation port and adding the member port of the target outlet into the third aggregation port;
a processing module, configured to switch an exit of the routing table entry from the source exit to the third aggregation port;
a recovery module for recovering a member port of the source outlet;
correspondingly, the processing module is further configured to, if it is determined that the link is recovered to be normal, replace the member port of the third aggregation port with the member port of the source outlet, and switch the outlet of the routing table entry from the third aggregation port to the source outlet.
The above apparatus, optionally, further comprises:
and the deleting module is used for deleting the third aggregation port.
The apparatus provided in the embodiment of the present invention is configured to implement the method, and its functions specifically refer to the method embodiment, which is not described herein again.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device includes: a processor (processor)41, a memory (memory)42, and a bus 43;
wherein, the processor 41 and the memory 42 complete the communication with each other through the bus 43;
processor 41 is configured to call program instructions in memory 42 to perform the methods provided by the above-described method embodiments, including, for example: if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link; if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet; and replacing the member port of the source outlet with the member port of the destination outlet.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link; if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet; and replacing the member port of the source outlet with the member port of the destination outlet.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include: if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link; if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet; and replacing the member port of the source outlet with the member port of the destination outlet.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatuses and the like are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A method for switching an exit of a routing table entry, comprising:
if the link is judged to be failed, acquiring source outlet information and destination outlet information of a routing table entry of the failed link;
if the source outlet and the target outlet of the routing table item are judged and known to be aggregation ports, acquiring a member port of the target outlet;
and replacing the member port of the source outlet with the member port of the destination outlet.
2. The method of claim 1, wherein prior to obtaining the member port of the destination outlet, further comprising:
if the source outlet of the routing table entry is judged and known to be a physical port, a first aggregation port is created, and the physical port of the source outlet is taken as a member port and added into the first aggregation port;
switching the outlet of the routing table entry from the source outlet to the first aggregation port;
accordingly, the replacing the member port of the source outlet with the member port of the destination outlet includes:
replacing the member port of the first aggregate port with the member port of the destination outlet.
3. The method of claim 1, wherein prior to obtaining the member port of the destination outlet, further comprising:
if the target outlet of the routing table entry is judged and known to be a physical port, a second aggregation port is created, and the physical port of the target outlet is taken as a member port and added into the second aggregation port;
accordingly, the replacing the member port of the source outlet with the member port of the destination outlet includes:
replacing the member port of the source outlet with the member port of the second polymerization port.
4. The method of any of claims 1-3, further comprising:
creating a third aggregation port, and adding the member port of the target outlet into the third aggregation port;
switching the outlet of the routing table entry from the source outlet to the third aggregation port;
restoring a member port of the source outlet;
and if the link is judged to be recovered to be normal, replacing the member port of the third aggregation port with the member port of the source outlet, and switching the outlet of the routing table entry from the third aggregation port to the source outlet.
5. The method of claim 4, wherein after switching the egress of the routing table entry from the third aggregation port to the source egress, further comprising:
and deleting the third polymerization port.
6. A routing table entry exit switching apparatus, comprising:
the first acquisition module is used for acquiring source outlet information and destination outlet information of a routing table entry of a failed link if judging that the link fails;
a second obtaining module, configured to obtain a member port of the destination outlet if it is determined that the source outlet and the destination outlet of the routing table entry are aggregation ports;
and the replacing module is used for replacing the member port of the source outlet with the member port of the destination outlet.
7. The apparatus of claim 6, further comprising:
a first creating module, configured to create a first aggregation port if it is determined that the source outlet of the routing table entry is a physical port, and add the physical port of the source outlet to the first aggregation port as a member port;
a first switching module, configured to switch an exit of the routing table entry from the source exit to the first aggregation port;
correspondingly, the replacement module is specifically configured to:
replacing the member port of the first aggregate port with the member port of the destination outlet.
8. The apparatus of claim 6, further comprising:
a second creating module, configured to create a second aggregation port if it is determined that the destination outlet of the routing table entry is a physical port, and add the physical port of the destination outlet to the second aggregation port as a member port;
correspondingly, the replacement module is specifically configured to:
replacing the member port of the source outlet with the member port of the second polymerization port.
9. The apparatus of any of claims 6-8, further comprising:
the third establishing module is used for establishing a third aggregation port and adding the member port of the target outlet into the third aggregation port;
a processing module, configured to switch an exit of the routing table entry from the source exit to the third aggregation port;
a recovery module for recovering a member port of the source outlet;
correspondingly, the processing module is further configured to, if it is determined that the link is recovered to be normal, replace the member port of the third aggregation port with the member port of the source outlet, and switch the outlet of the routing table entry from the third aggregation port to the source outlet.
10. The apparatus of claim 9, further comprising:
and the deleting module is used for deleting the third aggregation port.
11. An electronic device, comprising:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202010672113.1A 2020-07-14 2020-07-14 Routing table entry outlet switching method and device, electronic equipment and storage medium Active CN111953590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010672113.1A CN111953590B (en) 2020-07-14 2020-07-14 Routing table entry outlet switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010672113.1A CN111953590B (en) 2020-07-14 2020-07-14 Routing table entry outlet switching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111953590A true CN111953590A (en) 2020-11-17
CN111953590B CN111953590B (en) 2023-01-10

Family

ID=73341493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010672113.1A Active CN111953590B (en) 2020-07-14 2020-07-14 Routing table entry outlet switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111953590B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185784A (en) * 2011-05-26 2011-09-14 杭州华三通信技术有限公司 Automatic protection switching method and device
CN102347905A (en) * 2011-10-31 2012-02-08 杭州华三通信技术有限公司 Network equipment and forwarded information updating method
CN102480368A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Protecting method and system of aggregation link
EP2720407A1 (en) * 2011-06-08 2014-04-16 Huawei Technologies Co., Ltd Fault processing method, aggregation node and optical network protection system
CN104333470A (en) * 2014-11-14 2015-02-04 杭州华三通信技术有限公司 Fault handling method and device
CN105591900A (en) * 2015-09-29 2016-05-18 杭州华三通信技术有限公司 Link switching method and device
CN110611577A (en) * 2018-06-14 2019-12-24 中兴通讯股份有限公司 Service fast switching method, switching device, network equipment and storage medium
CN111327523A (en) * 2020-02-28 2020-06-23 深信服科技股份有限公司 Network protection method and device based on aggregation port, network equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480368A (en) * 2010-11-22 2012-05-30 中兴通讯股份有限公司 Protecting method and system of aggregation link
CN102185784A (en) * 2011-05-26 2011-09-14 杭州华三通信技术有限公司 Automatic protection switching method and device
EP2720407A1 (en) * 2011-06-08 2014-04-16 Huawei Technologies Co., Ltd Fault processing method, aggregation node and optical network protection system
CN102347905A (en) * 2011-10-31 2012-02-08 杭州华三通信技术有限公司 Network equipment and forwarded information updating method
CN104333470A (en) * 2014-11-14 2015-02-04 杭州华三通信技术有限公司 Fault handling method and device
CN105591900A (en) * 2015-09-29 2016-05-18 杭州华三通信技术有限公司 Link switching method and device
CN110611577A (en) * 2018-06-14 2019-12-24 中兴通讯股份有限公司 Service fast switching method, switching device, network equipment and storage medium
CN111327523A (en) * 2020-02-28 2020-06-23 深信服科技股份有限公司 Network protection method and device based on aggregation port, network equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗健等: "Eth-Trunk负载分担在通信类设备上的应用", 《通信技术》 *

Also Published As

Publication number Publication date
CN111953590B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN110166356B (en) Method and network equipment for sending message
EP3122004B1 (en) Traffic switching method, device, and system
US11290373B2 (en) Method and system to avoid temporary traffic loss with BGP ethernet VPN multi-homing with data-plane mac address learning
CN113261242B (en) Communication system and method implemented by communication system
US10110482B2 (en) Technique for network service availability
EP2124392A1 (en) Ring network routing method and ring network node
US20060245351A1 (en) Method, apparatus, and system for improving ethernet ring convergence time
CN110113259B (en) Path state notification method, path switching method, forwarding equipment and system
WO2014118691A1 (en) Accelerated mac address resolution for ipv6 traffic with is-is protocol
EP3641241A1 (en) Node protection for bum traffic for multi-homed node failure
CN104869057A (en) OpeFlow switch graceful restart processing method, device and OpeFlow controller
CN110891018B (en) Network traffic recovery method and device, SDN controller and storage medium
US11245615B2 (en) Method for determining link state, and device
CN112367254A (en) Cross-device link aggregation method and device and electronic device
CN102594657B (en) A kind of route iteration method and route exchange device
CN112702773B (en) Communication method and device
CN112187633A (en) Link fault convergence method and device, electronic equipment and storage medium
CN115277305A (en) Network management method, device, equipment and machine readable storage medium
CN113615132A (en) Fast flooding topology protection
CN110391987B (en) Method, apparatus and computer readable medium for selecting a designated forwarder from a carrier edge device set
CN116566752B (en) Safety drainage system, cloud host and safety drainage method
CN107800581B (en) Two-layer network and loopback detection method thereof
CN111953590B (en) Routing table entry outlet switching method and device, electronic equipment and storage medium
CN108768845B (en) Multi-homing host routing synchronization method and device
WO2012131697A1 (en) Optimizing forward database for a bursty network traffic

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant