A method and apparatus for optical fiber communication data interaction processing

A fiber optic communication data interaction processing method that triggers the target program in the programmable array logic to update the memory cache address offset and remaining space solves the complexity problem of fiber optic communication data interaction in the prior art, realizes simple and efficient data interaction and memory management, and is suitable for fiber optic communication systems with multi-protocol compatibility and large data throughput.

CN119718680BActive Publication Date: 2025-10-28BEIJING TASSON SCI & TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510216656.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-10-28
Estimated Expiration
2045-02-26

AI Technical Summary

Technical Problem

Existing fiber optic communication data interaction processing methods are complex in design, cumbersome in interaction process, require a large amount of development and debugging work, have low interaction efficiency, and are difficult to maintain and locate problems, which cannot meet users' needs for multi-protocol compatibility and large data throughput.

Method used

The fiber optic communication data interaction processing method is adopted. By triggering the target program in the programmable array logic, the address offset and remaining space of the memory buffer are updated according to the data packet length. The data packet length information is saved by the write channel management module and read and processed by the data transfer module, which simplifies the memory management process.

Benefits of technology

It achieves simple and efficient fiber optic communication data interaction, improves interaction efficiency, simplifies memory management, reduces development and maintenance difficulty, and is suitable for fiber optic communication systems with multi-protocol compatibility and large data throughput.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718680B_ABST
    Figure CN119718680B_ABST
Patent Text Reader

Abstract

This invention relates to the field of optical fiber communication technology, and provides a method and apparatus for optical fiber communication data interaction processing. The method includes: when writing optical fiber communication data into a memory buffer, triggering the execution of a target program in a programmable array logic to determine the first target number of copies of the currently written data packet occupying the memory buffer based on the length of the written data packet, and updating the write address offset and the remaining space of the memory buffer recorded in the write channel management module of the target program, while using the write channel management module to save the data packet length information; when the target program detects the presence of a data packet in the status information of the memory buffer, reading and processing the data packet in the memory buffer based on the data packet length information and the read address offset, and releasing the capacity space corresponding to the data packet in the memory buffer. The optical fiber communication data interaction processing method provided by this invention has a simple interaction process and can effectively improve the efficiency of optical fiber communication data interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optical fiber communication, and particularly to an optical fiber communication data interaction processing method and device. In addition, it also relates to a computer device, a non-transitory computer-readable storage medium, and a computer program product. Background Art

[0002] The FC (Fiber Channel) bus is a high-speed serial bus with high bandwidth, high reliability, and strong anti-interference ability. The FC-AE (Fiber Channel-Avionics Environment) standard for avionics environments is being widely used in more and more avionics products and devices. With the increase in the types of user devices (such as Ethernet devices, video devices, etc.), nodes with a single function of the FC-AE-1553 protocol can no longer meet the needs of users. User requirements are developing towards multi-protocol (FC-AE-1553 protocol, FC-AE-ASM protocol, FC-AE-IPFC protocol) compatibility and large data volume throughput, and the amount of optical fiber communication data is increasing.

[0003] In an optical fiber bus communication system (i.e., an FC-AE communication system), software logic data interaction is an extremely important link. To meet the requirements of customers for multi-protocol compatibility and large data volume throughput, an extremely efficient optical fiber communication data interaction processing method is more needed. However, the existing optical fiber communication data interaction processing methods are either complex in design, cumbersome in interaction processes, and large in development and debugging workloads, or low in interaction efficiency, or difficult in maintaining and locating problems. Therefore, how to design a simple, efficient, and easy-to-maintain optical fiber communication data interaction processing solution has become an urgent technical problem to be solved currently. Summary of the Invention

[0004] The present invention provides an optical fiber communication data interaction processing method to solve the defect that the existing optical fiber communication data interaction solution has great limitations, resulting in poor efficiency of optical fiber communication data interaction.

[0005] The present invention provides an optical fiber communication data interaction processing method, including:

[0006] When writing optical fiber communication data into a memory buffer, trigger the execution of a preset target program in a programmable array logic to determine the first target number of copies of the current written data packet in the memory buffer according to the length of the written data packet of the optical fiber communication data, and update the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer according to the first target number of copies and the capacity space of each copy, and use the write channel management module to save the data packet length information;

[0007] When the target program detects the presence of data packets in the status information of the memory buffer, it reads the data packets in the memory buffer based on the data packet length information and read address offset, using the data transfer module in the target program. It then determines the second target number of read data packets occupying the memory buffer based on the length of the read data packets in the fiber optic communication data. Based on the second target number of read data packets and the capacity space of each packet, it updates the read address offset in the read channel management module of the target program, releasing the capacity space corresponding to the data packets in the memory buffer.

[0008] The fiber optic communication data interaction processing method according to the present invention further includes: querying whether the remaining space of the memory buffer meets the writing conditions of fiber optic communication data by running the target program in the programmable array logic; if the remaining space of the memory buffer meets the writing conditions of fiber optic communication data, obtaining the current write address offset from the write channel management module of the target program; triggering the data transfer module of the target program according to the current write address offset, so as to write the fiber optic communication data into the memory buffer through the target program in the programmable array logic, and configuring the data packet length information of the fiber optic communication data to the write channel management module and the read channel management module of the target program;

[0009] Upon receiving an interrupt signal from the target program in the programmable array logic, the data packet length information and read address offset are obtained from the read channel management module of the target program. The fiber optic communication data is processed according to the read address offset and the data packet length information. After the data processing is completed, the read address offset in the read channel management module is updated, and the capacity space corresponding to the memory buffer is released.

[0010] According to the optical fiber communication data interaction processing method of the present invention, the step of determining the first target number of write data packets occupying the memory buffer based on the length of the write data packets of the optical fiber communication data, and updating the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer based on the first target number of packets and the capacity space of each packet, specifically includes:

[0011] Based on the length of the written data packet of the optical fiber communication data and the capacity space of each pre-divided portion, determine the first target number of portions of the memory buffer occupied by the current written data packet;

[0012] Obtain the initial write address offset recorded in the write channel management module of the target program;

[0013] Based on the first target number of copies and the capacity space of each copy, determine the increased write address offset;

[0014] Based on the initial write address offset and the increased write address offset, the target write address offset is determined. Based on the target write address offset, the write address offset recorded in the write channel management module of the target program is updated, and the target write address offset is used as the updated write address offset.

[0015] Based on the first target number of portions and the capacity space of each portion, determine the occupied capacity space;

[0016] Obtain the initial capacity of the memory cache; determine the actual remaining space based on the initial capacity and the occupied capacity; and update the remaining space of the memory cache based on the actual remaining space.

[0017] According to the optical fiber communication data interaction processing method of the present invention, updating the read address offset in the read channel management module of the target program based on the second target number of copies and the capacity space of each copy specifically includes:

[0018] Obtain the initial read address offset recorded in the read channel management module of the target program;

[0019] Based on the second target number of copies and the capacity space of each copy, determine the reduced read address offset;

[0020] Based on the initial read address offset and the reduced write address offset, the target read address offset is determined. Based on the target read address offset, the read address offset recorded in the read channel management module of the target program is updated, and the target read address offset is used as the updated read address offset.

[0021] According to the fiber optic communication data interaction processing method of the present invention, before triggering the execution of a preset target program in the programmable array logic when writing fiber optic communication data into the memory buffer, the method further includes: querying whether the remaining space in the memory buffer meets the writing conditions for fiber optic communication data; if the remaining space in the memory buffer meets the writing conditions for fiber optic communication data, querying and obtaining the current write address offset from the write channel management module in the target program of the programmable array logic; writing the fiber optic communication data into the memory buffer according to the current write address offset; and, after writing is completed, pre-configuring the data packet length information of the fiber optic communication data into the write channel management module.

[0022] According to the optical fiber communication data interaction processing method of the present invention, before querying whether the remaining space of the memory buffer meets the writing conditions of optical fiber communication data, the method further includes:

[0023] The memory cache area is pre-divided into preset equal parts to obtain the target number of parts and the capacity of each part.

[0024] The target number of copies corresponding to the memory cache and the capacity space of each copy are synchronized to the preset target program in the programmable array logic.

[0025] The present invention also provides an optical fiber communication data interaction processing device, comprising:

[0026] The first data write management unit is used to trigger the execution of a preset target program in the programmable array logic when writing optical fiber communication data into the memory buffer. The target program determines the first target number of write data packets in the memory buffer based on the length of the write data packets of the optical fiber communication data. Based on the first target number of packets and the capacity space of each packet, the program updates the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer. The program also uses the write channel management module to save the data packet length information.

[0027] The data read management unit is used to, when the target program detects the presence of data packets in the status information of the memory buffer, read the data packets in the memory buffer according to the data packet length information and read address offset, and use the data transfer module in the target program to read the data packets in the memory buffer. It also determines the second target number of read data packets in the memory buffer based on the length of the read data packets of the optical fiber communication data. Based on the second target number of read data packets and the capacity space of each data packet, it updates the read address offset in the read channel management module of the target program and releases the capacity space corresponding to the data packets in the memory buffer.

[0028] The optical fiber communication data interaction processing apparatus according to the present invention further includes:

[0029] The second data write management unit is used to query whether the remaining space of the memory buffer meets the writing conditions for optical fiber communication data by running the target program in the programmable array logic. If the remaining space of the memory buffer meets the writing conditions for optical fiber communication data, the unit obtains the current write address offset from the write channel management module of the target program. Based on the current write address offset, the unit triggers the data transfer module of the target program to write the optical fiber communication data into the memory buffer through the target program in the programmable array logic, and configures the data packet length information of the optical fiber communication data into the write channel management module and the read channel management module of the target program.

[0030] The data processing unit is configured to, upon receiving an interrupt signal sent by the target program in the programmable array logic, obtain data packet length information and read address offset from the read channel management module of the target program, process the optical fiber communication data according to the read address offset and the data packet length information, update the read address offset in the read channel management module after the data processing is completed, and release the capacity space corresponding to the memory cache.

[0031] According to the optical fiber communication data interaction processing apparatus of the present invention, the step of determining the first target number of write data packets occupying the memory buffer based on the length of the write data packets of the optical fiber communication data, and updating the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer based on the first target number of packets and the capacity space of each packet, specifically includes:

[0032] Based on the length of the written data packet of the optical fiber communication data and the capacity space of each pre-divided portion, determine the first target number of portions of the memory buffer occupied by the current written data packet;

[0033] Obtain the initial write address offset recorded in the write channel management module of the target program;

[0034] Based on the first target number of copies and the capacity space of each copy, determine the increased write address offset;

[0035] Based on the initial write address offset and the increased write address offset, the target write address offset is determined. Based on the target write address offset, the write address offset recorded in the write channel management module of the target program is updated, and the target write address offset is used as the updated write address offset.

[0036] Based on the first target number of portions and the capacity space of each portion, determine the occupied capacity space;

[0037] Obtain the initial capacity of the memory cache; determine the actual remaining space based on the initial capacity and the occupied capacity; and update the remaining space of the memory cache based on the actual remaining space.

[0038] According to the optical fiber communication data interaction processing apparatus of the present invention, updating the read address offset in the read channel management module of the target program based on the second target number of copies and the capacity space of each copy specifically includes:

[0039] Obtain the initial read address offset recorded in the read channel management module of the target program;

[0040] Based on the second target number of copies and the capacity space of each copy, determine the reduced read address offset;

[0041] Based on the initial read address offset and the reduced write address offset, the target read address offset is determined. Based on the target read address offset, the read address offset recorded in the read channel management module of the target program is updated, and the target read address offset is used as the updated read address offset.

[0042] According to the optical fiber communication data interaction processing apparatus of the present invention, before triggering the execution of a preset target program in the programmable array logic after writing optical fiber communication data into the memory buffer, the first data writing management unit is further configured to:

[0043] The remaining space in the memory buffer is queried to see if it meets the conditions for writing optical fiber communication data. If the remaining space in the memory buffer meets the conditions for writing optical fiber communication data, the current write address offset is obtained from the write channel management module in the target program of the programmable array logic. According to the current write address offset, the optical fiber communication data is written to the memory buffer, and after the writing is completed, the data packet length information of the optical fiber communication data is pre-configured to the write channel management module.

[0044] The optical fiber communication data interaction processing apparatus according to the present invention further includes, before querying whether the remaining space in the memory buffer meets the writing conditions for optical fiber communication data:

[0045] The capacity space allocation configuration management unit is used for:

[0046] The memory cache area is pre-divided into preset equal parts to obtain the target number of parts and the capacity of each part.

[0047] The target number of copies corresponding to the memory cache and the capacity space of each copy are synchronized to the preset target program in the programmable array logic.

[0048] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the optical fiber communication data interaction processing method as described in any of the preceding claims.

[0049] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the optical fiber communication data interaction processing method as described in any of the preceding claims.

[0050] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the optical fiber communication data interaction processing method as described in any of the preceding claims.

[0051] The fiber optic communication data interaction processing method provided by this invention, when writing fiber optic communication data into a memory buffer, triggers the execution of a preset target program in the programmable array logic. This program determines the first target number of write data packets occupying the memory buffer based on the length of the write data packets. Based on the first target number of packets and the capacity space of each packet, it updates the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer, and uses the write channel management module to save the data packet length information. When the target program detects the presence of data packets in the status information of the memory buffer, it reads the data packets from the memory buffer based on the data packet length information and the read address offset, using the data transfer module in the target program. Based on the length of the read data packets, it determines the second target number of read data packets occupying the memory buffer. Based on the second target number of packets and the capacity space of each packet, it updates the read address offset in the read channel management module of the target program, releasing the capacity space corresponding to the data packets in the memory buffer. This method has a simple interaction process and can effectively improve the efficiency of fiber optic communication data interaction. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0053] Figure 1 This is one of the flowcharts illustrating the optical fiber communication data interaction processing method provided by the present invention.

[0054] Figure 2 This is a schematic diagram of the hardware structure connection corresponding to the optical fiber communication data interaction processing method provided by the present invention.

[0055] Figure 3 This is the second flowchart of the optical fiber communication data interaction processing method provided by the present invention.

[0056] Figure 4 This is the third flowchart of the optical fiber communication data interaction processing method provided by the present invention.

[0057] Figure 5This is a schematic diagram of the optical fiber communication data interaction processing device provided by the present invention.

[0058] Figure 6 This is a schematic diagram of the structure of the computer device provided by the present invention. Detailed Implementation

[0059] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0060] The following is combined Figures 1-6 The present invention describes the optical fiber communication data interaction processing method and apparatus, and provides a detailed description of its embodiments.

[0061] The following is a detailed description of embodiments of the optical fiber communication data interaction processing method described in this invention. For example... Figure 1 The diagram shown is a flowchart of the optical fiber communication data interaction processing method provided by the present invention. The specific implementation process includes the following steps:

[0062] Step 101: When writing fiber optic communication data into the memory buffer, trigger the execution of a preset target program in the programmable array logic to determine the first target number of write data packets in the memory buffer based on the length of the write data packets of the fiber optic communication data. Based on the first target number of packets and the capacity space of each packet, update the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer. The write channel management module is used to save the data packet length information.

[0063] In this embodiment of the invention, before triggering the execution of a preset target program in the Field Programmable Gate Array (FPGA) logic when writing fiber optic communication data to the memory buffer, the software of the computer device needs to query whether the remaining space of the memory buffer meets the writing conditions for fiber optic communication data. If the remaining space of the memory buffer meets the writing conditions for fiber optic communication data, the current write address offset is obtained from the write channel management module in the target program of the FPGA logic. Based on the current write address offset, the fiber optic communication data is written to the memory buffer, and after writing is completed, the data packet length information of the fiber optic communication data is pre-configured to the write channel management module. The software is a computer program product running in the computer device. It should be noted that before querying whether the remaining space of the memory buffer meets the writing conditions for fiber optic communication data, the capacity space of the memory buffer needs to be pre-divided into preset equal parts to obtain the target number of parts and the capacity space of each part, and the target number of parts and the capacity space of each part are synchronized to the preset target program in the FPGA logic. The software refers to a program running on a PC or various processors. The preset target program in the programmable array logic is a program running in the FPGA or a data logic circuit inside the FPGA. The fiber optic communication data is data exchanged in a fiber optic bus communication system.

[0064] In this step, when fiber optic communication data is written to the memory buffer, a preset target program in the programmable array logic is triggered to run. Based on the length of the written data packet of the fiber optic communication data and the capacity space of each pre-divided portion, the first target number of portions of the memory buffer occupied by the current written data packet is determined. For example, the number of portions of the memory buffer occupied by the current written data packet can be obtained by dividing the length of the written data packet of the fiber optic communication data by the capacity space of each pre-divided portion, which is used as the first target number of portions. The initial write address offset recorded in the write channel management module of the target program is obtained.

[0065] Based on the first target number of copies and the capacity space of each copy, determine the increased write address offset, for example, by multiplying the first target number of copies and the capacity space of each copy; based on the initial write address offset and the increased write address offset, determine the target write address offset, for example, by summing the initial write address offset and the increased write address offset; based on the target write address offset, update the write address offset recorded in the write channel management module of the target program, and use the target write address offset as the updated write address offset; based on the first target number of copies and the capacity space of each copy, determine the occupied capacity space, for example, by multiplying the first target number of copies and the capacity space of each copy; obtain the initial capacity space of the memory cache; based on the initial capacity space and the occupied capacity space, determine the actual remaining space, for example, by subtracting the occupied capacity space from the initial capacity space; and update the remaining space of the memory cache based on the actual remaining space.

[0066] Step 102: When the target program detects that there are data packets in the status information of the memory buffer, the data packets in the memory buffer are read using the data transfer module in the target program according to the data packet length information and read address offset. The second target number of read data packets in the memory buffer is determined according to the length of the read data packets of the optical fiber communication data. The read address offset in the read channel management module of the target program is updated according to the second target number of copies and the capacity space of each copy, and the capacity space corresponding to the data packets in the memory buffer is released.

[0067] In this embodiment of the invention, when the target program detects the presence of data packets in the status information of the memory buffer, the data packets in the memory buffer are read using the data packet length information and read address offset, and the data transfer module in the target program is used to process the data packets. The second target number of read data packets in the memory buffer is determined based on the length of the read data packets of the optical fiber communication data. The initial read address offset recorded in the read channel management module of the target program is obtained. A reduced read address offset is determined based on the second target number of packets and the capacity space of each packet, for example, by multiplying the second target number of packets and the capacity space of each packet. A target read address offset is determined based on the initial read address offset and the reduced write address offset, for example, by subtracting the initial read address offset from the reduced write address offset. Based on the target read address offset, the read address offset recorded in the read channel management module of the target program is updated, and the target read address offset is used as the updated read address offset.

[0068] The software logic fiber optic communication data interaction processing implementation process proposed in this invention is as follows: Figure 2 As shown below, the example of software running on a Windows PC, logic running on an FPGA, and communication via a PCIe interface is described in detail below:

[0069] During initialization, the software powers on and runs the driver, requesting two buffers (memory caches) from the fiber optic bus communication system. One buffer is used for sending, and the other for receiving. Both buffers can have a capacity of 1MB, with starting addresses of buffer_addr_tx and buffer_addr_rx, and these addresses are configured on the logical side. The logical side divides the buffers into 4096 equal parts (the target number of parts), each with a capacity of 256B (the capacity space of each part). The initial remaining space in both buffers is 4096 bytes, and the write address offset is... Read address offset .

[0070] Specifically, during the software data transmission process, (a) the software running on the computer device checks if the remaining space in the buffer is 4096 bytes and data can be written; (b) the software checks the write address offset. (c) Software from (d) After the software completes the data writing, it configures the written data length (700B) to the logical write address management channel; (e) The logic executes the update write address offset. The remaining space in the Buffer is 4093; (f) When the logic execution detects data in the Buffer status information, it obtains the read address from the read channel. Given a data length of 700B, initiate DAM to read data from the corresponding position in the buffer into the logic; (g) after the logic completes reading the data, update the write address offset. The remaining space in the buffer is 4096, and the corresponding message length information in the FIFO is cleared. The computer device is a server. The above process is the completion process of the software sending a message to the logic. In the whole process, the software repeats the first 4 processes in sequence; the logic repeats the last 4 processes in sequence. As long as the remaining space in the buffer is sufficient, the software can continuously write data, and the logic will continuously move data when it detects data. As long as the DMA rate is fast enough, the remaining space in the buffer will not be exhausted, and the software can continuously send data without interruption, ultimately achieving a very large data throughput with high efficiency. From the above process, it can be seen that, apart from DMA moving data, the logic software only has parameter passing in steps (a), (b), and (d), which is very simple and easy to implement.

[0071] Furthermore, in this embodiment of the invention, the optical fiber communication data interaction processing method further includes a process in which the software receiving logic of the computer device reports the implementation of optical fiber communication data interaction. Here, the logic is the target program in the programmable array logic, i.e., the target program in the FPGA. The software of the computer device is software running on a Windows PC. Specifically, by running the target program in the programmable array logic, it is queried whether the remaining space in the memory buffer meets the conditions for writing optical fiber communication data. If the remaining space in the memory buffer meets the conditions for writing optical fiber communication data, the current write address offset is obtained from the write channel management module of the target program. Based on the current write address offset, the data transfer module of the target program is triggered to write the optical fiber communication data into the memory buffer through the target program in the programmable array logic, and the data packet length information of the optical fiber communication data is configured in the write channel management module and the read channel management module of the target program. Upon receiving an interrupt signal from the target program in the programmable array logic, the data packet length information and read address offset are obtained from the read channel management module of the target program. The fiber optic communication data is processed based on the read address offset and the data packet length information. After data processing is complete, the read address offset in the read channel management module is updated, and the capacity space corresponding to the memory buffer is released. That is, as... Figure 3As shown, the program running in the FPGA queries whether the remaining space in the memory buffer meets the conditions for writing fiber optic communication data. If so, it obtains the current write address offset from the FPGA's write channel management module. Based on the current write address offset, it triggers the data transfer module to write the fiber optic communication data into the memory buffer and writes the data packet length information of the fiber optic communication data into the write channel management module. Upon receiving an interrupt signal from the program running in the FPGA, it obtains the data packet length information and read address offset from the read channel management module. Based on the read address offset and the data packet length information, it processes the fiber optic communication data. After the data processing is completed, it notifies the read channel management module to update the read address offset and releases the corresponding capacity space of the memory buffer.

[0072] Specifically, during the software's data reception process, (a) the logic executes a query to check if the remaining space in the buffer is 4096 (sufficient remaining space) and data can be written; (b) the logic executes a query to check the write address offset. (c) Logical execution starts DMA to Address write data, write data length 7.5KB; (d) After the logic execution DMA write is completed, the written data length (7.5KB) is passed to the write address management channel to update the write address offset. The remaining space in the buffer is 4066; (e) The logic execution generates an interrupt to notify the software that data has been reported; (f) The software checks whether an interrupt has been received; (g) After receiving the interrupt reported by the logic, the software reads the read channel to obtain the read address. The status management module obtains the data length (7.5KB) and then... The address begins processing data; (h) After the software completes data processing, it notifies the logic to update the read channel address. The remaining space in the buffer is 4096, and the corresponding message length information in the FIFO is cleared.

[0073] The above process describes the completion of a message report received by the software logic. In this process, the logic sequentially executes the first five steps, while the software sequentially executes the last three steps. As long as the logic finds sufficient remaining buffer space, it can continuously write data, and the software can continuously process data upon detecting its presence. As long as the DMA rate is fast enough, the buffer space will not be exhausted, allowing the logic to continuously report data, achieving a very high data throughput with high efficiency. From the above process, it can be seen that, apart from DMA data transfer, the logic software only involves parameter passing in steps (g) and (h), making it very simple and easy to implement.

[0074] In order to solve the technical problem described herein, the following methods are employed in this invention: Figure 2The hardware architecture shown is as follows. In the computer device, the software-side driver is responsible for reading, writing, and processing data (i.e., fiber optic communication data). In the FPGA, the logic-side DMA (Direct Memory Access) is responsible for data transfer between the software and logic. The DMA can also be replaced by other existing data transfer modules; no specific limitations are made here. The memory buffer is provided by the software side, and both the logic and software have read and write permissions to this memory buffer. During the operation of the fiber optic bus communication system, the management of the memory buffer is handled solely by the logic. The software side no longer needs to undertake the corresponding management work, but it can obtain the status of the memory buffer (remaining space, whether there is data, and the number of data packets to be processed, etc.) from the logic side in real time.

[0075] This invention discloses a software-side memory cache management method and a fiber optic communication data interaction method between software and logic based on this method. In this invention, the logic divides a total capacity S of the software-side buffer used for data interaction into N equal parts for management (N can be pre-configured by the software and logic; the larger N is, the more granular the buffer management). The capacity of each part is M = S / N, i.e., the capacity space of each part. The logic divides the buffer management work into a write channel management module, a read channel management module, and a state maintenance module (i.e., the buffer state management module). The write channel management module is responsible for maintaining the write address offset of the buffer (i.e.,... It also records the length information of the written data packets; the read channel management module is responsible for maintaining the read address offset of the buffer. The module is responsible for clearing and removing data packet length information; the status maintenance module is responsible for controlling and maintaining the remaining buffer space, whether there is data, and the number of data packets. and The initial values ​​of all are 0.

[0076] When the fiber optic communication data is written to the buffer (memory buffer), the number of buffer portions P occupied by the current written data packet (i.e., the first target portion) is calculated logically based on the length of the written data packet (wpkg_len). If the data packet is less than one portion, it is treated as one portion. Then, the write address offset (waddr_offset) is updated, and the length of the written data packet (wpkg_len) is saved. If waddr_offset exceeds the buffer address range, the high-order bits overflow and are discarded, completing the address rollback. The formula for calculating the write address offset update is as follows:

[0077]

[0078] That is, to obtain the initial write address offset recorded in the write channel management module of the target program ( Based on the first target number of copies (P) and the capacity space of each copy (M), determine the increased write address offset (i.e., Based on the initial write address offset and the increased write address offset, the target write address offset is determined, and based on the target write address offset (i.e. The write address offset recorded in the write channel management module of the target program is updated, and the target write address offset is used as the updated write address offset.

[0079] After the computer device finishes reading fiber optic communication data from the buffer, it logically calculates the number of buffer segments L (i.e., the second target segment number) occupied by the currently read data packet based on the read data length (rpkg_len). Data packets less than one segment are treated as one segment. Then, the read address offset (raddr_offset) is updated, and the data packet length information is cleared. If raddr_offset exceeds the buffer address range, the high-order bits overflow and are discarded, completing address rollback. The formula for calculating the read address offset update is as follows:

[0080]

[0081] That is, to obtain the initial read address offset recorded in the read channel management module of the target program (i.e., Based on the second target number of copies (i.e., L) and the capacity space of each copy (i.e., M), determine the reduced read address offset (i.e., Based on the initial read address offset and the reduced write address offset, determine the target read address offset (i.e., Based on the target read address offset, the read address offset recorded in the read channel management module of the target program is updated, and the target read address offset is used as the updated read address offset.

[0082] The Buffer state management module includes: remaining Buffer space, whether there are data packets in the Buffer, and the number of buffered data packets. The initial value of the remaining Buffer space is N. When a data packet occupying P buffer segments is written, the remaining Buffer space is decremented by P; when a data packet occupying L buffer segments is read, the remaining Buffer space is incremented by L. The presence and quantity of data packets in the Buffer are obtained from the data packet length information FIFO.

[0083] Figure 3The diagram illustrates the software-to-logic data transmission interaction method, comprising eight steps. Steps 1-4 are completed by the software, while steps 5-8 are completed by the logic. Only steps 1, 2, and 4 involve software-logic interaction, and the interaction involves obtaining status and configuring parameters, making the operation simple and error-free. The software only needs to focus on steps 1-4 to transmit data to the logic. As long as there is sufficient remaining buffer space in step 1, the software can continuously send data, effectively improving the software's data transmission efficiency.

[0084] Figure 4 The diagram illustrates the software's data reception and reporting interaction method, which consists of eight steps. Steps 1-5 are completed by the logic, while steps 6-8 are completed by the software. Only steps 6, 7, and 8 involve software-logic interaction. Step 6 involves the software receiving an interrupt signal generated by the logic. Steps 7 and 8 involve software-logic interaction, and the interaction involves obtaining status and configuring parameters, making them simple and error-free to operate. For logic to transmit data to the software, only steps 1-5 need to be considered. As long as there is sufficient remaining buffer space in step 1, the logic can continuously report data to the software, effectively improving the efficiency of logic data reporting.

[0085] In traditional software logic interaction methods, both the software and logic need to maintain their own pointer management buffers, resulting in cumbersome design and low interaction efficiency. However, the software logic data interaction method designed based on this invention is simple to implement, concise in interaction, less prone to errors, and highly efficient. Furthermore, the buffer's operating status (remaining space, data availability, and the number of data packets) can be clearly obtained, facilitating system monitoring and bug localization.

[0086] To address the problems of complex, inefficient, and difficult-to-implement and maintain software logic interaction methods in FC-AE communication systems, this invention proposes a new software logic data interaction method for FC-AE communication systems. The fiber optic communication data interaction processing method provided by this invention, when writing fiber optic communication data into a memory buffer, triggers the execution of a preset target program in the programmable array logic. This program determines the first target number of write data packets occupying the memory buffer based on the length of the write data packets. Based on the first target number of packets and the capacity space of each packet, it updates the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer, and uses the write channel management module to save the data packet length information. When the target program detects the presence of data packets in the status information of the memory buffer, it reads the data packets from the memory buffer based on the data packet length information and the read address offset, using the data transfer module in the target program. Based on the length of the read data packets, it determines the second target number of read data packets occupying the memory buffer. Based on the second target number of packets and the capacity space of each packet, it updates the read address offset in the read channel management module of the target program, releasing the capacity space corresponding to the data packets in the memory buffer. This method has a simple interaction process and can effectively improve the efficiency of fiber optic communication data interaction. This approach employs a memory buffer block system, with each block managed independently by the logic. This design effectively simplifies memory management, resulting in a concise and easy-to-implement software logic interaction process. The software logic data interaction method proposed in this invention significantly simplifies the interaction process while ensuring sufficiently high communication efficiency. Furthermore, the memory management approach in this interaction method is adaptable to many systems that require memory management.

[0087] The optical fiber communication data interaction processing apparatus provided by the present invention is described below. The optical fiber communication data interaction processing apparatus described below can be referred to in correspondence with the optical fiber communication data interaction processing method described above. References Figure 5 The diagram shown is a structural schematic of the optical fiber communication data interaction processing device provided by the present invention. The optical fiber communication data interaction processing device of the present invention specifically includes the following parts:

[0088] The first data write management unit 501 is used to trigger the execution of a preset target program in the programmable array logic when writing optical fiber communication data into the memory buffer. The target program determines the first target number of write data packets in the memory buffer based on the length of the write data packets of the optical fiber communication data. Based on the first target number of packets and the capacity space of each packet, the program updates the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer. The program also uses the write channel management module to save the data packet length information.

[0089] The data reading management unit 502 is used to, when the target program detects the presence of data packets in the status information of the memory buffer, read the data packets in the memory buffer according to the data packet length information and read address offset, and use the data transfer module in the target program to process the data packets, and determine the second target number of read data packets in the memory buffer according to the length of the read data packets of the optical fiber communication data; and update the read address offset in the read channel management module of the target program according to the second target number of copies and the capacity space of each copy, thereby releasing the capacity space corresponding to the data packets in the memory buffer.

[0090] The optical fiber communication data interaction processing apparatus according to the present invention further includes:

[0091] The second data write management unit is used to query whether the remaining space of the memory buffer meets the writing conditions for optical fiber communication data by running the target program in the programmable array logic. If the remaining space of the memory buffer meets the writing conditions for optical fiber communication data, the unit obtains the current write address offset from the write channel management module of the target program. Based on the current write address offset, the unit triggers the data transfer module of the target program to write the optical fiber communication data into the memory buffer through the target program in the programmable array logic, and configures the data packet length information of the optical fiber communication data into the write channel management module and the read channel management module of the target program.

[0092] The data processing unit is configured to, upon receiving an interrupt signal sent by the target program in the programmable array logic, obtain data packet length information and read address offset from the read channel management module of the target program, process the optical fiber communication data according to the read address offset and the data packet length information, update the read address offset in the read channel management module after the data processing is completed, and release the capacity space corresponding to the memory cache.

[0093] According to the optical fiber communication data interaction processing apparatus of the present invention, the step of determining the first target number of write data packets occupying the memory buffer based on the length of the write data packets of the optical fiber communication data, and updating the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer based on the first target number of packets and the capacity space of each packet, specifically includes:

[0094] Based on the length of the written data packet of the optical fiber communication data and the capacity space of each pre-divided portion, determine the first target number of portions of the memory buffer occupied by the current written data packet;

[0095] Obtain the initial write address offset recorded in the write channel management module of the target program;

[0096] Based on the first target number of copies and the capacity space of each copy, determine the increased write address offset;

[0097] Based on the initial write address offset and the increased write address offset, the target write address offset is determined. Based on the target write address offset, the write address offset recorded in the write channel management module of the target program is updated, and the target write address offset is used as the updated write address offset.

[0098] Based on the first target number of portions and the capacity space of each portion, determine the occupied capacity space;

[0099] Obtain the initial capacity of the memory cache; determine the actual remaining space based on the initial capacity and the occupied capacity; and update the remaining space of the memory cache based on the actual remaining space.

[0100] According to the optical fiber communication data interaction processing apparatus of the present invention, updating the read address offset in the read channel management module of the target program based on the second target number of copies and the capacity space of each copy specifically includes:

[0101] Obtain the initial read address offset recorded in the read channel management module of the target program;

[0102] Based on the second target number of copies and the capacity space of each copy, determine the reduced read address offset;

[0103] Based on the initial read address offset and the reduced write address offset, the target read address offset is determined. Based on the target read address offset, the read address offset recorded in the read channel management module of the target program is updated, and the target read address offset is used as the updated read address offset.

[0104] According to the optical fiber communication data interaction processing apparatus of the present invention, before triggering the execution of a preset target program in the programmable array logic after writing optical fiber communication data into the memory buffer, the first data writing management unit is further configured to:

[0105] The remaining space in the memory buffer is queried to see if it meets the conditions for writing optical fiber communication data. If the remaining space in the memory buffer meets the conditions for writing optical fiber communication data, the current write address offset is obtained from the write channel management module in the target program of the programmable array logic. According to the current write address offset, the optical fiber communication data is written to the memory buffer, and after the writing is completed, the data packet length information of the optical fiber communication data is pre-configured to the write channel management module.

[0106] The optical fiber communication data interaction processing apparatus according to the present invention further includes, before querying whether the remaining space in the memory buffer meets the writing conditions for optical fiber communication data:

[0107] The capacity space allocation configuration management unit is used for:

[0108] The memory cache area is pre-divided into preset equal parts to obtain the target number of parts and the capacity of each part.

[0109] The target number of copies corresponding to the memory cache and the capacity space of each copy are synchronized to the preset target program in the programmable array logic.

[0110] The fiber optic communication data interaction processing device provided by this invention, when writing fiber optic communication data into a memory buffer, triggers the execution of a preset target program in the programmable array logic. This program determines the first target number of write data packets occupying the memory buffer based on the length of the write data packets. Based on the first target number of packets and the capacity space of each packet, it updates the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer, and uses the write channel management module to save the data packet length information. When the target program detects the presence of data packets in the status information of the memory buffer, it reads the data packets from the memory buffer based on the data packet length information and the read address offset, using the data transfer module in the target program. Based on the length of the read data packets, it determines the second target number of read data packets occupying the memory buffer. Based on the second target number of packets and the capacity space of each packet, it updates the read address offset in the read channel management module of the target program, releasing the capacity space corresponding to the data packets in the memory buffer. Its interaction process is simple and can effectively improve the efficiency of fiber optic communication data interaction.

[0111] Figure 6 An example is a schematic diagram of the physical structure of a computer device, such as... Figure 6 As shown, the computer device (i.e., electronic device) may include: a processor 601, a communication interface 604, a memory 602, and a communication bus 603, wherein the processor 601, the communication interface 604, and the memory 602 communicate with each other through the communication bus 603. The processor 601 can call logic instructions in the memory 602 to execute a fiber optic communication data interaction processing method. This method includes: when writing fiber optic communication data into a memory buffer, triggering the execution of a preset target program in the programmable array logic to determine a first target number of write data packets occupying the memory buffer based on the length of the write data packets; updating the write address offset and the remaining space of the memory buffer recorded in the write channel management module of the target program based on the first target number of packets and the capacity space of each packet; and using the write channel management module to save data packet length information; when the target program detects the presence of data packets in the status information of the memory buffer, reading the data packets in the memory buffer based on the data packet length information and the read address offset, and using the data transfer module in the target program; determining a second target number of read data packets occupying the memory buffer based on the length of the read data packets; updating the read address offset in the read channel management module of the target program based on the second target number of packets and the capacity space of each packet, and releasing the capacity space corresponding to the data packets in the memory buffer.

[0112] Furthermore, the logical instructions in the aforementioned memory 602 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, 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 personal computer, server, or network device, etc.) to execute all or part of the steps 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), random access memory (RAM), magnetic disks, or optical disks.

[0113] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fiber optic communication data interaction processing method provided by the above methods. The method includes: when writing fiber optic communication data into a memory buffer, triggering the execution of a preset target program in the programmable array logic to determine a first target number of write data packets occupying the memory buffer based on the length of the write data packets of the fiber optic communication data, and updating the write address offset recorded in the write channel management module of the target program based on the first target number of packets and the capacity space of each packet. The remaining space in the memory buffer is moved, and the data packet length information is saved using the write channel management module. When the target program detects that there is a data packet in the status information of the memory buffer, the data packet in the memory buffer is read according to the data packet length information and the read address offset, and the data transfer module in the target program is used to process the data packet. The second target number of read data packets in the memory buffer is determined according to the length of the read data packet of the optical fiber communication data. According to the second target number of copies and the capacity space of each copy, the read address offset in the read channel management module of the target program is updated, and the capacity space corresponding to the data packet in the memory buffer is released.

[0114] Furthermore, this application also provides a computer-readable storage medium comprising a stored program, wherein the program, when running, executes the fiber optic communication data interaction processing method provided by the methods described above. This method includes: when writing fiber optic communication data into a memory buffer, triggering the execution of a preset target program in the programmable array logic to determine a first target number of write data packets occupying the memory buffer based on the length of the write data packet of the fiber optic communication data; and updating the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer based on the first target number of packets and the capacity space of each packet. In the meantime, the write channel management module is used to save the data packet length information; when the target program detects that there is a data packet in the status information of the memory buffer, the data packet in the memory buffer is read according to the data packet length information and the read address offset, and the data transfer module in the target program is used to read the data packet in the memory buffer, and the second target number of read data packets in the memory buffer is determined according to the length of the read data packet of the optical fiber communication data; according to the second target number of copies and the capacity space of each copy, the read address offset in the read channel management module of the target program is updated, and the capacity space corresponding to the data packet in the memory buffer is released.

[0115] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0116] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, 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 can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for processing data interaction in optical fiber communication, characterized in that, include: When writing fiber optic communication data into the memory buffer, a preset target program in the programmable array logic is triggered to determine the first target number of the current write data packet in the memory buffer based on the length of the write data packet of the fiber optic communication data. Based on the first target number of packets and the capacity space of each packet, the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer are updated, and the write channel management module is used to save the data packet length information. When the target program detects that there are data packets in the status information of the memory buffer, it reads the data packets in the memory buffer according to the data packet length information and read address offset, and uses the data transfer module in the target program to process the data packets, and determines the second target number of the current read data packets in the memory buffer according to the length of the read data packets of the optical fiber communication data. Based on the second target number of copies and the capacity space of each copy, the read address offset in the read channel management module of the target program is updated, and the capacity space corresponding to the data packets in the memory cache is released. It also includes: querying whether the remaining space of the memory buffer meets the conditions for writing optical fiber communication data by running the target program in the programmable array logic; if the remaining space of the memory buffer meets the conditions for writing optical fiber communication data, obtaining the current write address offset from the write channel management module of the target program; triggering the data transfer module of the target program according to the current write address offset, so as to write the optical fiber communication data into the memory buffer through the target program in the programmable array logic, and configuring the data packet length information of the optical fiber communication data to the write channel management module and the read channel management module of the target program; Upon receiving an interrupt signal from the target program in the programmable array logic, the data packet length information and read address offset are obtained from the read channel management module of the target program. The fiber optic communication data is processed according to the read address offset and the data packet length information. After the data processing is completed, the read address offset in the read channel management module is updated, and the capacity space corresponding to the memory buffer is released. The step of determining the first target number of write data packets occupying the memory buffer based on the length of the write data packets of the optical fiber communication data, and updating the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer based on the first target number of packets and the capacity space of each packet, specifically includes: Based on the length of the written data packet of the optical fiber communication data and the capacity space of each pre-divided portion, determine the first target number of portions of the memory buffer occupied by the current written data packet; Obtain the initial write address offset recorded in the write channel management module of the target program; Based on the first target number of copies and the capacity space of each copy, determine the increased write address offset; Based on the initial write address offset and the increased write address offset, the target write address offset is determined. Based on the target write address offset, the write address offset recorded in the write channel management module of the target program is updated, and the target write address offset is used as the updated write address offset. Based on the first target number of portions and the capacity space of each portion, determine the occupied capacity space; Obtain the initial capacity of the memory cache; determine the actual remaining space based on the initial capacity and the occupied capacity; and update the remaining space of the memory cache based on the actual remaining space. The step of updating the read address offset in the read channel management module of the target program based on the second target number of copies and the capacity space of each copy specifically includes: Obtain the initial read address offset recorded in the read channel management module of the target program; Based on the second target number of copies and the capacity space of each copy, determine the reduced read address offset; Based on the initial read address offset and the reduced write address offset, the target read address offset is determined. Based on the target read address offset, the read address offset recorded in the read channel management module of the target program is updated, and the target read address offset is used as the updated read address offset.

2. The optical fiber communication data interaction processing method according to claim 1, characterized in that, Before triggering the execution of the preset target program in the programmable array logic when writing fiber optic communication data into the memory buffer, the method further includes: querying whether the remaining space in the memory buffer meets the conditions for writing fiber optic communication data; if the remaining space in the memory buffer meets the conditions for writing fiber optic communication data, querying and obtaining the current write address offset from the write channel management module in the target program of the programmable array logic; writing the fiber optic communication data into the memory buffer according to the current write address offset; and, after writing is completed, pre-configuring the data packet length information of the fiber optic communication data into the write channel management module.

3. The optical fiber communication data interaction processing method according to claim 2, characterized in that, Before querying whether the remaining space in the memory cache meets the conditions for writing fiber optic communication data, the process also includes: The memory cache area is pre-divided into preset equal parts to obtain the target number of parts and the capacity of each part. The target number of copies corresponding to the memory cache and the capacity space of each copy are synchronized to the preset target program in the programmable array logic.

4. A fiber optic communication data interaction processing device, characterized in that, include: The first data write management unit is used to trigger the execution of a preset target program in the programmable array logic when writing optical fiber communication data into the memory buffer. The target program determines the first target number of write data packets in the memory buffer based on the length of the write data packets of the optical fiber communication data. Based on the first target number of packets and the capacity space of each packet, the program updates the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer. The program also uses the write channel management module to save the data packet length information. The data reading management unit is used to read data packets in the memory buffer based on the data packet length information and read address offset, using the data transfer module in the target program, and to determine the second target number of read data packets in the memory buffer based on the length of the read data packets of the optical fiber communication data. Based on the second target number of copies and the capacity space of each copy, the read address offset in the read channel management module of the target program is updated, and the capacity space corresponding to the data packets in the memory cache is released. The device is also used for: By running the target program in the programmable array logic, it is found that the remaining space of the memory buffer area meets the conditions for writing optical fiber communication data. If it is found that the remaining space of the memory buffer area meets the conditions for writing optical fiber communication data, the current write address offset is obtained from the write channel management module of the target program. Based on the current write address offset, the data transfer module of the target program is triggered to write the optical fiber communication data into the memory buffer through the target program in the programmable array logic, and the data packet length information of the optical fiber communication data is configured in the write channel management module and the read channel management module of the target program; Upon receiving an interrupt signal from the target program in the programmable array logic, the data packet length information and read address offset are obtained from the read channel management module of the target program. The fiber optic communication data is processed according to the read address offset and the data packet length information. After the data processing is completed, the read address offset in the read channel management module is updated, and the capacity space corresponding to the memory buffer is released. The step of determining the first target number of write data packets occupying the memory buffer based on the length of the write data packets of the optical fiber communication data, and updating the write address offset recorded in the write channel management module of the target program and the remaining space of the memory buffer based on the first target number of packets and the capacity space of each packet, specifically includes: Based on the length of the written data packet of the optical fiber communication data and the capacity space of each pre-divided portion, determine the first target number of portions of the memory buffer occupied by the current written data packet; Obtain the initial write address offset recorded in the write channel management module of the target program; Based on the first target number of copies and the capacity space of each copy, determine the increased write address offset; Based on the initial write address offset and the increased write address offset, the target write address offset is determined. Based on the target write address offset, the write address offset recorded in the write channel management module of the target program is updated, and the target write address offset is used as the updated write address offset. Based on the first target number of portions and the capacity space of each portion, determine the occupied capacity space; Obtain the initial capacity of the memory cache; determine the actual remaining space based on the initial capacity and the occupied capacity; and update the remaining space of the memory cache based on the actual remaining space. The step of updating the read address offset in the read channel management module of the target program based on the second target number of copies and the capacity space of each copy specifically includes: Obtain the initial read address offset recorded in the read channel management module of the target program; Based on the second target number of copies and the capacity space of each copy, determine the reduced read address offset; Based on the initial read address offset and the reduced write address offset, the target read address offset is determined. Based on the target read address offset, the read address offset recorded in the read channel management module of the target program is updated, and the target read address offset is used as the updated read address offset.

5. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the optical fiber communication data interaction processing method as described in any one of claims 1 to 3.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the optical fiber communication data interaction processing method as described in any one of claims 1 to 3.

7. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the optical fiber communication data interaction processing method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Data caching method and device

    CN106372008A

  • Optical fiber network communication system, method and device

    CN113259006A

  • Write request processing method, device, and data center

    WO2018094961A1