Professional Documents
Culture Documents
NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.
Contents
Introduction ........................................................................................................................ 3
Objectives............................................................................................................................ 3
Lab Topology....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Prepare to Monitor Network Performance ................................................................ 6
2 Prepare the Client and the Server Virtual Machines ................................................ 13
3 Measure Network Activity on an ESXi Physical Network Interface .......................... 20
4 Use Traffic Shaping to Simulate Network Congestion.............................................. 23
5 Position the Client and the Server on the Same Port Group .................................... 27
6 Restart the Test and Measure Network Activity ...................................................... 32
Introduction
Objectives
Lab Topology
Lab Settings
The information in the table below will be needed in order to complete the lab. The
task sections below provide details on the use of this information.
In this task, you will start the test program to generate database activity.
1. Launch the sa-student virtual machine to access the graphical login screen.
2. Log in as sysadmin using the password vmware123.
3. Launch the Mozilla Firefox web browser by either clicking on the icon shortcut
found on the bottom toolbar or by navigating to Start Menu > Internet > Firefox
Web Browser.
4. Notice the homepage is automatically configured to load the URL address of the
VMware vCenter Server Appliance (sa-vcsa virtual machine). Click on the Launch
vSphere Client (HTML5) button to launch the HTML5-based vSphere client.
5. In the User name text field, type sysadmin@vclass.local and in the Password text
field, type vmware123. Click on Login.
6. In the left pane, click on Hosts and Clusters and expand the Datacenter inventory
object.
7. In the left pane, select sa-esxi-01.vclass.local and click on the Configure tab.
11. Start esxtop by typing esxtop and press Enter. (By default, esxtop starts with the
CPU screen)
12. Change the update delay from the default (5 seconds) to 10 seconds.
a. Enter s.
b. Enter 10 and press Enter.
14. Remove unused counters to make the esxtop network screen easier to monitor.
a. Click the right of the terminal and drag it to the right to make the terminal wider.
c. In the current field order table, enter g and j to remove PKTRX/s and PKTTX/s
from the esxtop display. Notice the * will be removed from the field you typed.
In this task, you will use scripts on the Linux01 and Linux02 virtual machines to generate
network traffic so that network performance can be measured.
5. In the Networking tab, expand the Datacenter object, then expand the dvs-Lab
distributed switch.
6. Right-click the pg-Production port group and select Migrate VMs to Another
Network.
7. In the Migrate VMs to Another Network window, make sure pg-Production is the
source network. In the destination network, click the Browse link.
9. Click Next.
10. On the Select VMs to migrate step, select Linux02 and click Next.
12. In the left pane, click on Hosts and Clusters and expand the Datacenter inventory
object.
13. In the left pane, right-click Linux02 and select Power > Power On.
14. With Linux02 selected, make sure the Summary tab is selected and wait until the
machine has completely booted. Record the IP address __________ (The IP address
should be 172.20.10.xxx)
It is strongly advised to only utilize the remote console option and not
the web console as problems may arise when attempting to open a
virtual machine’s console through the web console.
d. Verify the server program is running by typing ps -ef | grep netserver and
press Enter.
16. Leave vSphere Client open to continue with the next task.
In this task, you will run measure the network performance of the ESXi host network
interface with the Linux01 and Linux02.
You will need to press Ctrl + Alt to release your mouse from the VM
Remote Console.
It is strongly advised to only utilize the remote console option and not
the web console as problems may arise when attempting to open a
virtual machine’s console through the web console.
3. Click on the Linux01 console and log in as the root user with the VMware1! password.
You will need to press Ctrl + Alt to release your mouse from the VM
Remote Console.
c. After 30 seconds of statistics collection, record the following values for vmnic0
associated with Linux01.
MbTX/s
MbRX/s
In this task, you will use traffic shaping to control the network speed to simulate
congestion.
3. In the left pane, right-click the pg-Production port group and select Edit Settings.
5. In the Traffic shaping step, select Enabled for Ingress and Egress traffic shaping and
give all the values 10000 and click OK.
7. After 30 seconds, record the following for vmnic0 associated with Linux01.
b. In the left pane, right-click the pg-Production port group and select Edit Settings.
d. Select Disabled for Ingress and Egress traffic shaping and click OK.
9. Leave the vSphere Client open and continue to the next task.
5 Position the Client and the Server on the Same Port Group
In this task, you will migrate the Linux02 virtual machine back to the VM Network port
group to show how fast machines on the same ESXi host and virtual switch port group
can communicate.
1. In the left pane, right-click the VM Network port group and click Migrate VMs to
Another Network.
2. In the Migrate VMs to Another Network window, make sure VM Network is the
Source network and click Browse under Destination Network.
4. Click Next.
5. In the Select VMs to migrate step, select Linux02 and click Next.
10. Switch to the Linux02 console and wait for it to boot completely.
11. When Linux02 boots, log in as root with the VMware1! password.
12. Type ifconfig and press Enter. Look for the IP address (inet addr). (The IP address
for Linux02 should now be in the 172.20.11.xxx range). Record the IP address for
later use.
13. Leave the vSphere Client open and continue to the next task.
In this task, you will measure network activity between the client and server
communicating across a virtual network on the same ESXi host and port group.
You will need to press Ctrl + Alt to release your mouse from the VM
Remote Console.
3. Click inside the Linux01 console, if a script is still running, press Ctrl+C to end it.
Type ./nptest1.sh server_IP_address, where server_IP_address is the Linux02 IP
address recorded earlier.
5. After 30 seconds of collection, record the values for vmnic0 associated with Linux01.
MbTX/s
MbRX/s