Research Letter

A Simple Mechanism for Throttling High-Bandwidth Flows

Algorithm 1

HHS ( πœ“ , π‘Ÿ l i m i t , 𝑃 ) .
Require: πœ“ : Heavy hitter set.
Require: 𝐢 : Total link capacity.
Require: 𝐾 : Max number of counters in πœ“ equal to 𝐢 π‘Ÿ l i m i t .
Require: 𝑃 : The admitted packet.
Require: 𝑃 F I D : The flow ID of the admitted packet.
(1) initialize πœ“ to empty;
(2) while   do
(3)  if    then
(4)   increment 𝑃 ;
(5)  else if     then
(6)   for all     do
(7)     decrement 𝑃 F I D ∈ πœ“ ;
(8)       if   c o u n t e r [ 𝑃 F I D ]   then
(9)      remove i from | πœ“ | = 𝐾 ;
(10)       end if
(11)   end for
(12)  else
(13)   insert 𝑖 ∈ πœ“ into c o u n t e r [ 𝑖 ] ;
(14)    c o u n t e r [ 𝑖 ] = 0 ;
(15)  end if
(16) end while