ACN Lab 4
ACN Lab 4
MIS No:
1. 712422001
2. 712422017
Snapshot of Execution:
Procedure
1. Setup:
o The simulation was scripted in NS-2 with specific node positions
and link configurations.
o NAM trace file (out.nam) was generated to visualize the network.
2. Execution:
o The simulation ran for 5 seconds, with events scheduled for
starting/stopping traffic flows and queue monitoring.
o NAM was used to observe the animation.
Observations
Network Behavior
1. Traffic Visualization in NAM:
o The TCP (FTP) traffic from n0 to n3 was represented with a blue
color.
o The UDP (CBR) traffic from n1 to n3 was represented with a red
color.
2. Queue Dynamics on Link (n2-n3):
o The queue size of the link between n2 and n3 was limited to 10
packets.
o Packet drops were observed when the queue reached its capacity,
which was caused by the combined TCP and UDP traffic exceeding
the link's capacity.
3. Data Flow:
o UDP (CBR) traffic began first at 0.1s, followed by TCP (FTP)
traffic at 1.0s.
o FTP stopped at 4.0s, and CBR stopped at 4.5s, allowing
observation of independent and overlapping traffic flows.
4. Delay and Bandwidth Impact:
o The link with 20 ms delay and 1.7 Mbps bandwidth (n2 to n3)
created a bottleneck, impacting both TCP and UDP traffic.
Conclusion
This simulation demonstrated the interaction between TCP and UDP traffic over
a shared bottleneck link. Key takeaways include:
1. Congestion Dynamics: The limited queue size on the n2-n3 link resulted
in packet drops.
2. TCP vs. UDP Behaviour: TCP adjusted to congestion via
retransmissions, while UDP continuously sent packets, leading to higher
packet loss for UDP traffic.
3. Importance of Configurations: Link bandwidth, delay, and queue size
significantly impact overall network performance.
Future simulations could include larger topologies, varying traffic types, or
implementing Quality of Service (QoS) techniques for better traffic
management.