Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   i need c++ codes for mac-layer LDA n Cross-Layer LDA (http://www.go4expert.com/forums/i-cpp-codes-mac-layer-lda-n-cross-layer-t21310/)

krishnakrmsccs 12Mar2010 11:35

i need c++ codes for mac-layer LDA n Cross-Layer LDA
 
MAC-LAYER LDA
if (DataRate ≥ 12 Mbps) then // station is closed to AP
RetryLimit =6 // default value
else if (DataRate > 6 Mbps) // possible signal failure
RetryLimit = 12 // begin to enlarge transmission window
else if (DataRate ≤ 6 Mbps) // probability of failure is max.
RetryLimit = 18 // continue to enlarge window
if (new segment) && (last segment dropped) // new TCP segment and last MAC retry failed
RetryLimit = RetryLimit+6 // enlarge again window
end if
end if.


CROSS-LAYER LDA
if (3 dup ack) then // loss indication in TCP NewReno algo.
LDA_Estimator =0 // initial value for congestion
for (i = 0; i ≤ n; i ++) // for all the not acknowledged segments
if (RetryCount = RetryLimit) then // segment is dropped, probably a short loss
LDA_Estimator =1 // set value for interferences. . .
end if
end for
end if


All times are GMT +5.5. The time now is 13:23.