Data processing method and device, OTN equipment, electronic equipment and storage medium

By using sequence identifier tables and pointer mechanisms in OTN devices, the storage and retrieval process of OTN services is simplified, the complex cascading mapping and encapsulation problems in existing technologies are solved, and efficient and reliable data processing is achieved.

CN118828260BActive Publication Date: 2026-11-20CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311220683.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2026-11-20
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

In OTN devices, the data storage process for OTN services in existing technologies is complex, involving multiple cascading mapping and encapsulation processes, resulting in complex service processing and a large amount of cache space being occupied.

Method used

By using a sequence identifier (SN) table in the OTN device to determine the storage status of message data in the buffer space, and by using write and read pointers to perform efficient storage and read operations, the process of storing and reading message data is simplified.

Benefits of technology

It achieves efficient and reliable storage and retrieval of message data, simplifies business processing, saves internal cache space, and reduces data retrieval latency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828260B_ABST
    Figure CN118828260B_ABST
Patent Text Reader

Abstract

This embodiment discloses a data processing method, apparatus, OTN device, electronic device, and storage medium. The method includes: receiving message data from each of multiple links; searching for first indication information corresponding to the SN of the first message data in an SN table based on the sequence identifier (SN) of the first message data; the first message data representing message data from any one of the multiple links; the first indication information used to determine whether the first message data has been stored in a buffer space; and when the first message data is not stored in the buffer space, storing the first message data in the buffer space and updating the first indication information in the SN table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, and specifically relates to a data processing method, apparatus, optical transport network (OTN) equipment, electronic equipment, and storage medium. Background Technology

[0002] In related technologies, when an OTN device stores the received OTN service message data, it needs to perform mapping and encapsulation processes such as cascading mapping and encapsulation on the message data, and then store the mapped and encapsulated message data. The process of storing the received OTN service message data is relatively complex. Summary of the Invention

[0003] This application provides a data processing method, apparatus, OTN device, electronic device, and storage medium.

[0004] This application provides a data processing method, which is applied in an OTN device, including:

[0005] Receive message data from each of multiple links;

[0006] Based on the serial number (SN) of the first message data, the first indication information corresponding to the SN of the first message data is searched in the SN table; the first message data represents the message data of any one of the multiple links; the first indication information is used to determine whether the first message data has been stored in the buffer space.

[0007] When the first message data is not stored in the cache space, the first message data is stored in the cache space, and the first indication information in the SN table is updated.

[0008] In some embodiments, before storing the first message data in the cache space, the method further includes: determining a write pointer, the write pointer indicating the write position of the first message data in the cache space.

[0009] It can be seen that by determining the write pointer, it is easier to process the received message data more accurately according to the write pointer. It is also beneficial to store different message data according to different write positions in the buffer space based on the write pointer, that is, it is beneficial to achieve efficient and reliable storage of message data.

[0010] In some embodiments, the method further includes: upon receiving a request to read data from the cache space, determining a read pointer of the SN table, the read pointer of the SN table indicating the current read position of the SN table; determining second indication information in the SN table, the second indication information being information about the current read position; detecting whether the second indication information has changed when the second indication information is a first storage indication information; and reading the message data corresponding to the read pointer from the cache space when the second indication information changes to the second storage indication information; the first storage indication information indicating that no message data is stored in the cache space, and the second storage indication information indicating that message data is stored in the cache space. It can be seen that the message data corresponding to the read pointer is the message data to be read. In this embodiment, the indication information of the read pointer's indicated position can be determined based on the read pointer, thereby determining whether the message data to be read has already been stored in the cache space. When it is determined that the message data to be read has been stored in the cache space, the message data can be read. That is, in this embodiment, the message data can be read relatively easily and reliably based on the read pointer.

[0011] In some embodiments, after reading the message data corresponding to the read pointer in the cache space, the method further includes: moving the read pointer to the next position in the SN table; thereby facilitating the reading of the next message data in the cache space.

[0012] In some embodiments, detecting whether the second indication information has changed when the second indication information is the first storage indication information includes: waiting for the second indication information to change and timing the waiting period when the second indication information is the first storage indication information; reading the message data corresponding to the read pointer from the cache space when the second indication information changes to the second storage indication information includes: reading the message data corresponding to the read pointer from the cache space when the waiting period is less than or equal to a first set time and the second indication information changes to the second storage indication information. It can be seen that when the waiting period is less than or equal to the first set time and the second indication information changes to the second storage indication information, it indicates that the second indication information changed from the first storage indication information to the second storage indication information in a short period of time, thus allowing the message data corresponding to the pointer to be read in a short time, achieving timely reading of the message data.

[0013] In some embodiments, after timing the waiting time, the method further includes: when the waiting time is longer than the first set time and the second indication information does not change during the waiting time, moving the read pointer to the next position in the SN table.

[0014] It can be seen that when the waiting time is longer than the first set time and the second indication information does not change during the waiting time, it means that the second indication information has not changed for a long period of time. At this time, by moving the read pointer to the next position, the data reading delay caused by waiting for message data can be reduced and the data reading efficiency can be improved.

[0015] In some embodiments, after timing the waiting time, the method further includes: when the SNs of the message data received during the waiting time for at least two links are both greater than the position indicated by the read pointer, moving the read pointer to the next position in the SN table.

[0016] It can be seen that when the SN of the message data received from at least two links within the waiting time is greater than the position indicated by the read pointer, it can be considered that the message data corresponding to the read pointer has been lost. At this time, by moving the read pointer to the next position, the data reading delay caused by waiting for message data can be reduced and the data reading efficiency can be improved.

[0017] In some embodiments, the method further includes: upon receiving a request to read data from the cache space, determining a read pointer in the SN table, the read pointer indicating the current read position in the SN table; determining second indication information in the SN table, the second indication information being information about the current read position; when the second indication information is the first storage indication information, determining the read pointer as a read pointer for target packet data, and moving the read pointer to the next position in the SN table; the first storage indication information indicating that no packet data is stored in the cache space; identifying a target read pointer in the SN supplement table, the target read pointer being a read pointer for the target packet data; and reading data according to the target read pointer.

[0018] As can be seen, when the indication information of the read pointer's indicated position is the first indication information, the read pointer can be moved to the next position in the SN table, which is beneficial for quickly reading the next data; and, by marking the target read pointer in the SN supplement table, the message data corresponding to the target read pointer can be read when the message data corresponding to the target read pointer arrives. Thus, the embodiments of this application can realize the fast and comprehensive reading of message data.

[0019] In some embodiments, reading data according to the target read pointer includes: determining third indication information in the SN supplement table, the third indication information being indication information of the indication position of the target read pointer; when the third indication information becomes the second storage indication information, reading the target message data in the cache space according to the target read pointer; the second storage indication information indicating that message data has been stored in the cache space.

[0020] As can be seen, since the third indication information represents the indication information of the target read pointer position, when the third indication information changes to the second storage indication information, it means that the target message data has been stored in the cache space. Therefore, the target message data can be reliably read in the cache space according to the target read pointer.

[0021] In some embodiments, when the target read pointer is identified in the SN supplement table, the method further includes: waiting for the third indication information to change and timing the waiting time; the step of reading the target message data in the cache space according to the target read pointer when the third indication information changes to the second storage indication information includes: when the waiting time is less than or equal to a second set time and the third indication information changes to the second storage indication information, reading the target message data in the cache space according to the target read pointer.

[0022] It can be seen that when the waiting time is less than or equal to the second set time and the third indication information changes to the second storage indication information, it means that the third indication information changes from the first storage indication information to the second storage indication information in a short period of time, so that the target message data can be read in a short period of time, and the timely reading of the target message data can be achieved.

[0023] In some embodiments, after timing the waiting time, the method further includes: when the waiting time is longer than the second set time and the third indication information does not change during the waiting time, moving the read pointer to the next position in the SN supplement table.

[0024] It can be seen that when the waiting time is longer than the second set time and the third indication information does not change during the waiting time, it means that the third indication information has not changed for a long time. At this time, by moving the target read pointer to the next position, the data reading delay caused by waiting for message data can be reduced and the data reading efficiency can be improved.

[0025] This application embodiment also provides a data processing apparatus, which is applied in an OTN device, and the apparatus includes:

[0026] The receiving module is used to receive message data from each of multiple links;

[0027] The first processing module is used to look up the first indication information corresponding to the SN of the first message data in the SN table according to the sequence identifier SN of the first message data; the first message data represents the message data of any one of the multiple links; the first indication information is used to determine whether the first message data has been stored in the cache space.

[0028] The second processing module is used to store the first message data in the cache space and update the first indication information in the SN table when the first message data is not stored in the cache space.

[0029] This application also provides an OTN device, including a processor and a memory for storing a computer program that can run on the processor; wherein the processor is used to run the computer program to perform any of the above-described data processing methods.

[0030] This application also provides an electronic device, including any of the above-described data processing devices or any of the above-described OTN devices.

[0031] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a processor, implements any of the above-described data processing methods.

[0032] As can be seen, after the OTN device receives the first message data, it can store the first message data in the cache space according to the first indication information corresponding to the SN of the first message data, and update the first indication information so as to accurately process the subsequently received message data according to the first indication information. Compared with the related technologies that implement message data storage by processing multiple cascading mappings and multiple encapsulation processes, the embodiment of this application can implement message data storage in a simpler and easier way, which is conducive to simplifying the business processing flow. Attached Figure Description

[0033] Figure 1 This is a schematic diagram of the transmission network structure of 5G networks proposed in related technologies;

[0034] Figure 2 This is a schematic diagram illustrating how customer services are mapped to OTN line ports in related technologies.

[0035] Figure 3 This is a schematic diagram of a network structure that uses an OTN chip for data forwarding and interaction in related technologies.

[0036] Figure 4 This is a flowchart of the optical service unit mapping process in an embodiment of this application;

[0037] Figure 5 This is a schematic diagram of a network structure using an OTN chip for data communication in an embodiment of this application;

[0038] Figure 6 This is a flowchart of a data processing method according to an embodiment of this application;

[0039] Figure 7 This is a schematic diagram of another network structure for data communication using an OTN chip in the embodiments of this application;

[0040] Figure 8 A schematic diagram of the SN table provided in an embodiment of this application;

[0041] Figure 9 A schematic diagram illustrating the SN table and the indication information of message data on different links provided in the embodiments of this application;

[0042] Figure 10 A schematic diagram of the SN table and SN supplement table provided in the embodiments of this application;

[0043] Figure 11 This is a schematic diagram of the structure of the data processing apparatus according to an embodiment of this application;

[0044] Figure 12 This is a schematic diagram of the structure of an OTN device according to an embodiment of this application. Detailed Implementation

[0045] Fifth-generation mobile communication technology (5G) networks need to support a variety of services and application scenarios, such as enhanced mobile broadband (eMBB) services with higher bandwidth and lower latency, massive machine-type communication (mMTC) services, and ultra-reliable and low-latency communication (uRLLC) services. It is foreseeable that the 5G era will introduce many new user applications, such as ubiquitous high-definition / ultra-high-definition and even 3D holographic films and videos in densely populated urban areas, high-speed data transmission of 100Mbps in any region, high-speed mobile applications exceeding 350km / h, sensor networks, tactile internet, e-health services, and natural disaster monitoring applications.

[0046] Due to the demands of 5G networks, which require simultaneous support for different service types, new requirements have emerged, such as high bandwidth, low latency, hard isolation, flexible connectivity, unified management and control, and high-precision time synchronization. Existing 4G transmission technology cannot meet the challenges of 5G in all aspects, necessitating a new slicing transmission network technology to support 5G service transmission.

[0047] Reference Figure 1 5G transmission services support the Slicing Packet Network (SPN) mechanism. After data enters the SPN transmission equipment through the User Network Interface (UNI), it undergoes data classification within SPN network 101 to distinguish data types before entering the Network to Network Interface (NNI) for data forwarding. For multi-service access in 5G networks, SPN and OTN equipment need to support transmission channels for various services, such as 5G base stations, 4G base stations, enterprise services, and home broadband services. The data receiver in SPN network 101 can be a wireless device, enterprise device, home broadband device, or important government / enterprise equipment.

[0048] Different transmission levels are required to meet different business needs, which may include requirements related to bandwidth, latency, jitter, reliability, and security. Different transmission channels need to be configured to meet these different business needs.

[0049] SPN and OTN transmission equipment need to support multi-service access. For example, they need to support a fixed number of customer services such as E1, FE (FastEthernet), GE (Gigabit Ethernet), 10GE Local Area Network (LAN), STM-1 (Synchronous Transfer Module-1), and STM-4 (Synchronous Transfer Module-4). They also need to support mapping customer-side services to OTN line ports. Here, E1 is an abbreviation for 30-channel pulse code modulation in Europe. (Refer to...) Figure 2In 5G transmission networks, for services on Ethernet interfaces, STM-N interfaces, Optical Channel Transport Unit-k (OTUk) interfaces, Fibre Channel (FC) service interfaces, and other service interfaces, multi-service adaptation processing and OTUk line interface processing can be used to map services to primary and backup optical channels. For example, both the OTUk and FC service interfaces are optional interfaces, and multi-service adaptation processing can be applied to services on Ethernet interfaces, services on OTUk interfaces, and Time Division Multiplexing (TDM) services.

[0050] In Customer Premise Equipment of Optical Transport Network (CPE OTN) transmission equipment, the CPE OTN chip needs to perform multi-service (E1, FE, GE, 10GE LAN, STM-1, STM-4, etc. customer services) access, OTN service transmission, Multi-Service Transport Platform (MSTP), and Ethernet (ETH) functions. The functions supported by the CPE OTN chip need to include service mapping processing, link monitoring, link protection, Ethernet Virtual Local Area Network (VLAN) forwarding, Operation Administration and Maintenance (OAM), and frequency synchronization.

[0051] Reference Figure 3In office spaces, buildings, and campuses, networks can forward and interact with data via CPE OTN chips, 2.5G Customer Premise Equipment (CPE), and 10G CPE. CPE OTN chips have either 2.5G or 10G network interfaces; 2.5G CPEs have a transmission bandwidth of 100G, and 10G CPEs have a transmission bandwidth of either 10G or 100G. In related technologies, when OTN devices such as CPE OTN chips process OTN services, the OTN devices need to support multiple interfaces, service mapping paths, and OTN service processing. OTN service processing involves handling various cascaded mapping services, various encapsulation services, SNCP protection, etc., requiring significant internal buffer space and resulting in a complex service processing flow. For example, various concatenated mappings may include mappings related to services such as Virtual Container (VC)12, VC4, STM1, STM4, STM16, OTN0, and OTN1. Various encapsulation services may include services such as Generic Framing Procedure (GFP), Generic Mapping Procedure (GMP), Asynchronous Mapping Procedure (AMP), and Bit-synchronous Mapping Procedure (BMP).

[0052] In view of the above-mentioned technical problems, the technical solutions of the embodiments of this application are proposed.

[0053] The embodiments of this application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the embodiments provided herein are merely illustrative of the embodiments of this application and are not intended to limit the embodiments of this application. Furthermore, the embodiments provided below are some embodiments for implementing this application, and not all embodiments for implementing this application. Unless otherwise specified, the technical solutions described in the embodiments of this application can be implemented in any combination.

[0054] It should be noted that, in the embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a method or apparatus that includes a list of elements includes not only the elements expressly described, but also other elements not expressly listed, or elements inherent to implementing the method or apparatus. Without further limitations, an element defined by the phrase "comprising a..." does not exclude the presence of other related elements (e.g., steps in the method or units in the apparatus, such as portions of circuitry, processors, programs, or software, etc.) in the method or apparatus that includes that element.

[0055] This application provides a data processing method that can be applied to OTN devices. For example, the OTN device can be a CPE OTN chip. When processing multiple access services, the CPE OTN chip can support the processing of various interface services (E1, FE, GE, 10GE LAN, STM-1, STM-4, etc. customer services), and can encapsulate interface services into multi-level containers, perform cascading processing, and send them to the OTN interface for line-side transmission.

[0056] Reference Figure 4 The optical service unit (OSU) mapping process of the CPE OTN chip can include: the service mapping module encapsulates the customer service signal into an OSU payload frame or an optical channel data unit (ODU) payload frame, then encapsulates the OTU overhead (OH) header, performs OTU channel layer processing, and transmits the encapsulated signal. During the encapsulation process, by adding a lossless optional delay function, rich service options are achieved, including lossless time slot forwarding and ultra-low latency processing, enabling more optimized OTN service processing.

[0057] Figure 5 This is a schematic diagram of a network structure that uses a CPE OTN chip for data communication. (Refer to...) Figure 5 Enterprise 1, Enterprise 2, Enterprise 3 and Enterprise 4 represent different enterprises; Government 1, Government 2, Government 3 and Government 4 represent different government agencies; CO1 and CO2 represent different Central Office (CO) sites; and link1 and link2 represent different communication links. The OTN management platform is used to manage the CPE OTN chips of CO sites and the OTN devices located on the communication links.

[0058] Figure 5In this scenario, Enterprise 1's communication equipment can interact with the CPE OTN chip via the E1 interface, while Enterprise 2's communication equipment can interact with the CPE OTN chip via the STM interface (which can be STM-1, STM-2, STM-3, or STM-4). Government 1's equipment can interact with the CPE OTN chip via the GE interface, and Government 2's equipment can interact via the FE interface. On each communication link of Link1 and Link2, the OTN equipment includes the OTN equipment of City A and the OTN equipment of City B.

[0059] The data processing method provided in this application includes a series of steps, but the data processing method provided in this application is not limited to the steps described. Similarly, the data processing apparatus provided in this application includes a series of modules, but the apparatus provided in this application is not limited to the modules explicitly described, and may also include modules that need to be set up for obtaining relevant information or processing based on information.

[0060] Figure 6 This is a flowchart of a data processing method according to an embodiment of this application, such as... Figure 6 As shown, the process may include:

[0061] Step 601: Receive message data from each of the multiple links.

[0062] Here, message data can represent service data received by the OTN device. In practical scenarios, the OTN device can receive multiple message data, and the message data for each link is any one of the multiple message data received by the OTN device. The first message data of multiple links can be different message data; for the message data of each link, steps 602 to 604 can be executed.

[0063] Step 602: Based on the SN of the first message data, search for the first indication information corresponding to the SN of the first message data in the SN table; the first message data represents the message data of any one of the multiple links; the first indication information is used to determine whether the first message data has been stored in the buffer space.

[0064] In this embodiment, the SN in the first message data can represent the sequential identity document (ID) of the first message data. When the OTN device receives multiple message data, the service order of the multiple message data can be determined based on the SN of each message data. The cache space can be the cache space within the OTN device or the cache space outside the OTN device.

[0065] In some embodiments, an SN table can be pre-established, and first indication information corresponding to the SN of each message data can be written into the SN table. Initially, the first indication information corresponding to the SN of each message data written into the SN table indicates that the message data is not stored in the cache space. When message data is written into the cache space, the first indication information corresponding to the SN of the message data can be modified.

[0066] In some embodiments, the first indication information can be 0 or 1. When the message data is not stored in the cache space, the first indication information corresponding to the SN of the message data can be determined as 0 in the SN table; when the message data has been stored in the cache space, the first indication information corresponding to the SN of the message data can be determined as 1 in the SN table.

[0067] Step 603: If the first message data is not stored in the cache space, store the first message data in the cache space and update the first indication information in the SN table.

[0068] Here, it can be determined whether the first message data has been stored in the cache space based on the first indication information; in some embodiments, if the first indication information is 0, it means that the first message data has not been stored in the cache space at the current time. At this time, the first message data can be stored in the cache space, and then the first indication information can be updated to 1.

[0069] In some embodiments, if the first indication information found is 1, it means that the first message data has already been stored in the cache space at the current time. In this case, there is no need to write the first message data to the cache space again, and the received first message data can be ignored.

[0070] In practical applications, steps 601 to 603 can be implemented based on the processor of the OTN device. The processor can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor.

[0071] As can be seen, after the OTN device receives the first message data, it can store the first message data in the cache space according to the first indication information corresponding to the SN of the first message data, and update the first indication information so as to accurately process the subsequently received message data according to the first indication information. Compared with the related technologies that implement message data storage by processing multiple cascading mappings and multiple encapsulation processes, the embodiment of this application can implement message data storage in a simpler and easier way, which is conducive to simplifying the business processing flow and saving internal cache space.

[0072] In this embodiment of the application, a lossless link can be established between CO sites through the OTN management platform, and the discrete reception of service data can be achieved without loss based on the lossless link.

[0073] For example, a lossless link can refer to a data transmission link with no packet loss or a data transmission link employing a 50ms carrier-grade protection scheme. In OTN devices, OTN ordinary service data and OTN lossless service data can be defined according to the service entry type and service requirements. Here, OTN lossless service data refers to service data transmitted using a lossless link, while OTN ordinary service data refers to service data transmitted using a non-lossless link.

[0074] To enable the reception and transmission of OTN lossless service data, a configuration table for OTN lossless service data can be created in the OTN device.

[0075] Table 1

[0076]

[0077] Table 1 is an example of a configuration table for OTN lossless service data. Table 1 shows the service flow ID, lossless link type, latency link selection option, and fast unobstructed mode identifier for different interfaces. In Table 1, Port + VLAN 1, Port + VLAN 2, Port + VLAN 3, Port + VLAN 4, and Port + VLAN 5 represent different service interfaces. The latency link selection option includes latency links that use different latency for data transmission. That is, for the same interface's lossless link, different latency links can be selected for data transmission based on the latency link selection option. The fast unobstructed mode identifier indicates the transmission mode used for data transmission. In Table 1, when the fast unobstructed mode identifier is 1, it means that the fast unobstructed transmission mode for service data is enabled; when the fast unobstructed mode identifier is 0, it means that the fast unobstructed transmission mode for service data is disabled.

[0078] In another example, when the Fast Unblocked Mode flag is 1, it indicates that the business data is being processed in the first processing mode; when the Fast Unblocked Mode flag is 0, it indicates that the business data is being processed in the second processing mode.

[0079] Figure 7 This is a schematic diagram of another network structure using a CPE OTN chip for data communication in the embodiments of this application. (Refer to...) Figure 7 Enterprise 5, Enterprise 6, Enterprise 7, and Enterprise 8 represent different enterprises; Government 5, Government 6, Government 7, and Government 8 represent different government agencies; CO3 and CO4 represent different CO sites; and lin3 and link4 represent lossless links between CO sites. For example, lossless links can enable the transmission of service data over Ethernet interfaces. The OTN management platform is used to manage the CPE OTN chips at CO sites and the OTN devices located on the lossless links.

[0080] Reference Figure 7 Enterprise 5's communication equipment can interact with the CPE OTN chip via the E1 interface, and Enterprise 6's communication equipment can interact with the CPE OTN chip via the STM interface, which can be an STM-1, STM-2, STM-3, or STM-4 interface. Government 5's equipment can interact with the CPE OTN chip via the GE interface, and Government 6's equipment can interact with the CPE OTN chip via the FE interface. The OTN devices on each communication link in links 3 and 4 include the OTN devices of city C and city D. For example, link 3 represents a link using the Ethernet (ETH) protocol and the first link for data transmission, and link 4 represents a link using the ETH protocol and the second link for data transmission. The first and second links represent links with different transmission delays.

[0081] Reference Figure 7 Service 2 represents OTN lossless service data. For OTN lossless service data, a lossless link can be established through the OTN management platform, and N (N>1) network-side links (such as link3 and link4) need to be established on the line side. To improve the protection of service data, link3 and link4 do not need to use a shared optical path transmission mechanism. In this embodiment, different OTN channels can be established by configuring different optical path data units (ODUk), and the data can be sent to different links.

[0082] In some embodiments of this application, the first message data includes: a service flow identifier, a link identifier, a lossless identifier, and a sequence identifier.

[0083] In some embodiments, the service flow identifier can be a service flow ID or other identifier, and the lossless identifier indicates whether a lossless link is used to transmit data. For example, when a lossless link is used to transmit data, the lossless identifier is 1; when a lossless link is used to transmit data, the lossless identifier is 0 or other values. The link identifier represents the ID of the lossless link.

[0084] In some embodiments, various identifiers in the first message data can be presented through Table 2. In Table 2, the service flow ID is 2 bytes of data, the lossless identifier is 1 byte of data, the link identifier is 2 bytes of data, and the sequence identifier is 3 bytes of data.

[0085] In some embodiments, lossless data transmission is achieved by inserting service data into the CPE OTN chips of CO1 and CO2, and then transmitting it across N links to form network-side data transmission.

[0086] In some embodiments of this application, a write pointer may be determined before the first message data is stored in the cache space. The write pointer is used to indicate the write position of the first message data in the cache space.

[0087] Here, the i-th position in the SN table corresponds to the i-th position in the cache space, where i is an integer greater than or equal to 1. When the write pointer is 'a', the write pointer corresponds to the (a+1)-th position in the SN table; for example, refer to... Figure 8 In the SN table, the first indicator information in positions 3 through 6 is 1, and the remaining positions are 0. Therefore, data has been written to positions 3 through 6 of the buffer space. When the write pointer is 5, it corresponds to the 6th position in the SN table. It can be seen that when the write pointer is 5, the first message data is written to the 6th position of the buffer space.

[0088] It can be seen that by determining the write pointer, it is easier to process the received message data more accurately according to the write pointer. It is also beneficial to store different message data according to different write positions in the buffer space based on the write pointer, that is, it is beneficial to achieve efficient and reliable storage of message data.

[0089] In some embodiments of this application, the above data processing method further includes:

[0090] When a request to read data from the cache space is received, the read pointer of the SN table is determined. The read pointer of the SN table is used to indicate the current read position of the SN table.

[0091] In the SN table, determine the second indication information, which is the information of the current reading position.

[0092] When the second indication information is the first storage indication information, it is detected whether the second indication information has changed; when the second indication information changes to the second storage indication information, the message data corresponding to the pointer is read from the cache space. Here, the first storage indication information indicates that no message data is stored in the cache space, and the second storage indication information indicates that message data is stored in the cache space.

[0093] In this embodiment of the application, when the read pointer is b, the position indicated by the read pointer is b, and the read pointer corresponds to the (b+1)th position in the SN table; for example, referring to Figure 8 When the read pointer is 2, the read pointer corresponds to the 3rd position in the SN table. It can be seen that when the read pointer is 2, the current read position in the SN table is the 3rd position in the SN table, that is, data needs to be read from the 3rd position in the cache space.

[0094] The second indication information is used to indicate whether the message data corresponding to the read pointer has been stored in the buffer space. The second indication information can be either the first storage indication information or the second storage indication information. The message data corresponding to the read pointer is the data determined in the buffer space according to the indicated position of the read pointer. For example, when the second indication information is 0, it means that the message data corresponding to the read pointer has not been stored in the buffer space; when the second indication information is 1, it means that the message data corresponding to the read pointer has been stored in the buffer space.

[0095] Reference Figure 8 When the read pointer is 2, the current read position of the SN table is the 3rd position of the SN table. The second indicator information of the 3rd position of the SN table is 1, indicating that the buffer space has already stored the message data corresponding to the 3rd position of the SN table.

[0096] In this embodiment of the application, when the second indication information is the first storage indication information, it means that the cache space does not store the message data corresponding to the read pointer, and it can be considered that the OTN device has not yet received the message data corresponding to the read pointer. At this time, it can be detected whether the second indication information has changed. When the second indication information changes from the first storage indication information to the second storage indication information, it can be considered that the cache space has stored the message data corresponding to the read pointer. At this time, the message data corresponding to the pointer can be read from the cache space, and the second indication information can be modified to the first storage indication information.

[0097] For example, refer to Figure 8 After the message data corresponding to positions 3 to 6 in the SN table are stored in the cache space, the indicator information of positions 3 to 6 in the SN table can be modified to 1. At this time, the message data corresponding to positions 3 to 6 in the SN table can be read.

[0098] In some embodiments, after reading the message data corresponding to the pointer in the cache space, the second indication information can be modified to the first storage indication information, indicating that the corresponding message data has been read and data can be written to the corresponding position in the cache space.

[0099] As can be seen, the message data corresponding to the read pointer is the message data to be read. In this embodiment, the indication information of the read pointer's indicated position can be determined according to the read pointer, thereby determining whether the message data to be read is stored in the buffer space. When it is determined that the message data to be read is stored in the buffer space, the message data can be read. That is, in this embodiment, the message data can be read relatively easily and reliably according to the read pointer.

[0100] In some embodiments of this application, after reading the message data corresponding to the read pointer in the cache space, the read pointer can be moved to the next position in the SN table; thereby facilitating the reading of the next message data in the cache space.

[0101] In some embodiments of this application, the process of detecting whether the second indication information has changed when the second indication information is the first stored indication information may include:

[0102] When the second indication information is the first stored indication information, wait for the second indication information to change and start timing the waiting time;

[0103] When the second indication information changes to the second storage indication information, reading the message data corresponding to the pointer from the buffer space may include:

[0104] When the waiting time is less than or equal to the first set time and the second indication information changes to the second storage indication information, the message data corresponding to the pointer is read from the cache space.

[0105] In this embodiment, when the second indication information is determined to be the first stored indication information, the first timer can be started immediately, and the duration of the first timer is the waiting time for the second indication information to change. When the second indication information changes from the first stored indication information to the second stored indication information, the first timer can be stopped, thereby determining the waiting time for the second indication information to change. Here, the first set duration can be denoted as T, and the first set duration T can be set locally according to actual needs.

[0106] It can be seen that when the waiting time is less than or equal to the first set time and the second indication information changes to the second storage indication information, it means that the second indication information changes from the first storage indication information to the second storage indication information in a short period of time, so that the message data corresponding to the pointer can be read in a short period of time, and the message data can be read in a timely manner.

[0107] In some embodiments of this application, after timing the waiting time, the method further includes: when the waiting time is longer than the first set time and the second indication information does not change during the waiting time, moving the read pointer to the next position in the SN table.

[0108] It can be seen that when the waiting time is longer than the first set time and the second indication information does not change during the waiting time, it means that the second indication information has not changed for a long period of time. At this time, by moving the read pointer to the next position, the data reading delay caused by waiting for message data can be reduced and the data reading efficiency can be improved.

[0109] In some embodiments of this application, after timing the waiting time, the method further includes: when the SN of the message data received during the waiting time for at least two links is greater than the position indicated by the read pointer, moving the read pointer to the next position in the SN table.

[0110] Here, when the serial numbers (SNs) of packets from at least two links are greater than the position indicated by the read pointer, it can be assumed that the packet data corresponding to the read pointer has been lost. In this case, the wait for the packet data corresponding to the read pointer is stopped, and the read pointer is moved to the next position in the SN table. (Refer to...) Figure 9 Here, link1 and link2 represent two links. When the read pointer is 2, the received packet data from both link1 and link2 has a serial number (SN) greater than 2. Specifically, the SNs of the packet data from link1 are 3, 4, 5, 6, and 7, and the SNs of the packet data from link2 are 4, 5, 6, 7, and 8. Since the received packet data from both link1 and link2 has a SN greater than 2, there is no need to wait for packet data with a SN of 2. Instead, the read pointer can be moved to the next position in the SN table, i.e., the read pointer changes from 2 to 3.

[0111] It can be seen that when the SN of the message data received from at least two links within the waiting time is greater than the position indicated by the read pointer, it can be considered that the message data corresponding to the read pointer has been lost. At this time, by moving the read pointer to the next position, the data reading delay caused by waiting for message data can be reduced and the data reading efficiency can be improved.

[0112] In some embodiments of this application, the above data processing method further includes:

[0113] When a request to read data from the cache space is received, the read pointer of the SN table is determined.

[0114] In the SN table, determine the second indication information, which is the indication information for the position indicated by the read pointer.

[0115] When the second indication information is the first storage indication information, the read pointer is determined as the read pointer of the target message data, and the read pointer is moved to the next position in the SN table;

[0116] The target read pointer is identified in the SN supplementary table. The target read pointer is the read pointer for the target message data.

[0117] Read data based on the target read pointer.

[0118] In some embodiments, a supplementary SN table can be pre-established. Initially, the data at each position in the supplementary SN table is the first storage indication information; for example, initially, the data at each position in the supplementary SN table is 0. After the target read pointer is determined in the SN table, it can be identified in the supplementary SN table. The target read pointer in the supplementary SN table is the same as the target read pointer in the SN table; that is, the indication position of the target read pointer in the supplementary SN table is the same as the indication position of the target read pointer in the SN table.

[0119] For example, refer to Figure 10 When the read pointer in the SN table is 2, the indication information in the SN table corresponding to the position indicated by the read pointer is 0. At this time, there is no need to wait for the message data corresponding to the read pointer. Instead, the read pointer can be moved to the next position in the SN table. Then, the target read pointer can be identified in the SN supplement table, and the target read pointer is 2.

[0120] As can be seen, when the indication information of the read pointer's indicated position is the first indication information, the read pointer can be moved to the next position in the SN table, which is beneficial for quickly reading the next data; and, by marking the target read pointer in the SN supplement table, the message data corresponding to the target read pointer can be read when the message data corresponding to the target read pointer arrives. Thus, the embodiments of this application can realize the fast and comprehensive reading of message data.

[0121] In some embodiments of this application, the process of reading data according to the target read pointer may include: determining third indication information in the SN supplement table, wherein the third indication information is the indication information of the indication position of the target read pointer; and reading the target message data in the buffer space when the third indication information becomes the second storage indication information.

[0122] Here, the third indication information can be either the first storage indication information or the second storage indication information; for example, in the SN supplement table, the first storage indication information is 1 and the second storage indication information is 2.

[0123] The target read pointer is identified in the SN supplement table. Since the indication information at the read pointer's location in the SN table is 0, the message data corresponding to the read pointer has not yet arrived. At this time, the third indication information in the SN supplement table can be set to 1. When the message data corresponding to the target read pointer (i.e., the target message data) has been stored in the buffer space, the third indication information in the SN supplement table can be modified to 2. When the third indication information becomes 2, the target message data can be read according to the target read pointer in the SN supplement table. For example, refer to... Figure 10 When the third indication information corresponding to the read pointer becomes 2, the target message data can be read according to the read pointer in the SN supplement table. After reading the target message data, the read pointer can be moved to the next readable position in the SN supplement table. The next readable position indicates the position where the indication information is 1.

[0124] In some embodiments, after reading the target packet data in the cache space, the third indication information can be modified to the first storage indication information in the SN supplement table to indicate that the target packet data has been read and data can be written to the corresponding position in the cache space.

[0125] As can be seen, since the third indication information represents the indication information of the target read pointer position, when the third indication information changes to the second storage indication information, it means that the target message data has been stored in the cache space. Therefore, the target message data can be reliably read in the cache space according to the target read pointer.

[0126] In some embodiments of this application, when identifying the target read pointer in the SN supplementary table, the method further includes: waiting for the third indication information to change and timing the waiting time;

[0127] When the third indication information changes to the second storage indication information, the process of reading the target message data from the buffer space according to the target read pointer includes:

[0128] When the waiting time is less than or equal to the second set time and the third indication information changes to the second storage indication information, the target message data is read from the cache space according to the target read pointer.

[0129] In this embodiment, when the target read pointer is identified in the SN supplement table, the second timer can be started immediately. The duration of the second timer is the waiting time for the third indication information to change. When the third indication information changes from the first storage indication information to the second storage indication information, the second timer can be stopped, thereby determining the waiting time for the third indication information to change. Here, the second set duration can be set locally according to actual needs.

[0130] It can be seen that when the waiting time is less than or equal to the second set time and the third indication information changes to the second storage indication information, it means that the third indication information changes from the first storage indication information to the second storage indication information in a short period of time, so that the target message data can be read in a short period of time, and the timely reading of the target message data can be achieved.

[0131] In some embodiments of this application, after timing the waiting time, the method further includes: when the waiting time is longer than a second set time and the third indication information has not changed during the waiting time, moving the read pointer to the next position in the SN supplement table.

[0132] Here, if the waiting time is longer than the second set time and the third indication information does not change during the waiting time, the read pointer can be moved to the next readable position in the SN supplement table. The readable position indicates the indication position of the next target read pointer.

[0133] It can be seen that when the waiting time is longer than the second set time and the third indication information does not change during the waiting time, it means that the third indication information has not changed for a long time. At this time, by moving the target read pointer to the next position, the data reading delay caused by waiting for message data can be reduced and the data reading efficiency can be improved.

[0134] In some embodiments of this application, after timing the waiting time, the method further includes: when the SN of the message data of at least two links received during the waiting time is greater than the indicated position of the target read pointer, the read pointer is moved to the indicated position of the next target read pointer in the SN table.

[0135] In this embodiment, after the OTN device receives packet data from at least one link, it can process each packet data of the at least one link. The following description uses the first packet data as an example. After receiving the first packet data, it can look up the first indication information corresponding to the SN of the first packet data in the SN table based on the SN of the first packet data; it can also determine the fast uninterrupted mode identifier in the OTN lossless service data configuration table based on the service flow identifier in the first packet data.

[0136] If the fast and unobstructed mode is identified as 1, it indicates that the processing mode of the business data is the first processing mode. For the first processing mode, the data processing method may include: when it is determined that data needs to be read from the cache space, determining the read pointer of the SN table; determining the second indication information in the SN table; when the second indication information is the first storage indication information, detecting whether the second indication information has changed; when the second indication information becomes the second storage indication information, reading the message data corresponding to the pointer in the cache space.

[0137] For the second processing mode, the data processing method may include: when it is determined that data needs to be read from the cache space, determining the read pointer of the SN table; determining the second indication information in the SN table; when the second indication information is the first storage indication information, determining the read pointer as the read pointer of the target message data, and moving the read pointer to the next position in the SN table; identifying the target read pointer in the SN supplement table; and reading data according to the target read pointer.

[0138] This application proposes a novel CPE OTN service chip processing flow and defines a new processing flow for service frame-to-ODU mapping chips. This application also proposes a fast, non-blocking reception method for lossless links in OTN chips. In a lossless, selectable-delay link, it implements a fast, non-blocking reception method for OTN services with lossless selectable delay, optimizes the lossless service reception scheme, achieves lower-delay service reception, provides better service transmission capabilities, and realizes a CPE OTN chip design with better cost-effectiveness.

[0139] This application embodiment can determine lossless link buffering and transmission based on the lossless link SN, and can realize data arrival judgment and buffering for multiple links. During transmission, it employs a waiting transmission mechanism, a non-waiting transmission mechanism, and a timeout transmission mechanism. This application embodiment uses a lossless optional delay function and utilizes a transmission protection link to achieve lossless optional delay forwarding and non-blocking efficient reception of OTN services.

[0140] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0141] Based on the data processing method proposed in the foregoing embodiments, this application also proposes a data processing device.

[0142] Figure 11 This is a schematic diagram of the structure of an image processing apparatus according to an embodiment of this application, such as... Figure 11 As shown, the device may include:

[0143] The receiving module 1101 is used to receive message data from each of the multiple links;

[0144] The first processing module 1102 is used to look up the first indication information corresponding to the SN of the first message data in the SN table according to the SN of the first message data; the first message data represents the message data of any one of the multiple links; the first indication information is used to determine whether the first message data has been stored in the cache space.

[0145] The second processing module 1103 is used to store the first message data in the cache space and update the first indication information in the SN table when the first message data is not stored in the cache space.

[0146] In some embodiments, the second processing module 1103 is further configured to determine a write pointer before storing the first message data in the cache space, the write pointer being used to indicate the write position of the first message data in the cache space.

[0147] In some embodiments, the second processing module 1103 is further configured to:

[0148] Upon determining that a request to read data from the cache space has been received, the read pointer of the SN table is determined, and the read pointer of the SN table is used to indicate the current read position of the SN table;

[0149] In the SN table, a second indication information is determined, which is the information of the current reading position;

[0150] When the second indication information is the first storage indication information, it is detected whether the second indication information has changed; the first storage indication information indicates that no message data is stored in the cache space;

[0151] When the second indication information changes to the second storage indication information, the message data corresponding to the read pointer is read from the cache space, and the second storage indication information indicates that the cache space has stored message data.

[0152] In some embodiments, the second processing module 1103 is further configured to read the message data corresponding to the read pointer from the cache space and then move the read pointer to the next position in the SN table.

[0153] In some embodiments, the second processing module 1103 is configured to detect whether the second indication information has changed when the second indication information is the first stored indication information, including:

[0154] When the second indication information is the first storage indication information, wait for the second indication information to change and start timing the waiting time;

[0155] When the second indication information changes to the second storage indication information, reading the message data corresponding to the read pointer from the cache space includes:

[0156] When the waiting time is less than or equal to the first set time and the second indication information changes to the second storage indication information, the message data corresponding to the read pointer is read from the cache space.

[0157] In some embodiments, the second processing module 1103 is further configured to, after timing the waiting time, move the read pointer to the next position in the SN table when the waiting time is longer than the first set time and the second indication information has not changed during the waiting time.

[0158] In some embodiments, the second processing module 1103 is further configured to move the read pointer to the next position in the SN table when, after timing the waiting time, the SNs of the message data received during the waiting time for at least two links are all greater than the position indicated by the read pointer.

[0159] In some embodiments, the second processing module 1103 is further configured to:

[0160] Upon receiving a request to read data from the cache space, the read pointer of the SN table is determined, and the read pointer is used to indicate the current read position of the SN table;

[0161] In the SN table, a second indication information is determined, which is the information of the current reading position;

[0162] When the second indication information is the first storage indication information, the read pointer is determined as the read pointer of the target message data, and the read pointer is moved to the next position in the SN table;

[0163] The target read pointer is identified in the SN supplementary table, and the target read pointer is the read pointer for the target message data;

[0164] Read data according to the target read pointer.

[0165] In some embodiments, the second processing module 1103 is configured to read data according to the target read pointer, including:

[0166] In the SN supplementary table, a third indication information is determined, which is the indication information of the indication position of the target read pointer;

[0167] When the third indication information changes to the second storage indication information, the target message data is read from the cache space according to the target read pointer.

[0168] In some embodiments, the second processing module 1103 is further configured to wait for the third indication information to change when the target read pointer is identified in the SN supplement table, and to time the waiting time.

[0169] The second processing module 1103 is configured to read the target message data from the cache space according to the target read pointer when the third indication information becomes the second storage indication information, including:

[0170] When the waiting time is less than or equal to the second set time and the third indication information becomes the second storage indication information, the target message data is read from the cache space according to the target read pointer.

[0171] In some embodiments, the second processing module 1103 is further configured to, while timing the waiting time, move the read pointer to the next position in the SN supplement table when the waiting time is longer than the second set time and the third indication information has not changed during the waiting time.

[0172] In practical applications, the receiving module 1101, the first processing module 1102, and the second processing module 1103 can all be implemented based on the processor of the OTN device.

[0173] It should be noted that the description of the above device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0174] It should be noted that, in the embodiments of this application, if the above methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, 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 and includes several instructions to cause a computer device (which may be a terminal, server, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0175] Correspondingly, this application embodiment further provides a computer program product, the computer program product including computer executable instructions, which are used to implement any of the data processing methods provided in this application embodiment.

[0176] Accordingly, this application embodiment further provides a computer storage medium storing computer-executable instructions, which are used to implement any of the data processing methods provided in the above embodiments.

[0177] This application also provides an OTN device. Figure 12 This is a schematic diagram of the composition structure of the OTN device provided in the embodiments of this application, as shown below. Figure 12 As shown, the OTN device 120 may include:

[0178] Memory 121 is used to store executable instructions;

[0179] The processor 122 is used to implement any of the above-described data processing methods when executing executable instructions stored in the memory 121.

[0180] The processor 122 mentioned above can be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

[0181] The aforementioned computer-readable storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.; it can also be various terminals that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0182] This application provides another electronic device, which includes any of the above-described data processing devices or any of the above-described electronic devices.

[0183] In some embodiments, the functions or modules of the apparatus provided in this application can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0184] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0185] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined to obtain new method embodiments without conflict.

[0186] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0187] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0188] 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 described in the various embodiments of this application.

[0189] 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. All of these forms are within the protection scope of this application.

Claims

1. A data processing method, characterized in that, The method, applied in OTN (Optical Transport Network) equipment, includes: Receive message data from each of multiple links; Based on the sequence identifier (SN) of the first message data, the first indication information corresponding to the SN of the first message data is searched in the SN table; the SN in the first message data represents the sequential identification number of the first message data; the first message data represents the message data of any one of the multiple links; the first indication information is used to determine whether the first message data has been stored in the buffer space. When the first message data is not stored in the cache space, the first message data is stored in the cache space, and the first indication information in the SN table is updated; Upon receiving a request to read data from the cache space, the read pointer of the SN table is determined, and the read pointer of the SN table is used to indicate the current read position of the SN table; In the SN table, a second indication information is determined, which is the information of the current reading position; When the second indication information is the first storage indication information, it is detected whether the second indication information has changed; the first storage indication information indicates that no message data is stored in the cache space; When the second indication information changes to the second storage indication information, the message data corresponding to the read pointer is read from the cache space; the second storage indication information indicates that the cache space has already stored message data; Wherein, detecting whether the second indication information has changed when the second indication information is the first stored indication information includes: When the second indication information is the first storage indication information, wait for the second indication information to change and start timing the waiting time; When the second indication information changes to the second storage indication information, reading the message data corresponding to the read pointer from the cache space includes: When the waiting time is less than or equal to the first set time and the second indication information changes to the second storage indication information, the message data corresponding to the read pointer is read from the cache space; After timing the waiting time, the method further includes: When the waiting time exceeds the first set time and the second indication information does not change during the waiting time, the read pointer in the SN table is moved to the next position.

2. The method according to claim 1, characterized in that, Before storing the first message data in the cache space, the method further includes: determining a write pointer, the write pointer being used to indicate the write position of the first message data in the cache space.

3. The method according to claim 1 or 2, characterized in that, After reading the message data corresponding to the read pointer from the cache space, the method further includes: moving the read pointer to the next position in the SN table.

4. The method according to claim 1, characterized in that, After timing the waiting time, the method further includes: If, during the waiting period, the SNs of at least two links are both greater than the position indicated by the read pointer, the read pointer is moved to the next position in the SN table.

5. The method according to claim 1 or 2, characterized in that, The method further includes: When the second indication information is the first storage indication information, the read pointer is determined as the read pointer of the target message data, and the read pointer is moved to the next position in the SN table; The target read pointer is identified in the SN supplementary table, and the target read pointer is the read pointer for the target message data; Read data according to the target read pointer.

6. The method according to claim 5, characterized in that, The step of reading data according to the target read pointer includes: In the SN supplementary table, a third indication information is determined, which is the indication information of the indication position of the target read pointer; When the third indication information changes to the second storage indication information, the target message data is read from the cache space according to the target read pointer; the second storage indication information indicates that the cache space has stored message data.

7. The method according to claim 6, characterized in that, When identifying the target read pointer in the SN supplementary table, the method further includes: waiting for the third indication information to change and timing the waiting time; When the third indication information changes to the second storage indication information, reading the target message data from the cache space according to the target read pointer includes: When the waiting time is less than or equal to the second set time and the third indication information becomes the second storage indication information, the target message data is read from the cache space according to the target read pointer.

8. The method according to claim 7, characterized in that, After timing the waiting time, the method further includes: If the waiting time is longer than the second set time and the third indication information does not change during the waiting time, the read pointer is moved to the next position in the SN supplement table.

9. A data processing apparatus, characterized in that, The device is used in an OTN device, and the device includes: The receiving module is used to receive message data from each of multiple links; The first processing module is used to look up the first indication information corresponding to the SN of the first message data in the SN table according to the sequence identifier SN of the first message data; the SN in the first message data represents the sequential identification number of the first message data; the first message data represents the message data of any one of the multiple links; the first indication information is used to determine whether the first message data has been stored in the buffer space. The second processing module is used to store the first message data in the cache space and update the first indication information in the SN table when the first message data is not stored in the cache space. The second processing module is further configured to: Upon determining that a request to read data from the cache space has been received, the read pointer of the SN table is determined, and the read pointer of the SN table is used to indicate the current read position of the SN table; In the SN table, a second indication information is determined, which is the information of the current reading position; When the second indication information is the first storage indication information, it is detected whether the second indication information has changed; the first storage indication information indicates that no message data is stored in the cache space; When the second indication information changes to the second storage indication information, the message data corresponding to the read pointer is read from the cache space, and the second storage indication information indicates that the cache space has stored message data; Wherein, detecting whether the second indication information has changed when the second indication information is the first stored indication information includes: When the second indication information is the first storage indication information, wait for the second indication information to change and start timing the waiting time; When the second indication information changes to the second storage indication information, reading the message data corresponding to the read pointer from the cache space includes: When the waiting time is less than or equal to the first set time and the second indication information changes to the second storage indication information, the message data corresponding to the read pointer is read from the cache space; After timing the waiting time, the second processing module is further used to: When the waiting time exceeds the first set time and the second indication information does not change during the waiting time, the read pointer in the SN table is moved to the next position.

10. An OTN device, characterized in that, Includes a processor and memory for storing computer programs that can run on the processor; wherein, The processor is used to run the computer program to perform the data processing method according to any one of claims 1 to 8.

11. An electronic device, characterized in that, Includes the data processing apparatus of claim 9 or the OTN device of claim 10.

12. A computer storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the data processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and apparatus for transmitting data in optical transport network

    US20100229074A1

  • Data reading and writing method and device

    WO2020177549A1