Skip to main content

Posts

Showing posts from July, 2026

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. #include "ns3/core-module.h" #include "ns3/network-module.h...