The invention discloses a network digital twinning-oriented dual-view flow data sampling method and
system, and mainly solves the problems of difficult key path capture and low flow reconstruction precision caused by lack of
frequency domain perception of a flow sampling method in the prior art. According to the implementation scheme, historical flow interaction data in a network node sliding window are collected to form a third-order flow
tensor and normalized, and node
frequency domain features are extracted and then smoothly updated to obtain a smooth
feature vector; mapping the vector to determine a node category, and dividing source-destination OD pair traffic categories of the whole network; calculating statistics lever scores of all OD pairs, dynamically allocating sampling budget of each category according to the statistics lever scores, and generating a sampling set and a binary sampling
mask by adopting a determinacy and
random combination strategy; and collecting the flow data of the corresponding position at the current moment based on the
mask, constructing a
tensor completion optimization model for solving completion, and outputting the recovered whole network flow data. According to the method, through double-view cooperation of the
frequency domain features and the statistical lever fraction, precise coverage of a high-value traffic path is realized, and the traffic reconstruction precision of the digital twin network is effectively improved while the sampling overhead is reduced. The method can be applied to measurement and reconstruction of large-scale network traffic.