Research Article

Congestion Control Mechanism for Intermittently Connected Wireless Network

Algorithm 1

Pseudocode.
(1) node encounter node ;//
(2) while(connection is up)//
(3)
(4)  switch summaryvector( );//
(5)  updatenodeserviceability list;//
(6)  updatedatariskrank list;//
(7)  count thre and dividingcacheregion;//
(8)  if( node is the destination node of new data)//
(9)   while( freebuffersize < newdata.size )
(10)    remove the data that is maximum in repacing cache region ;//
(11)      nodei.messagebuffer.receive( new message );//
(12) else if( newdata.U > node i.buffer.U )//
(13)     If (nodei.D > nodej.D) //
(14)     newData.R++;
(15)     nodei.messagebuffer.receive( newmsg );
(16)     //
(17)     else nodei.buffer.refuse( newdata );//
(18)    
(19)     else newdata.R−−; nodei.messagebuffer.receive( newmsg ); //
(20)
(21) connectiondown;