Difference among HTTP1,HTTP2 ,HTTP3

Saurav sharma
2 min readFeb 16, 2023

--

What is HTTP : HTTP(Hyper Text Transfer Protocol),it is used to load pages on the Internet using hyperlinks.

HTTP request : Browser send HTTP request to the server for CRUD operations.
Work on : Application layer.

Versions of HTTP :Following are the major versions of HTTP

HTTP 0.9:
Released : 1996
Methodology :

HTTP V0.9

Notes:
(1) Support only GET method.
(2) Known as one line protocol.
(3) No header supports, only HTML files could be transmitted.
(4) Connection : terminated immediately after the response.

HTTP 1.1: HTTP/1.1 was first published as RFC 2068 in 1997

Released : 1997

Notes:
(1) TCP connection can be reused.
(2) Implementation of pipelining so that multiple request can be fulfill.
(3) Chunk response also supported.
(4) Status code.

HTTP/2

Released: 2015

Notes:
(1) It’s a binary protocol unlike text protocol of HTTP 1.0 version.
(2) It’s a multiplexed protocol, it can handle multiple request with same connection.
(3) Optimized headers which removed redundancy of headers.
(4) Server push functionality[allow to cache data on client machine before they asked]
(5) Support for Alt-svc[smarter CDN]
(6) Security support in cookies.

HTTP/2 VS HTTP/3

HTTP/3 OVER QUIC

Released : June 2022, IETF published HTTP/3 as a Proposed Standard.

HTTP3 uses same format like HTTP/2 but does not relay over TCP ,it uses QUIC built upon UDP protocol.

Features :
(1) Much lower latency for HTTP connection.
(2) Multiplexed protocol(inherited from previous HTTP 2.0).
(3) QUIC runs streams over UDP.
(4) Packet loss detection and retransmission run separately on each stream.
(5) If error occur in any stream only that particular stream get blocked.
(6) Address head-of-line blocking (HoL) issues.

Summary : This is all about HTTP and it’s different versions, next i will cover why HTTP/3 uses UDP based QUIC, instead of TCP, this is really important to understand for internal working of HTTP.
I hope this help, thank you for reading.

--

--

Saurav sharma
Saurav sharma

No responses yet