Research Article

Interaction-Aware Video Community-Based Content Delivery in Wireless Mobile Networks

Algorithm 2

Process of content delivery.
(1) /   is request node in a community ; is broker member in ; is bridged member in . /
(2) sends request messages to neighbor members maintained by
(3) if( receives response messages)
(4)  for( = 0; ; ++)
(5)   estimates serving capacities of by (2);
(6)  end for
(7)  selects member with maximum value of serving capacities as supplier;
(8) else sends request message to ;
(9)    forwards message to other members;
(10)   if( receives response messages)
(11)     returns member list to ;
(12)   else forward request message to ;
(13)     if ( successfully receives response from other communities)
(14)       returns list of candidate suppliers to ;
(15)       estimates serving capacities by (2) and select supplier;
(16)     else forward request message to server;
(17)     end if
(18)   end if
(19) end if
(20) receives video data from supplier (server);