Understanding the Relationship Between TCP, Sockets, and HTTP

Understanding the Relationship Between TCP, Sockets, and HTTP

Recently, I needed to implement an HTTP interface for a project. So, I took this opportunity to explain the relationship between HTTP and sockets, as well as their connection to TCP. First, it’s essential to understand that in the network layer architecture, the HTTP protocol belongs to the application layer, while the TCP protocol belongs … Read more

HTTP 3.0 Completely Abandons TCP: What Went Wrong?

Author l Hollis Source l Hollis (ID: hollischuang) Since HTTP/1.0 and up to HTTP/2, regardless of how the application layer protocol has improved, TCP has always been the foundation of the HTTP protocol mainly because it provides a reliable connection. However, starting from HTTP 3.0, this situation has changed. Because, in the newly released HTTP … Read more

Key Summary of URL and HTTP Protocols

Key Summary of URL and HTTP Protocols

URL: is a type of URI that identifies an Internet resource and specifies how to operate on or retrieve that resource. It can be identified either through the description of the primary access method or through its “location” on the network. Most URLs follow a standard format that consists of three parts: First part: scheme, … Read more

Analysis of HTTP2 Features

Analysis of HTTP2 Features

This article mainly introduces some improvements and new features of HTTP2 compared to HTTP1.1. 1. Shortcomings of HTTP1.1 The HTTP protocol adopts a “request-response” model. When using the normal mode, i.e., non-KeepAlive mode, a new connection must be established for each request/response between the client and server, and the connection is immediately closed after completion … Read more

Understanding HTTP Status Codes

Understanding HTTP Status Codes

Click the blue text above to follow us 1xx: Informational This class of status codes indicates a temporary response. The client should be prepared to receive one or more 1xx responses before receiving a regular response. HTTP Status Code Description 100 Continue. 101 Switching Protocols. 2xx: Success This class of status codes indicates that the … Read more

Detailed Explanation of HTTP Protocol

1. Introduction 1. Origin Today, our ability to navigate the web is thanks to the vision of a computer scientist, Tim Berners-Lee. On August 6, 1991, Tim Berners-Lee officially launched the world’s first website (http://info.cern.ch) on a NeXT computer at the European Organization for Nuclear Research (CERN), establishing the basic concepts and technical framework of … Read more

Can USB Directly Replace RS-232 Serial Ports?

Can USB Directly Replace RS-232 Serial Ports?

What Is USB? USB is a universal serial bus interface standard used to connect computer systems and external devices for data transmission and power supply. Advantages: High-Speed Transmission: The USB interface provides high-speed data transfer rates, suitable for quickly transferring large volumes of data. Hot Swappable: USB devices can be plugged and unplugged while the … Read more

IoT Protocol Analysis: Practical Applications of MQTT and CoAP

IoT Protocol Analysis: Practical Applications of MQTT and CoAP

1. What is MQTT? MQTT, short for Message Queuing Telemetry Transport, is a lightweight protocol designed specifically for devices with unstable networks and limited bandwidth. For example, in Northeast China, there are times when the signal is poor, making it difficult to access the internet on mobile phones. This is when MQTT comes into play. … Read more

Detailed Explanation of MQTT Protocol Implementation

Detailed Explanation of MQTT Protocol Implementation

To pass the time, I will provide a detailed explanation of the MQTT protocol code implementation I wrote earlier; the main content will analyze and implement the MQTT network communication protocol, specifically involving the processing of network data stream segmentation. Therefore, much of the content will involve specific code functionalities. If you are interested in … Read more

What Is MQTT Protocol?

What Is MQTT Protocol?

1. What Is MQTT Protocol The full name of MQTT protocol is Message Queuing Telemetry Transport, translated as Message Queue Telemetry Transport. It is a message protocol based on the publish-subscribe model under ISO standards, based on the TCP/IP protocol suite, designed to improve the performance of network device hardware and the network itself. MQTT … Read more