Home
%3CLINGO-SUB%20id%3D%22lingo-sub-377270%22%20slang%3D%22en-US%22%3EOur%20journey%20to%20peer%20content%20distribution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377270%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TECHNET%20on%20Oct%2016%2C%202018%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CH2%20id%3D%22toc-hId-1679885624%22%20id%3D%22toc-hId-1708394440%22%3EThe%20lead%20up%3C%2FH2%3E%3CBR%20%2F%3E%20Here%20within%20Microsoft%20we%20pride%20ourselves%20as%20being%20the%20%E2%80%9Cfirst%20and%20best%E2%80%9D%20consumer%20of%20ConfigMgr%20features.%26nbsp%3B%20With%20that%20comes%20early%20learning%20and%20a%20little%20bit%20of%20pain%20as%20we%20try%20features%20early%20in%20the%20development%20cycle%2C%20and%20with%20code%20that%20is%20sometimes%20not%20fully%20tested%20or%20implemented%20as%20full%20as%20envisioned.%26nbsp%3B%20With%20the%20advent%20of%20the%20ConfigMgr%20(a.k.a%20SCCM)%20peer%20cache%20functionality%20we%20saw%20the%20opportunity%20to%20get%20in%20early%20on%20the%20roll%20out%20to%20aid%20us%20in%20some%20of%20our%20other%20projects%20(like%20a%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D57349%26amp%3BWT.mc_id%3Drss_alldownloads_all%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20move%20to%20Azure%20%3C%2FA%3E%20and%20a%20DP%20removal%20for%20cost%20reduction).%26nbsp%3B%20Sarat%20Chandra%20was%20the%20man%20tasked%20to%20bring%20the%20idea%20of%20peer%20content%20sharing%20from%20the%20whiteboard%20to%20the%20production%20environment%20and%20while%20he%20had%20to%20deal%20with%20a%20few%20bumps%20in%20the%20road%2C%20he%20got%20us%20to%20a%20nice%20solid%20implementation.%26nbsp%3B%20That%20early%20lead%20also%20led%20to%20some%20fun%20tests%20as%20we%20worked%20with%20the%20development%20team%20to%20use%20and%20improve%20the%20feature%20to%20give%20you%20what%20you%20have%20available%20today.%26nbsp%3B%20One%20memorable%20learning%20from%20those%20early%20days%20was%20when%20a%20workstation%20(the%20workstation%20of%20our%20boss)%20served%20out%20over%203%20TB%20of%20data%20to%20nearly%20200%2C000%20other%20machines%2C%20at%20the%20same%20time%20becoming%20useless%20for%20an%20entire%20day%20due%20to%20CPU%20and%20NIC%20consumption.%26nbsp%3B%20We%20also%20got%20a%20reminder%20that%20laptops%20move%20and%20while%20they%20might%20start%20the%20day%20in%20one%20office%2C%20later%20serving%20content%20to%20people%20in%20that%20office%2C%20when%20the%20laptop%20has%20moved%20to%20a%20Starbucks%20down%20the%20road%2C%20is%20not%20so%20good%20for%20making%20happy%20users%20and%20network%20admins.%20%3CBR%20%2F%3E%3CH2%20id%3D%22toc-hId--872271337%22%20id%3D%22toc-hId--843762521%22%3EResults%20today%3C%2FH2%3E%3CBR%20%2F%3E%20Much%20refinement%20has%20gone%20into%20both%20the%20product%20and%20our%20implementation%20of%20the%20feature%20to%20bring%20us%20to%20a%20much%20nicer%20point%20now.%26nbsp%3B%20We%20have%20it%20rolled%20out%20across%20the%20company%20and%20we%20have%20better%20reporting%20that%20is%20now%20showing%20that%20only%2010-20%25%20of%20our%20content%20requests%20are%20coming%20from%20our%20distribution%20points.%26nbsp%3B%20We%20did%20that%20through%20a%20combination%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsccm%2Fcore%2Fplan-design%2Fhierarchy%2Fclient-peer-cache%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20ConfigMgr%20Peer%20cache%20%3C%2FA%3E%20functionality%20and%20the%20built-in%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fnetworking%2Fbranchcache%2Fbranchcache%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20OS%20BranchCache%20%3C%2FA%3E%20functionality.%26nbsp%3B%20We%20have%20also%20reduced%20our%20distribution%20point%20footprint%20in%20branch%20offices%20significantly%2C%20with%20a%20goal%20to%20completely%20remove%20them%20al%20in%20the%20next%20year.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Getting%20this%20success%20required%20finding%20the%20right%20targeting%20for%20creating%20peer%20cache%20source%20servers.%26nbsp%3B%20Today%20we%20have%20some%20general%20targeting%20that%20works%20well%20for%20most%20locations%2C%20with%20some%20rule%20exceptions%20to%20handle%20a%20few%20remote%20offices%20that%20didn%E2%80%99t%20have%20a%20good%20result%20set%20for%20our%20peer%20source%20servers.%26nbsp%3B%20The%20combination%20that%20gave%20us%20the%20best%20success%20for%20defining%20a%20peer%20source%20was%20created%20as%20a%20collection%20which%20we%20then%20target%20with%20the%20appropriate%20client%20agent%20settings.%26nbsp%3B%20That%20combo%20is%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%C2%B7%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Not%20a%20high-level%20executive%20(We%20don%E2%80%99t%20want%20to%20risk%20any%20impacts%20to%20our%20CEO%2C%20for%20example)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%C2%B7%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Desktops%20only%20(they%20don%E2%80%99t%20move%20much%20and%20provide%20reliability)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%C2%B7%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Hardwire%20connection%20(more%20dependable%20throughput%20than%20wireless)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%C2%B7%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Not%20a%20VM%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20An%20example%20of%20our%20collection%20query%20for%20those%20that%20want%20a%20more%20direct%20example%20is%3A%20%3CBR%20%2F%3E%3CBLOCKQUOTE%3Eselect%20SMS_R_SYSTEM.ResourceID%2CSMS_R_SYSTEM.ResourceType%2CSMS_R_SYSTEM.Name%2CSMS_R_SYSTEM.SMSUniqueIdentifier%2CSMS_R_SYSTEM.ResourceDomainORWorkgroup%2CSMS_R_SYSTEM.Client%20from%20SMS_R_System%20inner%20join%20SMS_G_System_SYSTEM_ENCLOSURE%20on%20SMS_G_System_SYSTEM_ENCLOSURE.ResourceID%20%3D%20SMS_R_System.ResourceId%20inner%20join%20SMS_G_System_NETWORK_ADAPTER%20on%20SMS_G_System_NETWORK_ADAPTER.ResourceId%20%3D%20SMS_R_System.ResourceId%20inner%20join%20SMS_G_System_NETWORK_ADAPTER_CONFIGURATION%20on%20SMS_G_System_NETWORK_ADAPTER_CONFIGURATION.ResourceId%20%3D%20SMS_R_System.ResourceId%20where%20SMS_G_System_SYSTEM_ENCLOSURE.ChassisTypes%20in%20(%223%22%2C%226%22%2C%224%22%2C%225%22%2C%227%22%2C%2215%22%2C%2216%22%2C%2217%22%2C%2223%22)%20and%20(SMS_G_System_NETWORK_ADAPTER.AdapterType%20%3D%20%22Ethernet%20802.3%22%20and%20SMS_G_System_NETWORK_ADAPTER_CONFIGURATION.IPEnabled%20%3D%201)%20and%20SMS_R_System.IsVirtualMachine%20%3D%20%22False%22%20and%20SMS_R_System.ADSiteName%20not%20in%20(%26lt%3B%26lt%3B%26lt%3B%26lt%3B%3CAD%20sites%3D%22%22%20you%3D%22%22%20want%3D%22%22%20to%3D%22%22%20exclude%3D%22%22%3E%26gt%3B%26gt%3B%26gt%3B%26gt%3B)%3C%2FAD%3E%3C%2FBLOCKQUOTE%3E%3CBR%20%2F%3E%20In%20our%20corporate%20headquarters%20we%20had%20many%20more%20machines%20to%20choose%20from%20for%20peer%20sourcing%20so%20we%20further%20improved%20content%20deliverability%20and%20reduced%20our%20selection%20set%20for%20peer%20source%20servers%20by%20also%20targeting%20only%20those%20machines%20with%2020GB%20of%20free%20disk%20space.%26nbsp%3B%20This%20was%20done%20as%20an%20optimization%20to%20make%20sure%20we%20didn%E2%80%99t%20have%20a%20lot%20of%20cache%20churn%20on%20peer%20source%20servers.%26nbsp%3B%20Other%20locations%20had%20fewer%20potential%20targets%2C%20so%20we%20didn%E2%80%99t%20use%20this%20limitation%20on%20those%20locations.%26nbsp%3B%20Here%20is%20what%20the%20last%2024hours%20looked%20like%20for%20us%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93858iD24579A9D300208B%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20We%20also%20built%20custom%20reports%20to%20measure%20efficiency%20of%20Peer%20Content%20Source%20using%20rejection%20data%20that%20sources%20send%20based%20on%20the%20throttling%20set%20at%20the%20client%20agent%20settings%20and%20create%20an%20alert.%20This%20helps%20us%20track%20and%20remove%20Peer%20sources%20that%20are%20not%20efficient%20and%20help%20minimize%20content%20delivery%20delays.%20Below%20is%20the%20sample%20report%3A%20%3CA%3E%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93859i1C2B2AFC06D17795%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CH2%20id%3D%22toc-hId-870538998%22%20id%3D%22toc-hId-899047814%22%3EOur%20Future%3A%3C%2FH2%3E%3CBR%20%2F%3E%20All%20this%20said%2C%20the%20ConfigMgr%20and%20OS%20products%20continue%20to%20improve%2C%20and%20we%20are%20looking%20to%20integrate%20those%20improvements%20as%20well.%26nbsp%3B%20We%20are%20about%20to%20start%20a%20pilot%20on%20the%20new%20partial%20download%20functionality%20that%20is%20available%20in%20the%201806%20release.%26nbsp%3B%20We%20also%20have%20been%20really%20excited%20by%20what%20we%20have%20seen%20and%20heard%20about%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsccm%2Fcore%2Fget-started%2Fcapabilities-in-technical-preview-1805%23enable-distribution-points-to-use-network-congestion-control%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20LEDbat%20%3C%2FA%3E%20implementation%20possibilities.%26nbsp%3B%20This%20new%20peer%20content%20process%20is%20a%20small%20change%20for%20ConfigMgr%20infrastructures%20but%20can%20be%20a%20big%20change%20in%20design%20and%20resiliency%20for%20your%20content%20distribution.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2012%2F3%2F18%20-%20Updated%20screen%20shots%20and%20added%20collection%20query.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2012%2F6%2F18%20-%20Query%20updated%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-377270%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TECHNET%20on%20Oct%2016%2C%202018%20The%20lead%20up%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Here%20within%20Microsoft%20we%20pride%20ourselves%20as%20being%20the%20%E2%80%9Cfirst%20and%20best%E2%80%9D%20consumer%20of%20ConfigMgr%20features.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-377270%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESCCM%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esystem%20center%202012%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESystem%20Center%20Configuration%20Manager%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TECHNET on Oct 16, 2018

The lead up


Here within Microsoft we pride ourselves as being the “first and best” consumer of ConfigMgr features.  With that comes early learning and a little bit of pain as we try features early in the development cycle, and with code that is sometimes not fully tested or implemented as full as envisioned.  With the advent of the ConfigMgr (a.k.a SCCM) peer cache functionality we saw the opportunity to get in early on the roll out to aid us in some of our other projects (like a move to Azure and a DP removal for cost reduction).  Sarat Chandra was the man tasked to bring the idea of peer content sharing from the whiteboard to the production environment and while he had to deal with a few bumps in the road, he got us to a nice solid implementation.  That early lead also led to some fun tests as we worked with the development team to use and improve the feature to give you what you have available today.  One memorable learning from those early days was when a workstation (the workstation of our boss) served out over 3 TB of data to nearly 200,000 other machines, at the same time becoming useless for an entire day due to CPU and NIC consumption.  We also got a reminder that laptops move and while they might start the day in one office, later serving content to people in that office, when the laptop has moved to a Starbucks down the road, is not so good for making happy users and network admins.

Results today


Much refinement has gone into both the product and our implementation of the feature to bring us to a much nicer point now.  We have it rolled out across the company and we have better reporting that is now showing that only 10-20% of our content requests are coming from our distribution points.  We did that through a combination of the ConfigMgr Peer cache functionality and the built-in OS BranchCache functionality.  We have also reduced our distribution point footprint in branch offices significantly, with a goal to completely remove them al in the next year.

Getting this success required finding the right targeting for creating peer cache source servers.  Today we have some general targeting that works well for most locations, with some rule exceptions to handle a few remote offices that didn’t have a good result set for our peer source servers.  The combination that gave us the best success for defining a peer source was created as a collection which we then target with the appropriate client agent settings.  That combo is:

·       Not a high-level executive (We don’t want to risk any impacts to our CEO, for example)

·       Desktops only (they don’t move much and provide reliability)

·       Hardwire connection (more dependable throughput than wireless)

·       Not a VM

An example of our collection query for those that want a more direct example is:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SYSTEM_ENCLOSURE on SMS_G_System_SYSTEM_ENCLOSURE.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_NETWORK_ADAPTER on SMS_G_System_NETWORK_ADAPTER.ResourceId = SMS_R_System.ResourceId inner join SMS_G_System_NETWORK_ADAPTER_CONFIGURATION on SMS_G_System_NETWORK_ADAPTER_CONFIGURATION.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SYSTEM_ENCLOSURE.ChassisTypes in ("3","6","4","5","7","15","16","17","23") and (SMS_G_System_NETWORK_ADAPTER.AdapterType = "Ethernet 802.3" and SMS_G_System_NETWORK_ADAPTER_CONFIGURATION.IPEnabled = 1) and SMS_R_System.IsVirtualMachine = "False" and SMS_R_System.ADSiteName not in (<<<<<AD Sites you want to exclude>>>>>)

In our corporate headquarters we had many more machines to choose from for peer sourcing so we further improved content deliverability and reduced our selection set for peer source servers by also targeting only those machines with 20GB of free disk space.  This was done as an optimization to make sure we didn’t have a lot of cache churn on peer source servers.  Other locations had fewer potential targets, so we didn’t use this limitation on those locations.  Here is what the last 24hours looked like for us:







We also built custom reports to measure efficiency of Peer Content Source using rejection data that sources send based on the throttling set at the client agent settings and create an alert. This helps us track and remove Peer sources that are not efficient and help minimize content delivery delays. Below is the sample report:




Our Future:


All this said, the ConfigMgr and OS products continue to improve, and we are looking to integrate those improvements as well.  We are about to start a pilot on the new partial download functionality that is available in the 1806 release.  We also have been really excited by what we have seen and heard about LEDbat implementation possibilities.  This new peer content process is a small change for ConfigMgr infrastructures but can be a big change in design and resiliency for your content distribution.



12/3/18 - Updated screen shots and added collection query.

12/6/18 - Query updated