Sie sind auf Seite 1von 7

Microsoft Virtual Labs

Managing Network Bandwidth


using Windows Quality of
Service (QOS)
Managing Network Bandwidth using Windows Quality of Service (QOS)

Table of Contents
Managing Network Bandwidth using Windows Quality of Service (QOS) ............................ 1
Exercise 1 Throttle File Transfer Traffic With the QoS Policy Wizard ........................................................................2
Managing Network Bandwidth using Windows Quality of Service (QOS)

Managing Network Bandwidth using


Windows Quality of Service (QOS)
After completing this lab, you will be better able to:
Objectives  Control bandwidth usage using protocol definitions
 Control bandwidth usage for a specific application
In this lab you will use Policy-based QoS to control the way Windows Longhorn
Scenario Server and Windows Vista communicate on the network. You will use Group
Policy to create a group of Policy-based QoS rules which limit the bandwidth
allocated to applications and ports. You will first learn assign a bandwidth
allocation to all network traffic sent to a specific port. You will then assign a
DSCP value to all traffic generated by a specific application.
Note: During the course of this lab you may encounter one or more User
Account Control prompts. These prompts will ask you to confirm an action you
have just taken. When you encounter a User Account Control prompt, select the
option which confirms the action you have taken and you will be able to proceed
with the next step in the exercise. A shield icon appears after each instruction
which invokes a User Account Control dialog box.
Note: The steps in this lab are intended to provide an overview of the technology
presented. They are not intended to, and may not follow, Microsoft best
practices or guidance on the technology presented.
Note: This lab uses pre-release software. While every effort has been taken to
ensure the functionality of the steps documented, some steps may still not
function as intended at all times.
Before working on this lab, you must have:
Prerequisites • An understanding of network protocols and applications.
• An understanding of Active Directory directory service.
• An understanding of group policy.

Estimated Time to 60 Minutes


Complete This Lab
Server1
Computer used in this Lab
Client1

Page 1 of 5
Managing Network Bandwidth using Windows Quality of Service (QOS)

Exercise 1
Throttle File Transfer Traffic With the QoS Policy Wizard

Scenario
In this exercise you will identify how much bandwidth a client NetBIOS file transfer consumes. You will then use
the Windows Vista QoS Policy Wizard to create a policy to limit the amount of bandwidth clients can use when
uploading to the file server. You will link this policy to an Active Directory organizational unit that contains the
client computer account. You will then perform the test upload again and observe the results, verifying that the
policy only applies to client NetBIOS file transfers.

Tasks Detailed Steps


Complete the following Note: In this task you will create a custom MMC console which contains a set of
task on: network monitoring tools. You will add the new Reliability and Performance
monitoring snap-in. You will use this tool to monitor the total bytes/sec being
transferred between Server1 and Client1 both before and after a QoS policy has been
Server1 applied.
1. Create a Custom Note: Perform this task on Server1 as DonHall.
Administrative Tool
Note: Logon to the server using following credentials:
to Monitor the
Effects of QoS User name: DonHall
Password: P@ssw0rd
Domain: CONTOSO
a. On the Start menu, in Start Search type MMC and then press ENTER.
b. On the File menu, click Add/Remove Snap-in.
c. In Add or Remove Snap-ins, under Available snap-ins, select Reliability and
Performance Monitor, click Add and then click OK.
d. In Console1, navigate to Console Root\Reliability and Performance
(Local)\Monitoring Tools\Performance Monitor.
e. In the contents pane, right-click the white graph area, and then click Add
Counters.
f. In Add Counters, under Available Counters, expand Network Interface, and
then select Bytes Total/sec.
Note: You will have to scroll up to find Network Interface.
g. In the Instances of selected object, select Intel 21140-Based PCI Fast Ethernet
Adapter (Emulated), click Add and then click OK.
h. In Performance Monitor, in the middle pane at the bottom, double click the Bytes
Total/Sec counter.
i. In the Performance Monitor Properties dialog box, in Scale, select 0.001 and
then click OK.
j. In Console1, click File and then click Save As.
k. In the Save as dialog box select Desktop, in File Name type Network Activity
and then click Save.
l. Leave Network Activity open and maximized.
Complete the following Note: In this task you will map a drive to the file share on Server1 and perform a
task on: NetBIOS test upload, using the monitoring tools to observe network utilization. In
order to effectively monitor network utilization, you must quickly switch between the

Page 2 of 5
Managing Network Bandwidth using Windows Quality of Service (QOS)
Tasks Detailed Steps
Server1 and Client1 computers.
Client1 Note: Perform this task on Client1 as DonHall.
2. Perform a test upload Note: Logon to the server using following credentials:
User name: DonHall
Password: P@ssw0rd
Domain: CONTOSO
a. On the Client1 Start menu, in Start Search type cmd then press ENTER.
b. In the Command Prompt window type copy /y C:\Windows\Media\*.wav
\\Server1\Public then press ENTER.
c. Quickly switch to Server1, toggle back to the Network Activity window, and
select Performance Monitor to observe the Last and Maximum number of Bytes
Sent/sec being reported. Compare this to the previously observed values.
Note: In our test lab, Performance Monitor reported a maximum rate of
approximately 2 megaBYTES/sec. Performance Diagnostic Tools reported a peak
rate in excess of 10 megaBITS/sec. Your results may be different.
Complete the following Note: In this task you will create a new Organizational Unit and corresponding Group
task on: Policy object. You will configure the new Group Policy object to deploy a Policy-
based QoS rule that limits traffic sent to port 445 on a specific computer to 64KBPS.
This policy is used for demonstration purposes only. Limiting Port 445 globally can
Server1 cause serious performance loss when using network resources. In addition, this task
3. Create a QOS Policy limits communication to a specific IP address. In actual deployment, you can limit
for Managed deployment to a group of IP addresses, such as a subnet, by entering the subnet ID
Desktops instead of a single IP address.
Note: Perform this task on the Server1 computer as DonHall.
a. On the Start menu, in Start Search, type GPMC.MSC and then click OK.
b. In Group Policy Management Console, navigate to Contoso.com.
c. Select Contoso.com, and then on the Action menu, click New Organizational
Unit.
d. Create a new organizational unit named Managed Desktops.
e. Select the Managed Desktops organizational unit, and then on the Action menu,
click Create a GPO in this domain, and Link it here.
f. Create a new GPO named Managed Desktops QOS Policy.
g. Select Managed Desktops QOS Policy and then on the Action menu, click Edit.
h. In Group Policy Object Editor, navigate to Computer Configuration\Windows
Settings and then click Policy-based QoS.
i. On the Action menu, click Create new policy.
j. Complete the Policy-based QoS wizard using the following information.

Setting Value
Policy name: File Transfer Bandwidth
Throttling
Specify DSCP Value Unchecked
Specify Throttle Rate: Checked
Throttle Rate: 64KBps
Applications: All applications
Source IP Address Any source IP address

Page 3 of 5
Managing Network Bandwidth using Windows Quality of Service (QOS)
Tasks Detailed Steps
Destination IP Address 172.16.10.1
Protocol TCP
Source Port Any source port
Destination Port 445
k. Click Start, navigate to All Programs/Administrative Tools, and then click
Active Directory Users and Computers.
l. In Active Directory Users and Computers, navigate to
Contoso.com/Computers.
m. Move the Client1 computer account to the Managed Desktops organizational
unit.
n. On the Start menu, navigate to All Programs\Accessories, right-click Command
Prompt and then click Run as administrator.
o. In the command prompt, type the following command and then press ENTER.

Net Start MSFTPSVC


Note: This command will ensure the FTP service is running.
Complete the following 2 Note: In this task you will apply your new bandwidth throttling policy and perform a
tasks on: new file transfer test, comparing the results to your earlier test. You will use the
GPUPDATE command to apply the policy without restarting the Client1 computer. In
order to update computer policy on Client1, you will need to start an Administrator
Client1 level command prompt. A standard command prompt does not have the authority to
4. Perform a new test perform this task, even when you are logged on as a user who is a member of the
Administrators local group.
Perform this task on Client1 as DonHall.
a. On the Start menu, navigate to All Programs\Accessories, right-click Command
Prompt and then click Run as administrator.
b. In the Command Prompt window type gpupdate /force /target:computer, then
press ENTER. Wait for the message that the refresh has completed successfully.
c. Type gpresult then press ENTER.
d. Scroll through the results.
e. In the Command Prompt window, type copy /y C:\Windows\Media\*.wav
\\Server1\Public then press ENTER.
f. Quickly switch to Server1, toggle back to the Network Activity window, and
select Performance Monitor to observe the Last and Maximum number of Bytes
Sent/sec being reported.
g. In Network Activity, select Reliability and Performance (Local), and then click
the Network graph.
5. Verify that the Note: In this task you will use the FTP.EXE program to transfer the same set of files
bandwidth throttling to Server1. FTP.EXE transfers files using port 20, so it is not subject to the bandwidth
policy does not apply limitation defined in the policy.
to other kinds of Note: Perform this task on Client1 as DonHall.
traffic.
a. In the Command Prompt window, type ftp Server1
b. When prompted for a username, type Administrator. When prompted for a
password, type P@ssw0rd and then press ENTER.
c. Type bin then press ENTER.
d. Type prompt then press ENTER.

Page 4 of 5
Managing Network Bandwidth using Windows Quality of Service (QOS)
Tasks Detailed Steps
e. Type mput c:\windows\media\*.wav then press ENTER
f. If Windows Security Alert asks if you want to keep blocking this program click
Unblock.
g. Quickly switch to switch to Server1, toggle back to the Network Activity
window, and select Performance Monitor to observe the results. If necessary,
repeat Steps c – g to re-capture statistics.

Page 5 of 5

Das könnte Ihnen auch gefallen