CN106789663B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN106789663B
CN106789663B CN201610102259.6A CN201610102259A CN106789663B CN 106789663 B CN106789663 B CN 106789663B CN 201610102259 A CN201610102259 A CN 201610102259A CN 106789663 B CN106789663 B CN 106789663B
Authority
CN
China
Prior art keywords
stacking
stacking device
message
forwarding
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610102259.6A
Other languages
Chinese (zh)
Other versions
CN106789663A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610102259.6A priority Critical patent/CN106789663B/en
Publication of CN106789663A publication Critical patent/CN106789663A/en
Application granted granted Critical
Publication of CN106789663B publication Critical patent/CN106789663B/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/58Association of routers
    • H04L45/583Stackable routers
    • 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/32Flooding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables

Landscapes

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

Abstract

The embodiment of the invention provides a message forwarding method and a message forwarding device, which are applied to first stacking equipment, wherein the method comprises the following steps: updating the stacking topology after receiving a first isolation message sent by second stacking equipment; wherein the updated stacking topology does not include the second stacking device; the first isolation message is sent by the second stacking device after acquiring the software to be upgraded and before restarting; calculating a forwarding path from the first stacking device to other stacking devices except the second stacking device according to the updated stacking topology; and updating a forwarding table according to the forwarding path, and forwarding the message according to the updated forwarding table. In the embodiment of the present invention, after receiving the isolation message sent by the second stacking device, the first stacking device may delete the second stacking device from the stacking topology, so that when the first stacking device forwards the received message, the first stacking device does not forward the message to the second stacking device, thereby reducing the packet loss rate in the message forwarding process.

Description

Message forwarding method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
The ISSU (In-Service Software Upgrade) function is an Upgrade mode capable of ensuring that a Service is not interrupted or an interruption time is short In the device Upgrade process. For example, any device in the stacked system may employ ISSU functionality to enable an upgrade of that device. Specifically, the device may be rebooted and upgrade software loaded during the reboot to complete the upgrade.
In order to ensure that a service cannot be interrupted and a service packet carried by a stacking system does not lose in the upgrading process of any stacking device in the stacking system, a zero packet loss technology of a stacking aggregation link is required.
As shown in fig. 1(a), a stacking system may include a plurality of stacking devices: a stacking apparatus 1, a stacking apparatus 2, and a stacking apparatus 3; and the ports connected with each stacking device in the stacking system on the opposite terminal device are aggregated to form an aggregation group. The process of upgrading the stacking apparatus will be described by taking the stacking apparatus 2 as an example. When the stacking device 2 finishes downloading the upgrade software and before the restart becomes effective, a first message is sent to notify the opposite terminal device 1 and the opposite terminal device 2, and the member port corresponding to the stacking device 2 in the aggregation group is deleted. As shown by the dotted line in fig. 1(b), when the opposite end device 1 and the opposite end device 2 delete the member port corresponding to the stacking device 2, the member port will not re-bear the aggregate group traffic packet.
After that, the stack device 2 starts the restart, and the upgrade software is loaded. After the restart is completed, the stacking device 2 sends a third message to notify the peer device 1 and the peer device 2, and adds the member port corresponding to the stacking device 2 into the aggregation group, and then the member port can undertake the traffic forwarding of the aggregation group. When the stacking device in the stacking system is upgraded, the opposite-end device can delete the member port corresponding to the stacking device, and the opposite-end device switches the flow to the member port corresponding to other stacking devices, so that zero packet loss in the upgrading of the stacking device is realized.
As shown in fig. 2(a), when forwarding a message between peer devices, for example, a message forwarding path is from peer device 1 to peer device 2. The opposite terminal equipment 1 carries out aggregation group load sharing and sends out the message from the member port of the corresponding stacking equipment 3; after receiving the packet, the stacking device 3 determines that the packet needs to be forwarded to the peer device 2, the stacking device 3 performs hash calculation, and if the calculated path is forwarded from the stacking device 1 to the peer device 2, the stacking device 3 sends the packet to the stacking device 2 through its stacking port according to the path shown in fig. 2(a), and the stacking device 2 sends the packet to the stacking device 1 through its stacking port and forwards the packet to the peer device 2 through the stacking device 1.
However, as shown in fig. 2(b), the stack device 2 cannot perform message forwarding when it is upgraded. Therefore, when the stack device 3 forwards the received message and the forwarding path needs to pass through the stack device 2, the message is lost.
Disclosure of Invention
The embodiment of the invention aims to provide a message forwarding method and a message forwarding device so as to reduce the packet loss rate in the message forwarding process. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a packet forwarding method, where the method is applied to a first stacking device, and the method includes:
updating the stacking topology after receiving a first isolation message sent by second stacking equipment; wherein the updated stacking topology does not include the second stacking device; the first isolation message is sent by the second stacking device after acquiring the software to be upgraded and before restarting;
calculating a forwarding path from the first stacking device to other stacking devices except the second stacking device according to the updated stacking topology;
and updating a forwarding table according to the forwarding path, and forwarding the message according to the updated forwarding table.
In a second aspect, an embodiment of the present invention provides a packet forwarding apparatus, where the apparatus is applied to a first stacking device, and the apparatus includes:
the first updating module is used for updating the stacking topology after receiving a first isolation message sent by the second stacking device; wherein the updated stacking topology does not include the second stacking device; the first isolation message is sent by the second stacking device after acquiring the software to be upgraded and before restarting;
a first calculating module, configured to calculate, according to the updated stacking topology, a forwarding path from the first stacking device to a stacking device other than the second stacking device;
and the execution module is used for updating the forwarding table according to the forwarding path and forwarding the message according to the updated forwarding table.
The embodiment of the invention provides a message forwarding method and a device, wherein the method is applied to first stacking equipment and comprises the following steps: updating the stacking topology after receiving a first isolation message sent by second stacking equipment; wherein the updated stacking topology does not include the second stacking device; the first isolation message is sent by the second stacking device after acquiring the software to be upgraded and before restarting; calculating a forwarding path from the first stacking device to other stacking devices except the second stacking device according to the updated stacking topology; and updating a forwarding table according to the forwarding path, and forwarding the message according to the updated forwarding table. In the embodiment of the invention, after receiving the isolation message sent by the second stacking device to be restarted and upgraded, the first stacking device can delete the second stacking device from the stacking topology, and update the forwarding table according to the stacking topology after the second stacking device is deleted, so that the first stacking device does not forward the message to the second stacking device when forwarding the received message, thereby reducing the packet loss rate in the message forwarding process.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1(a) and fig. 1(b) are system architectures of a zero packet loss technique of a conventional stacked aggregation link;
fig. 2(a) and 2(b) are schematic diagrams of an existing upgrade process of a stacking device;
fig. 3 is a flowchart of a message forwarding method according to an embodiment of the present invention;
fig. 4 is a flowchart of an upgrade method for a stacking apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message forwarding apparatus according to an embodiment of the present invention;
fig. 6 is another schematic structural diagram of a message forwarding apparatus according to an embodiment of the present invention;
fig. 7(a) -7(c) are schematic diagrams of the upgrade process of the stacking apparatus according to the embodiment of the present invention.
Detailed Description
In order to reduce the packet loss rate in the packet forwarding process, embodiments of the present invention provide a packet forwarding method and apparatus.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to reduce the packet loss rate in the packet forwarding process, an embodiment of the present invention provides a packet forwarding method, which is applied to a first stacking device, and as shown in fig. 3, the process includes the following steps:
s301, after receiving a first isolation message sent by a second stacking device, updating a stacking topology; wherein the updated stacking topology does not include the second stacking device; and the first isolation message is sent by the second stacking device after the second stacking device acquires the software to be upgraded and before the second stacking device restarts the software to be upgraded.
In practical application, the stacking device can perform software upgrading. Specifically, the stacking device may first obtain software to be upgraded, then restart the stacking device, and load the software to be upgraded in the restart process, thereby completing the software upgrade.
It can be understood that, in the process of restarting the upgrade of the stacking device, the upgrade stacking device cannot forward the message.
Therefore, in the embodiment of the present invention, in order to reduce the packet loss rate in the packet forwarding process, before the second stacking device obtains the software to be upgraded and restarts, the second stacking device may send the first isolation message to the first stacking device to notify the first stacking device that the first stacking device itself is to be restarted and upgraded. For example, the first quarantine message may include identification information of the second stack device and status information of whether the restart is to be performed.
After receiving the first isolation message sent by the second stacking device, the first stacking device may obtain, according to the first isolation message, state information that the second stacking device is to be restarted. In addition, in order to reduce the packet loss rate in the packet forwarding process, the first stacking device may update the stacking topology without forwarding the received packet to the second stacking device, where the updated stacking topology does not include the second stacking device.
It should be noted that, in the embodiment of the present invention, the second stacking apparatus may be any stacking apparatus in a stacking system. That is, before any one of the stack devices in the stack system restarts upgrading, the first isolation message is sent to the first stack device, so that the first stack device updates the stack topology when each stack device in the stack system is upgraded.
S302, according to the updated stacking topology, calculating the forwarding path from the first stacking device to other stacking devices except the second stacking device.
After the first stacking device updates the stacking topology, it may further calculate, according to the updated stacking topology, a forwarding path from the first stacking device to another stacking device except the second stacking device, so that the received packet does not pass through the second stacking device when being forwarded to the other stacking device.
S303, updating the forwarding table according to the forwarding path, and forwarding the message according to the updated forwarding table.
In practical application, when any stacking device forwards a received message to other stacking devices, the stacking device can forward the received message according to a forwarding table stored in the stacking device. Specifically, after determining from which stacking device (referred to as a destination stacking device) the message needs to be forwarded, the stacking device may search for an egress port number corresponding to the identification information of the destination stacking device in the forwarding table according to the identification information of the destination stacking device, and forward the message from the corresponding egress port.
Therefore, in the embodiment of the present invention, after the forwarding path from the first stacking device to the other stacking devices except the second stacking device is calculated, the first stacking device may update the forwarding table according to the calculated forwarding path, and forward the packet according to the updated forwarding table.
Specifically, the first stacking device may update the egress port number corresponding to each of the other stacking devices in the forwarding table according to the calculated forwarding path.
According to the message forwarding method provided by the embodiment of the invention, after receiving the isolation message sent by the second stacking device to be restarted and upgraded, the first stacking device can delete the second stacking device from the stacking topology, and update the forwarding table according to the stacking topology after the second stacking device is deleted, so that the first stacking device does not forward the message to the second stacking device when forwarding the received message, and the packet loss rate in the message forwarding process can be reduced.
In an implementation manner of the embodiment of the present invention, after the second stacking device sends the first isolation message to the first stacking device, the second stacking device may start to restart the upgrade after waiting for a predetermined time. The predetermined time period may be a time period for ensuring that the first stacking device can finish updating the forwarding table, and may be, for example, 2 seconds, 3 seconds, 5 seconds, or the like.
In another implementation manner, in order to more accurately ensure that the second stacking device starts to restart and upgrade after the first stacking device finishes updating the forwarding table, the first stacking device may send a first isolation completion message to the second stacking device after updating the forwarding table, so that the second stacking device restarts and loads the software to be upgraded.
Further, in the embodiment of the present invention, the first stacking device may calculate a forwarding path from the first stacking device to the second stacking device according to the stacking topology before updating, and update the forwarding table according to the calculated forwarding path from the first stacking device to the second stacking device.
Further, in practical applications, when each stacking apparatus normally operates, the stacking topology is usually a ring topology. Therefore, the multicast message may be forwarded continuously, that is, a message forwarding storm may be caused. In order to prevent the message forwarding storm, a corresponding source filtering table is stored in each stacking device, and the source filtering table of any stacking device specifies which device the message from is to be filtered, namely, the message is to be blocked.
In the embodiment of the present invention, after the first stacking device deletes the second stacking device from the stacking topology, the updated stacking topology is not the ring topology, so that the problem of a message forwarding storm does not exist.
Therefore, in the embodiment of the present invention, after updating the stack topology, the first stack device may delete the source filter table stored in the first stack device for preventing the packet forwarding storm.
Further, the stacking apparatus 1 may also upgrade itself, please refer to fig. 4, and the method for upgrading a stacking apparatus provided in the embodiment of the present invention may include:
s401, when the software to be upgraded is acquired and before the software to be upgraded is restarted, a deletion message is sent to the opposite-end device outside the stack, so that the opposite-end device deletes the member port corresponding to the first stack device in the aggregation group.
In practical application, ports connected to each stacking device in the stacking system on the peer device are aggregated to form an aggregation group. When the opposite terminal equipment sends a message to the stacking system, load sharing is carried out in the aggregation group, namely, an output port is selected from the aggregation group through a load sharing algorithm, and the message is forwarded to the stacking equipment connected with the output port in the stacking system through the output port.
It can be understood that the first stacking device will not be able to forward the message during the restart upgrade process. In this case, if the peer device forwards the received packet to the first stacking device, packet loss will result.
Therefore, in the embodiment of the present invention, in order to reduce the packet loss rate of packet forwarding in the process of upgrading the first stacking device, before the first stacking device is restarted after acquiring the software to be upgraded, a deletion message may be sent to the peer device outside the stack, so that the peer device deletes the member port corresponding to the first stacking device in the aggregation group.
Before the first stacking device is restarted and upgraded, the deleting message is sent to the opposite end device outside the stack, so that the opposite end device deletes the member port corresponding to the first stacking device in the aggregation group, the opposite end device cannot forward the message from the member port corresponding to the first stacking device when receiving the message, the message cannot be forwarded to the first stacking device, and packet loss cannot be caused.
S402, sending a second isolation message to a third stacking device, so that the third stacking device sends a second isolation completion message to the first stacking device after updating the forwarding table.
When the first stacking device sends a deletion message to the opposite device, so that the opposite device deletes the member port corresponding to the first stacking device in the aggregation group, it can be ensured that the opposite device does not forward the message to the first stacking device. However, in practical applications, when other stacking devices in the stacking system forward a message, the message may need to be forwarded by the first stacking device. In this case, since the first stacking device cannot forward the packet when upgrading, the packet forwarded by the first stacking device is lost, which results in a large amount of packet loss.
Therefore, in the embodiment of the present invention, before restarting the upgrade, the first stacking device may further send a second isolation message to the third stacking device, so that the third stacking device sends a second isolation completion message to the first stacking device after updating the forwarding table.
It should be noted that, in the embodiment of the present invention, the third stacking apparatus may be any stacking apparatus in a stacking system. That is, before restarting the upgrade, the first stacking device sends a second isolation message to each stacking device in the stacking system, so that each stacking device in the stacking system updates the forwarding table and sends a second isolation completion message to the first stacking device.
Specifically, the first stacking device may send a second isolation message to a third stacking device before restarting the upgrade, and after receiving the second isolation message sent by the first stacking device, the third stacking device may update the stacking topology, calculate a path from the third stacking device to another stacking device except the first stacking device, and update the forwarding table according to the calculated path. And after the third stacking device updates the forwarding table, the third stacking device may send a second isolation completion message to the first stacking device, so that the first stacking device may start to restart and upgrade.
It should be noted that, the step S401 and the step S402 may be executed simultaneously, or may also be executed sequentially, for example, the step S401 is executed first, and then the step S402 is executed, or the step S402 is executed first, and then the step S401 is executed, which is not limited in this embodiment of the present invention.
And S403, restarting and loading the software to be upgraded after receiving the second isolation completion message.
After receiving the second isolation completion message, the first stacking device may indicate that the third stacking device has completed updating the forwarding table, that is, the third stacking device may not forward the message to the first stacking device, and in this case, the first stacking device may restart and load the software to be upgraded, thereby completing the upgrade.
In the method for upgrading a stacking device provided in the embodiment of the present invention, before the first stacking device performs restart upgrading, a delete message is sent to an opposite device outside the stack, so that the opposite device deletes a member port corresponding to the first stacking device in the aggregation group, and sends a second isolation message to the third stacking device, so that the third stacking device sends a second isolation completion message to the first stacking device after updating the forwarding table, and the first stacking device starts restart upgrading.
Further, in this embodiment of the present invention, after the upgrade software is loaded, the first stacking device may send a join message to the peer device, so that the peer device joins the member port corresponding to the first stacking device to the aggregation group.
After the opposite-end device adds the member port corresponding to the first stacking device into the aggregation group, the first stacking device can resume the traffic forwarding of the aggregation group, and the traffic forwarding capability of the aggregation group is improved.
Further, in the embodiment of the present invention, after the second stacking device completes software upgrade, the second stacking device rejoins the stacking system, and the first stacking device may find that the second stacking device joins the stacking system, then calculate a forwarding path from the first stacking device to another stacking device according to the stacking topology before updating, and update the forwarding table according to the calculated forwarding path from the first stacking device to another stacking device. The process of discovering that the stacking device joins the stacking system is the same as that in the prior art, and is not described herein again.
Corresponding to the above method embodiment, the embodiment of the present invention also provides a corresponding device embodiment.
Fig. 5 is a packet forwarding apparatus according to an embodiment of the present invention, where the apparatus is applied to a first stacking device, and the apparatus includes:
a first updating module 510, configured to update the stacking topology after receiving a first isolation message sent by a second stacking device; wherein the updated stacking topology does not include the second stacking device; the first isolation message is sent by the second stacking device after acquiring the software to be upgraded and before restarting;
a first calculating module 520, configured to calculate, according to the updated stack topology, a forwarding path from the first stack device to a stack device other than the second stack device;
and the executing module 530 is configured to update the forwarding table according to the forwarding path, and forward the packet according to the updated forwarding table.
In the message forwarding apparatus provided in the embodiment of the present invention, after receiving the isolation message sent by the second stacking device to be restarted and upgraded, the first stacking device may delete the second stacking device from the stacking topology, and update the forwarding table according to the stacking topology after deleting the second stacking device, so that when forwarding the received message, the first stacking device does not forward the message to the second stacking device, thereby reducing a packet loss rate in a message forwarding process.
Further, the apparatus further comprises:
a first sending module (not shown in the figure), configured to send a first isolation completion message to the second stacking device after the forwarding table is updated according to the forwarding path, so that the second stacking device restarts and loads the software to be upgraded.
Further, the apparatus further comprises:
a second calculating module (not shown in the figure) for calculating a forwarding path from the first stacking apparatus to the second stacking apparatus according to the stacking topology before updating;
and a second updating module (not shown in the figure) for updating the forwarding table according to the calculated forwarding path from the first stacking device to the second stacking device.
Further, the apparatus further comprises:
and a deleting module (not shown in the figure) for deleting the source filter table for preventing the message forwarding storm, which is stored by the deleting module after the stacking topology is updated.
Further, as shown in fig. 6, the message forwarding apparatus provided in the embodiment of the present invention may further include:
a second sending module 610, configured to send a deletion message to an opposite-end device outside a stack before the software to be upgraded is obtained and restarted, so that the opposite-end device deletes a member port corresponding to the first stacking device in the aggregation group;
a third sending module 620, configured to send a second isolation message to a third stacking device, so that the third stacking device sends a second isolation completion message to the first stacking device after updating the forwarding table;
the upgrading module 630 is configured to restart and load the software to be upgraded after receiving the second isolation completion message.
Further, the apparatus further comprises:
a joining module (not shown in the figure), configured to send a joining message to the peer device after the upgrade software is loaded, so that the peer device joins the member port corresponding to the first stacking device to the aggregation group.
The following describes the upgrade method of the stacking apparatus according to a specific embodiment of the present invention in detail.
As shown in fig. 7(a), the stacking system in the present embodiment may include a plurality of stacking apparatuses: the stacking apparatus 1, the stacking apparatus 2, the stacking apparatus 3, the stacking apparatus 4, and the stacking apparatus 5, constituting an annular stack; and, the port connected to each stacking device in the stacking system is aggregated by the peer device 1 and the peer device 2 to form an aggregation group.
The process of upgrading the stacking apparatus according to the embodiment of the present invention is described by taking the stacking apparatus 2 as an example. When the stacking device 2 finishes downloading the software to be upgraded and the restart is effective, a deletion message may be sent to the peer device 1 and the peer device 2, and after the peer device 1 and the peer device 2 receive the deletion message sent by the stacking device 2, the member port corresponding to the stacking device 2 in the aggregation group may be deleted. As shown by the dotted line in fig. 7(b), when the opposite end device 1 and the opposite end device 2 delete the member port of the corresponding stacking device 2 in the aggregation group, the member port does not re-distribute the aggregation group traffic packet.
Moreover, the stacking device 2 may send an isolation message to other stacking devices (the stacking device 1, the stacking device 3, the stacking device 4, and the stacking device 5) in the stacking system, in this embodiment, it is described by taking the case where the stacking device 3 receives the isolation message as an example, and after the stacking device 3 receives the isolation message, the stacking topology may be updated, as shown in fig. 7(c), which is an equivalent diagram of the stacking topology after the stacking device 2 is deleted. Then, according to the updated stacking topology, calculating a path from the self to other stacking devices except the stacking device 2, according to the topology before updating, calculating a path from the self to the stacking device 2, according to the calculated path, updating a forwarding table, and according to the updated forwarding table, forwarding a message. After the forwarding table is updated, the stacking device 3 may send an isolation completion message to the stacking device 2, and when the stacking device 2 receives the isolation completion messages sent by all other stacking devices in the stacking system, restart the upgrade.
After that, the stack device 2 starts the restart, and the upgrade software is loaded. After the restart is completed, the stacking device 2 sends a join message to the peer device 1 and the peer device 2, the peer device 1 and the peer device 2 join the member port corresponding to the stacking device 2 into the aggregation group, and then the member port can undertake the traffic forwarding of the aggregation group. When other stacking equipment (such as the stacking equipment 3) in the stacking system finds that the stacking equipment 2 is added into the stacking system again, the path from the stacking equipment to the other stacking equipment is calculated according to the topology before updating, the forwarding table is updated according to the calculated path, and the message is forwarded according to the updated forwarding table.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A message forwarding method is applied to a first stacking device, and the method comprises the following steps:
updating the stacking topology after receiving a first isolation message sent by second stacking equipment; wherein the updated stacking topology does not include the second stacking device; the first isolation message is sent by the second stacking device after acquiring the software to be upgraded and before restarting;
calculating a forwarding path from the first stacking device to other stacking devices except the second stacking device according to the updated stacking topology;
updating a forwarding table according to the forwarding path, and forwarding a message according to the updated forwarding table;
after updating a forwarding table according to the forwarding path, the method further comprises:
and sending a first isolation completion message to the second stacking device so as to restart the second stacking device and load the software to be upgraded.
2. The method of claim 1, further comprising:
calculating a forwarding path from the first stacking device to the second stacking device according to the stacking topology before updating;
and updating a forwarding table according to the calculated forwarding path from the first stacking device to the second stacking device.
3. The method of claim 1, wherein after updating the stacking topology, the method further comprises:
and deleting the source filtering table which is stored by the source filtering table and used for preventing the message forwarding storm.
4. The method according to any one of claims 1-3, further comprising:
sending a deletion message to opposite-end equipment outside a stack to enable the opposite-end equipment to delete a member port corresponding to the first stacking equipment in an aggregation group before restarting after acquiring software to be upgraded; and are
Sending a second isolation message to a third stacking device, so that the third stacking device sends a second isolation completion message to the first stacking device after updating a forwarding table;
and restarting and loading the software to be upgraded after receiving the second isolation completion message.
5. The method of claim 4, further comprising:
and after the upgrade software is loaded, sending a join message to the opposite terminal device, so that the opposite terminal device joins the member port corresponding to the first stacking device to the aggregation group.
6. A message forwarding apparatus, the apparatus being applied to a first stacking device, the apparatus comprising:
the first updating module is used for updating the stacking topology after receiving a first isolation message sent by the second stacking device; wherein the updated stacking topology does not include the second stacking device; the first isolation message is sent by the second stacking device after acquiring the software to be upgraded and before restarting;
a first calculating module, configured to calculate, according to the updated stacking topology, a forwarding path from the first stacking device to a stacking device other than the second stacking device;
the execution module is used for updating the forwarding table according to the forwarding path and forwarding the message according to the updated forwarding table;
the device further comprises:
and the first sending module is used for sending a first isolation completion message to the second stacking device after the forwarding table is updated according to the forwarding path so as to restart the second stacking device and load the software to be upgraded.
7. The apparatus of claim 6, further comprising:
the second calculation module is used for calculating a forwarding path from the first stacking device to the second stacking device according to the stacking topology before updating;
and the second updating module is used for updating the forwarding table according to the calculated forwarding path from the first stacking device to the second stacking device.
8. The apparatus of claim 6, further comprising:
and the deleting module is used for deleting the source filtering table which is stored by the deleting module and used for preventing the message forwarding storm after the stacking topology is updated.
9. The apparatus of any of claims 6-8, further comprising:
a second sending module, configured to send a deletion message to an opposite-end device outside a stack before restarting after acquiring the software to be upgraded, so that the opposite-end device deletes a member port corresponding to the first stacking device in the aggregation group; and are
A third sending module, configured to send a second isolation message to a third stacking device, so that the third stacking device sends a second isolation completion message to the first stacking device after updating the forwarding table;
and the upgrading module is used for restarting and loading the software to be upgraded after receiving the second isolation completion message.
10. The apparatus of claim 9, further comprising:
and the joining module is used for sending a joining message to the opposite terminal equipment after the upgrade software is loaded, so that the opposite terminal equipment joins the member port corresponding to the first stacking equipment into the aggregation group.
CN201610102259.6A 2016-02-24 2016-02-24 Message forwarding method and device Active CN106789663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610102259.6A CN106789663B (en) 2016-02-24 2016-02-24 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610102259.6A CN106789663B (en) 2016-02-24 2016-02-24 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106789663A CN106789663A (en) 2017-05-31
CN106789663B true CN106789663B (en) 2021-04-16

Family

ID=58972191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610102259.6A Active CN106789663B (en) 2016-02-24 2016-02-24 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106789663B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911250B (en) * 2017-11-28 2021-08-24 新华三技术有限公司 Stacking system and method for preventing traffic loss
CN109560975B (en) * 2019-01-31 2022-02-25 新华三技术有限公司 Equipment updating method and device
CN115426325A (en) * 2022-09-16 2022-12-02 杭州云合智网技术有限公司 Unicast zero packet loss method for restarting single Leaf device in stacking environment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546322A (en) * 2013-10-28 2014-01-29 杭州华三通信技术有限公司 Stack link failure processing method and device
CN103856357A (en) * 2014-03-21 2014-06-11 迈普通信技术股份有限公司 Stack system fault processing method and stack system
US8990619B1 (en) * 2012-02-21 2015-03-24 Cisco Technology, Inc. Method and systems to perform a rolling stack upgrade

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699789B (en) * 2009-09-25 2011-11-23 江苏华丽网络工程有限公司 Design method of Ethernet device stack system
CN102148744B (en) * 2010-02-10 2013-09-25 杭州华三通信技术有限公司 Method and system for reducing package loss during restarting process of stacking device
CN102724109A (en) * 2012-05-23 2012-10-10 杭州华三通信技术有限公司 Flow forwarding method and equipment
CN102970157B (en) * 2012-10-31 2016-01-27 杭州华三通信技术有限公司 Link failure processing method, IRF member device and data communication equipment
CN103916319B (en) * 2013-01-06 2017-03-15 杭州华三通信技术有限公司 Link selecting method and stack equipment in LACP stacking networkings

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990619B1 (en) * 2012-02-21 2015-03-24 Cisco Technology, Inc. Method and systems to perform a rolling stack upgrade
CN103546322A (en) * 2013-10-28 2014-01-29 杭州华三通信技术有限公司 Stack link failure processing method and device
CN103856357A (en) * 2014-03-21 2014-06-11 迈普通信技术股份有限公司 Stack system fault processing method and stack system

Also Published As

Publication number Publication date
CN106789663A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US8151321B2 (en) Modular network-assisted policy resolution
CN109842694B (en) Method for synchronizing MAC addresses, network equipment and computer readable storage medium
EP3110082B1 (en) Processing method and device for graceful restart of open flow switch, and open flow controller
CN110162314B (en) Software upgrading management method, server, terminal, device and storage medium
CN105653374B (en) Method, device and system for executing distributed transaction resources
CN106789663B (en) Message forwarding method and device
WO2015113278A1 (en) Method for upgrading virtualized network function and network function virtualization orchestrator
CN106789638B (en) Method for processing route and network equipment
WO2016058412A1 (en) Method and device for achieving virtualized network function deployment, and storage medium
US20170126828A1 (en) Sending Method and Apparatus and Computer Storage Medium of Notification Message
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN108712783B (en) CAPWAP tunnel establishment method and device
CN109728932B (en) SDN setting method, controller, switch and computer readable storage medium
CN114007241A (en) ZigBee system, gateway equipment thereof, gateway switching method and device
US10257768B2 (en) Packet sending method and apparatus
CN104104701A (en) Online service configuration updating method and system
US20160021634A1 (en) Control apparatus, communication system, synchronization method and program
WO2016145871A1 (en) Monitor task updating method and device
EP3174322A1 (en) Method for deleting notification resource, and common service entity
CN115996187A (en) Routing information processing method and device, routing information interaction system and routing equipment
CN113676894B (en) Service processing method and equipment
CN113300950B (en) Data processing method and device, electronic equipment and computer readable medium
CN111404827B (en) Data packet processing method and device, electronic equipment and storage medium
JP6741256B2 (en) Communication relay device, wireless communication system, communication relay device control method, and control program
WO2018090988A1 (en) Method and apparatus for controlling terminal network data, and routing device

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