<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rui Costa on Medium]]></title>
        <description><![CDATA[Stories by Rui Costa on Medium]]></description>
        <link>https://medium.com/@ruicosta_75534?source=rss-2de8371c65cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*h9JhKCGO2k_TkWCStj9vbA.jpeg</url>
            <title>Stories by Rui Costa on Medium</title>
            <link>https://medium.com/@ruicosta_75534?source=rss-2de8371c65cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:07:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ruicosta_75534/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mobile devs, stop the network from killing your users’ experience. Bolina is out!]]></title>
            <link>https://medium.com/codavel-blog/mobile-devs-stop-the-network-from-killing-your-users-experience-bolina-is-out-5b5c533dd090?source=rss-2de8371c65cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b5c533dd090</guid>
            <category><![CDATA[https]]></category>
            <category><![CDATA[protocol]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Rui Costa]]></dc:creator>
            <pubDate>Fri, 10 May 2019 10:21:26 GMT</pubDate>
            <atom:updated>2019-07-18T15:43:14.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIWfJEdTom9aGPNaAexd7A.png" /></figure><p>When I told a close friend we would be working on a new internet protocol to make mobile apps run faster, he called me crazy. I insisted, stating that we also wanted to make it possible to integrate this new protocol into any app with just two lines of code… and got a sarcastic smile in return.</p><p>After quite a few chaotic months, even though I hate to say this, I learned that he was right. That was indeed a massive challenge. But guess what: we did it! <a href="https://www.codavel.com/bolina-sdk/">Bolina SDK</a> is out, it is definitely faster and it is ready to be tried out!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tfwNfuqYGLtHd9I9" /></figure><h3>The mission and the goal</h3><p>For us, our mission was clear from the beginning: we wanted to empower every mobile app with the ability to overcome network instability. The goal was simple: build a feature-rich product that provided a smooth experience, not only to the end-users as a result, but also to every developer out there that would use Bolina.</p><p>Inspired by this vision, we have built the Bolina SDK to provide mobile app users with a:</p><ul><li>Fast and smooth experience (say goodbye to endless loading times!)</li><li>Shield from Wi-Fi, 3G or 4G network instability</li></ul><p>and allow developers to:</p><ul><li>Perform significantly faster network calls, even with high latency and high packet loss, for both downloads and uploads</li><li>Integrate Bolina within the mobile app with just a few lines of code</li><li>Effortlessly integrate with any content server</li><li>Monitor mobile app network performance</li></ul><p>You don’t think this is possible? Well, I’ll show you in a minute how you can quickly check it by yourself. But first, let me tell you why we have been knocking our heads off with Bolina.</p><h3>Why we are building Bolina</h3><p>User expectations with respect to mobile apps performance are increasing, with <a href="http://www.apteligent.com/news-press/latency-impacts-user-experience-48-percent-of-consumers-uninstall-or-stop-app-use-due-to-slow-speeds-crittercism-report-reveals/">48% of users uninstalling or stopping to use an app due to slow speeds</a>. In fact, <a href="https://www.appdynamics.com/media/uploaded-files/1425406960/app-attention-span-research-report-1.pdf">more than eight out of ten have already done so</a>. So, even with the extraordinary advances in WiFi, 4G and the upcoming 5G, the problem is still there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uOTfoh_sdWxuYdKz" /></figure><p>Why is this happening? You may have heard that the internet relies on TCP/IP model. Well, the problem lies in the TCP part of this model. TCP ensures reliable data delivery but was designed back in the 70s when wired communication was (almost) all there was. In a wireless dominated world, link instability is king — and TCP fails to cope with that. I won’t bother you with technical details (you can learn a bit more about this on our <a href="https://www.codavel.com/technology/">technology page</a>) but, as an example, if the link loses 0.1% of the data packets, TCP speed goes down by 5 times. And this is quite frequent in a wireless link. This is particularly dramatic, considering that <a href="https://www.cisco.com/c/en/us/solutions/collateral/service-provider/visual-networking-index-vni/white-paper-c11-741490.html">71% of total internet traffic will be wireless by 2022</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*92Zm_wbSjeL-5Uyk" /></figure><p>Sure, most of internet traffic is carried by Content Delivery Networks (CDNs), and they play a crucial role in ensuring that internet communication is fast and scalable. You can learn a bit more on CDNs and caching here, but in essence, CDNs also rely on TCP. Moreover, CDNs cannot do anything about the wireless link instability: they optimize only up to the edge. And the bad news is that 95% of link instability happens over the air!</p><p><strong>So, basically, we have to change the underlying protocol, TCP.</strong></p><p>And these are exciting times because we’re all coming to the same conclusion! Giants like Google, <a href="https://code.fb.com/networking-traffic/building-zero-protocol-for-fast-secure-mobile-connections/">Facebook</a>, <a href="https://blog.cloudflare.com/the-road-to-quic/">Cloudflare</a>, <a href="https://tools.ietf.org/html/draft-ietf-quic-transport-10">Fastly</a> and <a href="https://www.slideshare.net/dhaval2025/uber-mobility-high-performance-networking">Uber</a> are now making massive efforts to standardize a new internet protocol, <a href="https://www.chromium.org/quic">QUIC</a>. I’m particularly excited about the recent moves by Cloudflare: they have launched the <a href="https://blog.cloudflare.com/mobile-sdk-acceleration/">Cloudflare Mobile SDK</a> for speeding up mobile apps, and the <a href="https://blog.cloudflare.com/1111-warp-better-vpn/">Warp VPN service</a>, a free VPN that allows mobile users to get faster internet access. Did I mention it’s free?</p><p>Having said that, these are still very small steps towards overcoming wireless link instability. Why? QUIC and similar approaches optimize connection establishment time but fail to truly revisit the actual transport of data over the internet. In other words, these approaches are still quite vulnerable to link instability. See <a href="https://www.codavel.com/2018/09/17/quic-vs-tcptls-and-why-quic-is-not-the-next-big-thing">here</a> why.</p><p>Mobile users need much more than just incremental improvements. This is why we’re building Bolina: to <strong>make sure mobile apps can provide a frustration-free experience to their users.</strong></p><h3>Where we are</h3><p>Since we are still tackling a few <a href="https://www.codavel.com/developers/bolina-sdk-docs/release-notes/#main-2">open issues</a>, Bolina SDK is officially in beta stage. Nevertheless, it is ready to be out in the world and we’re counting on you to do it! Right now, with the Bolina SDK, you get:</p><ul><li>Significantly faster network calls<br>- Get your resources much faster, whether you are downloading or uploading data</li><li>Smooth client-side integration with minimal changes in your app:<br>- Off-the-shelf integration with OkHttp and HTTPURLConnection for Android<br>- Off-the-shelf integration with Alamofire, AFNetworking, and NSURLSession for iOS<br>- Compatibility with any other HTTP library for Android or iOS</li><li>Effortless server-side integration with your content servers<br>- Plug and play integration with any cloud infrastructure via Docker containers</li><li>Ability to monitor your app performance<br>- A simple dashboard that lets you know how your users are benefiting from using Bolina</li><li>State-of-the-art features of modern protocols<br>- Support of 0-RTT, multiplexing, and the most recent and secure cipher suites and protocols</li></ul><p>And <a href="https://www.codavel.com/developers/bolina-sdk-docs/roadmap/">here</a> is what we’ll be doing for the upcoming weeks.</p><p>At this point, feedback is absolutely crucial for us, so if you are a mobile developer, a tech enthusiast or simply curious, please test it out (you choose how!) and share your thoughts with us. There are a few ways you can test it out:</p><ul><li>For an effortless Bolina performance evaluation, you can get our Android Demo App <a href="https://play.google.com/store/apps/details?id=com.codavel.bolina.demo.speedtest">here</a> <em>(iOS is coming soon)</em>;</li><li>If you want to go a bit deeper on the analysis, we’ve built a <a href="https://www.codavel.com/developers/sample-project-docs/">Sample Project</a> that allows you to test Bolina, in your own development environment, within 30min from downloading;</li><li>Or just feel free to integrate Bolina SDK into your own app! See <a href="https://www.codavel.com/developers/bolina-sdk-docs/">here</a> how.</li></ul><p>Stay tuned!</p><p><em>This post was originally published at blog.codavel.com, </em><a href="https://blog.codavel.com/bolina-is-out"><em>here</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b5c533dd090" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codavel-blog/mobile-devs-stop-the-network-from-killing-your-users-experience-bolina-is-out-5b5c533dd090">Mobile devs, stop the network from killing your users’ experience. Bolina is out!</a> was originally published in <a href="https://medium.com/codavel-blog">Codavel Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QUIC vs. TCP+TLS — and why QUIC is not the next big thing]]></title>
            <link>https://medium.com/@ruicosta_75534/quic-vs-tcp-tls-and-why-quic-is-not-the-next-big-thing-79f7ad4a30cd?source=rss-2de8371c65cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/79f7ad4a30cd</guid>
            <category><![CDATA[http2]]></category>
            <category><![CDATA[network-protocols]]></category>
            <category><![CDATA[quic]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Rui Costa]]></dc:creator>
            <pubDate>Fri, 01 Feb 2019 18:05:41 GMT</pubDate>
            <atom:updated>2019-06-13T10:30:46.845Z</atom:updated>
            <content:encoded><![CDATA[<h3>QUIC vs. TCP+TLS — and why QUIC is not the next big thing</h3><p>You have probably heard about QUIC. Even if you haven’t, it’s highly likely that you have already used it: Google services on Chrome have been using QUIC for a few years now. QUIC <a href="https://datatracker.ietf.org/wg/quic/about/">standardization process</a> is also very close to being completed. QUIC is a valuable Google initiative for a new internet transport protocol, with the ultimate goal of reducing latency. Does QUIC achieve this goal? It does, but just with incremental impact.</p><p>QUIC focus on handshake optimization (very important!) but fails to truly revisit transport protocols at their essence (the transport!). Why is this important? Because traditional transport techniques have been defined in a wired-users world. That world is long gone, with unreliable and unpredictable wireless links dominating user experience. Are there other options? Yes: erasure coding, instead of ARQ.</p><h3>A single handshake, instead of 2</h3><p>In a nutshell, QUIC replaces the combination of TCP and TLS, taking a cross-layer approach to transport and security. Underneath QUIC, UDP is used as “transport”. Why UDP? A very practical decision: using UDP enables very fast deployability at user space, whereas modifying TCP would take ages to be adopted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*WSr5vbDFDkysLdhP.png" /></figure><p><a href="https://datatracker.ietf.org/meeting/98/materials/slides-98-edu-sessf-quic-tutorial-00.pdf"><em>Image source</em></a></p><p>For a deeper understanding of QUIC, I recommend taking a look at <a href="https://www.chromium.org/quic">Chromium Projects</a> (<a href="https://docs.google.com/document/d/1gY9-YNDNAB1eip-RTPbqphgySwSNSDHLq9D5Bty4FSU">QUIC at 10,000 feet</a> is an excellent starting point). I also recommend the extraordinary talk “<a href="https://youtu.be/BazWPeUGS8M">QUIC: Replacing TCP for the Web</a>”, by Jana Iyengar (Fastly, ex-Google). Overall, the <a href="https://docs.google.com/document/d/1gY9-YNDNAB1eip-RTPbqphgySwSNSDHLq9D5Bty4FSU/edit">major benefits attributed to QUIC</a> are:</p><ul><li><strong>Connection establishment latency<br></strong>Definitely the case! QUIC achieves 0-RTT for known servers.</li><li><strong>Improved congestion control<br></strong>Marginal modifications. It’s not clear what’s going to be the final option, but seems that it will be <a href="https://tools.ietf.org/html/draft-ietf-quic-recovery-12#section-4">based on TCP NewReno</a></li><li><strong>Multiplexing without head-of-line blocking<br></strong>QUIC does decrease the problem of head-of-line blocking. But not entirely.</li><li><strong>Forward error correction<br></strong>No practical impact, at least for now.</li><li><strong>Connection migration<br></strong>Very valuable feature: moving from WiFi to LTE without renegotiating the session!</li></ul><p>In the end, QUIC does bring (at least) twice as fast connection establishment and reduces dramatically the impact of handover between different networks. Very important features, but incremental impact. I’ll extend a bit further my thoughts on each of these main benefits.</p><h4>Connection establishment latency</h4><p>In standard HTTP+TLS+TCP, TCP needs a handshake to establish a session between server and client, and TLS needs its own handshake to ensure that the session is secured. QUIC only needs a single handshake to establish a secure session. As simple as that, you get the connection establishment time cut in half.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Kxoo6ErajiuLBHFE" /></figure><p><a href="https://cloudplatform.googleblog.com/2018/06/Introducing-QUIC-support-for-HTTPS-load-balancing.html"><em>Image Source</em></a></p><p>How? Simplifying (a lot!), the client sends a connection ID to the server, which then returns to the client a token and the server’s public Diffie-Hellman values, which allows server and client to agree on an initial key. Client and server can start immediately exchanging data, while at the same time they will establish a final session key. To learn more on QUIC’s security handshake, I recommend a very clear presentation by Robert Lychev (<a href="https://youtu.be/vXgbPZ-1-us">video</a>, <a href="https://www.ietf.org/proceedings/96/slides/slides-96-irtfopen-1.pdf">slides</a>).</p><p>Moreover, similar to TLS1.3, after the server and client “meet” for the first time, they cache session keys and, by the time of a new request, no handshake is necessary. This is the so-called 0-RTT feature.</p><h4>Improved congestion control</h4><p>QUIC introduces a new sequence numbering mechanism. Every packet has a new sequence number, including retransmission packets, which enables for a more accurate round-trip-time (RTT) calculation. However, QUIC’s congestion control is a traditional, TCP-like, mechanism. Seems that the <a href="https://tools.ietf.org/html/draft-ietf-quic-recovery-12#section-4">most recent option is NewReno</a>, but you can find references for the usage of CUBIC or BBR. As we know from TCP, all have limitations, and it becomes a trade-off problem to choose one.</p><p>Like TCP, QUIC is at its essence an ARQ protocol, i.e. feedbacks are required to recover from packet losses. And this design choice then leads to inefficiencies when evaluating link conditions. And, in links where latency and losses are unstable, these limitations lead to a significant performance loss. Yes, I’m talking about wireless links, which are expected to support <a href="https://www.cisco.com/c/en/us/solutions/collateral/service-provider/visual-networking-index-vni/complete-white-paper-c11-481360.html">more than 63% of total internet traffic by 2021</a>.</p><p>There is a much more efficient way to handle losses: erasure codes. More on that later.</p><h4>Multiplexing</h4><p>Multiplexing is very important because it prevents head-of-line (HOL) blocking. HOL blocking is what happens when you request multiple objects, and a small object gets stuck because a preceding large object got delayed. By using multiple streams, <a href="https://docs.google.com/document/d/1gY9-YNDNAB1eip-RTPbqphgySwSNSDHLq9D5Bty4FSU/">lost packets carrying data for an individual stream only impact that specific stream</a>. Therefore, QUIC does significantly decrease HOL blocking, but not entirely.</p><p>Also, allowing the developer to actually choose what are the most important requests, based on characteristics other than their size, it could be tremendously helpful in improving the overall user experience.</p><h4>Forward error correction</h4><p>I’ve previously mentioned erasure codes as a more clever way to handle packet loss, and QUIC does indeed consider the potential use of Forward Error Correction (FEC) techniques. However, the experiments of FEC usage in QUIC were (not) surprisingly demotivating. The approach was to use XOR-based FEC, that can only recover a single packet. This means that <a href="https://docs.google.com/document/d/1Hg1SaLEl6T4rEU9j-isovCo8VEjjnuCPTcLNJewj7Nk">if two or more packets are lost, the FEC packet becomes useless</a>. Overhead then impairs speed and, in the end, <a href="https://static.googleusercontent.com/media/research.google.com/pt-PT//pubs/archive/46403.pdf">support for XOR-based FEC was removed from QUIC in early 2016</a>.</p><p>This is actually not surprising. Traditional FEC is a purely proactive loss recovery scheme, which means that the server will send more packets than necessary (decreasing goodput) or less than necessary (not decreasing delay), achieving optimality very rarely. Traditional FEC has the problem of not adapting to fluctuating channel characteristics. Unreliable, unpredictable links are the problem. Yep, wireless.</p><p>A <a href="https://tools.ietf.org/html/draft-swett-nwcrg-coding-for-quic-01">recent IETF draft</a> mentions the use of FEC to improve QUIC performance with real-time sessions, arguing that FEC makes packet loss recovery insensitive to the round trip time. This is a promising evolution! Still too early to assess how that will behave out in the wild, but promising nevertheless.</p><h4>Connection migration</h4><p>Not much to say here. QUIC brings its own unique identifier for a connection, the Connection UUID, which makes it possible to handover networks and keep the same Connection UUID. So handover is not a problem anymore (except for the long handover times, but that’s not something a transport protocol can solve).</p><h3>The downside of QUIC</h3><h4>Performance</h4><p>Google claims that QUIC reduced the latency of Google Search responses by 3.6% and YouTube video buffering by 15.3% (which, although small, is still an interesting improvement, given that <a href="https://services.google.com/fh/files/blogs/google_delayexp.pdf">speed truly matters</a>). In the aforementioned <a href="https://youtu.be/BazWPeUGS8M">talk by Jana Iyengar</a>, we see these numbers in greater detail:</p><p>These numbers are consistent with the findings reported in the 2016 paper <a href="https://ieeexplore.ieee.org/document/7510788/">“How quick is QUIC?”</a>, where the authors compare QUIC with SPDY and HTTP. The results show that QUIC performs well under high latency conditions, in particular for low bandwidth, which is in line with the performance results reported in India (above). The authors also show that QUIC is the best option when we are talking about small objects.</p><p>At the same time, the results show that QUIC does not perform well for large amounts of data in very high bandwidth networks. Most surprisingly, the authors claim that, when comparing QUIC, SPDY and HTTP, “none of these protocols is clearly better than the other two and the actual network conditions determine which protocol performs the best.”</p><h4>UDP throttling</h4><p>QUIC works on top of UDP, thus it will only work when a UDP link is available between client and server. Otherwise, if UDP is not available, QUIC fallbacks to standard HTTP, ensuring that the end user still gets the desired content. But what happens when facing UDP throttling, for example in an enterprise or public network? Since UDP passes through, QUIC is capable of establishing a connection. However, due to the UDP throttling, resorting to TCP would ensure a much higher speed!</p><p>Another example of UDP throttling can be found in QoS rules in some home routers, <a href="https://groups.google.com/a/chromium.org/d/msg/proto-quic/LLZPsb_hpaI/eVurnFrxs6MJ">which can lead to Google sites loading very slowly in Chrome</a>.</p><p>The solution? Manually disable QUIC, contact the operators and ask the operators to stop throttling, according to a <a href="https://static.googleusercontent.com/media/research.google.com/pt-PT//pubs/archive/46403.pdf">2017 paper by Google</a>. Doesn’t sound much practical. A UDP throttling detection mechanism would be of much greater assistant, since it could trigger an automatic fallback to TCP, ensuring that the end user has the best experience possible.</p><h4>Usability</h4><p>QUIC is still in the standardization process. It is still ongoing work, naturally. Therefore, using QUIC at this stage still requires quite a significant amount of effort. Looking at <a href="https://www.packetzoom.com/blog/does-google-know-better.html">PacketZoom’s list</a>, using QUIC in a mobile app requires:</p><ul><li>Setup QUIC server(s) and deploy globally per end user distribution.</li><li>Add QUIC client code to the app</li><li>Since no official Mobile SDK is available, developers must either build their own or rely on third-party frameworks</li><li>Support multiple OS (iOS, Android, Windows)</li><li>Enable HTTP fallback since some assets might not benefit from QUIC and need HTTP</li><li>Some networks block QUIC to avoid service interruption</li><li>Finding out how to handle UDP throttling <em>(I’ve added this one)</em></li></ul><p>However, with the efforts we are seeing from Google, <a href="https://code.fb.com/networking-traffic/building-zero-protocol-for-fast-secure-mobile-connections/">Facebook</a>, <a href="https://blog.cloudflare.com/the-road-to-quic/">Cloudflare</a>, <a href="https://tools.ietf.org/html/draft-ietf-quic-transport-10">Fastly</a> and <a href="https://www.slideshare.net/dhaval2025/uber-mobility-high-performance-networking">Uber</a> (among many others), standardization is on the way and I’m sure the complexity of using QUIC will decay very fast. At Codavel, we are devoted to improving content delivery and, given that, QUIC does represent a step towards that <a href="https://www.codavel.com/about/">goal</a>. That’s why we are preparing a few tools to help those who want to try QUIC — stay tuned!</p><h3>QUIC: ARQ, again. How about erasure codes?</h3><p>I’ve already mentioned a few times that QUIC is, in its essence, an ARQ-based protocol. ARQ protocols fundamentally rely on feedback information to recover from packet loss. Simplifying, the sender expects the receiver to individually acknowledge the reception of each packet and does not move forward until this acknowledgment arrives. In case a loss is detected, the sender then retransmits the lost packet, ensuring reliability. A simple example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToH2dSZ_PRyrnrhlkf01og.png" /></figure><p>The problem with this approach is that it is highly impaired by the RTT of the link, since the sender needs to wait for the acknowledgment from the receiver. In other words, although QUIC efficiently reduces the connection establishment time, QUIC is highly impaired by latency in the actual transport of the data, as with any TCP session!</p><p>So, how to overcome losses without the need for acknowledgments? With <a href="https://en.wikipedia.org/wiki/Erasure_code">erasure codes</a>! For those not familiarized, it basically consists of mixing original packets and using linear algebra to ensure that, no matter what <em>n </em>transmissions get to the receiver, the receiver is capable of recovering all the <em>n </em>original packets. The following simple example will help:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HLofqoLJpD2H-SPs2m126g.png" /></figure><p>The sender does not need to wait for an acknowledgment before sending a new (coded) packet, while the receiver recovers all the 4 original packets. And we are not sending more data or larger packets! For clarity, P1+P2 = 0101 + 1110 = 1011, i.e. a coded packet has the same size of an original packet. <em>(This </em><a href="http://steinwurf.com/blog/2018-06-01-delay.html"><em>post</em></a><em> by Steinwurf provides spectacular animations to illustrate the benefits of erasure codes over ARQ. Take a look!)</em></p><p>Given that the sender does not rely on acknowledgments for ensuring the reliable delivery of all packets, this approach is tremendously more robust to latency or latency variation (jitter). Naturally, it is also much more robust to packet loss. And where do we see latency, jitter and packet loss? In wireless networks!</p><h4>Breaking up with ARQ</h4><p>You might be wondering “But why hasn’t FEC helped QUIC?”. The answer is “simple”: because, although QUIC does foresee the use of FEC, it still is, in its essence, highly dependent on acknowledgments. Moreover, as I mentioned above, not every kind of erasure codes are suited for scenarios where losses are unstable and unpredictable.</p><p>Therefore, we must choose a coding technique that is capable of quickly adapting to fluctuating channel conditions, making sure no packet transmission is wasted. Also, it should be able to learn with usage and automatic improve its coding and transmission decisions. And that’s precisely what we have done in our transport protocol, <a href="https://www.codavel.com/technology/">Bolina</a>. Its secret sauce is a special kind of erasure codes called <a href="https://en.wikipedia.org/wiki/Linear_network_coding">network codes</a>, which we tailored for volatile links and low latency requirements. And we got something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1CMGgNeMGs-X00Pf7RF_og.png" /></figure><p><a href="http://www.speedhunters.com/2012/06/temple-of-speed/"><em>Main image source</em></a></p><p><em>This post was originally published at </em><a href="http://blog.codavel.com/"><em>blog.codavel.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f7ad4a30cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>