Skip to content

Section 1 · Computer Networks Lab (NS-3)

Ten NS-3 sessions: point-to-point and dumbbell topologies, UDP and TCP applications, wireless ad-hoc networks with OLSR, tracing, and TCP congestion window analysis.

Updated View as Markdown

Ten NS-3 sessions: point-to-point and dumbbell topologies, UDP and TCP applications, wireless ad-hoc networks with OLSR, tracing, and TCP congestion window analysis.

Objectives

Do not copy. Read for understanding and the viva
  • Explore and understand the features available in the NS-3 software
  • Create wired and wireless connection
  • Test and verify various routing and communication protocols
  • Test and verify user defined routing protocols
  • Perform analysis and evaluation of various available protocols

Sessions

SessionTopicQuestions
Session 1Point-to-point topology and UDP echoQ1 to Q2
Session 2Throughput versus latency and the dumbbell topologyQ3 to Q4
Session 3TCP sockets on the dumbbellQ5 to Q7
Session 4Wireless ad-hoc network with OLSRQ8 to Q9
Session 5UDP over Wi-Fi with tracing and pcapQ10 to Q12
Session 6Fixed-distance ad-hoc nodes and CBR trafficQ13 to Q15
Session 7Mixed TCP and UDP pairsQ16 to Q18
Session 8TCP under UDP interference: congestion window tracingQ19 to Q22
Session 9Saturating the bottleneck and plotting cwndQ23 to Q24
Session 10Parameterised point-to-point link and TCP throughput in WiresharkQ25

Before the first session

Do not copy. Read for understanding and the viva
  • Install NS-3 (3.36 or later) on Ubuntu or in WSL 2; the manual’s section 1.5 has the steps. Build once with ./ns3 configure --enable-examples and ./ns3 build; it takes a while.
  • Scripts live in scratch/ and run with ./ns3 run scratch/name. Start every session by copying the closest example from examples/tutorial/.
  • Keep the script, the console output, the pcap or trace file summary and the plot together for each question. The formula sheet on each session page gives the calculations the evaluator expects.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close