An intelligent detection method for flow control strategy in high-speed airborne networks
By designing intelligent detection methods and using the flow control test state machine for automated testing, the problem of incorrect execution of buffer-to-buffer flow control strategies in high-speed airborne networks is solved, ensuring the reliability and stability of data transmission.
Patent Information
- Application Number
- CN202211384345.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-11-07
AI Technical Summary
When the buffer-to-buffer flow control strategy of high-speed airborne network is incorrectly implemented, it leads to abnormal data communication and reduced transmission reliability.
Design an intelligent detection method to perform automated testing operations through an independent flow control test state machine, including initial state testing, enable testing, credit value management, R_RDY primitive control of receiving normal frames and error frames, and tests for sending and receiving credit value without credit value to ensure the correctness of the flow control strategy.
The core functional test of high-speed airborne network ports is realized, and the correctness of the execution of the buffer-to-buffer flow control strategy is automatically detected, which improves the reliability and stability of data transmission and is easy to implement with hardware logic.
Smart Images

Figure CN115811477B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer communications, and in particular to an intelligent detection method for flow control strategies of a high-speed airborne network. Background Art
[0002] High-speed airborne network is a new type of backbone network with the characteristics of high speed, high reliability, strong scalability and long-distance transmission. It is suitable for building large-scale distributed systems and is widely used in the avionics systems of the new generation of aircraft.
[0003] To ensure the reliable transmission of large amounts of critical data, the high-speed airborne network system utilizes a buffer-to-buffer flow control method based on BB_Credit_CNT (buffer-to-buffer credit value) based on three service types. If the high-speed airborne network port incorrectly implements this flow control strategy, data communication anomalies and reduced transmission reliability can occur.
[0004] Therefore, it is necessary to provide an intelligent detection method for the flow control strategy of the high-speed airborne network to ensure the correctness of the implementation and execution of the buffer-to-buffer flow control strategy of the high-speed airborne network. Summary of the Invention
[0005] In order to ensure the correctness of the implementation and execution of the buffer-to-buffer flow control strategy of the high-speed airborne network and avoid problems such as data communication anomalies and reduced transmission reliability, the present invention designs an intelligent detection method for the flow control strategy of the high-speed airborne network.
[0006] The technical solution for achieving the purpose of the invention is as follows: a method for intelligently detecting the flow control strategy of a high-speed airborne network, the method comprising designing an independent flow control test state machine, and automatically testing the execution of the flow control strategy of the high-speed airborne network port based on automated test operations.
[0007] The test method uses the test port T_Port of the test equipment and the N / F_Port port of the device under test to carry out the interaction and control of control information, high-speed airborne network data frames, and primitives, and performs automated test operations according to the definition of the flow control test state machine. The automated test operations include initial state test, enable test, and enable detection selection operation; execution of four state tests: credit value management, normal frame reception R_RDY primitive control, error frame reception R_RDY primitive control, and no credit value data transmission and reception, as well as sub-state tests under each state.
[0008] In one embodiment, the initial state test is to detect the state of the flow control test state machine when the test device is initially powered on or reset. The detection method includes:
[0009] The test port T_Port and N / F_Port operate synchronously;
[0010] If the flow control test state machine reaches the Active state, the flow control test state machine enters the test enable state;
[0011] Otherwise, the flow control test state machine remains in the initial state until it reaches the Active state, at which time the enable test is performed.
[0012] In one embodiment, the method for enabling the test is as follows: resetting the test port T_Port and the N / F_Port, and after the reset is completed, causing the state machine to enter the enable detection selection operation;
[0013] The reset method is: reset the test port T_Port and the N / F_Port of the device under test, make them reach the Active state, and restore the buffer credit value BB_Credit_CNT to the maximum value.
[0014] In one embodiment, the method for enabling the detection selection operation is: determining whether to perform tests on four states: credit value management, receiving normal frame R_RDY primitive control, receiving error frame R_RDY primitive control, and sending and receiving data without credit value;
[0015] If there is a state that has not been tested, all sub-states of the state are tested and the test results of each sub-state are output. The test result of the state is output based on the test results of all sub-states;
[0016] If all four states have been tested, the enable test results are output.
[0017] In an improved embodiment, the credit value management includes five sub-states, namely, 3-type data frame sending, 3-type data frame receiving, extended link service data frame sending, R_RDY sending, and R_RDY receiving.
[0018] In an improved embodiment, the control of receiving a normal frame R_RDY primitive includes three sub-states: SOFi3 / EOFn data frame sending, SOFn3 / EOFn data frame sending, and SOFn3 / EOFt data frame sending.
[0019] In an improved embodiment, the receive error frame R_RDY primitive control includes six sub-states: CRC error frame, overlong frame, undershort frame, format error frame, invalid MsgID frame, and 8 / 10B coding error frame.
[0020] In an improved embodiment, the data transmission and reception without credit value includes four sub-states: independent frame reception without credit value, continuous frame reception without credit value, independent frame transmission without credit value, and continuous frame transmission without credit value.
[0021] Compared with the prior art, the beneficial effects of the present invention are: the present invention designs an intelligent detection method for the flow control strategy of the high-speed airborne network, which can test the core functions of the high-speed airborne network port, can automatically detect the correctness of the execution of the high-speed airborne network buffer-to-buffer flow control strategy, and the state machine control is clear and easy to implement in hardware logic. It can also be applied to various types of high-speed airborne network port standard test equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are merely for the purpose of more clearly illustrating the embodiments of the present invention or the technical solutions in the prior art. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.
[0023] Figure 1 The figure is a schematic diagram of the logic jumps of each state and sub-states in each state during intelligent detection of the flow control strategy of the high-speed airborne network in a specific implementation manner. DETAILED DESCRIPTION
[0024] The present invention will be further described below with reference to specific embodiments, and the advantages and features of the present invention will become clearer as the description proceeds. However, these embodiments are merely exemplary and do not constitute any limitation to the scope of the present invention. It should be understood by those skilled in the art that the details and forms of the technical solutions of the present invention may be modified or replaced without departing from the spirit and scope of the present invention, and such modifications and replacements fall within the scope of protection of the present invention.
[0025] In the description of this embodiment, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the invention.
[0026] Furthermore, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature identified with "first," "second," etc., may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0027] This specific embodiment discloses an intelligent detection method for the flow control strategy of a high-speed airborne network. The intelligent detection method for the flow control strategy includes designing an independent flow control test state machine to automatically test the flow control strategy execution status of the high-speed airborne network port based on automated test operations.
[0028] The test method uses the test port T_Port of the test equipment and the N / F_Port port of the device under test to carry out the interaction and control of control information, high-speed airborne network data frames, and primitives, and performs automated test operations according to the definition of the flow control test state machine. The automated test operations include initial state test, enable test, and enable detection selection operation; execution of four state tests: credit value management, normal frame reception R_RDY primitive control, error frame reception R_RDY primitive control, and no credit value data transmission and reception, as well as sub-state tests under each state.
[0029] In one embodiment, the initial state test is to detect the state of the state machine when the test device is initially powered on or reset. The detection method includes:
[0030] The test port T_Port and N / F_Port operate synchronously;
[0031] If the flow control test state machine reaches the Active state, the flow control test state machine enters the test enable state;
[0032] Otherwise, the flow control test state machine remains in the initial state until it reaches the Active state, at which time the enable test is performed.
[0033] In one embodiment, the method for enabling the test is as follows: resetting the test port T_Port and the N / F_Port, and after the reset is completed, causing the state machine to enter the enable detection selection operation;
[0034] The reset method is: reset the test port T_Port and the N / F_Port of the device under test, make them reach the Active state, and restore the buffer credit value BB_Credit_CNT to the maximum value.
[0035] In one embodiment, the method for enabling the detection selection operation is: determining whether to perform tests on four states: credit value management, receiving normal frame R_RDY primitive control, receiving error frame R_RDY primitive control, and sending and receiving data without credit value;
[0036] If there is a state that has not been tested, all sub-states of the state are tested and the test results of each sub-state are output. The test result of the state is output based on the test results of all sub-states;
[0037] If all four states have been tested, the enable test results are output.
[0038] In an improved embodiment, the credit value management includes five sub-states, namely, 3-type data frame sending, 3-type data frame receiving, extended link service data frame sending, R_RDY sending, and R_RDY receiving.
[0039] In an improved embodiment, the control of receiving a normal frame R_RDY primitive includes three sub-states: SOFi3 / EOFn data frame sending, SOFn3 / EOFn data frame sending, and SOFn3 / EOFt data frame sending.
[0040] In an improved embodiment, the receive error frame R_RDY primitive control includes six sub-states: CRC error frame, overlong frame, undershort frame, format error frame, invalid MsgID frame, and 8 / 10B coding error frame.
[0041] In an improved embodiment, the data transmission and reception without credit value includes four sub-states: independent frame reception without credit value, continuous frame reception without credit value, independent frame transmission without credit value, and continuous frame transmission without credit value.
[0042] The following is a specific example to illustrate the intelligent detection method of the flow control strategy of the high-speed airborne network. The state machine of the buffer-to-buffer flow control test has a logical jump method of each state and sub-state under each state when intelligently detecting the flow control strategy. Figure 1 The specific steps are as follows:
[0043] State 0 : This state is the initial state of the state machine and is entered upon initial power-up or reset. In this state, the test port T_Port and the N / F_Port operate synchronously. If the Active state is reached, the state machine enters State 1; otherwise, it remains in State 0.
[0044] State 1: This state is the test enable state. In this state, the test port T_Port and N / F_Port are reset and reach the Active state, the buffered credit value BB_Credit_CNT is restored to the maximum value, and the state machine enters state 2.
[0045] State 2:This state is the test selection state. In this state, the corresponding detection completion flags for the credit management, normal frame reception R_RDY primitive control, error frame reception R_RDY primitive control, and no-credit data transmission and reception test states are determined, and tests in each of the four states are performed in sequence. If the credit management test is not performed, the state machine enters state 3; if the normal frame reception R_RDY primitive control test is not performed, the state machine enters state 9; if the error frame reception R_RDY primitive control test is not performed, the state machine enters state 13; if the no-credit data transmission and reception test is not performed, the state machine enters state 20; if all four state tests are completed, the state machine enters state 25.
[0046] State 3: This state is the credit management test state. In this state, the corresponding test completion flags for the three types of data frame transmission tests, three types of data frame reception tests, extended link service data frame transmission tests, R_RDY transmission tests, and R_RDY reception tests are determined, and tests in each of the five states are performed in sequence. If the three types of data frame transmission tests are not performed, the state machine enters state 4; if the three types of data frame reception tests are not performed, the state machine enters state 5; if the extended link service data frame transmission tests are not performed, the state machine enters state 6; if the R_RDY transmission tests are not performed, the state machine enters state 7; if the R_RDY reception tests are not performed, the state machine enters state 8; if the three types of data frame transmission tests, extended link service data frame transmission tests, and R_RDY reception tests are all completed, the state machine returns to state 1, and the credit management test completion flag is set to valid.
[0047] State 4: This state is the Class 3 data frame transmission test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, if the BB_Credit_CNT value of the high-speed airborne network port is detected to decrease by 1 each time the N / F_Port of the device under test transmits a Class 3 data frame, the state machine returns to State 3, reports that the Class 3 data frame transmission test is normal, and sets the Class 3 data frame transmission test completion flag to valid. Otherwise, the state machine returns to State 1, reports that the Class 3 data frame transmission test is abnormal, and sets the Class 3 data frame transmission test completion flag to valid.
[0048] State 5: This state is the Class 3 data frame reception test state. In this state, if the N / F_Port of the device under test receives a Class 3 data frame and detects that the BB_Credit_CNT value of the high-speed airborne network port does not change, the state machine returns to State 3, reports that the Class 3 data frame reception test is normal, and sets the Class 3 data frame reception test completion flag to valid. Otherwise, the state machine returns to State 1, reports that the Class 3 data frame reception test is abnormal, and sets the Class 3 data frame reception test completion flag to valid.
[0049] State 6: This state is the Extended Link Service Data Frame Transmission Test state. In this state, when the buffer-to-buffer credit value (BB_Credit_CNT) of the device under test is not 0, and if the BB_Credit_CNT value of the high-speed airborne network port is detected to decrease by 1 each time the N / F_Port of the device under test transmits an Extended Link Service Data Frame, the state machine returns to State 3, reporting that the Extended Link Service Data Frame Transmission Test is normal and setting the Extended Link Service Data Frame Transmission Test Complete Flag to active. Otherwise, the state machine returns to State 1, reporting that the Extended Link Service Data Frame Transmission Test is abnormal, and setting the Extended Link Service Data Frame Transmission Test Complete Flag to active.
[0050] State 7: This state is the R_RDY send test state. In this state, if the BB_Credit_CNT value of the high-speed airborne network port does not change when the N / F_Port of the device under test sends the R_RDY primitive, the state machine returns to state 3, reports that the R_RDY send test is normal, and sets the R_RDY send test completion flag to valid. Otherwise, the state machine returns to state 1, reports that the R_RDY send test is abnormal, and sets the R_RDY send test completion flag to valid.
[0051] State 8: This state is the R_RDY receive test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not at its maximum value, and if the BB_Credit_CNT value of the N / F_Port of the device under test increases by 1 each time the T_Port of the test device sends an R_RDY primitive, the state machine returns to state 3, reports that the R_RDY receive test is normal, and sets the R_RDY receive test complete flag to valid. Otherwise, the state machine returns to state 1, reports that the R_RDY receive test is abnormal, and sets the R_RDY receive test complete flag to valid.
[0052] Status 9:This state is the state for the R_RDY primitive control test for receiving normal frames. In this state, the test completion flags corresponding to the SOFi3 / EOFn data frame transmission test, the SOFn3 / EOFn data frame transmission test, and the SOFn3 / EOFt data frame transmission test are determined, and the tests in each of the three states are performed in sequence. If the SOFi3 / EOFn data frame transmission test is not performed, the state machine enters state 10; if the SOFn3 / EOFn data frame transmission test is not performed, the state machine enters state 11; if the SOFn3 / EOFt data frame transmission test is not performed, the state machine enters state 12; if the SOFi3 / EOFn data frame transmission test, the SOFn3 / EOFn data frame transmission test, and the SOFn3 / EOFt data frame transmission test are all completed, the state machine returns to state 1 and sets the R_RDY primitive control test completion flag for receiving normal frames to valid.
[0053] State 10: This state is the SOFi3 / EOFn data frame transmission test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends a SOFi3 / EOFn data frame to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 9, reporting that the SOFi3 / EOFn data frame transmission test is normal and setting the SOFi3 / EOFn data frame transmission test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the SOFi3 / EOFn data frame transmission test is abnormal, and setting the SOFi3 / EOFn data frame transmission test completion flag to valid.
[0054] State 11: This state is the SOFn3 / EOFn data frame transmission test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends a SOFn3 / EOFn data frame to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 9, reporting that the SOFn3 / EOFn data frame transmission test is normal and setting the SOFn3 / EOFn data frame transmission test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the SOFn3 / EOFn data frame transmission test is abnormal, and setting the SOFn3 / EOFn data frame transmission test completion flag to valid.
[0055] State 12:This state is the SOFn3 / EOFt data frame transmission test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends a SOFn3 / EOFt data frame to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 9, reporting that the SOFn3 / EOFt data frame transmission test is normal and setting the SOFn3 / EOFt data frame transmission test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the SOFn3 / EOFt data frame transmission test is abnormal, and setting the SOFn3 / EOFt data frame transmission test completion flag to valid.
[0056] State 13: This state is the receive error frame R_RDY primitive control test state. In this state, the CRC error frame test, overlong frame test, underrun frame test, format error frame test, invalid MsgID frame test, and 8 / 10B encoding error frame test completion flags are determined, and the six tests are performed in sequence. If the CRC error frame test is not performed, the state machine enters state 14; if the overlong frame test is not performed, the state machine enters state 15; if the underrun frame test is not performed, the state machine enters state 16; if the format error frame test is not performed, the state machine enters state 17; if the invalid MsgID frame test is not performed, the state machine enters state 18; if the 8 / 10B encoding error frame test is not performed, the state machine enters state 19; if the CRC error frame test, overlong frame test, underrun frame test, format error frame test, invalid MsgID frame test, and 8 / 10B encoding error frame test are all completed, the state machine returns to state 1 and sets the receive error frame R_RDY primitive control test completion flag to valid.
[0057] State 14: This state is the CRC error frame test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends a SOFi3-type CRC error data frame to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 13, reporting that the CRC error frame test is normal and setting the CRC error frame test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the CRC error frame test is abnormal, and setting the CRC error frame test completion flag to valid.
[0058] State 15:This state is the oversize frame test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends a SOFi3-type oversize frame (data frame length > 2148 bytes) to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 13, reporting that the oversize frame test is normal and setting the oversize frame test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the oversize frame test is abnormal, and setting the oversize frame test completion flag to valid.
[0059] State 16: This state is the undersized frame test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends a SOFi3-type undersized frame (data frame length < 52 bytes) to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 13, reporting that the oversized frame test is normal and setting the oversized frame test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the oversized frame test is abnormal, and setting the oversized frame test completion flag to valid.
[0060] State 17: This state is the format error frame test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends an error frame (including an SOF usage error, EOF usage error, or frame format error) to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 13, reporting that the error frame test is normal and setting the error frame test complete flag to valid. Otherwise, the state machine returns to state 1, reporting that the error frame test is abnormal, and setting the error frame test complete flag to valid.
[0061] State 18: This state is the invalid MsgID frame test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends a SOFi3-type invalid MsgID frame (the data frame's MsgID is not in the MsgID list defined in the current high-speed airborne network port profile) to the device under test's N / F_Port. If the device under test's N / F_Port sends an R_RDY primitive, the state machine returns to state 13, reporting that the invalid MsgID frame test is normal and setting the invalid MsgID frame test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the invalid MsgID frame test is abnormal, and setting the invalid MsgID frame test completion flag to valid.
[0062] Status 19: This state is the 8 / 10B encoding error frame test state. In this state, when the buffer-to-buffer credit value BB_Credit_CNT of the device under test is not 0, the test device's T_Port sends an 8 / 10B encoding error frame to the device's N / F_Port. If the device's N / F_Port sends an R_RDY primitive, the state machine returns to state 13, reporting that the 8 / 10B encoding error frame test is normal and setting the 8 / 10B encoding error frame test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the 8 / 10B encoding error frame test is abnormal, and setting the 8 / 10B encoding error frame test completion flag to valid.
[0063] State 20: This state is the no-credit data transmission and reception test state. In this state, the corresponding test completion flags for the independent frame no-credit reception test, the continuous frame no-credit reception test, the independent frame no-credit transmission test, and the continuous frame no-credit transmission test are determined, and the tests in each of the four states are performed in sequence. If the independent frame no-credit reception test is not performed, the state machine enters state 21; if the continuous frame no-credit reception test is not performed, the state machine enters state 22; if the independent frame no-credit transmission test is not performed, the state machine enters state 23; if the continuous frame no-credit transmission test is not performed, the state machine enters state 24; if the independent frame no-credit reception test, the continuous frame no-credit reception test, the independent frame no-credit transmission test, and the continuous frame no-credit transmission test are all completed, the state machine returns to state 1 and sets the no-credit data transmission and reception test completion flag to valid.
[0064] State 21: This state is the independent frame no-credit reception test state. In this state, the buffer-to-buffer credit value BB_Credit_CNT of the device under test is set to 4, triggering the device's N / F_Port to send four independent SOFi3 data frames to the test device's T_Port in a single-sequence, single-frame manner. After receiving the four independent SOFi3 data frames, the T_Port does not return R_RDY. The T_Port is controlled to send SOFi3 data frames to the device's N / F_Port. If the device's N / F_Port discards the frame, the state machine returns to state 20, reporting that the independent frame no-credit reception test is normal and setting the independent frame no-credit reception test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the independent frame no-credit reception test is abnormal and setting the independent frame no-credit reception test completion flag to valid.
[0065] State 22This state is the continuous frame no-credit reception test state. In this state, the buffer-to-buffer credit value (BB_Credit_CNT) of the device under test is set to 4, triggering the device's N / F_Port to send four consecutive Class 3 data frames to the test device's T_Port in single-sequence, multi-frame mode. (The four data frames have the same Seq_ID, consecutive Seq_CNTs, and the first frame is a SOFi3 / EOFn frame, and the last frame is a SOFn3 / EOFt frame.) After receiving four consecutive Class 3 data frames, the T_Port does not return R_RDY. The T_Port is controlled to send SOFi3 data frames to the device's N / F_Port. If the device's N / F_Port discards the frame, the state machine returns to state 20, reporting that the continuous frame no-credit reception test is normal and setting the continuous frame no-credit reception test completion flag to active. Otherwise, the state machine returns to state 1, reporting that the continuous frame no-credit reception test is abnormal and setting the continuous frame no-credit reception test completion flag to active.
[0066] Status 23: This state is the independent frame no-credit transmission test state. In this state, the buffer-to-buffer credit value BB_Credit_CNT of the device under test is set to 4, triggering the device's N / F_Port to send four independent SOFi3 data frames to the test device's T_Port in a single-sequence, single-frame manner. After receiving the four independent SOFi3 data frames, the T_Port does not return R_RDY, controlling the device's N / F_Port to send SOFi3 data frames. If the device's N / F_Port reports that the data frame cannot be sent, the state machine returns to state 20, reporting that the independent frame no-credit transmission test is normal and setting the independent frame no-credit transmission test completion flag to valid. Otherwise, the state machine returns to state 1, reporting that the independent frame no-credit transmission test is abnormal and setting the independent frame no-credit transmission test completion flag to valid.
[0067] Status 24:This state is the continuous frame transmission without credit test state. In this state, the buffer-to-buffer credit value (BB_Credit_CNT) of the device under test is set to 4, triggering the device's N / F_Port to send four consecutive Class 3 data frames to the test device's T_Port in single-sequence, multi-frame mode. (The four data frames have the same Seq_ID, consecutive Seq_CNT, and the first frame is a SOFi3 / EOFn frame, and the last frame is a SOFn3 / EOFt frame.) After receiving four consecutive Class 3 data frames, the T_Port does not return R_RDY, and controls the device's N / F_Port to send SOFi3 data frames. If the device's N / F_Port reports that the data frame cannot be sent, the state machine returns to state 20, indicating that the continuous frame transmission without credit test is normal and setting the continuous frame transmission without credit test completion flag to valid. Otherwise, the state machine returns to state 1, indicating that the continuous frame transmission without credit test is abnormal and setting the continuous frame transmission without credit test completion flag to valid.
[0068] Status 25: This state is the test completion state. In this state, the test completion flags for credit management, normal frame reception R_RDY primitive control, error frame reception R_RDY primitive control, and no-credit data transmission and reception are determined, along with the completion flags of the relevant sub-test items in the above states, and the relevant test results are output. If a test start signal is received, the relevant test completion flags are set to invalid, and the state machine returns to state 1; otherwise, the state machine remains in state 25.
[0069] The present invention designs an intelligent detection method for the flow control strategy of a high-speed airborne network. The method can test the core functions of a high-speed airborne network port and automatically detect the correctness of the execution of the high-speed airborne network buffer-to-buffer flow control strategy. The state machine control is clear and easy to implement in hardware logic. The method can also be applied to various types of high-speed airborne network port standard test equipment.
[0070] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0071] In addition, it should be understood that although this specification is described in terms of implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
Claims
1. A method for intelligently detecting flow control strategies in a high-speed airborne network, characterized by: The intelligent detection method of flow control strategy includes designing an independent flow control test state machine to automatically test the flow control strategy execution of high-speed airborne network ports based on automated test operations; The test method uses the test port T_Port of the test equipment and the N / F_Port port of the device under test to carry out the interaction and control of control information, high-speed airborne network data frames, and primitives, and performs automated test operations according to the definition of the flow control test state machine. The automated test operations include initial state test, enable test, and enable detection selection operation; execution of four state tests: credit value management, normal frame reception R_RDY primitive control, error frame reception R_RDY primitive control, and no credit value data transmission and reception, as well as sub-state tests under each state.
2. The intelligent detection method for high-speed airborne network traffic control strategy according to claim 1, characterized in that: The initial state test is to test the state of the flow control test state machine when the test equipment is initially powered on or reset. The detection method includes: The test port T_Port and N / F_Port operate synchronously; If the flow control test state machine reaches the Active state, the flow control test state machine enters the test enable state; Otherwise, the flow control test state machine remains in the initial state until it reaches the Active state, at which time the enable test is performed.
3. The intelligent detection method for high-speed airborne network traffic control strategy according to claim 1, characterized in that: Method for enabling the test: Reset the test port T_Port and N / F_Port. After the reset is completed, the flow control test state machine enters the enable detection selection operation; The reset method is: reset the test port T_Port and the N / F_Port of the device under test, make them reach the Active state, and restore the buffer credit value BB_Credit_CNT to the maximum value.
4. The intelligent detection method for high-speed airborne network traffic control strategy according to claim 1, characterized in that: The method of enabling detection selection operation is to determine whether to test the four states of credit value management, receiving normal frame R_RDY primitive control, receiving error frame R_RDY primitive control, and sending and receiving data without credit value; If there is a state that has not been tested, all sub-states of the state are tested and the test results of each sub-state are output. The test result of the state is output based on the test results of all sub-states; If all four states have been tested, the enable test results are output.
5. The intelligent detection method for high-speed airborne network traffic control strategy according to claim 4, characterized in that: Credit value management includes five sub-states: 3 types of data frame sending, 3 types of data frame receiving, extended link service data frame sending, R_RDY sending, and R_RDY receiving.
6. The intelligent detection method for high-speed airborne network traffic control strategy according to claim 4, characterized in that: The R_RDY primitive control for receiving normal frames includes three sub-states: SOFi 3 / EOFn data frame sending, SOFn3 / EOFn data frame sending, and SOFn3 / EOFt data frame sending.
7. The intelligent detection method for high-speed airborne network traffic control strategy according to claim 4, characterized in that: The receive error frame R_RDY primitive control includes six sub-states: CRC error frame, overlong frame, undershort frame, format error frame, invalid MsgID frame, and 8 / 10B encoding error frame.
8. The intelligent detection method for high-speed airborne network traffic control strategy according to claim 4, characterized in that: The data transmission and reception without credit value includes four sub-states: independent frame receiving without credit value, continuous frame receiving without credit value, independent frame sending without credit value, and continuous frame sending without credit value.
Citation Information
Patent Citations
FC switch chip communication credit management testing method
CN105553865A
Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN106612141A