Markovian Model of RED Mechanism