12.07.2015 Views

Wireless Ad Hoc and Sensor Networks

Wireless Ad Hoc and Sensor Networks

Wireless Ad Hoc and Sensor Networks

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Congestion Control in ATM <strong>Networks</strong> <strong>and</strong> the Internet 121101 while (not finishing sending all packets) do102 begin103 TqAgent send packets using current rate104105 meanwhile if receive ACK packets from TqSink then106 begin107 get Sr,Ir,Xk from ACK packet108 Qlevel=(Ik-Ir)*T;109 fxk=Xk+Qlevel+(Ik-Sr)*T;110 Uk=(Xdfxk+kv*(XkXd))/T;111 Vk=Ik+Uk;112 update current sending rate using Vk113 end114 end115 end/Resetidle/StopStartTimerrunningExpiredSendmsg(nbytes)curseg+=(nbytes/size)+(nbytes %size? 1:0)Application(VBR/CBR)firstsendStartseqno==−1<strong>Ad</strong>justRateQlevel=(Ik-Ir)∗T/8000fxk=Xk+Qlevel+(Ik-Sr)∗T/8000Uk=(Xd-fxk+(Xk-Xd)∗Kv)/TVk=Ik+Uk∗8000/setTqSendTimerrunning(size/rate)Sr, Ir, XkAckordeddataExpiredNewAckactionHighestack/ResetNextpktCallSendpkt(seqno++)Nseqno=highestack+1sent all dataDupAckactionYnew ackRecvdup ack callUpdaterttUpdaterecv_winRecvcallTqAgentTqSinkFIGURE 3.21UML state diagrams for TQ implementation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!