Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does HTTP use TCP? [closed]

Tags:

http

tcp

udp

I suppose a way to paraphrase this question is why can't HTTP just use UDP? What specific functionalities provided by the TCP are explicitly required by HTTP?

like image 812
Ivan Gozali Avatar asked Oct 11 '12 05:10

Ivan Gozali


People also ask

Why does HTTP use TCP and not UDP?

Among the two most common transport protocols on the Internet, TCP is reliable and UDP isn't. HTTP therefore relies on the TCP standard, which is connection-based. Before a client and server can exchange an HTTP request/response pair, they must establish a TCP connection, a process which requires several round-trips.

Does HTTP use TCP?

How does HTTP work? As a request-response protocol, HTTP gives users a way to interact with web resources such as HTML files by transmitting hypertext messages between clients and servers. HTTP clients generally use Transmission Control Protocol (TCP) connections to communicate with servers.

What is HTTP use TCP as the transport layer protocol?

HTTP is an application layer protocol designed within the framework of the Internet protocol suite. Its definition presumes an underlying and reliable transport layer protocol, thus Transmission Control Protocol (TCP) is commonly used.

Why does http use TCP as its transport layer protocol?

because transmission errors can be tolerated easily Explanation: When a host requests a web page, transmission reliability and completeness must be guaranteed. Therefore, HTTP uses TCP as its transport layer protocol.

What is the difference between TCP full form and HTTP?

HTTP is a Hypertext Transfer Protocol, whereas TCP full form is Transmission Control Protocol. HTTP is utilized to access websites, while TCP is a session establishment protocol between client and server. HTTP uses port 80 and TCP uses no port. HTTP doesn’t need authentication, whereas, TCP uses the TCP-AO. HTTP is Stateless but not session less.

Why does http run on TCP but https runs on UDP?

For HTTP it runs via the TCP protocol because there is a session layer which requires interaction from the client and guaranteed delivery. Same goes for HTTPS. You’d use UDP for something that’s a lossy protocol and doesn’t require a session handshake like NTP or DNS.

What is the use of TCP?

TCP is a connection-oriented protocol which states a connection is established and maintained until the application data at each end have finished exchange. TCP breaks application data into packets. This packet delivers to the transport layer.


1 Answers

Ordering, non-duplication, integrity, pacing of large payloads, ... same as anybody else needs really. There was a move some years back to provide HTTP over UDP for tiny payloads that would fit into a single datagram, and ditto the responses, but most HTTP payloads are too big for one datagram so the point is lost.

like image 73
user207421 Avatar answered Oct 20 '22 21:10

user207421