A control method and system for virtual-real combined test in avionics system

By using protocol-aware routing and feedback closed-loop mechanisms, the problems of high resource consumption and testing uncertainty in the virtual-physical integration testing of avionics systems are solved, thereby improving cost-effectiveness and testing reliability.

CN122718151BActive Publication Date: 2026-11-27SHANGHAI CIVIL AVIONICS SYSTEMS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611192963.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-27
Estimated Expiration
2046-08-07

AI Technical Summary

Technical Problem

Existing avionics system virtual-physical integration tests suffer from problems such as high virtual node access costs, difficulty in maintaining protocol semantics, message loss due to time offset, and redundancy adjudication discrepancies, lacking collaborative solutions.

Method used

By establishing a protocol-aware routing table, selecting local or physical paths based on the deployment attributes of the communication channel destination, performing time mapping and protocol supervision, and using feedback closed-loop calibration to reduce clock differences and redundant decision disagreements, cross-domain state consistency is achieved.

Benefits of technology

It reduces the cost of expanding virtual nodes, improves the determinism and observability of testing, reduces physical resource consumption, and ensures the reliability and consistency of virtual-physical combined testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122718151B_ABST
    Figure CN122718151B_ABST
Patent Text Reader

Abstract

The application discloses a control method and system for virtual-real combination test in an avionics system, comprising: identifying the destination deployment attribute of the communication channel according to the protocol awareness routing table; directly delivering the local back-end channel through the low-delay data channel in the host; for the physical back-end channel, determining the physical sending reference time and the predicted physical receiving time according to the channel-level time mapping parameter, proactively predicting the protocol supervision result of the real physical device, and sending the message that is verified and compliant; for the message that is actually sent and obtains the valid physical receiving time stamp, calculating the mapping residual according to the transaction identification and updating the time mapping parameter, which is used for the time mapping and supervision prediction of the subsequent message; and according to the transaction identification and the mapped time stamp, associating and comparing the observable protocol states of the virtual side, the bridging side and the physical side. The application can reduce the test uncertainty caused by the virtual-real clock difference, the physical supervision frame loss and the redundant decision divergence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a comprehensive testing method and system for avionics systems, and more particularly to a control method and system for combined virtual and real testing in avionics systems. Background Technology

[0002] In integrated avionics system testing, some airborne computers, sensors, actuators, or bus-side systems can operate through virtualization or simulation, while other devices are still connected to avionics buses such as ARINC 664 / AFDX, MIL-STD-1553B, ARINC 429, or time-triggered Ethernet as real physical devices. This type of hybrid virtual-physical testing can reduce test bench costs, improve fault injection capabilities, and allow nodes that do not yet have real hardware to participate in system-level testing in advance.

[0003] Existing solutions typically have the following shortcomings: First, if all virtual nodes are connected in a fully physical manner, a large number of physical boards, cables, and switch ports are required, resulting in high expansion costs. Second, if only ordinary network forwarding or shared memory forwarding is used, it is difficult to maintain the semantics of avionics protocols, such as transmission cycle, maximum frame length, sequence number, response timeout, redundancy adjudication, and traffic policing. Third, the time of the virtual operating environment is offset and drifted from the real physical network time, and cross-domain messages may be silently discarded by real physical devices due to improper transmission reference time. Fourth, in avionics buses with dual or multi-redundancy transmission mechanisms, the virtual side, bridging side, and physical side may form different adjudication results for the same logical message, resulting in untraceable or unreproducible test states.

[0004] In existing technologies, virtualization platforms, shared memory communication, ARINC 664 / AFDX end system emulation, PTP time synchronization, token bucket or GCRA traffic policing, and A / B redundancy adjudication exist separately. However, when these technologies are used individually, they usually do not solve the coordination problem of "which communication channels should be localized, which communication channels must enter the real physical boundary, how to predict the real device policing behavior before entering the physical boundary, and how to compare cross-domain adjudication status". Summary of the Invention

[0005] The technical problem to be solved by this invention is to provide a control method and system for virtual-real combined testing in avionics systems. This method predicts the protocol supervision results and cross-domain state associations of messages entering the real physical network, and corrects the time mapping in a closed loop when valid physical reception time feedback is obtained, so as to reduce the test uncertainty caused by virtual-real clock differences, physical supervision frame loss, and redundant decision disagreements.

[0006] To address the aforementioned technical problems, this invention provides a control method for virtual-physical hybrid testing in an avionics system, comprising: acquiring a message to be sent and its corresponding communication channel, and acquiring or generating a transaction identifier corresponding to the message to be sent; identifying the destination deployment attribute of the communication channel according to a protocol-aware routing table; if the destination deployment attribute indicates that the destination is located in the same host environment or virtualization domain, then selecting a local backend channel and directly delivering the message to be sent to the receiving side through a low-latency data channel within the host; if the destination deployment attribute indicates that the destination needs to enter a real physical avionics network, then selecting a physical backend channel and performing the following processing: time mapping: according to the communication channel... The system maintains time mapping parameters to determine the physical transmission reference time and the predicted physical reception time; proactive verification: based on the physical transmission reference time and the predicted physical reception time, it predicts the protocol supervision result of the real physical device on the message to be sent; if the prediction result is compliant, the message to be sent is sent to the real physical network via the physical adapter; for messages that are actually sent and have obtained a valid physical reception timestamp, the mapping residual is calculated according to the transaction identifier and the time mapping parameters are updated for use in the time mapping and supervision prediction of subsequent messages; state consistency maintenance: the observable protocol states of the virtual side, the bridging side and the physical side are associated and compared according to the transaction identifier and the mapped timestamp to maintain cross-domain state consistency.

[0007] Furthermore, for messages actually sent via the physical adapter, when valid feedback information is obtained that is associated with the transaction identifier, contains a physical time reference, and can indicate the actual physical reception time of the observation point, the valid feedback information is associated with the predicted physical reception time. Based on the mapping residual between the actual physical reception time and the predicted physical reception time, the time mapping parameters are selectively updated, and the updated time mapping parameters are used for the time mapping of subsequent messages and the prediction of protocol supervision results.

[0008] Furthermore, the protocol-aware routing table uses communication channels as basic units. Each entry includes at least a communication channel identifier, a destination deployment attribute, and a backend type. Each entry also includes one or more of the following related to the protocol to which the communication channel belongs: a source identifier, a destination identifier, a period or minimum interval, a maximum message length, a sequence number rule, a redundancy rule, a state consistency check strategy, and a fault handling strategy.

[0009] Furthermore, for the i-th communication channel selected as the physical backend, the time mapping parameters include an estimated offset of the virtual clock relative to the physical time reference, Δ_i(t), and a combined parameter C_i(t) for predicting the physical reception time. When a timestamp is obtained that can separately determine the clock offset and path delay, the time mapping parameters also include an estimated path delay L_i(t) from the physical adapter's transmit output to the actual physical end's receive observation point, satisfying the following equation: C_i(t) = Δ_i(t) - L_i(t). In the transmission direction, the virtual transmission time T_{v,tx,i} is mapped to the physical transmission reference time T_{p,tx,i}, satisfying the following equation: T_{p,tx,i} = T_{v,tx,i}. _{v,tx,i}-Δ_i(t); In the predicted reception direction, the predicted physical reception time T_{p,rx,pred,i} is obtained, and the following equation is satisfied: T_{p,rx,pred,i}=T_{v,tx,i}-C_i(t); When maintaining the path delay estimate L_i(t), the following equation is also satisfied: T_{p,rx,pred,i}=T_{p,tx,i}+L_i(t); In the reception direction, the actual physical reception time T_{p,rx,obs,i} of the same reception event is mapped to the virtual reception reference time T_{v,rx,i}, T_{v,rx,i}=T_{p,rx,obs,i}+Δ_i(t).

[0010] Furthermore, based on the protocol to which the communication channel belongs, the protocol regulatory items predicted during forward verification are as follows: In the ARINC664 / AFDX scenario, this includes one or more of the following: virtual link bandwidth allocation interval, maximum frame length, sequence number continuity, integrity check window, maximum skew time, token bucket, and GCRA theoretical arrival time; in the MIL-STD-1553B scenario, this includes one or more of the following: response timeout, message interval, and bus controller frame period; in the ARINC 429 scenario, this includes one or more of the following: word interval, tag refresh period, and state matrix transition; and in the time-triggered Ethernet scenario, this includes one or more of the following: time-triggered time slot and rate-constrained flow shaping parameters.

[0011] Furthermore, when the prediction result of the current camera verification is a violation, the message to be sent is prevented from being sent immediately, and at least one of the following operations is performed according to a preset strategy: buffering the message to a legal window that is predicted to be compliant and sending it after verification as compliant again, discarding the message, generating an alarm, and recording a fault event.

[0012] Furthermore, the state consistency maintenance includes: for protocols with a sequence number mechanism, recording the channel-level sequence number, receive window, loss count, and reset state; for protocols with a redundancy mechanism, recording the redundancy decision results of each logical message on the virtual side and the bridging side, and recording the redundancy decision results or the observable receive results on the physical side.

[0013] Furthermore, the physical-side state observation information includes at least one of the following: the reception or discard status, reception window status, or winning copy identifier actively fed back by the real physical end or output by the end system monitoring interface; the physical-side observable reception result formed by the monitoring port collection record or bus bypass monitoring result; the transmission receipt containing the physical time reference but not containing the above-mentioned protocol status field is only used for time correlation or time mapping calibration and is not used alone as the redundancy decision result of the real physical end; at the checkpoint time, according to the transaction identifier and the mapped timestamp, the bridge-side protocol status or decision history is correlated and compared with the physical-side state observation information to discover protocol status or decision discrepancies.

[0014] Furthermore, in the ARINC 664 / AFDX scenario, when network A and network B arrive at two copies of the same sequence number in different orders due to path delay, host scheduling, network card interruption merging, or differences in physical switching paths, the physical boundary bridging layer aggregates the two copies according to the virtual link and sequence number. Based on the integrity check result, physical arrival time, and maximum skew window, it forms a bridging-side adjudication result and records the adjudication history. At the checkpoint, this adjudication history is compared with the state summary or adjudication history output by the real physical end, or with the physical-side observable inference result formed when the adjudication rules at the real end are known and the observation record covers the complete reception window, in order to discover problems such as inconsistencies between the bridging-side and physical-side reception or different sequence number window states.

[0015] Furthermore, the checkpoint is triggered by any of the following conditions: a) receiving a periodic status summary from the real physical system; b) a specific event occurs on the virtual side, including virtual machine or simulation instance restart or snapshot recovery, virtual clock jump or rate switching, communication channel sequence number reset, LOCAL / PHYS routing switch, and redundant copy loss, delay or out-of-order caused by fault injection; c) reaching a preset calibration period or mapping residual exceeding a threshold; after triggering the checkpoint, the virtual side and bridge side status snapshots in the same communication channel and corresponding status window are frozen, the physical side status observation snapshot corresponding to the status window is obtained, and the snapshots are compared and correlated according to the transaction identifier and the mapped timestamp.

[0016] Furthermore, it also includes: maintaining an event log across communication channels, the event log being used to represent causal dependencies between different communication channels; when two events occur concurrently and access the same avionics resource, a deterministic decision is made according to a pre-configured and fixed sorting key sequence, the sorting key sequence including one or more of the following: avionics mission criticality level, mapped timestamp, and channel identifier.

[0017] Furthermore, the following closed-loop calibration process is also included: For the i-th communication channel with selected physical backend, the following closed-loop calibration process is also included: The mapping residual is obtained by subtracting the predicted physical reception time from the actual physical reception time. Outliers are first eliminated, and then sliding window filtering or recursive estimation is used; If the processed residual is within the preset dead zone, no update is made; If it exceeds the dead zone, a candidate update amount is formed; When only a one-way physical reception timestamp is obtained, a candidate value of the combined parameter for predicting the reception time is formed in the direction opposite to the sign of the processed residual; When the virtual and physical clock readings of the same sampling event and the physical transmit and receive hardware timestamps of the same transaction are obtained, and the relationship between the sampling location and the time base is known, the clock offset is estimated by subtracting the physical clock reading from the virtual clock reading, the path delay is estimated by subtracting the physical transmit hardware timestamp from the physical receive hardware timestamp, and a candidate value of the combined parameter is formed by subtracting the path delay from the clock offset; The candidate update amount is limited and the mapping time monotonicity is verified. After passing the verification, the candidate time mapping parameter is submitted at the message boundary or protocol supervision window boundary.

[0018] To address the aforementioned technical problems, this invention also provides a control system for virtual-physical hybrid testing in an avionics system, comprising: a protocol-aware routing module for acquiring messages to be sent and their corresponding communication channels, and identifying the destination deployment attributes of the communication channels according to a protocol-aware routing table; a local backend module for directly delivering the message to the receiving side via a low-latency data channel within the host environment when the destination deployment attributes indicate that the destination is located in the same host environment or virtualization domain; and a physical boundary bridging module for processing the message when the destination deployment attributes indicate that the destination needs to enter the real physical avionics network. The physical boundary bridging module includes: a time mapping module for determining the physical transmission reference time and the predicted physical reception time; a forward verification module for predicting the protocol monitoring results of the real physical devices based on the physical transmission reference time and the predicted physical reception time; a physical adapter for sending verified and compliant messages; and a state consistency maintenance module for associating and comparing the observable protocol states of the virtual side, the bridging side, and the physical side according to the transaction identifier and the mapped timestamp.

[0019] Furthermore, the physical boundary bridging module also includes: a feedback acquisition module, used to acquire the actual physical reception time collected at a preset reception observation point or converted to the observation point and containing the physical time reference when a valid feedback is obtained from the actual message transmission, and associate it with the transaction identifier; and a closed-loop calibration module, used to selectively update the time mapping parameters according to the mapping residual between the actual physical reception time and the predicted physical reception time when the valid feedback is obtained, and use the updated parameters for the time mapping of subsequent messages and the prediction of monitoring results.

[0020] Furthermore, during the real physical access phase, the physical adapter adopts one of the following: a UDP interface accessing the real physical network via a physical gateway, a raw Ethernet interface, a user-space network card interface, an ARINC 664 / AFDX board interface, a MIL-STD-1553B board interface, an ARINC 429 board interface, or a time-triggered Ethernet interface; during the pure software pre-verification phase, a common UDP emulation interface can be used to reuse the physical boundary processing logic, but the common UDP emulation interface does not replace the real physical boundary.

[0021] Compared with existing technologies, the present invention has the following advantages: In the avionics virtual-real combined testing environment, the present invention performs differentiated traffic distribution based on the destination deployment location and protocol semantics of the communication channel; for local virtual communication, it reduces communication overhead and eliminates redundant transmissions without physical meaning; for communication entering the real physical avionics network, it completes time mapping and protocol supervision result prediction before the physical boundary, and uses feedback closed loop to correct the mapping parameters when a valid physical reception timestamp is obtained; at the same time, it associates cross-domain status according to transaction identifier and mapped timestamp, thereby reducing the test uncertainty caused by virtual-real clock differences, physical supervision frame loss, and redundant decision disagreements. Attached Figure Description

[0022] Figure 1 This is a schematic diagram of the avionics system architecture for the virtual-real combined testing of this invention; Figure 2 This is a control flowchart for the virtual-real combined testing in the avionics system of this invention; Figure 3 This is a schematic diagram of the time mapping and closed-loop calibration principle for virtual-real combined testing in the avionics system of this invention; Figure 4 This is a schematic diagram of the forward verification and state consistency processing of the virtual-real combined test in the avionics system of the present invention; Figure 5 This is a schematic diagram of optional causal order maintenance for virtual-real combined testing in the avionics system of this invention. Detailed Implementation

[0023] The present invention will now be further described with reference to the accompanying drawings and embodiments.

[0024] The control method for combined virtual and physical testing in avionics systems provided by this invention establishes a protocol-aware routing table at the granularity of avionics protocol communication channels, and uses this routing table to determine whether the communication channel enters the local backend path or the physical backend path. The communication channel can be an ARINC 664 / AFDX virtual link, a 1553B remote terminal address and sub-address combination, an ARINC429 tag channel, a time-triggered Ethernet stream, or other communication units in avionics protocols capable of carrying independent timing and state semantics.

[0025] For the local backend channel, the system exchanges data between virtual end systems through a low-latency data channel within the host, and reduces redundant transmissions that do not have the significance of independent physical link failure based on protocol redundancy semantics. For the physical backend channel, the system sets up a physical boundary bridging layer before the message enters the real physical avionics network; this bridging layer determines the physical transmission reference time and the predicted physical reception time, and predicts the protocol monitoring result of the real physical device based on the time. If the prediction is a violation, the message is blocked from being sent directly, or the message is buffered to the legal window and re-verified; it is only sent after re-verification and compliance, and alarms and fault records can be used as additional operations. For messages that are actually sent and obtain a valid physical reception timestamp, the closed-loop calibration module corrects the time mapping parameters of subsequent messages; if a valid physical reception timestamp is not obtained, the most recent set of valid parameters is used and the current closed-loop update is not performed.

[0026] In protocols with redundant transmission mechanisms, the physical boundary bridging layer records the redundant decision history of the bridging side. When the real physical end can output the receive window state or decision history, it is compared with the actual state of the physical side and the decision history of the bridging side; when it cannot output, the observable presumed state of the physical side is formed based on the monitoring port or bus bypass record covering the corresponding message window, and the evidence type is marked in the comparison result to discover state discrepancies of the same communication channel and the same message sequence between the virtual side, the bridging side, and the physical side.

[0027] I. Overall Architecture Please see Figure 1 The avionics system of this invention includes a virtual avionics bus terminal system module, a protocol-aware routing module, a local backend module, a physical boundary bridging module, a time mapping module, a forward verification module, a feedback acquisition module, a closed-loop calibration module, and a state consistency maintenance module. The virtual avionics bus terminal system module can be deployed on a virtualization platform, a simulation platform, or in a user-space device simulation process. The avionics software under test accesses this virtual terminal system through register interfaces, descriptor queues, network interfaces, shared memory interfaces, or equivalent interfaces.

[0028] Protocol-aware routing tables use communication channels as the basic unit. Each entry includes at least a communication channel identifier, destination deployment attributes, and backend type, and may selectively include source identifier, destination identifier, period or minimum interval, maximum message length, sequence number rules, redundancy rules, state consistency check policies, and fault handling policies, depending on the protocol to which the communication channel belongs.

[0029] II. Local Backend Channel Processing When the destination deployment attributes indicate that the destination of the message is located in the same host environment, the same virtualization domain, or can directly exchange data through a low-latency data channel within the host, the protocol-aware routing module selects the local backend channel. The sending virtual terminal system writes the message to the low-latency data channel and notifies the receiving side through an event notification mechanism. After reading the message, the receiving side performs necessary protocol status checks and delivers it to the corresponding software under test.

[0030] For protocols with physical redundancy semantics, the local backend channel can be configured with a single-event indicator, a non-redundancy flag, or an equivalent protocol status flag to transmit only one logical message. This process does not delete protocol status, but rather avoids repeatedly simulating A / B link failures in local paths where independent physical link failure semantics do not exist, thereby reducing local communication overhead.

[0031] III. Physical Backend Channel Processing When the destination deployment attributes indicate that the message needs to enter the real physical avionics network or real avionics bus device, the protocol-aware routing module selects the physical backend channel. The physical boundary bridging module receives messages from the virtual end system. First, the time mapping module determines the physical transmission reference time and the predicted physical reception time. Then, the forward verification module predicts the protocol supervision result of the real physical device. Messages that pass verification are sent to the real network or real board by the physical adapter. For messages that are actually sent and receive valid feedback, the feedback acquisition module collects or converts the actual physical reception time at a preset reception observation point and includes the physical time reference, based on the transaction identifier. If the valid feedback is not obtained, no mapping residual for the transaction is generated.

[0032] During the actual physical access phase, the physical adapter can utilize a UDP interface connected to the real physical network via a physical gateway, a raw Ethernet interface, a user-space network card interface, an ARINC 664 / AFDX board interface, a MIL-STD-1553B board interface, an ARINC 429 board interface, or a time-triggered Ethernet interface. Through adapter abstraction, the system can reuse physical boundary processing logic using a common UDP emulation interface during the pure software pre-verification phase and switch to the real physical interface during the actual board access phase; the common UDP emulation interface does not replace the real physical boundary.

[0033] IV. Time Mapping Module For the i-th communication channel with a selected physical backend, the time mapping module maintains at least the estimated offset of the virtual clock relative to the physical time base, Δ_i(t), and the combined parameter C_i(t) used to predict the physical reception time. Upon obtaining a timestamp that can separately determine the clock offset and path delay, the module further maintains the estimated path delay L_i(t) from the physical adapter's transmit output to the pre-configured real physical receiving observation point for that communication channel, satisfying C_i(t) = Δ_i(t) - L_i(t). The receiving observation point, timestamp acquisition source, and their conversion relationship with the physical time base are fixed according to the communication channel; timestamps from different acquisition points must first be converted to the receiving observation point before being used in the same closed loop. The mapping relationship can be: T_{p,tx,i}=T_{v,tx,i}-Δ_i(t); T_{p,rx,pred,i}=T_{v,tx,i}-C_i(t), and T_{p,rx,pred,i}=T_{p,tx,i}+L_i(t) is satisfied when maintaining L_i(t); T_{v,rx,i}=T_{p,rx,obs,i}+Δ_i(t).

[0034] Where T_{v,tx,i} is the virtual transmission time, T_{p,tx,i} is the transmission reference time mapped to the physical time base, T_{p,rx,pred,i} is the predicted physical reception time, T_{p,rx,obs,i} is the actual physical reception time obtained at the preset reception observation point, and T_{v,rx,i} is the reception reference time of the same reception event in the virtual clock domain. Since T_{p,rx,obs,i} and T_{v,rx,i} represent the time of the same reception event under different time bases, the clock domain conversion in the reception direction only adds the offset estimate Δ_i(t) of the corresponding reception time, without deducting the path delay L_i(t) again. Δ_i(t) can be estimated by the difference between the virtual clock value and the physical time base value of the same event or the same sampling time; L_i(t) can be estimated by the transmission and reception hardware timestamps or calibrated loopback measurements with fixed acquisition points and converted to the same physical time base.

[0035] Combination Figure 2 and Figure 3The closed-loop calibration module only operates on messages that have selected the PHYS path and have actually been sent. Before message transmission, the virtual transmission time T_{v,tx,i}, transaction identifier tx_id, and predicted physical reception time T_{p,rx,pred,i} are recorded. After message transmission, the feedback acquisition module obtains the actual physical reception time T_{p,rx,obs,i} from the actual physical end, the monitoring interface located at the preset reception observation point, or the bus bypass monitoring interface with location compensation. It then correlates the feedback with the transaction identifier and calculates the mapping residual e_i(k) = T_{p,rx,obs,i}(k) - T_{p,rx,pred,i}(k). Transmission receipts that only reflect the completion time of the physical adapter transmission should be recorded as the actual transmission exit time T_{p,tx,obs,i} and should not directly replace T_{p,rx,obs,i}. Ordinary receipts or status summaries that do not contain a physical time base are not used to calculate the mapping residual. If the current transaction does not obtain a valid physical receive timestamp, no residual is generated and the current parameters remain unchanged.

[0036] To avoid calibration divergence caused by occasional queuing, network card interruption merging, or abnormal frames, the closed-loop calibration module first performs outlier removal on e_i(k), and then uses sliding window filtering, recursive estimation, or Kalman filtering. The processed mapping residual is denoted as e_{f,i}(k). When only the one-way physical reception timestamp is obtained, since Δ_i(t) and L_i(t) cannot be observed separately from this timestamp, candidate values ​​for the combined parameters are generated according to C_i^{cand}(k+1)=C_i(k)-α_i·e_{f,i}(k), where 0<α_i≤1. In this case, the predicted physical reception time is directly T_{v,tx,i}-C_i(t), without using the one-way timestamp to update Δ_i(t) and L_i(t) separately. When the virtual clock reading T_{v,samp,i} and physical clock reading T_{p,samp,i} for the same sampling event are available, as well as the actual transmission exit time T_{p,tx,obs,i} and actual reception time T_{p,rx,obs,i} for the same transaction, with a fixed collection point and traceable to the same physical time base, can be determined according to: Δ_{i,obs}=T_{v,samp,i}-T_{p,samp,i}, and L_{i,obs}=T_{p,rx,obs,i}-T_{p,tx,obs,i}; Δ_i(t) and L_i(t) are updated recursively, and C_i(t) = Δ_i(t) - L_i(t) is updated. When using round-trip timestamps, the two parameters are estimated separately only if the return path delay is known, calibrated, or a preset symmetry condition is met; otherwise, only the combined parameter C_i(t) is updated.

[0037] No update is performed when |e_{f,i}(k)| is within the preset dead zone; when it exceeds the dead zone, the update amount of the candidate parameters is first limited, and then the monotonicity of the mapping time is checked. After the candidate parameters pass the check, they are submitted at the message boundary or the protocol regulatory window boundary; if the candidate update will cause the message order to reverse within the same communication channel, exceed the maximum skew window, or violate the protocol regulatory constraints, the update amount is further limited or the parameter is rolled back to the previous set of valid parameters. The submitted parameters are used for the time mapping of subsequent messages and the prediction of regulatory results. According to the above definition of residual, when the actual physical reception time is later than the predicted value, e_{f,i}(k)>0, the combined parameter C_i decreases, and from T_{p,rx,pred,i}=T_{v,tx,i}-C_i, it can be seen that the subsequent predicted physical reception time increases accordingly, so that the update direction is consistent with the actual observation. This forms a closed loop of "time prediction - physical observation - residual estimation - parameter update - subsequent regulatory prediction".

[0038] V. Front-facing verification module Please see Figure 4 Before a message enters the real physical network, the forward verification module predicts the protocol monitoring result of the real physical device for that message based on the mapped physical transmission reference time and the predicted physical reception time. This prediction does not simply check the internal queues of the virtual terminal system, but uses the protocol constraints that the real network device, real bus control device, or real terminal system may execute to make an early judgment on messages that are about to enter the physical boundary.

[0039] In the ARINC 664 / AFDX scenario, prediction items may include virtual link bandwidth allocation interval, maximum frame length, sequence number continuity, integrity check window, maximum skew time, and token bucket or GCRA (Generic Cell Rate Algorithm) theoretical arrival time. In the MIL-STD-1553B scenario, prediction items may include response timeout, message interval, and bus controller frame period. In the ARINC 429 scenario, prediction items may include word interval, tag refresh period, and state matrix transition. In the time-triggered Ethernet scenario, prediction items may include time-triggered time slots and rate-constrained flow shaping parameters.

[0040] When a prediction indicates a violation, the system prevents the message from directly entering the real physical network and buffers it within a valid window for re-verification according to a preset policy, or keeps it blocked or discarded; it is only sent after re-verification confirms compliance. The system can also perform at least one additional operation: generating an alarm and logging a fault event. This process exposes the risk of violation before the real physical device is silently discarded, improving test observability.

[0041] VI. State Consistency Maintenance Module Please continue reading Figure 4 The state consistency maintenance module records and associates the observable protocol states of the virtual side, bridge side, and physical side according to the transaction identifier and the mapped timestamp. For protocols with a sequence number mechanism, this module records the channel-level sequence number, receive window, loss count, and reset status; for protocols with a redundancy mechanism, this module records the redundancy decision result for each logical message. When the real physical end actively provides feedback containing the receive or discard result, sequence number window status, or redundancy winner information, it is taken as the actual physical side state; monitoring port or bus bypass records can only form observable presumed states regarding message arrival, parsing, and redundancy copy order. Send receipts containing only the send completion time and not the receive or decision fields are only used for send confirmation or time calibration and are not considered as internal decision results of the real physical end.

[0042] Taking ARINC 664 / AFDX as an example, networks A and B may arrive in different orders for two copies of the same sequence number due to path delays, host scheduling, network card interruption merging, or differences in physical switching paths. The physical boundary bridging layer can aggregate the two copies by virtual link and sequence number, and form a bridging-side decision based on the integrity check result, physical arrival time, and maximum skew window, and record the decision history. At the checkpoint, the system compares this decision history with the actual physical state or the observable presumed state. Only when the real-side decision rules are known and the passive observation record covers the relevant A / B copies and the complete reception window, is the physical-side winning copy presumed based on the record; otherwise, only the directly observable arrival, loss, and window states are compared, and the presumed result is not presented as an internal decision of the real physical end. The checkpoint is triggered by any of the following conditions: periodic state summary, virtual machine or simulation instance restart or snapshot recovery, virtual clock jump or rate switching, communication channel sequence number reset, LOCAL / PHYS route switching, redundant copy loss, delay or out-of-order, reaching a preset calibration period, or mapping residual exceeding a threshold. Upon triggering, the system freezes the virtual and bridged side status snapshots within the same communication channel and corresponding status window, obtains the physical side status observation snapshot corresponding to the status window, and performs correlation and comparison according to the transaction identifier and the mapped timestamp. When the real physical end cannot actively output the status summary, it is not required to freeze its internal status. Instead, it uses the monitoring port or bus bypass observation record to form the physical side observable presumed status and marks the evidence type in the comparison result.

[0043] VII. Optional Causal Order Maintenance Please see Figure 5In addition to maintaining basic state consistency, the system can maintain cross-communication channel event logs to represent causal dependencies between different communication channels. For example, an enable message must take effect before a control command message. Event causality can be represented by vector clocks, logical clocks, event sequence diagrams, dependency tables, or state summaries. When two events occur concurrently and access the same avionics resource, the system makes a deterministic decision according to a pre-configured and fixed sorting key sequence, which consists of one or more of the avionics mission criticality level, mapped timestamps, and channel identifiers, and records the actual sorting key used in the log. This causal order maintenance is an enhancement and not a necessary condition for the minimum implementation.

[0044] Example 1: ARINC 664 / AFDX Virtual-Real Hybrid Test In one embodiment, two virtualized instances run flight control computer software and navigation computer software, respectively, while the real physical network includes an AFDX switch and a servo terminal system. VL100 and VL101 transmit data between the two virtualized instances and are configured as local backends; VL200 and VL201 connect to the real servo terminal system and are configured as physical backends.

[0045] In this embodiment, the LOCAL channel does not occupy the physical ARINC 664 / AFDX board and switch port; the PHYS channel completes the prediction of the regulatory result based on the physical transmission reference time and the predicted physical reception time before entering the real switch, thereby reducing the risk of physical regulatory frame loss caused by virtual time drift. When the real servo end system can provide the reception window status or the adjudication history summary, it is directly compared with the actual physical side status; when it cannot actively provide it, the physical side observable presumed status is formed by collecting records through the switch monitoring port, end system monitoring interface, or bus bypass. Only when the passive record covers the relevant A / B copy and the complete reception window and the real end adjudication rules are known, the redundant adjudication result is presumed and marked as the presumed status in the result.

[0046] Example 2: Closed-loop calibration and control verification In one embodiment, a control group without closed-loop calibration and forward verification, and an experimental group with the method of the present invention, can be configured for the same group of PHYS communication channels. The same virtual clock offset and drift, host scheduling jitter, A / B path asymmetric delay, redundant copy loss and out-of-order events are injected into the two groups, and the same message sequence and protocol supervision parameters are used for operation.

[0047] During the verification process, the number of regulatory rejection frames of real physical devices, the mean and upper quantile of the mapping residuals, the number of disagreements between the bridging side and the physical side, and the time required from the occurrence of a disagreement to the location of the corresponding transaction identifier and status window can be statistically analyzed. Through a unified fault injection script, log fields, and replay conditions, the risk of regulatory frame loss, closed-loop convergence, and disagreement diagnosis efficiency can be repeatedly compared.

[0048] Taking the AFDX physical back-end channel as an example, under the condition of one-way feedback, let Δ_i(0)=2.0ms, C_i(0)=1.4ms, and the virtual transmission time T_{v,tx,i}=100.0ms. Then the physical transmission reference time is 98.0ms, and the predicted physical reception time is calculated as T_{p,rx,pred,i}=T_{v,tx,i}-C_i(0) as 98.6ms. Under this condition, L_i(t) is not maintained independently. If the actual physical reception time obtained by associating with the transaction identifier is 98.9ms, then the mapping residual e_i(0) = 98.9 - 98.6 = 0.3ms. Assuming the residual after outlier removal and filtering is still 0.3ms, with a step size α_i = 0.2, candidate values ​​are generated according to C_i(1) = C_i(0) - α_i·e_{f,i}(0) = 1.4 - 0.2 × 0.3 = 1.34 ms. The candidate values ​​are submitted at the message boundary after being limited and the mapping time monotonicity is checked. For the same virtual transmission time, the subsequent predicted physical reception time is 100.0 - 1.34 = 98.66ms, shifting towards the actual observation value relative to the original predicted value. The above values ​​are only used to illustrate the direction of parameter updates and do not constitute a limitation.

[0049] Example 3: 1553B, 429 and Time-Triggered Ethernet Extension In the MIL-STD-1553B scenario, the communication channel can be represented by the RT address and sub-address. When the actual transmission timestamp of the BC command and the start timestamp of the RT response can be traced back to the same physical time base, the physical boundary bridging layer predicts and verifies the response timeout, message interval, and BC frame period accordingly. In the ARINC 429 scenario, the communication channel is represented by a tag, SDI, and a combination of source and destination. The physical boundary bridging layer predicts the tag refresh period, word interval, and state matrix transition. When the bus monitoring interface can provide the physical reception hardware timestamp at the preset reception observation point, it only updates the combined parameter C_i(t). When the timestamp cannot be provided, it uses the initial calibration value or the most recent set of valid parameters to perform open-loop time mapping and forward verification, without performing online closed-loop updates. In time-triggered Ethernet scenarios, L_i(t) is estimated based on the difference between the two only when the hardware timestamp collection points of the sending exit and receiving entry are fixed and traceable to the same physical time base. Δ_i(t) is then estimated by combining the virtual clock and physical clock sampling values ​​of the same event or the same sampling time, thereby predicting whether the message falls into an allowed time-triggered slot or traffic shaping window.

[0050] In engineering implementation, the virtual terminal system, protocol-aware routing table, local backend path, and physical backend path can be implemented first; then, basic timestamp mapping, maximum length verification, minimum interval verification, and sequence status checks can be implemented; subsequently, the physical supervision model, redundant adjudication history comparison, and real board adaptation can be extended; finally, Kalman filtering, closed-loop time control, multi-protocol plugins, and cross-channel causal order maintenance can be added according to testing requirements. This implementation order is only used to illustrate a preferred implementation path of the present invention and does not limit the scope of protection of the present invention.

[0051] The technical contribution of this invention does not lie in the sole use of known technologies such as virtualization platforms, shared memory, AFDX, PTP, traffic policing, or redundancy adjudication, but rather in establishing a differentiated physical boundary processing and feedback closed-loop mechanism based on the semantics of avionics protocol communication channels. Specifically: First, the system does not forward messages uniformly according to network interfaces or virtual machine processes, but identifies the deployment attributes of the destination according to the avionics protocol communication channel and selects the LOCAL or PHYS path accordingly; Second, the LOCAL path is not a simple shared memory communication, but rather a redundant transmission that reduces the significance of independent failure of the physical link by combining protocol redundancy semantics; Third, the PHYS path does not simply send virtual messages to the real network card. Instead, it predicts the protocol monitoring results of the real device at the physical boundary based on the mapped physical transmission reference time and predicted physical reception time, and buffers, blocks, alarms, or records the illegal messages before they enter the real physical network. Fourth, redundancy processing does not only execute the bridging side decision, but also records the bridging side decision history and compares it with the actual state actively fed back by the real physical end or the observable presumed state formed by the monitoring port and bus bypass record, so as to detect cross-domain state divergences and distinguish between direct evidence and presumed evidence.

[0052] Fifth, for PHYS messages that are actually sent and have obtained a valid physical reception timestamp, the predicted physical reception time and the actual physical reception time are associated by transaction identifier. The observable time mapping parameters are updated based on the mapping residual, and the updated results, after amplitude limiting and monotonicity verification, are used for the monitoring prediction of subsequent messages, thus forming a technical closed loop with a clear update direction and a rollback mechanism. These features work together to enable the system to simultaneously achieve virtual node scalability, real physical network interoperability, and cross-domain test status traceability.

[0053] In summary, this invention achieves the following beneficial effects through the synergistic interaction of "protocol-aware routing," "time mapping and feedback loop," "proactive verification," and "state consistency maintenance": 1. Resource Concentration: By offloading at the protocol channel level (LOCAL / PHYS), the reliance on actual avionics boards, switch ports, and cable resources is significantly reduced.

[0054] 2. Test Determinism: Through forward verification and closed-loop calibration, the risks of virtual-real clock differences and physical regulatory frame drops are transformed from "invisible" to "controllable and measurable." By applying time mapping and protocol forward verification only at the PHYS physical boundary, unnecessary high-cost processing on local virtual communication is avoided; by predicting protocol regulatory results before messages enter the real physical device, unobservable failures caused by silent discarding by the real device are reduced.

[0055] 3. Status traceability: Improve the diagnosability of redundant decision disagreements in virtual-physical hybrid environments by comparing cross-domain status consistency; by distinguishing between the actual status actively fed back by the real physical terminal and the observable presumed status formed by monitoring ports or bus bypass records, the comparison conclusion can be traced back to the corresponding transaction identifier, status window and evidence type.

[0056] 4. High scalability: Through the modular design of physical adapters, protocol supervision models and time estimation algorithms, it can be extended to support ARINC 664 / AFDX, MIL-STD-1553B, ARINC 429, time-triggered Ethernet and implementation methods such as sliding window filtering, recursive estimation or Kalman filtering.

[0057] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be defined by the claims.

Claims

1. A control method for combined virtual and real testing in an avionics system, characterized in that, include: Obtain the message to be sent and its corresponding communication channel, and obtain or generate a transaction identifier corresponding to the message to be sent; Based on the protocol-aware routing table, identify the destination deployment attributes of the communication channel; If the destination deployment attribute indicates that the destination is located in the same host environment or virtualization domain, then the local backend channel is selected, and the message to be sent is directly delivered to the receiving side through the low-latency data channel within the host. If the destination deployment attributes indicate that the destination needs to enter a real physical avionics network, then a physical backend channel is selected, and the following processing is performed: Time mapping: Based on the time mapping parameters maintained for the communication channel, determine the physical transmission reference time and the predicted physical reception time; Proactive verification: Based on the physical transmission reference time and the predicted physical reception time, predict the protocol monitoring result of the actual physical device on the message to be sent; If the prediction result is compliant, the message to be sent will be sent to the real physical network via the physical adapter; for messages that are actually sent and have obtained a valid physical receive timestamp, the mapping residual will be calculated according to the transaction identifier and the time mapping parameters will be updated for the time mapping and regulatory prediction of subsequent messages. State consistency maintenance: The observable protocol states of the virtual side, bridge side, and physical side are associated and compared according to the transaction identifier and the mapped timestamp to maintain cross-domain state consistency; The protocol-aware routing table uses communication channels as the basic unit. Each entry includes at least a communication channel identifier, a destination deployment attribute, and a backend type. Each entry also includes one or more of the following related to the protocol to which the communication channel belongs: a source identifier, a destination identifier, a period or minimum interval, a maximum message length, a sequence number rule, a redundancy rule, a state consistency check strategy, and a fault handling strategy.

2. The control method according to claim 1, characterized in that, For a message actually sent by the physical adapter, when valid feedback information is obtained that is associated with the transaction identifier, contains a physical time reference, and can indicate the actual physical reception time of the observation point, the valid feedback information is associated with the predicted physical reception time. The time mapping parameters are selectively updated based on the mapping residual between the actual physical reception time and the predicted physical reception time, and the updated time mapping parameters are used for the time mapping of subsequent messages and the prediction of protocol supervision results.

3. The control method according to claim 1, characterized in that, For the i-th communication channel with a selected physical backend, the time mapping parameters include an estimated offset of the virtual clock relative to the physical time base, Δ_i(t), and a combined parameter C_i(t) for predicting the physical reception time. When a timestamp is obtained that can separately determine the clock offset and path delay, the time mapping parameters also include an estimated path delay L_i(t) from the physical adapter's transmit output to the actual physical receiver observation point, satisfying the following equation: C_i(t) = Δ_i(t) - L_i(t); In the transmission direction, the virtual transmission time T_{v,tx,i} is mapped to the physical transmission reference time T_{p,tx,i}, satisfying the following equation: T_{p,tx,i}=T_{v,tx,i}-Δ_i(t); Predicting the receiving direction yields the predicted physical receiving time T_{p,rx,pred,i}, satisfying the following equation: T_{p,rx,pred,i}=T_{v,tx,i}-C_i(t); When maintaining the path delay estimate L_i(t), the following equation is also satisfied: T_{p,rx,pred,i}=T_{p,tx,i}+L_i(t); In the receiving direction, the actual physical receiving time T_{p,rx,obs,i} of the same receiving event is mapped to the virtual receiving reference time T_{v,rx,i}, where T_{v,rx,i}=T_{p,rx,obs,i}+Δ_i(t).

4. The control method according to claim 1, characterized in that, Based on the protocol to which the communication channel belongs, the protocol regulatory items predicted during forward verification are as follows: In the ARINC 664 / AFDX scenario, one or more of the following are included: virtual link bandwidth allocation interval, maximum frame length, sequence number continuity, integrity check window, maximum skew time, token bucket, and GCRA theoretical arrival time. In the MIL-STD-1553B scenario, it includes one or more of the following: response timeout, message interval, and bus controller frame cycle; In the ARINC 429 scenario, this includes one or more of the following: word spacing, tag refresh cycle, and state matrix transition. In time-triggered Ethernet scenarios, this includes one or more of the time-triggered time slots and rate-constrained flow shaping parameters.

5. The control method according to claim 1, characterized in that, When the prediction result of the current camera verification is a violation, the message to be sent is prevented from being sent immediately, and at least one of the following operations is performed according to the preset strategy: buffer the message to be sent to a legal window that is predicted to be compliant and send it after verification as compliant again, discard the message to be sent, generate an alarm, and record the fault event.

6. The control method according to claim 1, characterized in that, The state consistency maintenance includes: for protocols with a sequence number mechanism, recording the channel-level sequence number, receive window, loss count, and reset state; for protocols with a redundancy mechanism, recording the redundancy decision results of each logical message on the virtual side and the bridging side, and recording the redundancy decision results or observable receive results on the physical side.

7. The control method according to claim 6, characterized in that, The physical side status observation information includes at least one of the following: the reception or discard status, reception window status, or winning copy identifier, which are actively fed back by the real physical end or output by the end system monitoring interface. Physically observable received results are generated from monitoring port records or bus bypass monitoring results; transmission receipts containing physical time bases but not the above-mentioned protocol status fields are only used for time correlation or time mapping calibration and are not used alone as redundant adjudication results of the real physical end. At the checkpoint, the bridging-side protocol status or adjudication history is correlated and compared with the physical-side status observation information according to the transaction identifier and the mapped timestamp, in order to discover discrepancies in the protocol status or adjudication.

8. The control method according to claim 7, characterized in that, In the ARINC 664 / AFDX scenario, when network A and network B arrive at two copies of the same sequence number in different orders due to path delay, host scheduling, network card interruption merging, or differences in physical switching paths, the physical boundary bridging layer aggregates the two copies according to the virtual link and sequence number, forms the bridging side adjudication result based on the integrity check result, physical arrival time, and maximum skew window, and records the adjudication history. At the checkpoint, the adjudication history is compared with the state summary or adjudication history output by the actual physical end, or with the physical side observable inference formed when the adjudication rules of the actual end are known and the observation record covers the entire reception window, in order to discover problems such as inconsistency between the bridging side and the physical side reception or different sequence number window states.

9. The control method according to claim 7 or 8, characterized in that, The checkpoint is triggered by any of the following conditions: a) Receive a periodic state summary from the real physical system; b) Specific events occur on the virtual side, including virtual machine or emulation instance restart or snapshot restoration, virtual clock jump or rate switching, communication channel sequence number reset, LOCAL / PHYS route switching, and redundant copy loss, delay or out-of-order caused by fault injection. c) The preset calibration cycle is reached or the mapping residual exceeds the threshold; After a checkpoint is triggered, the virtual side and bridge side status snapshots within the same communication channel and corresponding status window are frozen. The physical side status observation snapshot corresponding to the status window is obtained and compared according to the transaction identifier and the mapped timestamp.

10. The control method according to claim 1, characterized in that, Also includes: Maintain an event log across communication channels, the event log being used to represent causal dependencies between different communication channels; When two events occur concurrently and access the same avionics resource, a deterministic decision is made according to a pre-configured and fixed sorting key sequence, which includes one or more of the following: avionics mission criticality level, mapped timestamp, and channel identifier.

11. The control method according to claim 1, characterized in that, For the i-th communication channel with a selected physical backend, the following closed-loop calibration process is also included: The mapping residual is obtained by subtracting the predicted physical reception time from the actual physical reception time. Outliers are first removed, and then sliding window filtering or recursive estimation is used. If the processed residual is within a preset dead zone, it is not updated; if it exceeds the dead zone, a candidate update value is formed. When only a one-way physical reception timestamp is obtained, a candidate value for the combined parameter used to predict the reception time is formed in the opposite direction to the sign of the processed residual. When the virtual and physical clock readings of the same sampling event and the physical transmit and receive hardware timestamps of the same transaction are obtained, and the relationship between the sampling location and the time base is known, the clock offset is estimated by subtracting the physical clock reading from the virtual clock reading, the path delay is estimated by subtracting the physical transmit hardware timestamp from the physical receive hardware timestamp, and a candidate value for the combined parameter is formed by subtracting the path delay from the clock offset. The candidate update value is limited and the monotonicity of the mapping time is verified. After passing the verification, the candidate time mapping parameter is submitted at the message boundary or protocol monitoring window boundary.

12. A control system for combined virtual and real testing in an avionics system, characterized in that, include: The protocol-aware routing module is used to acquire the message to be sent and its corresponding communication channel, acquire or generate a transaction identifier corresponding to the message to be sent, and identify the destination deployment attribute of the communication channel according to the protocol-aware routing table. The protocol-aware routing table takes the communication channel as the basic unit, and each entry includes at least the communication channel identifier, the destination deployment attribute, and the backend type. Each entry also includes one or more of the following related to the protocol to which the communication channel belongs: source identifier, destination identifier, period or minimum interval, maximum message length, sequence number rule, redundancy rule, state consistency check strategy, and fault handling strategy. The local backend module is used to deliver the message to be sent directly to the receiving side through the low-latency data channel within the host when the destination deployment attribute indicates that the destination is located in the same host environment or virtualization domain. The physical boundary bridging module is used to process the message to be sent when the destination deployment attribute indicates that the destination needs to enter the real physical avionics network; The physical boundary bridging module includes: The time mapping module is used to determine the physical transmission reference time and the predicted physical reception time based on the time mapping parameters maintained for the communication channel. The forward verification module is used to predict the protocol monitoring result of the real physical device on the message to be sent based on the physical transmission reference time and the predicted physical reception time; A physical adapter is used to send compliant messages to the actual physical network. The state consistency maintenance module is used to associate and compare the observable protocol states of the virtual side, bridging side, and physical side according to the transaction identifier and the mapped timestamp.

13. The control system according to claim 12, characterized in that, The physical boundary bridging module also includes: The feedback acquisition module is used to acquire feedback information associated with the transaction identifier, containing a physical time base, and capable of indicating the actual physical reception time of the observation point when valid feedback information is obtained for messages actually sent through the physical adapter. The closed-loop calibration module is used to selectively update the time mapping parameters based on the mapping residual between the actual physical reception time and the predicted physical reception time when the valid feedback information is obtained, and to use the updated time mapping parameters for the time mapping of subsequent messages and the prediction of protocol supervision results.

14. The control system according to claim 12, characterized in that, The physical adapter adopts one of the following: a UDP interface, a raw Ethernet interface, a user-mode network card interface, an ARINC 664 / AFDX board interface, a MIL-STD-1553B board interface, an ARINC 429 board interface, or a time-triggered Ethernet interface that is connected to the real physical network via a physical gateway.

Citation Information

Patent Citations

  • Force control joint torque self-correction method based on digital twinborn mapping

    CN121411142A

  • Mixed reality manned and unmanned aerial vehicle cluster development and verification method

    CN122284674A