A method for processing the problem of abnormal packet loss and interruption of optical fiber

By creating a queue in the radar signal processing system for fiber data reception, and performing abnormal detection and data synchronization processing, the problem of packet loss and flow interruption in fiber data transmission is solved, ensuring the stable operation and processing results of the radar signal processing program accuracy.

CN115412164BActive Publication Date: 2025-02-07CNGC INST NO 206 OF CHINA ARMS IND GRP +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210881941.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-26
Publication Date
2025-02-07
Estimated Expiration
2042-07-26

AI Technical Summary

Technical Problem

In large two-dimensional phased array radar systems, optical fiber data is prone to packet loss and flow interruption abnormalities during transmission, resulting in abnormal exit of signal processing programs and inability to operate normally.

Method used

By creating multiple queues with depth M for receiving fiber data, perform abnormal detection before receiving data, label the fiber state, take out the fiber data in the non-current state, perform time alignment and data zeroing, ensure that each fiber data is in the same state. Time synchronization.

Benefits of technology

It effectively avoids program operation blockage or abnormal exit caused by individual optical fiber breakage, ensures the stable operation of radar signal processing programs, and ensures the accuracy of subsequent processing results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412164B_ABST
    Figure CN115412164B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for processing the problem of abnormal packet loss and interruption of optical fiber, which mainly solves the problem of abnormal exit of radar processing system due to optical fiber abnormality during the process of receiving optical fiber data. Its implementation includes the following steps: creating a queue for receiving optical fiber data, and initializing the number of queue members to 0; receiving optical fiber data in a cyclic parallel blocking manner; receiving control messages at the current moment; detecting optical fiber reception abnormality, marking the optical fiber state, and taking out optical fiber data in a non-interrupted state; aligning the time of optical fiber data and control messages; performing operations such as splicing or zero padding on multiple optical fiber data, releasing normal state queue members, and reducing the number of queue members by one; after accumulating a time slice, jumping to the data splicing processing of the next time slice. The present invention solves the phenomenon of abnormal exit of the signal processing program in scenarios such as abnormal optical fiber interruption or packet loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of radar technology, and in particular relates to abnormal optical fiber data collection processing, and specifically to a method for processing the problem of abnormal optical fiber packet loss and interruption. Background Art

[0002] For large two-dimensional phased array radars, the radar can complete multiple functional tasks through flexible beam scheduling, mainly including calibration, search, tracking, and listening. The signal processing chassis simultaneously receives multiple data from the DBF chassis through optical fiber, mainly including: receiving calibration data, transmitting calibration data, receiving directional pattern data, search / tracking data, and listening data. The physical channel, data length, number of packets, and transmission frequency of each type of data are different.

[0003] For conventional search mode or tracking mode, the signal processor needs to process multiple receiving beams simultaneously in one working cycle. Due to bandwidth limitations, the data composed of these multiple beams are split into multiple optical fibers for transmission. Due to the characteristics of the radar signal processing system, the data received by each beam in each pulse needs to be spliced ​​together, and subsequent MTD processing can only be performed after a certain amount of data is accumulated.

[0004] In the process of receiving optical fiber data, various abnormal situations are often encountered. If the abnormal handling is not considered, the program will not run normally. Common abnormal phenomena include: packet loss, packet error, interruption, etc.

[0005] Existing exception handling technologies mainly deal with one of the above-mentioned abnormal phenomena, such as determining whether there is an error packet by checking the key parameter position of the received data, or determining whether there is a packet loss by parameters such as the fiber data time slice count. However, there are currently few specific solutions for the flow interruption phenomenon or the simultaneous handling of multiple fiber abnormal phenomena. Summary of the invention

[0006] Technical issues to be solved

[0007] In order to solve the problem that the radar signal processing program abnormally exits when an abnormal situation of packet loss or interruption occurs in the optical fiber, the present invention provides a method for processing the problem of abnormal packet loss or interruption of the optical fiber.

[0008] Technical Solution

[0009] A method for processing the problem of abnormal packet loss and interruption of optical fiber flow, characterized by the following steps:

[0010] S1: Create N queues with a depth of M for receiving fiber data. The number of queue members is initialized to 0. The queues correspond to fibers one by one. N represents the number of fibers and M represents the depth of the receiving queue.

[0011] S2: Receive N fiber data in a cyclic parallel blocking manner. If the i-th fiber data is received, it is pushed into the i-th queue. At the same time, the number of members in the i-th queue is m. i Add 1, where i∈[1,N];

[0012] S3: Receive the control message at the current moment;

[0013] S4: Detect fiber data anomalies, mark fiber status, and retrieve fiber data in non-interrupted state;

[0014] S5: Time alignment of optical fiber data and control messages;

[0015] S6: Multiple optical fiber data are spliced ​​or filled with zeros, the normal optical fiber queue is released, and the number of queue members is reduced by one;

[0016] S7: After accumulating one time slice, jump to S3 to process the next time slice.

[0017] A further technical solution of the present invention is as follows: wherein S4 detects abnormal fiber data collection, marks the fiber status, and extracts fiber data in a non-interrupted state, and is performed in the following steps:

[0018] 4a) Initialize all fiber status fiber_status to 0, which is normal;

[0019] 4b) Use non-blocking mode to loop and read each normal state optical fiber data;

[0020] 4c) Determine whether the optical fiber data with fiber_status=0 can be read. If so, perform optical fiber anomaly detection.

[0021] End, extract the optical fiber data in the non-interrupted state, otherwise jump to step 4d);

[0022] 4d) Determine whether the remaining space free_node of the i-th queue is less than the threshold T. If so, jump to step 4e)

[0023] Otherwise, after a delay of t, jump to step 4b), where i∈[1,N];

[0024] 4e) If the status of the i-th fiber is disconnected, that is, fiber_status = -1, it means that the fiber marked as disconnected has returned to normal, and the i-th fiber is marked as normal, that is, fiber_status = 0, and the historical data in the fiber receiving queue is released; otherwise, it is determined whether the status of the j-th fiber is normal and no data is received. If so, the j-th fiber is marked as disconnected, that is, fiber_status = -1, where j∈[1,N].

[0025] A further technical solution of the present invention is as follows: wherein the time alignment of the S5 optical fiber data message and the control message is performed according to the following steps:

[0026] 5a) traverse the time slice calculation and prf count of the optical fiber data in the non-interrupted state to obtain the minimum time slice count time_min and prf_min;

[0027] 5b) Mark the status of the non-broken fiber as fiber_status=prf i -prf_min, where prf i Indicates the prf count of the i-th fiber, where i = [1, N]. If fiber_status>0, it means that the current fiber transmission has lost fiber_status prf packets, which is a packet loss state;

[0028] 5c) If the time slice count of the control message is greater than time_min, the fiber receiving queue in the normal state releases a member, the number of fiber queue members decreases by 1, and jumps to S4 to reacquire fiber data;

[0029] 5d) If the time slice count of the control message is less than time_min, re-acquire the control message until the two are equal.

[0030] A further technical solution of the present invention is as follows: wherein S6 performs operations such as splicing or zero padding on multi-channel optical fiber data and releases the related optical fiber queues, and the operations are performed as follows:

[0031] 6a) According to the control message, determine the fiber distribution where the current pulse group data is located. If the fiber status is not normal, that is, fiber_status≠0, use all zero data as the received data and reorganize the multi-channel fiber data for subsequent MTD processing;

[0032] 6b) The normal optical fiber receiving queue is released, the number of optical fiber queue members is reduced by 1, and the abnormal optical fiber receiving queue is not processed.

[0033] A computer system, characterized in that it comprises: one or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned method.

[0034] A computer-readable storage medium, characterized in that it stores computer-executable instructions, which are used to implement the above method when executed.

[0035] Beneficial Effects

[0036] Since the method of the present invention has obtained the status information of the optical fiber before the optical fiber data is spliced, for the optical fiber in the interrupted state, data is not obtained from its corresponding receiving queue, thereby avoiding the blocking or abnormal exit of the entire radar signal processing program due to the interruption of individual optical fibers; for the optical fiber in the packet loss state, its received data is time-aligned and the data is padded with zeros, so that the data of each optical fiber is synchronized in time, thereby ensuring the accuracy of the subsequent radar signal processing program operation results.

[0037] The present invention provides a method for processing the problem of abnormal optical fiber packet loss and interruption of flow, which solves the phenomenon that the signal processing program exits abnormally when the optical fiber is abnormally disconnected or packet is lost. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.

[0039] Figure 1 The present invention is implemented as a flow chart.

[0040] Figure 2 The figure is the optical fiber anomaly detection flow chart.

[0041] Figure 3 This is the flow chart of message time alignment and data splicing.

[0042] Figure 4 This is a diagram showing the actual application result of the method of the present invention on radar. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0044] The present invention provides a method for processing the problem of abnormal packet loss and interruption of optical fiber. The method first reads optical fiber data into a receiving queue in a blocking manner, then determines the remaining space of the receiving queue to determine whether the optical fiber state is normal or interrupted, then determines whether the optical fiber state is multiple packets or packet loss according to the time slice count of the optical fiber data and the control message, and finally performs different processing on the optical fiber data in different states to ensure the stable operation of the radar system, including the following steps: 1) a signal processing chassis creates N queues with a depth of M for receiving optical fiber data, the number of queue members is initialized to 0, and the queues correspond to the optical fibers one by one, wherein N represents the number of optical fibers, and M represents the depth of the receiving queue; 2) the signal processing chassis receives N optical fiber data in a cyclic parallel blocking manner, and if the i-th optical fiber data is received, it is pushed into the i-th queue, and the number of members of the i-th queue is m. i Add 1, where i∈[1,N]; 3) The signal processing chassis receives the control message at the current moment; 4) Detect fiber data anomalies, mark the fiber status, and extract fiber data in a non-interrupted state; 5) Time alignment of fiber data messages and control messages; 6) Multi-channel fiber data is spliced ​​or zero-filled, the normal fiber queue is released, and the number of queue members is reduced by one; 7) After accumulating a time slice, jump to step 3) to process the next time slice.

[0045] Reference Figure 1 The specific implementation steps of this embodiment are as follows:

[0046] In step S101, the signal processing chassis creates N queues with a depth of M for receiving optical fiber data, the number of queue members is initialized to 0, and the queues correspond to optical fibers one by one, where N represents the number of optical fibers and M represents the depth of the receiving queue;

[0047] In step S102, the signal processing chassis creates N threads, and receives N optical fiber data in parallel in a blocking loop. If the i-th optical fiber data is received, it is pushed into the i-th queue.

[0048] In step S103, the signal processing chassis receives a control message from the central machine or the terminal;

[0049] In step S104, the optical fiber data collection is abnormally detected, and the optical fiber data in normal state is obtained;

[0050] Reference Figure 2 , in this embodiment, the optical fiber data collection abnormality detection is performed to obtain the normal optical fiber data, and the specific implementation steps are as follows:

[0051] 4a) Initialize all fiber status fiber_status to 0, which is normal;

[0052] 4b) Using a non-blocking method, cyclically read each normal state optical fiber data queue to obtain optical fiber data;

[0053] 4c) Determine whether all optical fiber data with fiber_status=0 can be read. If so, the optical fiber data collection abnormality detection ends and jumps to step S105; otherwise, jumps to step 4d);

[0054] 4d) Determine whether the remaining space free_node of the i-th queue is less than the threshold T. If so, jump to step 4e). Otherwise, after a delay of t, jump to step 4b), where i∈[1,N];

[0055] 4e) If the status of the i-th fiber is disconnected, that is, fiber_status=-1, it means that the fiber marked as disconnected has returned to normal, and the i-th fiber is marked as normal, that is, fiber_status=0, and the historical data in the fiber receiving queue is released at the same time; otherwise, it is determined whether the j-th fiber status is normal and no data is received. If so, the j-th fiber is marked as disconnected, that is, fiber_status=-1, where j∈[1,N];

[0056] In step S105, the optical fiber data and control message are time-aligned;

[0057] Reference Figure 3 , fiber data and control message time alignment, the specific implementation steps are as follows:

[0058] 5a) traverse the time slice calculation and prf count of the optical fiber data in the non-interrupted state to obtain the minimum time slice count time_min and prf_min;

[0059] 5b) Mark the status of the non-broken fiber as fiber_status=prf i -prf_min, where prf i Indicates the prf count of the i-th fiber, where i∈[1,N]. If fiber_status>0, it means that the current fiber transmission has lost fiber_status prf packets, which is a packet loss state;

[0060] 5c) If the time slice count of the control message is greater than time_min, the normal state optical fiber receiving queue releases a member and jumps to step S104 to reacquire optical fiber data;

[0061] 5d) If the time slice count of the control message is less than time_min, re-acquire the control message until the two are equal;

[0062] In step S106, a plurality of optical fiber data are concatenated and zeros are added to abnormal optical fiber data;

[0063] 6a) According to the control message, determine the fiber distribution where the current pulse group data is located. If the fiber status is not normal, that is, fiber_status≠0, use all zero data as the received data, and reorganize the fiber data;

[0064] 6b) Release the normal optical fiber receiving queue, and do not process the abnormal optical fiber receiving queue;

[0065] In step S107, after accumulating one time slice, jump to step S103 to process the next time slice;

[0066] Figure 4 This is the actual operating effect of the present invention in a certain radar. It can be seen that the method of the present invention can align the data of each optical fiber, splice the data according to the control message, and perform subsequent radar signal processing after the splicing is completed.

[0067] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should be included in the protection scope of the present invention.

Claims

1. A method for processing the problem of abnormal packet loss and interruption of optical fiber, characterized in that Here are the steps: S1: Create N queues with a depth of M for receiving fiber data. The number of queue members is initialized to 0. The queues correspond to fibers one by one. N represents the number of fibers and M represents the depth of the receiving queue. S2: Receive N fiber data in a cyclic parallel blocking manner. If the i-th fiber data is received, it is pushed into the i-th queue. At the same time, the number of members in the i-th queue is m. i Add 1, where i∈[1,N]; S3: Receive the control message at the current moment; S4: Detect fiber data anomaly, mark fiber status, and retrieve fiber data in non-interrupted state; including: 4a) Initialize all fiber status fiber_status to 0, which is normal; 4b) Use non-blocking mode to loop and read each normal state optical fiber data; 4c) Determine whether all the optical fiber data with fiber_status=0 can be read. If so, the optical fiber abnormality detection ends and the optical fiber data in the non-interrupted state is retrieved. Otherwise, jump to step 4d); 4d) Determine whether the remaining space free_node of the i-th queue is less than the threshold T. If so, jump to step 4e). Otherwise, after a delay of t, jump to step 4b), where i∈[1,N]; 4e) If the status of the i-th fiber is disconnected, that is, fiber_status=-1, it means that the fiber marked as disconnected has returned to normal, and the i-th fiber is marked as normal, that is, fiber_status=0, and the historical data in the fiber receiving queue is released at the same time; otherwise, it is determined whether the j-th fiber status is normal and no data is received. If so, the j-th fiber is marked as disconnected, that is, fiber_status=-1, where j∈[1,N]; S5: Time alignment of optical fiber data and control messages; including: 5a) traverse the time slice calculation and prf count of the optical fiber data in the non-interrupted state to obtain the minimum time slice count time_min and prf_min; 5b) Mark the status of the non-broken fiber as fiber_status=prf i -prf_min, where prf i Indicates the prf count of the i-th fiber, where i = [1, N]. If fiber_status>0, it means that the current fiber transmission has lost fiber_status prf packets, which is a packet loss state; 5c) If the time slice count of the control message is greater than time_min, the fiber receiving queue in the normal state releases a member, the number of fiber queue members decreases by 1, and jumps to S4 to reacquire fiber data; 5d) If the time slice count of the control message is less than time_min, re-acquire the control message until the two are equal; S6: Multiple optical fiber data are spliced ​​or filled with zeros, the normal optical fiber queue is released, and the number of queue members is reduced by one; S7: After accumulating one time slice, jump to S3 to process the next time slice.

2. According to claim 1, a method for processing the problem of abnormal packet loss and interruption of optical fiber flow, characterized in that: Among them, S6 multi-channel optical fiber data is spliced ​​or zero-filled, and the related optical fiber queue is released, and the steps are as follows: 6a) According to the control message, determine the fiber distribution where the current pulse group data is located. If the fiber status is not normal, that is, fiber_status≠0, use all zero data as the received data and reorganize the multi-channel fiber data for subsequent MTD processing; 6b) The normal optical fiber receiving queue is released, the number of optical fiber queue members is reduced by 1, and the abnormal optical fiber receiving queue is not processed.

3. A computer system, characterized in that include: One or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method of claim 1.

4. A computer-readable storage medium, characterized in that Computer executable instructions are stored, and when the instructions are executed, they are used to implement the method of claim 1.

Citation Information

Patent Citations

  • Method and device for message transmission

    CN101521635A

  • Task type perceived flow queue self-adaptive management method in a virtualization environment

    CN109905329A