We propose a traffic shaping algorithm based on the estimates of input traffic and trend estimation using H^∞ filter. By this method, we can reduce packet loss rate in the traffic shaper machine itself. Using nemerical simulation case studies, we verify the effect of the proposed method compared to the leaky bucket algorithm.