Data transmission method and device and electronic equipment

By using the forwarding plane to switch data links in ring network protection, the problem of long link switching delay in traditional ring network protection methods is solved, faster communication system response is achieved, and communication performance is improved.

CN119232642APending Publication Date: 2024-12-31ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310794670.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

When a link failure occurs, the traditional ring network protection method has a long switching delay, which affects communication performance.

Method used

By responding to the alarm information on the forwarding plane, the data transmission link is switched from the first link to the second link, and data transmission is used to reduce the link switching delay.

Benefits of technology

It realizes a significant reduction in link handover delay, improves the performance and reliability of the communication system, and can complete the main and standby switchover within 50ms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232642A_ABST
    Figure CN119232642A_ABST
Patent Text Reader

Abstract

Provided in an embodiment of the present application are a data transmission method and apparatus, and an electronic device, the method comprising: in response to first alarm information, switching a data transmission link of a first network element from a first link to a second link through a forwarding plane, the first alarm information being used for indicating that the first link has a fault, and the second alarm information being used for indicating that the first link has a fault; the first link and the second link have the same head and tail network elements; and transmitting data through a path corresponding to the second link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission method, device and electronic device. Background Art

[0002] With the rapid development of 5G technology, data traffic has grown rapidly and exponentially, and the services carried by the network have gradually become diversified, which has put higher requirements on the stability and reliability of telecommunications transmission equipment.

[0003] Ring network protection is an important means to ensure business stability. The traditional ring network protection method is based on Ethernet Ring Protection Switching (ERPS) protocol messages. It takes a long time from detecting faulty link alarm to the final link switching, generally reaching the second level, which affects communication performance. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data transmission method, device and electronic device, which can solve the problem of long link switching delay when a link fails.

[0005] To solve the above technical problems, the embodiments of the present application are implemented through the following aspects.

[0006] In a first aspect, an embodiment of the present application provides a data transmission method, including: in response to first alarm information, switching a link for data transmission of a first network element from a first link to a second link through a forwarding plane, wherein the first alarm information is used to indicate that the first link has a failure, and the first and last network elements of the first link and the second link are the same; transmitting data through a path corresponding to the second link.

[0007] In the second aspect, an embodiment of the present application provides a data transmission device, including: a forwarding plane, used to switch the link for data transmission of the device from a first link to a second link in response to a first alarm information, the first alarm information is used to indicate that the first link has a failure, and the first and tail network elements of the first link and the second link are the same; and transmit data through a path corresponding to the second link.

[0008] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory, a processor, and computer executable instructions stored in the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of executing the method described in the first aspect.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In an embodiment of the present application, when a first link fails, the link for data transmission is switched from the first link to the second link through the forwarding plane, and data is transmitted through a path corresponding to the second link, thereby greatly reducing the link switching delay and facilitating improving the performance of the communication system. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0012] Figure 1 A schematic diagram showing a flow chart of a data transmission method provided in an embodiment of the present application;

[0013] Figure 2 An application scenario diagram of the data transmission method provided by an embodiment of the present application is shown;

[0014] Figure 3 A structural block diagram showing a data transmission method provided by an embodiment of the present application is shown;

[0015] Figure 4 A flow chart of a ring network protection method for a line-side faulty network element provided in an embodiment of the present application is shown;

[0016] Figure 5 A ring network protection flow chart of a non-line side fault network element receiving alarm protocol provided by an embodiment of the present application is shown;

[0017] Figure 6 A flowchart of the ring network protection reversal when a link failure disappears provided by an embodiment of the present application is shown;

[0018] Figure 7 A schematic diagram showing the structure of a data transmission device provided in an embodiment of the present application is shown;

[0019] Figure 8 A schematic diagram of the hardware structure of an electronic device for executing the data transmission method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0021] Ring network protection is an important means to ensure business stability. The equipment is ring-networked, and there are two paths in the ring network protection: a main path and a backup path. When the working path of the network link fails, fast ring network protection switching can reduce the link switching time and improve the stability and reliability of the network. The traditional ring network protection method is based on the Ethernet Ring Protection Switching (ERPS) protocol message. When the device detects an alarm, it will report it to the protocol control platform, and then the protocol control platform will issue a link switching command. It takes a long time from detecting the fault link alarm to the final link switching, generally reaching the second level, which affects the communication performance.

[0022] In order to solve the above technical problems, Figure 1 A flow chart of a data transmission method provided by an embodiment of the present application is shown, and the method can be executed by a first network element. In other words, the method can be executed by software or hardware installed in the first network element, and the first network element is located in an Ethernet ring network link. Figure 1 As shown, the method may include the following steps.

[0023] S10: In response to first alarm information, a link for data transmission of a first network element is switched from a first link to a second link through a forwarding plane, wherein the first alarm information is used to indicate that a failure occurs in the first link, and the first and second link have the same first and last network elements.

[0024] like Figure 2 As shown in the ring network topology diagram, the application scenarios of this embodiment include but are not limited to a ring network (ie, Ethernet ring network link) composed of multiple device network elements (device network elements can also be referred to as network elements for short), Figure 2 Only device network element 1, device network element 2 and device network element 3 are shown in the figure. In fact, there may be more device network elements in the Ethernet ring network link. Figure 2 In the example, UNI1 and UNI2 are the access side, and NHI1-NHI6 are the line side. Figure 2 The primary path in is: device network element 1-device network element 2-device network element 3; the backup path is: device network element 1-device network element 3. The first link mentioned in this embodiment may be the primary path, and the second link may be the backup path.

[0025] In one example, the first alarm information is obtained by periodic polling detection of the first network element, and the first alarm information is generated when the local port of the first network element does not receive a signal. Figure 2 In the example shown, assuming that a link between device network element 1 and device network element 2 fails, the first network element may be device network element 1 or device network element 2, and the ports of device network element 1 and device network element 2 may detect a fault alarm (ie, the first alarm information).

[0026] The example may also include the following steps: sending an ERPS fault message, wherein the ERPS fault message is used to instruct the second network element to switch the link for data transmission from the first link to the second link; wherein the second network element and the first network element are in the same Ethernet ring network link. In this example, the first network element may be device network element 1 or device network element 2, and the second network element may be device network element 3.

[0027] The above-mentioned ERPS fault message may include a first message and a second message; wherein, the first message is generated by calculation of the protocol plane of the first network element; and the second message is generated by calculation of the forwarding plane of the first network element. The protocol plane and the forwarding plane in this embodiment are decoupled from each other, and the protocol plane can also generate an ERPS fault message according to the solution of the prior art and send it to the second network element, so as to avoid affecting the existing protocol and reduce the cost of using this solution. Compared with the solution in which the protocol plane generates the first message, the second message generated by calculation of the forwarding plane in this embodiment can also reduce the latency, reducing the latency from seconds to within 50ms, thereby improving the performance of the communication system.

[0028] In this example, the first message may carry identification information, or the second message may carry identification information, and the identification information is used to instruct the second network element to distinguish the first message from the second message. Generally, the amount of information in the first message may be higher than the amount of information in the second message, and the second message may play the following role: instructing the second network element to switch the link for data transmission from the first link to the second link.

[0029] In another example, the first alarm information comes from a second network element in the Ethernet ring network link, and the first alarm information is generated by the second network element through periodic polling of a local port fault; wherein the second network element and the first network element are in the same Ethernet ring network link.

[0030] In this example, before responding to the first alarm information, the method also includes: receiving an ERPS fault message notified by the second network element, the ERPS fault message carrying the first alarm information, and the ERPS fault message being used to instruct the first network element to switch the link for data transmission from the first link to the second link.

[0031] Assume that the link between device network element 1 and device network element 2 fails. The first network element in this example can be Figure 2 In device network element 3, the ports of device network element 1 and device network element 2 can detect the fault alarm (ie, the first alarm information) and notify device network element 3.

[0032] S20: Transmit data through the path corresponding to the second link.

[0033] The data transmission method provided in the embodiment of the present application switches the link for data transmission from the first link to the second link through the forwarding plane when the first link fails, and transmits data through the path corresponding to the second link, thereby greatly reducing the link switching delay and facilitating improving the performance of the communication system.

[0034] In the related art, since the detection of link failure needs to be sent to the protocol plane through the forwarding plane, and then after the judgment by the protocol plane state machine, the judged state is sent to the forwarding plane, it takes a lot of time from detecting the link failure alarm to the final link switching taking effect, generally reaching the second level. The Ethernet ring network protection technology of this application can improve the protection switching performance and can provide the main and standby switching within 50ms. At present, there is no solution to achieve 50 millisecond switching. The related art is a hard switching solution, and this application is a soft switching solution with low cost, which belongs to the future development trend.

[0035] Optionally, the method provided in each of the above embodiments may further include the following step: in response to the disappearance of the first alarm information, switching the link for data transmission of the first network element from the second link to the first link through the protocol plane.

[0036] In response to the disappearance of the first alarm information, switching the link for data transmission of the first network element from the second link to the first link through the protocol plane includes: when the disappearance of the first alarm information is detected, starting a timer; when the timer times out, switching the link for data transmission of the first network element from the second link to the first link through the protocol plane. This embodiment is limited by the timer, and performs link switching after a period of time (i.e., the timer duration) after the disappearance of the first alarm information, rather than performing link switching immediately, which is conducive to improving the accuracy of switching.

[0037] In one example, the disappearance of the first alarm information is detected by periodic polling of the first network element, and the method further includes: sending an ERPS recovery message, wherein the ERPS recovery message is used to instruct the second network element to switch the link for data transmission from the second link to the first link; wherein the second network element and the first network element are in the same Ethernet ring network link.

[0038] In another example, the indication information of the disappearance of the first alarm information comes from the second network element in the Ethernet ring network link, and the disappearance of the first alarm information is generated by the second network element periodically polling the local port; wherein the second network element and the first network element are in the same Ethernet ring network link.

[0039] To explain in detail the data transmission method provided in the embodiments of the present application, the following will be described in combination with specific application scenarios and several specific embodiments.

[0040] like Figure 2 As shown in the ring network topology diagram, the application scenarios of this embodiment include but are not limited to a ring network (ie, Ethernet ring network link) composed of multiple device network elements (device network elements can also be referred to as network elements for short), Figure 2 Only device network element 1, device network element 2 and device network element 3 are shown in the figure. In fact, there may be more device network elements in the Ethernet ring network link. Figure 2 In the example, UNI1 and UNI2 are the access side, and NHI1-NHI6 are the line side. Figure 2 The primary path is: device network element 1-device network element 2-device network element 3; the backup path is: device network element 1-device network element 3.

[0041] like Figure 3 As shown in the system structure diagram, the data transmission method provided in the embodiment of the present application involves a port alarm detection module, a protocol packet receiving and sending module, a protocol plane, and a forwarding plane.

[0042] The protocol plane includes a protocol control module and a protocol stack module. The forwarding plane includes a forwarding management module and a forwarding data module. The modules can work together or independently. Usually, each device network element has the above modules. The specific invention content is as follows.

[0043] The port alarm detection module is used for link fault detection. The module is implemented by, but not limited to, a logic chip. The specific implementation is to enable a cycle timer (the cycle can be modified, with an accuracy of milliseconds) to poll the alarm status of all ports and report the alarm to the protocol plane and forwarding plane.

[0044] The protocol plane mainly consists of the protocol control module and the protocol stack module. The protocol control module is mainly used for protocol calculation and processing, and processes the port alarms transmitted by the port alarm detection module and the received ERPS protocol messages. The protocol control module will calculate the correct protocol status and send the command to the protocol stack module. The protocol stack module is mainly responsible for the data conversion of the protocol plane and sends it to the forwarding plane and the protocol packet receiving and sending module.

[0045] Forwarding plane, the forwarding layer is mainly composed of a forwarding management module and a forwarding data module. The forwarding management module processes the data sent down from the protocol plane, thereby operating the east-west ports on the device's ERPS protection ring. At the same time, in response to the fault link alarm, the forwarding management module performs fast-cut protocol calculations and sets the east-west ports, thereby ensuring that the master-slave switching can be achieved within 50ms (such as switching from the first link to the second link). The forwarding data module is also a unified data module, which is mainly an encapsulation of the chip interface and the SDK interface. After receiving the data sent down from the forwarding management module, the chip blocking status bit corresponding to the east-west port will be set (blocking state) or cleared (open state).

[0046] The protocol packet receiving and sending module is used to receive and send ERPS protocol messages (such as the ERPS fault messages and ERPS recovery messages mentioned above) to realize the transmission of protocol messages between the main device network element and other device network elements. When a ring network link fails, the protocol packet receiving and sending module will successively receive message communications from the forwarding management module and the protocol control module, and will immediately forward the alarm to the east-west port of the network element where the device is located. The three protocol packets (such as the second message mentioned above) will be sent when the message from the forwarding management module is received for the first time, and the line corresponding to the device network element will be broadcast to the entire network. The three protocol packets (such as the first message mentioned above) will be sent when the message from the protocol control module is received for the second time, and the line corresponding to the device network element will be broadcast to the entire network. In order to distinguish between the two, the last three bytes of the reserved field in the three protocol packets sent for the first time can be specially marked (such as the identification information mentioned above), including but not limited to 0xAAAAAA in this implementation case.

[0047] The following will be described in conjunction with a specific process example.

[0048] In one embodiment, the corresponding modules are carried on device network element 1 and device network element 2.

[0049] like Figure 2 As shown, it is assumed that a link between device network element 1 and device network element 2 fails. In engineering applications, generally a single fiber or a double fiber is broken.

[0050] If the receiving optical fiber on the line side (NN1) is broken, device network element 1 on the line side (NNI1) will receive no light, and a local alarm will be generated. At the same time, a bdi signal will be reinserted into the optical fiber in the transmitting direction. After receiving the BDI signal, device network element 2 on the line side (NNI2) will generate a local port alarm.

[0051] If the double fibers are broken, both network element 1 (NNI1) on the line side and network element 2 (NNI2) on the line side will receive no light, and both network element 1 and network element 2 will generate local alarms.

[0052] In the case of the above-mentioned single-fiber or dual-fiber link failure, the ring network protection switching will be triggered, that is, the ring network protection of the device network element changes from the IDLE state (main path state) to the PROTECTION state (backup path state) under the triggering of the local alarm.

[0053] Below Figure 4 The process shown is taken as an example to illustrate this embodiment.

[0054] Step 1: Configure VPLS services and ERPS on ring network device NE 1, device NE 2, and device NE 3, add the corresponding protected services to the ERPS protection ring, and ensure that the corresponding service flows and ERPS are normal.

[0055] Step 2: After the three devices in the ring network are initialized, the port alarm detection module starts a timer to poll the alarm status of the port. This implementation case can use a polling period of 10 milliseconds.

[0056] Taking the failure of the NNI1 port of the device network element 1 as an example, the ring network protection active-standby switching process is explained. After the port alarm detection module detects the port alarm, it will pass the alarm information to the protocol control module and the forwarding management module. Since the message transmitted to the forwarding management module is the interface port alarm, it is sent through the protection group fast switching component and the interruption is used to trigger the ERPS of the forwarding management module. Therefore, the forwarding management module will perceive the link failure much faster than the protocol control module.

[0057] Step 3: When the forwarding management module receives a port alarm, it will perform a local fast-cut protocol calculation to calculate the port status when the local port alarm is in the PROTECTION state. According to the ERPS protection protocol, Figure 2As shown, device network element 1 will block the port on the NNI1 side and open the port on the NNI6 side. Similarly, after receiving the port alarm, the forwarding management module of device network element 2 operates as follows according to the protocol: device network element 2 blocks the port on the NNI2 side and opens the port on the NNI3 side. At the same time, the forwarding management module sends the fault code of the ERPS protocol to the protocol packet receiving and sending module according to the calculated protocol status. The forwarding management module sends the flag information of the east-west port of the faulty network element to the forwarding data module. The forwarding data module sends the port open status configuration to the chip according to the flag information of the east-west port, thereby realizing the outbound port switching of the client-side service on the device network element.

[0058] Step 4: The protocol packet receiving and sending module receives the information sent by the forwarding management module, assembles the ERPS protocol packet, writes Request / state in the Specific Information of the protocol message as 0xB, and sends three protocol packets to the east-west ports of the device network element in succession.

[0059] Step 5: The protocol control module of the protocol plane receives the port alarm information, calculates the protocol status, updates the ERPS protection ring information, calculates the port status bit, and sends the port configuration data to the forwarding management module through the protocol stack module in the form of a Mux port message.

[0060] Step 6: After receiving the command from the protocol plane, the protocol transceiver will perform ERPS protocol packet assembly as in step 4, and write Request / state in the Specific Information of the protocol message as 0xB. And send three protocol packets to the east-west ports of the device network element in succession. The difference from step 4 is that before the alarm of the device network element port is cancelled, the protocol transceiver will send alarm information every 5 seconds.

[0061] Step 7: The forwarding management module receives the instruction from the protocol plane and only performs data forwarding operations (calculation step has been calculated in step 3), and sends it to the forwarding data module. The forwarding data module sends the port open status configuration to the chip based on the flag information of the east and west ports, thereby realizing the outbound port switching of the client-side service on the device network element.

[0062] In another embodiment, the module corresponding to this embodiment is carried on the device network element 3.

[0063] like Figure 2As shown in the figure, assuming that a fault occurs in the link between device network element 1 and device network element 2, after the ports of device network element 1 and device network element 2 detect the fault alarm (the specific detection mechanism has been explained in implementation case 1 and will not be repeated here), an ERPS alarm message will be quickly sent to device network element 3. After receiving the ERPS fault message, device network element 3 will perform the active / standby switching operation, that is, when device network element 3 receives the alarm information of other network elements without local alarm, the ring network protection changes from IDLE state to PROTECTION state.

[0064] Below Figure 5 The flowchart shown is taken as an example to illustrate this embodiment.

[0065] Step 1: Configure VPLS services and ERPS on ring network device NE 1, device NE 2, and device NE 3, add the corresponding protected services to the ERPS protection ring, and ensure that the corresponding service flows and ERPS are normal.

[0066] Step 2: After ring network device NE 1, device NE 2 and device NE 3 complete initialization, if the link between device NE 1 and device NE 2 fails, device NE 1 and device NE 2 will trigger local alarms to perform active / standby switching and send ERPS alarm messages on their east-west ports.

[0067] Step 3: After device network element 3 receives the alarm message from device network element 1 or device network element 2 (the order in which device network element 3 receives the three quick packets from device network element 1 and device network element 2 cannot be guaranteed), the protocol packet receiving and sending module will pass the message to the forwarding management module and the protocol control module at the same time.

[0068] Step 4: When the forwarding management module receives the ERPS alarm message, it starts the protocol calculation and calculates the port status when there is no local port alarm in the PROTECTION state. There is no alarm on the local port of device network element 3. After receiving the alarm message, the line side port of the east-west port is opened. The forwarding management module sends the flag information of the east-west port of the faulty network element to the forwarding data module. The forwarding data module sends the port open status configuration to the chip based on the flag information of the east-west port.

[0069] Step 5: The protocol control module on the protocol plane receives the alarm message and calculates the east-west port status through the protocol. The port configuration data is sent to the forwarding management module via the protocol stack module using a Mux message.

[0070] Step 6: The forwarding management module receives the instruction from the protocol interface and distributes data. The forwarding management module sends the flag information of the east-west ports of the non-faulty network element to the forwarding data module. The forwarding data module performs table matching operations on the chip or driver where the port is located based on the flag information of the east-west ports, that is, all the east-west client ports of the device network element 3 are opened. Through the implementation of case 1 and case 2, it can be seen that the service line is Figure 2 The rpl link in the ring network realizes the master-slave switching operation of the ring network link.

[0071] In another embodiment, this embodiment mainly introduces the operation when the link alarm disappears, and the execution subject can be device network element 1, device network element 2, and device network element 3.

[0072] like Figure 2 As shown in the figure, the link between device network element 1 and device network element 2 fails, and the port alarm detection module will set the corresponding flag bit. When the link failure recovery alarm disappears, the port alarm detection module will reset the corresponding flag bit. The protocol plane RSOng of the network element where the OWNER port is located will start the timer. When the WTR time is up, the network element sends a recovery message to the outside and sends the east-west port status of the network element in the IDLE state. The ring network link is switched from the backup path to the main path, that is, after the link failure disappears, the device network element ring network status changes from the PROTECTION state to the PENDING state and finally recovers to the ILDE state.

[0073] Below Figure 6 The process shown is taken as an example to illustrate this embodiment.

[0074] Step 1: Configure VPLS services and ERPS on ring network device NE 1, device NE 2, and device NE 3, add the corresponding protected services to the ERPS protection ring, and ensure that the corresponding service flows and ERPS are normal (in the protection state at this moment).

[0075] Step 2: The three devices in the ring network are in protection state. The port alarm detection module enables the timer to poll the alarm state of the port. This implementation case uses a polling period of 10 milliseconds.

[0076] Now, the ring network protection reversal process is explained by taking the disappearance of the link fault between device network element 1 and device network element 2 as an example. After the port alarm detection module detects that the port alarm disappears, it will pass the alarm disappearance information to the protocol control module. The protocol control module of device network element 1 receives the signal that the link fault disappears, starts the WTR timer (the WTR time can be set, and the time range is 1 to 5 minutes), and counts down.

[0077] Step 3: When the WTR time is up, the protocol control module calculates the port status of the east-west port of the device network element 1 in the IDLE state through the protocol, and sends the port configuration data to the forwarding management module through the protocol stack module in the form of a Mux message.

[0078] Step 4: After receiving the instruction from the protocol plane, the protocol packet will be assembled into an ERPS protocol packet, and the Request / state in the Specific Information of the protocol message will be written as 0x0. The protocol packet will be sent to the east-west port of the device network element.

[0079] Step 5: This step is similar to step 6 in implementation case 2 and will not be described here. The port of the common node is in the open state, and the port of the owner or neighbor node is in the blocked state. The service line is switched from the backup link to the primary link.

[0080] By adopting the method of the above embodiment of the present application, ports can be logically blocked in the network topology of the physical ring network, thereby preventing loop formation; at the same time, it can ensure that when a failure occurs in the main path, switching can be quickly implemented to meet telecommunications-level switching performance, improve the speed of the entire network in handling faults in the ring network, and thus provide protection for the reliability of telecommunications services.

[0081] In this embodiment, the ring network protection of the ring network equipment protocol plane and the forwarding plane cooperates with each other, provides a ring network protection switching method, and improves the protection switching performance.

[0082] The embodiments of the present application are capable of simultaneously decoupling and cooperating the partial ring network state machine running on the forwarding plane and the entire ring network protection state machine running on the protocol plane, and can quickly respond to and implement switching through the forwarding plane state machine when a link failure occurs, and calculate the protocol state through the protocol plane state machine when the link failure disappears, triggering a protection rewind action and implementing a protection rewind function.

[0083] Figure 7 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application is shown, and the device includes the following modules.

[0084] The forwarding plane 702 is used to switch the link for data transmission of the device from the first link to the second link in response to the first alarm information, wherein the first alarm information is used to indicate that the first link has a failure, and the first and last network elements of the first link and the second link are the same; and transmit data through the path corresponding to the second link.

[0085] In an embodiment of the present application, when a first link fails, the link for data transmission is switched from the first link to the second link through the forwarding plane, and data is transmitted through a path corresponding to the second link, thereby greatly reducing the link switching delay and facilitating improving the performance of the communication system.

[0086] Optionally, as an embodiment, the first alarm information is obtained by periodic polling detection of the device, and the first alarm information is generated when the local port of the device does not receive a signal.

[0087] Optionally, as an embodiment, the device also includes a protocol packet receiving and sending module, used to send an ERPS fault message, and the ERPS fault message is used to instruct the second network element to switch the link for data transmission from the first link to the second link; wherein, the second network element and the device are in the same Ethernet ring network link.

[0088] Optionally, as an embodiment, the ERPS fault message includes a first message and a second message; wherein the first message is generated by calculation on the protocol plane of the device; and the second message is generated by calculation on the forwarding plane of the device.

[0089] Optionally, as an embodiment, the first message carries identification information, or the second message carries identification information, and the identification information is used to instruct the second network element to distinguish between the first message and the second message.

[0090] Optionally, as an embodiment, the first alarm information comes from a second network element in the Ethernet ring network link, and the first alarm information is generated by the second network element through periodic polling of a local port fault; wherein the second network element and the device are in the same Ethernet ring network link.

[0091] Optionally, as an embodiment, the device also includes a protocol packet receiving and sending module, which is used to receive an ERPS fault message notified by the second network element, and the ERPS fault message carries the first alarm information. The ERPS fault message is used to instruct the device to switch the link for data transmission from the first link to the second link.

[0092] Optionally, as an embodiment, the device further includes a protocol plane 704, which is used to switch the link for data transmission of the device from the second link to the first link in response to the disappearance of the first alarm information.

[0093] Optionally, as an embodiment, the protocol plane 704 is used to start a timer when it is detected that the first alarm information disappears; when the timer times out, the link for data transmission of the device is switched from the second link to the first link through the protocol plane.

[0094] Optionally, as an embodiment, the disappearance of the first alarm information is detected by periodic polling of the device, and the device also includes a protocol packet receiving and sending module for sending an ERPS recovery message, and the ERPS recovery message is used to instruct the second network element to switch the link for data transmission from the second link to the first link; wherein, the second network element and the device are in the same Ethernet ring network link.

[0095] Optionally, as an embodiment, the indication information of the disappearance of the first alarm information comes from the second network element in the Ethernet ring network link, and the disappearance of the first alarm information is generated by the second network element periodically polling the local port; wherein, the second network element and the device are in the same Ethernet ring network link.

[0096] The device 700 provided in the embodiment of the present application can execute the various methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be repeated here.

[0097] Figure 8 A schematic diagram of the hardware structure of an electronic device that implements the embodiment of the present application is shown. Referring to the figure, at the hardware level, the electronic device includes a processor, and optionally, an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0098] The processor, the network interface and the memory may be interconnected through an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0099] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0100] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for locating the target user at the logical level. The processor executes the program stored in the memory and is specifically used to execute: Figure 1-6 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.

[0101] The above application Figure 1-6 The method disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0102] The electronic device can also execute the methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be repeated here.

[0103] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0104] The embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable medium stores one or more programs, and when the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes Figure 1-6 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.

[0105] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0106] Furthermore, an embodiment of the present application also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the following process is implemented: Figure 1-6 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.

[0107] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0108] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0109] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0110] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0111] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A data transmission method, comprising: In response to first alarm information, switching a link for data transmission of a first network element from a first link to a second link through a forwarding plane, wherein the first alarm information is used to indicate that a failure occurs in the first link, and the first link and the second link have the same head and tail network elements; Data is transmitted through the path corresponding to the second link.

2. The method according to claim 1, wherein: The first alarm information is obtained by periodic polling detection of the first network element, and the first alarm information is generated when the local port of the first network element does not receive a signal.

3. The method according to claim 2, wherein: The method further comprises: Sending an ERPS fault message, where the ERPS fault message is used to instruct the second network element to switch a link for data transmission from the first link to the second link; The second network element and the first network element are in the same Ethernet ring network link.

4. The method according to claim 3, wherein: The ERPS fault message includes a first message and a second message; Wherein, the first message is generated by calculation on the protocol plane of the first network element; The second message is generated by calculation by the forwarding plane of the first network element.

5. The method according to claim 4, wherein: The first message carries identification information, or the second message carries identification information, and the identification information is used to instruct the second network element to distinguish between the first message and the second message.

6. The method according to claim 1, wherein: The first alarm information comes from a second network element in the Ethernet ring network link, and the first alarm information is generated by the second network element through periodic polling to the local port fault; The second network element and the first network element are located in the same Ethernet ring network link.

7. The method according to claim 6, wherein: Before responding to the first warning information, the method further includes: An ERPS fault message notified by the second network element is received, where the ERPS fault message carries the first alarm information, and the ERPS fault message is used to instruct the first network element to switch a link for data transmission from the first link to the second link.

8. The method according to any one of claims 1 to 7, wherein: The method further comprises: In response to the disappearance of the first alarm information, the link for data transmission of the first network element is switched from the second link to the first link through the protocol plane.

9. The method according to claim 8, wherein: In response to the disappearance of the first alarm information, switching the link for data transmission of the first network element from the second link to the first link through the protocol plane includes: When detecting that the first alarm information disappears, starting a timer; When the timer times out, the link for data transmission of the first network element is switched from the second link to the first link through the protocol plane.

10. The method according to claim 8, wherein: The disappearance of the first alarm information is detected by periodic polling of the first network element, and the method further includes: Sending an ERPS recovery message, where the ERPS recovery message is used to instruct the second network element to switch a link for data transmission from the second link to the first link; The second network element and the first network element are in the same Ethernet ring network link.

11. The method according to claim 8, wherein: The indication information that the first alarm information disappears comes from the second network element in the Ethernet ring network link, and the disappearance of the first alarm information is generated by the second network element periodically polling the local port; The second network element and the first network element are located in the same Ethernet ring network link.

12. A data transmission device, comprising: a forwarding plane, configured to switch a link for data transmission of the device from a first link to a second link in response to first alarm information, wherein the first alarm information is used to indicate that the first link has a fault, and the first link and the second link have the same head and tail network elements; as well as Data is transmitted through the path corresponding to the second link.

13. The device according to claim 12, wherein: It also includes a protocol plane for switching the link for data transmission of the device from the second link to the first link in response to the disappearance of the first alarm information.

14. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the steps of the method of any one of claims 1 to 11.

15. A computer-readable medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to execute the steps of the method according to any one of claims 1 to 11.