How Microsoft reduced Windows 11 update size by 40%

Published Oct 12 2021 02:17 PM 26.4K Views
Microsoft

Microsoft delivers the latest Windows security and user experiences updates monthly. Updates are modular meaning that, regardless of which update you currently have installed, you only need the most recent quality update to get your machine up to date.

With the fast pace of Windows security and quality fixes, distributing this large amount of updated content takes up substantial bandwidth. Reducing this network transfer is critical for a great experience. Moreover, users on slower networks can struggle to keep their machines up to date with the latest security fixes if they cannot download the package.

“More than 20 million Americans lack access to high-speed broadband – a gap that is exacerbating the prosperity and opportunity gaps across our country, especially between rural and urban areas. As the economy, the workplace, and our daily lives become more digital, it’s critical we close this divide. We simply cannot afford to leave entire communities behind.” - Brad Smith, President, Microsoft

The problem with a large Windows update size

In addition to rural communities with limited access to high-speed broadband, hybrid and remote work have increased the complexity of update distribution for many corporations. Without high-speed internal networks to distribute updates to devices, corporations must rely on their virtual private networks and their remote workers' home internet connections to provide update distribution. Minimizing network traffic increases the velocity of security patches, keeping a remote workforce protected wherever they are.

In this post, we will describe how Microsoft mitigated some of these issues with new compression technology, reducing the size of quality updates in Windows 11 by 40%. 

Objectives

We set out to reduce the size of Windows 11 updates with the following goals:

  • Reduce the size of the network downloads.
  • Not regress install time.
  • Maintain compatibility with all distribution channels without any configuration changes needed by IT professionals.

Insight into Windows servicing

Since Windows 10, version 1809, Windows servicing has used paired forward and reverse differential compression. By utilizing the forward and reverse differentials, the OS can revert to its base version as an intermediate state in servicing. While the forward and reverse differentials are symmetric in their function, their content is largely disjoint, which means that a bidirectional delta containing the shared and disjoint content is not significantly smaller than a pair of forward and reverse differentials.

02_w11cumulativeupdates.png

The delta pairs used in Windows Updates. The endpoints that have the base version of the file (V0) hydrate the target revision (VN) by applying a delta.The delta pairs used in Windows Updates. The endpoints that have the base version of the file (V0) hydrate the target revision (VN) by applying a delta.

Why a bidirectional delta approach is not viable:

Binary deltas utilize transforms and patching instructions to transform a file from its base version to a target version. While some patching and transforms that add data to a file are non-destructive, transforms and patches may delete data needed for a reverse delta. For this reason, a bidirectional delta would need to store the content added in the forward delta and the content deleted during the forward apply. Because the data in forward and reverse deltas are largely disjoint, little efficiency is gained from a bidirectional delta over paired forward and reverse deltas.

Reverse Update Data Generation[1]

We discovered that these transforms and patches can be “observed” by the delta apply step, and efficiently re-encoded into a reverse delta (n->0), obviating the need to distribute reverse deltas in a paired delta approach.

03_reduced-update-sizes.PNG

An example of a Reverse Update Data Generation delta being created during the application of an insert/delete instruction. This example captures how reverse update data generation would create a reverse delta during forward apply for a rudimentary insert/delete patching instruction.An example of a Reverse Update Data Generation delta being created during the application of an insert/delete instruction. This example captures how reverse update data generation would create a reverse delta during forward apply for a rudimentary insert/delete patching instruction.

Mapping of assembly virtual addresses

Architecturally enlightened delta algorithms such as Microsoft’s MSDelta remap virtual addresses when a function’s address changes. This is important because even basic patches in assembly code shift the function address of subsequent functions in the binary program. Without remapping the virtual addresses, a single line assembly code change could result in tens of thousands of function calls needing adjusted virtual addresses.

The mapping works by running a byte-by-byte disassembly of the program’s assembly code and identifying the virtual addresses. Virtual addresses correspond logically to entry points for assembly code functions and shift when the assembly code is updated with a fix. These shifts are observed by the delta engine and are captured by a mapping table. The mapping process on delta apply normalizes the addresses of these changes and is a large part of the reason of why modern architecturally enlightened delta algorithms are so efficient.

Shows example x86 assembly call instructions being shifted by the addition of a mov instruction at address 0x18000097D3 (line 17)Shows example x86 assembly call instructions being shifted by the addition of a mov instruction at address 0x18000097D3 (line 17)

Reverse mapping of assembly virtual addresses

Much like the basic patching instructions, these transforms can be “observed” and reversed. There is a slight overhead as not all mappings are 1:1, and where forward mapping conflicts with its observed reverse mapping, additional patch instruction must be used to align the mapping. This can be done in-place, and the reverse mapping will provide nearly the same performance as a reverse delta with a direct mapping from a delta generation done on the server.

Summary

For versioned data systems requiring forward and reverse delta pairs, “reverse update data generation” provides a way of efficiently distributing the forward delta to the machine and having the machine maintain a path back to its original state. Microsoft has successfully employed this approach in Windows 11, providing a 40% reduction in update size. This benefits our customer base who will need to download less to remain up-to-date and secure.

For more information, see:


[1] The approach described above was filed on 03/12/2021 as U.S. Provisional Patent Application No. 63/160,284 “REVERSE UPDATE DATA GENERATION”

2 Comments
Regular Visitor

Does this same technology apply to Windows 10 updates or is there something special about Windows 11 which allows for the efficiencies described above? 

Trusted Contributor
%3CLINGO-SUB%20id%3D%22lingo-sub-2841487%22%20slang%3D%22en-US%22%3ERe%3A%20How%20Microsoft%20reduced%20Windows%2011%20update%20size%20by%2040%25%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2841487%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20this%20same%20technology%20apply%20to%20Windows%2010%20updates%20or%20is%20there%20something%20special%20about%20Windows%2011%20which%20allows%20for%20the%20efficiencies%20described%20above%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2841739%22%20slang%3D%22en-US%22%3ERe%3A%20How%20Microsoft%20reduced%20Windows%2011%20update%20size%20by%2040%25%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2841739%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F11828%22%20target%3D%22_blank%22%3E%40david%20byers%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20think%20this%20will%20be%20the%20answer%20to%20your%20question.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fdeployment%2Fupdate%2Fpsfxwhitepaper%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20Updates%20using%20forward%20and%20reverse%20differentials%20-%20Windows%20Deployment%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2839794%22%20slang%3D%22en-US%22%3EHow%20Microsoft%20reduced%20Windows%2011%20update%20size%20by%2040%25%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2839794%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EMicrosoft%20delivers%20the%20latest%20Windows%20security%20and%20user%20experiences%20updates%20monthly.%20Updates%20are%20modular%20meaning%20that%2C%20regardless%20of%20which%20update%20you%20currently%20have%20installed%2C%20you%20only%20need%20the%20most%20recent%20quality%20update%20to%20get%20your%20machine%20up%20to%20date.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EWith%20the%20fast%20pace%20of%20Windows%20security%20and%20quality%20fixes%2C%20distributing%20this%20large%20amount%20of%20updated%20content%20takes%20up%20substantial%20bandwidth.%20Reducing%20this%20network%20transfer%20is%20critical%20for%20a%20great%20experience.%20Moreover%2C%20users%20on%20slower%20networks%20can%20struggle%20to%20keep%20their%20machines%20up%20to%20date%20with%20the%20latest%20security%20fixes%20if%20they%20cannot%20download%20the%20package.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CTABLE%20style%3D%22border-style%3A%20dotted%3B%20border-color%3A%20%230078d4%3B%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22100%25%22%3E%3CP%20style%3D%22margin%3A%2010px%3B%22%3E%3CEM%3E%E2%80%9CMore%20than%2020%20million%20Americans%20lack%20access%20to%20high-speed%20broadband%20%E2%80%93%20a%20gap%20that%20is%20exacerbating%20the%20prosperity%20and%20opportunity%20gaps%20across%20our%20country%2C%20especially%20between%20rural%20and%20urban%20areas.%20As%20the%20economy%2C%20the%20workplace%2C%20and%20our%20daily%20lives%20become%20more%20digital%2C%20it%E2%80%99s%20critical%20we%20close%20this%20divide.%20We%20simply%20cannot%20afford%20to%20leave%20entire%20communities%20behind.%E2%80%9D%3C%2FEM%3E%20-%20Brad%20Smith%2C%20President%2C%20Microsoft%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--325512954%22%20id%3D%22toc-hId--325512267%22%3EThe%20problem%20with%20a%20large%20Windows%20update%20size%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EIn%20addition%20to%20rural%20communities%20with%20limited%20access%20to%20high-speed%20broadband%2C%20hybrid%20and%20remote%20work%20have%20increased%20the%20complexity%20of%20update%20distribution%20for%20many%20corporations.%20Without%20high-speed%20internal%20networks%20to%20distribute%20updates%20to%20devices%2C%20corporations%20must%20rely%20on%20their%20virtual%20private%20networks%20and%20their%20remote%20workers'%20home%20internet%20connections%20to%20provide%20update%20distribution.%20Minimizing%20network%20traffic%20increases%20the%20velocity%20of%20security%20patches%2C%20keeping%20a%20remote%20workforce%20protected%20wherever%20they%20are.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EIn%20this%20post%2C%20we%20will%20describe%20how%20Microsoft%20mitigated%20some%20of%20these%20issues%20with%20new%20compression%20technology%2C%20reducing%20the%20size%20of%20quality%20updates%20in%20Windows%2011%20by%2040%25.%26nbsp%3B%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--2132967417%22%20id%3D%22toc-hId--2132966730%22%3EObjectives%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EWe%20set%20out%20to%20reduce%20the%20size%20of%20Windows%2011%20updates%20with%20the%20following%20goals%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%20margin-top%3A%2020px%3B%22%3EReduce%20the%20size%20of%20the%20network%20downloads.%3C%2FLI%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3ENot%20regress%20install%20time.%3C%2FLI%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3EMaintain%20compatibility%20with%20all%20distribution%20channels%20without%20any%20configuration%20changes%20needed%20by%20IT%20professionals.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId-354545416%22%20id%3D%22toc-hId-354546103%22%3EInsight%20into%20Windows%20servicing%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3ESince%20Windows%2010%2C%20version%201809%2C%20Windows%20servicing%20has%20used%20paired%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fdeployment%2Fupdate%2Fpsfxwhitepaper%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eforward%20and%20reverse%20differential%20compression%3C%2FA%3E.%20By%20utilizing%20the%20forward%20and%20reverse%20differentials%2C%20the%20OS%20can%20revert%20to%20its%20base%20version%20as%20an%20intermediate%20state%20in%20servicing.%20While%20the%20forward%20and%20reverse%20differentials%20are%20symmetric%20in%20their%20function%2C%20their%20content%20is%20largely%20disjoint%2C%20which%20means%20that%20a%20bidirectional%20delta%20containing%20the%20shared%20and%20disjoint%20content%20is%20not%20significantly%20smaller%20than%20a%20pair%20of%20forward%20and%20reverse%20differentials.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Algorithm%20for%20forward%20and%20reverse%20differentials%22%20style%3D%22width%3A%20197px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316899i279F5B46C92BB7D5%2Fimage-dimensions%2F197x50%3Fv%3Dv2%22%20width%3D%22197%22%20height%3D%2250%22%20role%3D%22button%22%20title%3D%2202_w11cumulativeupdates.png%22%20alt%3D%2202_w11cumulativeupdates.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Example%20showing%20the%20delta%20pairs%20used%20in%20Windows%20updates.%20The%20endpoints%20that%20have%20the%20base%20version%20of%20the%20file%20(V0)%20hydrate%20the%20target%20revision%20(VN)%20by%20applying%20a%20delta.%22%20style%3D%22width%3A%20701px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316893i8484F4F4F9F3AD1C%2Fimage-dimensions%2F701x328%3Fv%3Dv2%22%20width%3D%22701%22%20height%3D%22328%22%20role%3D%22button%22%20title%3D%22Jonathon_Ready_0-1634071807939.png%22%20alt%3D%22The%20delta%20pairs%20used%20in%20Windows%20Updates.%20The%20endpoints%20that%20have%20the%20base%20version%20of%20the%20file%20(V0)%20hydrate%20the%20target%20revision%20(VN)%20by%20applying%20a%20delta.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20delta%20pairs%20used%20in%20Windows%20Updates.%20The%20endpoints%20that%20have%20the%20base%20version%20of%20the%20file%20(V0)%20hydrate%20the%20target%20revision%20(VN)%20by%20applying%20a%20delta.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--1452909047%22%20id%3D%22toc-hId--1452908360%22%3EWhy%20a%20bidirectional%20delta%20approach%20is%20not%20viable%3A%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EBinary%20deltas%20utilize%20transforms%20and%20patching%20instructions%20to%20transform%20a%20file%20from%20its%20base%20version%20to%20a%20target%20version.%20While%20some%20patching%20and%20transforms%20that%20add%20data%20to%20a%20file%20are%20non-destructive%2C%20transforms%20and%20patches%20may%20delete%20data%20needed%20for%20a%20reverse%20delta.%20For%20this%20reason%2C%20a%20bidirectional%20delta%20would%20need%20to%20store%20the%20content%20added%20in%20the%20forward%20delta%20and%20the%20content%20deleted%20during%20the%20forward%20apply.%20Because%20the%20data%20in%20forward%20and%20reverse%20deltas%20are%20largely%20disjoint%2C%20little%20efficiency%20is%20gained%20from%20a%20bidirectional%20delta%20over%20paired%20forward%20and%20reverse%20deltas.%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId-1034603786%22%20id%3D%22toc-hId-1034604473%22%3EReverse%20Update%20Data%20Generation%3CEM%3E%3CSUP%3E%3CA%20href%3D%22%23_rudg%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%5B1%5D%3C%2FA%3E%3C%2FSUP%3E%3C%2FEM%3E%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EWe%20discovered%20that%20these%20transforms%20and%20patches%20can%20be%20%E2%80%9Cobserved%E2%80%9D%20by%20the%20delta%20apply%20step%2C%20and%20efficiently%20re-encoded%20into%20a%20reverse%20delta%20(n-%26gt%3B0)%2C%20obviating%20the%20need%20to%20distribute%20reverse%20deltas%20in%20a%20paired%20delta%20approach.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Algorithm%20for%20Reverse%20Update%20Data%20Generation%22%20style%3D%22width%3A%20466px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316904iAD6267FDD5F037BF%2Fimage-dimensions%2F466x41%3Fv%3Dv2%22%20width%3D%22466%22%20height%3D%2241%22%20role%3D%22button%22%20title%3D%2203_reduced-update-sizes.PNG%22%20alt%3D%2203_reduced-update-sizes.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22An%20example%20of%20a%20Reverse%20Update%20Data%20Generation%20delta%20being%20created%20during%20the%20application%20of%20an%20insert%2Fdelete%20instruction.%20This%20example%20captures%20how%20reverse%20update%20data%20generation%20would%20create%20a%20reverse%20delta%20during%20forward%20apply%20for%20a%20rudimentary%20insert%2Fdelete%20patching%20instruction%22%20style%3D%22width%3A%20701px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316894iEA6D471A28EFC185%2Fimage-dimensions%2F701x285%3Fv%3Dv2%22%20width%3D%22701%22%20height%3D%22285%22%20role%3D%22button%22%20title%3D%22Jonathon_Ready_1-1634071807956.png%22%20alt%3D%22An%20example%20of%20a%20Reverse%20Update%20Data%20Generation%20delta%20being%20created%20during%20the%20application%20of%20an%20insert%2Fdelete%20instruction.%20This%20example%20captures%20how%20reverse%20update%20data%20generation%20would%20create%20a%20reverse%20delta%20during%20forward%20apply%20for%20a%20rudimentary%20insert%2Fdelete%20patching%20instruction.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAn%20example%20of%20a%20Reverse%20Update%20Data%20Generation%20delta%20being%20created%20during%20the%20application%20of%20an%20insert%2Fdelete%20instruction.%20This%20example%20captures%20how%20reverse%20update%20data%20generation%20would%20create%20a%20reverse%20delta%20during%20forward%20apply%20for%20a%20rudimentary%20insert%2Fdelete%20patching%20instruction.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--772850677%22%20id%3D%22toc-hId--772849990%22%3EMapping%20of%20assembly%20virtual%20addresses%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EArchitecturally%20enlightened%20delta%20algorithms%20such%20as%20Microsoft%E2%80%99s%20MSDelta%20remap%20virtual%20addresses%20when%20a%20function%E2%80%99s%20address%20changes.%20This%20is%20important%20because%20even%20basic%20patches%20in%20assembly%20code%20shift%20the%20function%20address%20of%20subsequent%20functions%20in%20the%20binary%20program.%20Without%20remapping%20the%20virtual%20addresses%2C%20a%20single%20line%20assembly%20code%20change%20could%20result%20in%20tens%20of%20thousands%20of%20function%20calls%20needing%20adjusted%20virtual%20addresses.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EThe%20mapping%20works%20by%20running%20a%20byte-by-byte%20disassembly%20of%20the%20program%E2%80%99s%20assembly%20code%20and%20identifying%20the%20virtual%20addresses.%20Virtual%20addresses%20correspond%20logically%20to%20entry%20points%20for%20assembly%20code%20functions%20and%20shift%20when%20the%20assembly%20code%20is%20updated%20with%20a%20fix.%20These%20shifts%20are%20observed%20by%20the%20delta%20engine%20and%20are%20captured%20by%20a%20mapping%20table.%20The%20mapping%20process%20on%20delta%20apply%20normalizes%20the%20addresses%20of%20these%20changes%20and%20is%20a%20large%20part%20of%20the%20reason%20of%20why%20modern%20architecturally%20enlightened%20delta%20algorithms%20are%20so%20efficient.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Example%20of%20x86%20assembly%20call%20instructions%20being%20shifted%20by%20the%20addition%20of%20a%20mov%20instruction%20at%20address%200x18000097D3%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316895i0287C0FEDC6D41BB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Jonathon_Ready_2-1634071808000.png%22%20alt%3D%22Shows%20example%20x86%20assembly%20call%20instructions%20being%20shifted%20by%20the%20addition%20of%20a%20mov%20instruction%20at%20address%200x18000097D3%20(line%2017)%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EShows%20example%20x86%20assembly%20call%20instructions%20being%20shifted%20by%20the%20addition%20of%20a%20mov%20instruction%20at%20address%200x18000097D3%20(line%2017)%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId-1714662156%22%20id%3D%22toc-hId-1714662843%22%3EReverse%20mapping%20of%20assembly%20virtual%20addresses%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EMuch%20like%20the%20basic%20patching%20instructions%2C%20these%20transforms%20can%20be%20%E2%80%9Cobserved%E2%80%9D%20and%20reversed.%20There%20is%20a%20slight%20overhead%20as%20not%20all%20mappings%20are%201%3A1%2C%20and%20where%20forward%20mapping%20conflicts%20with%20its%20observed%20reverse%20mapping%2C%20additional%20patch%20instruction%20must%20be%20used%20to%20align%20the%20mapping.%20This%20can%20be%20done%20in-place%2C%20and%20the%20reverse%20mapping%20will%20provide%20nearly%20the%20same%20performance%20as%20a%20reverse%20delta%20with%20a%20direct%20mapping%20from%20a%20delta%20generation%20done%20on%20the%20server.%3C%2FP%3E%0A%3CH2%20style%3D%22margin-top%3A%2036px%3B%20margin-bottom%3A%2020px%3B%20font-family%3A%20'Segoe%20UI'%2C%20Segoe%2C%20Tahoma%2C%20Geneva%2C%20sans-serif%3B%20font-weight%3A%20600%3B%20font-size%3A%2020px%3B%20color%3A%20%23333333%3B%22%20id%3D%22toc-hId--92792307%22%20id%3D%22toc-hId--92791620%22%3ESummary%3C%2FH2%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EFor%20versioned%20data%20systems%20requiring%20forward%20and%20reverse%20delta%20pairs%2C%20%E2%80%9Creverse%20update%20data%20generation%E2%80%9D%20provides%20a%20way%20of%20efficiently%20distributing%20the%20forward%20delta%20to%20the%20machine%20and%20having%20the%20machine%20maintain%20a%20path%20back%20to%20its%20original%20state.%20Microsoft%20has%20successfully%20employed%20this%20approach%20in%20Windows%2011%2C%20providing%20a%2040%25%20reduction%20in%20update%20size.%20This%20benefits%20our%20customer%20base%20who%20will%20need%20to%20download%20less%20to%20remain%20up-to-date%20and%20secure.%3C%2FP%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3EFor%20more%20information%2C%20see%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%20margin-top%3A%2020px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fwindows-it-pro-blog%2Fwindows-11-cumulative-update-improvements-an-overview%2Fba-p%2F2842961%22%20target%3D%22_blank%22%3EWindows%2011%20cumulative%20update%20improvements%3A%20an%20overview%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fdeployment%2Fupdate%2Fpsfxwhitepaper%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20Updates%20using%20forward%20and%20reverse%20differentials%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CHR%20%2F%3E%0A%3CP%20style%3D%22margin-top%3A%2020px%3B%22%3E%3CFONT%20size%3D%222%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_rudg%22%3E%3C%2FA%3E%3CSUP%3E%3CEM%3E%5B1%5D%3C%2FEM%3E%3C%2FSUP%3E%20%3CEM%3EThe%20approach%20described%20above%20was%20filed%20on%2003%2F12%2F2021%20as%20U.S.%20Provisional%20Patent%20Application%20No.%2063%2F160%2C284%20%E2%80%9CREVERSE%20UPDATE%20DATA%20GENERATION%E2%80%9D%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2839794%22%20slang%3D%22en-US%22%3E%3CP%3EReducing%20update%20size%20is%20important%20to%20you%2C%20and%20to%20us.%20Explore%20the%20techniques%20we%20used%20in%20Windows%2011.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22An%20example%20of%20a%20Reverse%20Update%20Data%20Generation%20delta%20being%20created%22%20style%3D%22width%3A%20645px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316907i6F16CC833315C7F9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22how-microsoft-reduced-update-sizes_tn.png%22%20alt%3D%22how-microsoft-reduced-update-sizes_tn.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2839794%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EServicing%20and%20updates%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Oct 14 2021 04:19 PM
Updated by: