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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice