WO2022111323A1 - Signal frame processing method and related device - Google Patents

Signal frame processing method and related device Download PDF

Info

Publication number
WO2022111323A1
WO2022111323A1 PCT/CN2021/130638 CN2021130638W WO2022111323A1 WO 2022111323 A1 WO2022111323 A1 WO 2022111323A1 CN 2021130638 W CN2021130638 W CN 2021130638W WO 2022111323 A1 WO2022111323 A1 WO 2022111323A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal frame
block
data block
mapping relationship
receiving device
Prior art date
Application number
PCT/CN2021/130638
Other languages
French (fr)
Chinese (zh)
Inventor
葛金亮
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022111323A1 publication Critical patent/WO2022111323A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received

Definitions

  • the embodiments of the present application relate to the field of optical communications, and in particular, to a signal frame processing method and related devices.
  • Optical transport network is an extremely important hard-pipe transmission technology, which has the characteristics of high bandwidth, large capacity, and high flexibility.
  • service data can be mapped to a flexible optical service unit (OSUflex, flexible optical service unit) with a smaller granularity, and then transmitted through an optical service unit (OSU, optical service unit) pipeline.
  • OSUflex flexible optical service unit
  • OSU optical service unit
  • the service data of each service is respectively transmitted to an optical data unit (ODU, optical data unit) through an OSU pipeline for bearing.
  • ODU optical data unit
  • the service 4 that needs to occupy a bandwidth of 600M needs to be connected to the ODU0, because the remaining bandwidth of the ODU0-2 is 400M, the ODU0-2 cannot directly bear the service 4.
  • the service 2 that occupies 400M bandwidth can be disconnected and switched to ODU0-1 with the remaining bandwidth of 400M for carrying.
  • the remaining bandwidth of ODU0-2 is 800M.
  • ODU0-2 can carry service 4 that occupies 600M bandwidth.
  • the user experience is affected because the service will be disconnected.
  • Embodiments of the present application provide a signal frame processing method and related equipment, which are used to avoid service interruption and affect user experience when switching service transmission channels.
  • an embodiment of the present application provides a method for processing a signal frame.
  • the receiving device and the sending device of the same service transmit signal frames through a transmission channel.
  • the following steps are performed: First, another transmission channel between the receiving device and the sending device is established. Further, signal frames can be transmitted between the receiving device and the transmitting device through two transmission channels.
  • the two transmission channels are respectively named as "first transmission channel” and "second transmission channel” to distinguish.
  • the first transmission channel and the second transmission channel mentioned in this application refer to two different transmission channels of the same service.
  • the first transmission channel may refer to a working transmission channel, or may be a newly created transmission channel.
  • the second transmission channel mentioned in this application may refer to a newly-built transmission channel, or may be a working transmission channel.
  • the receiving device receives a first signal frame from the sending device through the first transmission channel, where the first signal frame includes a first data block and a first check block. And, the receiving device receives the second signal frame from the transmitting device through the second transmission channel, and the second signal frame includes the second data block.
  • the first data block and the second data block are used to carry service data. There is a mapping relationship between the first check block and the second signal frame.
  • the receiving device After receiving the first signal frame and the second signal frame from different transmission channels, the receiving device can complete the connection between the first signal frame and the second signal frame through the mapping relationship between the first check block and the second signal frame , and determine the arrangement order between the first signal frame and the second signal frame. At this time, outputting the first check block is meaningless for service data. Therefore, the receiving device can arrange the first data block and the second data block according to the above-mentioned arrangement order to obtain the target signal frame. Since the order in which the sending device sends the first signal frame and the second signal frame is based on the order of the service data, the order of the first data block and the second data block in the target signal frame is the same as that of the first signal frame. The same as the transmission sequence of the second signal frame.
  • only one transmission channel can transmit service data between the receiving device and the sending device of the same service.
  • another transmission channel between the receiving device and the sending device may be created first, and then the receiving device and the sending device of the same service can transmit services through the two transmission channels data.
  • the receiving device After receiving the service data from different transmission channels, the receiving device can sort the service data according to the original service order.
  • the transmission channel needs to be switched, after disconnecting one of the transmission channels, there is still a transmission channel reserved between the receiving device and the sending device. Therefore, the service data can also continue to be transmitted through the undisconnected transmission channel, which avoids service interruption and improves user experience.
  • the second signal frame may further include a second check block.
  • the first check block in the first signal frame and the second check block in the second signal frame have a first mapping relationship.
  • the receiving device can complete the mutual search between the first check block and the second check block through the first mapping relationship, and sort the first data block and the second data block.
  • the first check block and the second check block do not carry service data, so less bandwidth resources are required for transmitting the first check block and the second check block.
  • the receiving device completes the sorting of the first data block and the second data block through the first check block and the second check block, which can reduce the occupation of network resources.
  • the first check block carries the same service data as the second data block, that is, the payload of the first check block is equal to the payload of the second data block, and at the same time , a second mapping relationship exists between the first check block and the second data block.
  • the receiving device may determine an arrangement order between the first signal frame and the second signal frame through the second mapping relationship, and sort the first data block and the second data block according to the arrangement order.
  • the service data carried in the first check block It can still be used for the output of business data, which improves the reliability of the solution.
  • a first mapping relationship and a second mapping relationship may exist simultaneously between the first signal frame and the second signal frame. That is, the receiving device can first search for the first check block corresponding to the second check block according to the first mapping relationship, and then search for the second data block corresponding to the first check block according to the second mapping relationship to complete the first data block. with the ordering of the second data block.
  • the first mapping relationship and the second mapping relationship may exist between the signal frames at the same time, which provides more implementation manners for searching the first signal frame and the second signal frame.
  • the receiving device and the sending device when the first transmission channel or the second transmission channel is disconnected, since there is still a transmission channel between the receiving device and the sending device, the receiving device and the sending device still have one transmission channel. Between devices, the subsequent third signal frame can still be transmitted through the undisconnected transmission channel.
  • the third signal frame is used to represent the signal frame transmitted after the first signal frame and the second signal frame.
  • the service data may continue to be transmitted through the undisconnected transmission channel, thereby avoiding service interruption and improving user experience.
  • the first mapping relationship may be: the payload of the first check block is the same as the payload of the second check block.
  • the first mapping relationship may be: the payload of the specific area of the first parity block is the same as the payload of the specific area of the second parity block.
  • the first mapping relationship may be: the value of the valid value field in the first check block is equal to the cyclic redundancy check (CRC, cyclic redundancy check) of the second check block Checksum.
  • CRC cyclic redundancy check
  • the second mapping relationship may be: the value of the valid value range in the first check block is equal to the checksum of the CRC algorithm of the second data block.
  • an embodiment of the present application provides a method for processing a signal frame.
  • the receiving device and the sending device of the same service transmit signal frames through a transmission channel.
  • the following steps are performed: First, another transmission channel between the receiving device and the sending device is established. Further, signal frames can be transmitted between the receiving device and the transmitting device through two transmission channels.
  • the sending device sends a first signal frame to the receiving device through the first transmission channel, where the first signal frame includes a first data block and a first check block. And, the receiving device receives the second signal frame from the transmitting device through the second transmission channel, and the second signal frame includes the second data block.
  • the first data block and the second data block are used to carry service data.
  • only one transmission channel can transmit service data between the receiving device and the sending device of the same service.
  • another transmission channel between the receiving device and the sending device may be created first, and then the receiving device and the sending device of the same service can transmit services through the two transmission channels data.
  • the receiving device After receiving the service data from different transmission channels, the receiving device can sort the service data according to the original service order.
  • the transmission channel needs to be switched, after disconnecting one of the transmission channels, there is still a transmission channel reserved between the receiving device and the sending device. Therefore, the service data can also continue to be transmitted through the undisconnected transmission channel, which avoids service interruption and improves user experience.
  • the second signal frame may further include a second check block.
  • the first check block in the first signal frame and the second check block in the second signal frame have a first mapping relationship.
  • the receiving device can complete the mutual search between the first check block and the second check block through the first mapping relationship, and sort the first data block and the second data block.
  • the first check block and the second check block do not carry service data, so less bandwidth resources are required for transmitting the first check block and the second check block.
  • the receiving device completes the sorting of the first data block and the second data block through the first check block and the second check block, which can reduce the occupation of network resources.
  • the first check block carries the same service data as the second data block, that is, the payload of the first check block is equal to the payload of the second data block, and at the same time , a second mapping relationship exists between the first check block and the second data block.
  • the receiving device may determine an arrangement order between the first signal frame and the second signal frame through the second mapping relationship, and sort the first data block and the second data block according to the arrangement order.
  • the service data carried in the first check block It can still be used for the output of business data, which improves the reliability of the solution.
  • the receiving device and the sending device when the first transmission channel or the second transmission channel is disconnected, since there is still a transmission channel between the receiving device and the sending device, the receiving device and the sending device still have one transmission channel. Between devices, the subsequent third signal frame can still be transmitted through the undisconnected transmission channel.
  • the third signal frame is used to represent the signal frame transmitted after the first signal frame and the second signal frame.
  • the service data may continue to be transmitted through the undisconnected transmission channel, thereby avoiding service interruption and improving user experience.
  • mapping relationship between the first check block and the second signal frame is provided.
  • an embodiment of the present application provides a receiving device.
  • the receiving device includes: a receiving unit and a processing unit.
  • the receiving unit is configured to receive a first signal frame from a sending device through a first transmission channel, where the first signal frame includes a first data block and a first check block.
  • the receiving unit is further configured to receive a second signal frame from the sending device through the second transmission channel, where the second signal frame includes a second data block, and the first check block and the second signal frame have a mapping relationship.
  • a processing unit configured to sort the first data block and the second data block according to the mapping relationship to obtain a target signal frame, and the arrangement order of the first data block and the second data block is equal to the the sending sequence of the first signal frame and the second signal frame.
  • the second signal frame further includes a second check block
  • a mapping relationship between the first check block and the second signal frame includes: the first check block A check block and the second check block have a first mapping relationship.
  • the payload of the first check block is equal to the payload of the second data block
  • the first check block and the second signal frame exist
  • the mapping relationship includes: a second mapping relationship exists between the first check block and the second data block.
  • the processing unit is specifically configured to determine the first check block corresponding to the second check block according to the first mapping relationship; according to the second mapping The relationship determines the second data block corresponding to the first check block; and sorts the first data block and the second data block.
  • the receiving unit is specifically configured to receive data from the sending device through the undisconnected transmission channel when the first transmission channel or the second transmission channel is disconnected
  • the third signal frame is a signal frame transmitted after the first signal frame and the second signal frame.
  • mapping relationship between the first check block and the second signal frame is provided.
  • an embodiment of the present application provides a sending device.
  • the sending device includes a first sending unit and a second sending unit.
  • the first sending unit is configured to send a first signal frame to the receiving device through a first transmission channel, where the first signal frame includes a first data block and a first check block.
  • a second sending unit configured to send a second signal frame to the receiving device through the second transmission channel, where the second signal frame includes a second data block.
  • There is a mapping relationship between the first check block and the second signal frame and the mapping relationship is used by the receiving device to sort the first data block and the second data block to obtain a target signal frame,
  • the arrangement order of the first data block and the second data block is equal to the transmission order of the first signal frame and the second signal frame.
  • the second signal frame further includes a second check block
  • a mapping relationship between the first check block and the second signal frame includes: the first check block A check block and the second check block have a first mapping relationship.
  • the payload of the first check block is equal to the payload of the second data block
  • the first check block and the second signal frame exist
  • the mapping relationship includes: a second mapping relationship exists between the first check block and the second data block.
  • the sending unit is further configured to, when the first transmission channel or the second transmission channel is disconnected, send an The receiving device sends a third signal frame, where the third signal frame is a signal frame transmitted after the first signal frame and the second signal frame.
  • mapping relationship between the first check block and the second signal frame is provided.
  • an embodiment of the present invention provides a chip.
  • the chip includes a processor and a transceiving interface, the transceiving interface and the processor are connected to each other through a line, and the transceiving interface is used to perform the steps related to the transceiving of the signal frame shown in the first aspect above.
  • the processor is configured to execute the processing-related steps shown in the first aspect above.
  • an embodiment of the present invention provides a chip.
  • the chip includes a processor and a transceiving interface, the transceiving interface and the processor are connected to each other through a line, and the transceiving interface is used to perform the steps related to the transceiving of the signal frame shown in the first aspect above.
  • the processor is configured to execute the processing-related steps shown in the first aspect above.
  • an embodiment of the present application provides an optical network device.
  • Optical transmission equipment includes: chips and optical transceivers. Wherein, the chip and the optical transceiver are connected to each other through a line, and the chip is used for executing the signal frame processing method shown in the first aspect or any embodiment of the first aspect.
  • an embodiment of the present application provides an optical network device.
  • Optical transmission equipment includes: chips and optical transceivers. Wherein, the chip and the optical transceiver are connected to each other through a line, and the chip is used for executing the signal frame processing method shown in the second aspect or any embodiment of the second aspect.
  • an embodiment of the present application provides an optical network system.
  • the optical network system includes the receiving device of the third aspect and the sending device of the fourth aspect.
  • the receiving device in the optical network system may perform the first aspect and any one of the possible implementation methods of the first aspect; the sending device in the optical network system may perform any one of the second aspect and the second aspect. method of implementation.
  • Fig. 1 is an application scenario diagram in the existing OTN network
  • FIG. 2 is a schematic diagram of transmission channel switching in an existing OTN network
  • FIG. 3 is a schematic structural diagram of an optical transmission system applied in an embodiment of the present application.
  • Fig. 4 is a kind of hardware structure schematic diagram of OTN equipment
  • FIG. 6 is a schematic structural diagram of a data block and a check block in the application.
  • FIG. 7 is an application scenario diagram of a transmission channel switching provided by the present application.
  • FIG. 8 is a schematic diagram of an embodiment of a method for processing a signal frame in the present application.
  • FIG. 9 is a schematic diagram of the mapping relationship between the first check block and the second check block in this application.
  • FIG. 10 is a schematic diagram of a sorting of the first data block and the second data block in the embodiment of the present application;
  • FIG. 11 is another schematic diagram of sorting the first data block and the second data block in an embodiment of the present application.
  • FIG. 12 is another schematic diagram of sorting the first data block and the second data block in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of still another sorting of the first data block and the second data block in the embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of an embodiment of a receiving device in an embodiment of the application.
  • FIG. 15 is an exemplary structural diagram of an embodiment of a sending device in an embodiment of the application.
  • FIG. 16 is a schematic structural diagram of a possible optical transmission device in an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • Embodiments of the present application provide a signal frame processing method and related equipment, which are used to avoid service interruption when a transmission channel needs to be switched.
  • the embodiments of the present application are applicable to an optical network, for example, an optical transport network (OTN, optical transport network) or a flexible Ethernet (FlexE, flex Ethernet).
  • OTN optical transport network
  • FlexE flexible Ethernet
  • the optical transport network is usually formed by connecting multiple devices through optical fibers, and can be formed into different topology types such as linear, ring, or mesh according to specific needs.
  • FIG. 3 is a schematic diagram of a network architecture applicable to this embodiment of the present application.
  • the OTN shown in FIG. 3 includes two OTN networks (respectively OTN network 1 and OTN network 2).
  • Each OTN network includes a certain number of OTN devices (indicated by N in FIG. 3 ).
  • the links between devices in the OTN network are intra-domain links, and the links between devices between OTN networks are inter-domain links.
  • an OTN device may have one or more functions.
  • OTN devices are divided into optical layer devices, electrical layer devices and optoelectronic hybrid devices.
  • An optical layer device refers to a device capable of processing optical layer signals, such as an optical amplifier (OA, optical amplifier).
  • OA optical amplifier
  • the electrical layer device refers to a device capable of processing electrical layer signals, for example, a device capable of processing ODU signals.
  • An optoelectronic hybrid device refers to a device capable of processing optical layer signals and electrical layer signals. It should be noted that, according to specific integration needs, one OTN device can integrate a variety of different functions. The technical solutions provided in this application are applicable to OTN devices of different shapes and degrees of integration.
  • FIG. 4 is a schematic diagram of a hardware structure of an OTN device.
  • the OTN device includes a power supply 401, a fan 402, an auxiliary board 403, and may also include a tributary board 404, a circuit board 405, a cross board 406, an optical layer processing board (not shown in the figure), and a system control board and communication board 407.
  • a network device that is a core node may not have tributary board 404 .
  • a network device that is an edge node may have multiple tributary boards 404 .
  • the power source 401 is used to supply power to the device, and may include main and backup power sources.
  • the Fan 402 is used to dissipate heat from the device.
  • the auxiliary board 403 is used to provide auxiliary functions such as external alarms or access to an external clock.
  • the tributary board 404, the cross board 406 and the circuit board 405 are mainly used for processing electrical layer signals of the optical network (eg, the first signal frame and the second signal frame in this application). Among them, the tributary board 404 is used to realize the reception and transmission of various customer services, such as packet services, Ethernet services, and fronthaul services. Further, the tributary board 404 can be divided into client-side optical modules and processors.
  • the client-side optical module may be an optical transceiver for receiving and/or transmitting client signals.
  • the processor is used to implement the mapping and demapping processing of the client signal to the electrical layer signal.
  • the cross board 406 is used to realize the exchange of electrical layer signals, and complete the exchange of one or more types of electrical layer signals.
  • the circuit board 405 mainly implements the processing of electrical layer signals on the circuit side. Specifically, the circuit board 405 can be divided into a line-side optical module and a processor.
  • the line-side optical module may be a line-side optical transceiver for receiving and/or transmitting electrical layer signals.
  • the processor is used to implement multiplexing and demultiplexing, or mapping and de-mapping processing of electrical layer signals on the line side.
  • the system control and communication board 407 is used to implement system control and communication.
  • information can be collected from different boards through the backplane, or control instructions can be sent to the corresponding board.
  • control instructions can be sent to the corresponding board.
  • the embodiments of the present application do not impose any restrictions on the types of boards included in the device, and the specific functional design and quantity of the boards.
  • the signal frame processing method of the present application may be specifically implemented on the circuit board 405, or the tributary circuit board 404 and the circuit board 405 may be integrated to implement the signal frame processing method of the present application.
  • FIG. 5 is a schematic structural diagram of a possible signal frame in the present application.
  • a signal frame for example, an optical payload unit k (optical payload unit k, OPUk) frame 501
  • PB payload block
  • the payload block 5011 includes an overhead area and a payload area, and the payload area is used to carry service data, which is then carried in the OPUk 501 through a channel identifier (tributary port number, TPN).
  • TPN tributary port number
  • the check block 601 provided in the embodiment of the present application is a special payload block.
  • the check block 601 itself may not carry service data (it may also carry service data, for details, please refer to the description of the subsequent embodiments).
  • a special identifier 6011 exists in the overhead area in the check block 601, which is used to distinguish the check block 601 from the payload block carrying service data.
  • a payload block carrying service data is referred to as a data block
  • a payload block containing a special identifier is referred to as a check block.
  • the receiving device needs to search for other signal frames that have a mapping relationship with the signal frame first.
  • the check block in the signal frame may have this mapping relationship.
  • the receiving device may complete the mutual search between signal frames through the above-mentioned mapping relationship.
  • the data blocks 602 carrying the service data in the signal frame are sorted to obtain the target signal frame arranged according to the original service data sequence.
  • FIG. 7 is an application scenario diagram of the present application.
  • the transmission channel needs to be switched, another transmission channel between the sending device and the receiving device may be established first, and then the sending device and the receiving device of the same service can pass through the two transmission channels.
  • a transmission channel is established to establish a connection.
  • the sending device sends signal frames to the receiving device through two transmission channels.
  • the receiving device After receiving the signal frames from two different transmission channels, the receiving device can splicing different signal frames according to the order of service data through the mapping relationship between the signal frames to obtain the target signal frame.
  • the receiving device can splicing different signal frames according to the order of service data through the mapping relationship between the signal frames to obtain the target signal frame.
  • the receiving device may search for each other through the first check block in the first signal frame and the second check block in the second signal frame to complete the data block. sorting between. It is also possible to perform mutual search between the check block in the first signal frame and the data block in the second signal frame to complete the sorting between the data blocks.
  • the first check block and the second check block search each other to complete the sorting of the data blocks.
  • FIG. 8 is a schematic diagram of an embodiment of a method for processing a signal frame in the present application.
  • the processing method of the signal frame includes the following steps.
  • the corresponding transmission channel is an OSU pipe.
  • a service transmits service data through an OSU pipe
  • another new OSU pipe with the same bandwidth as the original service can be created to connect the service sending device and receiving device.
  • first transmission channel and the second transmission channel described in this application are two different transmission channels of the same service.
  • first transmission channel or the second transmission channel may refer to a working transmission channel, or may be a newly created transmission channel.
  • the embodiments of the present application are described by taking the currently working transmission channel as the first transmission channel as an example.
  • the newly established transmission channel is used as the second transmission channel.
  • the sending device sends the first signal frame to the receiving device through the first transmission channel
  • the first signal frame sent by the sending device may include a first data block and a first check block.
  • the data block is used to carry service data.
  • the check block is a special data block, and the check block itself may not carry service data.
  • the present application does not limit the number of the first data blocks.
  • the first data block may refer to one data block, or may be a collective term for multiple data blocks included in the first signal frame.
  • the present application uses the first data block as a general term for the No. 1 data block and No. 2 data block for description.
  • the present application also does not limit the number of second data blocks.
  • this application uses the second data block as a general term for the No. 3 data block and the No. 4 data block for description.
  • the sending device sends a second signal frame to the receiving device through the second transmission channel
  • the second signal frame may include a second data block and a second check block.
  • the first check block is named C code
  • the second check block is named S code.
  • the order in which the sending device sends the first signal frame and the second signal frame is sent according to the original order of the service data.
  • the C code can be sent after the No. 2 data block and the No. 1 data block. That is, in the first signal frame at this time, the positional relationship between the check block and the data block may be (C, 2, 1).
  • the S code can be sent before the No. 4 data block and the No. 3 data block, that is, in the second signal frame, the positional relationship between the check block and the data block can be (4, 3, S ).
  • the above-mentioned first check block has a mapping relationship with the second check block in the second signal frame. Specifically, after the receiving device receives the first check block and the second check block, the receiving device can search for each other between the first check block and the second check block through the mapping relationship.
  • FIG. 9 is a schematic diagram of a partial mapping relationship between check blocks provided by an embodiment of the present application. As shown in Figure 9, the present application provides the following mapping relationships between check blocks.
  • A The payload of C code is the same as that of S code;
  • C The value of the effective value field (Value field) of the C code is the cyclic redundancy check (CRC, cyclic redundancy check) checksum of the S code.
  • CRC cyclic redundancy check
  • the Value area of the S code carries the secret key
  • the value of the Value area of the C code is the value calculated by using the secret key in the S code combined with the encryption algorithm.
  • the specific encryption algorithm method is not limited in this application.
  • the value of the Value area of the C code is the CRC checksum of a data block following the S code.
  • the specific CRC algorithm method is not limited in this application.
  • the value area of the S code carries the secret key
  • the value of the value area of the C code is the value calculated by using the secret key in the S code combined with the encryption algorithm.
  • the encrypted original data is the value of a data block after the S code.
  • mapping relationship is only an example. In practical applications, other mapping relationships may also be used. Its function is to enable the receiving device to search for the corresponding check block through the mapping relationship, thereby splicing the signal frame.
  • the receiving device sorts the first data block and the second data block to obtain a target signal frame
  • the receiving device when it receives the first signal frame and the second signal frame, it can map the first signal frame according to the mapping relationship. frame and the second signal frame to search. The first data block and the second data block are sorted according to the initial service data sequence to obtain the target signal frame.
  • the receiving device can implement a two-way search between check blocks based on the mapping relationship. That is, the C code can be searched through the S code, and the S code can also be searched through the C code.
  • a one-way search manner of searching for a C code by using an S code is used as an example for description.
  • the sending device sends the first signal frame and the second signal frame according to the initial sequence of the service data.
  • the receiving device will receive different timings of the first signal frame and the second signal frame.
  • the receiving device when the delay of the first transmission channel is greater than that of the second transmission channel, the receiving device will first receive the second signal frame from the second transmission channel, including the No. 3 data block and No. 4 data block and size S. After the receiving device receives the S code, it will start to search for the corresponding C code. However, at this time, the C code has not yet arrived due to the large delay of the first transmission channel. After the receiving device receives the No. 1 data block, the No. 2 data block and the C code from the first transmission channel, the receiving device can find the C code corresponding to the S code through the mapping relationship.
  • the receiving device can determine that the first signal frame (C, 2, 1) and the second signal frame (4, 3, S) belong to the data of the same service. At this time, the receiving device aligns the first signal frame and the second signal frame according to the C code and the S code, and then sorts them to obtain (4, 3, S, C, 2, 1). Meanwhile, in this embodiment, the function of the check block is to assist the first data block and the second data block to complete sorting, and the check block does not carry service data. Therefore, the C code and S code output by the receiving device are meaningless, that is, in the target signal frame, the existence of the check block is not required, and the target signal frame only includes the data block (4, 3, 2, 1).
  • the receiving device since the target signal frame obtained by the receiving device sorting the first data block and the second data block includes complete and correctly ordered service data, the receiving device can output the target signal frame.
  • the receiving device when the delay of the second transmission channel is greater than that of the first transmission channel, the receiving device will first receive the first signal frame from the first transmission channel, including the No. 1 data block and No. 2 data block and C code. Since the present application takes the one-way search method of searching for the C code from the S code as an example, after the receiving device first receives the C code, it still needs to wait for the S code to be received. After the receiving device receives the No. 3 data block, the No. 4 data block and the S code from the second transmission channel, the receiving device can use the S code to find the corresponding C code through the mapping relationship. For a specific way of sorting the first data block and the second data block, reference may be made to the description of the scenario A in step 804, which will not be repeated here.
  • an appropriate buffer can be set in the receiving device to solve the impact of the delay.
  • the receiving device After the receiving device obtains the target signal frame, it indicates that the switching of service data has been completed. Between the sending device and the receiving device, subsequent service data can already be transmitted through the second transmission channel. Therefore, the original first transmission channel can be disconnected.
  • the original first transmission channel is cut off, and the newly created second transmission channel can still carry subsequent service data, so there will be no interruption of service data.
  • a new transmission channel may be created first, and the first signal frame and the second signal frame are respectively transmitted through the two transmission channels.
  • the first signal frame includes a first check block
  • the second signal frame includes a second check block.
  • the receiving device sorts the first data block and the second data block according to the mapping relationship between the first check block and the second check block to obtain the target signal frame. Since both transmission channels can carry service data between the receiving device and the sending device at this time, after the original first transmission channel is disconnected, subsequent service data can still continue to be transmitted through the second transmission channel, avoiding the need for Business data outages.
  • the first check block and the second data block search each other to complete the sorting between the data blocks.
  • the processing flow provided in this embodiment is similar to the embodiment corresponding to FIG. 8 .
  • the following describes another signal frame processing method provided by this embodiment based on FIG. 8 .
  • the processing method of the signal frame includes the following steps.
  • the sending device sends the first signal frame to the receiving device through the first transmission channel
  • the sending device sends a second signal frame to the receiving device through the second transmission channel
  • Steps 901 to 903 in this embodiment are similar to the foregoing steps 801 to 803, and details are not described here.
  • the first check block in the first signal frame and the second check block in the second signal frame There is also a mapping relationship between data blocks.
  • the mapping relationship between the check block and the data block specific reference may be made to the contents described in subsections A to G in step 803 .
  • the first check block needs to include the same service data as the second data block. That is, the data block and check block in the first signal frame are (C 4 , C 3 , 2, 1), and the data block and check block in the second signal frame are (4, 3, S, S).
  • the C 4 code is the check code of the No. 4 data block, the payload of the C 4 code is equal to the payload of the No. 4 data block; the C 3 code is the check code of the No. 3 data block, and the payload of the C 3 code is equal to 3 The payload of the numbered data block.
  • the receiving device can implement a two-way search between the check block and the data block based on the above-mentioned mapping relationship. That is, the data blocks No. 4 and 3 can be searched through the C 4 code and the C 3 code, and the C 4 code and the C 3 code can also be searched through the No. 4 and No. 3 data blocks.
  • the unidirectional search manner of searching for the No. 4 and No. 3 data blocks by using the C 4 code and the C 3 code is used as an example for description.
  • the receiving device sorts the first data block and the second data block to obtain a target signal frame
  • Step 904 is similar to step 804.
  • the receiving device may receive different timings of the first signal frame and the second signal frame.
  • the following descriptions are given in conjunction with the accompanying drawings:
  • the receiving device when the delay of the first transmission channel is greater than that of the second transmission channel, the receiving device will first receive the second signal frame from the second transmission channel, including the No. 3 data block and No. 4 data block and two S sizes.
  • the receiving device needs to start the search for the corresponding C through two S codes. 4 yards and C 3 yards. But at this time, due to the large delay of the first transmission channel, the C 4 code and the C 3 code have not yet arrived.
  • the receiving device After the receiving device receives the No. 1 data block, No. 2 data block C 4 code and C 3 code from the first transmission channel, the receiving device can find the C 4 code and C 3 code corresponding to the S code through the mapping relationship .
  • the No. 1 data block, No. 2 data block, C 4 code and C 3 code belong to the first signal frame (C 4 , C 3 , 2, 1)
  • the No. 3 data block, No. 4 data block and two S The codes all belong to the second signal frame (4, 3, S, S).
  • the receiving device can determine that the first signal frame (C 4 , C 3 , 2, 1) and the second signal frame (4, 3, S, S) belong to the same service data.
  • the receiving device Since the C4 code, the C3 code and the No.4 data block and the No.3 data block have a mapping relationship, at this time, the receiving device aligns the corresponding No.4 data block and No.3 data block according to the C4 code and the C3 code, and obtains ( 4,3 , C4 , C3, 2,1). Meanwhile, in this embodiment, the function of the check block is to assist the first data block and the second data block to complete the sorting. Therefore, the receiving device does not need to output the C 4 code and the C 3 code, that is, the target signal frame does not need the existence of the check block, and the target signal frame only includes the data block (4, 3, 2, 1).
  • the receiving device since the target signal frame obtained by the receiving device sorting the first data block and the second data block includes complete and correctly ordered service data, the receiving device can output the target signal frame.
  • the receiving device when the delay of the second transmission channel is greater than that of the first transmission channel, the receiving device will first receive the first signal frame from the first transmission channel, including the No. 1 data block and No. 2 data block , C 4 and C 3 . After receiving the C 4 code and the C 3 code first, the receiving device can directly start to search for the corresponding No. 4 data block and No. 3 data block. However, at this time, due to the large delay of the second transmission channel, the No. 4 data block and the No. 3 data block have not yet arrived. After the receiving device receives the No. 4 data block, No. 3 data block and two S codes from the second transmission channel, the receiving device can find the No. 4 data block and the No.
  • the second data block in subsection B of step 904 of this example, in the case that the receiving device receives the first signal frame first, the second data block can be directly searched through the first check block, and sorted, In this case, the check block in the second signal frame does not need to be used.
  • Steps 905 and 906 in this embodiment are similar to the foregoing steps 805 and 806, and details are not described here.
  • the first check block in the first signal frame includes service data of the second data block in the second signal frame. Therefore, when the second data block in the second signal frame occurs during the implementation of this example, When the block is lost, it can be replaced by the first check block, and the first check block is output as service data, which improves the reliability of the solution.
  • FIG. 14 is a receiving device provided by an embodiment of the present application.
  • the receiving device may be the receiving device described in any of the above-mentioned FIG. 8 , FIG. 10 to FIG. 13 .
  • the receiving device includes: a receiving unit 1401 and a processing unit 1402 .
  • the receiving unit 1401 is configured to receive a first signal frame from a sending device through a first transmission channel, where the first signal frame includes a first check block and a first data block carrying service data.
  • the receiving unit 1401 may also receive a second signal frame from the sending device through the second transmission channel, where the second signal frame includes a second data block.
  • the processing unit 1402 is configured to sort the first data block and the second data block according to the above-mentioned mapping relationship to obtain a target signal frame.
  • the order in which the sending device sends the first signal frame and the second signal frame is the same as the order of the service data. Therefore, in the obtained target signal frame, the arrangement order of the first data block and the second data block should also be equal to the first data block.
  • the transmission order of the signal frame and the second signal frame For a specific implementation manner of the function of the processing unit 1402, reference may be made to step 804 or step 904 shown in FIG. 8, and details are not repeated here.
  • mapping relationship between the first check block and the second signal frame reference may be made to the related descriptions of steps 802 to 803 and steps 902 to 903 shown in FIG. 8 , and details are not repeated here.
  • the processing unit 1402 may first search for the first check block corresponding to the second check block according to the first mapping relationship. Then, according to the second mapping relationship, a second data block corresponding to the first check block is found, and the first data block and the second data block are sorted. For a specific implementation manner, reference may be made to step 904, which will not be repeated here.
  • the receiving unit 1401 can still receive the third signal frame from the sending device through the undisconnected transmission channel.
  • the third signal frame is a signal frame transmitted after the first signal frame and the second signal frame.
  • the receiving device may perform the operations performed by the receiving device in any of the foregoing embodiments shown in FIG. 8 , and details are not repeated here.
  • FIG. 15 is a sending device provided by an embodiment of the present application.
  • the sending device may be the sending device described in any of the above-mentioned FIG. 8 and FIG. 10 to FIG. 13 .
  • the sending device includes: a first sending unit 1501 and a second sending unit 1502 .
  • the first sending unit 1501 is configured to send the first signal frame to the receiving device through the first transmission channel.
  • the first signal frame includes a first check block and a first data block carrying service data.
  • the second sending unit 1502 is configured to send a second signal frame to the receiving device through the second transmission channel, where the second signal frame includes a second data block. Meanwhile, there may be a mapping relationship between the first check block and the second signal frame.
  • the mapping relationship is used by the receiving device to sort the first data block and the second data block to obtain the target signal frame.
  • the sequence in which the sending device sends the first signal frame and the second signal frame is the same as the sequence of the service data. Therefore, in the obtained target signal frame, the arrangement order of the first data block and the second data block should also be equal to the transmission order of the first signal frame and the second signal frame.
  • steps 802 and 803 shown in FIG. 8 or steps 902 and 903, and details are not repeated here.
  • mapping relationship between the first check block and the second signal frame reference may be made to the related descriptions of steps 802 to 803 and steps 902 to 903 shown in FIG. 8 , and details are not repeated here.
  • the sending device can still send the third signal frame to the receiving device through the undisconnected transmission channel.
  • the third signal frame refers to a signal frame transmitted after the first signal frame and the second signal frame.
  • the sending device may perform the operations performed by the sending device in any of the foregoing embodiments shown in FIG. 8 , and details are not described herein again.
  • FIG. 16 is a schematic structural diagram of a possible optical transmission device.
  • the optical transmission device includes a chip 1601 and an optical transceiver 1602 .
  • the optical transmission device may further include a memory (not shown in the figure).
  • the chip 1601, the optical transceiver 1602 and the memory are connected to each other by wires.
  • the memory is used to store program instructions and data. It should be noted that the optical transmission device may be the receiving device described in FIG. 14 or the sending device described in FIG. 15 .
  • the chip 1601 and the optical transceiver 1602 may be specifically located in the tributary board 404 or the circuit board 405 shown in FIG. 4 , and the optical transceiver 1602 is used to perform the transceiving operation of the signal frame in the steps shown in FIG. 8 .
  • the chip 1601 is configured to perform other operations in the steps shown in FIG. 8 above except for signal frame transmission and reception.
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip integrates a processor 1701 and one or more communication interfaces 1702 for realizing the functions of the above-mentioned chip 1601 .
  • the chip may perform the method steps of any one or more of the foregoing embodiments.
  • the memory is not integrated in the chip, it can be connected with the external memory through the interface.
  • the chip implements the actions performed by the optical transmission device in the above embodiment according to the program codes stored in the external memory.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implement.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the processors in various embodiments of the present application may be general-purpose processors, digital signal processors, application specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk and other media that can store program codes .

Abstract

A signal frame processing method and a related device. When switching of a transmission channel is needed, another transmission channel between a receiving device and a sending device may be created first, and the receiving device and the sending device of the same service may transmit service data by means of two transmission channels. After receiving service data from different transmission channels, the receiving device may sort the service data according to an original service order. Furthermore, when switching of the transmission channel is needed, after one of the transmission channels is disconnected, one transmission channel is still reserved between the receiving device and the sending device. Therefore, the service data may further continue to be transmitted by means of the transmission channel that is not disconnected, so that service interruption is avoided and user experience is improved.

Description

一种信号帧的处理方法及相关设备A kind of signal frame processing method and related equipment
本申请要求于2020年11月27日提交中国专利局、申请号为202011364406.X、发明名称为“一种信号帧的处理方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on November 27, 2020 with the application number 202011364406.X and titled "A Signal Frame Processing Method and Related Equipment", the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请实施例涉及光通信领域,尤其涉及一种信号帧的处理方法及相关设备。The embodiments of the present application relate to the field of optical communications, and in particular, to a signal frame processing method and related devices.
背景技术Background technique
光传送网(OTN,optical transport network)是当下极为重要的一种硬管道传输技术,具有高带宽,大容量,高灵活度等特性。OTN技术中,可以将业务数据映射到颗粒度较小的灵活光业务单元(OSUflex,flexible optical service unit)之后,通过光业务单元(OSU,optical service unit)管道进行传输。Optical transport network (OTN, optical transport network) is an extremely important hard-pipe transmission technology, which has the characteristics of high bandwidth, large capacity, and high flexibility. In the OTN technology, service data can be mapped to a flexible optical service unit (OSUflex, flexible optical service unit) with a smaller granularity, and then transmitted through an optical service unit (OSU, optical service unit) pipeline.
如图1所示,每个业务的业务数据分别通过一条OSU管道传输到光通道数据单元(ODU,optical data unit)中进行承载。当需要占用600M带宽的业务4需要接入ODU0中时,此时由于ODU0-2剩余带宽为400M,所以ODU0-2无法直接承载业务4。As shown in Figure 1, the service data of each service is respectively transmitted to an optical data unit (ODU, optical data unit) through an OSU pipeline for bearing. When the service 4 that needs to occupy a bandwidth of 600M needs to be connected to the ODU0, because the remaining bandwidth of the ODU0-2 is 400M, the ODU0-2 cannot directly bear the service 4.
如图2所示,可以将占用400M带宽的业务2断开,并切换到剩余带宽为400M的ODU0-1中进行承载。切换后,ODU0-2的剩余带宽为800M,则此时ODU0-2便可以承载占用600M带宽的业务4。但是在业务的切换过程中,由于业务会断开,影响用户体验。As shown in Figure 2, the service 2 that occupies 400M bandwidth can be disconnected and switched to ODU0-1 with the remaining bandwidth of 400M for carrying. After the handover, the remaining bandwidth of ODU0-2 is 800M. At this time, ODU0-2 can carry service 4 that occupies 600M bandwidth. However, during the service switching process, the user experience is affected because the service will be disconnected.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种信号帧的处理方法及相关设备,用于在切换业务的传输通道时,避免业务中断,影响用户体验。Embodiments of the present application provide a signal frame processing method and related equipment, which are used to avoid service interruption and affect user experience when switching service transmission channels.
第一方面,本申请实施例提供了一种信号帧的处理方法。同一业务的接收设备和发送设备,通过一条传输通道传输信号帧。当需要切换传输通道时,执行以下步骤:首先,建立接收设备与发送设备之间的另一条传输通道。进而,接收设备和发送设备之间便可以通过两条传输通道传输信号帧。本申请实施例中,将两条传输通道分别命名为“第一传输通道”和“第二传输通道”进行区分。需要说明的是,本申请所述第一传输通道以及第二传输通道,指的是同一业务的两条不同的传输通道。具体地,第一传输通道可以指的是正在工作的传输通道,也可以是新建的传输通道。同理,本申请所述第二传输通道可以指的是新建的传输通道,也可以是正在工作的传输通道。In a first aspect, an embodiment of the present application provides a method for processing a signal frame. The receiving device and the sending device of the same service transmit signal frames through a transmission channel. When the transmission channel needs to be switched, the following steps are performed: First, another transmission channel between the receiving device and the sending device is established. Further, signal frames can be transmitted between the receiving device and the transmitting device through two transmission channels. In the embodiment of the present application, the two transmission channels are respectively named as "first transmission channel" and "second transmission channel" to distinguish. It should be noted that the first transmission channel and the second transmission channel mentioned in this application refer to two different transmission channels of the same service. Specifically, the first transmission channel may refer to a working transmission channel, or may be a newly created transmission channel. Similarly, the second transmission channel mentioned in this application may refer to a newly-built transmission channel, or may be a working transmission channel.
接收设备通过第一传输通道接收来自发送设备的第一信号帧,第一信号帧包括第一数据块和第一校验块。并且,接收设备通过第二传输通道接收来自发送设备第二信号帧,第二信号帧包括第二数据块。其中,第一数据和第二数据块块用于承载业务数据。第一校验块与第二信号帧之间存在映射关系。The receiving device receives a first signal frame from the sending device through the first transmission channel, where the first signal frame includes a first data block and a first check block. And, the receiving device receives the second signal frame from the transmitting device through the second transmission channel, and the second signal frame includes the second data block. The first data block and the second data block are used to carry service data. There is a mapping relationship between the first check block and the second signal frame.
接收设备接收到来自不同传输通道的第一信号帧和第二信号帧之后,可以通过第一校验块与第二信号帧之间的映射关系,完成第一信号帧与第二信号帧之间的查找,并确定第 一信号帧与第二信号帧之间的排列顺序。此时,输出第一校验块对于业务数据来说是没有意义的。因此,接收设备可以将第一数据块和第二数据块按照上述排列顺序进行排列,得到目标信号帧。由于发送设备发送第一信号帧和第二信号帧的顺序,是按照业务数据的顺序进行发送的,则此时目标信号帧中第一数据块和第二数据块的排列顺序与第一信号帧和第二信号帧的发送顺序相同。After receiving the first signal frame and the second signal frame from different transmission channels, the receiving device can complete the connection between the first signal frame and the second signal frame through the mapping relationship between the first check block and the second signal frame , and determine the arrangement order between the first signal frame and the second signal frame. At this time, outputting the first check block is meaningless for service data. Therefore, the receiving device can arrange the first data block and the second data block according to the above-mentioned arrangement order to obtain the target signal frame. Since the order in which the sending device sends the first signal frame and the second signal frame is based on the order of the service data, the order of the first data block and the second data block in the target signal frame is the same as that of the first signal frame. The same as the transmission sequence of the second signal frame.
现有的光网络中,同一业务的接收设备和发送设备之间只能通过一条传输通道传输业务数据。本申请实施例中,当需要对传输通道进行切换时,可以先创建接收设备和发送设备之间的另一条传输通道,则同一个业务的接收设备和发送设备便可以通过两条传输通道传输业务数据。接收设备接收到来自不同传输通道的业务数据之后,可以将业务数据按照原有的业务顺序进行排序。进而,当需要对传输通道进行切换时,断开其中一条传输通道后,接收设备与发送设备之间,仍有保留有一条传输通道。因此,业务数据还可以通过未被断开的传输通道继续传输业务数据,避免了业务中断,提高了用户体验。In the existing optical network, only one transmission channel can transmit service data between the receiving device and the sending device of the same service. In the embodiment of the present application, when the transmission channel needs to be switched, another transmission channel between the receiving device and the sending device may be created first, and then the receiving device and the sending device of the same service can transmit services through the two transmission channels data. After receiving the service data from different transmission channels, the receiving device can sort the service data according to the original service order. Furthermore, when the transmission channel needs to be switched, after disconnecting one of the transmission channels, there is still a transmission channel reserved between the receiving device and the sending device. Therefore, the service data can also continue to be transmitted through the undisconnected transmission channel, which avoids service interruption and improves user experience.
基于第一方面,一种可选的实施方式中,第二信号帧还可以包括第二校验块。第一信号帧中的第一校验块与第二信号帧中的第二校验块存在第一映射关系。接收设备可以通过第一映射关系,完成第一校验块与第二校验块之间的互相查找,并且对第一数据块和第二数据块进行排序。Based on the first aspect, in an optional implementation manner, the second signal frame may further include a second check block. The first check block in the first signal frame and the second check block in the second signal frame have a first mapping relationship. The receiving device can complete the mutual search between the first check block and the second check block through the first mapping relationship, and sort the first data block and the second data block.
本实施例中,第一校验块和第二校验块并不承载业务数据,因此传输第一校验块和第二校验块所需要的带宽资源较少。接收设备通过第一校验块和第二校验块完成第一数据块和第二数据块的排序,能够减少网络资源的占用。In this embodiment, the first check block and the second check block do not carry service data, so less bandwidth resources are required for transmitting the first check block and the second check block. The receiving device completes the sorting of the first data block and the second data block through the first check block and the second check block, which can reduce the occupation of network resources.
基于第一方面,一种可选的实施方式中,第一校验块承载了与第二数据块相同的业务数据,即第一校验块的净荷等于第二数据块的净荷,同时,第一校验块与第二数据块之间存在第二映射关系。接收设备可以通过第二映射关系,确定第一信号帧与第二信号帧之间的排列顺序,并按照该排列顺序,对第一数据块和第二数据块进行排序。Based on the first aspect, in an optional implementation manner, the first check block carries the same service data as the second data block, that is, the payload of the first check block is equal to the payload of the second data block, and at the same time , a second mapping relationship exists between the first check block and the second data block. The receiving device may determine an arrangement order between the first signal frame and the second signal frame through the second mapping relationship, and sort the first data block and the second data block according to the arrangement order.
本实施例中,由于第一校验块承载了与第二数据块相同的业务数据,因此当第二数据块在处理过程中发生丢失的情况时,第一校验块中所承载的业务数据仍然可以用于业务数据的输出,提升了方案的可靠性。In this embodiment, since the first check block carries the same service data as the second data block, when the second data block is lost during processing, the service data carried in the first check block It can still be used for the output of business data, which improves the reliability of the solution.
基于第一方面,一种可选的实施方式中,第一信号帧与第二信号帧之间,可以同时存在第一映射关系和第二映射关系。即接收设备可以先通过第一映射关系查找与第二校验块对应的第一校验块,再根据第二映射关系查找与第一校验块对应的第二数据块,完成第一数据块与第二数据块的排序。Based on the first aspect, in an optional implementation manner, a first mapping relationship and a second mapping relationship may exist simultaneously between the first signal frame and the second signal frame. That is, the receiving device can first search for the first check block corresponding to the second check block according to the first mapping relationship, and then search for the second data block corresponding to the first check block according to the second mapping relationship to complete the first data block. with the ordering of the second data block.
本实施例中,信号帧之间可以同时存在第一映射关系和第二映射关系,为第一信号帧与第二信号帧的查找,提供了更多的实施方式。In this embodiment, the first mapping relationship and the second mapping relationship may exist between the signal frames at the same time, which provides more implementation manners for searching the first signal frame and the second signal frame.
基于第一方面,一种可选的实施方式中,当第一传输通道或者第二传输通道被断开时,由于接收设备与发送设备之间仍然保留有一条传输通道,因此,接收设备与发送设备之间,仍然可以通过未被断开的传输通道传输后续的第三信号帧。第三信号帧用于表示在所述第一信号帧和第二信号帧之后传输的信号帧。Based on the first aspect, in an optional implementation manner, when the first transmission channel or the second transmission channel is disconnected, since there is still a transmission channel between the receiving device and the sending device, the receiving device and the sending device still have one transmission channel. Between devices, the subsequent third signal frame can still be transmitted through the undisconnected transmission channel. The third signal frame is used to represent the signal frame transmitted after the first signal frame and the second signal frame.
本实施例中,当其中一条传输通道断开后,业务数据还可以通过未被断开的传输通道继续传输业务数据,避免了业务中断,提高了用户体验。In this embodiment, after one of the transmission channels is disconnected, the service data may continue to be transmitted through the undisconnected transmission channel, thereby avoiding service interruption and improving user experience.
基于第一方面,一种可选的实施方式中,第一映射关系可以是:第一校验块的净荷与第二校验块的净荷相同。在另一种可选的实施方式中,第一映射关系可以是:第一校验块的特定区域的净荷与第二校验块的特定区域的净荷相同。在又一种可选的实施方式中,第一映射关系可以是:第一校验块中有效值域的值等于所述第二校验块的循环冗余校验(CRC,cyclic redundancy check)校验和。Based on the first aspect, in an optional implementation manner, the first mapping relationship may be: the payload of the first check block is the same as the payload of the second check block. In another optional implementation manner, the first mapping relationship may be: the payload of the specific area of the first parity block is the same as the payload of the specific area of the second parity block. In another optional implementation manner, the first mapping relationship may be: the value of the valid value field in the first check block is equal to the cyclic redundancy check (CRC, cyclic redundancy check) of the second check block Checksum.
基于第一方面,一种可选的实施方式中,第二映射关系可以是:第一校验块中有效值域的值等于第二数据块的CRC算法的校验和。Based on the first aspect, in an optional implementation manner, the second mapping relationship may be: the value of the valid value range in the first check block is equal to the checksum of the CRC algorithm of the second data block.
第二方面,本申请实施例提供了一种信号帧的处理方法。同一业务的接收设备和发送设备,通过一条传输通道传输信号帧。当需要切换传输通道时,执行以下步骤:首先,建立接收设备与发送设备之间的另一条传输通道。进而,接收设备和发送设备之间便可以通过两条传输通道传输信号帧。In a second aspect, an embodiment of the present application provides a method for processing a signal frame. The receiving device and the sending device of the same service transmit signal frames through a transmission channel. When the transmission channel needs to be switched, the following steps are performed: First, another transmission channel between the receiving device and the sending device is established. Further, signal frames can be transmitted between the receiving device and the transmitting device through two transmission channels.
发送设备通过第一传输通道向接收设备发送第一信号帧,第一信号帧包括第一数据块和第一校验块。并且,接收设备通过第二传输通道接收来自发送设备第二信号帧,第二信号帧包括第二数据块。其中,第一数据和第二数据块块用于承载业务数据。第一校验块与第二信号帧之间存在映射关系。该映射关系可以用于接收设备对第一数据块和第二数据块进行排序,得到目标信号帧。由于发送设备发送第一信号帧和第二信号帧的顺序,是按照业务数据的顺序进行发送的,因此第一数据块与第二数据块的排列顺序等于第一信号帧与第二信号帧的发送顺序。The sending device sends a first signal frame to the receiving device through the first transmission channel, where the first signal frame includes a first data block and a first check block. And, the receiving device receives the second signal frame from the transmitting device through the second transmission channel, and the second signal frame includes the second data block. The first data block and the second data block are used to carry service data. There is a mapping relationship between the first check block and the second signal frame. The mapping relationship can be used by the receiving device to sort the first data block and the second data block to obtain the target signal frame. Since the order in which the sending device sends the first signal frame and the second signal frame is based on the order of service data, the arrangement order of the first data block and the second data block is equal to the order of the first signal frame and the second signal frame. send order.
现有的光网络中,同一业务的接收设备和发送设备之间只能通过一条传输通道传输业务数据。本申请实施例中,当需要对传输通道进行切换时,可以先创建接收设备和发送设备之间的另一条传输通道,则同一个业务的接收设备和发送设备便可以通过两条传输通道传输业务数据。接收设备接收到来自不同传输通道的业务数据之后,可以将业务数据按照原有的业务顺序进行排序。进而,当需要对传输通道进行切换时,断开其中一条传输通道后,接收设备与发送设备之间,仍有保留有一条传输通道。因此,业务数据还可以通过未被断开的传输通道继续传输业务数据,避免了业务中断,提高了用户体验。In the existing optical network, only one transmission channel can transmit service data between the receiving device and the sending device of the same service. In the embodiment of the present application, when the transmission channel needs to be switched, another transmission channel between the receiving device and the sending device may be created first, and then the receiving device and the sending device of the same service can transmit services through the two transmission channels data. After receiving the service data from different transmission channels, the receiving device can sort the service data according to the original service order. Furthermore, when the transmission channel needs to be switched, after disconnecting one of the transmission channels, there is still a transmission channel reserved between the receiving device and the sending device. Therefore, the service data can also continue to be transmitted through the undisconnected transmission channel, which avoids service interruption and improves user experience.
基于第二方面,一种可选的实施方式中,第二信号帧还可以包括第二校验块。第一信号帧中的第一校验块与第二信号帧中的第二校验块存在第一映射关系。接收设备可以通过第一映射关系,完成第一校验块与第二校验块之间的互相查找,并且对第一数据块和第二数据块进行排序。Based on the second aspect, in an optional implementation manner, the second signal frame may further include a second check block. The first check block in the first signal frame and the second check block in the second signal frame have a first mapping relationship. The receiving device can complete the mutual search between the first check block and the second check block through the first mapping relationship, and sort the first data block and the second data block.
本实施例中,第一校验块和第二校验块并不承载业务数据,因此传输第一校验块和第二校验块所需要的带宽资源较少。接收设备通过第一校验块和第二校验块完成第一数据块和第二数据块的排序,能够减少网络资源的占用。In this embodiment, the first check block and the second check block do not carry service data, so less bandwidth resources are required for transmitting the first check block and the second check block. The receiving device completes the sorting of the first data block and the second data block through the first check block and the second check block, which can reduce the occupation of network resources.
基于第二方面,一种可选的实施方式中,第一校验块承载了与第二数据块相同的业务数据,即第一校验块的净荷等于第二数据块的净荷,同时,第一校验块与第二数据块之间存在第二映射关系。接收设备可以通过第二映射关系,确定第一信号帧与第二信号帧之间的排列顺序,并按照该排列顺序,对第一数据块和第二数据块进行排序。Based on the second aspect, in an optional implementation manner, the first check block carries the same service data as the second data block, that is, the payload of the first check block is equal to the payload of the second data block, and at the same time , a second mapping relationship exists between the first check block and the second data block. The receiving device may determine an arrangement order between the first signal frame and the second signal frame through the second mapping relationship, and sort the first data block and the second data block according to the arrangement order.
本实施例中,由于第一校验块承载了与第二数据块相同的业务数据,因此当第二数据块在处理过程中发生丢失的情况时,第一校验块中所承载的业务数据仍然可以用于业务数 据的输出,提升了方案的可靠性。In this embodiment, since the first check block carries the same service data as the second data block, when the second data block is lost during processing, the service data carried in the first check block It can still be used for the output of business data, which improves the reliability of the solution.
基于第二方面,一种可选的实施方式中,当第一传输通道或者第二传输通道被断开时,由于接收设备与发送设备之间仍然保留有一条传输通道,因此,接收设备与发送设备之间,仍然可以通过未被断开的传输通道传输后续的第三信号帧。第三信号帧用于表示在所述第一信号帧和第二信号帧之后传输的信号帧。Based on the second aspect, in an optional implementation manner, when the first transmission channel or the second transmission channel is disconnected, since there is still a transmission channel between the receiving device and the sending device, the receiving device and the sending device still have one transmission channel. Between devices, the subsequent third signal frame can still be transmitted through the undisconnected transmission channel. The third signal frame is used to represent the signal frame transmitted after the first signal frame and the second signal frame.
本实施例中,当其中一条传输通道断开后,业务数据还可以通过未被断开的传输通道继续传输业务数据,避免了业务中断,提高了用户体验。In this embodiment, after one of the transmission channels is disconnected, the service data may continue to be transmitted through the undisconnected transmission channel, thereby avoiding service interruption and improving user experience.
基于第二方面,本实施例中,提供了第一校验块和第二信号帧之间的映射关系,具体请参阅第一方面的内容,此处不再进行赘述。Based on the second aspect, in this embodiment, the mapping relationship between the first check block and the second signal frame is provided. For details, please refer to the content of the first aspect, which will not be repeated here.
第三方面,本申请实施例提供了一种接收设备。所述接收设备包括:接收单元和处理单元。其中,接收单元用于通过第一传输通道接收来自发送设备的第一信号帧,所述第一信号帧包括第一数据块和第一校验块。接收单元还用于通过第二传输通道接收来自所述发送设备的第二信号帧,第二信号帧包括第二数据块,所述第一校验块和所述第二信号帧存在映射关系。处理单元,用于根据所述映射关系对所述第一数据块和所述第二数据块进行排序,得到目标信号帧,所述第一数据块和所述第二数据块的排列顺序等于所述第一信号帧和所述第二信号帧的发送顺序。In a third aspect, an embodiment of the present application provides a receiving device. The receiving device includes: a receiving unit and a processing unit. The receiving unit is configured to receive a first signal frame from a sending device through a first transmission channel, where the first signal frame includes a first data block and a first check block. The receiving unit is further configured to receive a second signal frame from the sending device through the second transmission channel, where the second signal frame includes a second data block, and the first check block and the second signal frame have a mapping relationship. a processing unit, configured to sort the first data block and the second data block according to the mapping relationship to obtain a target signal frame, and the arrangement order of the first data block and the second data block is equal to the the sending sequence of the first signal frame and the second signal frame.
基于第三方面,一种可选的实施方式中,所述第二信号帧还包括第二校验块,所述第一校验块和所述第二信号帧存在映射关系包括:所述第一校验块和所述第二校验块存在第一映射关系。Based on the third aspect, in an optional implementation manner, the second signal frame further includes a second check block, and a mapping relationship between the first check block and the second signal frame includes: the first check block A check block and the second check block have a first mapping relationship.
基于第三方面,一种可选的实施方式中,所述第一校验块的净荷等于所述第二数据块的净荷,所述第一校验块和所述第二信号帧存在映射关系包括:所述第一校验块和所述第二数据块存在第二映射关系。Based on the third aspect, in an optional implementation manner, the payload of the first check block is equal to the payload of the second data block, and the first check block and the second signal frame exist The mapping relationship includes: a second mapping relationship exists between the first check block and the second data block.
基于第三方面,一种可选的实施方式中,处理单元具体用于根据所述第一映射关系确定所述第二校验块对应的所述第一校验块;根据所述第二映射关系确定所述第一校验块对应的所述第二数据块;对所述第一数据块和所述第二数据块进行排序。Based on the third aspect, in an optional implementation manner, the processing unit is specifically configured to determine the first check block corresponding to the second check block according to the first mapping relationship; according to the second mapping The relationship determines the second data block corresponding to the first check block; and sorts the first data block and the second data block.
基于第三方面,一种可选的实施方式中,接收单元具体用于当所述第一传输通道或所述第二传输通道被断开时,通过未被断开的传输通道接收来自发送设备的第三信号帧,所述第三信号帧为在所述第一信号帧和第二信号帧之后传输的信号帧。Based on the third aspect, in an optional implementation manner, the receiving unit is specifically configured to receive data from the sending device through the undisconnected transmission channel when the first transmission channel or the second transmission channel is disconnected The third signal frame is a signal frame transmitted after the first signal frame and the second signal frame.
基于第三方面,本实施例中,提供了第一校验块和第二信号帧之间的映射关系,具体请参阅第一方面的内容,此处不再进行赘述。Based on the third aspect, in this embodiment, the mapping relationship between the first check block and the second signal frame is provided. For details, please refer to the content of the first aspect, which will not be repeated here.
第四方面,本申请实施例提供了一种发送设备。所述发送设备包括第一发送单元和第二发送单元。其中,第一发送单元,用于通过第一传输通道向所述接收设备发送第一信号帧,所述第一信号帧包括第一数据块和第一校验块。第二发送单元,用于通过所述第二传输通道向所述接收设备发送第二信号帧,所述第二信号帧包括第二数据块。所述第一校验块和所述第二信号帧存在映射关系,所述映射关系用于所述接收设备对所述第一数据块和所述第二数据块进行排序,得到目标信号帧,所述第一数据块和所述第二数据块的排列顺序等于所述第一信号帧和所述第二信号帧的发送顺序。In a fourth aspect, an embodiment of the present application provides a sending device. The sending device includes a first sending unit and a second sending unit. The first sending unit is configured to send a first signal frame to the receiving device through a first transmission channel, where the first signal frame includes a first data block and a first check block. A second sending unit, configured to send a second signal frame to the receiving device through the second transmission channel, where the second signal frame includes a second data block. There is a mapping relationship between the first check block and the second signal frame, and the mapping relationship is used by the receiving device to sort the first data block and the second data block to obtain a target signal frame, The arrangement order of the first data block and the second data block is equal to the transmission order of the first signal frame and the second signal frame.
基于第四方面,一种可选的实施方式中,所述第二信号帧还包括第二校验块,所述第 一校验块和所述第二信号帧存在映射关系包括:所述第一校验块和所述第二校验块存在第一映射关系。Based on the fourth aspect, in an optional implementation manner, the second signal frame further includes a second check block, and a mapping relationship between the first check block and the second signal frame includes: the first check block A check block and the second check block have a first mapping relationship.
基于第四方面,一种可选的实施方式中,所述第一校验块的净荷等于所述第二数据块的净荷,所述第一校验块和所述第二信号帧存在映射关系包括:所述第一校验块和所述第二数据块存在第二映射关系。Based on the fourth aspect, in an optional implementation manner, the payload of the first check block is equal to the payload of the second data block, and the first check block and the second signal frame exist The mapping relationship includes: a second mapping relationship exists between the first check block and the second data block.
基于第四方面,一种可选的实施方式中,所述发送单元还用于当所述第一传输通道或所述第二传输通道被断开时,通过未被断开的传输通道向所述接收设备发送第三信号帧,所述第三信号帧为在所述第一信号帧和第二信号帧之后传输的信号帧。Based on the fourth aspect, in an optional implementation manner, the sending unit is further configured to, when the first transmission channel or the second transmission channel is disconnected, send an The receiving device sends a third signal frame, where the third signal frame is a signal frame transmitted after the first signal frame and the second signal frame.
基于第四方面,本实施例中,提供了第一校验块和第二信号帧之间的映射关系,具体请参阅第一方面的内容,此处不再进行赘述。Based on the fourth aspect, in this embodiment, the mapping relationship between the first check block and the second signal frame is provided. For details, please refer to the content of the first aspect, which will not be repeated here.
第五方面,本发明实施例提供了一种芯片。芯片包括处理器和收发接口,所述收发接口和所述处理器通过线路互相连接,收发接口用于执行上述第一方面所示的,与信号帧的收发相关的步骤。处理器用于执行上述第一方面所示的,与处理相关的步骤。In a fifth aspect, an embodiment of the present invention provides a chip. The chip includes a processor and a transceiving interface, the transceiving interface and the processor are connected to each other through a line, and the transceiving interface is used to perform the steps related to the transceiving of the signal frame shown in the first aspect above. The processor is configured to execute the processing-related steps shown in the first aspect above.
第六方面,本发明实施例提供了一种芯片。芯片包括处理器和收发接口,所述收发接口和所述处理器通过线路互相连接,收发接口用于执行上述第一方面所示的,与信号帧的收发相关的步骤。处理器用于执行上述第一方面所示的,与处理相关的步骤。In a sixth aspect, an embodiment of the present invention provides a chip. The chip includes a processor and a transceiving interface, the transceiving interface and the processor are connected to each other through a line, and the transceiving interface is used to perform the steps related to the transceiving of the signal frame shown in the first aspect above. The processor is configured to execute the processing-related steps shown in the first aspect above.
第七方面,本申请实施例提供了一种光网络设备。光传输设备包括:芯片以及光收发器。其中,该芯片以及该光收发器通过线路互相连接,该芯片用于执行上述第一方面或第一方面任一实施方式所示的信号帧的处理方法。In a seventh aspect, an embodiment of the present application provides an optical network device. Optical transmission equipment includes: chips and optical transceivers. Wherein, the chip and the optical transceiver are connected to each other through a line, and the chip is used for executing the signal frame processing method shown in the first aspect or any embodiment of the first aspect.
第八方面,本申请实施例提供了一种光网络设备。光传输设备包括:芯片以及光收发器。其中,该芯片以及该光收发器通过线路互相连接,该芯片用于执行上述第二方面或第二方面任一实施方式所示的信号帧的处理方法。In an eighth aspect, an embodiment of the present application provides an optical network device. Optical transmission equipment includes: chips and optical transceivers. Wherein, the chip and the optical transceiver are connected to each other through a line, and the chip is used for executing the signal frame processing method shown in the second aspect or any embodiment of the second aspect.
第九方面,本申请实施例提供了一种光网络系统。所述光网络系统包括上述第三方面的接收设备和上述第四方面的发送设备。该光网络系统中的接收设备可以执行上述第一方面和第一方面任意一种可能的实现方式的方法;该光网络系统中的发送设备可以执行上述第二方面和第二方面任意一种可能的实现方式的方法。In a ninth aspect, an embodiment of the present application provides an optical network system. The optical network system includes the receiving device of the third aspect and the sending device of the fourth aspect. The receiving device in the optical network system may perform the first aspect and any one of the possible implementation methods of the first aspect; the sending device in the optical network system may perform any one of the second aspect and the second aspect. method of implementation.
附图说明Description of drawings
图1为现有的OTN网络中的一种应用场景图;Fig. 1 is an application scenario diagram in the existing OTN network;
图2为现有的OTN网络中的传输通道切换的示意图;2 is a schematic diagram of transmission channel switching in an existing OTN network;
图3为本申请实施例所应用的光传输系统的一种结构示意图;FIG. 3 is a schematic structural diagram of an optical transmission system applied in an embodiment of the present application;
图4为OTN设备的一种硬件结构示意图;Fig. 4 is a kind of hardware structure schematic diagram of OTN equipment;
图5为本申请中一种可能的信号帧的结构示意图;5 is a schematic structural diagram of a possible signal frame in the application;
图6为本申请中数据块和校验块的结构示意图;6 is a schematic structural diagram of a data block and a check block in the application;
图7为本申请所提供的一种传输通道切换的应用场景图;FIG. 7 is an application scenario diagram of a transmission channel switching provided by the present application;
图8为本申请中信号帧的处理方法的一个实施例示意图;FIG. 8 is a schematic diagram of an embodiment of a method for processing a signal frame in the present application;
图9为本申请中第一校验块与第二校验块之间的映射关系示意图;FIG. 9 is a schematic diagram of the mapping relationship between the first check block and the second check block in this application;
图10为本申请实施例中第一数据块和第二数据块的一种排序示意图;10 is a schematic diagram of a sorting of the first data block and the second data block in the embodiment of the present application;
图11为本申请实施例中第一数据块和第二数据块的另一种排序示意图;11 is another schematic diagram of sorting the first data block and the second data block in an embodiment of the present application;
图12为本申请实施例中第一数据块和第二数据块的又一种排序示意图;12 is another schematic diagram of sorting the first data block and the second data block in an embodiment of the present application;
图13为本申请实施例中第一数据块和第二数据块的再一种排序示意图;13 is a schematic diagram of still another sorting of the first data block and the second data block in the embodiment of the present application;
图14为本申请实施例中接收设备的一种实施例结构示例图;FIG. 14 is a schematic structural diagram of an embodiment of a receiving device in an embodiment of the application;
图15为本申请实施例中发送设备的一种实施例结构示例图;FIG. 15 is an exemplary structural diagram of an embodiment of a sending device in an embodiment of the application;
图16为本申请实施例中一种可能的光传输设备的结构示意图;FIG. 16 is a schematic structural diagram of a possible optical transmission device in an embodiment of the present application;
图17为本申请实施例提供的一种芯片的结构示意图。FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种信号帧的处理方法及相关设备,用于在需要切换传输通道时,避免业务中断。Embodiments of the present application provide a signal frame processing method and related equipment, which are used to avoid service interruption when a transmission channel needs to be switched.
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应理解,这样使用的数据在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”以及他的任何变形意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, and this is only a distinguishing manner used when describing objects with the same attributes in the embodiments of the present application. Furthermore, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or elements is not necessarily limited to those steps or elements expressly listed, Rather, other steps or units not expressly listed or inherent to the process, method, product or apparatus may be included.
本申请的实施例适用于光网络,例如:光传送网(OTN,optical transport network)或者灵活以太网(FlexE,flex Ethernet)。为了方便理解本发明技术方案,本申请实施例中,以OTN为例进行阐述。所述光传送网通常由多个设备通过光纤连接而成,可以根据具体需要组成如线型、环形或网状等不同的拓扑类型。The embodiments of the present application are applicable to an optical network, for example, an optical transport network (OTN, optical transport network) or a flexible Ethernet (FlexE, flex Ethernet). In order to facilitate understanding of the technical solutions of the present invention, in the embodiments of the present application, OTN is used as an example for description. The optical transport network is usually formed by connecting multiple devices through optical fibers, and can be formed into different topology types such as linear, ring, or mesh according to specific needs.
图3给出了可适用于本申请实施例的一种网络架构的示意图。如图3所示的OTN包括两个OTN网络(分别为OTN网络1和OTN网络2)。每一个OTN网络包括一定数量的OTN设备(图3中用N表示),OTN网络内的设备之间的链路为域内链路,OTN网络间的设备之间的链路为域间链路。根据实际需要,一个OTN设备可能具备一种或多种功能。一般来说,OTN设备分为光层设备、电层设备以及光电混合设备。光层设备指的是能够处理光层信号的设备,例如:光放大器(OA,optical amplifier)。电层设备指的是能够处理电层信号的设备,例如:能够处理ODU信号的设备。光电混合设备指的是具备处理光层信号和电层信号能力的设备。需要说明的是,根据具体的集成需要,一台OTN设备可以集合多种不同的功能。本申请提供的技术方案适用于不同形态和集成度的OTN设备。FIG. 3 is a schematic diagram of a network architecture applicable to this embodiment of the present application. The OTN shown in FIG. 3 includes two OTN networks (respectively OTN network 1 and OTN network 2). Each OTN network includes a certain number of OTN devices (indicated by N in FIG. 3 ). The links between devices in the OTN network are intra-domain links, and the links between devices between OTN networks are inter-domain links. According to actual needs, an OTN device may have one or more functions. Generally speaking, OTN devices are divided into optical layer devices, electrical layer devices and optoelectronic hybrid devices. An optical layer device refers to a device capable of processing optical layer signals, such as an optical amplifier (OA, optical amplifier). The electrical layer device refers to a device capable of processing electrical layer signals, for example, a device capable of processing ODU signals. An optoelectronic hybrid device refers to a device capable of processing optical layer signals and electrical layer signals. It should be noted that, according to specific integration needs, one OTN device can integrate a variety of different functions. The technical solutions provided in this application are applicable to OTN devices of different shapes and degrees of integration.
图4为OTN设备的一种硬件结构示意图。具体地,该OTN设备包括电源401、风扇402、辅助类单板403,还可能包括支路板404、线路板405、交叉板406、光层处理单板(图中未示出)以及系统控制和通信类单板407。需要说明的是,根据具体的需要,一个OTN设备具体包含的单板类型和数量可能不相同。例如,作为核心节点的网络设备可能没有支路板404。作为边缘节点的网络设备可能有多个支路板404。其中,电源401用于为设 备供电,可能包括主用和备用电源。风扇402用于为设备散热。辅助类单板403用于提供外部告警或者接入外部时钟等辅助功能。支路板404、交叉板406和线路板405主要是用于处理光网络的电层信号(例如,本申请中的第一信号帧和第二信号帧)。其中,支路板404用于实现各种客户业务的接收和发送,例如分组业务、以太网业务和前传业务等。更进一步地,支路板404可以划分为客户侧光模块和处理器。其中,客户侧光模块可以为光收发器,用于接收和/或发送客户信号。处理器用于实现对客户信号到电层信号的映射和解映射处理。交叉板406用于实现电层信号的交换,完成一种或多种类型的电层信号的交换。线路板405主要实现线路侧电层信号的处理。具体地,线路板405可以划分为线路侧光模块和处理器。其中,线路侧光模块可以为线路侧光收发器,用于接收和/或发送电层信号。处理器用于实现对线路侧的电层信号的复用和解复用,或者映射和解映射处理。系统控制和通信类单板407用于实现系统控制和通信。具体地,可以通过背板从不同的单板收集信息,或者将控制指令发送到对应的单板上去。需要说明的是,除非特殊说明,具体的组件(例如:处理器)可以是一个或多个,本申请不做任何限制。还需要说明的是,本申请实施例不对设备包含的单板类型,以及单板具体的功能设计和数量做任何限制。需要说明的是,本申请的信号帧的处理方法具体可以在线路板405上实现,又或者,支路板404与线路板405可以集成在一起用于实现本申请的信号帧的处理方法。FIG. 4 is a schematic diagram of a hardware structure of an OTN device. Specifically, the OTN device includes a power supply 401, a fan 402, an auxiliary board 403, and may also include a tributary board 404, a circuit board 405, a cross board 406, an optical layer processing board (not shown in the figure), and a system control board and communication board 407. It should be noted that, according to specific needs, an OTN device may contain different types and numbers of boards. For example, a network device that is a core node may not have tributary board 404 . A network device that is an edge node may have multiple tributary boards 404 . Among them, the power source 401 is used to supply power to the device, and may include main and backup power sources. Fan 402 is used to dissipate heat from the device. The auxiliary board 403 is used to provide auxiliary functions such as external alarms or access to an external clock. The tributary board 404, the cross board 406 and the circuit board 405 are mainly used for processing electrical layer signals of the optical network (eg, the first signal frame and the second signal frame in this application). Among them, the tributary board 404 is used to realize the reception and transmission of various customer services, such as packet services, Ethernet services, and fronthaul services. Further, the tributary board 404 can be divided into client-side optical modules and processors. The client-side optical module may be an optical transceiver for receiving and/or transmitting client signals. The processor is used to implement the mapping and demapping processing of the client signal to the electrical layer signal. The cross board 406 is used to realize the exchange of electrical layer signals, and complete the exchange of one or more types of electrical layer signals. The circuit board 405 mainly implements the processing of electrical layer signals on the circuit side. Specifically, the circuit board 405 can be divided into a line-side optical module and a processor. The line-side optical module may be a line-side optical transceiver for receiving and/or transmitting electrical layer signals. The processor is used to implement multiplexing and demultiplexing, or mapping and de-mapping processing of electrical layer signals on the line side. The system control and communication board 407 is used to implement system control and communication. Specifically, information can be collected from different boards through the backplane, or control instructions can be sent to the corresponding board. It should be noted that, unless otherwise specified, there may be one or more specific components (eg, processors), which are not limited in this application. It should also be noted that the embodiments of the present application do not impose any restrictions on the types of boards included in the device, and the specific functional design and quantity of the boards. It should be noted that the signal frame processing method of the present application may be specifically implemented on the circuit board 405, or the tributary circuit board 404 and the circuit board 405 may be integrated to implement the signal frame processing method of the present application.
图5为本申请中一种可能的信号帧的结构示意图。如图5所示,信号帧(例如光净荷单元k(optical payload unit k,OPUk)帧501)划分为多个净荷块(PB,payload block)5011。其中,净荷块5011包括开销区和净荷区,净荷区用于承载业务数据,然后通过通道标识符(tributary port number,TPN)承载于OPUk501中。FIG. 5 is a schematic structural diagram of a possible signal frame in the present application. As shown in FIG. 5 , a signal frame (for example, an optical payload unit k (optical payload unit k, OPUk) frame 501 ) is divided into a plurality of payload blocks (PB, payload block) 5011 . The payload block 5011 includes an overhead area and a payload area, and the payload area is used to carry service data, which is then carried in the OPUk 501 through a channel identifier (tributary port number, TPN).
如图6所示,本申请实施例中所提供的校验块601是一种特殊的净荷块。校验块601本身可以不承载业务数据(也可以承载业务数据,具体请参阅后续实施例的说明)。校验块601中的开销区域存在特殊的标识6011,用于区分校验块601和承载业务数据的净荷块。为了便于区分描述,本申请实施例中,将承载业务数据的净荷块称为数据块,将含有特殊标识的净荷块称为校验块。当接收设备所接收的信号帧包括校验块601时,接收设备不会直接输出该信号帧。接收设备需要先查找与该信号帧存在映射关系的其他信号帧。具体地,信号帧中的校验块,可以存在该映射关系。本申请实施例中,接收设备可以通过上述映射关系,完成信号帧之间的互相查找。并对信号帧中承载有业务数据的数据块602进行排序,得到按照原有的业务数据顺序进行排列的目标信号帧。As shown in FIG. 6 , the check block 601 provided in the embodiment of the present application is a special payload block. The check block 601 itself may not carry service data (it may also carry service data, for details, please refer to the description of the subsequent embodiments). A special identifier 6011 exists in the overhead area in the check block 601, which is used to distinguish the check block 601 from the payload block carrying service data. In order to facilitate the distinction and description, in this embodiment of the present application, a payload block carrying service data is referred to as a data block, and a payload block containing a special identifier is referred to as a check block. When the signal frame received by the receiving device includes the check block 601, the receiving device will not directly output the signal frame. The receiving device needs to search for other signal frames that have a mapping relationship with the signal frame first. Specifically, the check block in the signal frame may have this mapping relationship. In this embodiment of the present application, the receiving device may complete the mutual search between signal frames through the above-mentioned mapping relationship. The data blocks 602 carrying the service data in the signal frame are sorted to obtain the target signal frame arranged according to the original service data sequence.
现有的OTN网络中,同一业务的接收设备和发送设备,是通过一条传输通道来传输业务数据的。接收设备接收到业务数据后可以直接进行输出,因此不需要设计业务数据的查找和排序。图7为本申请的一种应用场景图。如图7所示,本申请实施例中,当需要对传输通道进行切换时,可以先建立发送设备和接收设备之间的另一条传输通道,则同一业务的发送设备和接收设备便可以通过两条传输通道建立连接。发送设备通过两条传输通道向接收设备发送信号帧。接收设备接收到来自两条不同传输通道的信号帧后,可以通过信号帧之间的映射关系,将不同的信号帧按照业务数据的顺序,进行拼接,得到目标信号帧。当需要进行传输通道的切换时,断开其中一条传输通道,业务数据仍然可以通过另一条传输通道,进行业务数据的传输,避免了业务中断。In the existing OTN network, the receiving device and the sending device of the same service transmit service data through a transmission channel. After receiving the business data, the receiving device can directly output it, so there is no need to design the search and sorting of the business data. FIG. 7 is an application scenario diagram of the present application. As shown in FIG. 7 , in the embodiment of the present application, when the transmission channel needs to be switched, another transmission channel between the sending device and the receiving device may be established first, and then the sending device and the receiving device of the same service can pass through the two transmission channels. A transmission channel is established to establish a connection. The sending device sends signal frames to the receiving device through two transmission channels. After receiving the signal frames from two different transmission channels, the receiving device can splicing different signal frames according to the order of service data through the mapping relationship between the signal frames to obtain the target signal frame. When switching of transmission channels is required, one of the transmission channels is disconnected, and service data can still be transmitted through the other transmission channel, thereby avoiding service interruption.
具体地,接收设备接收到第一信号帧和第二信号帧之后,可以通过第一信号帧中的第一校验块与第二信号帧中的第二校验块进行互相查找,完成数据块之间的排序。也还可以通过第一信号帧中的校验块与第二信号帧中的数据块进行互相查找,完成数据块之间的排序。下面对上述两种实施方式,分别进行说明。Specifically, after receiving the first signal frame and the second signal frame, the receiving device may search for each other through the first check block in the first signal frame and the second check block in the second signal frame to complete the data block. sorting between. It is also possible to perform mutual search between the check block in the first signal frame and the data block in the second signal frame to complete the sorting between the data blocks. The above two embodiments will be described separately below.
一、第一校验块与第二校验块进行互相查找,完成数据块之间的排序。1. The first check block and the second check block search each other to complete the sorting of the data blocks.
图8为本申请中信号帧的处理方法的一个实施例示意图。在该示例中,信号帧的处理方法包括如下步骤。FIG. 8 is a schematic diagram of an embodiment of a method for processing a signal frame in the present application. In this example, the processing method of the signal frame includes the following steps.
801、建立接收设备与发送设备之间的第二传输通道;801. Establish a second transmission channel between the receiving device and the sending device;
本申请中,以OTN为例,则对应的传输通道为OSU管道。业务通过一条OSU管道传输业务数据的过程中,当需要切换传输通道时,可以先创建另一条新的与原业务带宽同样大小的OSU管道,连接业务的发送设备以及接收设备。In this application, taking OTN as an example, the corresponding transmission channel is an OSU pipe. When a service transmits service data through an OSU pipe, when the transmission channel needs to be switched, another new OSU pipe with the same bandwidth as the original service can be created to connect the service sending device and receiving device.
需要说明的是,本申请所述第一传输通道和第二传输通道是同一业务的两条不同的传输通道。具体地,第一传输通道或第二传输通道可以指的是正在工作的传输通道,也可以是新建的传输通道。为了便于理解,本申请的实施例以当前正在工作的传输通道作为第一传输通道为例,进行阐述。同时,将新建立的传输通道作为第二传输通道。It should be noted that the first transmission channel and the second transmission channel described in this application are two different transmission channels of the same service. Specifically, the first transmission channel or the second transmission channel may refer to a working transmission channel, or may be a newly created transmission channel. For ease of understanding, the embodiments of the present application are described by taking the currently working transmission channel as the first transmission channel as an example. At the same time, the newly established transmission channel is used as the second transmission channel.
802、发送设备通过第一传输通道向接收设备发送第一信号帧;802. The sending device sends the first signal frame to the receiving device through the first transmission channel;
本申请中,发送设备发送的第一信号帧,可以包括第一数据块和第一校验块。其中,数据块用于承载业务数据。而校验块则为一种特殊的数据块,校验块本身可以不承载业务数据。校验块中的开销区域存在特殊的标识,用于区分校验块和承载业务数据的数据块。In this application, the first signal frame sent by the sending device may include a first data block and a first check block. Among them, the data block is used to carry service data. The check block is a special data block, and the check block itself may not carry service data. There is a special identifier in the overhead area in the check block, which is used to distinguish the check block from the data block carrying service data.
需要说明的是,本申请并不限定第一数据块的数量。在实际应用中,第一数据块可以指代一个数据块,也可以是第一信号帧中所包括的多个数据块的统称。为了方便后续的描述,本申请以第一数据块作为1号数据块和2号数据块的统称,进行阐述。同理,本申请也不限定第二数据块的数量。为了方便后续的描述,本申请以第二数据块作为3号数据块和4号数据块的统称,进行阐述。It should be noted that the present application does not limit the number of the first data blocks. In practical applications, the first data block may refer to one data block, or may be a collective term for multiple data blocks included in the first signal frame. In order to facilitate subsequent descriptions, the present application uses the first data block as a general term for the No. 1 data block and No. 2 data block for description. Similarly, the present application also does not limit the number of second data blocks. For the convenience of subsequent descriptions, this application uses the second data block as a general term for the No. 3 data block and the No. 4 data block for description.
803、发送设备通过第二传输通道向接收设备发送第二信号帧;803. The sending device sends a second signal frame to the receiving device through the second transmission channel;
本实施例中,第二信号帧可以包括第二数据块和第二校验块。为了方便后续的描述,本实施例及后续实施例中,将第一校验块命名为C码,第二校验块命名为S码。结合步骤802的描述,本申请发送设备与接收设备之间具体的交互场景,可参阅图10或图11。In this embodiment, the second signal frame may include a second data block and a second check block. To facilitate subsequent descriptions, in this embodiment and subsequent embodiments, the first check block is named C code, and the second check block is named S code. With reference to the description of step 802, for a specific interaction scenario between the sending device and the receiving device of the present application, reference may be made to FIG. 10 or FIG. 11 .
具体地,为了保证业务数据的准确性,发送设备发送第一信号帧和第二信号帧的顺序,是按照业务数据原有的顺序进行发送的。同时,为了方便通过校验块的映射关系可以对数据块进行排序,第一信号帧中,C码可以位于2号数据块和1号数据块之后发送。即此时第一信号帧中,校验块与数据块之间的位置关系可以是(C,2,1)。第二信号帧中,S码可以位于4号数据块和3号数据块之前发送,即此时第二信号帧中,校验块与数据块之间的位置关系可以是(4,3,S)。Specifically, in order to ensure the accuracy of the service data, the order in which the sending device sends the first signal frame and the second signal frame is sent according to the original order of the service data. Meanwhile, in order to facilitate sorting of data blocks according to the mapping relationship of the check blocks, in the first signal frame, the C code can be sent after the No. 2 data block and the No. 1 data block. That is, in the first signal frame at this time, the positional relationship between the check block and the data block may be (C, 2, 1). In the second signal frame, the S code can be sent before the No. 4 data block and the No. 3 data block, that is, in the second signal frame, the positional relationship between the check block and the data block can be (4, 3, S ).
进一步的,上述第一校验块,与第二信号帧中的第二校验块存在映射关系。具体地,当接收设备接收到第一校验块和第二校验块后,接收设备可以通过映射关系,实现第一校验块和第二校验块的互相查找。Further, the above-mentioned first check block has a mapping relationship with the second check block in the second signal frame. Specifically, after the receiving device receives the first check block and the second check block, the receiving device can search for each other between the first check block and the second check block through the mapping relationship.
图9为本申请实施例所提供的校验块之间的部分映射关系示意图。如图9所示,本申 请提供了校验块之间以下的几种映射关系。FIG. 9 is a schematic diagram of a partial mapping relationship between check blocks provided by an embodiment of the present application. As shown in Figure 9, the present application provides the following mapping relationships between check blocks.
A:C码的净荷与S码的净荷相同;A: The payload of C code is the same as that of S code;
B:C码的特定区域的净荷与S码的特定区域的净荷相同;B: The payload of the specific area of the C code is the same as the payload of the specific area of the S code;
C:C码的有效值域(Value区域)的值为S码的循环冗余校验(CRC,cyclic redundancy check)校验和,具体的CRC算法方式,本申请不做限定。C: The value of the effective value field (Value field) of the C code is the cyclic redundancy check (CRC, cyclic redundancy check) checksum of the S code. The specific CRC algorithm method is not limited in this application.
D:S码Value区域携带秘钥,C码Value区域的值为,利用S码中的秘钥结合加密算法所计算出的值,具体的加密算法方式,本申请不做限定。D: The Value area of the S code carries the secret key, and the value of the Value area of the C code is the value calculated by using the secret key in the S code combined with the encryption algorithm. The specific encryption algorithm method is not limited in this application.
E:C码的Value区域的值与S码后一个数据块的Value区域的值相同。E: The value of the Value field of the C code is the same as the value of the Value field of the next data block of the S code.
F:C码的Value区域的值为S码后一个数据块的CRC较验和,具体的CRC算法方式,本申请不做限定。F: The value of the Value area of the C code is the CRC checksum of a data block following the S code. The specific CRC algorithm method is not limited in this application.
G:S码Value区域携带秘钥,C码Value区域的值为,利用S码中的秘钥结合加密算法计算出的值,加密的原始数据为S码后一个数据块的值,具体的加密算法方式,本申请不做限定。G: The value area of the S code carries the secret key, and the value of the value area of the C code is the value calculated by using the secret key in the S code combined with the encryption algorithm. The encrypted original data is the value of a data block after the S code. The specific encryption The algorithm method is not limited in this application.
需要说明的是,上述映射关系仅是示例。在实际应用中,还可以是其他的映射关系。其作用在于可以使接收设备通过该映射关系,查找对应的校验块,从而拼接信号帧。It should be noted that the above mapping relationship is only an example. In practical applications, other mapping relationships may also be used. Its function is to enable the receiving device to search for the corresponding check block through the mapping relationship, thereby splicing the signal frame.
804、接收设备对第一数据块和第二数据块进行排序,得到目标信号帧;804. The receiving device sorts the first data block and the second data block to obtain a target signal frame;
由于第一信号帧中的C码与第二信号帧中的S码存在映射关系,因此当接收设备接收到第一信号帧和第二信号帧后,便可以根据该映射关系,对第一信号帧和第二信号帧进行查找。并按照初始的业务数据顺序对第一数据块和第二数据块完成排序,得到目标信号帧。Since there is a mapping relationship between the C code in the first signal frame and the S code in the second signal frame, when the receiving device receives the first signal frame and the second signal frame, it can map the first signal frame according to the mapping relationship. frame and the second signal frame to search. The first data block and the second data block are sorted according to the initial service data sequence to obtain the target signal frame.
需要说明的是,由于本申请实施例中,接收设备基于映射关系,可以实现校验块之间的双向查找。即可以通过S码查找C码,也可以通过C码查找S码。为了便于描述,本实施例以及后续实施例中,以通过S码查找C码的单向查找方式为例,进行阐述。It should be noted that, because in the embodiment of the present application, the receiving device can implement a two-way search between check blocks based on the mapping relationship. That is, the C code can be searched through the S code, and the S code can also be searched through the C code. For ease of description, in this embodiment and subsequent embodiments, a one-way search manner of searching for a C code by using an S code is used as an example for description.
具体地,虽然发送设备是按照业务数据的初始顺序,发送第一信号帧以及第二信号帧。但是在实际应用中,由于两条传输通道,往往时延不同,因此会造成接收设备接收到第一信号帧以及第二信号帧的时序不同,一般会有两种情况。下面结合附图分别进行说明:Specifically, although the sending device sends the first signal frame and the second signal frame according to the initial sequence of the service data. However, in practical applications, because the two transmission channels often have different time delays, the receiving device will receive different timings of the first signal frame and the second signal frame. Generally, there are two situations. The following descriptions are given in conjunction with the accompanying drawings:
A:如图10所示,当第一传输通道的时延大于第二传输通道时,接收设备会先接收到来自第二传输通道的第二信号帧,包括3号数据块、4号数据块以及S码。接收设备接收到S码后,会启动查找对应的C码。但此时由于第一传输通道的时延较大,C码尚未到达。当接收设备接收到来自第一传输通道的1号数据块、2号数据块以及C码后,接收设备便可以通过映射关系查找到与S码对应的C码。A: As shown in Figure 10, when the delay of the first transmission channel is greater than that of the second transmission channel, the receiving device will first receive the second signal frame from the second transmission channel, including the No. 3 data block and No. 4 data block and size S. After the receiving device receives the S code, it will start to search for the corresponding C code. However, at this time, the C code has not yet arrived due to the large delay of the first transmission channel. After the receiving device receives the No. 1 data block, the No. 2 data block and the C code from the first transmission channel, the receiving device can find the C code corresponding to the S code through the mapping relationship.
由于1号数据块、2号数据块和C码同属于第一信号帧(C,2,1),而3号数据块、4号数据块和S码同属于第二信号帧(4,3,S)。经过S码对C码的查找,接收设备便可以确定第一信号帧(C,2,1),与第二信号帧(4,3,S)属于同一业务的数据。此时,接收设备根据C码和S码对第一信号帧和第二信号帧进行对齐后排序,得到(4,3,S,C,2,1)。同时,由于本实施例中,校验块的作用在于辅助第一数据块和第二数据块完成排序,校验块中并不承载业务数据。因此接收设备所输出C码和S码是没有意义的,即目标 信号帧中,并不需要校验块的存在,目标信号帧中只包括数据块(4,3,2,1)。Since the No. 1 data block, No. 2 data block and C code belong to the first signal frame (C, 2, 1), and No. 3 data block, No. 4 data block and S code belong to the second signal frame (4, 3 , S). After the S code searches the C code, the receiving device can determine that the first signal frame (C, 2, 1) and the second signal frame (4, 3, S) belong to the data of the same service. At this time, the receiving device aligns the first signal frame and the second signal frame according to the C code and the S code, and then sorts them to obtain (4, 3, S, C, 2, 1). Meanwhile, in this embodiment, the function of the check block is to assist the first data block and the second data block to complete sorting, and the check block does not carry service data. Therefore, the C code and S code output by the receiving device are meaningless, that is, in the target signal frame, the existence of the check block is not required, and the target signal frame only includes the data block (4, 3, 2, 1).
本申请中,由于接收设备对第一数据块和第二数据块进行排序得到的目标信号帧,包括了完整、排序正确的业务数据,所以接收设备可以对目标信号帧进行输出。In this application, since the target signal frame obtained by the receiving device sorting the first data block and the second data block includes complete and correctly ordered service data, the receiving device can output the target signal frame.
B:如图11所示,当第二传输通道的时延大于第一传输通道时,接收设备会先接收到来自第一传输通道的第一信号帧,包括1号数据块、2号数据块和C码。由于本申请以S码查找C码的单向查找方式为示例,因此当接收设备先接收到C码后,还需要等待接收S码。当接收设备接收到来自第二传输通道的3号数据块、4号数据块以及S码后,接收设备便可以通过映射关系,利用S码查找对应的C码。具体的排序第一数据块和第二数据块的方式,可以参照步骤804中场景A的描述,此处不再赘述。B: As shown in Figure 11, when the delay of the second transmission channel is greater than that of the first transmission channel, the receiving device will first receive the first signal frame from the first transmission channel, including the No. 1 data block and No. 2 data block and C code. Since the present application takes the one-way search method of searching for the C code from the S code as an example, after the receiving device first receives the C code, it still needs to wait for the S code to be received. After the receiving device receives the No. 3 data block, the No. 4 data block and the S code from the second transmission channel, the receiving device can use the S code to find the corresponding C code through the mapping relationship. For a specific way of sorting the first data block and the second data block, reference may be made to the description of the scenario A in step 804, which will not be repeated here.
考虑到实际应用中,第一传输通道和第二传输通道之间的时延差距的问题,本申请方案,可以在接收设备中设置适当的缓存,解决时延带来的影响。Considering the problem of the delay gap between the first transmission channel and the second transmission channel in practical applications, in the solution of the present application, an appropriate buffer can be set in the receiving device to solve the impact of the delay.
805、断开第一传输通道;805. Disconnect the first transmission channel;
接收设备得到目标信号帧之后,说明业务数据的切换已经完成。该发送设备与接收设备之间,后续的业务数据,已经可以通过第二传输通道,进行传输。所以,可以对原有的第一传输通道进行断开。After the receiving device obtains the target signal frame, it indicates that the switching of service data has been completed. Between the sending device and the receiving device, subsequent service data can already be transmitted through the second transmission channel. Therefore, the original first transmission channel can be disconnected.
806、接收设备和发送设备之间,通过第二传输通道传输其他信号帧;806. Between the receiving device and the sending device, transmit other signal frames through the second transmission channel;
此时切断原有的第一传输通道,新建的第二传输通道仍然可以承载后续的业务数据,因此不会有业务数据中断的情况。At this time, the original first transmission channel is cut off, and the newly created second transmission channel can still carry subsequent service data, so there will be no interruption of service data.
本实施例中,当需要对原有的传输通道进行切换时,可以先创建一条新的传输通道,并通过两条传输通道分别传输第一信号帧和第二信号帧。其中,第一信号帧包括第一校验块,第二信号帧包括第二校验块。当接收设备接收到来自两条传输通道的信号帧之后,通过第一校验块和第二校验块的映射关系,对第一数据块和第二数据块进行排序,得到目标信号帧。由于此时两条传输通道都可以承载接收设备和发送设备之间的业务数据,因此断开原有的第一传输通道后,后续的业务数据仍然可以继续通过第二传输通道进行传输,避免了业务数据中断的情况。In this embodiment, when the original transmission channel needs to be switched, a new transmission channel may be created first, and the first signal frame and the second signal frame are respectively transmitted through the two transmission channels. The first signal frame includes a first check block, and the second signal frame includes a second check block. After receiving the signal frame from the two transmission channels, the receiving device sorts the first data block and the second data block according to the mapping relationship between the first check block and the second check block to obtain the target signal frame. Since both transmission channels can carry service data between the receiving device and the sending device at this time, after the original first transmission channel is disconnected, subsequent service data can still continue to be transmitted through the second transmission channel, avoiding the need for Business data outages.
二、第一校验块与第二数据块进行互相查找,完成数据块之间的排序。2. The first check block and the second data block search each other to complete the sorting between the data blocks.
本实施例所提供的处理流程,与图8所对应的实施例相类似。下面基于图8,对本实施例所提供的另一种信号帧的处理方法进行描述。在该示例中,信号帧的处理方法包括如下步骤。The processing flow provided in this embodiment is similar to the embodiment corresponding to FIG. 8 . The following describes another signal frame processing method provided by this embodiment based on FIG. 8 . In this example, the processing method of the signal frame includes the following steps.
901、建立接收设备与发送设备之间的第二传输通道;901. Establish a second transmission channel between the receiving device and the sending device;
902、发送设备通过第一传输通道向接收设备发送第一信号帧;902. The sending device sends the first signal frame to the receiving device through the first transmission channel;
903、发送设备通过第二传输通道向接收设备发送第二信号帧;903. The sending device sends a second signal frame to the receiving device through the second transmission channel;
本实施例中步骤901至903与前述步骤801至803类似,具体此处不做赘述。需要说明的是,本实施例中,除了第一校验块与第二校验块之间存在映射关系之外,第一信号帧中的第一校验块与第二信号帧中的第二数据块也存在映射关系。校验块与数据块之间的映射关系,具体可以参考步骤803中A小节至G小节所述的内容。同时,第一校验块需要包括与第二数据块相同的业务数据。即第一信号帧中的数据块和校验块为(C 4,C 3,2,1),第二信号帧中的数据块和校验块为(4,3,S,S)。其中C 4码为4号数据块的校验码,C 4 码的净荷等于4号数据块的净荷;C 3码为3号数据块的校验码,C 3码的净荷等于3号数据块的净荷。本实施例发送设备与接收设备之间具体的交互场景,可参阅图12或图13。 Steps 901 to 903 in this embodiment are similar to the foregoing steps 801 to 803, and details are not described here. It should be noted that, in this embodiment, in addition to the mapping relationship between the first check block and the second check block, the first check block in the first signal frame and the second check block in the second signal frame There is also a mapping relationship between data blocks. For the mapping relationship between the check block and the data block, specific reference may be made to the contents described in subsections A to G in step 803 . Meanwhile, the first check block needs to include the same service data as the second data block. That is, the data block and check block in the first signal frame are (C 4 , C 3 , 2, 1), and the data block and check block in the second signal frame are (4, 3, S, S). The C 4 code is the check code of the No. 4 data block, the payload of the C 4 code is equal to the payload of the No. 4 data block; the C 3 code is the check code of the No. 3 data block, and the payload of the C 3 code is equal to 3 The payload of the numbered data block. For a specific interaction scenario between the sending device and the receiving device in this embodiment, reference may be made to FIG. 12 or FIG. 13 .
同样地,接收设备基于上述映射关系,可以实现校验块与数据块之间的双向查找。即可以通过C 4码、C 3码查找4号、3号数据块,也可以通过4号、3号数据块查找C 4码、C 3码。为了便于描述,本实施例以及后续实施例中,以通过C 4码、C 3码查找4号、3号数据块的单向查找方式为例,进行阐述。 Likewise, the receiving device can implement a two-way search between the check block and the data block based on the above-mentioned mapping relationship. That is, the data blocks No. 4 and 3 can be searched through the C 4 code and the C 3 code, and the C 4 code and the C 3 code can also be searched through the No. 4 and No. 3 data blocks. For the convenience of description, in this embodiment and subsequent embodiments, the unidirectional search manner of searching for the No. 4 and No. 3 data blocks by using the C 4 code and the C 3 code is used as an example for description.
904、接收设备对第一数据块和第二数据块进行排序,得到目标信号帧;904. The receiving device sorts the first data block and the second data block to obtain a target signal frame;
步骤904与步骤804类似,在实际应用中,由于两条传输通道,往往时延不同,因此会造成接收设备接收到第一信号帧以及第二信号帧的时序不同,一般会有两种情况。下面结合附图分别进行说明:Step 904 is similar to step 804. In practical applications, because the two transmission channels often have different time delays, the receiving device may receive different timings of the first signal frame and the second signal frame. Generally, there are two situations. The following descriptions are given in conjunction with the accompanying drawings:
A:如图12所示,当第一传输通道的时延大于第二传输通道时,接收设备会先接收到来自第二传输通道的第二信号帧,包括3号数据块、4号数据块和两个S码。以通过C 4码、C 3码查找4号、3号数据块的单向查找方式为例,接收设备接收到4号和3号数据块后,需要先通过两个S码启动查找对应的C 4码和C 3码。但此时由于第一传输通道的时延较大,C 4码和C 3码尚未到达。当接收设备接收到来自第一传输通道的1号数据块、2号数据块C 4码和C 3码后,接收设备便可以通过映射关系查找到与S码对应的C 4码和C 3码。 A: As shown in Figure 12, when the delay of the first transmission channel is greater than that of the second transmission channel, the receiving device will first receive the second signal frame from the second transmission channel, including the No. 3 data block and No. 4 data block and two S sizes. Taking the one-way search method of searching for data blocks No. 4 and No. 3 through C 4 code and C 3 code as an example, after receiving the No. 4 and No. 3 data blocks, the receiving device needs to start the search for the corresponding C through two S codes. 4 yards and C 3 yards. But at this time, due to the large delay of the first transmission channel, the C 4 code and the C 3 code have not yet arrived. After the receiving device receives the No. 1 data block, No. 2 data block C 4 code and C 3 code from the first transmission channel, the receiving device can find the C 4 code and C 3 code corresponding to the S code through the mapping relationship .
由于1号数据块、2号数据块、C 4码和C 3码同属于第一信号帧(C 4,C 3,2,1),而3号数据块、4号数据块和两个S码同属于第二信号帧(4,3,S,S)。经过S码对C码的查找,接收设备便可以确定第一信号帧(C 4,C 3,2,1),与第二信号帧(4,3,S,S)属于同一业务的数据。由于C 4码、C 3码和4号数据块、3号数据块存在映射关系,此时,接收设备根据C 4码和C 3码对齐所对应的4号数据块和3号数据块,得到(4,3,C 4,C 3,2,1)。同时,由于本实施例中,校验块的作用在于辅助第一数据块和第二数据块完成排序。因此接收设备是不需要输出C 4码和C 3码的,即目标信号帧中,并不需要校验块的存在,目标信号帧中只包括数据块(4,3,2,1)。 Since the No. 1 data block, No. 2 data block, C 4 code and C 3 code belong to the first signal frame (C 4 , C 3 , 2, 1), the No. 3 data block, No. 4 data block and two S The codes all belong to the second signal frame (4, 3, S, S). After the S code searches the C code, the receiving device can determine that the first signal frame (C 4 , C 3 , 2, 1) and the second signal frame (4, 3, S, S) belong to the same service data. Since the C4 code, the C3 code and the No.4 data block and the No.3 data block have a mapping relationship, at this time, the receiving device aligns the corresponding No.4 data block and No.3 data block according to the C4 code and the C3 code, and obtains ( 4,3 , C4 , C3, 2,1). Meanwhile, in this embodiment, the function of the check block is to assist the first data block and the second data block to complete the sorting. Therefore, the receiving device does not need to output the C 4 code and the C 3 code, that is, the target signal frame does not need the existence of the check block, and the target signal frame only includes the data block (4, 3, 2, 1).
本申请中,由于接收设备对第一数据块和第二数据块进行排序得到的目标信号帧,包括了完整、排序正确的业务数据,所以接收设备可以对目标信号帧进行输出。In this application, since the target signal frame obtained by the receiving device sorting the first data block and the second data block includes complete and correctly ordered service data, the receiving device can output the target signal frame.
B:如图13所示,当第二传输通道的时延大于第一传输通道时,接收设备会先接收到来自第一传输通道的第一信号帧,包括1号数据块、2号数据块、C 4码和C 3码。当接收设备先接收到C 4码和C 3码后,可以直接启动查找对应的4号数据块和3号数据块。但此时由于第二传输通道的时延较大,4号数据块和3号数据块尚未到达。当接收设备接收到来自第二传输通道的4号数据块和3号数据块和两个S码后,接收设备可通过映射关系查找到与C 4码和C 3码对应的4号数据块和3号数据块,并完成排序,得到(4,3,C 4,C 3,2,1)。同理,接收设备不需要对校验码进行输出,因此目标信号帧中只包括数据块(4,3,2,1)。 B: As shown in Figure 13, when the delay of the second transmission channel is greater than that of the first transmission channel, the receiving device will first receive the first signal frame from the first transmission channel, including the No. 1 data block and No. 2 data block , C 4 and C 3 . After receiving the C 4 code and the C 3 code first, the receiving device can directly start to search for the corresponding No. 4 data block and No. 3 data block. However, at this time, due to the large delay of the second transmission channel, the No. 4 data block and the No. 3 data block have not yet arrived. After the receiving device receives the No. 4 data block, No. 3 data block and two S codes from the second transmission channel, the receiving device can find the No. 4 data block and the No. 4 data block corresponding to the C 4 code and the C 3 code through the mapping relationship. Data block No. 3, and complete the sorting, get (4, 3, C 4 , C 3 , 2, 1). Similarly, the receiving device does not need to output the check code, so the target signal frame only includes data blocks (4, 3, 2, 1).
需要说明的是,在本示例的步骤904的B小节中,在接收设备先接收到第一信号帧的情况下,可以直接通过第一校验块直接查找到第二数据块,并且进行排序,针对这种情况下,是不需要用到第二信号帧中的校验块的。It should be noted that, in subsection B of step 904 of this example, in the case that the receiving device receives the first signal frame first, the second data block can be directly searched through the first check block, and sorted, In this case, the check block in the second signal frame does not need to be used.
905、断开第一传输通道;905. Disconnect the first transmission channel;
906、接收设备和发送设备之间,通过第二传输通道传输其他信号帧;906. Between the receiving device and the sending device, transmit other signal frames through the second transmission channel;
本实施例中步骤905和906与前述步骤805和806类似,具体此处不做赘述。Steps 905 and 906 in this embodiment are similar to the foregoing steps 805 and 806, and details are not described here.
本实施例中,第一信号帧中的第一校验块包括了第二信号帧中第二数据块的业务数据,因此,当本示例在实施过程中发生第二信号帧中的第二数据块丢失时,可以通过第一校验块进行替代,将第一校验块作为业务数据进行输出,提升了方案的可靠性。In this embodiment, the first check block in the first signal frame includes service data of the second data block in the second signal frame. Therefore, when the second data block in the second signal frame occurs during the implementation of this example, When the block is lost, it can be replaced by the first check block, and the first check block is output as service data, which improves the reliability of the solution.
图14为本申请实施例提供的一种接收设备。该接收设备可以为上述图8、图10至图13中任一描述的接收设备。该接收设备包括:接收单元1401和处理单元1402。其中,接收单元1401用于通过第一传输通道接收来自发送设备的第一信号帧,其中第一信号帧包括了第一校验块以及承载业务数据的第一数据块。接收单元1401还可以通过第二传输通道接收来自所述发送设备的第二信号帧,其中第二信号帧包括第二数据块。同时,该第一校验块和第二信号帧之间可以存在映射关系。关于接收单元1401的作用的具体实现方式,可参考图8所示的步骤802和步骤803,或步骤902和步骤903,具体此处不再赘述。FIG. 14 is a receiving device provided by an embodiment of the present application. The receiving device may be the receiving device described in any of the above-mentioned FIG. 8 , FIG. 10 to FIG. 13 . The receiving device includes: a receiving unit 1401 and a processing unit 1402 . The receiving unit 1401 is configured to receive a first signal frame from a sending device through a first transmission channel, where the first signal frame includes a first check block and a first data block carrying service data. The receiving unit 1401 may also receive a second signal frame from the sending device through the second transmission channel, where the second signal frame includes a second data block. At the same time, there may be a mapping relationship between the first check block and the second signal frame. For the specific implementation of the function of the receiving unit 1401, reference may be made to steps 802 and 803 shown in FIG. 8, or steps 902 and 903, and details are not repeated here.
处理单元1402,用于根据上述映射关系对第一数据块和第二数据块进行排序,得到目标信号帧。发送设备发送第一信号帧和第二信号帧的顺序与业务数据的顺序是相同的,因此所得到的目标信号帧中,第一数据块和第二数据块的排列顺序也应当等于所第一信号帧和第二信号帧的发送顺序。关于处理单元1402的作用的具体实现方式,可参考图8所示的步骤804或步骤904,具体此处不再赘述。The processing unit 1402 is configured to sort the first data block and the second data block according to the above-mentioned mapping relationship to obtain a target signal frame. The order in which the sending device sends the first signal frame and the second signal frame is the same as the order of the service data. Therefore, in the obtained target signal frame, the arrangement order of the first data block and the second data block should also be equal to the first data block. The transmission order of the signal frame and the second signal frame. For a specific implementation manner of the function of the processing unit 1402, reference may be made to step 804 or step 904 shown in FIG. 8, and details are not repeated here.
本实施例中,第一校验块与第二信号帧之间的映射关系,可参照图8所示的步骤802至步骤803以及步骤902至903的相关描述,此处不再赘述。In this embodiment, for the mapping relationship between the first check block and the second signal frame, reference may be made to the related descriptions of steps 802 to 803 and steps 902 to 903 shown in FIG. 8 , and details are not repeated here.
可选地,处理单元1402还可以先根据第一映射关系查找到与第二校验块对应的第一校验块。再根据所述第二映射关系查找到与该第一校验块对应的第二数据块,并且对第一数据块和第二数据块进行排序。具体实现方式可参考步骤904,此处不再赘述。Optionally, the processing unit 1402 may first search for the first check block corresponding to the second check block according to the first mapping relationship. Then, according to the second mapping relationship, a second data block corresponding to the first check block is found, and the first data block and the second data block are sorted. For a specific implementation manner, reference may be made to step 904, which will not be repeated here.
可选地,当第一传输通道或第二传输通道被断开后,接收设备与发送设备之间仍然保留有至少一条传输通道。因此,接收单元1401仍然可以通过未被断开的传输通道接收来自发送设备的第三信号帧。所述第三信号帧是在第一信号帧和第二信号帧之后传输的信号帧。具体实现方式,可参考本申请实施例步骤805或步骤905的相关描述,此处不再赘述。Optionally, after the first transmission channel or the second transmission channel is disconnected, at least one transmission channel still remains between the receiving device and the sending device. Therefore, the receiving unit 1401 can still receive the third signal frame from the sending device through the undisconnected transmission channel. The third signal frame is a signal frame transmitted after the first signal frame and the second signal frame. For a specific implementation manner, reference may be made to the relevant description of step 805 or step 905 in this embodiment of the present application, and details are not repeated here.
本实施例中,接收设备可以执行前述图8中任一项所示实施例中接收设备所执行的操作,具体此处不再赘述。In this embodiment, the receiving device may perform the operations performed by the receiving device in any of the foregoing embodiments shown in FIG. 8 , and details are not repeated here.
图15为本申请实施例提供的一种发送设备。该发送设备可以为上述图8、图10至图13中任一所述的发送设备。该发送设备包括:第一发送单元1501和第二发送单元1502。其中,第一发送单元1501用于通过第一传输通道向接收设备发送第一信号帧。其中第一信号帧包括了第一校验块以及承载业务数据的第一数据块。第二发送单元1502用于通过第二传输通道向接收设备发送第二信号帧,所述第二信号帧包括第二数据块。同时,第一校验块和第二信号帧之间可以存在映射关系。该映射关系用于接收设备对第一数据块和第二数据块进行排序,得到目标信号帧。发送设备发送第一信号帧和第二信号帧的顺序与业务数据的顺序是相同的。因此,所得到的目标信号帧中,第一数据块和第二数据块的排列顺序也应当等于所第一信号帧和第二信号帧的发送顺序。具体实现方式,可参考图8所示 的步骤802和步骤803,或步骤902和步骤903,具体此处不再赘述。FIG. 15 is a sending device provided by an embodiment of the present application. The sending device may be the sending device described in any of the above-mentioned FIG. 8 and FIG. 10 to FIG. 13 . The sending device includes: a first sending unit 1501 and a second sending unit 1502 . The first sending unit 1501 is configured to send the first signal frame to the receiving device through the first transmission channel. The first signal frame includes a first check block and a first data block carrying service data. The second sending unit 1502 is configured to send a second signal frame to the receiving device through the second transmission channel, where the second signal frame includes a second data block. Meanwhile, there may be a mapping relationship between the first check block and the second signal frame. The mapping relationship is used by the receiving device to sort the first data block and the second data block to obtain the target signal frame. The sequence in which the sending device sends the first signal frame and the second signal frame is the same as the sequence of the service data. Therefore, in the obtained target signal frame, the arrangement order of the first data block and the second data block should also be equal to the transmission order of the first signal frame and the second signal frame. For a specific implementation manner, reference may be made to steps 802 and 803 shown in FIG. 8 , or steps 902 and 903, and details are not repeated here.
本实施例中,第一校验块与第二信号帧之间的映射关系,具体可参照图8所示步骤802至步骤803以及步骤902至903的相关描述,此处不再赘述。In this embodiment, for the mapping relationship between the first check block and the second signal frame, reference may be made to the related descriptions of steps 802 to 803 and steps 902 to 903 shown in FIG. 8 , and details are not repeated here.
可选地,当第一传输通道或第二传输通道被断开后,接收设备与发送设备之间仍然保留有至少一条传输通道。因此,发送设备仍然可以通过未被断开的传输通道向接收设备发送第三信号帧。所述第三信号帧指的是在第一信号帧和第二信号帧之后传输的信号帧。具体实现方式,请参考步骤805或步骤905的相关描述,此处不再赘述。Optionally, after the first transmission channel or the second transmission channel is disconnected, at least one transmission channel still remains between the receiving device and the sending device. Therefore, the sending device can still send the third signal frame to the receiving device through the undisconnected transmission channel. The third signal frame refers to a signal frame transmitted after the first signal frame and the second signal frame. For a specific implementation manner, please refer to the relevant description of step 805 or step 905, which will not be repeated here.
本实施例中,发送设备可以执行前述图8中任一项所示实施例中发送设备所执行的操作,具体此处不再赘述。In this embodiment, the sending device may perform the operations performed by the sending device in any of the foregoing embodiments shown in FIG. 8 , and details are not described herein again.
图16为一种可能的光传输设备的结构示意图。该光传输设备包括芯片1601、光收发器1602。可选的,该光传输设备还可以包括存储器(图中未示出)。该芯片1601、光收发器1602和存储器通过线路相互连接。其中,存储器用于存储程序指令和数据。需要说明的是,该光传输设备可以是图14所述的接收设备,或图15所述的发送设备。FIG. 16 is a schematic structural diagram of a possible optical transmission device. The optical transmission device includes a chip 1601 and an optical transceiver 1602 . Optionally, the optical transmission device may further include a memory (not shown in the figure). The chip 1601, the optical transceiver 1602 and the memory are connected to each other by wires. Among them, the memory is used to store program instructions and data. It should be noted that the optical transmission device may be the receiving device described in FIG. 14 or the sending device described in FIG. 15 .
在实际应用中,芯片1601和光收发器1602具体可以位于图4所示的支路板404或线路板405中,光收发器1602用于执行上述图8所示步骤中信号帧的收发操作。芯片1601用于执行上述图8所示步骤中除了信号帧收发之外的其他操作。In practical applications, the chip 1601 and the optical transceiver 1602 may be specifically located in the tributary board 404 or the circuit board 405 shown in FIG. 4 , and the optical transceiver 1602 is used to perform the transceiving operation of the signal frame in the steps shown in FIG. 8 . The chip 1601 is configured to perform other operations in the steps shown in FIG. 8 above except for signal frame transmission and reception.
图17为本申请实施例提供的一种芯片的结构示意图。该芯片中集成了用于实现上述芯片1601的功能的处理器1701和一个或者多个通信接口1702。当该芯片中集成了存储器时(图中未示出),该芯片可以完成前述实施例中的任一个或多个实施例的方法步骤。当该芯片中未集成存储器时,可以通过接口与外置的存储器连接。该芯片根据外置的存储器中存储的程序代码来实现上述实施例中光传输设备执行的动作。FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application. The chip integrates a processor 1701 and one or more communication interfaces 1702 for realizing the functions of the above-mentioned chip 1601 . When a memory is integrated in the chip (not shown in the figure), the chip may perform the method steps of any one or more of the foregoing embodiments. When the memory is not integrated in the chip, it can be connected with the external memory through the interface. The chip implements the actions performed by the optical transmission device in the above embodiment according to the program codes stored in the external memory.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的。例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implement. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。本申请各个实施例中的处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或其他可编程逻辑器件、分立门 或晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或任何常规的处理器等。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-only memory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. The processors in various embodiments of the present application may be general-purpose processors, digital signal processors, application specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general purpose processor may be a microprocessor or any conventional processor or the like. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk and other media that can store program codes .

Claims (22)

  1. 一种信号帧的处理方法,其特征在于,所述方法包括:A method for processing signal frames, characterized in that the method comprises:
    接收设备通过第一传输通道接收来自发送设备的第一信号帧,所述第一信号帧包括第一数据块和第一校验块;The receiving device receives a first signal frame from the sending device through the first transmission channel, where the first signal frame includes a first data block and a first check block;
    所述接收设备通过第二传输通道接收来自所述发送设备的第二信号帧,所述第二信号帧包括第二数据块,所述第一校验块和所述第二信号帧存在映射关系;The receiving device receives a second signal frame from the sending device through the second transmission channel, the second signal frame includes a second data block, and there is a mapping relationship between the first check block and the second signal frame ;
    所述接收设备根据所述映射关系对所述第一数据块和所述第二数据块进行排序,得到目标信号帧,所述第一数据块和所述第二数据块的排列顺序等于所述第一信号帧和所述第二信号帧的发送顺序。The receiving device sorts the first data block and the second data block according to the mapping relationship to obtain a target signal frame, and the sorting order of the first data block and the second data block is equal to the The transmission order of the first signal frame and the second signal frame.
  2. 根据权利要求1所述的方法,其特征在于,所述第二信号帧还包括第二校验块,所述第一校验块和所述第二信号帧存在映射关系包括:The method according to claim 1, wherein the second signal frame further comprises a second check block, and a mapping relationship between the first check block and the second signal frame comprises:
    所述第一校验块和所述第二校验块存在第一映射关系。The first check block and the second check block have a first mapping relationship.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一校验块的净荷等于所述第二数据块的净荷,所述第一校验块和所述第二信号帧存在映射关系包括:The method according to claim 1 or 2, wherein the payload of the first check block is equal to the payload of the second data block, and the first check block and the second signal frame Existing mapping relationships include:
    所述第一校验块和所述第二数据块存在第二映射关系。The first check block and the second data block have a second mapping relationship.
  4. 根据权利要求3所述的方法,其特征在于,所述接收设备根据所述映射关系对所述第一数据块和所述第二数据块进行排序包括:The method according to claim 3, wherein the receiving device sorting the first data block and the second data block according to the mapping relationship comprises:
    所述接收设备根据所述第一映射关系确定所述第二校验块对应的所述第一校验块;The receiving device determines, according to the first mapping relationship, the first check block corresponding to the second check block;
    所述接收设备根据所述第二映射关系确定所述第一校验块对应的所述第二数据块;The receiving device determines, according to the second mapping relationship, the second data block corresponding to the first check block;
    所述接收设备对所述第一数据块和所述第二数据块进行排序。The receiving device sorts the first data block and the second data block.
  5. 根据权力要求1至4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    若所述第一传输通道或所述第二传输通道被断开,所述接收设备通过未被断开的传输通道接收来自发送设备的第三信号帧,所述第三信号帧为在所述第一信号帧和第二信号帧之后传输的信号帧。If the first transmission channel or the second transmission channel is disconnected, the receiving device receives a third signal frame from the sending device through the undisconnected transmission channel, and the third signal frame is in the The signal frame transmitted after the first signal frame and the second signal frame.
  6. 根据权利要求2至4中任一项所述的方法,其特征在于,所述第一映射关系包括:The method according to any one of claims 2 to 4, wherein the first mapping relationship comprises:
    所述第一校验块的净荷与所述第二校验块的净荷相同。The payload of the first parity block is the same as the payload of the second parity block.
  7. 根据权利要求2至4中任一项所述的方法,其特征在于,所述第一映射关系包括:The method according to any one of claims 2 to 4, wherein the first mapping relationship comprises:
    所述第一校验块的特定区域的净荷与所述第二校验块的特定区域的净荷相同。The payload of the specific area of the first parity block is the same as the payload of the specific area of the second parity block.
  8. 根据权利要求2至4中任一项所述的方法,其特征在于,所述第一映射关系包括:所述第一校验块中有效值域的值等于所述第二校验块的循环冗余校验CRC算法的校验和。The method according to any one of claims 2 to 4, wherein the first mapping relationship comprises: the value of the valid value range in the first check block is equal to the cycle of the second check block The checksum of the redundancy check CRC algorithm.
  9. 根据权利要求3或4所述的方法,其特征在于,所述第二映射关系包括:所述第一校验块中有效值域的值等于所述第二数据块的CRC算法的校验和。The method according to claim 3 or 4, wherein the second mapping relationship comprises: a value of a valid value field in the first check block is equal to a checksum of a CRC algorithm of the second data block .
  10. 一种信号帧的处理方法,其特征在于,所述方法包括:A method for processing signal frames, characterized in that the method comprises:
    发送设备通过第一传输通道向所述接收设备发送第一信号帧,所述第一信号帧包括第一数据块和第一校验块;The sending device sends a first signal frame to the receiving device through the first transmission channel, where the first signal frame includes a first data block and a first check block;
    所述发送设备通过所述第二传输通道向所述接收设备发送第二信号帧,所述第二信号帧包括第二数据块,所述第一校验块和所述第二信号帧存在映射关系,所述映射关系用于所述接收设备对所述第一数据块和所述第二数据块进行排序,得到目标信号帧,所述第一 数据块和所述第二数据块的排列顺序等于所述第一信号帧和所述第二信号帧的发送顺序。The sending device sends a second signal frame to the receiving device through the second transmission channel, where the second signal frame includes a second data block, and there is a mapping between the first check block and the second signal frame The mapping relationship is used by the receiving device to sort the first data block and the second data block to obtain a target signal frame, and the arrangement order of the first data block and the second data block Equal to the transmission order of the first signal frame and the second signal frame.
  11. 根据权利要求10所述的方法,其特征在于,所述第二信号帧还包括第二校验块,所述第一校验块和所述第二信号帧存在映射关系包括:所述第一校验块和所述第二校验块存在第一映射关系。The method according to claim 10, wherein the second signal frame further comprises a second check block, and a mapping relationship between the first check block and the second signal frame comprises: the first check block The check block and the second check block have a first mapping relationship.
  12. 根据权利要求10或11所述的方法,其特征在于,所述第一校验块的净荷等于所述第二数据块的净荷,所述第一校验块和所述第二信号帧存在映射关系包括:所述第一校验块和所述第二数据块存在第二映射关系。The method according to claim 10 or 11, wherein the payload of the first check block is equal to the payload of the second data block, the first check block and the second signal frame The existence of a mapping relationship includes: a second mapping relationship exists between the first check block and the second data block.
  13. 根据权利要求10至12中任一项所述的方法,其特征在于,所述方法还包括:若所述第一传输通道或所述第二传输通道被断开,所述发送设备通过未被断开的传输通道向所述接收设备发送第三信号帧,所述第三信号帧为在所述第一信号帧和第二信号帧之后传输的信号帧。The method according to any one of claims 10 to 12, wherein the method further comprises: if the first transmission channel or the second transmission channel is disconnected, the sending device passes the The disconnected transmission channel sends a third signal frame to the receiving device, where the third signal frame is a signal frame transmitted after the first signal frame and the second signal frame.
  14. 根据权利要求11所述的方法,其特征在于,所述第一映射关系包括:所述第一校验块的净荷与所述第二校验块的净荷相同。The method according to claim 11, wherein the first mapping relationship comprises: the payload of the first check block is the same as the payload of the second check block.
  15. 根据权利要求11所述的方法,其特征在于,所述第一映射关系包括:所述第一校验块的特定区域的净荷与所述第二校验块的特定区域的净荷相同。The method according to claim 11, wherein the first mapping relationship comprises: the payload of the specific area of the first parity block is the same as the payload of the specific area of the second parity block.
  16. 根据权利要求11所述的方法,其特征在于,所述第一映射关系包括:所述第一校验块中有效值域的值等于所述第二校验块的循环冗余校验CRC算法的校验和。The method according to claim 11, wherein the first mapping relationship comprises: a value of a valid value field in the first check block is equal to a cyclic redundancy check (CRC) algorithm of the second check block checksum.
  17. 根据权利要求12所述的方法,其特征在于,所述第二映射关系包括:所述第一校验块中有效值域的值等于所述第二数据块的CRC算法的校验和。The method according to claim 12, wherein the second mapping relationship comprises: a value of a valid value field in the first check block is equal to a checksum of a CRC algorithm of the second data block.
  18. 一种芯片,其特征在于,所述芯片包括处理器和收发接口,所述收发接口和所述处理器通过线路互相连接,所述收发接口用于接收如权利要求1至9任一所述的第一信号帧、第二信号帧以及第三信号帧,所述处理器用于将所述收发接口获取到的所述第一信号帧、所述第二信号帧以及所述第三信号帧进行处理,执行如权利要求1至9中任一项所述的方法。A chip, characterized in that the chip includes a processor and a transceiver interface, the transceiver interface and the processor are connected to each other through a line, and the transceiver interface is used to receive the transceiver according to any one of claims 1 to 9. a first signal frame, a second signal frame, and a third signal frame, and the processor is configured to process the first signal frame, the second signal frame, and the third signal frame acquired by the transceiver interface , performing the method as claimed in any one of claims 1 to 9.
  19. 一种芯片,其特征在于,所述芯片包括处理器和收发接口,所述收发接口和所述处理器通过线路互相连接,所述处理器用于执行如权利要求10至17中任一项所述的方法,所述收发接口用于发送如权利要求10至17任一所述的第一信号帧、第二信号帧以及第三信号帧。A chip, characterized in that the chip includes a processor and a transceiver interface, the transceiver interface and the processor are connected to each other through a line, and the processor is configured to execute the method described in any one of claims 10 to 17 method, wherein the transceiver interface is used for sending the first signal frame, the second signal frame and the third signal frame according to any one of claims 10 to 17.
  20. 一种光网络设备,其特征在于,包括:芯片以及光收发器,所述芯片以及所述光收发器通过线路互相连接;所述芯片用于执行如权利要求1至9中任一项所述的方法。An optical network device, characterized in that it includes: a chip and an optical transceiver, the chip and the optical transceiver are connected to each other through a line; Methods.
  21. 一种光网络设备,其特征在于,包括:芯片和光收发器,所述芯片以及所述光收发器通过线路互相连接;An optical network device, comprising: a chip and an optical transceiver, wherein the chip and the optical transceiver are connected to each other through lines;
    所述芯片用于执行如权利要求10至17中任一项所述的方法。The chip is used to perform the method as claimed in any one of claims 10 to 17.
  22. 一种光网络系统,其特征在于,所述光网络系统包括权利要求1至9中任一项所述的接收设备和权利要求10至17中任一项所述的发送设备。An optical network system, characterized in that the optical network system comprises the receiving device according to any one of claims 1 to 9 and the sending device according to any one of claims 10 to 17 .
PCT/CN2021/130638 2020-11-27 2021-11-15 Signal frame processing method and related device WO2022111323A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011364406.X 2020-11-27
CN202011364406.XA CN114567410A (en) 2020-11-27 2020-11-27 Signal frame processing method and related equipment

Publications (1)

Publication Number Publication Date
WO2022111323A1 true WO2022111323A1 (en) 2022-06-02

Family

ID=81711328

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130638 WO2022111323A1 (en) 2020-11-27 2021-11-15 Signal frame processing method and related device

Country Status (2)

Country Link
CN (1) CN114567410A (en)
WO (1) WO2022111323A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741703A (en) * 2008-11-25 2010-06-16 华为技术有限公司 Method and system for realizing multi-service transmitting network transmission channel
CN103916375A (en) * 2013-01-09 2014-07-09 中国科学院声学研究所 HFC network downlink data multi-channel packaging and transmitting method
CN111130686A (en) * 2018-11-01 2020-05-08 海思光电子有限公司 Service data processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309530B (en) * 2017-07-28 2023-08-01 中兴通讯股份有限公司 Data transmission method and device
JP2021503213A (en) * 2017-11-17 2021-02-04 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Data transmission method and equipment
CN110769377B (en) * 2018-07-25 2021-10-01 华为技术有限公司 Communication method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741703A (en) * 2008-11-25 2010-06-16 华为技术有限公司 Method and system for realizing multi-service transmitting network transmission channel
CN103916375A (en) * 2013-01-09 2014-07-09 中国科学院声学研究所 HFC network downlink data multi-channel packaging and transmitting method
CN111130686A (en) * 2018-11-01 2020-05-08 海思光电子有限公司 Service data processing method and device

Also Published As

Publication number Publication date
CN114567410A (en) 2022-05-31

Similar Documents

Publication Publication Date Title
AU2003298814B2 (en) Method for verifying function of redundant standby packet forwarder
CN105791214B (en) Method and equipment for converting RapidIO message and Ethernet message
US9825809B2 (en) Dynamically configuring store-and-forward channels and cut-through channels in a network-on-chip
US9825844B2 (en) Network topology of hierarchical ring with recursive shortcuts
WO2020164229A1 (en) Network topology abstraction method and system of flexible ethernet for sdn controller
CN106717111A (en) Method, device, and system for receiving CPRI data stream and ethernet frame
US10523599B2 (en) Buffer sizing of a NoC through machine learning
CN106998347A (en) The apparatus and method of server virtualization network share
US9529775B2 (en) Network topology of hierarchical ring with gray code and binary code
CN109417533A (en) Send the method and forwarding device of data
US8166183B2 (en) Method and system for fast virtual concatenation setup in a communication network
CN113328961A (en) Binding method and device for flexible Ethernet group and computer readable storage medium
US20200244579A1 (en) Flexible Ethernet Frame Forwarding Method and Apparatus
US20100329262A1 (en) System and Method for Parsing Frames
US20140330973A1 (en) System and method for brokering and provisioning in high-speed networks
WO2023179457A1 (en) Method, apparatus and system for identifying service connection, and storage medium
WO2022111323A1 (en) Signal frame processing method and related device
CN102710496B (en) For the data transmission system between multiple server, DIU data interface unit and data transmission method
KR100745674B1 (en) Packet processing apparatus and method with multiple switching ports support structure and packet processing system using the same
CN102845042A (en) System and method for aggregating bandwidth of multiple active physical interfaces on application layer
CN115118677A (en) Routing node scheduling method of network on chip in FPGA
CN104243347B (en) The method and apparatus for being sent based on symmetrical high-speed digital subscriber line SHDSL and receiving data
WO2019242368A1 (en) Link group configuration method and apparatus
US20240056383A1 (en) Packet transmission method, apparatus, and device
CN116383114B (en) Chip, chip interconnection system, data transmission method, electronic device and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21896824

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21896824

Country of ref document: EP

Kind code of ref document: A1