The invention discloses a distributed traffic
mirror image acquisition method based on an OVS flow table and a VXLAN protocol, and the method comprises the following steps: S1, initializing a
working environment, and configuring an OVS service; s2, creating a
virtual machine and acquiring network bridge information of the
virtual machine; s3, binding the VXLAN tunnel interface to a network bridge of the
virtual machine; s4, adding a flow table rule in the network bridge to realize flow matching and
mirror image output; s5, the rules are dynamically adjusted through an adaptive flow table optimization
algorithm, and the flow
processing efficiency is improved; s6, detecting and removing repeated data packets by using an in-segment
data deduplication algorithm; s7, receiving the
mirror image data and carrying out traffic summarization and classification
processing; and S8, completing distributed flow collection, and obtaining high-quality flow data for analysis and
processing. According to the method, additional services are not needed, the deployment process is simplified, the flow collection efficiency and the
data integrity are improved through dynamic adjustment and de-duplication optimization, and the method is suitable for network
flow management and analysis of a large-scale
cloud computing environment.