Skip to main content

Posts

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: - 1. Create a simple point-to-point network topology with 2 nodes (client and server). 2. Use TCP protocol with BulkSendApplication on the client and PacketSink on the server. 3. Configure link parameters such as DataRate and Delay. 4. 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. 5. Enable FlowMonitor to measure performance metrics such as throughput, delay, and packet loss, and export results to a tcp_output.flowmonitor file. 6. Enable NetAnim and generate an XML file(tcp.xml) for animation visualization. 7. Ensure the program runs using the command: ./ns3 run scratch/24bps1078.cc 8. Include necessary headers, namespaces, and complete working code without errors. 9. Add com...

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...