1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

i need c++ codes for mac-layer LDA n Cross-Layer LDA

Discussion in 'C++' started by krishnakrmsccs, Mar 12, 2010.

  1. krishnakrmsccs

    krishnakrmsccs New Member

    Joined:
    Mar 12, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page