Packet processing-based HTTP server and data processing method thereof

A data processing and server technology, applied in the network field, can solve problems such as low performance, complex processing logic, and limited number of connections, and achieve the effects of improving performance, improving response speed, and reducing system resource consumption

Active Publication Date: 2011-05-11
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF2 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The above-mentioned HTTP server needs to process the data packets sent by the client through layer-by-layer analysis and layer-by-layer copying, and the processing logic is very complicated.
Therefore, the number of connections supported by the HTTP server is very limited. For some application scenarios with a small amount of data and frequent interaction with the server, when the current HTTP server faces a large number of requests from the client, the protocol stack will consume a lot of system resources. Therefore, the performance low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Packet processing-based HTTP server and data processing method thereof
  • Packet processing-based HTTP server and data processing method thereof
  • Packet processing-based HTTP server and data processing method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Since the communication process of the HTTP protocol is generally a short connection, the communication mode is a request-response mode. refer to figure 1 , an interaction process between the client and the HTTP server is as follows:

[0021] (1) The client sends a SYN packet to the HTTP server;

[0022] (2) The HTTP server sends a SYN+ACK packet to the client;

[0023] (3) The client sends an ACK packet to the HTTP server;

[0024] (4) The client sends a GET packet to the HTTP server;

[0025] (5) The HTTP server returns a 200OK packet to the client;

[0026] (6) Close the connection after sending the data.

[0027] Among them, the SYN packet is a handshake packet, ACK is a response packet, and FIN is an end packet. The above steps (1) to (3) are typical TCP three-way handshake process; and the GET packet is a request packet of the HTTP protocol, and 200OK is the HTTP server return Content package for clients. From the above content, it can be known that a comm...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a packet processing-based hypertext transfer protocol (HTTP) server and a data processing method thereof. The HTTP server processes data packets of a communication port by adopting an original socket, wherein the HTTP server receives data transmitted by a client, and the data is processed by a network card driver and is copied into a memory buffet zone of an application layer in a memory mapping mode; and in the process of transmitting the data, the HTTP server constructs an internet protocol (IP) data packet and transmits the IP data packet to an IP protocol stack, the IP protocol stack transmits the IP data packet to the network card driver, and the network card driver processes the IP data packet and transmits the IP data packet to the client. The provided packet processing-based HTTP server and the data processing method thereof can support mass data requests of the client and have better processing performance.

Description

technical field [0001] The invention relates to the field of network technology, and more specifically, relates to an HTTP server based on packet processing and a data processing method thereof. Background technique [0002] Hypertext Transfer Protocol (Hypertext Transfer Protocol, referred to as "HTTP") is a transmission protocol used to transmit hypertext from a World Wide Web server to a local browser. Current HTTP servers are based on Transmission Control Protocol (Transmission Control Protocol, referred to as "TCP") implemented above, such as image 3 As shown, the specific process of the HTTP server processing the data packet sent by the client is: the data packet sent by the client to the HTTP server is first processed by the network card driver, and the network data frame is restored to an IP data packet; then the network card driver converts the IP The data packet is handed over to the protocol stack of the kernel for processing, and the protocol stack parses the da...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/02H04L69/161
Inventor 张富春
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products