Please Where do I modify in ns2 source files to implement this congestion control algorithm and how?

Course Queries Syllabus Queries 3 years ago

5.12K 1 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago


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. It is a variant of TCP AIMD algorithm called TCP - BIAD

    #.................................................................................................................
            if (ACK recieved)
              call routine b.com/tag/function">function ()
               if congestion window <= slow start threshold
                  increment congestion window by 1
               else
                set Minimum window = congestion window
                set target window = Average of max. Window and min. window
                 if(dist. btw current window & target window > max.increment)
                  set S to maximum increment
            else if (b.com/tag/distance">distance between current window and target window <=1)
                  set S to 1
                else
                set S to b.com/tag/distance">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 materials and links you are willing to share. 

0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum