Does the web point-to-point program transmit data using the HTTP protocol or TCP/IP protocol?

Source: Internet
Author: User

The web point-to-point program transmits data, is the HTTP protocol or TCP/IP protocol TCP/IP protocol and HTTP protocol what is the difference, two Web program point-to-point transmission data, you will choose that one.       Today on the Internet to see such an interview topic, triggered a series of search data, review the network knowledge events ... As we all know, HTTP is a network application layer protocol, and TCP/IP belongs to the network Transport Layer protocol, the two levels are different, there is no way to compare.     However, personally, the highlight of this topic is not the difference between the two protocols, but the two Web program point-to-point transmission data, which protocol to use. About the difference and connection between the two agreements, and that's not much to say here, reference to a passage from the Internet: we can use the (Transport Layer) TCP/IP protocol when transferring data, but in that case, if there is no application layer, then the data content is not recognized, if you want to make the transmitted data meaningful, you must use the Application layer protocol , there are many application layer protocols, such as HTTP, FTP, Telnet, etc., you can also define the application layer protocol. The web uses the HTTP protocol as an application layer protocol to encapsulate HTTP text information and then use TCP/IP as a Transport layer protocol to send it to the network.
So, the two Web program point-to-point transmission data, exactly which protocol to use. Let's take a look at some of the HTTP protocol descriptions and features: www.2cto.com
1. The HTTP protocol (hypertext Transfer Protocol, Hypertext Transfer Protocol) is a transfer protocol used to transfer hypertext from the WWW server to a local browser. It can make browsers more efficient and reduce network traffic.     It not only ensures that the computer transmits the hypertext document correctly and quickly, but also determines which part of the document is transferred, and which part of the content is first displayed (such as text prior to graphics). 2, HTTP protocol is usually hosted on the TCP protocol, and sometimes hosted on the TLS or SSL protocol layer, this time, it is often called HTTPS.

3, HTTP protocol is always the client to initiate the request, server-side loopback response.

This restricts the use of HTTP protocols to the fact that the client does not initiate the request, and the server pushes the message to the client.         Therefore, the answer to the title of this article, the Web program, in the point-to-point transmission of data, using the HTTP protocol, is not possible. Author ACME_LTT

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.