CN104702511B - The method and node that node exits network - Google Patents

The method and node that node exits network Download PDF

Info

Publication number
CN104702511B
CN104702511B CN201310661855.4A CN201310661855A CN104702511B CN 104702511 B CN104702511 B CN 104702511B CN 201310661855 A CN201310661855 A CN 201310661855A CN 104702511 B CN104702511 B CN 104702511B
Authority
CN
China
Prior art keywords
node
network node
power
message
network
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
CN201310661855.4A
Other languages
Chinese (zh)
Other versions
CN104702511A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310661855.4A priority Critical patent/CN104702511B/en
Publication of CN104702511A publication Critical patent/CN104702511A/en
Application granted granted Critical
Publication of CN104702511B publication Critical patent/CN104702511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of method that node exits network and node.The method that the node exits network includes that network node sends lower electric notification message to adjacent node;The network node receives the lower electric ready message that the adjacent node is sent, and the lower electric ready message is used to indicate the transmission operation that the adjacent node completes the data message of caching;The network node is electrically operated under being completed according to the lower electric ready message.The data that adjacent node caches during network node exits network may be implemented in the embodiment of the present invention also can avoid packet loss problem by target node, realize that the network of network node service nondestructive exits.

Description

Method for node to exit network and node
Technical Field
The embodiment of the invention relates to a communication technology, in particular to a method for a node to exit a network and the node.
Background
In a data center, particularly, a storage network formed by an Ethernet Fibre Channel (FCoE for short) is inherited by a Fibre Channel (FC for short) network, and if packet loss occurs, the cost is high, and the service is seriously affected. Under the conditions of active change of network topology, including power-off of equipment, change of port connection and the like, the service is required to be ensured to be lossless really, and no packet loss phenomenon occurs in the network.
In the prior art, in some service networks, a service module sends a leaving request message to a subsequent node and a previous node thereof respectively before exiting the network; after receiving the message, the successor node and the successor node update the own predecessor and successor nodes respectively, so that the successor node and the successor node are in direct communication. However, when forwarding devices such as a data center switch close the devices or plug and unplug network interfaces on a physical link, a problem of packet loss may occur at a port where an adjacent node connects the device.
Disclosure of Invention
The invention provides a method for a node to exit from a network and the node, which can realize that the node continuously transmits the data message cached by an adjacent node before exiting from the network, thereby solving the problem of data packet loss when the node exits from the network.
In a first aspect, the present invention provides a method for a node to exit a network, including:
the network node sends a power-off notification message to the adjacent node; the network node receives a power-off ready message sent by an adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message; and the network node completes the power-off operation according to the power-off ready message.
With reference to the first aspect, in a first implementation manner, before the network node receives the power-down ready message sent by the neighboring node, the method further includes: a network node receives a data message which is sent by an adjacent node and is cached in the adjacent node; and the network node sends the data message to other adjacent nodes of the network node.
In a second aspect, the present invention provides a method for a node to exit a network, including:
the adjacent node receives a power-off notification message sent by the network node; and the adjacent node sends a power-off ready message to the network node according to the condition of caching the data message in the cache of the port connected with the network node.
With reference to the second aspect, in a first implementation manner, the sending, by an adjacent node, a power-off ready message to a network node according to a condition that a data packet is cached in a cache of a port connected to the network node specifically includes: if the data message is stored in the cache, after the adjacent node sends the data message to the network node, the adjacent node sends a power-off ready message to the network node so that the network node forwards the data message; or, if the cache does not have the cache data message, the adjacent node directly sends the power-off ready message to the network node.
With reference to the second aspect and the first implementation, in a second implementation, after the neighboring node receives the power down notification message sent by the network node, the method further includes: the adjacent nodes delete the path containing the network node from the equal cost multi-path routing ECMP group; alternatively, the neighboring node deletes the port to which the network node is connected from the port group of the logical link.
In a third aspect, the present invention provides a network node, comprising:
the sending module is used for sending a power-off notification message to the adjacent node;
the receiving module is used for receiving a power-off ready message sent by the adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message;
and the processing module is used for finishing power-off operation according to the power-off ready message.
With reference to the third aspect, in the first implementation manner, before the receiving module receives the power-off ready message sent by the neighboring node, the receiving module is further configured to: receiving a data message which is sent by an adjacent node and is cached in the adjacent node; the sending module is further configured to send the data packet to other neighboring nodes of the network node.
In a fourth aspect, the present invention provides an adjacent node, including:
the receiving module is used for receiving a power-off notification message sent by a network node; and the sending module is used for sending the power-off ready message to the network node according to the condition that the data message is cached in the cache of the port connected with the network node.
With reference to the fourth aspect, in a first implementation manner, the sending module is configured to send a power-off ready message to the network node according to a condition that a data packet is cached in a cache of a port connected to the network node, and specifically includes: if the data message is stored in the cache, after the sending module sends the data message to the network node, the sending module sends a power-off ready message to the network node so that the network node forwards the data message; or, if there is no data packet in the cache, the sending module directly sends a power-off ready message to the network node.
With reference to the fourth aspect and the first implementation, in a second implementation, the apparatus further includes a processing module, configured to delete a path including the network node from the equal-cost multi-path routing ECMP group after the receiving module receives a power-down notification message sent by the network node; alternatively, the port to which the network node is connected is removed from the port group of the logical link.
In a fifth aspect, the present invention provides a network node, comprising:
a transmitter for transmitting a power-down notification message to a neighboring node;
the receiver is used for receiving a power-off ready message sent by the adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message;
and the processor is used for finishing power-off operation according to the power-off ready message.
With reference to the fifth aspect, in the first embodiment, before the receiver receives the power-down ready message sent by the neighboring node, the receiver is further configured to: receiving a data message which is sent by an adjacent node and is cached in the adjacent node; the transmitter is also configured to transmit data packets to other neighboring nodes of the network node.
In a sixth aspect, the present invention provides an adjacent node, including:
the receiver is used for receiving a power-off notification message sent by the network node;
and the transmitter is used for sending the power-off ready message to the network node according to the condition that the data message is cached in the cache of the port connected with the network node.
With reference to the sixth aspect, in a first implementation manner, the transmitter is configured to send a power-down ready message to the network node according to a condition that a data packet is cached in a cache of a port connected to the network node, and specifically includes: if the data message is stored in the cache, after the transmitter sends the data message to the network node, the transmitter sends a power-off ready message to the network node so that the network node forwards the data message; or, if the data message is not cached in the cache, the transmitter directly sends a power-off ready message to the network node.
With reference to the sixth aspect and the first implementation manner, in a second implementation manner, the method further includes deleting a path including the network node from the equal cost multi-path routing ECMP group after the receiver receives a power-down notification message sent by the network node; alternatively, the port to which the network node is connected is removed from the port group of the logical link.
The method and the node for the node to exit from the network provided by the embodiment of the invention have the advantages that the network node sends a power-off notification message to the adjacent node, and after receiving the power-off notification message sent by the network node, the adjacent node sends a power-off ready message to the network node according to the condition that the data message is cached in the cache of the port connected with the network node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message; and the network node receives the power-off ready message sent by the adjacent node and then completes the power-off operation according to the power-off ready message. Therefore, the data cached by the adjacent node in the process that the network node exits the network can be forwarded through the network node, and the problem of packet loss is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for a node to exit a network according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for a node to exit from a network according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for a node to exit from a network according to a third embodiment of the present invention;
fig. 4 is a topology structure diagram of a node network according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network node according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an adjacent node according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an adjacent node according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of a network node according to an eighth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a neighboring node according to a ninth embodiment of the present invention;
fig. 10 is a schematic structural diagram of an adjacent node according to a tenth 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.
Fig. 1 is a flowchart of a method for a node to exit a network according to an embodiment of the present invention. As shown in fig. 1, a method for a node to exit a network according to an embodiment of the present invention includes:
s101, a network node sends a power-off notification message to an adjacent node;
the network node and the neighboring node may be switches or other network devices. Implementation scenarios in which a network node may exit the network include: the connections in the software protocol change or the physical network topology changes. The adjacent nodes may include a previous node and a subsequent node connected to the network node, and after the network node is powered off, the message transmission between the previous node and the subsequent node does not pass through the network node any more, but transmits via other paths.
S102, the network node receives a power-off ready message sent by the adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish sending operation of the cached data message.
In the embodiment of the present invention, after the neighboring node receives the power-off notification message of the network node, if the neighboring node has cached a data message, for example: if the previous node has cached the data packet to be sent to the previous node, or the previous node has cached the data packet to be sent to the previous node, these cached data packets may also be sent by the network node, that is to say: before a network node receives a power-off ready message sent by an adjacent node, the network node receives a data message which is sent by the adjacent node and is cached in the adjacent node; the network node sends the data message to other adjacent nodes of the network node.
This operation enables the network node to continue the relay operation responsible for caching data between the neighboring nodes before receiving the power-off ready message sent by the neighboring node. After the data messages cached in the ports of the adjacent nodes are sent, the adjacent nodes respectively send power-off ready messages to the network nodes to prompt that the cached data are sent completely.
It can be understood that if no data packet is cached in the neighboring node, for example: if the data message to be sent to the subsequent node is not cached on the previous node, the previous node can directly send a power-off ready message to the network node; similarly, the data packet to be sent to the successor node is not cached on the successor node, and the successor node can directly send the power-off ready message to the network node.
S103, the network node completes power-off operation according to the power-off ready message.
Specifically, after receiving a power-off ready message of an adjacent node, the network node can complete power-off operation according to the power-off ready message, and quit the network. The power-down operation may include a mode of actively changing through a change of a software application layer or a physical connection, such as a connection change of a software protocol, an active closing of a device, or a plugging of a network interface.
In this embodiment, a network node sends a power-off notification message to an adjacent node; receiving a power-off ready message sent by an adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message; and finally, completing power-off operation according to the power-off ready message. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Fig. 2 is a flowchart of a method for a node to exit from a network according to a second embodiment of the present invention. As shown in fig. 2, a method for a node to exit a network according to a second embodiment of the present invention includes:
s201, receiving a power-off notification message sent by a network node by an adjacent node;
the network node and the neighboring node may be switches or other network devices. Implementation scenarios in which a network node may exit the network include: the connections in the software protocol change or the physical network topology changes. The adjacent nodes may include a previous node and a subsequent node connected to the network node, and after the network node is powered off, the message transmission between the previous node and the subsequent node does not pass through the network node any more, but transmits via other paths.
When the network node is going to be powered off, the adjacent node needs to update the path stored by the adjacent node, and delete the path containing the original network node. Specifically, the updating method of the network transmission path is different according to the difference of the routing protocol in the network. Because there are generally two architectures in a data center network, after receiving a power-down notification message sent by a network node, an adjacent node further includes:
the adjacent nodes delete the path containing the network node from the equal cost multi-path routing ECMP group; or,
the neighboring node deletes the port to which the network node is connected from the port group of the logical link.
The following describes the two implementation scenarios:
when a network uses a Transparent Interconnection of Lots of links (TRILL) architecture, nodes within the network are addressed by groups of Equal-Cost Multi-path Routing (ECMP) stored in the nodes. Therefore, the path update operation can be completed by deleting the path including the network node from the equal cost multi-path routing group.
When the network adopts a stacking structure, the nodes in the network are connected with each other through Ethernet physical links. All physical links between nodes are bound together to form a logical link Eth-trunk, thereby achieving the purpose of increasing the link bandwidth. At this time, the plurality of ports on the physical link are aggregated together to form a port group on the logical link, so that the path updating operation can be completed as long as the adjacent node deletes the port connected with the network node from the port group of the logical link.
S202, sending a power-off ready message to the network node by the adjacent node according to the condition of caching the data message in the cache of the port connected with the network node.
Specifically, the sending, by the neighboring node, the power-off ready message to the network node according to the condition of the data packet cached in the cache of the port connected to the network node specifically includes:
if the data message is stored in the cache, after the adjacent node sends the data message to the network node, the adjacent node sends the power-off ready message to the network node so that the network node forwards the data message; or,
if the cache data message does not exist in the cache, the adjacent node directly sends a power-off ready message to the network node.
If the data message to be sent to the subsequent node is not cached on the previous node, the previous node can directly send a power-off ready message to the network node; similarly, the data packet to be sent to the successor node is not cached on the successor node, and the successor node can directly send the power-off ready message to the network node.
When the data packet is cached in the neighboring node, for example: when the data message to be sent to the subsequent node is cached by the previous node, or the data message to be sent to the previous node is cached by the subsequent node, the data message to be sent by the adjacent node is stored in the port Buffer cache of the node, and the message cached by the port is continuously sent until all cached messages are sent. During this period, the port of the adjacent node connected to the network node enters a "semi-closed" state, in which the transceiving function of the port is kept normal, but a new message to be sent does not enter the port, and at this time, the port only sends the cached data message.
In this embodiment, the neighboring node receives a power-off notification message sent by the network node, and then sends a power-off ready message to the network node according to a condition that the data packet is cached in a cache of a port connected to the network node. If the data message is stored in the cache, after the adjacent node sends the data message to the network node, the adjacent node sends a power-off ready message to the network node so that the network node forwards the data message; or the cache does not have the cache data message, the adjacent node directly sends a power-off ready message to the network node. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Fig. 3 is a flowchart of a method for a node to exit from a network according to a third embodiment of the present invention. As shown in fig. 3, the present embodiment provides a specific interaction process between a network node and an adjacent node in a process of a node exiting a network, and the method for a node exiting a network provided by the present embodiment includes:
s301, the network node sends a power-off notification message to the adjacent node;
in this embodiment, it is assumed that there are four nodes between server a and server B in the network, which are switch A, B, C, D, where switch a is connected to server a and switch B is connected to server B; switch C and switch D are connected to different ports between switch a and switch B, respectively, and the network topology is as shown in fig. 4. The switch C is a network node, and the switch a and the switch B are adjacent nodes. Before a switch C as a network node is powered down, down request power-down notification messages are respectively sent to a switch A and a switch B which are adjacent nodes.
S302, the adjacent node receives a power-off notification message sent by the network node;
specifically, in the network topology of fig. 4, when switch C is ready to power down, switches a and B receive the down request power down notification message sent by switch C.
Specifically, after receiving the power down notification message sent by the network node, the neighboring node further includes:
the neighboring nodes delete the path containing the network node from the equal cost multi-path routing ECMP group.
Among them, in a data center network, there are generally two architectures: the embodiment takes a link semitransparent interconnected TRILL architecture as an example.
When the network uses the TRILL architecture, server a has two ECMP paths to server B:
route of travel Outlet port of switch A
1 A-C-B A-1
2 A-D-B A-2
As can be seen from the above table, the outgoing port 1 and the port 2 of the switch a correspond to the switch C and the switch B, respectively, to form two paths a-C-B and a-D-B. After receiving the down request power-on message, the port 1 of the switch a deletes the path a-C-B from the equal cost multi-path routing ECMP group (ECMP group), so that the subsequent data is not transmitted to the port 1, but transmitted through another port.
S303, sending a power-off ready message to the network node by the adjacent node according to the condition of caching the data message in the cache of the port connected with the network node;
specifically, the sending, by the neighboring node, the power-off ready message to the network node according to the condition of the data packet cached in the cache of the port connected to the network node specifically includes:
if the data message is stored in the cache, after the adjacent node sends the data message to the network node, the adjacent node sends the power-off ready message to the network node so that the network node forwards the data message; or,
if the cache data message does not exist in the cache, the adjacent node directly sends a power-off ready message to the network node.
When the port 1 of the switch a has the cache, the message cached on the port 1 is continuously sent, and at this time, the port 1 of the switch a enters a "semi-closed" state, and in this state, the transceiving function of the port is normal, but a new message to be sent does not enter the port. At this time, the data packet cached on the port 1 of the switch a is sent to the switch C, and the switch C forwards the data packet to the port 1 of the switch B. And when all the data messages cached on the port 1 of the switch A are sent, the switch A sends a power-off ready message to the switch C. And after the switch C obtains the power-off ready messages sent by the switch A and the switch B, executing power-off operation and finishing network exit. Server a can now access server B via switch a-switch D-switch B path. Similarly, the data packets buffered on the ports in switch B are sent according to a similar method.
S304, the network node receives a power-off ready message sent by the adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message;
specifically, before the network node receives a power-off ready message sent by an adjacent node, the method further includes:
a network node receives a data message which is sent from an adjacent node and is cached in the adjacent node; the network node sends the data message to other adjacent nodes of the network node.
Taking the network topology structure in fig. 4 as an example, after the network node switch C sends the power down notification message to the adjacent node switch a and the switch B, the relay operation is performed on the data cached by the two adjacent nodes. And after the data messages cached in the ports of the switch A and the switch B are sent, the switch A and the switch B respectively send ready power-off notifications to the switch C.
S305, the network node completes power-off operation according to the power-off ready message.
And the switch C is powered off actively and quits the network connection. The access path between server a and server B becomes a-D-B at this time.
In this embodiment, a network node sends a power-off notification message to an adjacent node; the adjacent node receives a power-off notification message sent by the network node; then sending a power-off ready message to the network node according to the condition of caching the data message in a cache of a port connected with the network node; the network node receives a power-off ready message sent by an adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message; and finally, the network node completes power-off operation according to the power-off ready message. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Referring to fig. 3, a fourth embodiment of the present invention further provides a method for a node to exit from a network, which may specifically perform each step of the third embodiment, and details are not described here. The present embodiment is different from the third embodiment in that after the neighboring node receives the power down notification message sent by the network node, the method further includes:
the neighboring node deletes the port to which the network node is connected from the port group of the logical link.
In particular, this step is applicable to an implementation scenario using a stacked architecture with a network between server a and server B. At this time, the nodes in the network are connected with each other through Ethernet physical links. All physical links between nodes are bound together to form a logical link Eth-trunk, thereby achieving the purpose of increasing the link bandwidth. At this time, the plurality of ports on the physical link are aggregated together to form a port group on the logical link, so that the path updating operation can be completed as long as the adjacent node deletes the port connected with the network node from the port group of the logical link.
Specifically, taking the network topology shown in fig. 4 as an example, under this architecture, the MAC table of the server B will be learned on the port eth trunk1(a-1, a-2) of the switch a, and after the port 1 of the switch a receives the down request, the port 1 is removed from the port group of the eth trunk1, so that the following data will not be transmitted to the port 1 any more, but transmitted via another port. Thereby completing the update of the entire network path.
In this embodiment, when the network is a stacked architecture, after the neighboring node receives a power-down notification message sent by the network node, the neighboring node deletes the port connected to the network node from the port group of the logical link. In this way, the path containing the network node to be powered down is deleted from the logical links of the adjacent nodes, thereby realizing the updating of the whole network path.
Fig. 5 is a schematic structural diagram of a network node according to a fifth embodiment of the present invention. The network node is configured to implement the method shown in fig. 1 or fig. 3. As shown in fig. 5, the network node comprises:
a sending module 501, configured to send a power-off notification message to an adjacent node;
a receiving module 502, configured to receive a power-off ready message sent by an adjacent node, where the power-off ready message is used to instruct the adjacent node to complete sending operation of a cached data packet;
and the processing module 503 is configured to complete a power-off operation according to the power-off ready message.
Specifically, the receiving module 502 is further configured to, before receiving a power-off ready message sent by a neighboring node:
receiving a data message which is sent by an adjacent node and is cached in the adjacent node;
the sending module 501 is further configured to send the data packet to other neighboring nodes of the network node.
In this embodiment, a network node sends a power-off notification message to an adjacent node; receiving a power-off ready message sent by an adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message; and finally, completing power-off operation according to the power-off ready message. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Fig. 6 is a schematic structural diagram of an adjacent node according to a sixth embodiment of the present invention. The neighboring nodes are used to implement the method shown in fig. 2 or fig. 3. As shown in fig. 6, the neighboring node includes:
a receiving module 601, configured to receive a power-off notification message sent by a network node;
a sending module 602, configured to send a power-off ready message to a network node according to a condition that a data packet is cached in a cache of a port connected to the network node.
Specifically, the sending module 602 is configured to send a power-off ready message to the network node according to a condition that a data packet is cached in a cache of a port connected to the network node, and specifically includes:
if the data packet is stored in the cache, after the sending module 602 sends the data packet to the network node, the sending module 602 sends a power-off ready message to the network node, so that the network node forwards the data packet; or,
if there is no data packet in the cache, the sending module 602 directly sends a power-off ready message to the network node.
In this embodiment, the neighboring node receives a power-off notification message sent by the network node, and then sends a power-off ready message to the network node according to a condition that the data packet is cached in a cache of a port connected to the network node. If the data message is stored in the cache, after the adjacent node sends the data message to the network node, the adjacent node sends a power-off ready message to the network node so that the network node forwards the data message; or the cache does not have the cache data message, the adjacent node directly sends a power-off ready message to the network node. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Fig. 7 is a schematic structural diagram of an adjacent node according to a seventh embodiment of the present invention. The neighboring nodes are used for implementing the method shown in fig. 1 or fig. 3. As shown in fig. 7, in addition to the receiving module 701 and the transmitting module 702, the neighboring node may further include:
a processing module 703, configured to delete a path including a network node from the equal cost multi-path routing ECMP group after the receiving module 701 receives the power-off notification message sent by the network node; or,
ports connected to the network node are removed from the port group of the logical link.
In this embodiment, after receiving a power-off notification message sent by a network node, an adjacent node deletes a path including the network node from an equal-cost multi-path routing ECMP group; or the port connected with the network node is deleted from the port group of the logical link, so that the path containing the network node to be powered off is deleted from the logical link of the adjacent node, and the updating of the whole network path is realized. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Fig. 8 is a schematic structural diagram of a network node according to an eighth embodiment of the present invention. The network node is configured to implement the method shown in fig. 2 or fig. 3. As shown in fig. 8, the network node includes:
a transmitter 801 for transmitting a power-down notification message to a neighboring node;
a receiver 802, configured to receive a power-down ready message sent by an adjacent node, where the power-down ready message is used to instruct the adjacent node to complete sending operation of a cached data packet;
and the processor 803 is used for completing the power-off operation according to the power-off ready message.
Specifically, the receiver 802 is further configured to, before receiving the power-off ready message sent by the neighboring node:
receiving a data message which is sent by an adjacent node and is cached in the adjacent node;
the transmitter 801 is also configured to transmit the data packet to other neighboring nodes of the network node.
In this embodiment, a network node sends a power-off notification message to an adjacent node; receiving a power-off ready message sent by an adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message; and finally, completing power-off operation according to the power-off ready message. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Fig. 9 is a schematic structural diagram of an adjacent node according to a ninth embodiment of the present invention. The neighboring nodes are used to implement the method shown in fig. 2 or fig. 3. As shown in fig. 9, the neighboring node includes:
a receiver 901, configured to receive a power-down notification message sent by a network node;
a transmitter 902, configured to send a power-down ready message to the network node according to a condition that the data packet is cached in a cache of a port connected to the network node.
Specifically, the transmitter 902 is configured to send a power-off ready message to the network node according to a condition that a data packet is cached in a cache of a port connected to the network node, and specifically includes:
if the data packet is stored in the cache, after the transmitter 902 sends the data packet to a network node, the transmitter 902 sends the power-off ready message to the network node, so that the network node forwards the data packet; or,
if there is no data packet in the cache, the transmitter 902 sends a power down ready message directly to the network node.
In this embodiment, the neighboring node receives a power-off notification message sent by the network node, and then sends a power-off ready message to the network node according to a condition that the data packet is cached in a cache of a port connected to the network node. If the data message is stored in the cache, after the adjacent node sends the data message to the network node, the adjacent node sends a power-off ready message to the network node so that the network node forwards the data message; or the cache does not have the cache data message, the adjacent node directly sends a power-off ready message to the network node. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Fig. 10 is a schematic structural diagram of an adjacent node according to a tenth embodiment of the present invention. The neighboring nodes are used to implement the method shown in fig. 2 or fig. 3. As shown in fig. 10, the neighboring node may include, in addition to the receiver 1001 and the transmitter 1002:
a processor 1003, configured to delete a path including a network node from the equal cost multi-path routing ECMP group after the receiver 1001 receives a power-down notification message sent by the network node; or,
ports connected to the network node are removed from the port group of the logical link.
In this embodiment, after receiving a power-off notification message sent by a network node, an adjacent node deletes a path including the network node from an equal-cost multi-path routing ECMP group; or the port connected with the network node is deleted from the port group of the logical link, so that the path containing the network node to be powered off is deleted from the logical link of the adjacent node, and the updating of the whole network path is realized. Therefore, the data cached by the adjacent node in the network node exit process can be forwarded through the network node, the problem of packet loss is avoided, and the network node service lossless network exit is realized.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art 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 (9)

1. A method for a node to exit a network, comprising:
the network node sends a power-off notification message to the adjacent node;
the network node receives a power-off ready message sent by the adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message;
the network node completes power-off operation according to the power-off ready message;
before the network node receives the power-off ready message sent by the adjacent node, the method further includes:
the network node receives a data message which is sent by the adjacent node and is cached in the adjacent node;
and the network node sends the data message to other adjacent nodes of the network node.
2. A method for a node to exit a network, comprising:
the adjacent node receives a power-off notification message sent by the network node;
the adjacent node sends a power-off ready message to the network node according to the condition of caching the data message in a cache of a port connected with the network node;
the sending, by the neighboring node, a power-off ready message to the network node according to a condition of caching a data packet in a cache of a port connected to the network node specifically includes:
if the data message is stored in the cache, after the adjacent node sends the data message to the network node, the adjacent node sends the power-off ready message to the network node so that the network node forwards the data message; or,
and if the cache does not have the cache data message, the adjacent node directly sends the power-off ready message to the network node.
3. The method of claim 2, wherein after the neighboring node receives the power down notification message sent by the network node, the method further comprises:
the neighboring node deleting a path containing the network node from an equal cost multi-path routing (ECMP) group; or,
the neighboring node removes the port to which the network node is connected from the port group of the logical link.
4. A network node, comprising:
the sending module is used for sending a power-off notification message to the adjacent node;
a receiving module, configured to receive a power-off ready message sent by the adjacent node, where the power-off ready message is used to instruct the adjacent node to complete sending operation of the cached data packet;
the processing module is used for finishing power-off operation according to the power-off ready message;
before receiving the power-off ready message sent by the neighboring node, the receiving module is further configured to:
receiving a data message which is sent by the adjacent node and is cached in the adjacent node;
the sending module is further configured to: and sending the data message to other adjacent nodes of the network node.
5. A neighboring node, comprising:
the receiving module is used for receiving a power-off notification message sent by a network node;
the sending module is used for sending a power-off ready message to the network node according to the condition of caching the data message in a cache of a port connected with the network node;
the sending module is configured to send a power-off ready message to the network node according to a condition that a data packet is cached in a cache of a port connected to the network node, and specifically includes:
if the data message is stored in the cache, after the sending module sends the data message to the network node, the sending module sends the power-off ready message to the network node so that the network node forwards the data message; or,
if the cache does not have the cache data message, the sending module directly sends the power-off ready message to the network node.
6. The neighboring node of claim 5, further comprising:
the processing module is used for deleting a path containing the network node from the ECMP group after the receiving module receives a power-off notification message sent by the network node; or,
the port connected to the network node is removed from the port group of the logical link.
7. A network node, comprising:
a transmitter for transmitting a power-down notification message to a neighboring node;
the receiver is used for receiving a power-off ready message sent by the adjacent node, wherein the power-off ready message is used for indicating the adjacent node to finish the sending operation of the cached data message;
the processor is used for finishing power-off operation according to the power-off ready message;
the receiver is further configured to, before receiving the power-down ready message sent by the neighboring node:
receiving a data message which is sent by the adjacent node and is cached in the adjacent node;
the transmitter is further configured to: and sending the data message to other adjacent nodes of the network node.
8. A neighboring node, comprising:
the receiver is used for receiving a power-off notification message sent by the network node;
the transmitter is used for sending a power-off ready message to the network node according to the condition that the data message is cached in a cache of a port connected with the network node;
the transmitter is configured to send a power-off ready message to the network node according to a condition that a data packet is cached in a cache of a port connected to the network node, and specifically includes:
if the data message is stored in the cache, after the transmitter sends the data message to the network node, the transmitter sends the power-off ready message to the network node so that the network node forwards the data message; or,
and if the data message is not cached in the cache, the transmitter directly sends the power-off ready message to the network node.
9. The neighboring node of claim 8, further comprising:
a processor configured to delete a path including a network node from an equal cost multi-path routing (ECMP) group after the receiver receives a power-down notification message sent by the network node; or,
the port connected to the network node is removed from the port group of the logical link.
CN201310661855.4A 2013-12-09 2013-12-09 The method and node that node exits network Active CN104702511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310661855.4A CN104702511B (en) 2013-12-09 2013-12-09 The method and node that node exits network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310661855.4A CN104702511B (en) 2013-12-09 2013-12-09 The method and node that node exits network

Publications (2)

Publication Number Publication Date
CN104702511A CN104702511A (en) 2015-06-10
CN104702511B true CN104702511B (en) 2018-09-21

Family

ID=53349294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310661855.4A Active CN104702511B (en) 2013-12-09 2013-12-09 The method and node that node exits network

Country Status (1)

Country Link
CN (1) CN104702511B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992717A (en) * 2005-12-30 2007-07-04 华为技术有限公司 Wireless access network framework and method for realizing real-time service nondestructive emigration thereof
CN103354523A (en) * 2013-06-21 2013-10-16 杭州华三通信技术有限公司 Switch and lossless switching method
US9143431B2 (en) * 2010-12-29 2015-09-22 Cisco Technology, Inc. Hiding a service node in a network from a network routing topology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992717A (en) * 2005-12-30 2007-07-04 华为技术有限公司 Wireless access network framework and method for realizing real-time service nondestructive emigration thereof
US9143431B2 (en) * 2010-12-29 2015-09-22 Cisco Technology, Inc. Hiding a service node in a network from a network routing topology
CN103354523A (en) * 2013-06-21 2013-10-16 杭州华三通信技术有限公司 Switch and lossless switching method

Also Published As

Publication number Publication date
CN104702511A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN108432192B (en) Traffic transfer method and system, and computer-readable storage medium
US10680939B2 (en) Hybrid flood-relaying and routing mesh networks
CN109672708B (en) Communication method, device and system
US8885504B2 (en) Method, apparatus and system for bandwidth aggregation of mobile internet access node
WO2013033457A1 (en) Topology discovery in a hybrid network
US9998298B2 (en) Data transmission method, apparatus, and computer storage medium
CN107465613B (en) Link aggregation interface communication state switching method and device
CN109804581A (en) Communication for coordination
EP3381239B1 (en) Interference mitigation in dense mesh networks
CN109861925B (en) Data transmission method, related device and network
CN104852855B (en) Jamming control method, device and equipment
CN104104609A (en) Credit-based link level flow control method and system
CN103746925A (en) FiWi converged network and communication method based on FiWi converged network
JP2016506147A (en) Seamless switching for multi-hop hybrid networks
JP5816960B2 (en) Communications system
CN104639437A (en) Forwarding method and apparatus of broadcast messages in stack system
CN106027599B (en) Data transmission channel establishing method, system and server
US9913010B2 (en) Data processing method and apparatus
KR101618545B1 (en) An energy-efficient message transmission method for a community-based Delay Tolerant Network
US20200336385A1 (en) BGP Logical Topology Generation Method, and Device
US9537764B2 (en) Communication apparatus, control apparatus, communication system, communication method, method for controlling communication apparatus, and program
CN106713158B (en) The method and device of load balancing in Clos network
CN104702511B (en) The method and node that node exits network
JP2007243932A (en) Wireless data communication system
CN105515986B (en) Train Communication Network data processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant