Web-Server Farm Simulation with Load Balancing Using P2P Links Prompt used: Using NS-3 (C++), write a complete simulation file named farm.cc to be placed in the scratch/ folder and run with ./ns3 run scratch/farm.cc . Scenario: Simulate a web-server farm with load balancing using point-to-point links. The topology should have: 1 client node 1 load balancer node 3 backend web-server nodes All links are point-to-point (set data rate to 10Mbps, delay to 2ms) The load balancer distributes UDP traffic from the client across the 3 servers in a round-robin or equal-split fashion using OnOff applications Use UdpClientServerHelper or OnOffApplication + PacketSink on each server Enable NetAnim output ( animation.xml ) so the topology is visible in NetAnim with node labels (Client, LoadBalancer, Server1, Server2, Server3) Enable FlowMonitor and at the end of the simulation print per-flow stats (throughput, delay, packet loss) to the terminal A...
Engineering Clinic
Its all about Network Simulations (NS2, NS3), Internet of Things, Sensor Networks, Programming, Embedded Systems, Cyber Physical Systems, etc