A method for transmitting service data and a chip

The method and chip design provide reliable data transmission by establishing redundant signal flows between OTN and packet switch devices using communication boards, addressing the lack of protection mechanisms in existing systems.

CN114765705BActive Publication Date: 2025-07-15HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110053537.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-15
Publication Date
2025-07-15
Estimated Expiration
2041-01-15

AI Technical Summary

Technical Problem

The lack of protection scheme between the network segments where the OTN device and the packet switching device are connected, resulting in low reliability of service data transmission.

Method used

By introducing multiple communication boards into the packet switching device, multiple transmission signal flows are established, and service data protection, including working signal flow and protection signal flow, data transmission is carried out using virtual ports and virtual channel mechanisms, and signal flow switching and protection switching are carried out under abnormal conditions.

Benefits of technology

It improves the reliability and accuracy of service data transmission between OTN devices and packet switching devices to connect to the network segment, reduces the network complexity and cost, and improves the integration of packet switching devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114765705B_ABST
    Figure CN114765705B_ABST
Patent Text Reader

Abstract

This application relates to the field of communication technologies, and discloses a method for transmitting service data and a chip, so as to implement a technical solution for protecting service data between network segments where an OTN device is docked with a packet switching device. The method is as follows: The multiple communication single boards respectively receive the same OTN data frames sent by an optical transport network (OTN) device; each of the communication single boards demaps and decompackages the OTN data frames to obtain corresponding packet service messages; and the packet service messages on a first communication single board are sent to a packet switching device, where the first communication single board is the communication single board that transmits the OTN data frames in a working state among the multiple communication single boards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of communication technologies, and in particular, to a method for transmitting service data and a chip. Background Art

[0002] With the large-scale application of services such as wireless communication, cloud, and data centers, the bandwidth of the bearer network is getting larger and larger. Currently, technologies such as wavelength division multiplexing (WDM), optical transport network (OTN), and packet switching are adopted in backbone networks and metropolitan area networks for service bearing. Among them, due to its characteristics such as large bandwidth, low latency, and high reliability, OTN technology has become the mainstream technology in the transport network, and is widely used in backbone, metropolitan area and other networks, and is currently further extending to access networks.

[0003] OTN devices currently mainly bear large-granularity layer-1 point-to-point services. If point-to-multipoint service aggregation is involved, it is usually necessary to add a packet switching device for cooperation, and the service aggregation is completed through the processing of layer-2 or layer-3 services. During the process of service processing, in the OTN domain, the subnetwork connection protection (SNCP) technology based on optical data unit k (ODUk) can be adopted to complete the protection of service data. On the packet switching device, layer-2 or layer-3 protection technologies can be adopted to protect service data. However, there is currently no protection solution between the network segments where the OTN device and the packet switching device are docked on the aggregation side, resulting in low reliability of service data during transmission. Therefore, how to implement the protection of service data between the network segments where the OTN device and the packet switching device are docked is an urgent problem to be solved currently. Summary of the Invention

[0004] Embodiments of the present application provide a method for transmitting service data and a chip, so as to implement the protection of service data between the network segments where the OTN device and the packet switching device are docked, and further improve the reliability of service data transmission.

[0005] In a first aspect, an embodiment of the present application provides a method for transmitting service data, which is applied to multiple communication boards. The multiple communication boards respectively receive the same OTN data frames sent by an optical transport network (OTN) device; each communication board demaps and decompackages the OTN data frames to obtain corresponding packet service messages; and the packet service messages on the first communication board are sent to a packet switching device, where the first communication board is the communication board that transmits the OTN data frames in the working state among the multiple communication boards.

[0006] The method provided by the embodiments of the present application can achieve the protection of service data between the network segments where the OTN device is docked with the packet switching device. By using multiple communication single boards, multiple transmission signal streams can be established for the service data to be transmitted, and the protection of the service data can be realized by using the multiple transmission signal streams, so as to avoid the failure of service data transmission and low transmission reliability that may occur when there is an abnormality during the transmission process using an Ethernet link between the OTN device and the packet switching device. Moreover, in the embodiments of the present application, after the processing of the communication single board, the packet switching device can be docked and networked with the access-side OTN device, which can improve the integration degree of the packet switching device, reduce the network complexity, save the network cost, etc. In addition, through the embodiments of the present application, on the basis of the packet switching device protecting the service data through the layer-2 or layer-3 protection technology in the packet domain, the ODUk channel protection of the L1 layer of the service data can be further superimposed, thereby improving the reliability of the network.

[0007] In a possible design, sending the packet service message on the first communication single board to the packet switching device can be implemented as setting the state of the virtual port allocated for transmitting the packet service message on the first communication single board to working, and sending the packet service message to the packet switching device through the virtual channel corresponding to the virtual port; and setting the state of the virtual port allocated for transmitting the packet service message on each second communication single board to blocked, where the second communication single board is the communication single board that transmits the OTN data frame in the protected state among the multiple communication single boards. In this design, by setting the states of different virtual ports, the packet switching device can selectively receive the packet service messages transmitted by multiple communication single boards. In the scenario of realizing the protection of service data through multiple transmission signal streams, the repeated reception of service data can be avoided, and the accuracy of service data transmission can be improved.

[0008] In a possible design, the first communication single board receives a first signal sent by the packet switching device, and each of the second communication single boards receives a second signal sent by the packet switching device. The first signal and the second signal are determined by the packet switching device according to the service status of transmitting the OTN data frame on the multiple communication single boards. Among them, the first signal is used to set the status of the virtual port allocated for transmitting the packet service message on the first communication single board to working, and the second signal is used to set the status of the virtual port allocated for transmitting the packet service message on the second communication single board to blocked. In this design, the packet switching device can collect the service status of the OTN data transmitted on multiple communication single boards, and then the packet switching device can select the OTN data frame for reception based on multiple service statuses. In this way, the packet switching device can select service data with better service status for reception, ensuring the reliability and accuracy of the transmission of service data.

[0009] In a possible design, the communication single board determines the virtual channel corresponding to the virtual port in the following ways: Method 1: Determine the logical port corresponding to the virtual port, and after performing port mapping on the logical port, determine the corresponding physical port in the channelized bus, where each physical port corresponds to a virtual channel in the channelized bus respectively. Method 2: Determine the virtual channel identifier allocated for the virtual port, add the virtual channel identifier to the packet service message, and determine the virtual channel for transmitting the packet service message in the channelized bus through the virtual channel identifier. In this design, a virtual channel is established between the communication single board and the packet switching device for transmitting service data, so that the transmission of different service data can be isolated, improving the transmission reliability of service data and the signal quality.

[0010] In a possible design, if the first communication single board detects that the service status of transmitting the OTN data frame is abnormal, it changes the destination second communication single board from the protection state to the working state. The destination second communication single board is any one of the multiple second communication single boards; and, changes the first communication single board from the working state to the protection state. In this design, through the method provided by the embodiment of the present application, if an abnormality is detected in the working signal stream among multiple transmission signal streams, any protection signal stream among the multiple transmission signal streams can be selected for reception, so that the problem of service data transmission failure caused by the abnormality of the working signal stream can be avoided, improving the reliability of service data transmission.

[0011] In a possible design, changing the destination second communication board from the protection state to the working state can be implemented as the first communication board notifying the packet switching device of the abnormality, so that after receiving the notification, the packet switching device controls the destination second communication board to change from the protection state to the working state. In this design, based on the fact that the packet switching device can obtain the service status of multiple communication boards, when there is an abnormality in the first communication board, the packet switching device can select a suitable destination second communication board from multiple second communication boards to transmit the OTN data frame, and use this OTN data frame as the new data frame in the working state, so that the transmission of service data can continue. This can enable the packet switching device to successfully receive the packet service message containing the service data and avoid the problem of service data transmission failure caused by abnormalities.

[0012] In another possible design, changing the destination second communication board from the protection state to the working state can also be implemented as the first communication board notifying the destination second communication board of the abnormality, so that after receiving the notification, the destination second communication board changes from the protection state to the working state. In this design, if information can be exchanged between communication boards, and the first communication board can learn about the service status of other second communication boards, then after detecting an abnormality, the first communication board can select the destination second communication board from multiple second communication boards, and then control the destination second communication board. This can enable the destination second communication board to continue transmitting service data, so that the packet switching device can successfully receive the packet service message containing the service data and avoid the loss of service data.

[0013] In a possible design, if the destination second communication board detects that there is an abnormality in the first communication board, it changes from the protection state to the working state. One possible implementation is that if the destination second communication board receives the control signal sent by the packet switching device, it determines that there is an abnormality in the first communication board, and the control signal is generated after the packet switching device receives the abnormality notification from the first communication board. Another possible implementation is that if the destination second communication board receives the abnormality notification sent by the first communication board, it determines that there is an abnormality in the first communication board.

[0014] Second aspect, an embodiment of the present application provides a method for transmitting service data, which is applied to a packet switching device. The packet switching device receives a packet service message sent by a first communication board among multiple communication boards, where the first communication board is a communication board that transmits an OTN data frame in a working state among the multiple communication boards, the packet switching device is respectively connected to the multiple communication boards, and the packet service message is obtained after each of the multiple communication boards demaps and decapsulates the same OTN data frame sent by the OTN device; perform packet switching processing on the packet service message.

[0015] In a possible design, the packet switching device receives the packet service message sent by the first communication board through a virtual channel, where the virtual channel is a virtual channel corresponding to a virtual port allocated for transmitting the packet service message on the first communication board, the state of the virtual port on the first communication board is working, and the state of the virtual port on each second communication board is blocked, and the second communication board is a communication board that transmits an OTN data frame in a protected state among the multiple communication boards.

[0016] In a possible design, the packet switching device determines the service state of transmitting the OTN data frame on the multiple communication boards; selects the OTN data frame transmitted by the first communication board from at least one communication board with a normal service state and determines it as the working state, and sends a first signal to the first communication board, where the first signal is used to set the state of the virtual port allocated for transmitting the packet service message on the first communication board to working; determines the OTN data frames transmitted by at least one second communication board other than the first communication board as the protected state, and sends a second signal to each second communication board respectively, where the second signal is used to set the state of the virtual port allocated for transmitting the packet service message on the second communication board to blocked.

[0017] In a possible design, the packet switching device determines the physical port for receiving the packet service message in the channelized bus, performs port demapping on the physical port to obtain a logical port, and determines the virtual port corresponding to the logical port; sends the packet service message to the virtual port for processing; or determines the virtual channel identifier added to the packet service message, and sends the packet service message to the virtual port corresponding to the virtual channel identifier for processing.

[0018] In a possible design, the packet switching device receives a notification sent by the first communication board that the service status of transmitting the OTN data frame detected by the first communication board is abnormal; and controls the destination second communication board to change from the protection state to the working state, where the destination second communication board is any one of the multiple second communication boards.

[0019] In a possible design, controlling the destination second communication board to change from the protection state to the working state includes: sending a control signal to the destination second communication board, so that after the destination second communication board receives the control signal, it determines that the first communication board is abnormal.

[0020] In a third aspect, an embodiment of the present application provides a method for transmitting service data, which is applied to a packet switching device. After the packet switching device performs packet switching processing on a packet service message, it determines the destination OTN device corresponding to the packet service message; and sends the packet service message to multiple communication boards respectively, so that after the multiple communication boards encapsulate and map the packet service message to obtain an OTN data frame, they respectively send the OTN data frame to the destination OTN device, so that the destination OTN device receives the same OTN data frames respectively sent by the multiple communication boards.

[0021] Through the method provided by the embodiment of the present application, based on using multiple communication boards, the packet service messages sent by the packet switching device can be sent in duplicate or multiple copies to the OTN device, so that the protection of the service data transmitted on the network segment connecting the packet switching device and the OTN device can be realized, and the transmission reliability can be improved. Moreover, through the communication board, the ODUk channel protection of the L1 layer connected to the packet switching device can be realized, so that the transmission reliability of the service data can be improved.

[0022] In a possible design, the packet switching device determines the multicast group corresponding to the packet service message, where the multicast group includes multiple multicast members, and each multicast member corresponds to one of the multiple communication boards; after multicasting the packet service message to each multicast member, it determines the virtual port allocated for transmitting the packet service message for each multicast member; and sends the packet service message to each communication board through the virtual channel corresponding to the virtual port. In this design, the present application provides an implementation manner that can achieve duplicate or multiple transmission by the packet switching device. By setting the multicast members corresponding to each communication board, after determining the multicast group corresponding to the service data, the service message is sent to the multiple multicast members included in the multicast group, and thus the ODUk channel protection for the service data can be established, and the transmission reliability of the service data can be improved.

[0023] In a possible design, the virtual channel corresponding to the virtual port is determined in the following ways: Way 1: Determine the logical port corresponding to the virtual port, and after performing port mapping on the logical port, determine the corresponding physical port in the channelized bus, where each physical port respectively corresponds to a virtual channel in the channelized bus. Way 2: Determine the virtual channel identifier assigned to the virtual port, add the virtual channel identifier to the packet service message, and determine the virtual channel in the channelized bus that transmits the packet service message through the virtual channel identifier.

[0024] In a possible design, the packet switching device receives flow control information sent by a third communication single board, where the third communication single board is any one of the multiple communication single boards, and the flow control information is used to indicate that the number of packet service messages received by the third communication single board through the virtual channel exceeds the message quantity threshold; reduce the number of packet service messages sent through the virtual channel according to the flow control information. In this design, by setting a flow control mechanism for the transmission between the communication single board and the packet switching device, the problem of packet loss caused by excessive received service data can be avoided, thereby improving the reliability of service data transmission.

[0025] In a fourth aspect, an embodiment of the present application provides a method for transmitting service data, which is applied to multiple communication single boards. Each communication single board respectively receives a packet service message sent by a packet switching device; encapsulate and map the packet service message on each communication single board to obtain an OTN data frame; each communication single board respectively sends the obtained OTN data frame to a destination OTN device, so that the destination OTN device receives the same OTN data frames respectively sent by multiple communication single boards, and the destination OTN device is determined according to the packet service message after the packet switching device performs packet switching processing on the packet service message.

[0026] In a possible design, the communication single board receives the packet service message sent by the packet switching device through the virtual channel corresponding to the virtual port, where the virtual port is allocated by the packet switching device for each multicast member to transmit the packet service message, and the multicast member is determined according to the packet service message.

[0027] In a possible design, the communication single board determines the physical port corresponding to the packet service message received in the channelized bus, and after performing port inverse mapping on the physical port, obtains a logical port to determine the corresponding virtual port; send the packet service message to the virtual port for processing. Or, determine the virtual channel identifier added to the packet service message, and send the packet service message to the virtual port corresponding to the virtual channel identifier for processing.

[0028] In a possible design, if the third communication single board determines that the number of packet service messages received through the virtual channel exceeds the message number threshold, it sends flow control information to the packet switching device, so that the packet switching device reduces the number of packet service messages sent through the virtual channel according to the flow control information. The third communication single board is any one of the multiple communication single boards.

[0029] In a fifth aspect, an embodiment of the present application provides a chip. The chip includes: a processor and a communication interface. The communication interface is used for inputting and / or outputting information. The processor is used for executing a computer program, so that the method provided by any one of the possible designs in the first aspect or any one of the possible designs in the second aspect is executed.

[0030] In a sixth aspect, an embodiment of the present application provides a chip. The chip includes: a processor and a communication interface. The communication interface is used for inputting and / or outputting information. The processor is used for executing a computer program, so that the method provided by any one of the possible designs in the second aspect or any one of the possible designs in the third aspect is executed.

[0031] In a seventh aspect, an embodiment of the present application provides a communication system. The communication system includes the chip in the fifth aspect and the chip in the sixth aspect.

[0032] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium. A software program is stored in the storage medium, and when the software program is read and executed by one or more processors, the method provided by any one of the possible designs in any one of the first to fourth aspects can be implemented.

[0033] In a ninth aspect, an embodiment of the present application provides a computer program product containing instructions. When it runs on a computer, it enables the computer to execute the method provided by any one of the possible designs in any one of the first to fourth aspects.

[0034] For the beneficial effects of the second aspect, the fourth to ninth aspects, please specifically refer to the beneficial effects of each possible design in the first aspect and the third aspect, and will not be elaborated here. Description of the Drawings

[0035] Figure 1 It is a communication system diagram of a hybrid networking of an OTN device and a packet switching device in an embodiment of the present application;

[0036] Figure 2a It is a schematic structural diagram of a possible OTN device in an embodiment of the present application;

[0037] Figure 2b It is a schematic structural diagram of a possible packet switching device in an embodiment of the present application;

[0038] Figure 3 This is an example diagram provided by the embodiment of the present application to introduce SNCP protection based on ODUk;

[0039] Figure 4 This is one of the schematic structural diagrams of a method for transmitting service data provided by the embodiment of the present application;

[0040] Figure 5 This is one of the interaction schematic diagrams of a method for transmitting service data provided by the embodiment of the present application;

[0041] Figure 6a This is one of the interaction schematic diagrams of the first communication board exception notification provided by the embodiment of the present application;

[0042] Figure 6b This is the second of the interaction schematic diagrams of the first communication board exception notification provided by the embodiment of the present application;

[0043] Figure 7 This is the second of the schematic structural diagrams of a method for transmitting service data provided by the embodiment of the present application;

[0044] Figure 8a This is an example diagram of a control word provided by the embodiment of the present application;

[0045] Figure 8b This is an example diagram of a packet service message provided by the embodiment of the present application;

[0046] Figure 8c This is the scenario schematic diagram of a method for transmitting service data provided by the embodiment of the present application;

[0047] Figure 9 This is the second of the interaction schematic diagrams of a method for transmitting service data provided by the embodiment of the present application;

[0048] Figure 10 This is the schematic diagram of a packet switching device sending a packet message provided by the embodiment of the present application;

[0049] Figure 11 This is the schematic diagram of a device for transmitting service data provided by the embodiment of the present application;

[0050] Figure 12 This is the schematic diagram of another device for transmitting service data provided by the embodiment of the present application;

[0051] Figure 13 This is the schematic diagram of a network device 1300 provided by the embodiment of the present application. Detailed implementation manners

[0052] Next, the embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0053] The method provided by the embodiments of the present application can be applied to a communication system with a hybrid network of OTN devices and packet switching devices. Figure 1 It is an architecture diagram of a communication system with a hybrid network of OTN devices and packet switching devices. The communication system includes: a customer access device 101 ( Figure 1 taking the customer access devices 101_a to 101_c as examples), an OTN device 102 ( Figure 1 taking the OTN devices 102_a to 102_e as examples), a packet switching device 103, and a customer aggregation device 104. It should be noted that the communication system may also include other network devices, or Figure 1 contain different numbers of each type of device shown in the figure. The present application does not make any limitations in this regard. Among them, the customer access device 101 is any terminal access device that can implement the access function from the user to the network. There can be various specific access methods. For example, mobile phone users access the network through a base station, and fixed users access the network through a fixed wired network, etc. The OTN device 102 can implement the transmission of a large number of gigabit ethernet (GE), and / or 10-gigabit ethernet (10GE) services sent by the customer access device 101 to the OTN device on the aggregation side through the transmission network. For example, Figure 1 the OTN device 102_a receives the service data sent by the customer access device 101_a, and the OTN device 102_b receives the service data sent by the customer access devices 101_b and 101_c, and then transmits the service data to the OTN device 102_e on the aggregation side through the transmission network. Among them, the transmission network can be an OTN network, a backbone network, a metropolitan area network, etc. The packet switching device 103 can implement the aggregation of service data after two-layer or three-layer switching processing of GE and / or 10GE services, and send it to the customer aggregation device 104.

[0054] In the above embodiments, the OTN network can usually be formed by connecting multiple devices through optical fibers, and can be composed of different topological types such as linear, ring, and mesh according to specific needs. For example, Figure 1The OTN network shown in the figure consists of five OTN devices, namely OTN devices 102_a to e, and OTN devices 102_a to c form a ring topology. Moreover, according to actual needs, an OTN device may have different functions. Generally speaking, OTN devices are divided into optical layer devices, electrical layer devices, and optical and electrical hybrid devices. Optical layer devices refer to devices that can process optical layer signals, such as optical amplifiers (OAs) and optical add-drop multiplexers (OADMs). An OA can also be referred to as an optical line amplifier (OLA), which is mainly used to amplify optical signals to support longer transmission distances while ensuring specific performance of the optical signals. An OADM is used to perform spatial transformation on optical signals so that they can be output from different output ports (sometimes also called directions). Electrical layer devices refer to devices that can process electrical layer signals, such as devices that can process OTN signals. Optical and electrical hybrid devices refer to devices that have the ability to process both optical layer signals and electrical layer signals. It should be noted that according to specific integration needs, an OTN device can integrate multiple different functions. The technical solution provided in this application is applicable to OTN devices of different forms and integration levels.

[0055] Figure 2a A schematic structural diagram of a possible OTN device in an embodiment of this application. For example, the OTN device here can be Figure 1Any one of the OTN devices 102_a to 102_e in []. Specifically, the OTN device 102 includes tributary boards 201, cross-connect boards 202, line boards 203, optical layer processing single boards (not shown in the figure), and system control and communication single boards 204. According to specific requirements, the types and quantities of single boards included in each OTN device may be different. For example, the OTN device as a core node may not have a tributary board 201. Another example is that the OTN device as an edge node may have multiple tributary boards 201, or may not have an optical cross-connect board 202. Still another example is that an OTN device that only supports electrical layer functions may not have an optical layer processing single board. The tributary boards 201, cross-connect boards 202, and line boards 203 are mainly used to process the electrical layer signals of OTN. Among them, the tributary board 201 is used to implement the reception and transmission of various client services, such as SDH services, packet services, Ethernet services, and fronthaul services, etc. Further, the tributary board 201 can be divided into a client-side optical module and a signal processor. Among them, the client-side optical module can be an optical transceiver, which is used to receive and / or transmit service data. The signal processor is used to implement the mapping and demapping processing of service data to OTN data frames. The cross-connect board 202 is used to implement the switching of OTN data frames and complete the switching of one or more types of OTN data frames. The line board 203 mainly implements the processing of line-side OTN data frames. Specifically, the line board 203 can be divided into a line-side optical module and a signal processor. Among them, the line-side optical module can be a line-side optical transceiver, which is used to receive and / or transmit OTN data frames. The signal processor is used to implement the multiplexing and demultiplexing, or mapping and demapping processing of the line-side OTN data frames. The system control and communication single board 204 is used to implement system control. Specifically, information can be collected from different single boards through the backplane, or control instructions can be sent to the corresponding single boards. Among them, different single boards can be distinguished by different board card numbers.

[0056] Figure 2b is a schematic structural diagram of a possible packet switching device in an embodiment of the present application. For example, it can be Figure 1 the packet switching device 103 in []. Specifically, similar to the OTN device, the packet switching device 103 includes a first packet service board 210, a second packet service board 220, and a system control and communication single board 230. According to specific requirements, the types and quantities of single boards included in each packet switching device may be different. Among them, the first packet service board 210 is used to receive and transmit packet services and can support all attributes of packet services. The second packet service board 220 is used to perform packet switching processing of packet services and can implement the aggregation and grouping of received service data and then forward it to the next-hop network device. For example, Figure 1The packet switching device 103 therein can receive service data sent from the OTN network. After performing packet switching processing on the service data, it sends the packet service data to the customer aggregation device 104. It should be noted that the packet service board can also be referred to as a board card or a packet service card, etc., and this application does not make any limitations in this regard.

[0057] It should be noted that unless otherwise specified, such as Figure 2a the OTN device shown or such as Figure 2b the specific components (such as signal processors) included in the packet switching device shown can be one or more, and this application does not make any restrictions. It should also be noted that in specific implementations, two single boards included in the above OTN device or packet switching device may also be designed as one single board. In addition, the OTN device or packet switching device may also include a power supply for primary or standby use, a fan for heat dissipation, auxiliary single boards, etc.

[0058] First, the technical concepts involved in the embodiments of this application will be described below.

[0059] 1) OTN data frame. The data frame structure used by the OTN device in the embodiments of this application can be an OTN data frame (which can also be referred to as an OTN transmission frame, or simply an OTN frame for short), used to carry various service data and capable of realizing the management and monitoring of service data. The OTN frame can be an optical data unit k (ODUk), ODUCn, ODUflex, or an optical transport unit k (OTUk), OTUCn, or a flexible OTN (FlexO) frame, etc. Among them, the difference between the ODU frame and the OTU frame is that the OTU frame includes the ODU frame and OTU overhead; k represents different rate levels. For example, k = 1 represents 2.5 Gbps, and k = 4 represents 100 Gbps; Cn represents a variable rate, specifically a rate that is a positive integer multiple of 100 Gbps. Unless otherwise specified, the ODU frame refers to any one of ODUk, ODUCn, or ODUflex, and the OTU frame refers to any one of OTUk, OTUCn, or FlexO. It should also be pointed out that with the development of OTN technology, new types of OTN frames may be defined and are also applicable to this application.

[0060] 2) SNCP protection based on ODUk is a technical solution for protecting the transmitted service data in the OTN network. Figure 3 This is an example diagram provided by the embodiments of this application to introduce the basic principle of SNCP protection based on ODUk. On the OTN device, the dual transmission of service data at the sending end can be achieved through the OTN cross-connect board. For example, Figure 3In the transmission direction from OTN device 1 to OTN device 2, through the OTN cross-connect board 1, a working signal flow and a protection signal flow can be transmitted to OTN device 2, namely, the "1+1" protection mode. Similarly, in the transmission direction from OTN device 2 to OTN device 1, through the OTN cross-connect board 2, a working signal flow and a protection signal flow can also be sent. Moreover, on the OTN device, the selective reception of service data at the receiving end can also be achieved through the OTN cross-connect board. For example, Figure 3 OTN device 1 can selectively receive the working signal flow and reject the protection signal flow, so as to protect the scenario where the protection signal flow does not establish a cross on the OTN cross-connect board 1. Similarly, Figure 3 OTN device 2 in it can selectively receive the working signal flow and reject the protection signal flow. In addition, when the working signal flow is abnormal, the receiving end can selectively receive the service data on the protection signal flow through the protection switching protocol. In this way, through the dual transmission and selective reception between network devices and the protection switching protocol, the SNCP protection based on ODUk can be achieved.

[0061] 3) "Multiple" means two or more. The "and / or" describes the association relationship of associated objects, and there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone these three situations.

[0062] 4) The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "the" and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0063] 5) In the embodiments of the present application, terms such as first, second, and third may be used to describe various messages, network devices, and communication single boards. However, these messages, network devices, and communication single boards should not be limited to these terms. These terms are only used to distinguish the messages, network devices, and communication single boards from each other. For example, without departing from the scope of the embodiments of the present application, the first communication single board can also be called the second communication single board, and similarly, the second communication single board can also be called the first communication single board.

[0064] Based on the technical problems introduced in the background art, in the application scenario of hybrid networking of OTN devices and packet switching devices, since the network connected by the OTN device and the packet switching device cannot protect service data, it may lead to the problem of low reliability of service data during transmission. Specifically, in the prior art, within the OTN network domain, the OTN device can support cross-connect functions, that is, it can realize the mutual forwarding of services between different ODUk channels, so that service dual transmission can be realized based on the cross-connect function, and then the ODUk channel protection of service data can be realized. After the OTN device sends the service data to the packet switching device, the packet switching device can support the two-layer or three-layer switching processing based on the packet service message. However, within the packet switching network domain, there is no similar ODUk channel concept in the OTN device, nor is there a cross-connect function similar to that supported by the OTN device, so the ODUk channel protection of service data cannot be realized.

[0065] In view of this, the present application provides a method and a chip for transmitting service data, so as to provide a technical solution that can support the ODUk channel protection of service data on the packet switching device and improve the reliability of service data transmission. Among them, the method and the device are based on the same technical concept. Since the principles of solving problems by the method and the device are similar, the implementation of the device and the method can be referred to each other, and the repeated parts will not be described again.

[0066] Figure 4 It is a schematic structural diagram of a method for transmitting service data provided by an embodiment of the present application. Since the packet switching board or the packet tributary board included in the packet switching device cannot realize the mapping of the packet service message to the ODUk channel, the present application can be implemented by adding a communication single board that can realize this mapping function. This can enable the packet service messages on the packet switching device to be distinguished according to the ODUk channels on the OTN device, thereby reducing the complexity of protecting service data. And, in order to realize the ODUk channel protection of service data, based on the idea of SNCP protection on the OTN device, multiple communication single boards can be used to establish multiple transmission signal flows of service data between the packet switching device and the OTN device respectively, so as to realize the protection of service data through the primary and standby transmission lines.

[0067] Exemplarily, if two communication single boards are added, a working signal flow and a protection signal flow can be established, so as to realize "1+1" protection for service data. Or, if more than two communication single boards are added, a working signal flow and multiple protection signal flows can be established, so as to realize "1+n" protection for service data. For example, Figure 4 The figure shows an application scenario of adding n+1 communication single boards between the packet switching device and the OTN device to realize "1+n" protection.

[0068] It should be noted that when the present application is implemented, multiple communication single boards can be connected through a backplane and encapsulated on a packet switching device as a network device, so that the packet switching device can support the docking and networking with an OTN device. According to the needs of the actual application scenario, the number of newly added communication single boards between the packet switching device and the OTN device can be different. In addition, the present application does not make specific limitations on the specific modules or units included in the communication single board. On the basis of implementing a method for transmitting service data provided by the present application, each communication single board may further include other possible modules and the like.

[0069] The method provided by the present application can implement dual-transmission and single-selection or multi-transmission and single-selection in the service data transmission direction from the OTN device to the packet switching device, as well as dual-transmission or multi-transmission in the service data transmission direction from the packet switching device to the OTN device. The following will combine the accompanying drawings to elaborate in detail on the solution provided by the embodiments of the present application from the perspective of two transmission directions.

[0070] Figure 5 It is an interaction schematic diagram of a possible method for transmitting service data provided by an embodiment of the present application. This method for transmitting service data can be applied to the process of transmitting service data in the direction of the OTN device → packet switching device, and is used to implement ODUk channel protection for service data on the network segment where the OTN device and the packet switching device are docked. During specific implementation, operations such as receiving, sending, or processing that each device needs to perform, as shown in Figure 5 can be executed by a processor, a chip, a chip system, or a module with service processing functions in each device. The specific steps are as follows:

[0071] Step S501: Multiple communication single boards respectively receive the same OTN data frames sent by the OTN device. Figure 5 The first and second communication single boards are taken as examples in [[. It should be noted that the present application does not limit the number of communication single boards. Step S501 may include step 501a and step 501b. The execution order of step 501a and step 501b is not limited.

[0072] Exemplarily, on the OTN device, after the OTN data frames are cross-processed by a cross-board, the obtained OTN data frames are respectively sent to each communication single board through multiple OTN line boards. In this way, each communication single board can receive the OTN data frames to be transmitted sent from the OTN device. By establishing multiple transmission signal streams for the OTN data frames to be transmitted, the transmission reliability of the OTN data frames can be better ensured by setting the transmission of the working signal stream and the protection signal stream.

[0073] Step S502: Each of the communication boards demaps and unpacks the OTN data frame to obtain the corresponding packet service message. For example, step S502 may include Figure 5 steps 502a and 502b in. Among them, steps 502a and 502b may be respectively executed by two communication boards and are independent of each other.

[0074] Exemplarily, the format of the service data received by the communication board is the OTN data frame format suitable for transmission in the OTN network domain. In order to enable the service data to be transmitted in the packet switching network domain, when the present application is implemented, after the communication board receives the OTN data frame sent by the OTN device, it demaps and unpacks each OTN data frame to restore the packet service message. Then, each communication board can transmit the packet service message to the packet switching device through the transmission signal flow established for transmitting the packet service message.

[0075] When the present application is implemented, multiple communication boards can establish multiple transmission signal flows for transmitting the same data frame. The packet switching device can select one of the transmission signal flows for reception and block the other transmission signal flows, thereby avoiding repeated reception of service data and improving the accuracy of service data transmission. Exemplarily, the transmission signal flow may include a working signal flow and a protection signal flow. The packet switching device can receive the working signal flow, that is, receive the packet service message in the working state. In addition, since the working signal flow may be abnormal during transmission, at this time, the packet switching device can select one of the multiple protection signal flows as the new working signal flow for reception. Specifically, there may be two scenarios for the packet switching device to receive the packet service message sent by the communication board. Scenario 1 is the transmission scenario when the working signal flow is normal and includes step S503. Scenario 2 is the transmission scenario when the working signal flow is abnormal and the working signal flow needs to be switched, including steps S504 - S505, as follows:

[0076] Scenario 1: Step S503, send the packet service message on the first communication board to the packet switching device, where the first communication board is the communication board that transmits the OTN data frame in the working state among the multiple communication boards.

[0077] Exemplarily, an optional implementation manner for the communication board to determine the working signal flow is that the overhead area of the OTN data frame may carry identification information about whether the service data is in the working state or the protection state. In this way, the communication board can judge the service state of the OTN data frame according to the identification information. If it is judged that the service state of the received OTN data frame is the working state, the packet service message is sent to the packet switching device. If it is judged that the service state of the received OTN data frame is the protection state, the packet service message does not need to be sent to the packet switching device.

[0078] In another alternative implementation, after each communication single board receives an OTN data frame, it can also transmit the overhead information of the OTN data frame to the packet switching device through an overhead bus. In this way, the packet switching device can receive the overhead information of the OTN data frames of multiple communication single boards. Then, after the packet switching device obtains multiple OTN data frames for transmitting the same service, it makes a selection and reception based on the overhead information. Specifically, it can be implemented as selecting one OTN data frame in the working state, and then notifying the communication single board that transmits this OTN data frame to allow the transmission of packet service messages. Also, it marks other OTN data frames as in the protection state, and notifies the communication single boards that transmit these OTN data frames not to send packet service messages. For example, the packet switching device can select an OTN data frame with a lower bit error rate based on the overhead information for reception, so as to ensure the accuracy of the service data received by the packet switching device and improve the transmission reliability of the service data.

[0079] Scenario 2: Step S504, if the first communication single board detects that there is an abnormality in the service state of transmitting the OTN data frame, it changes the destination second communication single board from the protection state to the working state. The destination second communication single board is any one of the multiple second communication single boards, and changes the first communication single board from the working state to the protection state. Step S505, transmits the packet service message on the second communication single board to the packet switching device.

[0080] Exemplarily, the first communication single board can detect an abnormality by detecting the service state of the channel on the line side of the OTN data frame in real time. Optionally, if a signal degrade (SD) signal or a signal fail (SF) signal is detected, it is determined that there is a fault in the service state. After the first communication single board detects an abnormality, it can switch the packet service message received by the packet switching device in several possible ways, including:

[0081] Method 1: Figure 6a This is one of the interaction schematic diagrams for the first communication single board abnormality notification provided by the embodiments of the present application. Assume that there is a first communication single board in the working state, and second communication single board 1 and second communication single board 2 in the protection state. The steps after the first communication single board detects an abnormality include: Step S5051: The first communication single board sends a notification of the existence of an abnormality to the packet switching device.

[0082] Step S5052: The packet switching device selects the destination second communication single board from multiple second communication single boards.

[0083] Step S5053: The packet switching device sends a control signal to the destination second communication board. Here, assume the destination second communication board is the second communication board 1.

[0084] Step S5054: The second communication board 1 changes from the protection state to the working state according to the control signal.

[0085] Method 2: Figure 6b This is the second interactive schematic diagram of the first communication board anomaly notification provided by the embodiment of the present application. The steps after the first communication board detects an anomaly include: Step S505a: The first communication board selects a destination second communication board from multiple second communication boards, assumed to be the second communication board 1. Exemplarily, in this way, the communication boards can be interconnected, so that the first communication board can directly send the anomaly notification to other communication boards.

[0086] Step S505b: The first communication board sends a notification of an anomaly to the second communication board 1.

[0087] Step S505c: The second communication board 1 changes from protection to the working state.

[0088] It should be noted that the "first communication board" and the "second communication board" are used to distinguish communication boards in different service states and are not limited to other meanings.

[0089] Step S506: The packet switching device performs packet switching processing on the packet service message.

[0090] The following introduces the implementation process of sending the packet service message on the first communication board to the packet switching device through an embodiment.

[0091] Figure 7 This is another structural schematic diagram of a service data transmission method provided by the embodiment of the present application. Taking any communication board 700_1 as an example, the processing process after receiving the OTN data frame of the OTN device through the communication board is introduced. Among them, the communication board 700_1 includes: an ODUk channel processing module 701, a packet mapping processing module 702, a virtual port control module 703, a logical port processing module 704, and a centralized processing module 705. It should be noted that as Figure 7The structural schematic diagram shown is merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network devices. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present application.

[0092] Exemplarily, the ODUk channel processing module 701 is used to receive the OTUk frames sent by the OTN device 102, parse the OTUk frames to obtain multiple ODUk frames, and then determine the ODUk channels from the overhead. The packet mapping processing module 702 is used to perform mapping / demapping and encapsulation / de-encapsulation processing. Specifically, in the transmission direction from the OTN device to the packet switching device, the demapping and de-encapsulation processing of the ODUk frames can be performed to obtain packet service messages. The virtual port control module 703 is equivalent to a switch on the transmission signal flow and is used to control whether to send the packet service messages to the packet switching device. The logical port processing module 704 is used to determine the virtual channel corresponding to the virtual port and send the packet service messages to the packet switching device through the virtual channel corresponding to the virtual port. Among them, on the communication board 700, there is an allocated virtual port for each ODUk channel, and each virtual port corresponds to a virtual channel. Thus, different OTN data frames can be sent to the packet switching device through different virtual channels. By transmitting OTN data frames by differentiating channels, the packet switching device can receive messages of different services based on the channel level, and thus the complexity of protecting service data can be reduced.

[0093] Optionally, when implementing the present application, the virtual channel corresponding to the virtual port can be determined by the following methods, including:

[0094] Method 1: The communication board 700 sends the packet service message to the packet switching device 103 through a channelized bus. Exemplarily, the channelized bus can be an Interlaken bus. The Interlaken bus can perform high-speed data transmission between chips and support multi-channel transmission. Among them, based on the multi-channel transmission feature of the Interlaken bus, the packet service message can be sent through multiple physical ports on the Interlaken bus. The number of physical ports can be flexibly changed according to factors such as data volume and bandwidth. Before being sent through the physical port, the packet service message will undergo 64b / 67b encoding, and then the packet service message is mapped to each physical port through a logical port. It should be noted that the number of logical ports is the same as that of physical ports. Since the data transmitted in the logical port is the data after 64b / 67b encoding, the types of transmitted data are divided into two types, one is the payload, and the other is the control word. Figure 8a This is an example diagram of a control word provided by an embodiment of the present application. When the present application is implemented, multiple channel numbers can be obtained according to the fields "channel number" and "multiple-use" in the control word, so as to transmit the packet service message through multiple channels. The functions of the fields "channel number" and "multiple-use" are shown in Table 1 below:

[0095] Table 1

[0096]

[0097]

[0098] It should be noted that, for example Figure 8a the content of other fields in the format of the burst / idle control word data type can refer to the provisions in the Interlaken protocol, and the present application will not elaborate on this content. According to Figure 8a and the content shown in Table 1, it can be obtained that different packet service messages can be transmitted to the packet switching device through different channels through the channelized bus. The service data transmission at the channel level has the advantages of high transmission quality and low error rate.

[0099] When the present application is implemented, after the communication board 700 determines the virtual port allocated for the packet service message, it further determines the logical port corresponding to the virtual port, so that the packet service message on the virtual port can be transmitted to the packet switching device 103 according to the processing mechanism of the Interlaken bus.

[0100] Way 2: The communication board 700 can send packet service messages to the packet switching device 103 through the Ethernet bus. Exemplarily, in order to distinguish different virtual channels for different packet service messages during transmission, so as to realize the transmission of different packet service messages through different virtual channels, virtual channel identifiers can also be added to the packet service messages to distinguish different virtual channels for transmitting different packet service messages.

[0101] Figure 8b This is an example diagram of a packet service message provided by an embodiment of the present application. When implementing the present application, based on the idea of a virtual local area network (VLAN) tag, a virtual channel identifier can be added to the message. Among them, in addition to including a destination address (DA), a source address (SA), and user payload, the message can also include a message VLAN tag. Specifically, the lower 12 bits (bit) in the VLAN tag are replaced with a virtual channel identifier (channel id) to indicate through which virtual channel in the channelized bus this message is transmitted. Then the communication board can schedule the packet service message to the corresponding virtual channel for transmission.

[0102] It should be noted that before packet switching processing, there is no need for a VLAN tag in the message. Therefore, the idea based on the VLAN tag can be used to add a VLAN tag to the packet service message, and a virtual channel identifier is added through the VLAN tag, so as to realize the transmission of the virtual channel. However, after the packet service message is transmitted to the packet switching device 103 through the channelized bus and before packet switching processing, in order not to affect the packet switching processing of the packet switching device and ensure the accuracy of the packet switching processing process, the packet switching device can remove the virtual channel identifier. For example, Figure 8b The virtual channel identifier is added to message 1 in the figure, and the virtual channel identifier is removed from message 2 after it is transmitted to the virtual port dual-transmission and dual-reception processing module of the packet switching device.

[0103] Based on the above-introduced content, the communication board can implement the process of sending the OTN data frame received from the OTN device to the packet switching device. Moreover, by establishing a corresponding relationship between the ODUk channel and the virtual port, the communication board can transmit the service data of different services through different virtual channels. In this way, the service data of each service is isolated from the service data of other services, so that different service data can be protected at the channel level. When implementing, multiple communication boards are used for each service data to establish multiple transmission signal streams, so as to avoid the problem of low reliability caused by abnormal data transmission of one signal stream.

[0104] Figure 8c This is a schematic diagram of the scenario of a method for transmitting service data provided by an embodiment of the present application. Based on the use of multiple communication single boards, multiple transmission signal streams can be established, namely a working signal stream and multiple protection signals. Figure 8c The figure shows an example diagram of the transmission process of a working signal stream and a protection signal stream. On the working signal stream, the virtual port can be set to work through the virtual port control module, so as to realize that the packet service packets on the working signal stream are sent to the packet switching device through the virtual channel. On the protection signal stream, the virtual port is set to blocked, so as to realize that the packet service packets on the protection signal stream do not need to be sent to the packet switching device. In this way, in the scenario where multiple transmission signal streams can be established by multiple communication single boards, the packet switching device can receive the packet service packets in the working state, that is, the packet service packets on the working signal stream.

[0105] Assume that Figure 7 The first packet service board on the packet switching device 103 shown is called a packet branch board, and the second packet service board is called a packet switching board. Among them, the packet switching board includes a packet switching processing module 708 for processing packet service packets. In the embodiment of the present application, the packet switching board may further include: a virtual port dual-transmission and dual-reception processing module 707, and a switching control module 706. The virtual port dual-transmission and dual-reception processing module 707 is used to receive / send packet service packets with the communication single board. The switching control module 706 is used to perform protection switching processing on multiple transmission signal streams transmitted by the communication single board during the transmission process. For example, when an abnormality occurs in the working signal stream, the packet switching device is switched to receive the packet service packets on the protection signal stream. Optionally, for a better understanding of the abnormal switching process, in combination with Figure 7 The process of the first communication single board detecting an abnormality and completing the switching is introduced. During implementation, the ODUk channel processing module 701 on the communication single board 700_1 can detect the service status of the line-side ODUk channel in real time. If SD and SF signals are detected, they are reported to the interruption signal centralized processing module 705. The centralized processing module 705 is used to process the fault status information and notify the switching control module 706 on the packet switching board of the fault status information and / or the automatic protection switching (APS) byte through the overhead bus.

[0106] After receiving an exception notification, the packet switching device can implement selective reception of service data based on the channel service status of multiple communication single boards. Exemplarily, the switching control module 706 on the packet switching device can refresh the channel service status table entry fields of the corresponding ODUk channels on each communication single board in real time. For channels configured with ODUk SNCP protection, the ODUk channels transmitting the same service on different communication single boards can be determined through the SNCP protection group number, that is, the service data transmitted by the ODUk channels with the same SNCP protection group number is the same. Based on the SNCP protection group number, the switching control module 706 completes the operation of the switching state machine for the data frames transmitted by multiple ODUk channels in each protection group. Specifically, it is implemented by determining the ODUk channels in the working state and the protection state in each protection group, and then completing the selective reception of service data. For example, Table 2 below shows an example of the switching state machine calculation performed by the switching control module 706 on the packet switching board, as follows:

[0107] Table 2

[0108] Board Card Number Channel Number Channel Service Status Protection Enable SNCP Protection Group Switching Status Virtual Port Virtual Port Status slot_1 ODUk_1 Normal Enable SNCP_1 working VP1_w Working slot_1 …… Normal Disable slot_1 ODUk_n Normal Disable …… …… …… …… slot_n ODUk_1 Fault Enable SNCP_1 protecting VP1_p Blocked slot_n …… Normal Disable slot_n ODUk_n Normal Disable

[0109] According to Table 2 above, it can be obtained that the channel ODUk_1 on slot_1 and the ODUk_1 on slot_n are two channels belonging to the same SNCP_1 protection group. When the switching control module 706 obtains that the channel service status on slot_n is faulty, it can set the switching state of the corresponding ODUk channel on slot_1 to working, and set the switching state of the corresponding ODUk channel on slot_n to protecting. Correspondingly, the state of the virtual port (VP1_w) corresponding to the ODUk channel in the working state is set to working, so as to realize the transmission of the packet service message to the packet switching device through the virtual channel corresponding to VP1_w. And, the state of the virtual port (VP1_p) corresponding to the ODUk channel in the protection state is set to blocked, so as to realize the selective reception of multiple transmission signal streams in the SNCP protection group.

[0110] Through a method for transmitting service data provided by this application, it is also possible to realize the transmission of multiple transmission signal streams in the transmission direction from the packet switching device to the OTN device. Figure 9 This is an interaction schematic diagram of a method for transmitting service data provided by an embodiment of this application. The method steps include:

[0111] Step S901: After the packet switching device performs packet switching processing on the packet service message, determine the destination OTN device corresponding to the packet service message.

[0112] Step S902: The packet switching device separately sends the packet service messages to multiple communication single boards. Among them, step S902 includes Figure 9 step S902a and step S902b in

[0113] Exemplarily, Figure 10 is a schematic diagram of a packet switching device sending packet messages provided by an embodiment of the present application. The packet switching device can determine the multicast group corresponding to the packet service message according to the service identifier of the packet service through the virtual port dual-transmission and dual-reception processing module 707 on the packet switching board. The multicast group includes multiple multicast members, and each multicast member corresponds to one of the multiple communication single boards. For example Figure 10 the multicast members in include a first multicast member, a second multicast member, etc. Among them, the first multicast member corresponds to the communication single board 700_1, and the second multicast member corresponds to the communication single board 700_n+1. Secondly, after the packet switching device multicasts the packet service message to each multicast member, it determines the virtual port allocated for transmitting the packet service message for each multicast member. Then, the packet service message is sent to each communication single board through the virtual channel corresponding to the virtual port. The implementation manner of determining the virtual channel corresponding to the virtual port can refer to the examples introduced in the foregoing Embodiment 1 and will not be elaborated here.

[0114] In addition, a flow control mechanism can also be adopted between the packet switching device and the communication single board to avoid the occurrence of packet loss problems. Exemplarily, if it is determined that the number of packet service messages received by a third communication single board through the virtual channel exceeds the message number threshold, flow control information is sent to the packet switching device. After receiving the flow control information, the packet switching device reduces the number of packet service messages sent through the virtual channel according to the flow control information.

[0115] Step S903: Encapsulate and map the packet service message on each communication single board to obtain an OTN data frame.

[0116] Step S904: Each communication single board separately sends the obtained OTN data frame to the destination OTN device. Among them, the destination OTN device can receive the same OTN data frames separately sent by multiple communication single boards through the OTN line board, and then perform selective reception on the OTN cross board.

[0117] Through a service data transmission method provided by an embodiment of the present application, it is possible to enable the packet switching device and the OTN device to ensure the transmission of service data through multiple transmission signal streams. Compared with the technical method in the prior art where channel protection cannot be achieved in the network segment where the packet switching device and the OTN device are docked, the reliability of service data transmission can be improved.

[0118] Based on the same inventive concept as the above embodiments, an embodiment of the present application further provides a device for transmitting service data. This device can be applied to multiple communication single boards. Specifically, this device can be a processor in a communication single board, or a chip, or a chip system, or a functional module for sending, etc. Refer to Figure 11 As shown, the device may include a receiving unit 1101, a processing unit 1102, and a transmitting unit 1103. Among them, the receiving unit 1101 is used to execute S501, the processing unit 1102 is used to execute S502 or S504, and the transmitting unit 1103 is used to execute S503 or S505. For repeated parts, they will not be elaborated here. Or, the receiving unit 1101 is used to execute S902, the processing unit 1102 is used to execute S903, and the transmitting unit 1103 is used to execute S904. For repeated parts, they will not be elaborated here.

[0119] Based on the same inventive concept as the above method embodiments, an embodiment of the present application further provides another device for transmitting service data. This device is applied to a packet switching device. Specifically, this device can be a processor in a packet switching device, or a chip, or a chip system, or a functional module for receiving, etc. Refer to Figure 12 As shown, the device may include a receiving unit 1201, a switching and processing unit 1202, and a transmitting unit 1203. Among them, the receiving unit 1201 is used to execute S503 or S505, and the switching and processing unit 1202 is used to execute S506. For repeated parts, they will not be elaborated here. Or, the switching and processing unit 1202 is used to execute S901, and the transmitting unit 1203 is used to execute S902. For repeated parts, they will not be elaborated here. It should be noted that if the communication single board adopts the implementation method encapsulated in the packet switching device, the steps as Figure 11 shown can be executed by a processor in the packet switching device, or a chip, or a chip system, or a functional module for receiving, etc.

[0120] The division of units in the embodiments of the present application is illustrative, merely a logical function division. In actual implementation, there may be other division methods. In addition, each functional unit in the various embodiments of the present application can be integrated in one processor, or exist separately physically, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0121] The embodiments of the present application further provide another network device structure. As Figure 13As shown, the network device 1300 may include a communication interface 1310, a processor 1320, and a memory 1330. The network device may be a packet switching device including multiple communication single boards.

[0122] When applied to a communication single board, the receiving unit 1101, the processing unit 1102, and the sending unit 1103 shown above Figure 11 can all be implemented by the processor 1320. The processor 1320 receives service data sent by an OTN device or a packet switching device through the communication interface 1310 and is used to implement Figure 5 or Figure 9 the method executed by the communication single board described in Figure 5 or Figure 9 the method executed by the communication single board described in

[0123] When applied to a packet switching device, the receiving unit 1201, the switching processing unit 1202, and the sending unit 1203 shown above Figure 12 can be implemented by the processor 1320. The processor 1320 receives service data through the communication interface 1310 and is used to implement Figure 5 or Figure 9 the method executed by the packet switching device described in Figure 5 or Figure 9 the method executed by the packet switching device described in

[0124] In an embodiment of the present application, the communication interface 1310 may be a circuit, a bus, a transceiver, or any other device that can be used for information interaction. Among them, exemplarily, the other device may be a device connected to the network device 1300. For example, when the network device 1300 is applied to a communication single board, the other device may be a packet switching device or an OTN device.

[0125] In an embodiment of the present application, the processor 1320 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software units in the processor. The program code executed by the processor 1320 for implementing the above method may be stored in the memory 1330. The memory 1330 and the processor 1320 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be electrical, mechanical or other forms, for information interaction between devices, units or modules. The processor 1320 may cooperate with the memory 1330. The memory 1330 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or may also be a volatile memory, such as a random-access memory (RAM). The memory 1330 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. Among them, the memory 1330 may be applied to the network device 1300 in the form of an external attachment.

[0126] In the embodiments of the present application, the specific connection medium between the communication interface 1310, the processor 1320 and the memory 1330 is not limited. In the embodiments of the present application Figure 13 it is shown that the memory 1330, the processor 1320 and the communication interface 1310 are connected through a bus. The bus is Figure 13 shown as a thick line in the figure. The connection manners between other components are only for illustrative purposes and are not to be construed as limiting. The bus may be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 13 only one thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0127] Based on the above embodiments, the embodiments of the present application further provide a computer storage medium. The storage medium stores a software program, and when the software program is read and executed by one or more processors, the methods provided in any one or more of the above embodiments can be implemented. The computer storage medium may include: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disc.

[0128] Based on the above embodiments, an embodiment of the present application further provides a chip. The chip includes a processor for implementing the functions involved in any one or more of the above embodiments, such as obtaining or processing the data frames involved in the above method. Optionally, the chip further includes a memory for storing the necessary program instructions and data for the processor to execute. The chip may be composed of a chip or may include a chip and other discrete devices.

[0129] It should be understood that the embodiments of the present application may be provided as a method, a system, or a computer program product. Therefore, the present application may adopt a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0130] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the specified functions in Figure 1 one or more of the flows Figure 1 or blocks.

[0131] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means. The instruction means implements the specified functions in Figure 1 one or more of the flows Figure 1 or blocks.

[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the specified functions in Figure 1 one or more of the flows Figure 1 or blocks.

[0133] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these changes and modifications.

Claims

1. A method for transmitting service data, characterized in that, Applied to multiple communication single boards, including: The multiple communication single boards respectively receive the same OTN data frames sent by an optical transport network (OTN) device; Each of the communication single boards demaps and decapsulates the OTN data frames to obtain corresponding packet service messages; Send the packet service messages on a first communication single board to a packet switching device, where the first communication single board is a communication single board that transmits the OTN data frames in a working state among the multiple communication single boards.

2. The method according to claim 1, wherein The sending the packet service messages on the first communication single board to the packet switching device includes: Set the state of the virtual port allocated for transmitting the packet service messages on the first communication single board to working, and send the packet service messages to the packet switching device through the virtual channel corresponding to the virtual port; and, Set the state of the virtual port allocated for transmitting the packet service messages on each second communication single board to blocked, where the second communication single board is a communication single board that transmits the OTN data frames in a protection state among the multiple communication single boards.

3. The method according to claim 2, characterized in that The method further includes: Receive a first signal sent by the packet switching device through the first communication single board, and receive second signals sent by the packet switching device through each of the second communication single boards respectively, where the first signal and the second signals are determined by the packet switching device according to the service states of transmitting the OTN data frames on the multiple communication single boards; Wherein, the first signal is used to set the state of the virtual port allocated for transmitting the packet service messages on the first communication single board to working, and the second signal is used to set the state of the virtual port allocated for transmitting the packet service messages on the second communication single board to blocked.

4. The method according to claim 2 or 3, characterized in that, Determine the virtual channel corresponding to the virtual port in the following manner: Determine the logical port corresponding to the virtual port, and determine the corresponding physical port in the channelized bus after port mapping of the logical port, where each of the physical ports respectively corresponds to a virtual channel in the channelized bus; or, Determine the virtual channel identifier allocated for the virtual port, add the virtual channel identifier to the packet service message, and determine the virtual channel for transmitting the packet service message in the channelized bus through the virtual channel identifier.

5. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If the first communication single board detects an abnormality in the service state of transmitting the OTN data frames, change the destination second communication single board from the protection state to the working state, where the destination second communication single board is any one of the multiple second communication single boards; and, Change the first communication single board from the working state to the protection state.

6. The method according to claim 5, characterized in that The changing the destination second communication single board from the protection state to the working state includes: The first communication single board notifies the packet switching device of the abnormality, so that after receiving the notification, the packet switching device controls the destination second communication single board to change from the protection state to the working state.

7. The method according to claim 5, wherein The changing the destination second communication single board from the protection state to the working state includes: The first communication board notifies the abnormal situation to the destination second communication board, so that after receiving the notification, the destination second communication board changes from the protection state to the working state.

8. The method according to claim 5, characterized in that, The method further includes: If the destination second communication board detects an abnormality in the first communication board, it changes from the protection state to the working state.

9. The method according to claim 8, characterized in that, The destination second communication board detecting an abnormality in the first communication board includes: If the destination second communication board receives a control signal sent by the packet switching device, it determines that the first communication board has an abnormality, where the control signal is generated after the packet switching device receives the abnormality notification from the first communication board; or, If the destination second communication board receives an abnormality notification sent by the first communication board, it determines that the first communication board has an abnormality.

10. A method for transmitting service data, characterized in that, Applied to a packet switching device, it includes: Receiving packet service messages sent by a first communication board among multiple communication boards, where the first communication board is the communication board that transmits OTN data frames in the working state among the multiple communication boards, the packet switching device is respectively connected to the multiple communication boards, and the packet service messages are obtained after each of the multiple communication boards demaps and decapsulates the same OTN data frame sent by the OTN device. Performing packet switching processing on the packet service messages.

11. The method according to claim 10, wherein The receiving packet service messages sent by a first communication board among multiple communication boards includes: Receiving the packet service messages sent by the first communication board through a virtual channel, where the virtual channel corresponds to the virtual port allocated for transmitting the packet service messages on the first communication board, the state of the virtual port on the first communication board is working, and the state of the virtual port on each second communication board is blocked, and the second communication board is the communication board that transmits OTN data frames in the protection state among the multiple communication boards.

12. The method according to claim 11, wherein The method further includes: Determining the service states of the OTN data frames transmitted on the multiple communication boards; Selecting the OTN data frames transmitted by the first communication board from at least one communication board with a normal service state and determining them as in the working state, and sending a first signal to the first communication board, where the first signal is used to set the state of the virtual port allocated for transmitting the packet service messages on the first communication board to working; Determining the OTN data frames transmitted by at least one second communication board other than the first communication board as in the protection state, and sending a second signal to each second communication board respectively, where the second signal is used to set the state of the virtual port allocated for transmitting the packet service messages on the second communication board to blocked.

13. The method according to claim 11 or 12, characterized in that, After receiving the packet service messages sent by the first communication board through the virtual channel, the method further includes: Determine the physical port corresponding to the received packet service message in the channelized bus, obtain the logical port after performing port reverse mapping on the physical port, and determine the virtual port corresponding to the logical port; send the packet service message to be processed with the virtual port; or, Determine the virtual channel identifier added to the packet service message, and send the packet service message to the virtual port corresponding to the virtual channel identifier for processing.

14. The method according to any one of claims 10 to 12, characterized in that, The method further includes: Receive the notification sent by the first communication board that the service status of transmitting the OTN data frame detected by the first communication board is abnormal; Control the destination second communication board to change from the protection state to the working state, where the destination second communication board is any one of the multiple second communication boards.

15. The method according to claim 14, characterized in that The controlling the destination second communication board to change from the protection state to the working state includes: Send a control signal to the destination second communication board, so that after the destination second communication board receives the control signal, it determines that the first communication board is abnormal.

16. A method for transmitting service data, characterized in that Applied to a packet switching device, it includes: After performing packet switching processing on the packet service message, determine the destination OTN device corresponding to the packet service message; Send the packet service message to multiple communication boards respectively, so that after the multiple communication boards encapsulate and map the packet service message to obtain OTN data frames, they respectively send the OTN data frames to the destination OTN device, and the destination OTN device receives the same OTN data frames respectively sent by the multiple communication boards.

17. The method according to claim 16, wherein Sending the packet service message to multiple communication boards respectively includes: Determine the multicast group corresponding to the packet service message, the multicast group includes multiple multicast members, and each multicast member corresponds to one of the multiple communication boards; After multicasting the packet service message to each multicast member, determine the virtual port allocated for transmitting the packet service message for each multicast member; Send the packet service message to each communication board through the virtual channel corresponding to the virtual port.

18. The method according to claim 17, wherein Determine the virtual channel corresponding to the virtual port in the following manner: Determine the logical port corresponding to the virtual port, and after performing port mapping on the logical port, determine the physical port corresponding to it in the channelized bus, where each physical port corresponds to a virtual channel in the channelized bus; or, Determine the virtual channel identifier allocated for the virtual port, add the virtual channel identifier to the packet service message, and determine the virtual channel for transmitting the packet service message in the channelized bus through the virtual channel identifier.

19. The method according to claim 17 or 18, characterized in that, The method further includes: Receive the flow control information sent by the third communication board, where the third communication board is any one of the multiple communication boards, and the flow control information is used to indicate that the number of packet service messages received by the third communication board through the virtual channel exceeds the message quantity threshold; Reduce the number of packet service messages sent through the virtual channel according to the flow control information.

20. A method for transmitting service data, characterized in that, Applied to multiple communication boards, it includes: Each of the communication single boards receives the packet service message sent by the packet switching device; On each of the communication single boards, the packet service message is encapsulated and mapped to obtain an OTN data frame; Each of the communication single boards respectively sends the obtained OTN data frame to the destination OTN device, so that the destination OTN device receives the same OTN data frames respectively sent by multiple communication single boards. The destination OTN device is determined according to the packet service message after the packet switching device performs packet switching processing on the packet service message.

21. The method according to claim 20, wherein The communication single board receiving the packet service message sent by the packet switching device includes: Receiving the packet service message sent by the packet switching device through the virtual channel corresponding to the virtual port, where the virtual port is allocated by the packet switching device for each multicast member to transmit the packet service message, and the multicast member is determined according to the packet service message.

22. The method according to claim 21, wherein After receiving the packet service message sent by the packet switching device through the virtual channel, the method further includes: Determining the physical port for receiving the packet service message in the channelized bus, performing port demapping on the physical port to obtain a logical port, and determining the virtual port corresponding to the logical port; sending the packet service message to the virtual port for processing; or, Determining the virtual channel identifier added in the packet service message, and sending the packet service message to the virtual port corresponding to the virtual channel identifier for processing.

23. The method according to claim 21 or 22, characterized in that, The method further includes: If the third communication single board determines that the number of packet service messages received through the virtual channel exceeds the message number threshold, it sends flow control information to the packet switching device, so that the packet switching device reduces the number of packet service messages sent through the virtual channel according to the flow control information. The third communication single board is any one of the multiple communication single boards.

24. A chip, characterized in that, Including: A processor and a communication interface, The communication interface is used for inputting and / or outputting information; The processor is used for executing a computer program to cause the method described in any one of claims 1-9 to be executed, or to cause the method described in any one of claims 20-23 to be executed.

25. A chip, characterized in that, Including: A processor and a communication interface, The communication interface is used for inputting and / or outputting information; The processor is used for executing a computer program to cause the method described in any one of claims 10-15 to be executed, or to cause the method described in any one of claims 16-19 to be executed.

Citation Information

Patent Citations

  • Method and device for protecting Ethernet link in optical transmission network

    CN111083580A

  • Method for supporting SNCP over packet network

    US20120263453A1