Which NS2 Source file should be modified to implement this Algorithm

Amodu Oluwatosin <[email protected]>
Newsgroups gmane.network.simulator.isi
Message-ID <CA+2PfELK2PV4ta=D+rgKzudWXjD=v9W8YfAgjofJk-mHtCP2_g@mail.gmail.com>
Hi

Warm greetings to you,

Please I would like to find out where I need to adjust in the ns2 source
code in order to implement the TCP algorithm below.
#.................................................................................................................
if (ACK recieved)
call routine function ()
    if congestion window <= slow start threshold
        increment congestion window by 1
    else
      set Minimum window = congestion window
      set target window = Average of maximum Window and minimum window
        if (distance between current window and target window > maximum
increment)
            set S to maximum increment
        else if (distance between current window and target window <=1)
            set S to 1
        else
            Set S to distance between current window and target window
        end if
        congestion window = congestion window + S/congestion window
    end if
end if
#...........................................................................................................................

Algorithm after a single packet is Lost

#..............................................................................................................................
if ( three DUPACKs are recieved)
    Maximum window = Congestion Window
    slowstart threshold = max (2, B x Minimum Roundtriptime)/ Pipe Size of
bottleneck link during congestion
    congestion window = slow start threshold
end if
#.......................................................................................................................................

I am new to this area so I will appreciate all necessary and related
information you are willing to share.

Thanks
Regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.