US 12,021,655 B2
Data transmission method and apparatus
Qichang Chen, Shenzhen (CN); Min Zha, Shenzhen (CN); and Dongdong He, Shenzhen (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Feb. 28, 2022, as Appl. No. 17/682,566.
Application 17/682,566 is a continuation of application No. PCT/CN2020/110803, filed on Aug. 24, 2020.
Claims priority of application No. 201910820899.4 (CN), filed on Aug. 30, 2019.
Prior Publication US 2022/0182262 A1, Jun. 9, 2022
Int. Cl. H04L 12/46 (2006.01); H04L 12/42 (2006.01); H04L 12/427 (2006.01); H04L 67/12 (2022.01); H04W 4/40 (2018.01); H04W 4/48 (2018.01)
CPC H04L 12/4637 (2013.01) [H04L 12/427 (2013.01); H04L 12/4633 (2013.01); H04L 2012/421 (2013.01); H04L 67/12 (2013.01); H04W 4/40 (2018.02); H04W 4/48 (2018.02)] 14 Claims
OG exemplary drawing
 
1. A data transmission method, comprising:
receiving a first data packet;
when a first ring node detects that a link between the first ring node and a second ring node on a first ring port is faulty, determining whether the first data packet is a wrapped data packet, wherein the first ring node is connected to the second ring node through the first ring port;
if the first data packet is a non-wrapped data packet, determining a second ring port based on the first ring port, wherein the first ring port is a port through which the first ring node is to send the first data packet, and wherein the determining a second ring port based on the first ring port comprises:
querying a ring port forwarding table based on the first ring port, to determine the second ring port corresponding to the first ring port, wherein the ring port forwarding table is used to indicate a correspondence between an inbound port and an outbound port, the inbound port represents a port that receives a data packet, the inbound port is a ring port or a service port, and the outbound port represents a ring port for forwarding the data packet in a ring network;
generating a second data packet, wherein the second data packet is a wrapped data packet of the first data packet; and
forwarding the second data packet through the second ring port.