Diffusion Model of RED Control Mechanism