Data transmission method and communication apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsQichang Chen, Min Zha, Dongdong He
Life of this patent
Estimating the term…
Abstract
In a data transmission method, each ring network interface is associated with a ring identifier, and a ring-incoming packet carries a ring identifier of a ring network interface through which the packet is first forwarded. When a node in a ring network detects a link fault in a process of transmitting a packet, the node determines, with reference to a ring identifier and a wrapping identifier carried in the packet, to perform wrapping or discard the packet. According to the method, two sub-ring networks of a dual-ring coupled ring network can be allowed to separately implement one time of wrapping.
Claims20
A method, implemented by a first node, and wherein the method comprises:
- connecting to a second node through a first ring network interface belonging to the first node, wherein the first mode is a node in a multi-ring coupled ring network comprising a plurality of sub-rings, wherein a ring identifier of each ring network interface in the multi-ring coupled ring network is a ring number value of a sub-ring to which a ring network interface belongs;
- receiving a first data packet comprising a first ring identifier and a wrapping identifier of the first data packet, wherein the first ring identifier is a first ring number value of any sub-ring in the multi-ring coupled ring network through which the first data packet is transmitted, and wherein the wrapping identifier indicates that the first data packet is a wrapped data packet or a non-wrapped data packet;
- when detecting on the first ring network interface;
- that a fault exists on a link between the first node and the second node, when the first data packet is a wrapped data packet, and when the first ring identifier is different from a second ring identifier of the first ring network interface, generating, after setting the first ring identifier to the second ring identifier, a second data packet;
- sending the first data packet through the first ring network interface;
- determining a second ring network interface belonging to the first node based on the first ring network interface, wherein the second ring network interface has a same ring identifier as that of the first ring network interface;
- and
- forwarding the second data packet through the second ring network interface.
A first node in a multi-ring coupled ring network comprising a plurality of sub-rings, wherein a ring identifier of each ring network interface in the multi-ring coupled ring network is a ring number value of a sub-ring to which each ring network interface belongs, and wherein the first node comprises:
- a memory configured to store program instructions;
- one or more processors coupled to the memory and configured to execute the program instructions to cause the first node to:
- connect to a second node through a first ring network interface belonging to the first node, wherein the first node is a node in a multi-ring coupled ring network comprising a plurality of sub-rings, wherein a ring identifier of each ring network interface in the multi-ring coupled ring network is a ring number value of a sub-ring to which a ring network interface belongs;
- receive a first data packet comprising a first ring identifier and a wrapping identifier of the first data packet, wherein the first ring identifier is a first ring number value of any sub-ring in the multi-ring coupled ring network through which the first data packet is transmitted, and wherein the wrapping identifier indicates that the first data packet is a wrapped data packet or a non-wrapped data packet;
- when the first node detects, on the first ring network interface that a fault exists on a link between the first node and the second node, when the first data packet is a wrapped data packet, and when the first ring identifier is different from a second ring identifier of the first ring network interface, generate, after setting the first ring identifier to the second ring identifier, a second data packet;
- send the first data packet through the first ring network interface;
- determine a second ring network interface belonging to the first node based on the first ring network interface, wherein the second ring network interface has a same ring identifier as that of the first ring network interface;
- and
- forward the second data packet through the second ring network interface.
A first node in a multi-ring coupled ring network, and wherein the first node comprises:
- a memory configured to store program instructions;
- one or more processors coupled to the memory and configured to execute the program instructions to cause the first node to:
- connect to a second node through a first ring network interface belonging to the first node and a first sub-ring, wherein all ring network interfaces of the second node belong to the first sub-ring, and wherein the multi-ring coupled ring network comprises the first sub-ring and a second sub-ring that are adjacent to each other;
- receive, from the first ring network interface, a first data packet comprising a first ring identifier of the first data packet and a first destination medium access control (MAC) address of the first data packet, wherein the first ring identifier is a ring number value of any sub-ring in the multi-ring coupled ring network through which the first data packet is transmitted;
- connect to a third node through a second ring network interface belonging to the first node and the second sub-ring, wherein all ring network interfaces of the third node belong to the second sub-ring;
- and
- determine, based on the first ring identifier, the first destination MAC address, and a second ring identifier of the first ring network interface, whether a first entry exists in an inter-ring table;
- and
- forward, when the first entry exists, the first data packet through a first inter-ring network interface corresponding to the first entry,
- wherein a first packet ring identifier in the first entry is the same as the first ring identifier, a first MAC address in the first entry is the same as the first destination MAC address, and a third ring identifier of a third ring network interface used by the first node to receive a packet in the first entry is the same as the second ring identifier of the first ring network interface.
Dependencies are inferred from the claim text.