Question

The topic is Intro to Networking(congestion sequence number ....etc) and i dont get this homework can...

The topic is Intro to Networking(co

The topic is Intro to Networking(congestion sequence number ....etc) and i dont get this homework can anybody please help me out with this and explain so i can perform in test too. Thank you so much !

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In order to analyze the results of your NS-2 simulations, you should enable NS-2's trace file by putting the following lines of code in your script:

#Open the trace file (before you start the experiment!)
set tf [open my_experimental_output.tr w]
$ns trace-all $tf
...
# Close the trace file (after you finish the experiment!)
close $tf

These commands will tell NS-2 to create an output file that includes traces of all the packets sent during your experiment. You will need to write other scripts (in whatever language you choose) that parse this data and analyze the results. Your scripts should report things like average bandwidth, packet drops, throughput over time, end-to-end latency (average and over time), sequence numbers of packets sent, and the congestion window of all TCP flows. This information will enable you to analyze the results of your experiments and answer the questions below. You need to understand the format of NS-2s trace file in order to successfully write these scripts.

My suggestion would be to write simple Python scripts to parse/analyze the trace (e.g. compute the average throughput of each flow), output the results to a file, and then use gnuplot or Excel to plot graphs of the data.

Note that many of the NS-2 tutorials refer to tools like nam and xgraph that come bundled with NS-2. I have never used these tools, and I do not recommend that you use them. However, these tools are\ installed in the NS-2 directory and you may use them if you wish. Do not ask for technical support about these tools, because we cannot help you!

Experiment 1: TCP Performance Under Congestion

In the first set of experiments, you will analyze the performance of TCP variants (Tahoe, Reno, NewReno, and Vegas) under the influence of various load conditions. To study the behavior of the four TCP variants, you need to first set up a network topology. Use the following topology for your experiments, and set the bandwidth of each link to 10Mbps:

                         N1                      N4
                           \                    /
                            \                  /
                             N2--------------N3
                            /                  \
                           /                    \
                         N5                      N6

Using this topology, you will perform tests that analyze the performance of different TCP variants in the presence of a Constant Bit Rate (CBR) flow. You can think of the CBR flow as an unresponsive UDP flow: it uses a specific amount of bandwidth, it does not care about dropped packets, and it does not perform congestion control. Basically, it just sends packets blindly at a constant rate.

Add a CBR source at N2 and a sink at N3, then add a single TCP stream from N1 to a sink at N4. Analyze the throughput, packet drop rate, and latency of the TCP stream as a function of the bandwidth used by the CBR flow. That is, the bandwidth of the CBR flow is the parameter you need to vary for this experiment. For example, start the CBR flow at a rate of 1 Mbps and record the performance of the TCP flow. Then change the CBR flow's rate to 2 Mbps and perform the test again. Keep changing the CBR's rate until it reaches the bottleneck capacity. The TCP stream's performance will change depending on the amount of contention with the CBR flow. Conduct this experiment using the following TCP variants: Tahoe, Reno, NewReno, and Vegas.

Based on the results from your tests you should be able to answer the following questions: which TCP variant(s) are able to get higher average throughput? Which has the lowest average latency? Which has the fewest drops? Is there an overall "best" TCP variant in this experiment, or does the "best" variant vary depending on other circumstances?

Experiment 2: Fairness Between TCP Variants

Next, you will conduct experiments to analyze the fairness between different TCP variants. Out on the Internet, there are many different operating systems, each of which may use a different variant of TCP. Ideally, all of these variants should be fair to one another, i.e. no particular variant gets more bandwidth than the others. However, is this ideal assumption actually true?

For these experiments, you will start three flows: one CBR, and two TCP. Add a CBR source at N2 and a sink at N3, then add two TCP streams from N1 to N4 and N5 to N6, respectively. As in Experiment 1, plot the average throughput, packet loss rate, and latency of each TCP flow as a function of the bandwidth used by the CBR flow. Repeat the experiments using the following pairs of TCP variants (i.e. with one flow from N1 to N4, and the other flow from N5 to N6):

  • Reno/Reno
  • NewReno/Reno
  • Vegas/Vegas
  • NewReno/Vegas

Based on your results you should be able to answer the following questions: are the different combinations of variants fair to each other? Are there combinations that are unfair, and if so, why is the combination unfair? To explain unfairness, you will need to think critically about how the protocols are implemented and why the different choices in different TCP variants can impact fairness.

Add a comment
Know the answer?
Add Answer to:
The topic is Intro to Networking(congestion sequence number ....etc) and i dont get this homework can...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can I please get a Step-by-Step instructions on how the answer is $1,952,296.00. I dont know...

    Can I please get a Step-by-Step instructions on how the answer is $1,952,296.00. I dont know how to plug this equation in with normal or scientific calculator. Thank you so much for your time Subtract in the denominator. +5500 (1.08) 35 - (1.06135 V=55001 0.02 Continue to evaluate the right side of the equation using the correct order of operations. V $1,952,296 (Rounded to the nearest integer.) The future value of the inflation-adjusted retirement account is $1,952,296.

  • Can i get the answer for 7a and 7b please. I really dont understand if you...

    Can i get the answer for 7a and 7b please. I really dont understand if you can explain in steps would be great. Thank you 7. These problems involve using heat of formation values that are found in Appendix II of your textbook. What is the enthalpy of the following reactions? a. SiF4(8)Si(s) 2F2(8) b. 3KsO2(s) + 3H20(l) 6KOH(aq) + 03(g) → (-85.8y3)

  • im trying to make an exam study guideline fro my final next week, since i dont...

    im trying to make an exam study guideline fro my final next week, since i dont have much time i want to study the most important points as much as i can to get it also done with other things. I wanted to ask what are the major hallmarks of the following conditions in Renal Pathology in their manifestations and pathophysiologies; 1)Pyelonephritis (if possible, the differneces in the acute and chronic ones) 2)Glomerular disorders (especially this!! super complicated im gonna...

  • Topic: Organic Chemistry Please provide step by step solutions to each problem along with a brief...

    Topic: Organic Chemistry Please provide step by step solutions to each problem along with a brief explanation as to why you picked your answer. To whoever helps me, please know that I am stuggeling so hard with this class. I'm not smart like everyone else, so please (if you can) be detailed and if you have time, please try to explain to me why you did what you did. I just don't get this subject, it seems so random and...

  • Hi I need help with my homework I provide you with the information and the topic...

    Hi I need help with my homework I provide you with the information and the topic and please make sure that there are no plagiarisms this is very important and please be clear. put the paragraph under each part please so I can understand. topic How managers can create and maintain conditions that support strong relationships between patients and clinicians. instruction Present a summary of the current situation associated with your topic/issue. Describe 1 or 2 challenges associated with your...

  • hi I need help with my homework please help me with this topic I have I...

    hi I need help with my homework please help me with this topic I have I provide you with the information please help   PLEASE BE CLAER MAKE SURE NO PLAGIARISM I NEED 350 WORDS and also if you can it Must be third person Topic - Drug abuse information: (pertaining to your topic), outline one thing that would be a step in the right direction to address this, and address potential barriers to implementation. Research comparable nations’ strategies to address...

  • Can you please give me an idea on what I should do for my research project?...

    Can you please give me an idea on what I should do for my research project? It has to be something I can perform over the summer AND it has to be something original that may build off of other people’s science research papers (IMRAD style paper - intro methods results discussion). The topic has to do with heme-iron. I was thinking something along the lines of behaviors of nutrient-deficient heme-iron. I’m not sure where to build off from there....

  • can i please get help to get the overall product for both ? thank you so...

    can i please get help to get the overall product for both ? thank you so much 1. Hg (0A 22, H₂O 2. Na Bity 1.BH3, THE 2. H₂O2, OH)

  • please help me solve this and show how you solved it so i can get a...

    please help me solve this and show how you solved it so i can get a better understanding, thank you? Solve e2x +et – 6=0.

  • hi I need help with my homework please help me with this topic I have I provide you with the information please help&nbs...

    hi I need help with my homework please help me with this topic I have I provide you with the information please help  PLEASE BE CLAER MAKE SURE NO PLAGIARISM I NEED 350 WORDS and also if you can it Must be third person if you can Topic - Drug abuse information: Considering the increasing problem in the U.S. (pertaining to your topic), outline one thing that would be a step in the right direction to address this, and address potential...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT