The invention discloses a
loopback test module data flow monitoring method and
system, and belongs to the technical field of computers. The method comprises the following steps: intercepting an
original data stream at a
loopback sending end bypass, generating a sending end characteristic
fingerprint with a
fixed length, associating the sending end characteristic
fingerprint with a sending
clock label, and writing the sending end characteristic
fingerprint into an asynchronous ring buffer area in sequence; intercepting a return
data stream in a loop-back receiving end bypass, generating a receiving end feature fingerprint by adopting the same
algorithm, and capturing a receiving
clock label; the matching engine determines a sliding window range based on a receiving
clock label and a preset time
delay parameter, reads a plurality of sending end feature fingerprints in a window in parallel, and compares the sending end feature fingerprints with receiving end feature fingerprints after effective screening according to
time deviation; and if yes, judging that the operation is normal, otherwise, starting an
exception handling process. According to the method, through feature fingerprint compression storage and an asynchronous ring buffer and sliding window parallel matching mechanism, low-resource-overhead, non-intrusive and high-real-
time data flow monitoring is achieved, and the method effectively adapts to a high-speed
loopback test scene.