Documente Academic
Documente Profesional
Documente Cultură
by Step Guide
Microsoft Corporation
Published: March, 2010
Author: James McIllece
Editor: Scott Somohano
Abstract
BranchCache is a wide area network (WAN) bandwidth optimization technology that is included in
some editions of the Windows Server® 2008 R2 and Windows® 7 operating systems. To optimize
WAN bandwidth, BranchCache copies content from your main office content servers and caches
the content at branch office locations, allowing client computers at branch offices to access the
content locally rather than over the WAN.
This step by step guide provides instructions on how to deploy BranchCache in distributed cache
mode on a test network.
The information contained in this document represents the current view of Microsoft Corporation
on the issues discussed as of the date of publication. Because Microsoft must respond to
changing market conditions, it should not be interpreted to be a commitment on the part of
Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the
date of publication.
This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES,
EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.
Complying with all applicable copyright laws is the responsibility of the user.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.
Unless otherwise noted, the example companies, organizations, products, domain names, e-mail
addresses, logos, people, places, and events depicted herein are fictitious, and no association
with any real company, organization, product, domain name, e-mail address, logo, person, place,
or event is intended or should be inferred.
Your right to copy this documentation is limited by copyright law and the terms of the software
license agreement. As the software licensee, you may make a reasonable number of copies or
printouts for your own use. Making unauthorized copies, adaptations, compilations, or derivative
works for commercial distribution is prohibited and constitutes a punishable violation of the law.
© 2010 Microsoft Corporation. All rights reserved.
Microsoft, Active Directory, Windows, Windows NT, and Windows Server are either registered
trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
All other trademarks are property of their respective owners.
Contents
BranchCache Distributed Cache Mode Step by Step Guide...........................................................1
Abstract....................................................................................................................................1
Contents..........................................................................................................................................3
Additional Resources....................................................................................................................27
BranchCache Step-by-Step Guide:
Demonstrate Distributed Cache Mode in a
Test Lab
BranchCache is a wide area network (WAN) bandwidth optimization technology that is included in
some editions of the Windows Server® 2008 R2 and Windows® 7 operating systems.
To optimize WAN bandwidth, BranchCache copies content from your main office content servers
and caches the content at branch office locations, allowing client computers at branch offices to
access the content locally rather than over the WAN.
Note
Note
Content information is very small in size compared to the actual content that it
represents. For example, if a Web page and related content (such as images on the Web
page) are around 185,000 bytes, content information for that content can be as small as
around 200 bytes.
Note
To perform the steps in this guide, virtual computers, also called virtual machines (VMs),
can be used instead of physical computers if you are running a version of Windows
Server 2008 R2 that supports Hyper-V, and if the operating system on the VM supports
BranchCache.
Note
On computers running Windows 7, before the System Properties dialog box
opens, the User Account Control dialog box opens, requesting permission to
continue. Click Continue to proceed.
3. Click Change. The Computer Name/Domain Changes dialog box opens.
4. In Computer Name, type the name for your computer based on the values provided
in this topic. For example, if you are configuring your content server, type Content-01.
5. Click OK twice, click Close, and then click Restart Now to restart the computer.
Note
You must be a member of the IIS 7 Administrators group to perform this procedure.
Note
If an informational dialog box notifies you of required dependencies, click Add
Required Role Services to accept installation of the dependencies.
5. On the Web Server (IIS) page, click Next.
6. On the Select Role Services page, note the preselected role services that are
installed by default, and then click Next.
Note
You only have to install the IIS 7 default role services for a static content Web
server.
7. On the Confirm Installation Selections page, confirm your selections, and then click
Install.
8. On the Installation Results page, confirm that your installation of the Web Server (IIS)
role and required role services completed successfully, and then click Close.
9. To verify that IIS installed successfully, type the following into a Web browser:
http://localhost
Internet Explorer opens with the Set Up Windows Internet Explorer 8 dialog box in the
foreground. To close the dialog box, click Ask Me Later. In Internet Explorer, the default
Web site on your Web server with the II7 welcome Web page is displayed.
Install the BranchCache feature
You can use this procedure to install the BranchCache feature and start the BranchCache service
on the BranchCache Web content server, Content-01.
Membership in Administrators, or equivalent is the minimum required to perform this procedure.
Important
The BranchCache service startup type is Automatic, which means that the
BranchCache service starts whenever the computer is restarted. It is
recommended that you keep the startup type value set to Automatic.
Install the WINS feature
Windows Internet Name Service (WINS) enables computers running Windows to find other
computers using NetBIOS across subnets. Some programs rely on WINS to function across the
network, however BranchCache does not require WINS - you can use either WINS or DNS for
name resolution services when you deploy BranchCache.
For this step-by-step guide, WINS is used for name resolution services because it is easy to
deploy in a test lab environment.
Membership in Administrators, or equivalent, is the minimum required to perform this procedure.
To install WINS
1. Do one of the following:
a. In Initial Configuration Tasks, in Customize This Server, click Add Features.
The Add Features Wizard opens.
b. Click Start, click Administrative Tools, and then click Server Manager. In the
left pane of Server Manager, click Features, and in the details pane, in Features
Summary, click Add Features. The Add Features Wizard opens.
2. In Select Features, in Features, scroll down the list, select WINS Server, and then
click Next.
3. In Confirm installation selections, click Install.
4. In Installation Results, review your installation results, and then click Close.
3. To add BranchCache counters, click the graph toolbar icon that is a green plus sign
(+). The Add Counters dialog box opens. In the left pane, scroll to BranchCache Kernel
Mode, and click to expand the list of BranchCache Kernel Mode counters. Click Client
Cache Miss Bytes, hold down the Ctrl key, and then click Server Cache Miss Bytes,
Hash Bytes, and Projected Server Bytes Without Caching.
4. Click Add, and then click OK.
Important
You must perform this procedure on all three client computers to successfully deploy
BranchCache in your test lab.
Membership in Administrators, or equivalent is the minimum required to perform this procedure.
Note
Running the netsh branchcache set service command both configures the
client computer for distributed cache mode and automatically configures the
client computer firewall with the following inbound exceptions for distributed
cache mode: TCP port 80 and UDP port 3702.
3. To verify that BranchCache distributed cache mode is correctly configured on the
client computer, run the following command: netsh branchcache show status. The
BranchCache Service Status is displayed in the command prompt window with the
following values: Service Mode: Distributed Caching; Serve peers on battery power:
Disabled; and Current Status= Running.
Important
In order for you to successfully perform the procedures in this guide, Content-01 must
register its own record in the WINS database. If Content-01 has not registered a record in
WINS, configure the TCP/IP v4 properties of the network connection on Content-01 with
its own IP address as the WINS server. This will cause Content-01 to register its own
record if it has not already done so.
Note
A Microsoft WINS server record includes the WINS client NetBIOS name, IP address,
and a value called a version ID. When you release and renew the record, an existing
record’s version ID is incremented or a new record is registered. When you run nbtstat
-RR, a timer is invoked so that the command cannot be successfully run again for 2
minutes. This delay is provided to prevent a WINS server from becoming saturated by
client renewal requests. The –RR portion of the command syntax is case sensitive.
4. Click Add, and then click OK. Note that the values for both BranchCache counters
are zero.
5. On Client-01, click Start, click Search programs and files, type http://content-01,
and then press ENTER.
6. Internet Explorer opens with the Set Up Windows Internet Explorer 8 dialog box in
the foreground. To close the dialog box, click Ask Me Later. In Internet Explorer, the
default Web site on your Web server with the II7 welcome Web page is displayed.
7. Return to Performance Monitor to review the statistics in Report view. Note that
Client-01 obtained the Web page from the content server, and did not receive any content
information, so both BranchCache counters maintain a value of zero.
5. On Client-02, click Start, click Search programs and files, type http://content-01,
and then press ENTER.
6. Internet Explorer opens with the Set Up Windows Internet Explorer 8 dialog box in
the foreground. To close the dialog box, click Ask Me Later. In Internet Explorer, the
default Web site on your Web server with the II7 welcome Web page is displayed.
7. Return to Performance Monitor to review the statistics in Report view. Note that
Client-02 obtained the Web page and the content information from the content server.
The counter Retrieval: Bytes from cache maintains a value of zero bytes, while the
counter Retrieval: Bytes from server has a changed value of 185,144.000 bytes.
Additional Resources
For more information about the technologies in this guide, see the following resources:
• BranchCache Design Guide
• BranchCache Deployment Guide
• Network Shell (Netsh) Commands for BranchCache
• IIS 7 Deployment Guide
• WINS Product Help (Windows Server 2003)
Note
The documentation for WINS is not updated for Windows Server® 2008 R2. Aside
from some software engineering changes that make WINS less vulnerable to
malicious attack, WINS functionality is not changed from that available in the
Windows Server® 2003 operating systems.