Bypass frame searching method and device, electronic equipment and storage medium

By introducing a bypass frame search method into the optical transport network system, and using the data stream processing module to determine and write overhead information for frame search processing, the problem of the frame search module being difficult to expand or modify in complex network architectures is solved, and the flexibility and functional adjustment of the frame search module are realized.

CN120934674APending Publication Date: 2025-11-11HANGZHOU CHENXIAO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510864137.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

The frame search module is difficult to expand or modify flexibly in complex network architectures, making it difficult to meet diverse data processing needs.

Method used

By introducing a bypass frame search method into the optical transport network system, the overhead information is determined by the data stream processing module during data transmission and written into the frame search module for frame search processing. This allows for flexible adjustment of the frame search module, independent of the data transmission path.

Benefits of technology

It improves the flexibility of the frame search module, enabling flexible adjustment of processing functions according to needs, reduces the performance requirements of the frame search module device, and solves the problem of the frame search module being difficult to expand or modify.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120934674A_ABST
    Figure CN120934674A_ABST
Patent Text Reader

Abstract

The invention discloses a bypass frame searching method and device, electronic equipment and a storage medium, belongs to the technical field of communication, and is used for solving the problem that a frame searching module is difficult to flexibly expand or modify in a related frame searching technology. The method is applied to an OTN system, the OTN system comprises a frame searching module and a data stream processing module of an ODU, and the method comprises the following steps: determining overhead information in to-be-transmitted data in the ODU through the data stream processing module; wherein the overhead information is a frame header to be confirmed of a frame corresponding to the data to be transmitted; writing the overhead information into the frame searching module through the data stream processing module, and transmitting the data to be transmitted; and through a frame search module, based on the overhead information, carrying out frame search processing to obtain a target position of a target frame header.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, specifically relating to a bypass frame search method, apparatus, electronic device, and storage medium. Background Technology

[0002] Frame search processing for data streams typically employs an in-path approach. In-path processing means that the data stream passes directly through the frame search module during transmission, and the frame search processing is performed synchronously with data transmission. Consequently, the frame search module usually needs to be tightly integrated with the data transmission path. Therefore, in complex network architectures, if the frame search module needs to add new processing functions, the entire data transmission path may need to be adjusted.

[0003] In other words, the relevant frame search technology suffers from the problem that the frame search module is difficult to flexibly expand or modify. Summary of the Invention

[0004] This application provides a bypass frame search method, apparatus, electronic device, and storage medium, which can solve the problem that related frame search technologies have difficulties in flexibly expanding or modifying the frame search module.

[0005] In a first aspect, embodiments of this application provide a bypass frame search method applied to an optical transport network (OTN) system. The OTN system includes a frame search module and a data stream processing module for an Optical Channel Data Unit (ODU). The method includes: determining overhead information in the data to be transmitted in the ODU through the data stream processing module; wherein the overhead information is the frame header to be confirmed of the frame corresponding to the data to be transmitted; writing the overhead information into the frame search module through the data stream processing module, and transmitting the data to be transmitted; and performing frame search processing based on the overhead information through the frame search module to obtain the target position of the target frame header.

[0006] Secondly, embodiments of this application provide a bypass frame search device applied to an OTN system. The OTN system includes a frame search module and an ODU data stream processing module, comprising: a determination module, configured to determine overhead information in the data to be transmitted in the ODU through the data stream processing module; wherein the overhead information is the frame header to be acknowledged of the frame corresponding to the data to be transmitted; a transmission module, configured to write the overhead information into the frame search module through the data stream processing module, and to transmit the data to be transmitted; and a processing module, configured to perform frame search processing based on the overhead information through the frame search module to obtain the target position of the target frame header.

[0007] Thirdly, embodiments of this application provide an electronic device comprising: a processor; and a memory arranged to store computer-executable instructions configured to be executed by the processor, the executable instructions including instructions for performing the bypass frame search method as described in the first aspect.

[0008] Fourthly, embodiments of this application provide a storage medium for storing computer-executable instructions that cause a computer to perform the bypass frame search method as described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the bypass frame search method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the bypass frame search method as described in the first aspect.

[0011] In this embodiment, the data stream processing module determines overhead information from the data to be transmitted in the ODU; wherein the overhead information is the frame header to be acknowledged for the corresponding frame of the data to be transmitted; the data stream processing module writes the overhead information into the frame search module and transmits the data to be transmitted; the frame search module performs frame search processing based on the overhead information to obtain the target position of the target frame header. Compared with related frame search technologies, which use in-path processing where the data stream passes directly through the frame search module during transmission and the frame search module is tightly integrated with the data transmission path, this application uses bypass processing. That is, while the data stream processing module is transmitting the data to be transmitted, it determines the overhead information in the data to be transmitted and writes the overhead information into the frame search module, which then performs frame search processing based on the overhead information. In other words, through bypass processing, the frame search module can operate independently of the transmitted data stream, allowing for flexible adjustment of the frame search module's processing functions according to requirements, thus improving flexibility. This solves the problem of related frame search technologies where the frame search module is difficult to flexibly expand or modify. Attached Figure Description

[0012] Figure 1 This is a flowchart illustrating a bypass frame search method provided in an embodiment of this application; Figure 2 This is a schematic diagram illustrating the determination of a target count value for a first counter, provided in an embodiment of this application. Figure 3 This is a schematic diagram of another bypass frame search method provided in the embodiments of this application; Figure 4 This is a flowchart illustrating another bypass frame search method provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of a bypass frame search device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0013] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0014] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0015] The bypass frame search method, apparatus, electronic device, and storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0016] Figure 1 This illustration shows a bypass frame search method provided by an embodiment of the present invention. This method can be applied to an OTN system, which includes a frame search module and an ODU, the ODU including a data stream processing module. The method includes the following steps: S102: The overhead information is determined from the data to be transmitted in the ODU through the data stream processing module.

[0017] Among them, the overhead information is the unacknowledged frame header of the frame corresponding to the data to be transmitted.

[0018] S104: The overhead information is written into the frame search module through the data stream processing module, and the data to be transmitted is transmitted.

[0019] In practical applications, the data stream processing module continuously transmits the data to be transmitted in the ODU.

[0020] S106: The frame search module performs frame search processing based on overhead information to obtain the target position of the target frame header.

[0021] The target frame header is the correct frame header of the frame corresponding to the first data.

[0022] To correctly identify the frame header corresponding to the data to be transmitted in the ODU, during the transmission of the first data in the ODU, the following process is performed simultaneously: The data stream processing module determines the frame header (i.e., overhead information) of the frame corresponding to the data to be transmitted in the ODU and writes the overhead information into the frame search module. The frame search module then performs frame search processing based on the overhead information to obtain the target position of the target frame header. Thus, the frame header determined by the data stream processing module can be re-determined through the frame search module.

[0023] The bypass frame search method provided in this invention determines overhead information from the data to be transmitted in the ODU through a data stream processing module. The overhead information is the unacknowledged frame header of the corresponding frame of the data to be transmitted. The data stream processing module writes the overhead information into a frame search module and transmits the data to be transmitted. The frame search module performs frame search processing based on the overhead information to obtain the target position of the target frame header. Compared to related frame search technologies that use in-path processing, where the data stream directly passes through the frame search module during transmission and the frame search module is tightly integrated with the data transmission path, this application uses bypass processing. That is, while the data stream processing module is transmitting the data to be transmitted, it simultaneously determines the overhead information in the data to be transmitted and writes it into the frame search module, which then performs frame search processing based on the overhead information. In other words, through bypass processing, the frame search module can operate independently of the transmitted data stream, allowing for flexible adjustment of its processing functions according to requirements and improving flexibility. This solves the problem of related frame search technologies where the frame search module is difficult to flexibly expand or modify.

[0024] In one implementation, based on the overhead information, frame search processing is performed to obtain the target position of the target frame header (i.e., S106), which can be specifically executed as follows: Steps A1 to A4: Step A1: Concatenate the overhead information of the current frame with the overhead information of the previous frame to obtain the concatenated data.

[0025] Each frame corresponds to one overhead information.

[0026] Since each frame has only one frame header, meaning each frame only determines one overhead information, any two overhead information determined sequentially by the data stream processing module can be the overhead information of the current frame and the overhead information of the previous frame.

[0027] For example, the overhead information determined by the data stream processing module can be 8 bytes (i.e., 64 bits). The overhead information of the current frame can be byte_new[63:0], and the overhead information of the previous frame is byte_old[63:0]. These are concatenated to obtain the concatenated data: byte_16B[127:0]={byte_old[63:0],byte_new[63:0]}.

[0028] Step A2: Based on the preset number of bytes in the frame positioning signal, the spliced ​​data is split sequentially in such a way that there is a one-byte difference between every two data to be matched, to obtain multiple data to be matched.

[0029] The number of bytes of the data to be matched is the same as the number of bytes of the frame positioning signal.

[0030] Step A3: Based on the frame positioning signal, perform matching among multiple data to be matched to obtain the matching result.

[0031] Among them, the frame positioning signal is used to identify the target frame header.

[0032] Following the example above, the frame positioning signal can be 48'hf6f6f6282828, where 48' indicates that the total number of bits in the frame positioning signal is 48, a total of 6 bytes, and h indicates that the frame positioning signal uses hexadecimal format; based on the 6-byte number of the frame positioning signal, the concatenated data is as follows: byte_16B[127:0]={byte_old[63:0],byte_new[63:0]} (a total of 16 bytes), is split into multiple matching data by dividing each pair of 6 bytes by 1 byte: Byte1[63:0]=byte_16B[127:80], Byte2[63:0]=byte_16B[119:72], Byte3[63:0]=byte_16B[111:64], Byte4[63:0]=byte_16B[103:56], Byte5[63:0]=byte_16B[95:48], Byte6[63:0]=byte_16B[87:40], Byte7[63:0]=byte_16B[79:32] and Byte8[63:0]=byte_16B[71:24].

[0033] Specifically, it can be broken down into the number of bytes of overhead information to be matched.

[0034] Step A4: Determine the target position of the target frame header based on the matching results.

[0035] In this embodiment, frame search processing is performed on the overhead information of the current frame and the overhead information of the previous frame to obtain the correct frame header position (i.e., the target position of the target frame header).

[0036] In one implementation, the overhead information (i.e., S104) is determined from the data to be transmitted in the ODU by the data stream processing module, which can be specifically executed as follows: Steps B1 to B2: Step B1: The data stream processing module determines whether the target count value of the first counter preset by the corresponding data stream processing module is zero by sequentially targeting the target byte according to the transmission order.

[0037] The target byte is any newly transmitted byte in the data to be transmitted. The target count value is obtained based on the current count value of the second counter and the current count value of the third counter preset by the data stream processing module; the third counter is used to accumulate the number of bytes of data to be transmitted that have been transmitted; the second counter is preset by the frame search module.

[0038] like Figure 2 As shown, the data stream processing module has a preset first counter (counter, cnt). The target count value of the first counter is equal to the current count value of the preset third counter in the data stream processing module plus the current count value of the preset second counter in the frame search module.

[0039] The data stream processing module continuously transmits the data to be transmitted. For each byte transmitted, the third counter increments by 1, accumulating the number of bytes of data already transmitted. The second counter initially has a count of 0 and is adjusted after each frame search. Specifically, the current count of the second counter is obtained by adjusting it based on the matching result of the previous overhead information.

[0040] Step B2: If the target count is zero, then copying is performed based on the target byte and the data to be transmitted to obtain overhead information.

[0041] In practical applications, at the moment the OTN system starts up, the target byte is the first byte of the data to be transmitted. The current count value of the third counter in the data stream processing module is 0, and the current count value of the second counter in the frame search module is also 0. Therefore, the target count value of the first counter corresponding to this target byte is 0. Thus, the data to be transmitted can be copied starting from this target byte until several bytes of the frame header are copied, obtaining the first overhead information. Overhead information beyond the first overhead information can be determined using the following example.

[0042] For example, the counting range of the first counter is 0-15295 bytes, the counting range of the second counter is 0-15295 bytes, and the counting range of the third counter is 0-15295 bytes. When any one of these counters reaches 15295, it is incremented by 1, becoming 0. For the j-th byte in the data to be transmitted, the data stream processing module determines that the target count value of the corresponding first counter is 15295, meaning it does not belong to the frame header information. After its transmission, the current count value of the third counter is incremented by 1. Correspondingly, the data stream processing module determines that the target count value of the corresponding first counter is 0. At this point, the (j+1)-th byte is transmitted, and the target count value of the first counter corresponding to this (j+1)-th byte is 0. Therefore, the data to be transmitted is copied starting from the (j+1)-th byte as the beginning of the frame header, until the number of bytes of the frame header are copied, thus obtaining the overhead information; where j is a natural number greater than 0.

[0043] In this embodiment, multiple preset counters (a first counter, a second counter, and a third counter) are used to poll the entire frame corresponding to the data to be transmitted to determine the frame header.

[0044] In one implementation, step C1 can also be performed to update the current count value of the second counter: Step C1: Based on the matching result, adjust the current count value of the second counter preset by the frame search module to obtain the latest current count value of the second counter, and send the latest current count value of the second counter to the data stream processing module through the frame search module.

[0045] like Figure 3 As shown, the data stream processing module writes overhead information to the frame search module; then, the frame search module determines the matching result and adjusts the current count value of the second counter preset by the frame search module according to the matching result to obtain the latest current count value of the second counter (the process of obtaining the latest current count value of the second counter according to the matching result is not shown in the figure); then, the frame search module sends the latest current count value of the second counter to the data stream processing module.

[0046] For example, if the matching result indicates that the target data to be matched is the first data to be matched obtained from the splitting, then the current count value of the second counter is used as the latest current count value of the second counter; if the matching result indicates that the target data to be matched is the i-th data to be matched obtained from the splitting, then the current count value of the second counter is subtracted by i-1 bytes, that is, the current count value of the second counter is subtracted by (i-1) to obtain the latest current count value of the second counter; if the matching result indicates that there is no target data to be matched, then the current count value of the second counter is subtracted by the number of bytes of overhead information to obtain the latest current count value of the second counter; where i is a natural number greater than 1 and less than the number of bytes of overhead information; the target data to be matched is the data to be matched that matches the frame positioning signal.

[0047] In this embodiment, the current count value of the third counter is updated by the latest matching result, and the frame search module then sends the latest current count value of the second counter to the data stream processing module, thereby updating the target count value of the first counter preset by the data stream processing module.

[0048] In one implementation, determining the target position of the target frame header (i.e., step A4) based on the target data to be matched can be specifically executed as follows: steps a1 to a3: Step a1: If the matching result indicates that the target data to be matched is the first data to be matched obtained from the split, then the position of the frame header corresponding to the overhead information is taken as the target position.

[0049] Step a2: If the matching result indicates that the target data to be matched is the i-th data to be matched obtained by splitting, then the position of the frame header corresponding to the overhead information is moved forward by i-1 bytes to obtain the target position.

[0050] Where i is a natural number greater than 1 and less than or equal to the number of bytes of overhead information; the target data to be matched is the data to be matched with the frame positioning signal.

[0051] Step a3: If the matching result indicates that there is no target data to be matched, then determine the position of the frame header corresponding to the overhead information and move it forward by the number of bytes of overhead information.

[0052] Following the example at step A3 above, if the matching result indicates that the target data to be matched is Byte1[63:0], then the position of the frame header corresponding to the overhead information is taken as the target position; if the matching result indicates that the target data to be matched is Byte2[63:0], then the position of the frame header corresponding to the overhead information is moved forward by 1 byte to obtain the target position; if the matching result indicates that the target data to be matched is Byte3[63:0], then the position of the frame header corresponding to the overhead information is moved forward by 2 bytes to obtain the target position; if the matching result indicates that the target data to be matched is Byte4[63:0], then the position of the frame header corresponding to the overhead information is moved forward by 3 bytes to obtain the target position; if the matching result indicates that the target data to be matched is Byte5[63:0], then the position of the frame header corresponding to the overhead information is moved forward by 4 bytes. The matching result indicates that the target data to be matched is Byte6[63:0], then the position of the frame header corresponding to the overhead information is moved forward by 5 bytes to obtain the target position; if the matching result indicates that the target data to be matched is Byte7[63:0], then the position of the frame header corresponding to the overhead information is moved forward by 6 bytes to obtain the target position; if the matching result indicates that the target data to be matched is Byte8[63:0], then the position of the frame header corresponding to the overhead information is moved forward by 7 bytes to obtain the target position; if the matching result indicates that there is no target data to be matched, then the position of the frame header corresponding to the overhead information is moved forward by the number of bytes of the overhead information to obtain the target position. For example, if the number of bytes of the overhead information is 8, then the position of the frame header corresponding to the overhead information is moved forward by 8 bytes to obtain the target position.

[0053] In one implementation, the overhead information (i.e., S102) is determined from the data to be transmitted in the ODU by the data stream processing module, which can be specifically executed as the following step D1: Step D1: The overhead information is determined from the data to be transmitted in the ODU by the data stream processing module according to the first clock cycle of the data stream processing module.

[0054] The first clock cycle is the clock cycle corresponding to the first clock in the data stream processing module.

[0055] In practical applications, the data to be transmitted in the ODU is processed according to the first clock cycle to obtain overhead information.

[0056] For example, if the data stream processing module can process 8 bytes in a first clock cycle, the above steps B1 to B2 can be specifically executed as follows: in each first clock cycle, for the target byte in the 8 bytes according to the transmission order, determine whether the target count value of the first counter preset by the data stream processing module is zero; if the target count value is zero, then based on the target byte and the data to be transmitted, perform copying processing to obtain overhead information.

[0057] Specifically, one frame can correspond to multiple first clock cycles. The first clock cycle can be set according to actual needs. Different services have different bandwidths for their corresponding data streams, and therefore the first clock cycle can also be different. Therefore, there is no specific limitation.

[0058] Writing the overhead information to the frame search module (i.e., S104) can be specifically executed as follows: Step D2: Step D2: Write the overhead information into the preset First In First Out (FIFO) queue in the frame search module.

[0059] In addition, the OTN system can include multiple data streams to be transmitted. After obtaining the corresponding overhead information, the frame pointer (fp) corresponding to the overhead information is determined. The frame pointer is used to indicate that the corresponding data is overhead information, so that the overhead information is written into the FIFO queue.

[0060] The frame search module performs frame search processing based on the overhead information (i.e., S106), which can be specifically executed as follows: D3: Step D3: The overhead information is retrieved from the FIFO queue according to the second clock cycle of the frame search module, and frame search processing is performed based on the overhead information.

[0061] The second clock cycle is greater than the first clock cycle; the second clock cycle is the clock cycle corresponding to the second clock in the frame search module.

[0062] Specifically, one frame can correspond to multiple second clock cycles.

[0063] Considering that in relevant frame search technologies, the frame search module must have sufficient performance to ensure timely completion of processing tasks during data transmission; otherwise, data transmission interruption or delay may occur. For example, in high-bandwidth network environments, insufficient processing power of the frame search module may become a bottleneck for data transmission. The frame search module needs to use the same clock as the data stream processing module, which is generally very high-frequency. Furthermore, the frame search module is relatively complex, easily causing timing constraints on the device where it resides. In this embodiment, based on the aforementioned bypass processing, a FIFO queue is set up through the frame search module. Since the frame search module only processes overhead information, and this overhead information appears only once per frame, data processing can be slowed down from the first clock cycle corresponding to the high-frequency clock to the second clock cycle corresponding to the low-frequency clock, reducing the pressure on the device where the frame search module resides, thus lowering the performance requirements of the device.

[0064] In one implementation, the OTN system includes a field-programmable gate array (FPGA) chip, which includes a frame search module.

[0065] By combining the above embodiment, the performance requirements for the FPGA chip can be reduced.

[0066] Figure 4 This is a flowchart illustrating another bypass frame search method provided in an embodiment of this application. For example... Figure 4 As shown, the method includes: Step 402: The data stream processing module determines whether the target count value of the first counter preset by the corresponding data stream processing module is zero by sequentially targeting the target byte according to the transmission order.

[0067] The target byte is any latest byte to be transmitted in the data to be transmitted in the ODU. Step 404: If the target count value is zero, then copying is performed based on the target byte and the data to be transmitted to obtain overhead information.

[0068] The target count value is obtained based on the current count value of the second counter and the current count value of the third counter preset by the data stream processing module; the third counter is used to accumulate the number of bytes of data to be transmitted; the second counter is preset by the frame search module.

[0069] Step 406: Through the data stream processing module, the overhead information is written into the frame search module of the FPGA chip, and the data to be transmitted is transmitted.

[0070] Step 408: The overhead information of the current frame and the overhead information of the previous frame are concatenated by the frame search module to obtain the concatenated data.

[0071] Each frame corresponds to one overhead information.

[0072] Step 410: Based on the preset number of bytes of the frame positioning signal, the spliced ​​data is split sequentially in such a way that there is a one-byte difference between every two data to be matched, to obtain multiple data to be matched.

[0073] The number of bytes of the data to be matched is the same as the number of bytes of the frame positioning signal.

[0074] Step 412: Based on the frame positioning signal, perform matching among multiple data to be matched to obtain the matching result.

[0075] Among them, the frame positioning signal is used to identify the target frame header.

[0076] Step 414: Determine the target position of the target frame header based on the matching results.

[0077] The specific processes of steps 402 to 414 have been described in detail in the above embodiments and will not be repeated here.

[0078] In this embodiment, the overhead information is determined from the data to be transmitted in the ODU by the data stream processing module. The overhead information is the unacknowledged frame header of the corresponding frame of the data to be transmitted. The data stream processing module writes the overhead information into the frame search module and transmits the data to be transmitted. The frame search module performs frame search processing based on the overhead information to obtain the target position of the target frame header. Compared to related frame search technologies that use in-path processing, where the data stream directly passes through the frame search module during transmission and the frame search module is tightly integrated with the data transmission path, this application uses bypass processing. That is, while the data stream processing module is transmitting the data to be transmitted, it simultaneously determines the overhead information in the data to be transmitted and writes it into the frame search module, which then performs frame search processing based on the overhead information. In other words, through bypass processing, the frame search module can operate independently of the transmitted data stream, allowing for flexible adjustment of its processing functions as needed, thus improving flexibility. This solves the problem of related frame search technologies where the frame search module is difficult to flexibly expand or modify.

[0079] Corresponding to the bypass frame search method provided in the above embodiments, based on the same technical concept, the present invention also provides a bypass frame search device. Figure 5This is a schematic diagram of a bypass frame search device according to an embodiment of the present invention. The bypass frame search device is applied to an OTN system, which includes a frame search module and an ODU data stream processing module. The bypass frame search device is used to perform... Figures 1 to 4 The described bypass frame search method, such as Figure 5 As shown, the bypass frame search device includes: a determination module 510, a transmission module 520, and a processing module 530.

[0080] The determination module 510 is used to determine the overhead information in the data to be transmitted in the ODU through the data stream processing module; wherein, the overhead information is the frame header to be acknowledged of the frame corresponding to the data to be transmitted. The transmission module 520 is used to write overhead information into the frame search module through the data stream processing module, and to transmit the data to be transmitted. The processing module 530 is used to perform frame search processing based on overhead information through the frame search module to obtain the target position of the target frame header.

[0081] In one implementation, the processing module 530 includes: The splicing unit is used to splice the overhead information of the current frame with the overhead information of the previous frame to obtain the spliced ​​data; where each frame corresponds to one overhead information. The splitting unit is used to split the spliced ​​data sequentially according to the preset number of bytes of the frame positioning signal, with each pair of data to be matched differing by one byte, to obtain multiple data to be matched; wherein the number of bytes of the data to be matched is the same as the number of bytes of the frame positioning signal; The matching unit is used to match multiple data to be matched based on the frame positioning signal to obtain the matching result; wherein, the frame positioning signal is used to identify the target frame header; The determination unit is used to determine the target position of the target frame header based on the matching results.

[0082] In one implementation, module 510 is specifically used for: The data stream processing module sequentially checks the target bytes according to the transmission order and determines whether the target count value of the first counter preset by the data stream processing module is zero; where the target byte is any of the latest bytes to be transmitted in the data to be transmitted. If the target count is zero, then copying is performed based on the target bytes and the data to be transmitted to obtain overhead information; The target count value is obtained based on the current count value of the second counter and the current count value of the third counter preset by the data stream processing module; the third counter is used to accumulate the number of bytes of data to be transmitted; the second counter is preset by the frame search module.

[0083] In one implementation, the bypass frame search device further includes an adjustment module; the adjustment module is used for: Based on the matching results, the current count value of the second counter preset by the frame search module is adjusted accordingly to obtain the latest current count value of the second counter. The latest current count value of the second counter is then sent to the data stream processing module through the frame search module.

[0084] In one implementation, the determining unit is specifically used for: If the matching result indicates that the target data to be matched is the first data to be matched obtained from the split, then the position of the frame header corresponding to the overhead information is taken as the target position; If the matching result indicates that the target data to be matched is the i-th data to be matched obtained by splitting, then the position of the frame header corresponding to the overhead information is shifted forward by i-1 bytes to obtain the target position; i is a natural number greater than 1 and less than the number of bytes of the overhead information; If the matching result indicates that there is no target data to be matched, then the position of the frame header corresponding to the overhead information is determined to be moved forward by the number of bytes of overhead information. Among them, the target data to be matched is the data to be matched with the frame positioning signal.

[0085] In one implementation, the determining module 510 is specifically used for: The overhead information is determined from the data to be transmitted in the ODU by the data stream processing module according to the first clock cycle of the data stream processing module. Transmission module 520 is specifically used for: The overhead information is written into the preset FIFO queue in the frame search module; This processing module 530 is specifically used for: The frame search module retrieves overhead information from the FIFO queue according to the second clock cycle of the frame search module, and performs frame search processing based on the overhead information; wherein the second clock cycle is longer than the first clock cycle.

[0086] In one implementation, the OTN system includes an FPGA chip, and the FPGA chip includes the frame search module.

[0087] The bypass frame search device provided in this invention determines overhead information from the data to be transmitted in the ODU through a data stream processing module. The overhead information is the frame header to be acknowledged for the corresponding frame of the data to be transmitted. The data stream processing module writes the overhead information into the frame search module and transmits the data to be transmitted. The frame search module performs frame search processing based on the overhead information to obtain the target position of the target frame header. Compared to related frame search technologies that use in-path processing, where the data stream directly passes through the frame search module during transmission and the frame search module is tightly integrated with the data transmission path, this application uses bypass processing. That is, while the data stream processing module is transmitting the data to be transmitted, it simultaneously determines the overhead information in the data to be transmitted and writes it into the frame search module, which then performs frame search processing based on the overhead information. In other words, through bypass processing, the frame search module can operate independently of the transmitted data stream, allowing for flexible adjustment of its processing functions as needed, thus improving flexibility. This solves the problem of related frame search technologies where the frame search module is difficult to flexibly expand or modify.

[0088] Those skilled in the art will understand that the above-described bypass frame search device can be used to implement the bypass frame search method described above. The detailed description therein should be similar to the method description above. To avoid repetition, it will not be repeated here.

[0089] Based on the same technical concept, embodiments of this application also provide an electronic device for performing the above-described bypass frame search method. Figure 6 This is a schematic diagram of the structure of an electronic device to implement various embodiments of this application. The electronic device can vary significantly due to differences in configuration or performance, and may include a processor 610, a communications interface 620, a memory 630, and a communication bus 640. The processor 610, communications interface 620, and memory 630 communicate with each other via the communication bus 640. The processor 610 can call a computer program stored in the memory 630 and executable on the processor 610 to perform the following steps: The overhead information is determined from the data to be transmitted in the ODU by the data stream processing module; the overhead information is the unacknowledged frame header of the frame corresponding to the data to be transmitted. The overhead information is written into the frame search module through the data stream processing module, and the data to be transmitted is transmitted. The frame search module performs frame search processing based on overhead information to obtain the target position of the target frame header.

[0090] The technical solutions of one or more embodiments of this specification involve using a data stream processing module to determine overhead information in the data to be transmitted in the ODU; wherein the overhead information is the frame header to be acknowledged for the corresponding frame of the data to be transmitted; the data stream processing module writes the overhead information into a frame search module and transmits the data to be transmitted; the frame search module performs frame search processing based on the overhead information to obtain the target position of the target frame header. Compared with related frame search technologies, which use in-path processing where the data stream directly passes through the frame search module during transmission and the frame search module is tightly integrated with the data transmission path, this application uses bypass processing. That is, while the data stream processing module is transmitting the data to be transmitted, it simultaneously determines the overhead information in the data to be transmitted and writes the overhead information into the frame search module, which then performs frame search processing based on the overhead information. In other words, through bypass processing, the frame search module can operate independently of the transmitted data stream, allowing for flexible adjustment of the frame search module's processing functions according to requirements, thus improving flexibility. This solves the problem of related frame search technologies where the frame search module is difficult to flexibly expand or modify.

[0091] The specific execution steps can be found in the various steps of the above-described bypass frame search method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0092] It should be noted that the electronic devices in the embodiments of this application include: servers, terminals, or other devices besides terminals.

[0093] The above electronic device structure does not constitute a limitation on the electronic device. An electronic device may include more or fewer components than illustrated, or combine certain components, or arrange them differently. For example, an input unit may include a Graphics Processing Unit (GPU) and a microphone, and a display unit may use a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar display panels. User input units include at least one of a touch panel and other input devices. A touch panel is also called a touchscreen. Other input devices may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be elaborated further here.

[0094] Memory can be used to store software programs and various data. Memory can primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, memory can include volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DRRAM).

[0095] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and applications, while the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor.

[0096] This application also provides a storage medium storing computer-executable instructions. When these computer-executable instructions are executed by a processor, they implement the various processes of the above-described bypass frame search method embodiment or the above-described digital human clothing generation method embodiment, and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0097] The processor is the processor in the electronic device described in the above embodiments. The storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0098] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include multitasking and parallel processing according to the functions involved, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0099] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of this application.

[0100] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A bypass frame search method, characterized in that, The method is applied to an optical transport network (OTN) system, which includes a frame search module and a data stream processing module for optical channel data units (ODUs); the method includes: The data stream processing module determines overhead information from the data to be transmitted in the ODU; wherein the overhead information is the unacknowledged frame header of the frame corresponding to the data to be transmitted. The overhead information is written into the frame search module through the data stream processing module, and the data to be transmitted is transmitted. The frame search module performs frame search processing based on the overhead information to obtain the target position of the target frame header.

2. The method according to claim 1, characterized in that, The step of performing frame search processing based on the overhead information to obtain the target position of the target frame header includes: The overhead information of the current frame and the overhead information of the previous frame are concatenated to obtain concatenated data; wherein each frame corresponds to one overhead information. Based on the preset number of bytes in the frame positioning signal, the spliced ​​data is sequentially split into multiple data to be matched, with each pair of data to be matched differing by one byte. The number of bytes in each data to be matched is the same as the number of bytes in the frame positioning signal. Based on the frame positioning signal, matching is performed among multiple sets of data to be matched to obtain a matching result; wherein, the frame positioning signal is used to identify the target frame header; Based on the matching result, the target position of the target frame header is determined.

3. The method according to claim 1, characterized in that, The process of determining overhead information from the data to be transmitted in the ODU through the data stream processing module includes: The data stream processing module determines whether the target count value of the first counter preset by the data stream processing module is zero for each target byte in the transmission order; wherein, the target byte is any latest byte to be transmitted in the data to be transmitted. If the target count value is zero, then based on the target byte and the data to be transmitted, a copying process is performed to obtain the overhead information; The target count value is obtained based on the current count value of the second counter and the current count value of the third counter preset by the data stream processing module; the third counter is used to accumulate the number of bytes of the data to be transmitted that has been transmitted; the second counter is preset by the frame search module.

4. The method according to claim 2, characterized in that, The method further includes: Based on the matching result, the current count value of the second counter preset by the frame search module is adjusted accordingly to obtain the latest current count value of the second counter, and then the latest current count value of the second counter is sent to the data stream processing module through the frame search module.

5. The method according to claim 2, characterized in that, Determining the target position of the target frame header based on the matching result includes: If the matching result indicates that the target data to be matched is the first data to be matched obtained by splitting, then the position of the frame header corresponding to the overhead information is taken as the target position; If the matching result indicates that the target data to be matched is the i-th data to be matched obtained by splitting, then the position of the frame header corresponding to the overhead information is moved forward by i-1 bytes to obtain the target position; i is a natural number greater than 1 and less than the number of bytes of the overhead information; If the matching result indicates that the target data to be matched does not exist, then the position of the frame header corresponding to the overhead information is shifted forward by the number of bytes of the overhead information. Wherein, the target data to be matched is the data to be matched that matches the frame positioning signal.

6. The method according to claim 1, characterized in that, The process of determining overhead information from the data to be transmitted in the ODU through the data stream processing module includes: The overhead information is determined from the data to be transmitted in the ODU by the data stream processing module according to the first clock cycle of the data stream processing module. The step of writing the overhead information into the frame search module includes: The overhead information is written into the preset first-in-first-out (FIFO) queue in the frame search module; The frame search processing, based on the overhead information, performed by the frame search module includes: The frame search module retrieves the overhead information from the FIFO queue according to the second clock cycle of the frame search module, and performs frame search processing based on the overhead information; wherein the second clock cycle is longer than the first clock cycle.

7. The method according to claim 1, characterized in that, The OTN system includes a field-programmable gate array (FPGA) chip, and the FPGA chip includes the frame search module.

8. A bypass frame search device, characterized in that, Applied to an OTN system, the OTN system including a frame search module and an ODU data stream processing module; the device includes: The determination module is used to determine overhead information from the data to be transmitted in the ODU through the data stream processing module; wherein the overhead information is the unacknowledged frame header of the frame corresponding to the data to be transmitted; The transmission module is used to write the overhead information into the frame search module through the data stream processing module, and to transmit the data to be transmitted. The processing module is used to perform frame search processing based on the overhead information through the frame search module to obtain the target position of the target frame header.

9. An electronic device, characterized in that, include: processor; as well as A memory configured to store computer-executable instructions configured to be executed by the processor, the executable instructions including instructions for performing the bypass frame search method as described in any one of claims 1-7.

10. A storage medium, characterized in that, The storage medium is used to store computer-executable instructions that cause a computer to perform the bypass frame search method as described in any one of claims 1-7.