This paper presents a dynamic traffic shaping method utilizing software-defined networking (SDN) and network functions virtualization (NFV) to enhance bandwidth and processing efficiency. The proposed method enables dynamic selection of communication flows and shaping points to mitigate congestion without the need for pre-deployed devices, thus reducing network costs. The paper details the implementation processes, system configuration, and evaluation to validate the operational effectiveness of the dynamic shaping method.