Lab 1: ns Basics
Exercise I
Run lab1c.tcl.
Now change size of buffer to 10 and see animation in nam. (Uncomment the two lines).What do you see?
Change TCP window size to 10. Do you see drops anymore?
Exercise II
By now you should know basic commands for creating simple networks.
Create lab1d.tcl.
- Set up below network topology. Links 0-2 and 1-2 have bandwidth 5Mb
and 2ms delay. Link 2-3 has bandwidth 1.5Mb and 10ms delay.
0
\
\
2------3
/
/
1
- Set up TCP connection from node 0 to node 3, add FTP traffic (start
at time 0.5);
- Generate nam trace and show animation;
- Show TCP sequence plot with nam graph;
- Change the size of buffer on link 2-3 to 10, repeat step 2 and 3. What
do you observe? Is that what you expect?
- Re-run simulation with different types of TCP (TCP/Reno and TCP/NewReno),
repeat step 3. What do you observe? Is that what you expect?
- Set up UDP connection from node 1 to node 3, add CBR traffic (packet
size: 1000B, inter-arrival time: 8ms, start at time 1.0), repeat step 3.
What do you observe? Is that what you expect?
- Re-run simulation with different types of TCP, repeat step 3. What do
you observe? Is that what you expect?
Optional task:
- Insert error module on link 2-3, with packet drop rate 1%. Re-run simulations
and show animation.
- Redo the simulation in nam editor.
References: