A Wireless Local Area Network With Mobile Stations
A Wireless Local Area Network With Mobile Stations
A Wireless Local Area Network With Mobile Stations
LAB4
4
Mobile Wireless Network
A Wireless Local Area Network with Mobile Stations
Objective
This lab simulates mobility in wireless local area networks. We’ll study the effect of
mobility on the TCP performance. In addition, the lab examines how the request to
send (RTS) and clear to send (CTS) frames are utilized in avoiding the hidden node
problem usually induced by mobility in WLANs.
Procedure
Create a New Project
1. Start OPNET IT Guru Academic Edition →Choose New from the File menu.
2. Select Project and click OK →Name the project <your initials>_MobileWLAN,
and the scenario Mobile_noRTSCTS Click OK.
3. In the Startup Wizard: Initial Topology dialog box, make sure that Create Empty
Scenario is selected →Click Next →Select Campus from the Network Scale list
→Click Next →Make sure that Kilometer is the unit chosen for the Size and then
assign 2 and 1 to the X Span and Y Span, respectively →Click Next twice →Click
OK.
2
Configure the applications in the server and clients:
1. Right-click on the FTP_Server node Edit Attributes.
a. Edit the Server Address attribute →Assign the value FTP_Server to
it.
b. Edit Application: Supported Services →Set rows
to 1 →Set Name to FTP_Application →Click OK
twice.
3
4. Right-click on ClientA →Edit Attributes →Assign <your initials>_
left_trajectory to the trajectory attribute →Click OK.
5. The new trajectory should look exactly like the following one. Right-click on the
trajectory and select Edit Trajectory.
6. In the Edit Trajectory Information dialog box, verify that the trajectory info
matches the values shown in the following figure:
Note: The trajectory makes ClientA start moving after 2 min from the
beginning of the simu- lation. ClientA waits at X Pos 0.5 for 1 min and at
X Pos 0.25 for 20 s.
5
Run the Simulation
To run the simulation for both scenarios simultaneously:
1. Go to the Scenarios menu →Select Manage Scenarios.
2. Click on the row of each scenario, and click the Collect Results button.
This should change the values under the Results column to <collect>
as shown.
5. Go back to the Compare Results dialog box →Expand the TCP Connection
hierarchy for the ClientA →Select the Traffic Received (bytes) statistic
→Select sample_sum to replace As Is as shown in the following figure
→Click Show.
6. Repeat the above step for the Traffic Received (bytes) by ClientB.
7. The resulting graphs should resemble the following graphs.
7
Questions
1) Explain how Load and Congestion Window Size are affected by the mobility of
ClientA.
2) Explain how enabling RTS/CTS helps in avoiding the hidden node problem and
hence explain the effect of RTS/CTS frames on the network performance.
3) The graphs show that the server terminates the FTP session with ClientA
earlier if RTS/CTS is enabled. However, the server terminates the FTP
session with ClientB later if RTS/CTS is enabled. Explain why.
4) Create a new scenario as a duplicate of the Mobile_noRTSCTS scenario.
Name the new
5) scenario twoMobiles_noRTSCTS. Create a second new scenario as a
duplicate of the Mobile_RTSCTS scenario. Name the second new scenario
twoMobiles_RTSCTS. In both new scenarios, edit the attribute of the
FTP_Server, and assign <your initials>_ left_trajectory to its trajectory
attribute. Run the simulation for all scenarios and create the graphs for the
Load (bits/sec), Congestion Window Size (bytes), and Traffic Received
(bytes) statistic results, as we did in this lab. Analyze the graphs explaining
the effect of the server mobility on the network performance.