Lab Setup: Before starting emulation, ensure that the real traffic that is generated at the NetSim Client (say Ping or Iperf traffic) is routed through NetSim Emulator System. This means the traffic just flows through the system (OS) and doesn't yet flow through NetSim.
- The Lab Setup where, Client 1 generates traffic, and Client 2 is the real destination to receive the traffic.
- Route the traffic generated by Client 1 via NetSim Emulation server. This is achieved by configuring static routes in the network. Please refer section 2.2.
Next, we create the scenario in NetSim, and this time run the emulator, whereby the traffic flows through NetSim. The steps to do this are:
- On NetSim Emulation Server, run NetSim in administrative mode and choose TDMA Radio Networks and create a scenario
- Click on the Application icon present on the ribbon and set properties.
- In the Application Type select Emulation.
- Select Source and Destination ID according to the network scenario and change the Source and Destination IP address according to the IP address of the real system.
Next, we change a property and see the effect. For example, change the PHY rate. The parameters that can be varied are:
- Frequency Band: L- Band
- Data Symbol Rate: 128kBd
- Modulation Tech: QPSK
- Coding Rate: 1/2
- Min Slot Per Device: 0
- Static Route from Source to Destination
Right Click on Wireless node > Properties > Interface Layer > Physical Layer change parameters highlighted in the figure below. Ensure that you perform this in both the nodes since some of the parameter’s scope is local in the Network.
Steps to Set Static Route in NetSim#
- Go to Display Settings > Check Device IP
- Now go to Wireless Node properties->Network_Layer. Enable - Static IP Route ->Click on Configure Static Route IP and set the properties as per the screenshot below and click on Add and then click on OK.
- Add appropriate route from Source Node to Destination Node and vice versa
For Source Node:
For Destination Node:
Provide the Simulation Time as how long you want the Emulation to be performed. Make sure client system(s) are ready and then click Run Simulation.
Now notice the following change in the iperf traffic. Let NetSim Client 1 be the Iperf Client and NetSim Client 2 be iperf server. Then commands at
Iperf Server: iperf.exe -s -u -P 0 -i 1 -p 5001 -f k
Iperf Client: iperf.exe -c 192.168.0.154 -u -P 1 -i 1 -p 5001 -f m -b 1.0M -t 100000 -T 1
Perform the steps at Emulation Server as provided and simulate. During simulation, generate 1 Mbps at iperf client (NetSim Client 1) to NetSim Client 2. You will notice that the even though the iperf client is generating 1Mbps iperf server will be receiving less than 120Kbps. This is because the network created in NetSim has PhyRate (wireless link capacity) set to 120Kbps.
Iperf Client Generating 1 Mbps traffic:
Iperf Server receiving 120Kbps since Phyrate has been set to 120Kbps in NetSim