The invention discloses an active and passive cooperative network telemetering method based on sparsity prediction and path planning, and the method comprises the steps: designing an adaptive probability sampling function combining the
queue depth and the number of INT labels in a
passive sensing module of a data plane; a mark cooling mechanism aiming at a port is combined to reduce extra expenditure brought by a telemetering
label, but monitoring of high-value flow state information is not lost; on a control plane, the invention provides an
algorithm for converting the
packet forwarding rate in an actual environment into a logarithmic form by using logarithmic normal distribution transformation and Holt double-
exponential smoothing prediction, so as to carry out
smoothing prediction on a future flow condition, thereby finding a sparse risk link of which the
packet forwarding rate is smaller than a certain threshold value in advance; the discovery of the detection blind area is changed from passive to active; then, according to the predicted sparse link set and a prospective sparse link coverage and reconstruction (PSCR) mechanism, the topology of the whole network is partitioned, a series of loops are generated, an optimal loop is selected to serve as an
active detection path, and a detection task is executed by the nearest host; therefore, the consumed bandwidth is minimized, and potential blind areas can be detected as much as possible; the method is suitable for a large-scale
data center network, the blind area of network detection can be eliminated under extremely
low overhead, and the
visibility of the whole network reaches 99%.