Network measurement technology is the basis of the monitoring network devices, link and flow running state and flow behavior model. The current network measurement mainly adopts the method of active measurement, in other words, managers use injection flow probe to measure the network actively, but this method can increase the network flow and influence the state of the network and the network load. To solve this problem, this paper proposes a method that is fine-grained network traffic parameter measurement based on in-band network telemetry technology. Software defined network architecture and the principle of data plane programmable technology is introduced first, and then the process of using in-band network telemetry to obtain network traffic parameters is described in detail. Finally, this paper simulates the network environment and attack environment in the simulation environment to obtain the data set required for the experiment, and the results of the data set are analyzed to verify the effectiveness of this method based on in-band network telemetry technology.