Data processing method and related equipment
By introducing the first check field in the optical transport network and mapping it to the 66-bit code block stream, the problem of code block type misjudgment caused by 66-bit coding block overhead errors in the optical transport network is solved, and the reliability of data transmission is improved. accuracy and verification efficiency, enhancing the overall reliability of the communication system.
Patent Information
- Application Number
- CN202310259787.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
AI Technical Summary
In the optical transport network, the 2-bit overhead error in the 66-bit encoding block causes the receiving device to misjudge the type of the code block, which in turn causes the MAC frame to be decoded incorrectly, reducing the reliability of communication.
By introducing the first check field into the 66-bit code block stream, the sending device maps it to the payload area of the data frame, so that the receiving device can identify whether bit errors occur in the code block stream without decoding, thereby improving the verification efficiency. And forwarded directly at the intermediate node to reduce transmission delay.
It improves the reliability and verification efficiency of data transmission, reduces the verification burden on intermediate nodes, and enhances the overall reliability of the communication system.
Smart Images

Figure CN118632148A
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communications, and in particular to a data processing method and related equipment. Background Art
[0002] The 66-bit code block in the Ethernet service includes a 64-bit effective payload and a 2-bit overhead. When the Ethernet service is carried through the optical transport network (OTN), the sending device needs to encode the MAC frame in the Ethernet into multiple 66-bit code blocks, and then map the multiple 66-bit code blocks into the OTN frame. The receiving device extracts the 66-bit code block from the OTN frame, and then decodes the multiple 66-bit code blocks into a MAC frame. However, the 2-bit overhead in the 66-bit code block is used to indicate the code block type of the 66-bit code block. The code block type of the 66-bit code block includes a data code block or a control code block. When the 2-bit overhead in the 66-bit code block is erroneous, it will cause the receiving device to misjudge the code block type. The receiving device obtains an erroneous MAC frame based on the misjudged 66-bit code block. Summary of the invention
[0003] The present application provides a data processing method and related equipment. Through a first check field, a receiving device can identify whether a 66-bit code block stream has a bit error, thereby improving the reliability of communication.
[0004] The first aspect of the present application provides a data processing method. The data processing method can be applied to an optical module, an electric chip or a sending device. The sending device can be an optical transport network (OTN) device or a metropolitan transport network (MTN) device, etc. The following is described by taking the application of the data processing method to a sending device as an example. The data processing method includes the following steps: the sending device obtains a 66-bit code block stream of a MAC frame. The MAC frame includes a frame check sequence (FCS) field. The sending device obtains a first check field according to the target data. The first check field is used to check the target data. The target data is a MAC frame or a 66-bit code block stream. The code block in the 66-bit code block stream is used to carry the obtained first check field. Or, the next 66-bit code block of the 66-bit code block stream is used to carry the obtained first check field. The sending device maps the 66-bit code block stream to the payload area of the data frame. The data frame can be an OTN frame, a flexible Ethernet (FlexE) frame or an MTN frame. The sending device sends the data frame.
[0005] In an optional manner of the first aspect, the target data is a 66-bit code block stream. The sending device obtains a 66-bit code block stream of a MAC frame, including: the sending device obtains a MAC frame and encodes a MAC frame into a first 66-bit code block stream. Or, the sending device receives the first 66-bit code block stream from another device. The data processing method also includes the following steps: the sending device obtains a second 66-bit code block stream according to the first 66-bit code block stream and the first check field, or the sending device adds a first check field to the next 66-bit code block of the first 66-bit code block stream. The sending device maps the 66-bit code block stream to the payload area of the data frame, including: the sending device maps the second 66-bit code block stream to the payload area of the data frame, or the sending device maps the first 66-bit code block stream and the next 66-bit code block to the payload area of the data frame. By checking the 66-bit code block stream, the receiving device can identify whether the 66-bit code block stream has a code error without decoding the 66-bit code block stream. Therefore, the embodiment of the present application can improve the verification efficiency. In another optional manner of the first aspect, the target data is a MAC frame. The sending device obtains a 66-bit code block stream of a MAC frame, including: the sending device obtains a MAC frame and encodes a MAC frame into a 66-bit code block stream. In a communication system, one or more intermediate nodes may be included between the receiving device and the sending device. The intermediate node directly forwards the 66-bit code block stream without decoding the 66-bit code block stream. Therefore, when the target data is a MAC frame, the intermediate node may not need to check the MAC frame, thereby reducing the transmission delay of the 66-bit code block stream.
[0006] In an optional manner of the first aspect, the latter 66-bit code block is an S control coding block. The original S control coding block is used to carry the content of the preamble field in the MAC frame. The content of the preamble field belongs to fixed content. Therefore, by carrying the first check field in the S control coding block, the impact on the latter MAC frame can be reduced. Therefore, the present application can improve the reliability of transmitted data. In another optional manner of the first aspect, the latter 66-bit code block is an I control coding block. When there is a long interval between two MAC frames, the sending device can insert an I control coding block between the two 66-bit code block streams. The two 66-bit code block streams correspond to the two MAC frames one by one. The original I control coding block is used to fill useless data. When the first check field is located in the S control coding block of the second 66-bit code block stream, the receiving device needs to receive one or more I control code blocks before receiving the S control coding block, thereby reducing the verification efficiency. Therefore, by carrying the first check field in the I control coding block, the verification efficiency can be improved. In another optional manner of the first aspect, the latter 66-bit code block is a custom control coding block. By carrying the first check field in the custom control code block, the impact on the next 66-bit code block stream can be reduced. Therefore, the present application can improve the reliability of transmitted data.
[0007] In an optional manner of the first aspect, the value of the control block type field of the custom control coding block is 0x00. 0x00 is a hexadecimal representation. Hexadecimal 0x00 can be converted to binary 0000 0000. When the control block type field is 0x00, it may differ from the control block type field of other control coding blocks by at least 2 bits. Therefore, even if a bit in the control block type field is erroneous, it will not cause the receiving device to identify the custom control coding block as another control coding block. Therefore, the present application can improve the reliability of transmitting the first check field.
[0008] In an optional manner of the first aspect, the S control coding block in the 66-bit code block stream is used to carry the first check field. By carrying the first check field in the 66-bit code block stream, the check efficiency of the receiving device can be improved. In addition, the original S control coding block is used to carry the content of the preamble field in the MAC frame. Therefore, by carrying the first check field in the S control coding block, the impact on the MAC frame can be reduced.
[0009] In an optional manner of the first aspect, the first check field includes a first subfield and a second subfield. The first subfield is used to check the length of the 66-bit code block stream. The second subfield is used to check the content of the 66-bit code block stream. Through length checking and content checking, the accuracy of identifying bit errors can be improved. Therefore, the present application can improve the reliability of transmitted data.
[0010] In an optional manner of the first aspect, the first subfield is used to indicate the number of 66-bit code blocks included in the 66-bit code block stream. By indicating the number of 66-bit code blocks, the size of the first subfield can be reduced. Therefore, the present application can save transmission resources.
[0011] In an optional manner of the first aspect, the size of the first subfield is 2 bytes. The maximum length of the MAC frame is 9600 bytes. At this time, the number of 66-bit code blocks in the 66-bit code block stream is approximately 1200. Therefore, by controlling the size of the first subfield to 2 bytes, transmission resources can be saved.
[0012] In an optional manner of the first aspect, the size of the second subfield is 4 bytes. In order to improve the reliability of content verification, the size of the second subfield may be larger than the size of the first subfield. And the available space size of a control coding block is 7 bytes. By limiting the size of the second subfield to 4 bytes, the first subfield and the second subfield can be transmitted in one control coding block. When the size of the second subfield is greater than 7 bytes, the sending device needs to carry the first subfield and the second subfield through at least two control coding blocks. Therefore, the embodiment of the present application can reduce the number of control coding blocks, thereby improving transmission efficiency.
[0013] In an optional manner of the first aspect, the 66-bit code block stream also includes a second check field, or the latter 66-bit code block also includes a second check field. The second check field is used to check the first check field. By adding the second check field, the reliability of the first check field of the transmission can be improved. Therefore, the present application can improve the reliability of the transmitted data.
[0014] In an optional manner of the first aspect, the size of the second check field is 1 byte. The available space size of a control coding block is 7 bytes. When the first check field is less than or equal to 6 bytes, the first check field and the second check field can be transmitted through a control coding block. Therefore, the embodiment of the present application can reduce the number of control coding blocks, thereby improving transmission efficiency.
[0015] In an optional manner of the first aspect, the sending device maps the second 66-bit code block stream to the service frame, and maps the service frame to the payload area of the data frame. By first mapping the second 66-bit code block stream to the service frame, and then mapping the service frame to the data frame, the minimum granularity of the service can be reduced, thereby increasing the number of services carried. In another optional manner of the first aspect, the sending device maps the first 66-bit code block stream and the next 66-bit code block to the service frame, and then maps the service frame to the data frame.
[0016] The second aspect of the present application provides a data processing method. The data processing method can be applied to an optical module, an electrical chip or a receiving device. The receiving device can be an OTN device or an MTN device, etc. The following description is given by taking the application of the data processing method to a receiving device as an example. The data processing method includes the following steps: the receiving device obtains a data frame. The receiving device extracts a 66-bit code block stream from the payload area of the data frame. The code block in the 66-bit code block stream is used to carry the obtained first check field. Or, the next 66-bit code block of the 66-bit code block stream is used to carry the obtained first check field. The receiving device checks the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream through the first check field. The MAC frame includes an FCS field.
[0017] In an optional manner of the second aspect, the receiving device checks the MAC frame corresponding to the 66-bit code block stream through the first check field. The data processing method also includes the following steps: the receiving device decodes the 66-bit code block stream into a MAC frame. In another optional manner of the second aspect, the receiving device checks the 66-bit code block stream through the first check field.
[0018] In an optional manner of the second aspect, the S control coding block in the 66-bit code block stream includes a first check field. The data processing method further includes the following steps: the receiving device replaces the first check field with the content of the preamble field in the MAC frame to obtain a modified 66-bit code block stream. The receiving device sends the modified 66-bit code block stream to other devices. Other devices may not necessarily support the check function of the first check field. By restoring the 66-bit code block stream, the influence of the first check field on the restoration of the MAC frame by other devices can be reduced. Therefore, the present application can improve the reliability of restoring the MAC frame. In another optional manner of the second aspect, the next 66-bit code block of the 66-bit code block stream includes the first check field, and the data processing method further includes the following steps: the receiving device modifies the next 66-bit code block. After modifying the next 66-bit code block, the receiving device can send the next 66-bit code block to other devices. Other devices may not necessarily support the check function of the first check field. By restoring the next 66-bit code block, the influence of the first check field on other devices can be reduced, thereby improving the reliability of communication. In another optional manner of the second aspect, the next 66-bit code block is an S control code. The receiving device replaces the first check field with the content of the preamble field in the MAC frame. By restoring the next 66-bit code block, the influence of the first check field on other devices restoring the next MAC frame can be reduced. Therefore, the present application can improve the reliability of restoring the next MAC frame. In another optional manner of the second aspect, the next 66-bit code block is an I control code block. The receiving device modifies the content in the first check field to 0. In another optional manner of the second aspect, the next 66-bit code block is a custom control code block. The receiving device deletes the custom control code block. Other devices may not be able to recognize the custom control code block. In addition, the check function of the custom control code block may conflict with certain functions of other devices, thereby affecting the operation of other devices. Therefore, the present application can improve the reliability of communication.
[0019] In an optional manner of the second aspect, the data processing method further includes the following steps: if the 66-bit code block stream fails to pass the check of the first check field, the receiving device modifies the synchronization field of the T control coding block in the 66-bit code block stream to 11 or 00. In subsequent processing, the receiving device can identify the 66-bit code block stream as an erroneous code block stream based on the content in the synchronization field, thereby discarding the 66-bit code block stream. Therefore, the present application can improve the reliability of communication.
[0020] In an optional manner of the second aspect, the 66-bit code block stream further includes a second check field, or the next 66-bit code block further includes a second check field. The data processing method further includes the following steps: the receiving device checks the first check field through the second check field.
[0021] The third aspect of the present application provides a sending device. The sending device includes an acquisition module, a processing module, a mapping module and a sending module. The acquisition module is used to acquire a 66-bit code block stream of a MAC frame. The processing module is used to obtain a first check field according to the target data. The first check field is used to check the target data. The target data is a MAC frame or a 66-bit code block stream. The code block in the 66-bit code block stream is used to carry the obtained first check field. Or, the next 66-bit code block of the 66-bit code block stream is used to carry the obtained first check field. The mapping module is used to map the 66-bit code block stream to the payload area of the data frame. The data frame can be an OTN frame, a FlexE frame or an MTN frame. The sending module is used to send the data frame. In an optional manner of the third aspect, the module in the sending device can be used to execute the method described in any optional manner in the first aspect. For example, the mapping module is used to map the 66-bit code block stream to a service frame, and map the service frame to the payload area of the data frame. For another example, the acquisition module is used to receive a 66-bit code block stream from another device.
[0022] A fourth aspect of the present application provides a receiving device. The receiving device includes a receiving module, an extraction module and a verification module. The receiving module is used to receive a data frame. The extraction module is used to extract a 66-bit code block stream from the payload area of the data frame. The 66-bit code block stream includes a first check field. Or, the next 66-bit code block of the 66-bit code block stream includes a first check field. The verification module is used to verify the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream through the first check field. The MAC frame includes an FCS field.
[0023] In an optional manner of the fourth aspect, a module in the sending device can be used to execute the method described in any optional manner of the second aspect. For example, the verification module is also used to verify the first verification field through the second verification field. For another example, the sending device also includes a modification module and a sending module. The modification module is used to modify the next 66-bit code block. After modifying the next 66-bit code block, the sending module is used to send the next 66-bit code block to other devices.
[0024] A fifth aspect of the present application provides a sending device. The sending device includes a processor and a transceiver. The processor is used to execute the method described in the first aspect or any optional mode of the first aspect to obtain a data frame. The transceiver is used to send the data frame.
[0025] In a sixth aspect, the present application provides a receiving device. The receiving device includes a processor and a transceiver. The transceiver is used to receive a data frame. The processor is used to execute the method described in the second aspect or any optional mode of the second aspect.
[0026] The seventh aspect of the present application provides a communication system. The communication system includes a sending device and a receiving device. The sending device is used to obtain a 66-bit code block stream of a MAC frame. The MAC frame includes an FCS field. The sending device is used to obtain a first check field according to target data. The target data is a MAC frame or a 66-bit code block stream. The code block in the 66-bit code block stream is used to carry the obtained first check field. Or, the next 66-bit code block of the 66-bit code block stream is used to carry the obtained first check field. The sending device is used to map the 66-bit code block stream to the payload area of the data frame. The sending device sends a data frame to the receiving device. The receiving device is used to receive the data frame. The receiving device is used to extract the 66-bit code block stream from the payload area of the data frame. The receiving device is used to check the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream through the first check field.
[0027] In an optional manner of the seventh aspect, the sending device is also used to execute the method described in the aforementioned first aspect or any optional manner of the first aspect, and / or the receiving device is also used to execute the method described in the aforementioned second aspect or any optional manner of the second aspect.
[0028] The eighth aspect of the present application provides a data frame. The data frame includes a payload area and an overhead area. The payload area includes a 66-bit code block stream. The 66-bit code block stream includes a first check field. Or, the next 66-bit code block of the 66-bit code block stream includes a first check field. The first check field is used to check the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream. The MAC frame includes an FCS field.
[0029] In an optional manner of the eighth aspect, the data frame is an optical service unit (OSU) frame, an OTN frame, a FlexE frame or an MTN frame.
[0030] It should be understood that there are related contents in the aforementioned different aspects. Therefore, the description of the optional manner of any aspect may be used as the content of the optional manner of other aspects, and will not be repeated here.
[0031] In a ninth aspect, the present application provides a computer storage medium. The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the method as described in the first aspect or any one of the embodiments of the first aspect; or the computer executes the method as described in the second aspect or any one of the embodiments of the second aspect.
[0032] In a tenth aspect, the present application provides a computer program product. When the computer program product is executed on a computer, the computer executes the method described in the first aspect or any one of the embodiments of the first aspect; or the computer executes the method described in the second aspect or any one of the embodiments of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the structure of OTN;
[0034] Figure 2 It is a structural diagram of OTN equipment;
[0035] Figure 3 It is a structural diagram of a data coding block and a control coding block;
[0036] Figure 4 A first flow chart of a data processing method provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of encoding a MAC frame into a 66-bit code block stream;
[0038] Figure 6 It is a schematic diagram of the structure of a MAC frame;
[0039] Figure 7 The first schematic diagram of a MAC frame encoded as a 66-bit code block stream provided in an embodiment of the present application;
[0040] Figure 8 A second schematic diagram of a MAC frame encoded as a 66-bit code block stream provided in an embodiment of the present application;
[0041] Fig. 9 A third schematic diagram of a MAC frame encoded as a 66-bit code block stream provided in an embodiment of the present application;
[0042] Fig.10 A fourth schematic diagram of a MAC frame encoded as a 66-bit code block stream provided in an embodiment of the present application;
[0043] Fig.11 A schematic diagram of the structure of a MAC frame provided in an embodiment of the present application;
[0044] Fig.12a The first structural diagram of the c field provided in the embodiment of the present application;
[0045] Figure 12b A second structural diagram of the c field provided in an embodiment of the present application;
[0046] Fig.12c A third structural diagram of the c field provided in an embodiment of the present application;
[0047] Fig.12d The fourth structural diagram of the c field provided in the embodiment of the present application;
[0048] Fig.13 A schematic diagram of directly mapping a 66-bit code block stream to an OTN frame provided in an embodiment of the present application;
[0049] Fig.14 A schematic diagram of indirectly mapping a 66-bit code block stream frame to an OTN frame provided in an embodiment of the present application;
[0050] Fig.15 A second flow chart of the data processing method provided in the embodiment of the present application;
[0051] Fig.16 A third flow chart of the data processing method provided in the embodiment of the present application;
[0052] Fig.17 A fourth flow chart of the data processing method provided in an embodiment of the present application;
[0053] Fig.18 A schematic diagram of the structure of a sending device provided in an embodiment of the present application;
[0054] Fig.19 A schematic diagram of the structure of a receiving device provided in an embodiment of the present application;
[0055] Fig. 20 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0056] Fig.21 A schematic diagram of the structure of a communication system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] First, some terms in this application are explained to facilitate understanding by those skilled in the art.
[0058] 1) Multiple refers to two or more. "And / or" describes the association relationship of associated objects, and three kinds of relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of this application, words such as "first", "second", and "target" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0059] 2) Mapping A to B mentioned in this application means encapsulating A into B. For example, mapping an optical service unit (OSU) frame to an optical transport network (OTN) frame means encapsulating an OSU frame or an OSU signal into an OTN frame.
[0060] 3) Unless otherwise specified, the specific description of some technical features in one embodiment can also be used to explain the corresponding technical features mentioned in other embodiments. For example, the function of the first check field 1 in one embodiment can also be applied to the first check field 1 mentioned in other embodiments. In addition, the present application uses the same or similar figure numbers to represent components or method steps with the same or similar functions in different embodiments.
[0061] The embodiments of the present application are applicable to optical networks such as optical transport networks or metropolitan area transport networks. The optical transport network includes OTN or flexible Ethernet (FlexE). In the subsequent description of this application, OTN will be used as an example for description. An OTN is usually composed of multiple OTN devices connected by optical fibers, and can be composed of different topology types such as linear, ring and mesh according to specific needs. Figure 1 This is a schematic diagram of the OTN structure provided by this application. Figure 1 As shown, OTN 100 is composed of eight OTN devices 101, namely OTN devices AH. 102 indicates an optical fiber used to connect two devices. 103 indicates a customer service interface used to receive or send customer service data. Figure 1 As shown, OTN 100 is used to transmit service data for customer devices 1-3. The customer devices are connected to the OTN devices through customer service interfaces. For example, Figure 1 In the example, customer devices 1-3 are connected to OTN devices A, H, and F respectively.
[0062] According to actual needs, an OTN device may have different functions. Generally speaking, OTN devices are divided into optical layer devices, electrical layer devices and optoelectronic hybrid devices. Optical layer devices refer to devices that can process optical layer signals, such as optical amplifiers and optical add-drop multiplexers (OADM). Optical amplifiers are used to amplify optical signals to support transmission over longer distances while ensuring the specific performance of optical signals. OADM is used to spatially transform optical signals so that they can be output from different output ports (sometimes also called directions). Electrical layer devices refer to devices that can process electrical layer signals, such as devices that can process OTN signals. Optoelectronic hybrid devices refer to devices that have the ability to process optical layer signals and electrical layer signals. It should be noted that, according to specific integration needs, an OTN device can combine multiple different functions. The technical solution provided in this application is applicable to OTN devices of different forms and integration levels that include electrical layer functions.
[0063] It should be noted that the data frame structure used by the optical transmission equipment in the embodiment of the present application may be an OTN frame. The OTN frame is used to carry various service data and provide rich management and monitoring functions. The OTN frame may be an optical data unit frame (optical data unit k, ODUk), ODUCn, ODUflex, or an optical channel transmission unit k (optical transport unit k, OTUk), OTUCn, or a flexible OTN (FlexO) frame, etc. Among them, the difference between the ODU frame and the OTU frame is that the OTU frame includes the ODU frame and the OTU overhead. k represents different rate levels. For example, k=1 represents 2.5Gbps, and k=4 represents 100Gbps. Cn represents a variable rate, specifically a rate of a positive integer multiple of 100Gbps. Unless otherwise specified, an ODU frame refers to any one of ODUk, ODUCn or ODUflex, and an OTU frame refers to any one of OTUk, OTUCn or FlexO. It should also be noted that with the development of optical transport network technology, new types of OTN frames may be defined, which are also applicable to the present application. In addition, the method disclosed in the present application can also be applied to other optical transport network frames such as FlexE frames.
[0064] Figure 2 The OTN device 200 may be a schematic diagram of the structure of the OTN device provided in this application. Figure 1 Any device in the OTN device AH. Figure 2 As shown, the OTN device 200 includes a tributary board 201 , a cross board 202 , a line board 203 , an optical layer processing board (not shown in the figure) and a system control and communication board 204 .
[0065] The tributary board 201, the cross board 202 and the line board 203 are used to process electrical layer signals. Among them, the tributary board 201 is used to realize the reception and transmission of various customer services, such as SDH services, packet services, Ethernet services and / or fronthaul services. Further, the tributary board 201 can be divided into a customer-side optical transceiver module and a signal processor. Among them, the customer-side optical transceiver module can also be called an optical transceiver, which is used to receive and / or send service data. The signal processor is used to realize the mapping and demapping processing of service data to data frames. The cross board 202 is used to realize the exchange of data frames and complete the exchange of one or more types of data frames. The line board 203 mainly realizes the processing of line-side data frames. Specifically, the line board 203 can be divided into a line-side optical module and a signal processor. Among them, the line-side optical module can be called an optical transceiver, which is used to receive and / or send data frames. The signal processor is used to realize the multiplexing and demultiplexing of the data frames on the line side, or the mapping and demapping processing. The system control and communication board 204 is used to realize system control. Specifically, information can be collected from different boards, or control instructions can be sent to the corresponding board. It should be noted that, unless otherwise specified, the specific components (such as signal processors) can be one or more, and this application does not limit this. It should also be noted that this application does not impose any restrictions on the types of boards included in the device and the functional design and quantity of the boards. It should be noted that in a specific implementation, the above two boards may also be designed as one board. In addition, the network equipment may also include a backup power supply, a fan for heat dissipation, etc.
[0066] It should be understood that Figure 2 This is just an example of the OTN device provided in this application. Depending on specific needs, the type and quantity of boards included in the OTN device may be different. For example, the OTN device as a core node does not have a branch board 201. For another example, the OTN device as an edge node has multiple branch boards 201, or does not have an optical cross-connect board 202. For another example, an OTN device that only supports electrical layer functions may not have an optical layer processing board.
[0067] exist Figure 1 In the OTN, the data received by the OTN equipment from the customer equipment can be a 66-bit code block stream or a MAC frame. The 66-bit code block stream is a code block stream composed of multiple 66-bit code blocks. The 66-bit code block is also called a 64B / 66B code block or a 66-bit code block. The 66-bit code block includes 2 bits of overhead and 64 bits of payload. The code block types of the 66-bit code block include a data code block or a control code block. The data code block is used to carry data. The control code block is used to transmit control information such as the start or end identifier of the media access control (MAC) address frame, or a padding indication.
[0068] Figure 3This is a schematic diagram of the structure of the data coding block and the control coding block provided in this application. Figure 3 As shown, the data coding block 301 and the control coding block 302 include a synchronization (SYNC) field. The size of the SYNC field is 2 bits. The data carried by the SYNC field is used to indicate the code block type of the 66-bit coding block. For example, 01 indicates that the code block type of the 66-bit coding block is a data coding block. 10 indicates that the code block type of the 66-bit coding block is a control coding block. The data coding block 301 also includes a d field. The size of the d field is 64 bits. The d field is used to carry data. The control coding block 302 also includes a control block type (CBT) field and a c field. The size of the CBT field is 8 bits. The value of the CBT field can be 0x1E, 0x78, 0x4B, 0x87 or 0x99, etc. The size of the c field is 56 bits. The c field is used to carry control coding.
[0069] When the data received by the OTN device from the customer device is a MAC frame, the OTN device needs to encode the MAC frame into a 66-bit code block stream. After obtaining the 66-bit code block stream, the OTN device maps the 66-bit code block stream to the payload area of the OTN frame and transmits the OTN frame to another OTN device. The other OTN device extracts the 66-bit code block from the OTN frame and then decodes multiple 66-bit code blocks into a MAC frame. However, the SYNC field in the 66-bit code block is used to indicate the code block type of the 66-bit code block. When an error occurs in the SYNC field, it will cause another OTN device to misjudge the code block type, thereby obtaining an erroneous MAC frame based on the misjudged 66-bit code block. If the erroneous MAC frame passes the frame check sequence (FCS) check, the receiving device cannot identify whether the MAC frame is erroneous, thereby reducing the reliability of communication.
[0070] To this end, the present application provides a data processing method. Figure 4 The first flow chart of the data processing method provided in the embodiment of the present application. The data processing method can be applied to an optical module, an electrical chip or a transmitting device. The transmitting device can be an OTN device or an MTN device, etc. The following description is made by taking the application of the data processing method to the transmitting device as an example. Figure 4 As shown, the data processing method includes the following steps.
[0071] In step 401, the sending device obtains a 66-bit code block stream of a MAC frame.
[0072] The sending device may receive a 66-bit code block stream or a MAC frame from the client device. When the data received by the sending device from the client device is a MAC frame, the sending device needs to encode the MAC frame into a 66-bit code block stream. Alternatively, the sending device may generate a MAC frame according to the data to be sent, and encode the MAC frame into a 66-bit code block stream. Figure 5 The first diagram is a MAC frame encoded as a stream of 66-bit code blocks. Figure 5 As shown, the transmitting device encodes a MAC frame into a 66-bit code block stream 501. The 66-bit code block stream 501 includes an S control code block, multiple data code blocks and a T control code block. Among them, the SYNC field in the data code block is 01. The SYNC field in the S control code block and the T control code block is 10. The CBT field in the S control code block is 0x78. The CBT field in the T control code block can be 0x87, 0x99, 0xAA, 0xB4, 0xCC, 0xD2, 0xE1 or 0xFF.
[0073] It should be understood that in the subsequent examples, for the convenience of description, the S control coding block may be referred to as an S1 control coding block or an S2 control coding block, etc. Similarly, the T control coding block may also be referred to as a T1 control coding block or a T2 control coding block, etc. The data coding block may also be referred to as a D1 data coding block or a D2 data coding block, etc.
[0074] There is a corresponding relationship between the 66-bit code block stream 501 and the data in the MAC frame. For example, Figure 6 Figure 1 is a schematic diagram of the structure of a MAC frame. Figure 6 As shown, MAC frame 601 includes a preamble field, a start frame delimiter (SFD) field, a destination address (DA) field, a source address (SA) field, a type field, a data field, and a frame check sequence (FCS) field. The S control coding block is used to carry the content in the preamble field in the MAC frame. Multiple data coding blocks are used to carry the content of the remaining fields in the MAC frame. The T control coding block is used to indicate the end of a MAC frame and can be used to carry the content of 0 to 7 bytes in the MAC frame.
[0075] In actual applications, the transmitting device may continuously encode multiple MAC frames into a 66-bit code block stream. Figure 7 The first schematic diagram of the MAC frame encoding provided in the embodiment of the present application is a 66-bit code block stream. Figure 7As shown, the transmitting device encodes MAC frame 1 and MAC frame 2 into a 66-bit code block stream 701. Specifically, the 66-bit code block stream 701 includes a first 66-bit code block stream and a third 66-bit code block stream. The transmitting device encodes MAC frame 1 into a first 66-bit code block stream. The first 66-bit code block stream includes an S1 control coding block, multiple D1 data coding blocks and a T1 control coding block. The transmitting device encodes MAC frame 2 into a third 66-bit code block stream. The third 66-bit code block stream includes an S2 control coding block, multiple D2 data coding blocks and a T2 control coding block.
[0076] When there is a long interval between two MAC frames, the transmitting device can insert an I control coding block between the first 66-bit code block stream and the third 66-bit code block stream. The SYNC value in the I control coding block is 10, and the CBT value is 0x1E. The I control coding block can be called an I1 control coding block or an I2 control coding block, etc. Figure 8 The second schematic diagram of the MAC frame encoding provided in the embodiment of the present application is a 66-bit code block stream. Figure 8 As shown, the transmitting device encodes MAC frame 1 and MAC frame 2 into a 66-bit code block stream 801. Figure 7 On the basis of the first 66-bit code block stream 801, the 66-bit code block stream 801 further includes one or more I1 control coding blocks. The I1 control coding block is located between the first 66-bit code block stream and the third 66-bit code block stream.
[0077] In an embodiment of the present application, the sending device may insert a custom control coding block after each T control coding block. The custom control coding block may be called a Z1 control coding block or a Z2 control coding block, etc. The SYNC field in the custom control coding block is 10. In order to distinguish other control coding blocks from custom control coding blocks, the content of the CBT field in the custom control coding block is not 0x1E, 0x78, 0x4B, 0x87, 0x99, 0xAA, 0xB4, 0xCC, 0xD2, 0xE1, or 0xFF. In addition, in order to increase the difference between the CBT field in the custom control coding block and other control coding blocks, the CBT field of the custom control coding block may be 0x00.
[0078] Fig. 9 The third schematic diagram of the MAC frame encoding provided in the embodiment of the present application as a 66-bit code block stream. Fig. 9 As shown, the transmitting device encodes MAC frame 1 and MAC frame 2 into a 66-bit code block stream 901. Figure 7 On the basis of , the 66-bit code block stream 901 also includes a Z1 control coding block and a Z2 control coding block. The Z1 control coding block is located after the T1 control coding block. The Z2 control coding block is located after the T2 control coding block.
[0079] Fig.10 The fourth schematic diagram of the MAC frame encoding provided in the embodiment of the present application is a 66-bit code block stream. Fig.10 As shown, the transmitting device encodes MAC frame 1 and MAC frame 2 into a 66-bit code block stream 1001. Figure 8 On the basis of , the 66-bit code block stream 1001 also includes a Z1 control coding block and a Z2 control coding block. The Z1 control coding block is located between the T1 control coding block and the I1 control coding block.
[0080] It should be understood that in the aforementioned Figure 5 , Figure 7-Figure 10 In the embodiment of the present application, only one or two MAC frames are used as an example for description. In actual applications, the sending device can encode more MAC frames into 66-bit code block streams. For example, in Figure 7 In the embodiment, the transmitting device further encodes MAC frame 3 into a 66-bit code block stream 701. At this time, the 66-bit code block stream 701 also includes a fourth 66-bit code block stream. The fourth 66-bit code block stream includes an S3 control code block, multiple D3 data code blocks and a T3 control code block. There may be one or more I2 control code blocks between the fourth 66-bit code block stream and the third 66-bit code block stream, and there may not be an I2 control code block.
[0081] It should be understood that in the aforementioned Figure 5-Figure 10 In the example of , it is described that the sending device encodes the MAC frame into a 66-bit code block stream. When the sending device receives a 66-bit code block stream from the client device, the 66-bit code block stream can be obtained by encoding the client device according to the above method.
[0082] In step 402, the sending device obtains a first check field based on the target data, and the first check field is used to check the target data. The target data is a MAC frame or a 66-bit code block stream. The code block in the 66-bit code block stream is used to carry the obtained first check field, or the next 66-bit code block in the 66-bit code block stream is used to carry the obtained first check field.
[0083] When the target data is a MAC frame, the sending device obtains the first check field according to the MAC frame. For example, the sending device performs a cyclic redundancy check (CRC) check on the MAC frame to obtain the CRC field. The sending device uses the CRC field as the first check field. If the sending device receives a 66-bit code block stream from the client device, the sending device first decodes the 66-bit code block stream into a MAC frame. Decoding is the inverse process of encoding. Therefore, for the description of decoding, please refer to the aforementioned Figure 5-Figure 10After obtaining the MAC frame through decoding, the transmitting device obtains the first check field according to the MAC frame. After obtaining the first check field, the transmitting device encodes the MAC frame into a 66-bit code block stream. Therefore, in the embodiment of the present application, there is no strict timing limitation between step 302 and step 301. For example, the transmitting device can first obtain the first check field, and then encode the MAC frame into a 66-bit code block stream.
[0084] When the target data is a MAC frame, the sending device may replace the preamble field of the MAC frame with the obtained first check field to obtain a new MAC frame. Fig.11 This is a schematic diagram of the structure of a MAC frame provided in an embodiment of the present application. Fig.11 As shown, in Figure 6 Based on the Figure 6 The preamble field in the MAC frame is replaced with the first check field. After obtaining the new MAC frame, the sending device encodes the new MAC frame into a 66-bit code block stream according to the encoding method described in the aforementioned step 301. At this time, the first check field will be encoded into the S control coding block in the 66-bit code block stream. Alternatively, the sending device first encodes the MAC frame into a 66-bit code block stream according to the description in step 301. The sending device fills the first check field into the 66-bit code block stream or the next 66-bit code block of the 66-bit code block stream.
[0085] When the target data is a 66-bit code block stream, the sending device obtains the first check field according to the 66-bit code block stream. For example, the sending device obtains the number of 66-bit code blocks in the first 66-bit code block stream. The sending device uses the number of the first 66-bit code blocks as the first check field. If the sending device receives a MAC frame from the client device, the sending device first encodes the MAC frame into a 66-bit code block stream. For a description of encoding, please refer to the aforementioned Figure 5-Figure 10 After obtaining the first 66-bit code block stream by encoding, the sending device obtains the first check field according to the first 66-bit code block stream. The sending device fills the first check field into the first 66-bit code block stream to obtain the second 66-bit code block stream. Or the sending device adds the first check field to the next 66-bit code block of the first 66-bit code block stream.
[0086] The 66-bit code block stream, the second 66-bit code block stream, or the next 66-bit code block of the 66-bit code block stream is used to carry the obtained first check field. When the code block in the 66-bit code block stream or the second 66-bit code block stream is used to carry the obtained first check field, the S control code block in the 66-bit code block stream or the second 66-bit code block stream includes the first check field. For example, in Figure 7In the embodiment, the S1 control coding block includes a first check field 1 corresponding to MAC frame 1. The first check field 1 is used to check MAC frame 1 or the first 66-bit code block stream. The S2 control coding block includes a first check field 2 corresponding to MAC frame 2. The first check field 2 is used to check MAC frame 2 or the third 66-bit code block stream.
[0087] When the next 66-bit code block of the 66-bit code block stream is used to carry the obtained first check field, the next 66-bit code block can be an S control code and / or an I control code block. At this time, the next 66-bit code block can be an S control code, an I control code block. The next 66-bit code block can also be an S control code and an I control code block.
[0088] When the next 66-bit code block is an S control code block, the first check field representing the current MAC frame is located in the S control code block corresponding to the next MAC frame. Figure 8 In the S2 control coding block, the S2 control coding block includes a first check field 1 corresponding to the MAC frame 1. Figure 8 In the embodiment, the transmitting device may further be used to encode MAC frame 3 into a fourth 66-bit code block stream. The fourth 66-bit code block stream includes an S3 control code block, multiple D3 data code blocks and a T3 control code block. The S3 control code block includes a first check field 2 corresponding to MAC frame 2. Similarly, the first check field 3 corresponding to MAC frame 3 may be located in an S4 control code block corresponding to MAC frame 4.
[0089] When the next 66-bit code block is an I control code block, the first check field representing the current MAC frame is located in the I control code block between the two MAC frames. The two MAC frames include the current MAC frame and the next MAC frame. For this reason, when the 66-bit code block streams corresponding to the two MAC frames do not include an I control code block, the transmitting device inserts an I control code block between the 66-bit code block streams during the encoding process. For example, Figure 7 In the example, the transmitting device inserts an I1 control coding block between the first 66-bit code block stream and the third 66-bit code block stream. The I1 control coding block includes a first check field 1. Figure 7 In the embodiment, when the I control coding block is not included between the fourth 66-bit code block stream and the third 66-bit code block stream, the sending device also inserts an I2 control coding block between the fourth 66-bit code block stream and the third 66-bit code block stream. The I2 control coding block includes the first check field 2.
[0090] When the next 66-bit code block is an S control coding block and an I control coding block, the first check field representing the current MAC frame is located in the I control coding block between the two 66-bit code block streams corresponding to the two MAC frames or in the S control coding corresponding to the next MAC frame. Specifically, when the I control coding block is not included between the two 66-bit code block streams corresponding to the two MAC frames, the first check field of the current MAC frame is located in the S control coding corresponding to the next MAC frame. When the I control coding block is included between the two 66-bit code block streams corresponding to the two MAC frames, the first check field of the current MAC frame is located in the I control coding block between the two 66-bit code block streams corresponding to the two MAC frames. For example, in Figure 7 In the embodiment, the I control coding block is not included between the first 66-bit code block stream and the third 66-bit code block stream. At this time, the S2 control coding block includes the first check field 1. When the I2 control coding block is included between the fourth 66-bit code block stream and the third 66-bit code block stream, the I2 control coding block includes the first check field 2.
[0091] When the next 66-bit code block of the 66-bit code block stream includes the first check field, the next 66-bit code block may be a custom control code block. At this time, the first check field of the current MAC frame is located in the custom control code block between the two 66-bit code block streams corresponding to the two MAC frames. For example, Fig.10 In the embodiment, the Z1 control code block includes the first check field 1. The Z2 control code block includes the first check field 2.
[0092] It should be understood that "the next 66-bit code block" does not necessarily refer to the first 66-bit code block after the 66-bit code block stream. Figure 8 In the embodiment, three I1 control coding blocks are included between the first 66-bit code block stream and the third 66-bit code block stream. The first check field 1 is located in the second I1 control coding block among the three I1 control coding blocks. At this time, the next 66-bit code block of the first 66-bit code block stream refers to the second I1 control coding block among the three I1 control coding blocks.
[0093] In practical applications, when the distance between the control coding block carrying the first check field 1 and the first 66-bit code block stream is closer, the receiving device can check the first 66-bit code block stream or MAC frame 1 faster, thereby improving the check efficiency. Therefore, in order to improve the check efficiency, the first 66-bit code block after the 66-bit code block stream can include the first check field.
[0094] It should be understood that "the next 66-bit code block" does not necessarily refer to one 66-bit code block. Figure 8In the embodiment, three I1 control coding blocks are included between the first 66-bit code block stream and the third 66-bit code block stream. The first check field 1 is located in the first I1 control coding block and the second I1 control coding block of the three I1 control coding blocks. At this time, the latter 66-bit code block of the first 66-bit code block stream refers to the first two I1 control coding blocks of the three I1 control coding blocks. According to the previous description, the first check field 1 corresponding to the MAC frame 1 can be located in the S1 control coding block, the S2 control coding block, the I1 control coding block or the Z1 control coding block. The first check field 1 corresponding to the MAC frame 1 can also be located in the S2 control coding block and the I1 control coding block. In an embodiment of the present application, the first check field 1 can be located in the c field in the above-mentioned control coding block. The size of the first check field 1 is less than or equal to the size of the c field. Fig.12a The first structural diagram of the c field provided in the embodiment of the present application. Fig.12a As shown, the size of the c field 1201 is 7 bytes. The size of the first check field is 2 bytes. The c field 1201 also includes a 5-byte reserved for future international standardization (RES) field.
[0095] In practical applications, the sending device may also obtain a second check field based on the first check field. The second check field is used to check the first check field. The 66-bit code block stream also includes a second check field, or the next 66-bit code block also includes a second check field. The second check field may also be located in the c field in the above-mentioned control coding block. Figure 12b The second structural diagram of the c field provided in the embodiment of the present application. Figure 12b As shown, the size of the c field 1202 is 7 bytes. The size of the first check field is 2 bytes. The size of the second check field is 1 byte. The c field 1202 also includes a 4-byte RES field.
[0096] In practical applications, the first check field may include a first subfield and a second subfield. The first subfield is used to check the length of the MAC frame or the 66-bit code block stream, that is, the first subfield is used for length check. The second subfield is used to check the content of the MAC frame or the 66-bit code block stream, that is, the second subfield is used for content check. Fig.12c The third structural diagram of the c field provided in the embodiment of the present application. Fig.12c As shown, the size of the c field 1203 is 7 bytes. The size of the first check field is equal to the size of the c field 1203. The first check field includes a first subfield and a second subfield. The size of the first subfield is 2 bytes. The size of the second subfield is 5 bytes.
[0097] Fig.12dThe fourth structural diagram of the c field provided in the embodiment of the present application. Fig.12d As shown, the size of the c field 1204 is 7 bytes. The first check field includes a first subfield and a second subfield. The size of the first subfield is 2 bytes. The size of the second subfield is 4 bytes. The c field 1204 or the first check field also includes a second check field, and the size of the second check field is 1 byte.
[0098] In step 403, the sending device maps the 66-bit code block stream to the payload area of the data frame.
[0099] The sending device may directly map the 66-bit code block stream to the payload area of the data frame, or may first map the 66-bit code block stream to the service frame, and then map the service frame to the data frame. The data frame may be an OTN frame, a FlexE frame, or an MTN frame. The service frame may be an OSU frame or other data frame with an OSU frame structure. In the embodiment of the present application, the data frame is an OTN frame and the service frame is an OSU frame as an example for description.
[0100] When the target data is a MAC frame, the transmitting device maps the 66-bit code block stream to the payload area of the data frame. The 66-bit code block stream includes a first check field, or the next 66-bit code block of the 66-bit code block stream includes the first check field. When the target data is the first 66-bit code block stream, the transmitting device maps the second 66-bit code block stream to the payload area of the data frame, or the first 66-bit code block stream and the next 66-bit code block are mapped to the payload area of the data frame. When the transmitting device maps the second 66-bit code block stream to the payload area of the data frame, the second 66-bit code block stream includes the first check field. When the transmitting device maps the first 66-bit code block stream and the next 66-bit code block to the payload area of the data frame, the next 66-bit code block includes the first check field. Fig.13 The schematic diagram of directly mapping the 66-bit code block stream to the OTN frame provided in the embodiment of the present application. Fig.13 As shown, the transmitting device maps the 66-bit code block stream 1301 to the OTN frame 1302. For the description of the 66-bit code block stream 1301, please refer to the aforementioned Figure 5 , Figure 7-12d . OTN frame 1302 is a schematic diagram of an optical transport network frame. OTN frame 1302 is a structure of 4 rows and multiple columns. OTN frame 1302 includes an overhead area, a payload area, and a forward error correction (FEC) area. It should be understood that OTN frame 1302 is only an example. Other variant OTN frames are also applicable to the present application. For example, an OTN frame that does not include an FEC area. For another example, a frame structure with different numbers of rows and columns from OTN frame 1302.
[0101] Fig.14The schematic diagram of the indirect mapping of the 66-bit code block stream frame to the OTN frame provided in the embodiment of the present application. Fig.14 As shown, the transmitting device first maps the 66-bit code block stream 1301 to the payload area of one or more OSU frames 1401. The OSU frame 1401 includes an overhead area and a payload area. The overhead area of the OSU frame 1401 is used to carry overhead information. The overhead information includes one or more overhead fields. The payload area of the OSU frame 1401 is used to carry service data, such as a 66-bit code block stream. It should be understood that Fig.14 The OSU frame structure shown is only an example. In other specific implementations, the OSU frame may also be a data structure including an overhead subframe and a payload subframe. This application does not limit this. After mapping the 66-bit code block stream 1301 to the payload area of one or more OSU frames 1401, the transmitting device maps the one or more OSU frames 1401 to the OTN frame 1302. For a description of the OTN frame 1302, please refer to Fig.13 Description.
[0102] In step 404, the sending device sends a data frame.
[0103] The sending device converts the electrical signal of the data frame into an optical signal. The sending device is connected to the receiving device through an optical fiber. The sending device transmits the optical signal of the data frame to the receiving device through the optical fiber. The receiving device can be another OTN device or MTN device, etc.
[0104] according to Figure 4 It can be seen that multiple D1 data coding blocks are used to carry the contents of the remaining fields in the MAC frame 1. In practical applications, the S1 control coding block and multiple D1 data coding blocks can be used to carry the contents of the remaining fields in the MAC frame 1. The remaining fields may include a DA field, an SA field, a type field, a data field, and an FCS field. In addition, part of the space of the S1 control coding block can be used to carry the first check field 1, and another part of the space of the S1 control coding block and multiple D1 data coding blocks can be used to carry the contents of the remaining fields.
[0105] It should be understood that using S1 to control the coding block to carry the first check field 1 is only an example provided in the embodiment of the present application. In practical applications, the sending device may also use D1 data coding block or T1 to control the coding block to carry the first check field 1.
[0106] according to Figure 4 It can be seen that the target data can be a 66-bit code block stream or a MAC frame. Fig.15 The second flow chart of the data processing method provided in the embodiment of the present application is as follows. Fig.15 As shown, when the target data is a 66-bit code block stream, the data processing method includes the following steps.
[0107] In step 1501, the sending device obtains the first 66-bit code block stream of a MAC frame.
[0108] In step 1502, the sending device obtains a first check field according to the first 66-bit code block stream, and the first check field is used to check the first 66-bit code block stream.
[0109] In step 1503, the sending device obtains a second 66-bit code block stream according to the first 66-bit code block stream and the first check field, or adds the first check field to the next 66-bit code block in the first 66-bit code block stream.
[0110] In step 1504, the transmitting device maps the second 66-bit code block stream to the payload area of the data frame, or maps the first 66-bit code block stream and the next 66-bit code block to the payload area of the data frame.
[0111] In step 1505, the sending device sends a data frame.
[0112] Fig.16 The third flow chart of the data processing method provided in the embodiment of the present application is as follows. Fig.16 As shown, when the target data is a MAC frame, the data processing method includes the following steps.
[0113] In step 1601, the sending device obtains a MAC frame.
[0114] The sending device may receive a MAC frame from a client device. Alternatively, the sending device may receive a 66-bit code block stream from a client device. The sending device may decode the 66-bit code block stream into a MAC frame. Alternatively, the sending device may generate a MAC frame according to data to be sent. The MAC frame may include an FCS field.
[0115] In step 1602, the sending device obtains a first check field according to the MAC frame, and the first check field is used to check the MAC frame.
[0116] The first check field is not the FCS field. The FCS sequence field is used to check the DA field, the SA field, the type field, and the DA field. The check objects of the first check field and the FCS field may be different. For example, the first check field is used to check the DA field, the SA field, the type field, the DA field, and the FCS field.
[0117] In step 1603, the transmitting device encodes the MAC frame into a 66-bit code block stream, where the 66-bit code block stream includes the first check field, or the next 66-bit code block of the 66-bit code block stream includes the first check field.
[0118] In step 1604, the transmitting device maps the 66-bit code block stream to the payload area of the data frame.
[0119] In step 1605, the sending device sends a data frame.
[0120] It should be understood that Fig.15 or Fig.16 Description, Figure 4 Therefore, the description of Fig.15 or Fig.16 For a description, see Figure 4 For example, the description of step 1501 may refer to the description of step 401. For another example, the description of step 1503 may refer to the description of step 403. Similarly, Fig.15 or Fig.16 For a description, see Figure 4 For example, the first check field is not the FCS field.
[0121] According to the aforementioned Figure 4 , Fig.15 or Fig.16 As can be seen from the description, the sending device is used to send a data frame to the receiving device. Therefore, the receiving device can receive the data frame and check the MAC frame or the 66-bit code block stream according to the first check field in the data frame. Fig.17 This is a fourth flow chart of the data processing method provided in the embodiment of the present application. Fig.17 As shown, the data processing method includes the following steps.
[0122] In step 1701, the receiving device obtains a data frame.
[0123] The receiving device may be an OTN device or an MTN device, etc. The receiving device is connected to the sending device via an optical fiber. The receiving device receives the optical signal of the data frame from the sending device via the optical fiber, and converts the optical signal of the data frame into an electrical signal of the data frame.
[0124] In step 1702, the receiving device extracts a 66-bit code block stream from the payload area of the data frame, where the 66-bit code block stream includes a first check field, or a subsequent 66-bit code block of the 66-bit code block stream includes the first check field.
[0125] Extraction is the reverse process of mapping. The receiving device extracts the 66-bit code block stream from the payload area of the data frame. Specifically, the receiving device extracts the service frame from the payload area of the data frame, and then extracts the 66-bit code block stream from the payload area of the service frame. Alternatively, the receiving device directly extracts the 66-bit code block stream from the payload area of the data frame.
[0126] In step 1703, the receiving device checks the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream through the first check field.
[0127] According to the aforementioned Figure 4 As can be seen from the description, the target data can be a 66-bit code block stream or a MAC frame. When the target data is a 66-bit code block stream, the receiving device checks the 66-bit code block stream according to the first check field. When the target data is a MAC frame, the receiving device is used to decode the 66-bit code block stream into a MAC frame, and then check the MAC frame according to the first check field.
[0128] If the 66-bit code block stream fails to pass the check of the first check field, the receiving device may modify the SYNC field of the T control code block in the 66-bit code block stream to 11 or 00. Figure 7 If the first 66-bit code block stream fails to pass the check of the first check field 1, the receiving device modifies the SYNC field of the T1 control code block to 11 or 00. Similarly, if the third 66-bit code block stream fails to pass the check of the first check field 2, the receiving device modifies the SYNC field of the T2 control code block to 11 or 00. Figure 3 As can be seen from the description, the correct SYNC field in the T control coding block is 10. In subsequent processing, the receiving device can identify the 66-bit code block stream as an erroneous code block stream according to the erroneous content in the SYNC field, and thus discard the 66-bit code block stream.
[0129] The receiving device can also transmit data frames to other devices. Before the receiving device transmits data frames to other devices, the receiving device can modify the 66-bit code block stream or the next 66-bit code block of the 66-bit code block stream. Specifically, when the first check field is located in the 66-bit code block stream, the receiving device modifies the 66-bit code block stream. When the first check field is located in the next 66-bit code block of the 66-bit code block stream, the receiving device modifies the next 66-bit code block of the 66-bit code block stream. This is described below.
[0130] When the first check field is located in the S control code block in the 66-bit code block stream, the receiving device replaces the first check field with the content of the preamble field in the MAC frame to obtain a modified 66-bit code block stream. Figure 7 In the S1 control coding block, the S1 control coding block includes the first check field 1. The receiving device replaces the first check field 1 with the preamble field.
[0131] When the next 66-bit code block is S control code, the receiving device replaces the first check field with the content of the preamble field in the MAC frame. Figure 7 In the S2 control code block, the S2 control code block includes the first check field 1. The receiving device replaces the first check field 1 with the preamble field. When the next 66-bit code block is a I control code block, the receiving device modifies the content in the first check field to 0. For example, in Figure 8In the I1 control code block, the I1 control code block includes the first check field 1. The receiving device modifies the content in the first check field 1 to 0. When the next 66-bit code block is a custom control code block, the receiving device deletes the custom control code block. For example, in Fig.10 In the embodiment, the Z1 control coding block includes a first check field 1. The Z2 control coding block includes a first check field 2. The receiving device deletes the Z1 control coding block and the Z2 control coding block.
[0132] After the above modification, the receiving device can obtain the modified 66-bit code block stream or the next 66-bit code block after the modification. The receiving device maps the modified 66-bit code block stream or the next 66-bit code block after the modification to the payload area of the data frame and transmits the data frame to other devices. For a description of how the receiving device maps the modified 66-bit code block stream to the data frame, please refer to Figure 4 The sending device maps the 66-bit code block stream to the data frame. For example, the receiving device first maps the modified 66-bit code block stream to the payload area of the service frame, and then maps the service frame to the payload area of the data frame.
[0133] It should be understood that Fig.17 Description, and the aforementioned Figure 4 , Fig.15 or Fig.16 Therefore, the description of Fig.17 For a description of Figure 4 , Fig.15 or Fig.16 Description. For example, the 66-bit code block stream or the next 66-bit code block of the 66-bit code block stream includes a second check field. The receiving device checks the first check field according to the second check field. In another example, the first check field includes a first subfield and a second subfield. The first subfield is used to check the length of the 66-bit code block stream. The second subfield is used to check the content of the 66-bit code block stream. In another example, the first check field is not an FCS field.
[0134] The data processing method provided in the present application is described above, and the sending device, receiving device, sending equipment and receiving equipment provided in the present application are described below.
[0135] Fig.18 This is a schematic diagram of the structure of the sending device provided in the embodiment of the present application. Fig.18As shown, the sending device 1800 includes an acquisition module 1801, a processing module 1802, a mapping module 1803 and a sending module 1804. The acquisition module 1801 is used to acquire a 66-bit code block stream of a MAC frame. The processing module 1802 is used to obtain a first check field according to the target data. The first check field is used to check the target data. The target data is a MAC frame or a 66-bit code block stream. The 66-bit code block stream includes a first check field. Or, the next 66-bit code block of the 66-bit code block stream includes the first check field. The mapping module 1803 is used to map the 66-bit code block stream to the payload area of the data frame. The data frame can be an OTN frame, a flexible Ethernet (FlexE) frame or an MTN frame. The sending module 1804 is used to send a data frame.
[0136] It should be understood that the description of the sending device 1800 and the aforementioned Figure 4 , Fig.15 or Fig.16 Therefore, for the description of the sending device 1800, reference can be made to the aforementioned Figure 4 , Fig.15 or Fig.16 For example, mapping module 1803 is used to map a 66-bit code block stream to a service frame, and map a service frame to a payload area of a data frame. For another example, acquisition module 1801 is used to receive a 66-bit code block stream from another device. For another example, the first check field is not an FCS field.
[0137] Fig.19 This is a schematic diagram of the structure of the receiving device provided in the embodiment of the present application. Fig.19 As shown, the receiving device 1900 includes a receiving module 1901, an extraction module 1902 and a check module 1903. The receiving module 1901 is used to receive a data frame. The extraction module 1902 is used to extract a 66-bit code block stream from the payload area of the data frame. The 66-bit code block stream includes a first check field. Or, the next 66-bit code block of the 66-bit code block stream includes the first check field. The check module 1903 is used to check the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream through the first check field.
[0138] It should be understood that the description of the receiving device 1900 and the aforementioned Figure 4 , Fig.15 , Fig.16 or Fig.17 Therefore, for the description of the receiving device 1900, reference may be made to the aforementioned Figure 4 , Fig.15 , Fig.16 or Fig.17For example, the check module 1903 is also used to check the first check field through the second check field. In another example, the sending device also includes a modification module and a sending module. The modification module is used to modify the next 66-bit code block. After modifying the next 66-bit code block, the sending module is used to send the next 66-bit code block to other devices. In another example, the first check field is not the FCS field.
[0139] Fig. 20 The structure diagram of the communication device provided in the embodiment of the present application. The communication device may be a sending device or a receiving device. Fig. 20 As shown, the communication device 2000 includes a processor 2001 and a transceiver 2002. The processor 2001 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 1601 can further include a hardware chip or other general-purpose processor. The above-mentioned hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The transceiver 2002 can be an optical transceiver.
[0140] When the communication device 2000 is a transmitting device, the processor 2001 is used to obtain a 66-bit code block stream of a MAC frame. The processor 2001 is used to obtain a first check field according to target data. The first check field is used to check the target data. The target data is a MAC frame or a 66-bit code block stream. The 66-bit code block stream includes the first check field. Or, the next 66-bit code block of the 66-bit code block stream includes the first check field. The mapping module 1803 is used to map the 66-bit code block stream to the payload area of the data frame. The transceiver 2002 is used to send a data frame.
[0141] When the communication device 2000 is a receiving device, the transceiver 2002 is used to receive a data frame. The processor 2001 is used to extract a 66-bit code block stream from a payload area of the data frame. The 66-bit code block stream includes a first check field. Or, the next 66-bit code block of the 66-bit code block stream includes the first check field. The processor 2001 is used to check the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream through the first check field.
[0142] In other embodiments, the communication device 2000 may further include a memory 2003. The memory 2003 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), or a flash memory. The volatile memory may be a random access memory (RAM). The memory 2003 may be used for a MAC frame or a 66-bit code block stream.
[0143] It should be understood that the description of the communication device 2000 and the aforementioned Figure 4 , Fig.15 , Fig.16 or Fig.17 Therefore, for the description of the communication device 2000, reference may be made to the aforementioned Figure 4 , Fig.15 , Fig.16 or Fig.17 For example, the 66-bit code block stream or the next 66-bit code block of the 66-bit code block stream includes a second check field. For another example, the first check field includes a first subfield and a second subfield. For another example, the first check field is not an FCS field.
[0144] The present application also provides a communication system. Fig.21 This is a schematic diagram of the structure of the communication system provided in the embodiment of the present application. Fig.21 As shown, the communication system 2100 includes a sending device 2101 and a receiving device 2102. The sending device 2101 is used to obtain a 66-bit code block stream of a MAC frame. The MAC frame includes an FCS field. The sending device 2101 is used to obtain a first check field according to target data. The target data is a MAC frame or a 66-bit code block stream. The 66-bit code block stream includes a first check field. Or, the next 66-bit code block of the 66-bit code block stream includes a first check field. The sending device 2101 is used to map the 66-bit code block stream to a payload area of a data frame. The sending device 2101 sends a data frame to the receiving device 2102. The receiving device 2102 is used to: receive a data frame, extract a 66-bit code block stream from the payload area of the data frame, and check the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream through the first check field.
[0145] It should be understood that the description of the sending device 2101 and the aforementioned Figure 4 , Fig.15 or Fig.16Therefore, for the description of the sending device 2101, reference can be made to the aforementioned Figure 4 , Fig.15 or Fig.16 Similarly, the description of the receiving device 2102 and the aforementioned Fig.17 Therefore, for the description of the receiving device 2102, reference can be made to the aforementioned Fig.17 Description.
[0146] The embodiment of the present application also provides a data frame. The data frame includes a payload area and an overhead area. The payload area includes a 66-bit code block stream. The 66-bit code block stream includes a first check field. Or, the next 66-bit code block of the 66-bit code block stream includes a first check field. The first check field is used to check the MAC frame or 66-bit code block stream corresponding to the 66-bit code block stream.
[0147] It should be understood that regarding the description of the data frame, the aforementioned Figure 4 , Fig.15 or Fig.16 Therefore, for the description of data frames, please refer to the above Figure 4 , Fig.15 or Fig.16 For example, the MAC frame includes an FCS field. The first check field is not an FCS field. For another example, the data frame is an OSU frame, an OTN frame, a FlexE frame, or an MTN frame.
[0148] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A data processing method, It is characterized in that include: Get the first 66-bit code block stream of a medium access control MAC frame; Obtain a first check field according to the first 66-bit code block stream, where the first check field is used to check the first 66-bit code block stream; Obtaining a second 66-bit code block stream according to the first 66-bit code block stream and the first check field, or adding the first check field to a subsequent 66-bit code block of the first 66-bit code block stream; Mapping the second 66-bit code block stream to the payload area of the data frame, or mapping the first 66-bit code block stream and the next 66-bit code block to the payload area of the data frame; The data frame is sent.
2. The data processing method according to claim 1, It is characterized in that The latter 66-bit code block is an S control coding block, an I control coding block or a custom control coding block.
3. The data processing method according to claim 2, It is characterized in that The control block type field of the custom control coding block takes a value of 0x00.
4. The data processing method according to claim 1, It is characterized in that The S control coding block in the second 66-bit code block stream is used to carry the first check field.
5. The data processing method according to any one of claims 1 to 4, It is characterized in that The first check field includes a first subfield and a second subfield, wherein: The first subfield is used to check the length of the 66-bit code block stream; The second subfield is used to verify the content of the 66-bit code block stream.
6. The data processing method according to claim 5, It is characterized in that The first subfield is used to indicate the number of 66-bit code blocks included in the 66-bit code block stream.
7. The data processing method according to claim 5 or 6, It is characterized in that The size of the first subfield is 2 bytes.
8. The data processing method according to any one of claims 5 to 7, It is characterized in that The size of the second subfield is 4 bytes.
9. The data processing method according to any one of claims 1 to 8, It is characterized in that The 66-bit code block stream further includes a second check field, or the next 66-bit code block further includes the second check field, and the second check field is used to check the first check field.
10. The data processing method according to claim 9, It is characterized in that The size of the second check field is 1 byte.
11. The data processing method according to any one of claims 1 to 10, It is characterized in that Mapping the second 66-bit code block stream to the payload area of the data frame includes: mapping the second 66-bit code block stream to a service frame, and mapping the service frame to the payload area of the data frame.
12. A data processing method, It is characterized in that include: Get a medium access control MAC frame; Obtain a first check field according to the MAC frame, where the first check field is used to check the MAC frame, and the MAC frame includes a frame check sequence FCS field; Encode the MAC frame into a 66-bit code block stream, wherein the 66-bit code block stream includes the first check field, or a subsequent 66-bit code block of the 66-bit code block stream includes the first check field; Mapping the 66-bit code block stream to a payload area of a data frame; The data frame is sent.
13. A data processing method, It is characterized in that include: Receive data frame; Extracting a 66-bit code block stream from the payload area of the data frame, the 66-bit code block stream including a first check field, or a subsequent 66-bit code block of the 66-bit code block stream including the first check field; The 66-bit code block stream is checked by using the first check field.
14. The data processing method according to claim 13, It is characterized in that The 66-bit code block stream includes a first check field including: the S control code block in the 66-bit code block stream includes the first check field; The method further comprises: Replacing the first check field with the content of the preamble field in the medium access control MAC frame to obtain a modified 66-bit code block stream; The modified 66-bit code block stream is output.
15. The data processing method according to claim 14, It is characterized in that The next 66-bit code block of the 66-bit code block stream includes the first check field, and the method further includes: The latter 66-bit code block is modified.
16. The data processing method according to claim 15, It is characterized in that The latter 66-bit code block is an S control code block; The modifying of the latter 66-bit code block includes: replacing the first check field with the content of the preamble field in the MAC frame.
17. The data processing method according to claim 15, It is characterized in that The latter 66-bit code block is a 1 control code block; The modifying of the latter 66-bit code block includes: modifying the content in the first check field to 0.
18. The data processing method according to claim 15, It is characterized in that The latter 66-bit code block is a custom control code block; The modifying of the latter 66-bit code block includes: deleting the custom control code block.
19. The data processing method according to any one of claims 13 to 18, It is characterized in that The method further comprises: If the 66-bit code block stream fails to pass the check of the first check field, the synchronization field of the T control coding block in the 66-bit code block stream is modified to 11 or 00.
20. The data processing method according to any one of claims 13 to 19, It is characterized in that The 66-bit code block stream further includes a second check field, or the next 66-bit code block further includes the second check field, and the method further includes: The first check field is checked by using the second check field.
21. A sending device, It is characterized in that The device comprises an acquisition module, a processing module, a mapping module and a sending module, wherein the modules in the sending device are used to execute the method described in any one of claims 1 to 12.
22. A receiving device, It is characterized in that The receiving device comprises a receiving module, an extracting module and a checking module, wherein the modules in the receiving device are used to execute the method described in any one of claims 13 to 20.
23. A sending device, It is characterized in that A processor and a transceiver, wherein: The processor is used to execute the method described in any one of claims 1 to 12 to obtain a data frame; The transceiver is used to send the data frame.
24. A receiving device, It is characterized in that Includes a processor and a transceiver, wherein: The transceiver is used to receive data frames; The processor is configured to execute the method of any one of claims 13 to 20.
25. A communication system, It is characterized in that The invention comprises the transmitting device as claimed in claim 23 and the receiving device as claimed in claim 24.
Citation Information
Cited By
Data processing method and related device
EP4664915A1
Data processing method and related device
WO2024188059A1
