: evaluated stream DBP value of real-time stream
: evaluated LSI value of stream x at current node
: next hop of node
: link failure level of downstream node j
Pseudo-code executed by node in each round
(1) if     then // stream meets end-to-end QoS requirement
(2)   = keep current next-hop
(3) else
(4)  if   <= 0 then
        // stream cannot meet end-to-end QoS ruirement
(5)    if > 0 then // node  i is in positive condition
(6)      = keep current next-hop
(7)    else
(8)      if <= 0 then// node is in negative condition
Congestion Control Mechanism
(9)        if   == 0 then// only congestion occurs
(10)         run Congestion Control Mechanism
Link Failure Recovery Mechanism
(11)        else
(12)         if != 0 then// link failure occurs
(13)          run Link Failure Recovery Mechanism
(14)         end if
(15)        end if
(16)     end if
(17)   end if
(18) end if
(19) end if
Algorithm 1: Data transmission stage algorithm.