(Discusses the development of network QoS technology, analyzes the demand of QoS for IPSec security equipment, designs a system structure for implementing QoS in IPSec security equipment, and proposes two-level classification and two-level scheduling for data flow. mechanism)