Skip to content

Transportation Protocols

Transportation protocols are essential for managing how data is transferred across networks. The most well-known and widely used transport layer protocols are:

TCP (Transmission Control Protocol)

  • Reliable and connection-oriented.
  • Ensures data arrives in order, without errors, and without duplicates.
  • Therefor slower as udp.
  • Used in: HTTP/HTTPS (web browsing), FTP (file transfers), SMTP/IMAP/POP3 (email), SSH

HTTP (HyperText Transfer Protocol)

Http is a text-based transfer protocol widely used in the web. It's used in browsers as well for e.g. REST calls

Gzip

It's possible to use HTTP with compression as long as the server and client both support it, which is nearly everywhere the case. Enabling GZIP will compress the text transferred between server and client.

  • Smaller file sizes (up to 70–90% smaller).
  • Faster page load times.
  • Lower bandwidth usage.
  • Better user experience and SEO performance.
FeatureHTTP without gzipHTTP with gzip
CompressionNoYes
File sizeLargerSmaller
Load speedSlowerFaster
Bandwidth efficiencyPoorEfficient
Server/browser loadNormalSlight CPU overhead

HTTP/2

Http/2 is an improved version of http/1.1. The main improvements are:

  • Multiplexing: Allows multiple resources to be requested and sent in parallel over a single connection.
  • Header Compression: Reduces size of redundant headers, especially useful for APIs.
  • Binary Framing: More efficient and less error-prone than text-based format of HTTP/1.1.
  • Server Push: Lets the server proactively send assets (like CSS/JS) the browser will likely need.

So, if possible its good to switch to the new standard if possible. One drawback is, that http/2 is binary based, so it's harder to read the content.

FeatureHTTP/1.1HTTP/2
MultiplexingNo – one request per connectionYes – multiple requests per connection
Header compressionNoYes (HPACK compression)
Protocol formatText-basedBinary-based
Request prioritizationLimitedSupported
Server PushNot supportedSupported
Latency & speedHigher (slower)Lower (faster)
Connection reuseLimitedEfficient
Browser supportAll browsersAll modern browsers

Comparisson of typical scenarios

ScenarioHTTP/1.1 PerformanceHTTP/2 PerformanceSpeed Gain
Many small files (images, JS, CSS)Slower, multiple connectionsMultiplexed in one connection20% – 50% faster
High-latency networks (e.g., mobile)High delays, blocked requestsFaster with multiplexingUp to 2× faster
Complex webpages with many assetsBlocked & serialized requestsParallel asset loading50% – 70% faster
Well-optimized sitesAlready efficientSlightly better1.5× to 3× faster (in some cases)
Header size and overheadLarge, repetitive headersCompressed with HPACKLower latency, smaller size

UDP

  • Connectionless and faster than TCP.
  • No guarantee of delivery, order, or error correction.
  • Faster than tcp
  • Used in: DNS (domain name resolution), VoIP (voice calls), Online gaming, Streaming media

Contact: M_Bergmann AT gmx.at