Skip to main content

Posts

Showing posts from July, 2026

Simulation and Analysis of TCP Three-Way Handshake using ns-3 | NS3 Project 20

Simulation and Analysis of TCP Three-Way Handshake using ns-3 Question Generate and analyze Wireshark traces for TCP three-way handshake and data transfer. LLM Used: ChatGPT Prompt: Create a simple point-to-point network topology with 2 nodes (client and server). Use TCP protocol with BulkSendApplication on the client and PacketSink on the server. Configure link parameters such as DataRate and Delay . Enable PCAP tracing so that the output can be opened in Wireshark to observe TCP three-way handshake (SYN, SYN-ACK, ACK) and data packets. Enable FlowMonitor to measure performance metrics such as throughput, delay, and packet loss, and export results to a tcp_output.flowmonitor file. Enable NetAnim and generate an XML file (tcp.xml) for animation visualization. Ensure the program runs using the command: ./ns3 run scratch/24bps1078.cc Include necessary headers, namespaces, and complete working code without errors. Add comments explaining each m...

Simulate a dumbbell topology (10 senders + 10 receivers) with bottleneck link and study queue drop | NS3 Project 19

  Simulate a dumbbell topology (10 senders + 10 receivers) with a bottleneck link and study the queue drop Objective To simulate a dumbbell network topology with 10 senders and 10 receivers connected via two central routers, creating a bottleneck link. The objective is to analyse network congestion and TCP traffic behaviour, and study packet drops resulting from queue overflow at the bottleneck link. Introduction A dumbbell topology describes a network structure consisting of two clusters of nodes connected by a single, shared link, resembling a dumbbell. This architecture is widely used in network simulations to study congestion control mechanisms. When multiple senders transmit data simultaneously across the shared 'bottleneck' link, the incoming aggregate bandwidth often exceeds the link's capacity. As the bottleneck router's queue fills up, any excess packets are dropped, demonstrating congestion and triggering TCP backoff algorithms. Methodology 1. Init...

Effect of Frame Size on Collision Probability and Throughput in a CSMA-Based LAN Using ns-3 Simulation | NS3 Project 18

Effect of Frame Size on Collision Probability and Throughput in a CSMA-Based LAN Using ns-3 Simulation Aim: To study the effect of frame size on collision probability in a CSMA-based LAN by varying frame sizes and observing the corresponding contention behavior and throughput using ns-3 simulation. LLM Used and Prompt LLM Used: ChatGPT (GPT-5.4 Thinking) Prompt Used: Write an ns-3 C++ program runnable using ./ns3 run scratch/24BPS1151.cc to study the effect of frame size on collision probability in a CSMA-based LAN. Use multiple sender nodes connected via a CSMA channel to a receiver node. Vary frame sizes, estimate collision probability using a contention-based proxy, compute throughput, generate output files for plotting graphs, and include NetAnim support. Topology Description The network consists of a shared CSMA LAN topology : 6 Sender Nodes 1 Receiver Node All nodes are connected using a single CSMA bus (shared medium) Key Characteristics: Chan...

Performance Analysis of 50-Node Wireless Network Using NS3 | NS3 Project 17

Performance Analysis of 50-Node Wireless Network Using NS-3 AIM: To simulate a 50-node wireless network using the NS-3 network simulator and perform detailed performance analysis by evaluating key network metrics such as throughput, delay, packet delivery ratio (PDR), packet loss ratio (PLR), and bytes transmitted and received. PROMPT USED: LLM Used: ChatGPT, Claude Generate NS-3 code to simulate a 50-node wireless network using the AODV routing protocol and analyse network performance metrics such as throughput, delay, packet loss ratio, packet delivery ratio and bytes transmitted and received using FlowMonitor. SOURCE CODE: #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/mobility-module.h" #include "ns3/wifi-module.h" #include "ns3/internet-module.h" #include "ns3/aodv-module.h" #include "ns3/applications-module.h" #include "ns3/flow-monitor-module.h...

Simulation of Mixed TCP and UDP Traffic and Their Performance Impact Using ns3 | NS3 Project 16

Simulation of Mixed TCP and UDP Traffic and their Performance Impact Using ns-3 The objective of this experiment is to simulate a network with both TCP and UDP traffic using ns-3 and analyze how they affect each other’s performance in terms of throughput. In computer networks, TCP (Transmission Control Protocol) is a reliable and congestion-controlled protocol, while UDP (User Datagram Protocol) is faster but does not implement congestion control. When both protocols share the same network, their behavior differs significantly. This experiment studies their interaction and performance impact. A network topology with multiple nodes connected using point-to-point links is created in ns-3. TCP traffic is generated using BulkSendApplication and UDP traffic is generated using OnOffApplication . FlowMonitor is used to collect performance metrics such as throughput. NetAnim is used to visualize packet transmission. Source Code #include "ns3/core-module.h" #include ...