Making MsQuic Blazing Fast

Published Apr 14 2021 11:13 AM 18.8K Views
Microsoft

It’s been a year since we open sourced MsQuic and a lot has happened since then, both in the industry (QUIC v1 in the final stages) and in MsQuic. As far as MsQuic goes, we’ve been hard at work adding new features, improving stability and more; but improving performance has been one of our primary ongoing efforts. MsQuic recently passed the 1000th commit mark, with nearly 200 of those for PRs related to performance work. We’ve improved single connection upload speeds from 1.67 Gbps in July 2020 to as high as 7.99 Gbps with the latest builds*.

 

nibanks_1-1618423631950.png

* Windows Preview OS builds; User-mode using Schannel; and server-class hardware with USO.
** x-axis above reflects the number of Git commits back from HEAD.

 

Defining Performance

 

“Performance” means a lot of different things to different people. When we talk with Windows file sharing (SMB), it’s always about single connection, bulk throughput. How many gigabits per second can you upload or download? With HTTP, more often it’s about the maximum number of requests per second (RPS) a server can handle, or the per-request latency values. How many microseconds of latency do you add to a request? For a general purpose QUIC solution, all of these are important to us. But even these different scenarios can have ambiguity in their definition. That’s why we’re working to standardize the process by which we measure the various performance scenarios. Not only does this provide a very clear message of what exactly is being measured and how, but it has also allowed for us to do cross-implementation performance testing. Four other implementations (that we know of) have implemented the “perf” protocol we’ve defined.

 

Performance-First Design

 

As already mentioned above, performance has been a primary focus of our efforts. Since the very start of our work on QUIC, we’ve had both HTTP and SMB scenarios driving pretty much every design decision we’ve made. It comes down to the following: The design must be both performant for a single operation and highly parallelizable for many. For SMB, a few connections must be able to achieve extremely high throughput. On the other hand, HTTP needs to support tens of thousands of parallel connections/requests with very low latency.

 

This design initially led to significant improvements at the UDP layer. We added support for UDP send segmentation and receive coalescing. Together, these interfaces allow a user mode app to batch UDP payloads into large contiguous buffers that only need to traverse the networking stack once per batch, opposed to once per datagram. This greatly increased bulk throughput of UDP datagrams for user mode.

 

These design requirements have led to some significant complexity internal to MsQuic as well. The QUIC protocol and the UDP (and below) work are separated onto their own threads. In scenarios with a small number of connections, these threads generally spread to separate processors, allowing for higher throughput. In scenarios with a large number of connections, effectively saturating all the processors with work, we do additional work improves parallelization.

 

Those are just a few of the (bigger) impacts our performance-driven design has had on MsQuic architecture. This design process has affected every part of MsQuic from the API down to the platform abstraction layer.

 

Making Performance Testing Integral to CI

 

Claiming a performant design means nothing without data to back it up. Additionally, we found that occasional, mostly manual, performance testing led to even more issues. First off, to be able to make reasonable comparisons of performance results, we needed to reduce the number of factors that might affect the results. We found that having a manual process added a lot of variability to the results because of the significant setup and tool complexity. Removing the “middleman” was super important, but frequent testing has been even more important. If we only tested once a month, it was next to impossible to identify the cause of any regressions found in the latest results; let alone prevent them from happening in the first place. That inevitably led to a significant amount of wasted time trying to track down the problem. All the while, we had regressed performance for anyone using the code in the meantime.

 

For these reasons, we’ve invested significant resources into making performance testing a first-class citizen in our CI automation. We run the full performance suite of tests for every single PR, every commit to main, and for every release branch. If a pull request affects performance, we know before it’s even merged into main. If it regresses performance, it’s not merged. With this system in place, we have pretty much guaranteed performance in main will only go up. This has also allowed us to confidently take external contributions to the code without fear of any regressions.

 

nibanks_0-1618423531227.png

 

Another significant part of this automation is generating our Performance Dashboard. Every run of our CI pipeline for commits to main generates a new data point and automatically updates the data on the dashboard. The main page is designed to give a quick look at the current state of the system and any recent changes. There are various other pages that can be used to drill down into the data.

 

Progress So Far

 

As indicated in the chart at the beginning, we’ve had lots of improvements in performance over the last year. One nice feature of the dashboard is the ability to click on a data point and get linked directly to the relevant Git commit used. This allows us to easily find what code change caused the impacted performance. Below is a list of just a few of the recent commits that had the biggest impact on single connection upload performance.

 

  • d985d44 – Improves the flow control tuning logic
  • 1f4bfd7 – Refactors the perf tool
  • ec6a3c0 – Fix a kernel issue related to starving NIC packet buffers
  • be57c4a – Refactors how we use RSS processor to schedule work
  • 084d034 – Refactors OpenSSL crypto abstraction layer
  • 9f10e02 – Switches to OpenSSL 1.1.1 branch instead of 3.0
  • ee9fc96 – Adds GSO support to Linux data path abstraction
  • a5e67c3 – Refactors UDP send logic to run on data path thread

 

Most of these changes came about from this simple process:

 

  1. Collect performance traces.
  2. Analyze traces for bottlenecks.
  3. Improve biggest bottleneck.
  4. Test for regressions.
  5. Repeat.

 

This is a constantly ongoing process to always improve performance. We’ve done considerable work to make parts of this process easier. For instance, we’ve created our own WPA plugin for analyzing MsQuic performance traces. We also continue to spend time stabilizing our existing performance so that we can better catch possible regressions going forward.

 

Future Work

 

We’ve done a lot of work so far and come a long way, but the push for improved performance is never ending. There’s always another bottleneck to improve/eliminate. There’s always a little better/faster way of doing things. There’s always more tooling that can be created to improve the overall process. We will continue to put effort into all these.

 

Going forward, we want to investigate additional hardware offloads and software optimization techniques. We want to build upon the work going on in the ecosystem and help to standardize these optimizations and integrate it them into the OS platform and then into MsQuic. Our hope is that we will make MsQuic the first choice for customer workloads by bringing the network performance benefits QUIC promises without having to make a trade-off with computational efficiency.

 

As always, for more info on MsQuic continue reading on GitHub.

 

-- The MsQuic Team (Anthony Rossi, Nick Banks, Praveen Balasubramanian, & Thad House)

%3CLINGO-SUB%20id%3D%22lingo-sub-2268963%22%20slang%3D%22en-US%22%3EMaking%20MsQuic%20Blazing%20Fast%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2268963%22%20slang%3D%22en-US%22%3E%3CP%3EIt%E2%80%99s%20been%20a%20year%20since%20we%20open%20sourced%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMsQuic%3C%2FA%3E%20and%20a%20lot%20has%20happened%20since%20then%2C%20both%20in%20the%20industry%20(QUIC%20v1%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.rfc-editor.org%2Fcluster_info.php%3Fcid%3DC430%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Efinal%20stages%3C%2FA%3E)%20and%20in%20MsQuic.%20As%20far%20as%20MsQuic%20goes%2C%20we%E2%80%99ve%20been%20hard%20at%20work%20adding%20new%20features%2C%20improving%20stability%20and%20more%3B%20but%20improving%20performance%20has%20been%20one%20of%20our%20primary%20ongoing%20efforts.%20MsQuic%20recently%20passed%20the%201000%3CSUP%3Eth%3C%2FSUP%3E%20commit%20mark%2C%20with%20nearly%20200%20of%20those%20for%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fissues%3Fq%3Dis%253Amerged%2Blabel%253A%2522Area%253A%2BPerformance%2522%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPRs%20related%20to%20performance%3C%2FA%3E%20work.%20We%E2%80%99ve%20improved%20single%20connection%20upload%20speeds%20from%201.67%20Gbps%20in%20July%202020%20to%20as%20high%20as%207.99%20Gbps%20with%20the%20latest%20builds*.%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%22nibanks_1-1618423631950.png%22%20style%3D%22width%3A%20980px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F272890i2D88A8B728F19DDD%2Fimage-dimensions%2F980x501%3Fv%3Dv2%22%20width%3D%22980%22%20height%3D%22501%22%20role%3D%22button%22%20title%3D%22nibanks_1-1618423631950.png%22%20alt%3D%22nibanks_1-1618423631950.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E*%20Windows%20Preview%20OS%20builds%3B%20User-mode%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fcom%2Fschannel%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESchannel%3C%2FA%3E%3B%20and%20server-class%20hardware%20with%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fnetwork%2Fudp-segmentation-offload-uso-%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUSO%3C%2FA%3E.%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E**%20x-axis%20above%20reflects%20the%20number%20of%20Git%20commits%20back%20from%20HEAD.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1303171952%22%20id%3D%22toc-hId-1303171867%22%3EDefining%20Performance%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E2%80%9CPerformance%E2%80%9D%20means%20a%20lot%20of%20different%20things%20to%20different%20people.%20When%20we%20talk%20with%20Windows%20file%20sharing%20(SMB)%2C%20it%E2%80%99s%20always%20about%20single%20connection%2C%20bulk%20throughput.%20%3CEM%3EHow%20many%20gigabits%20per%20second%20can%20you%20upload%20or%20download%3F%3C%2FEM%3E%20With%20HTTP%2C%20more%20often%20it%E2%80%99s%20about%20the%20maximum%20number%20of%20requests%20per%20second%20(RPS)%20a%20server%20can%20handle%2C%20or%20the%20per-request%20latency%20values.%20%3CEM%3EHow%20many%20microseconds%20of%20latency%20do%20you%20add%20to%20a%20request%3F%3C%2FEM%3E%20For%20a%20general%20purpose%20QUIC%20solution%2C%20all%20of%20these%20are%20important%20to%20us.%20But%20even%20these%20different%20scenarios%20can%20have%20ambiguity%20in%20their%20definition.%20That%E2%80%99s%20why%20we%E2%80%99re%20working%20to%20%3CA%20href%3D%22https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fdraft-banks-quic-performance%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Estandardize%3C%2FA%3E%20the%20process%20by%20which%20we%20measure%20the%20various%20performance%20scenarios.%20Not%20only%20does%20this%20provide%20a%20very%20clear%20message%20of%20what%20exactly%20is%20being%20measured%20and%20how%2C%20but%20it%20has%20also%20allowed%20for%20us%20to%20do%20cross-implementation%20performance%20testing.%20Four%20other%20implementations%20(that%20we%20know%20of)%20have%20implemented%20the%20%E2%80%9Cperf%E2%80%9D%20protocol%20we%E2%80%99ve%20defined.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--504282511%22%20id%3D%22toc-hId--504282596%22%3EPerformance-First%20Design%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20already%20mentioned%20above%2C%20performance%20has%20been%20a%20primary%20focus%20of%20our%20efforts.%20Since%20the%20very%20start%20of%20our%20work%20on%20QUIC%2C%20we%E2%80%99ve%20had%20both%20HTTP%20and%20SMB%20scenarios%20driving%20pretty%20much%20every%20design%20decision%20we%E2%80%99ve%20made.%20It%20comes%20down%20to%20the%20following%3A%20%3CEM%3EThe%20design%20must%20be%20both%20performant%20for%20a%20single%20operation%20and%20highly%20parallelizable%20for%20many.%3C%2FEM%3E%20For%20SMB%2C%20a%20few%20connections%20must%20be%20able%20to%20achieve%20extremely%20high%20throughput.%20On%20the%20other%20hand%2C%20HTTP%20needs%20to%20support%20tens%20of%20thousands%20of%20parallel%20connections%2Frequests%20with%20very%20low%20latency.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20design%20initially%20led%20to%20significant%20improvements%20at%20the%20UDP%20layer.%20We%20added%20support%20for%20UDP%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fws2tcpip%2Fnf-ws2tcpip-wsasetudpsendmessagesize%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esend%20segmentation%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fws2tcpip%2Fnf-ws2tcpip-wsasetudprecvmaxcoalescedsize%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ereceive%20coalescing%3C%2FA%3E.%20Together%2C%20these%20interfaces%20allow%20a%20user%20mode%20app%20to%20batch%20UDP%20payloads%20into%20large%20contiguous%20buffers%20that%20only%20need%20to%20traverse%20the%20networking%20stack%20once%20per%20batch%2C%20opposed%20to%20once%20per%20datagram.%20This%20greatly%20increased%20bulk%20throughput%20of%20UDP%20datagrams%20for%20user%20mode.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThese%20design%20requirements%20have%20led%20to%20some%20significant%20complexity%20internal%20to%20MsQuic%20as%20well.%20The%20QUIC%20protocol%20and%20the%20UDP%20(and%20below)%20work%20are%20separated%20onto%20their%20own%20threads.%20In%20scenarios%20with%20a%20small%20number%20of%20connections%2C%20these%20threads%20generally%20spread%20to%20separate%20processors%2C%20allowing%20for%20higher%20throughput.%20In%20scenarios%20with%20a%20large%20number%20of%20connections%2C%20effectively%20saturating%20all%20the%20processors%20with%20work%2C%20we%20do%20additional%20work%20improves%20parallelization.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThose%20are%20just%20a%20few%20of%20the%20(bigger)%20impacts%20our%20performance-driven%20design%20has%20had%20on%20MsQuic%20architecture.%20This%20design%20process%20has%20affected%20every%20part%20of%20MsQuic%20from%20the%20API%20down%20to%20the%20platform%20abstraction%20layer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1983230322%22%20id%3D%22toc-hId-1983230237%22%3EMaking%20Performance%20Testing%20Integral%20to%20CI%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClaiming%20a%20performant%20design%20means%20nothing%20without%20data%20to%20back%20it%20up.%20Additionally%2C%20we%20found%20that%20occasional%2C%20mostly%20manual%2C%20performance%20testing%20led%20to%20even%20more%20issues.%20First%20off%2C%20to%20be%20able%20to%20make%20reasonable%20comparisons%20of%20performance%20results%2C%20we%20needed%20to%20reduce%20the%20number%20of%20factors%20that%20might%20affect%20the%20results.%20We%20found%20that%20having%20a%20manual%20process%20added%20a%20lot%20of%20variability%20to%20the%20results%20because%20of%20the%20significant%20setup%20and%20tool%20complexity.%20Removing%20the%20%E2%80%9Cmiddleman%E2%80%9D%20was%20super%20important%2C%20but%20frequent%20testing%20has%20been%20even%20more%20important.%20If%20we%20only%20tested%20once%20a%20month%2C%20it%20was%20next%20to%20impossible%20to%20identify%20the%20cause%20of%20any%20regressions%20found%20in%20the%20latest%20results%3B%20let%20alone%20prevent%20them%20from%20happening%20in%20the%20first%20place.%20That%20inevitably%20led%20to%20a%20significant%20amount%20of%20wasted%20time%20trying%20to%20track%20down%20the%20problem.%20All%20the%20while%2C%20we%20had%20regressed%20performance%20for%20anyone%20using%20the%20code%20in%20the%20meantime.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20these%20reasons%2C%20we%E2%80%99ve%20invested%20significant%20resources%20into%20making%20performance%20testing%20a%20first-class%20citizen%20in%20our%20%3CA%20href%3D%22https%3A%2F%2Fdev.azure.com%2Fms%2Fmsquic%2F_build%2Flatest%3FdefinitionId%3D347%26amp%3BbranchName%3Dmain%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ECI%20automation%3C%2FA%3E.%20We%20run%20the%20full%20performance%20suite%20of%20tests%20for%20every%20single%20PR%2C%20every%20commit%20to%20main%2C%20and%20for%20every%20release%20branch.%20If%20a%20pull%20request%20affects%20performance%2C%20we%20know%20before%20it%E2%80%99s%20even%20merged%20into%20main.%20If%20it%20regresses%20performance%2C%20it%E2%80%99s%20not%20merged.%20With%20this%20system%20in%20place%2C%20we%20have%20pretty%20much%20guaranteed%20performance%20in%20main%20will%20only%20go%20up.%20This%20has%20also%20allowed%20us%20to%20confidently%20take%20external%20contributions%20to%20the%20code%20without%20fear%20of%20any%20regressions.%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%22nibanks_0-1618423531227.png%22%20style%3D%22width%3A%201006px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F272887i15FB87C2CAC1FB0C%2Fimage-dimensions%2F1006x507%3Fv%3Dv2%22%20width%3D%221006%22%20height%3D%22507%22%20role%3D%22button%22%20title%3D%22nibanks_0-1618423531227.png%22%20alt%3D%22nibanks_0-1618423531227.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20significant%20part%20of%20this%20automation%20is%20generating%20our%20%3CA%20href%3D%22https%3A%2F%2Fmicrosoft.github.io%2Fmsquic%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EPerformance%20Dashboard%3C%2FA%3E.%20Every%20run%20of%20our%20CI%20pipeline%20for%20commits%20to%20main%20generates%20a%20new%20data%20point%20and%20automatically%20updates%20the%20data%20on%20the%20dashboard.%20The%20main%20page%20is%20designed%20to%20give%20a%20quick%20look%20at%20the%20current%20state%20of%20the%20system%20and%20any%20recent%20changes.%20There%20are%20various%20other%20pages%20that%20can%20be%20used%20to%20drill%20down%20into%20the%20data.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-175775859%22%20id%3D%22toc-hId-175775774%22%3EProgress%20So%20Far%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20indicated%20in%20the%20chart%20at%20the%20beginning%2C%20we%E2%80%99ve%20had%20lots%20of%20improvements%20in%20performance%20over%20the%20last%20year.%20One%20nice%20feature%20of%20the%20dashboard%20is%20the%20ability%20to%20click%20on%20a%20data%20point%20and%20get%20linked%20directly%20to%20the%20relevant%20Git%20commit%20used.%20This%20allows%20us%20to%20easily%20find%20what%20code%20change%20caused%20the%20impacted%20performance.%20Below%20is%20a%20list%20of%20just%20a%20few%20of%20the%20recent%20commits%20that%20had%20the%20biggest%20impact%20on%20single%20connection%20upload%20performance.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2Fd985d44%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ed985d44%3C%2FA%3E%20%E2%80%93%20Improves%20the%20flow%20control%20tuning%20logic%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2F1f4bfd7%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E1f4bfd7%3C%2FA%3E%20%E2%80%93%20Refactors%20the%20perf%20tool%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2Fec6a3c0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eec6a3c0%3C%2FA%3E%20%E2%80%93%20Fix%20a%20kernel%20issue%20related%20to%20starving%20NIC%20packet%20buffers%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2Fbe57c4a%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ebe57c4a%3C%2FA%3E%20%E2%80%93%20Refactors%20how%20we%20use%20RSS%20processor%20to%20schedule%20work%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2Fb8ca40a176fb25905910d6210c07f9bb7084d034%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E084d034%3C%2FA%3E%20%E2%80%93%20Refactors%20OpenSSL%20crypto%20abstraction%20layer%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2F9f10e02%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E9f10e02%3C%2FA%3E%20%E2%80%93%20Switches%20to%20OpenSSL%201.1.1%20branch%20instead%20of%203.0%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2Fee9fc96%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eee9fc96%3C%2FA%3E%20%E2%80%93%20Adds%20GSO%20support%20to%20Linux%20data%20path%20abstraction%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Fcommit%2Fa5e67c3%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ea5e67c3%3C%2FA%3E%20%E2%80%93%20Refactors%20UDP%20send%20logic%20to%20run%20on%20data%20path%20thread%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMost%20of%20these%20changes%20came%20about%20from%20this%20simple%20process%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECollect%20performance%20traces.%3C%2FLI%3E%0A%3CLI%3EAnalyze%20traces%20for%20bottlenecks.%3C%2FLI%3E%0A%3CLI%3EImprove%20biggest%20bottleneck.%3C%2FLI%3E%0A%3CLI%3ETest%20for%20regressions.%3C%2FLI%3E%0A%3CLI%3ERepeat.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20constantly%20ongoing%20process%20to%20always%20improve%20performance.%20We%E2%80%99ve%20done%20considerable%20work%20to%20make%20parts%20of%20this%20process%20easier.%20For%20instance%2C%20we%E2%80%99ve%20created%20our%20own%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%2Ftree%2Fmain%2Fsrc%2Fplugins%2Fwpa%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWPA%20plugin%3C%2FA%3E%20for%20analyzing%20MsQuic%20performance%20traces.%20We%20also%20continue%20to%20spend%20time%20stabilizing%20our%20existing%20performance%20so%20that%20we%20can%20better%20catch%20possible%20regressions%20going%20forward.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1631678604%22%20id%3D%22toc-hId--1631678689%22%3EFuture%20Work%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%E2%80%99ve%20done%20a%20lot%20of%20work%20so%20far%20and%20come%20a%20long%20way%2C%20but%20the%20push%20for%20improved%20performance%20is%20never%20ending.%20There%E2%80%99s%20always%20another%20bottleneck%20to%20improve%2Feliminate.%20There%E2%80%99s%20always%20a%20little%20better%2Ffaster%20way%20of%20doing%20things.%20There%E2%80%99s%20always%20more%20tooling%20that%20can%20be%20created%20to%20improve%20the%20overall%20process.%20We%20will%20continue%20to%20put%20effort%20into%20all%20these.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGoing%20forward%2C%20we%20want%20to%20investigate%20additional%20hardware%20offloads%20and%20software%20optimization%20techniques.%20We%20want%20to%20build%20upon%20the%20work%20going%20on%20in%20the%20ecosystem%20and%20help%20to%20standardize%20these%20optimizations%20and%20integrate%20it%20them%20into%20the%20OS%20platform%20and%20then%20into%20MsQuic.%20Our%20hope%20is%20that%20we%20will%20make%20MsQuic%20the%20first%20choice%20for%20customer%20workloads%20by%20bringing%20the%20network%20performance%20benefits%20QUIC%20promises%20without%20having%20to%20make%20a%20trade-off%20with%20computational%20efficiency.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20always%2C%20for%20more%20info%26nbsp%3B%3CSPAN%3Eon%20MsQuic%20continue%20reading%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmsquic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eon%20GitHub%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E--%20The%20MsQuic%20Team%20(Anthony%20Rossi%2C%20Nick%20Banks%2C%20Praveen%20Balasubramanian%2C%20%26amp%3B%20Thad%20House)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2268963%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20the%20last%20year%2C%20MsQuic%20upload%20speeds%20have%20more%20than%20quadrupled!%20Come%20read%20about%20all%20we've%20done%20for%20MsQuic%20performance.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Apr 15 2021 11:54 AM
Updated by:
www.000webhost.com