The invention discloses a traffic transparent
dyeing and full-link dynamic tracking method based on an inner layer source
MAC address in a private cloud VPC environment. According to the method, an implicit
metadata channel is constructed by utilizing the characteristic that an inner-layer source
MAC address does not participate in addressing in
Overlay transmission, and tracking is realized through three steps: entry
dyeing: replacing the inner-layer source MAC of an original message with a
dyeing MAC containing identity information and a dynamic state area on a source end vSwitch data plane; dynamic updating and abnormal marks are transmitted, the intermediate node progressively increases a hop count counter to
record a path, and event codes are modified and mirrored and reported when abnormity occurs; and outlet restoration: the target end vSwitch restores the real MAC based on the mapping table and connection tracking, and application transparency is guaranteed. The method has the advantages of zero load, zero overhead, full-link deep
perception, high transparency, strong compatibility and the like, and the forwarding path and the real-time state in the
virtual network can be accurately obtained on the premise of not invading tenant application.