Windows Server-------BranchCache

Source: Internet
Author: User
Tags dedicated server domain server

BranchCache technology is introduced from 2008R2 and Win7, which reduces WAN bandwidth usage between the division and the headquarters by caching those used files locally on the computer in the Division frequently. BranchCache uses the following protocols to improve application performance:

1.HTTP or HTTPS protocol. These protocols are used by Web browsers and other applications.

2.SMB (Server message block), including the signed SMB traffic protocol. This protocol is used to access shared folders.

3.BITS (Background Intelligent Transfer Service). This is a Windows component that publishes the contents of the server to the client only with idle network bandwidth. BITS is also applied to the SCCM manager in Microsoft.

BranchCache improves the responsiveness of commonly used applications to accessing internal servers in a slow network. BranchCache does not require additional infrastructure, and you can improve the performance of remote networks by deploying WIN7 or newer client computers and WIN2008R2 versions of servers, and enabling the BranchCache feature.

BranchCache file and folder permissions guarantee that users can only access files and folders that have permissions. BranchCache can be seamlessly integrated with network security technologies, including SSL,SMB signatures and end-to-end IPSec. Even if it can be encrypted, BranchCache can be used to reduce network bandwidth usage and improve application performance.

BranchCache has two modes, hosted cache mode, and distributed cache mode.

Hosted cache mode: This mode is used primarily for branch offices, where a win2008r2 version of the server is built as a hosted cache server. When the hosted cache for this server is in effect, the client computer obtains the content from the hosted cache for this server. If the content in the hosted cache is not valid, the hosted cache server connects to the server that holds the content over the network, and then puts the acquired content into the hosted cache so that the client that successfully requests it can retrieve the content from it.

Distributed Cache mode: This mode is more suitable for smaller branch offices, and it does not require a dedicated server to be the cache location. However, this mode can only be used in separate subnets, and if the user caches client computers that are dormant or unable to connect, other clients that request content cannot retrieve the content.

With BranchCache, you can apply both modes to an enterprise, but each branch office function configures a pattern.

In Win2012r2, BranchCache has the following improvements:

1. Allow extensibility, BranchCache can set up multiple hosted cache servers at each location.

2. A new underlying database that uses the Extensible Storage Engine technology introduced from the Exchange server. This technology allows a hosted cache server to store more data, and the data can be up to terabytes in capacity.

3. A simpler deployment method eliminates the need to set up a GPO for each zone. Deploying BranchCache requires only a set of GPOs, and when users move between zones, clients can switch between hosted cache and distributed cache mode, without the need to use GPOs for specific sites.


After the client and server have BranchCache enabled, if the client computer uses the HTTP,HTTPS or SMB protocol, the client computer obtains the data through the following steps:

1.win8.1 client computers connect to a WIN2012 content server at Headquarters, the content originally requested will not be used for BranchCache

2. The content server at Headquarters authenticates the requesting user and confirms that the user has permission to access the data.

3. The content server at Headquarters returns a hash value as the identifier for the requested content to the client computer, rather than the content itself. Typically, the content server sends data using the same connection as it was previously sent.

4. Using the retrieved identifiers, the client computer uses the following methods:

I. If the client computer is configured as a distributed cache, it will find other client computers that have downloaded the content by broadcasting it in the local subnet.

II. If the client computer is configured as a hosted cache, it searches for content in the configured hosted cache.

5. If the content in the branch office is valid, the client computer retrieves the content on one or more clients or hosted caches in the branch office. The client computer needs to verify that the data has been updated and has not been tampered with or corrupted.

6. If the content at the remote office location is invalid, the client computer will obtain content directly from the content server over the WAN network. This client computer can use distributed caching to get valid content from other client computers that make requests on the local network, or to send content to the hosted cache in managed cache mode.


Requirements for configuring BranchCache:

The client operating system needs to be Win7 and above the enterprise or the ultimate version, the server operating system needs WIN2008R2 and above version

Using BranchCache for file services requires the following actions:

1. Install the BranchCache feature or the network file BranchCache role on the WIN2012R2 hosting server.

2. Configure the client computer with PowerShell command enable-bchostedclient or Group Policy or the Netsh branchcache set service command.

If you want to cache the contents of a file server using branch buffers, you must perform the following steps:

1. Install the network files on the file server BranchCache role Services

2. Configuring the hash publishing mechanism for BranchCache

3. Create a BranchCache-enabled file share

If you want to cache the contents of a Web server using branch buffers, you must install the Branchecache feature on the Web server, but you do not need to do any additional configuration.

The BranchCache feature is not available on servers that have the Hyper-V role installed in WIN2008R2 Enterprise Edition core mode and WIN2012R2 Datacenter Edition.

In distributed cache mode, BranchCache does not require a dedicated server, but is applied between clients in the same site. If a client computer is configured to use distributed cache mode, any client computer can use the Ws-discovery broadcast protocol to search for a local computer that has downloaded and cached the content. You need to configure the client firewall for inbound traffic, HTTP and Ws-discovery.

However, the win8.1 client will search the hosted cache server, and if a hosted cache server is found, it will automatically configure the client to be hosted cache mode. In hosted cache mode, client computers automatically configure themselves as clients that host cached mode and search for hosted cache servers so that they can get content from the hosted cache.


BranchCache Configuration Experiment Demo:

Environment Introduction:

LON-DC1 WIN2012R2 Domain Server

LON-SVR2 WIN2012R2 member Server


The role of the BranchCache for network files is first installed on LON-DC1, which is located in file and storage services, file and iSCSI services

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/FD/wKiom1RIwlDi3o6TAASQvpst8JY331.jpg "title=" QQ picture 20141023165116.jpg "alt=" Wkiom1riwldi3o6taasqvpst8jy331.jpg "/>

Subsequent operations are set to the default value, starting the installation of network files BranchCache

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/FD/wKiom1RIw2Tzdm4ZAAL4Osvlt54941.jpg "title=" QQ picture 20141023165628.jpg "alt=" Wkiom1riw2tzdm4zaal4osvlt54941.jpg "/>

After the installation succeeds, open Local Group Policy with Gpedit.msc on LON-DC1, locate the hash publication for the BranchCache in the Computer configuration-Administrative Templates-network-lanman server, and enable it, and the hash publish operation remains the default.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/FE/wKioL1RIxoiwhFv6AAbBBzrAPnk866.jpg "title=" QQ picture 20141023170658.jpg "alt=" Wkiol1rixoiwhfv6aabbbzrapnk866.jpg "/>

Create a new policy by simulating a slow network with local Group Policy settings, configuring-windows settings on the computer, LON-DC1 policy-based QoS

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/FE/wKioL1RIzPvw_QJ6AAN_RaPYc9k043.jpg "title=" QQ picture 20141023173738.jpg "alt=" Wkiol1rizpvw_qj6aan_rapyc9k043.jpg "/>

The policy is named 100Kbs, the value of the specified outbound mediation rate is set to 100, and subsequent leave the default Completion wizard

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/FD/wKiom1RIzsuwVkxAAAOovFElnh4874.jpg "title=" QQ picture 20141023174704.jpg "alt=" Wkiom1rizsuwvkxaaaoovfelnh4874.jpg "/>

Create a folder named folders in the C-drive of LON-DC1 and enable advanced sharing in the folder's properties

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/FE/wKiom1RIz6HxCE4sAAM1ijwxhpY106.jpg "title=" QQ picture 20141023175033.jpg "alt=" Wkiom1riz6hxce4saam1ijwxhpy106.jpg "/>

On the Advanced share open cache option and tick enable BranchCache

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/FE/wKiom1RI0I3xSMQ7AAMbzGd143o279.jpg "title=" QQ picture 20141023175439.jpg "alt=" Wkiom1ri0i3xsmq7aambzgd143o279.jpg "/>

Put a file in the folder and copy a MSPaint.exe file in this experiment

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4C/FE/wKiom1RI0brxNSJtAAHu2v2P3dg530.jpg "title=" QQ picture 20141023175934.jpg "alt=" Wkiom1ri0brxnsjtaahu2v2p3dg530.jpg "/>

Using Gpmc.msc on LON-DC1 to open Group Policy Manager, create a new Branchcachefirewall Group Policy to configure the client's firewall

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/FF/wKioL1RI02-iKZBcAAMJ6S1-O7s618.jpg "title=" QQ picture 20141023180535.jpg "alt=" Wkiol1ri02-ikzbcaamj6s1-o7s618.jpg "/>

Set up two inbound firewall rules in the new Group Policy, select branchcache-Peer Discovery (using WSD) and branchcache-content retrieval (using HTTP) in the predefined

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4C/FF/wKioL1RI1P7Q43hMAARlLxdovMo384.jpg "title=" QQ picture 20141023180855.jpg "alt=" Wkiol1ri1p7q43hmaarllxdovmo384.jpg "/>

Policy settings Complete

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4C/FE/wKiom1RI1QDwC98gAANA-1SXMgY405.jpg "title=" QQ picture 20141023181333.jpg "alt=" Wkiom1ri1qdwc98gaana-1sxmgy405.jpg "/>


Windows Server-------BranchCache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.